Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env.example
Empty file.
15 changes: 15 additions & 0 deletions memAgent/cipher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# describes the mcp servers to use
mcpServers:
filesystem:
type: stdio
command: npx
args:
- -y
- "@modelcontextprotocol/server-filesystem"
- .
# # describes the llm configuration
llm:
provider: openai
model: o4-mini
apiKey: $OPENAI_API_KEY
maxIterations: 50
6 changes: 4 additions & 2 deletions examples/logger/usage.ts → memAgent/logger/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

import { logger, createLogger, ChalkColor } from '../../src/core/logger/logger.js';
import { env } from '../../src/core/env.js';


/**
* Example 1: Basic logging with the singleton logger
Expand Down Expand Up @@ -126,8 +128,8 @@ function environmentExample(): void {
console.log('\n=== Environment Variables Example ===');

console.log('Current environment settings:');
console.log('- CIPHER_LOG_LEVEL:', process.env.CIPHER_LOG_LEVEL || 'not set (defaults to info)');
console.log('- REDACT_SECRETS:', process.env.REDACT_SECRETS || 'not set (defaults to true)');
console.log('- CIPHER_LOG_LEVEL:', env.CIPHER_LOG_LEVEL || 'not set (defaults to info)');
console.log('- REDACT_SECRETS:', env.REDACT_SECRETS || 'not set (defaults to true)');

logger.info('Log level can be controlled via CIPHER_LOG_LEVEL environment variable');
logger.info('Secret redaction can be disabled via REDACT_SECRETS=false');
Expand Down
28 changes: 19 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"cipher": "./dist/src/app/index.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand All @@ -19,12 +22,15 @@
"./package.json": "./package.json"
},
"files": [
"dist/"
"dist/",
"memAgent/cipher.yml"
],
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsup",
"dev": "tsc --watch",
"typecheck": "tsc --noEmit",
"typecheck": "tsc --project tsconfig.typecheck.json",
"prepare": "husky",
"test": "vitest run",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand All @@ -42,30 +48,34 @@
"author": "BYTEROVER",
"license": "Apache-2.0",
"devDependencies": {
"@ai-sdk/openai": "^1.3.3",
"@eslint/js": "^9.29.0",
"@types/node": "^24.0.3",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.34.1",
"@typescript-eslint/parser": "^8.34.1",
"@vitest/coverage-v8": "^3.2.4",
"commander": "^11.1.0",
"eslint": "^9.29.0",
"eslint-config-prettier": "^10.1.5",
"prettier": "^3.5.3",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"tsx": "^4.19.2",
"vitest": "^3.2.4",
"@ai-sdk/openai": "^1.3.3"
"vitest": "^3.2.4"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.39.0",
"@modelcontextprotocol/sdk": "^1.13.0",
"typescript": "^5.8.3",
"uuid": "^11.1.0",
"zod": "^3.25.67",
"boxen": "^8.0.1",
"winston": "^3.17.0",
"chalk": "^5.4.1",
"dotenv": "^16.6.0",
"husky": "^9.1.7",
"openai": "^4.89.0",
"@anthropic-ai/sdk": "^0.39.0"
"typescript": "^5.8.3",
"uuid": "^11.1.0",
"winston": "^3.17.0",
"yaml": "^2.3.1",
"zod": "^3.25.67"
}
}
74 changes: 57 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions poem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
In the hush of dawn's first light,
Silent whispers wake the sky,
Threads of gold on edges bright,
Promise woven, time slips by.

Petals open, greet the day,
Dreams once tethered now take flight,
Hope ignites in gentle sway,
Hearts drawn to morning's light.

Every breath a soft refrain,
Songs of longing, songs of grace,
In each moment, joy remains,
Life reborn in day's embrace.
Loading