@letta-ai/letta-code 0.31.5 → 0.31.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-presets.js +5 -1
- package/dist/agent-presets.js.map +2 -2
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/types/agent/attached-repositories.d.ts +7 -0
- package/dist/types/agent/attached-repositories.d.ts.map +1 -0
- package/dist/types/agent/client-skills.d.ts +1 -1
- package/dist/types/agent/client-skills.d.ts.map +1 -1
- package/dist/types/agent/memory-constraints.d.ts +22 -0
- package/dist/types/agent/memory-constraints.d.ts.map +1 -0
- package/dist/types/agent/memory-git-hooks.d.ts +5 -5
- package/dist/types/agent/memory-git-hooks.d.ts.map +1 -1
- package/dist/types/agent/memory-git.d.ts +36 -5
- package/dist/types/agent/memory-git.d.ts.map +1 -1
- package/dist/types/agent/shared-memory-skills.d.ts +1 -1
- package/dist/types/agent/shared-memory-skills.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-model-factory.d.ts +0 -1
- package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
- package/dist/types/backend/local/local-model-config.d.ts.map +1 -1
- package/dist/types/tools/impl/skill.d.ts +1 -1
- package/dist/types/tools/impl/skill.d.ts.map +1 -1
- package/letta.js +20183 -20025
- package/package.json +2 -2
- package/scripts/source-file-size-baseline.json +1 -1
- package/skills/managing-shared-memory/SKILL.md +4 -5
- package/skills/submitting-feedback/SKILL.md +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attached-repositories.d.ts","sourceRoot":"","sources":["../../../src/agent/attached-repositories.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAcpC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MessageCreateParams as ConversationMessageCreateParams } from "@letta-ai/letta-client/resources/conversations/messages";
|
|
2
2
|
import type { AvailableSkillSummary } from "../types/protocol_v2";
|
|
3
|
-
import type { AttachedAgentRepository } from "./
|
|
3
|
+
import type { AttachedAgentRepository } from "./attached-repositories";
|
|
4
4
|
import { discoverSkills, type SkillDiscoveryError, type SkillDiscoveryResult, type SkillSource } from "./skills";
|
|
5
5
|
/**
|
|
6
6
|
* Invalidate the entire client skills payload cache.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-skills.d.ts","sourceRoot":"","sources":["../../../src/agent/client-skills.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AACtI,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"client-skills.d.ts","sourceRoot":"","sources":["../../../src/agent/client-skills.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,IAAI,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AACtI,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AASvE,OAAO,EAEL,cAAc,EAQd,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAoKlB;;;;;GAKG;AACH,wBAAgB,kCAAkC,IAAI,IAAI,CAIzD;AAED;;;;;;GAMG;AACH,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,MAAM,GACd,IAAI,CAWN;AAwED,MAAM,MAAM,WAAW,GAAG,WAAW,CACnC,+BAA+B,CAAC,eAAe,CAAC,CACjD,CAAC,MAAM,CAAC,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
+
*
|
|
4
|
+
* It runs under Node because Letta Code requires Node 22.19 or newer. Keeping
|
|
5
|
+
* the validator dependency-free lets Git execute it from agent and shared
|
|
6
|
+
* memory repositories without resolving the Letta Code package at commit time.
|
|
7
|
+
*
|
|
8
|
+
* The optional tracked `.memfs.config.json` file accepts:
|
|
9
|
+
* - `version`: the required config format version (currently 1)
|
|
10
|
+
* - `maxFileCharacters`: a default cap for each projected memory Markdown file
|
|
11
|
+
* - `fileCharacterLimits`: ordered glob overrides; the first match wins, and a
|
|
12
|
+
* null limit leaves matching files uncapped
|
|
13
|
+
* - `maxDepth`: the number of directories allowed between the repo root and a
|
|
14
|
+
* projected memory file
|
|
15
|
+
*
|
|
16
|
+
* File limits count the complete staged file, including frontmatter.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MEMORY_CONSTRAINTS_CONFIG_PATH = ".memfs.config.json";
|
|
19
|
+
export declare const MEMORY_CONSTRAINTS_VALIDATOR_NAME = "letta-memory-constraints.cjs";
|
|
20
|
+
export declare const MEMORY_CONSTRAINTS_UPDATE_ENV = "LETTA_MEMORY_CONSTRAINTS_UPDATE";
|
|
21
|
+
export declare const MEMORY_CONSTRAINTS_VALIDATOR_SCRIPT: string;
|
|
22
|
+
//# sourceMappingURL=memory-constraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-constraints.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-constraints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AACnE,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAChF,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAE/E,eAAO,MAAM,mCAAmC,QA4U/C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Git hook scripts installed into
|
|
2
|
+
* Git hook scripts installed into agent and shared memory repositories.
|
|
3
3
|
*
|
|
4
4
|
* The pre-commit hook validates memory markdown frontmatter; the post-commit
|
|
5
5
|
* hook mirrors commits to an optional user-configured memory-repository
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
* - Only allowed agent-editable key: description
|
|
19
19
|
* - Legacy key 'limit' is tolerated for backward compatibility
|
|
20
20
|
* - read_only may exist (from server) but agent must not change it
|
|
21
|
+
* - Optional file-size and depth constraints come from .memfs.config.json
|
|
21
22
|
*/
|
|
22
|
-
export declare const PRE_COMMIT_HOOK_SCRIPT = "#!/usr/bin/env bash\n# Validate frontmatter in staged memory .md files\n# Installed by Letta Code CLI\n\nAGENT_EDITABLE_KEYS=\"description\"\nPROTECTED_KEYS=\"read_only\"\nALL_KNOWN_KEYS=\"description read_only limit\"\nerrors=\"\"\n\nmemory_layout_policy_file=\"$(git rev-parse --git-common-dir 2>/dev/null)/letta-memory-layout-policy\"\nmemory_layout_policy=$(cat \"$memory_layout_policy_file\" 2>/dev/null || true)\n\nvalidate_v2_file() {\n local file=\"$1\" staged first_line closing_line frontmatter line key value\n local has_name=false has_description=false\n staged=$(git show \":$file\")\n\n if [ \"${file##*/}\" = \"MEMORY.md\" ]; then\n first_line=$(echo \"$staged\" | head -1)\n if [ \"$first_line\" = \"---\" ]; then\n errors=\"$errors\\n $file: MEMORY.md must not have frontmatter\"\n fi\n return\n fi\n\n first_line=$(echo \"$staged\" | head -1)\n if [ \"$first_line\" != \"---\" ]; then\n errors=\"$errors\\n $file: missing frontmatter (must start with ---)\"\n return\n fi\n closing_line=$(echo \"$staged\" | tail -n +2 | grep -n '^---$' | head -1 | cut -d: -f1)\n if [ -z \"$closing_line\" ]; then\n errors=\"$errors\\n $file: frontmatter opened but never closed (missing closing ---)\"\n return\n fi\n frontmatter=$(echo \"$staged\" | tail -n +2 | head -n $((closing_line - 1)))\n\n while IFS= read -r line; do\n [ -z \"$line\" ] && continue\n key=$(echo \"$line\" | cut -d: -f1 | sed 's/^ *//;s/ *$//')\n value=$(echo \"$line\" | cut -d: -f2- | sed 's/^ *//;s/ *$//')\n case \"$key\" in\n name)\n if [ \"$has_name\" = \"true\" ]; then\n errors=\"$errors\\n $file: duplicate frontmatter key 'name'\"\n fi\n has_name=true\n ;;\n description)\n if [ \"$has_description\" = \"true\" ]; then\n errors=\"$errors\\n $file: duplicate frontmatter key 'description'\"\n fi\n has_description=true\n ;;\n *)\n errors=\"$errors\\n $file: unknown frontmatter key '$key' (allowed: name description)\"\n continue\n ;;\n esac\n if [ -z \"$value\" ] || [ \"$value\" = '\"\"' ] || [ \"$value\" = \"''\" ]; then\n errors=\"$errors\\n $file: '$key' must not be empty\"\n fi\n done <<< \"$frontmatter\"\n\n if [ \"$has_name\" = \"false\" ]; then\n errors=\"$errors\\n $file: missing required field 'name'\"\n fi\n if [ \"$has_description\" = \"false\" ]; then\n errors=\"$errors\\n $file: missing required field 'description'\"\n fi\n}\n\
|
|
23
|
-
/**
|
|
24
|
-
* Install the pre-commit hook for frontmatter validation.
|
|
25
|
-
*/
|
|
23
|
+
export declare const PRE_COMMIT_HOOK_SCRIPT = "#!/usr/bin/env bash\n# Validate frontmatter in staged memory .md files\n# Installed by Letta Code CLI\n\nAGENT_EDITABLE_KEYS=\"description\"\nPROTECTED_KEYS=\"read_only\"\nALL_KNOWN_KEYS=\"description read_only limit\"\nerrors=\"\"\n\nmemory_layout_policy_file=\"$(git rev-parse --git-common-dir 2>/dev/null)/letta-memory-layout-policy\"\nmemory_layout_policy=$(cat \"$memory_layout_policy_file\" 2>/dev/null || true)\n\nvalidate_memory_constraints() {\n if git cat-file -e \":.memfs.config.json\" 2>/dev/null || git cat-file -e \"HEAD:.memfs.config.json\" 2>/dev/null; then\n node \"$(git rev-parse --git-common-dir)/hooks/letta-memory-constraints.cjs\" || exit $?\n fi\n}\n\nvalidate_v2_file() {\n local file=\"$1\" staged first_line closing_line frontmatter line key value\n local has_name=false has_description=false\n staged=$(git show \":$file\")\n\n if [ \"${file##*/}\" = \"MEMORY.md\" ]; then\n first_line=$(echo \"$staged\" | head -1)\n if [ \"$first_line\" = \"---\" ]; then\n errors=\"$errors\\n $file: MEMORY.md must not have frontmatter\"\n fi\n return\n fi\n\n first_line=$(echo \"$staged\" | head -1)\n if [ \"$first_line\" != \"---\" ]; then\n errors=\"$errors\\n $file: missing frontmatter (must start with ---)\"\n return\n fi\n closing_line=$(echo \"$staged\" | tail -n +2 | grep -n '^---$' | head -1 | cut -d: -f1)\n if [ -z \"$closing_line\" ]; then\n errors=\"$errors\\n $file: frontmatter opened but never closed (missing closing ---)\"\n return\n fi\n frontmatter=$(echo \"$staged\" | tail -n +2 | head -n $((closing_line - 1)))\n\n while IFS= read -r line; do\n [ -z \"$line\" ] && continue\n key=$(echo \"$line\" | cut -d: -f1 | sed 's/^ *//;s/ *$//')\n value=$(echo \"$line\" | cut -d: -f2- | sed 's/^ *//;s/ *$//')\n case \"$key\" in\n name)\n if [ \"$has_name\" = \"true\" ]; then\n errors=\"$errors\\n $file: duplicate frontmatter key 'name'\"\n fi\n has_name=true\n ;;\n description)\n if [ \"$has_description\" = \"true\" ]; then\n errors=\"$errors\\n $file: duplicate frontmatter key 'description'\"\n fi\n has_description=true\n ;;\n *)\n errors=\"$errors\\n $file: unknown frontmatter key '$key' (allowed: name description)\"\n continue\n ;;\n esac\n if [ -z \"$value\" ] || [ \"$value\" = '\"\"' ] || [ \"$value\" = \"''\" ]; then\n errors=\"$errors\\n $file: '$key' must not be empty\"\n fi\n done <<< \"$frontmatter\"\n\n if [ \"$has_name\" = \"false\" ]; then\n errors=\"$errors\\n $file: missing required field 'name'\"\n fi\n if [ \"$has_description\" = \"false\" ]; then\n errors=\"$errors\\n $file: missing required field 'description'\"\n fi\n}\n\nuse_v2_validation=false\ncase \"$memory_layout_policy\" in\n shared-memory) use_v2_validation=true ;;\n root-marker)\n if git cat-file -e \":MEMORY.md\" 2>/dev/null; then\n use_v2_validation=true\n fi\n ;;\nesac\n\nif [ \"$use_v2_validation\" = \"true\" ]; then\n for file in $(git diff --cached --name-only --diff-filter=ACMR | grep -E '^skills/[^/]+\\.md$' || true); do\n errors=\"$errors\\n $file: invalid skill path (skills must be folders). Use skills/<name>/SKILL.md\"\n done\n\n while IFS= read -r file; do\n case \"$file\" in\n skills/*) continue ;;\n esac\n\n projected=true\n if [ \"$memory_layout_policy\" = \"root-marker\" ]; then\n case \"$file\" in\n */*)\n dir=${file%/*}\n while [ -n \"$dir\" ]; do\n if ! git cat-file -e \":$dir/MEMORY.md\" 2>/dev/null; then\n projected=false\n break\n fi\n case \"$dir\" in\n */*) dir=${dir%/*} ;;\n *) dir=\"\" ;;\n esac\n done\n ;;\n esac\n fi\n [ \"$projected\" = \"true\" ] && validate_v2_file \"$file\"\n done < <(git ls-files '*.md')\n\n if [ -n \"$errors\" ]; then\n echo \"Memory validation failed:\"\n echo -e \"$errors\"\n exit 1\n fi\n validate_memory_constraints\n exit 0\nfi\n\n# Skills must always be directories: skills/<name>/SKILL.md\n# Reject legacy flat skill files (both current and legacy repo layouts).\nfor file in $(git diff --cached --name-only --diff-filter=ACMR | grep -E '^(memory/)?skills/[^/]+\\.md$' || true); do\n errors=\"$errors\\n $file: invalid skill path (skills must be folders). Use skills/<name>/SKILL.md\"\ndone\n\n# Helper: extract a frontmatter value from content\nget_fm_value() {\n local content=\"$1\" key=\"$2\"\n local closing_line\n closing_line=$(echo \"$content\" | tail -n +2 | grep -n '^---$' | head -1 | cut -d: -f1)\n [ -z \"$closing_line\" ] && return\n echo \"$content\" | tail -n +2 | head -n $((closing_line - 1)) | grep \"^$key:\" | cut -d: -f2- | sed 's/^ *//;s/ *$//'\n}\n\n# Match .md files under system/ or reference/ (with optional memory/ prefix).\n# Skip skill SKILL.md files \u2014 they use a different frontmatter format.\nfor file in $(git diff --cached --name-only --diff-filter=ACM | grep -E '^(memory/)?(system|reference)/.*\\.md$'); do\n staged=$(git show \":$file\")\n\n # Frontmatter is required\n first_line=$(echo \"$staged\" | head -1)\n if [ \"$first_line\" != \"---\" ]; then\n errors=\"$errors\\n $file: missing frontmatter (must start with ---)\"\n continue\n fi\n\n # Check frontmatter is properly closed\n closing_line=$(echo \"$staged\" | tail -n +2 | grep -n '^---$' | head -1 | cut -d: -f1)\n if [ -z \"$closing_line\" ]; then\n errors=\"$errors\\n $file: frontmatter opened but never closed (missing closing ---)\"\n continue\n fi\n\n # Check read_only protection against HEAD version\n head_content=$(git show \"HEAD:$file\" 2>/dev/null || true)\n if [ -n \"$head_content\" ]; then\n head_ro=$(get_fm_value \"$head_content\" \"read_only\")\n if [ \"$head_ro\" = \"true\" ]; then\n errors=\"$errors\\n $file: file is read_only and cannot be modified\"\n continue\n fi\n fi\n\n # Extract frontmatter lines\n frontmatter=$(echo \"$staged\" | tail -n +2 | head -n $((closing_line - 1)))\n\n # Track required fields\n has_description=false\n\n # Validate each line\n while IFS= read -r line; do\n [ -z \"$line\" ] && continue\n # Skip YAML multiline continuation lines (indented lines that continue a previous value)\n case \"$line\" in\n \" \"*|$'\t'*) continue ;;\n esac\n\n key=$(echo \"$line\" | cut -d: -f1 | tr -d ' ')\n value=$(echo \"$line\" | cut -d: -f2- | sed 's/^ *//;s/ *$//')\n\n # Check key is known\n known=false\n for k in $ALL_KNOWN_KEYS; do\n if [ \"$key\" = \"$k\" ]; then\n known=true\n break\n fi\n done\n if [ \"$known\" = \"false\" ]; then\n errors=\"$errors\\n $file: unknown frontmatter key '$key' (allowed: $ALL_KNOWN_KEYS)\"\n continue\n fi\n\n # Check if agent is trying to modify a protected key\n for k in $PROTECTED_KEYS; do\n if [ \"$key\" = \"$k\" ]; then\n # Compare against HEAD \u2014 if value changed (or key was added), reject\n if [ -n \"$head_content\" ]; then\n head_val=$(get_fm_value \"$head_content\" \"$key\")\n if [ \"$value\" != \"$head_val\" ]; then\n errors=\"$errors\\n $file: '$key' is a protected field and cannot be changed by the agent\"\n fi\n else\n # New file with read_only \u2014 agent shouldn't set this\n errors=\"$errors\\n $file: '$key' is a protected field and cannot be set by the agent\"\n fi\n fi\n done\n\n # Validate value types\n case \"$key\" in\n limit)\n # Legacy field accepted for backward compatibility.\n ;;\n description)\n has_description=true\n if [ -z \"$value\" ]; then\n errors=\"$errors\\n $file: 'description' must not be empty\"\n fi\n ;;\n esac\n done <<< \"$frontmatter\"\n\n # Check required fields\n if [ \"$has_description\" = \"false\" ]; then\n errors=\"$errors\\n $file: missing required field 'description'\"\n fi\n\n # Check if protected keys were removed (existed in HEAD but not in staged)\n if [ -n \"$head_content\" ]; then\n for k in $PROTECTED_KEYS; do\n head_val=$(get_fm_value \"$head_content\" \"$k\")\n if [ -n \"$head_val\" ]; then\n staged_val=$(get_fm_value \"$staged\" \"$k\")\n if [ -z \"$staged_val\" ]; then\n errors=\"$errors\\n $file: '$k' is a protected field and cannot be removed by the agent\"\n fi\n fi\n done\n fi\ndone\n\nif [ -n \"$errors\" ]; then\n echo \"Frontmatter validation failed:\"\n echo -e \"$errors\"\n exit 1\nfi\nvalidate_memory_constraints\n";
|
|
26
24
|
export declare function installPreCommitHook(dir: string, allowRootMemoryLayout?: boolean): void;
|
|
25
|
+
/** Install memory validation for an attached shared repository. */
|
|
26
|
+
export declare function installSharedMemoryPreCommitHook(dir: string): void;
|
|
27
27
|
/**
|
|
28
28
|
* Bash post-commit hook that pushes memfs commits to an optional additional
|
|
29
29
|
* git remote (the "memory repository" endpoint).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-git-hooks.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-git-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"memory-git-hooks.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-git-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,0mRAkQlC,CAAC;AA2BF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,qBAAqB,UAAQ,GAC5B,IAAI,CAKN;AAED,mEAAmE;AACnE,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,y5BAoBnC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAWvD"}
|
|
@@ -69,6 +69,14 @@ export declare function getGitRemoteUrl(agentId: string, baseUrl?: string): stri
|
|
|
69
69
|
export declare function getRepositoryRemoteUrl(agentId: string, repositoryName: string, baseUrl?: string): string;
|
|
70
70
|
export declare function getRepositoryMountDir(agentId: string, repositoryName: string): string;
|
|
71
71
|
export declare function validateAgentRepositoryName(name: string): string;
|
|
72
|
+
interface RepositoryMountGitArgs {
|
|
73
|
+
agentId: string;
|
|
74
|
+
repositoryName: string;
|
|
75
|
+
directory: string;
|
|
76
|
+
remoteUrl: string;
|
|
77
|
+
token: string;
|
|
78
|
+
}
|
|
79
|
+
export declare function prepareAttachedRepositoryForGitOps(args: RepositoryMountGitArgs): Promise<void>;
|
|
72
80
|
/**
|
|
73
81
|
* Keep the local repo's `origin` URL aligned with the current server base URL.
|
|
74
82
|
*
|
|
@@ -76,11 +84,23 @@ export declare function validateAgentRepositoryName(name: string): string;
|
|
|
76
84
|
* this function is a no-op.
|
|
77
85
|
*/
|
|
78
86
|
export declare function maybeUpdateMemoryRemoteOrigin(repoDir: string, agentId: string): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a fresh auth token for git operations.
|
|
89
|
+
* Reuses the same token resolution flow as getClient()
|
|
90
|
+
* (env var → settings → OAuth refresh).
|
|
91
|
+
*/
|
|
92
|
+
export declare function getAuthToken(): Promise<string>;
|
|
79
93
|
export declare function buildGitAuthArgs(token: string, env?: NodeJS.ProcessEnv): string[];
|
|
80
94
|
export declare function isMemfsGitNetworkCommand(args: string[]): boolean;
|
|
81
95
|
export declare function buildMemfsGitProxyArgs(args: string[], env?: NodeJS.ProcessEnv): string[];
|
|
82
96
|
export declare function shouldConfigurePersistentMemfsCredentialHelper(env?: NodeJS.ProcessEnv): boolean;
|
|
83
97
|
export declare function buildNonInteractiveGitEnv(env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
98
|
+
export declare function runGit(cwd: string, args: string[], token?: string, options?: {
|
|
99
|
+
timeoutMs?: number;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
stdout: string;
|
|
102
|
+
stderr: string;
|
|
103
|
+
}>;
|
|
84
104
|
/**
|
|
85
105
|
* Returns true when a git error looks transient/retryable (network/edge).
|
|
86
106
|
*
|
|
@@ -89,6 +109,15 @@ export declare function buildNonInteractiveGitEnv(env?: NodeJS.ProcessEnv): Node
|
|
|
89
109
|
*/
|
|
90
110
|
export declare function isRetryableGitTransientError(error: unknown): boolean;
|
|
91
111
|
export declare function isMissingCwdGitError(error: unknown): boolean;
|
|
112
|
+
export declare function runGitWithRetry(cwd: string, args: string[], token?: string, options?: {
|
|
113
|
+
operation?: string;
|
|
114
|
+
attempts?: number;
|
|
115
|
+
baseDelayMs?: number;
|
|
116
|
+
timeoutMs?: number;
|
|
117
|
+
}): Promise<{
|
|
118
|
+
stdout: string;
|
|
119
|
+
stderr: string;
|
|
120
|
+
}>;
|
|
92
121
|
/** Read a local-scoped git config value. Null when unset; reads take no lock. */
|
|
93
122
|
export declare function getLocalGitConfig(dir: string, key: string): Promise<string | null>;
|
|
94
123
|
/** Set a local-scoped git config value. Serialized per repo. */
|
|
@@ -122,6 +151,7 @@ export declare function pushToMemoryRepository(agentId: string): Promise<MemoryR
|
|
|
122
151
|
* Used by `/memory-repository status`.
|
|
123
152
|
*/
|
|
124
153
|
export declare function readMemoryRepositoryPushLog(agentId: string, tailLines?: number): string;
|
|
154
|
+
export declare function isNonFastForwardPushError(error: unknown): boolean;
|
|
125
155
|
export declare function assertMemoryRepoCleanForWrite(memoryDir: string): Promise<void>;
|
|
126
156
|
export declare function commitMemoryWrite(params: CommitMemoryWriteParams): Promise<CommitMemoryWriteResult>;
|
|
127
157
|
export declare function isGitRepo(agentId: string): boolean;
|
|
@@ -137,17 +167,12 @@ export interface InitializeLocalMemoryRepoParams {
|
|
|
137
167
|
}
|
|
138
168
|
export declare function getMemoryHeadRevision(memoryDir: string): Promise<string | null>;
|
|
139
169
|
export declare function initializeLocalMemoryRepo(params: InitializeLocalMemoryRepoParams): Promise<void>;
|
|
140
|
-
export interface AttachedAgentRepository {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
}
|
|
144
170
|
export interface SyncAgentRepositoriesResult {
|
|
145
171
|
mounted: number;
|
|
146
172
|
skipped: number;
|
|
147
173
|
failed: number;
|
|
148
174
|
summaries: string[];
|
|
149
175
|
}
|
|
150
|
-
export declare function listAttachedAgentRepositories(agentId: string): Promise<AttachedAgentRepository[]>;
|
|
151
176
|
export declare function syncAttachedAgentRepositories(agentId: string): Promise<SyncAgentRepositoriesResult>;
|
|
152
177
|
/**
|
|
153
178
|
* Clone the agent's state repo into the memory directory.
|
|
@@ -191,6 +216,11 @@ export interface MemoryPostTurnSyncResult {
|
|
|
191
216
|
* Used to decide whether to inject a sync reminder.
|
|
192
217
|
*/
|
|
193
218
|
export declare function getMemoryGitStatus(agentId: string): Promise<MemoryGitStatus>;
|
|
219
|
+
export declare function getMemoryConflictSummary(memoryDir: string, statusOut?: string): Promise<string | null>;
|
|
220
|
+
export declare function getMemoryAheadBehind(memoryDir: string): Promise<{
|
|
221
|
+
ahead: number;
|
|
222
|
+
behind: number;
|
|
223
|
+
} | null>;
|
|
194
224
|
export declare function syncPendingMemoryCommitsAfterTurn(agentId: string, options?: {
|
|
195
225
|
memoryDir?: string;
|
|
196
226
|
}): Promise<MemoryPostTurnSyncResult>;
|
|
@@ -201,4 +231,5 @@ export declare function syncPendingMemoryCommitsAfterTurn(agentId: string, optio
|
|
|
201
231
|
export declare function addGitMemoryTag(agentId: string, prefetchedAgent?: {
|
|
202
232
|
tags?: string[] | null;
|
|
203
233
|
}): Promise<void>;
|
|
234
|
+
export {};
|
|
204
235
|
//# sourceMappingURL=memory-git.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-git.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"memory-git.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAqDH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAMD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASpE;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE;AAgBD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYzD;AA0BD;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAA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ED,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,QAAQ,GACR,OAAO,GACP,UAAU,GACV,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,eAAe,CAAC,CAoC1B;AAYD,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA2CxB;AAED,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAiBnD;AAED,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAwInC;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,eAAe,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAAE,GAC3C,OAAO,CAAC,IAAI,CAAC,CAuBf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttachedAgentRepository } from "./
|
|
1
|
+
import type { AttachedAgentRepository } from "./attached-repositories";
|
|
2
2
|
import { type SkillDiscoveryError, type SkillDiscoveryResult, type SkillSource } from "./skills";
|
|
3
3
|
export declare function invalidateAttachedRepositoriesCache(agentId?: string): void;
|
|
4
4
|
export interface SharedMemorySkillsContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-memory-skills.d.ts","sourceRoot":"","sources":["../../../src/agent/shared-memory-skills.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shared-memory-skills.d.ts","sourceRoot":"","sources":["../../../src/agent/shared-memory-skills.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AA0BlB,wBAAgB,mCAAmC,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAM1E;AAiCD,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAsB,gCAAgC,CAAC,OAAO,EAAE;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D,GAAG,OAAO,CAAC,yBAAyB,CAAC,CA8DrC;AAED,wBAAsB,0BAA0B,CAC9C,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,oBAAoB,CAAC,CAwC/B"}
|
|
@@ -6,7 +6,6 @@ export declare const DEFAULT_PI_PROVIDER = "openai";
|
|
|
6
6
|
export declare const UNSELECTED_LOCAL_MODEL_HANDLE = "local/default";
|
|
7
7
|
export type { PiProvider } from "./pi-provider-registry";
|
|
8
8
|
export declare function isUnselectedLocalModelHandle(model: unknown): boolean;
|
|
9
|
-
export declare function patchTemporaryPiAiOpenRouterThinkingMap<TApi extends Api>(model: Model<TApi>): Model<TApi>;
|
|
10
9
|
export declare function reasoningForSettings(modelSettings: Record<string, unknown>, modelHandle?: string, model?: Model<Api>): ThinkingLevel | undefined;
|
|
11
10
|
export interface PiModelSettings {
|
|
12
11
|
provider_type?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi-model-factory.d.ts","sourceRoot":"","sources":["../../../../src/backend/dev/pi-model-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EAER,KAAK,KAAK,EAEV,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"pi-model-factory.d.ts","sourceRoot":"","sources":["../../../../src/backend/dev/pi-model-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EAER,KAAK,KAAK,EAEV,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAM3D,OAAO,EAML,KAAK,UAAU,EAIhB,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,mBAAmB,WAAgC,CAAC;AACjE,eAAO,MAAM,6BAA6B,kBAAkB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQpE;AA2DD,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,WAAW,CAAC,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GACjB,aAAa,GAAG,SAAS,CAoC3B;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,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AO,EAAE;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC;IAC7C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,aAAa,CAmEhB;AA6FD,wBAAsB,sBAAsB,CAC1C,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,aAAa,GAAE,eAAoB,EACnC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,eAAe,CAAC,CAuM1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-model-config.d.ts","sourceRoot":"","sources":["../../../../src/backend/local/local-model-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"local-model-config.d.ts","sourceRoot":"","sources":["../../../../src/backend/local/local-model-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,UAAU,EACf,6BAA6B,EAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAOvE,OAAO,EAIL,gBAAgB,EAChB,iBAAiB,EAEjB,iBAAiB,EAIlB,MAAM,oCAAoC,CAAC;AAO5C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,UAAU,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC;AAEzC,UAAU,mBAAmB;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MA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AAE,sBAA2B,kCAgKrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/skill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/skill.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AA6B7E,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D;AA6DD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;CACrB,GAAG,MAAM,CAUT;AAsDD;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAqF5C;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAS5D;AAcD,MAAM,WAAW,yBAAyB;IACxC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,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