@letta-ai/letta-code 0.34.24 → 0.34.26
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/cursor-worker.js +167 -0
- package/dist/agent-presets.js +1 -64
- package/dist/agent-presets.js.map +2 -2
- package/dist/channels-slack.js +30 -24
- package/dist/channels-slack.js.map +3 -3
- package/dist/mcp-client.js +233 -75
- package/dist/mcp-client.js.map +9 -9
- package/dist/mcp-oauth.js +233 -75
- package/dist/mcp-oauth.js.map +9 -9
- package/dist/types/agent/subagents/index.d.ts +4 -0
- package/dist/types/agent/subagents/index.d.ts.map +1 -1
- package/dist/types/agent/subagents/manager.d.ts.map +1 -1
- package/dist/types/agent/subagents/memory-worker.d.ts +2 -8
- package/dist/types/agent/subagents/memory-worker.d.ts.map +1 -1
- package/dist/types/backend/api/providers.d.ts +8 -2
- package/dist/types/backend/api/providers.d.ts.map +1 -1
- package/dist/types/backend/api/schedules.d.ts +2 -2
- package/dist/types/backend/api/schedules.d.ts.map +1 -1
- package/dist/types/backend/backend.d.ts +5 -2
- package/dist/types/backend/backend.d.ts.map +1 -1
- package/dist/types/backend/dev/fake-headless-backend.d.ts +2 -1
- package/dist/types/backend/dev/fake-headless-backend.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
- package/dist/types/backend/local/local-provider-auth-store.d.ts +2 -0
- package/dist/types/backend/local/local-provider-auth-store.d.ts.map +1 -1
- package/dist/types/backend/local/local-transcript-history.d.ts +10 -0
- package/dist/types/backend/local/local-transcript-history.d.ts.map +1 -0
- package/dist/types/backend/local/local-transcript.d.ts +6 -0
- package/dist/types/backend/local/local-transcript.d.ts.map +1 -1
- package/dist/types/channels/slack/attachment-primitives.d.ts +2 -1
- package/dist/types/channels/slack/attachment-primitives.d.ts.map +1 -1
- package/dist/types/cli/subcommands/mcp.d.ts +2 -2
- package/dist/types/cli/subcommands/mcp.d.ts.map +1 -1
- package/dist/types/cron/process-identity.d.ts.map +1 -1
- package/dist/types/cron/run-log.d.ts +1 -0
- package/dist/types/cron/run-log.d.ts.map +1 -1
- package/dist/types/headless-environment-response.d.ts +27 -0
- package/dist/types/headless-environment-response.d.ts.map +1 -1
- package/dist/types/providers/byok-providers.d.ts +14 -0
- package/dist/types/providers/byok-providers.d.ts.map +1 -1
- package/dist/types/tools/impl/claude-stream-session.d.ts.map +1 -1
- package/dist/types/tools/impl/codex-app-server.d.ts.map +1 -1
- package/dist/types/tools/impl/cursor-session.d.ts +26 -0
- package/dist/types/tools/impl/cursor-session.d.ts.map +1 -0
- package/dist/types/tools/impl/cursor-worker.d.ts +32 -0
- package/dist/types/tools/impl/cursor-worker.d.ts.map +1 -0
- package/dist/types/tools/impl/external-coding-agent-task.d.ts.map +1 -1
- package/dist/types/tools/impl/external-coding-agent.d.ts +1 -1
- package/dist/types/tools/impl/external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts +2 -2
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts.map +1 -1
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/send-agent-message.d.ts.map +1 -1
- package/dist/types/tools/impl/task.d.ts.map +1 -1
- package/dist/types/tools/impl/wake.d.ts +4 -2
- package/dist/types/tools/impl/wake.d.ts.map +1 -1
- package/dist/types/tools/workflow/sdk-spawner.d.ts.map +1 -1
- package/dist/types/utils/native-cli-env.d.ts +3 -0
- package/dist/types/utils/native-cli-env.d.ts.map +1 -0
- package/dist/types/utils/process-liveness.d.ts +9 -0
- package/dist/types/utils/process-liveness.d.ts.map +1 -1
- package/letta.js +3553 -2911
- package/npm-shrinkwrap.json +291 -117
- package/package.json +5 -3
- package/scripts/agent-watch/verify-pr-identity.test.ts +148 -0
- package/scripts/agent-watch/verify-pr-identity.ts +72 -14
- package/scripts/claude-watch/agent-watch.ts +8 -2
- package/scripts/claude-watch/release-source.test.ts +120 -0
- package/scripts/claude-watch/release-source.ts +79 -9
- package/scripts/codex-watch/agent-watch.ts +2 -2
- package/scripts/codex-watch/release-analysis.test.ts +180 -4
- package/scripts/codex-watch/release-analysis.ts +65 -8
- package/scripts/source-file-size-baseline.json +5 -4
- package/skills/initializing-memory/SKILL.md +1 -1
- package/skills/maintaining-deferred-memory/SKILL.md +2 -0
- package/skills/managing-agent-webhooks/SKILL.md +23 -3
- package/skills/managing-agent-webhooks/scripts/manage-agent-webhooks.mjs +40 -11
- package/skills/self-configuration/SKILL.md +1 -1
- package/skills/syncing-memory-filesystem/SKILL.md +2 -10
- package/dist/types/agent/memory-worktree.d.ts +0 -83
- package/dist/types/agent/memory-worktree.d.ts.map +0 -1
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export interface ReflectionMemoryWorktree {
|
|
2
|
-
id: string;
|
|
3
|
-
parentMemoryDir: string;
|
|
4
|
-
worktreeBaseDir: string;
|
|
5
|
-
worktreeDir: string;
|
|
6
|
-
branchName: string;
|
|
7
|
-
baseHead: string;
|
|
8
|
-
gitCommonDir: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CreateReflectionMemoryWorktreeOptions {
|
|
11
|
-
parentMemoryDir: string;
|
|
12
|
-
now?: Date;
|
|
13
|
-
/** Directory and branch prefix; memory workers use "memory-worker". */
|
|
14
|
-
label?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function createReflectionMemoryWorktree(options: CreateReflectionMemoryWorktreeOptions): Promise<ReflectionMemoryWorktree>;
|
|
17
|
-
export interface ReflectionMemoryScope {
|
|
18
|
-
primaryRoot: string;
|
|
19
|
-
writableRoots: string[];
|
|
20
|
-
readonlyRoots: string[];
|
|
21
|
-
}
|
|
22
|
-
export declare function buildReflectionMemoryScope(worktree: ReflectionMemoryWorktree): ReflectionMemoryScope;
|
|
23
|
-
export declare function buildReflectionIntegrationMemoryScope(worktree: ReflectionMemoryWorktree): ReflectionMemoryScope;
|
|
24
|
-
export type ReflectionMemoryWorktreeFinalizeStatus = "merged" | "no_changes" | "parent_dirty" | "merge_conflict" | "dirty_uncommitted" | "failed";
|
|
25
|
-
export interface ReflectionMemoryWorktreeFinalizeResult {
|
|
26
|
-
status: ReflectionMemoryWorktreeFinalizeStatus;
|
|
27
|
-
parentMemoryDir: string;
|
|
28
|
-
reflectionWorktreeDir: string;
|
|
29
|
-
reflectionBranch: string;
|
|
30
|
-
commitCount: number;
|
|
31
|
-
head?: string;
|
|
32
|
-
summary: string;
|
|
33
|
-
error?: string;
|
|
34
|
-
failurePhase?: "reflection" | "integration";
|
|
35
|
-
}
|
|
36
|
-
export declare function reflectionIntegrationConsumesTranscript(result: ReflectionMemoryWorktreeFinalizeResult): boolean;
|
|
37
|
-
export declare function reflectionIntegrationShouldRecompile(result: ReflectionMemoryWorktreeFinalizeResult): boolean;
|
|
38
|
-
export declare function reflectionMemoryParentHasChanges(parentMemoryDir: string): Promise<boolean>;
|
|
39
|
-
export interface ReflectionMemoryWorktreeState {
|
|
40
|
-
commitCount: number;
|
|
41
|
-
dirty: boolean;
|
|
42
|
-
head?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare function inspectReflectionMemoryWorktree(worktree: ReflectionMemoryWorktree): Promise<ReflectionMemoryWorktreeState>;
|
|
45
|
-
/** Finalize without taking the checkout lease; the caller must already hold it. */
|
|
46
|
-
export declare function finalizeReflectionMemoryWorktreeUnlocked(worktree: ReflectionMemoryWorktree, options: ReflectionMemoryWorktreeFinalizeOptions): Promise<ReflectionMemoryWorktreeFinalizeResult>;
|
|
47
|
-
export declare function finalizeReflectionMemoryWorktree(worktree: ReflectionMemoryWorktree, options: ReflectionMemoryWorktreeFinalizeOptions): Promise<ReflectionMemoryWorktreeFinalizeResult>;
|
|
48
|
-
export type MemoryWorkerWorktreeOutcome = {
|
|
49
|
-
status: "merged";
|
|
50
|
-
commitCount: number;
|
|
51
|
-
head: string;
|
|
52
|
-
} | {
|
|
53
|
-
status: "no_changes";
|
|
54
|
-
} | {
|
|
55
|
-
status: "discarded";
|
|
56
|
-
} | {
|
|
57
|
-
status: "merge_conflict";
|
|
58
|
-
commitCount: number;
|
|
59
|
-
branchName: string;
|
|
60
|
-
} | {
|
|
61
|
-
status: "failed";
|
|
62
|
-
error: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Bring a memory worker's worktree back into the parent checkout. The caller
|
|
66
|
-
* must hold the checkout lease. Commits are merged (fast-forward when
|
|
67
|
-
* possible); uncommitted edits in the worktree are dropped, as are all edits
|
|
68
|
-
* when `discard` is set (a cancelled worker). A merge that conflicts with the
|
|
69
|
-
* parent's own changes is aborted and the branch is kept so nothing is lost.
|
|
70
|
-
* Unlike reflection, a dirty parent does not block the merge: Git refuses only
|
|
71
|
-
* when the parent's uncommitted files overlap the worker's commits, and that
|
|
72
|
-
* surfaces as a conflict here.
|
|
73
|
-
*/
|
|
74
|
-
export declare function integrateMemoryWorkerWorktree(worktree: ReflectionMemoryWorktree, options?: {
|
|
75
|
-
discard?: boolean;
|
|
76
|
-
}): Promise<MemoryWorkerWorktreeOutcome>;
|
|
77
|
-
export interface ReflectionMemoryWorktreeFinalizeOptions {
|
|
78
|
-
shouldMerge: boolean;
|
|
79
|
-
knownNoChanges?: boolean;
|
|
80
|
-
failureSummary?: string;
|
|
81
|
-
requireAlreadyMerged?: boolean;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=memory-worktree.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memory-worktree.d.ts","sourceRoot":"","sources":["../../../src/agent/memory-worktree.ts"],"names":[],"mappings":"AA2GA,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qCAAq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