@rynfar/meridian 1.61.0 → 1.62.1
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/README.md +2 -1
- package/dist/{cli-tbhba0cv.js → cli-fyhd8np7.js} +399 -72
- package/dist/cli.js +1 -1
- package/dist/proxy/adapters/detect.d.ts.map +1 -1
- package/dist/proxy/adapters/prime.d.ts +99 -0
- package/dist/proxy/adapters/prime.d.ts.map +1 -0
- package/dist/proxy/errors.d.ts +65 -5
- package/dist/proxy/errors.d.ts.map +1 -1
- package/dist/proxy/messages.d.ts.map +1 -1
- package/dist/proxy/plugins/validation.d.ts.map +1 -1
- package/dist/proxy/sdkFeatures.d.ts.map +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/proxy/session/cache.d.ts.map +1 -1
- package/dist/proxy/session/lineage.d.ts +58 -0
- package/dist/proxy/session/lineage.d.ts.map +1 -1
- package/dist/proxy/transform.d.ts +33 -0
- package/dist/proxy/transform.d.ts.map +1 -1
- package/dist/proxy/transforms/prime.d.ts +3 -0
- package/dist/proxy/transforms/prime.d.ts.map +1 -0
- package/dist/proxy/transforms/registry.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/telemetry/landing.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/proxy/adapters/detect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/proxy/adapters/detect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AA4C9C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,EAAE,CAE3C;AA2DD,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,YAAY,CA2FtD"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prime Agent adapter.
|
|
3
|
+
*
|
|
4
|
+
* Prime Agent (npm `prime-agent`) is a FORK of Pi, not Pi. Its dependencies are
|
|
5
|
+
* `@earendil-works/pi-agent-core` / `pi-ai` / `pi-tui` — republished Pi packages
|
|
6
|
+
* — and its transport layer is Pi's unchanged: the official `@anthropic-ai/sdk`,
|
|
7
|
+
* `stream: true` on every request, the same OAuth-vs-API-key client branch.
|
|
8
|
+
*
|
|
9
|
+
* Everything above the transport differs, which is why it gets its own adapter
|
|
10
|
+
* rather than riding Pi's. Measured on 2026-08-12 by capturing real traffic
|
|
11
|
+
* against a local recording server (prime-agent 0.7.2):
|
|
12
|
+
*
|
|
13
|
+
* - User-Agent (API-key mode): `Anthropic/JS <version>` — NOT `claude-cli/`.
|
|
14
|
+
* - No session header, and no `metadata` on the wire by default.
|
|
15
|
+
* - Exactly ONE tool is offered: `ipython` ({ code: string }). Not Pi's
|
|
16
|
+
* read/write/edit/bash/glob/grep. `bash` and `edit` exist only when a user
|
|
17
|
+
* opts into them with `-t`.
|
|
18
|
+
* - System prompt ~17-19KB, one text block, opening "You are a general purpose
|
|
19
|
+
* agent that uses code to solve tasks."
|
|
20
|
+
* - CWD arrives as `Working directory: <path>` — no `Current` prefix.
|
|
21
|
+
*
|
|
22
|
+
* Detection: the User-Agent is the generic Anthropic SDK one, shared with every
|
|
23
|
+
* other SDK client, so a UA heuristic would misroute unrelated traffic. Select
|
|
24
|
+
* with `x-meridian-agent: prime` (set in the provider config) or
|
|
25
|
+
* `MERIDIAN_DEFAULT_AGENT=prime`. Running Prime Agent with an OAuth token makes
|
|
26
|
+
* it send `claude-cli/<version>`, which the existing env-var tiebreaker in
|
|
27
|
+
* detect.ts already resolves.
|
|
28
|
+
*/
|
|
29
|
+
import type { AgentAdapter } from "../adapter";
|
|
30
|
+
import { type FileChange } from "../fileChanges";
|
|
31
|
+
/**
|
|
32
|
+
* Internal-mode fallback tools.
|
|
33
|
+
*
|
|
34
|
+
* Prime Agent's real tool is `ipython`, a persistent kernel living in the
|
|
35
|
+
* client — the proxy cannot provide it over MCP. Passthrough is therefore the
|
|
36
|
+
* only mode in which Prime Agent works as designed. This set exists so that a
|
|
37
|
+
* user who explicitly sets MERIDIAN_PASSTHROUGH=0 still gets a usable file/shell
|
|
38
|
+
* surface rather than nothing, and is documented as a degraded mode.
|
|
39
|
+
*/
|
|
40
|
+
declare const PRIME_ALLOWED_MCP_TOOLS: readonly string[];
|
|
41
|
+
/**
|
|
42
|
+
* Extract the client's working directory from Prime Agent's system prompt.
|
|
43
|
+
*
|
|
44
|
+
* Both patterns are anchored to start-of-line. In harness-generated text that
|
|
45
|
+
* anchoring is not currently load-bearing — a capture of the real prompt
|
|
46
|
+
* contains exactly one `Working directory:` occurrence and it is already at
|
|
47
|
+
* line start (the prompt does discuss "the working directory" in prose, but
|
|
48
|
+
* lowercase and without a colon, so it never matched either way).
|
|
49
|
+
*
|
|
50
|
+
* The anchor guards user-supplied content instead. Project context files are
|
|
51
|
+
* inlined into this same prompt under `# Project Context`, so an AGENTS.md that
|
|
52
|
+
* quotes the line mid-sentence — "set Working directory: /tmp/example first" —
|
|
53
|
+
* would otherwise be read as the client's real cwd.
|
|
54
|
+
*
|
|
55
|
+
* `Working directory:` is tried first because in the common (default-prompt)
|
|
56
|
+
* case it sits at line 5, ahead of any user content that might introduce the
|
|
57
|
+
* other spelling. The customPrompt branch emits no such line, so it falls
|
|
58
|
+
* through to `Current working directory:`.
|
|
59
|
+
*/
|
|
60
|
+
declare function extractPrimeCwd(body: any): string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Map an `ipython` cell to file changes.
|
|
63
|
+
*
|
|
64
|
+
* Handles the two forms that are cheap to read accurately:
|
|
65
|
+
*
|
|
66
|
+
* 1. `%%bash` cells. A cell magic must be the first line of the cell (Prime
|
|
67
|
+
* Agent's own prompt states this), so the whole remaining cell is shell
|
|
68
|
+
* and goes through the existing bash extractor.
|
|
69
|
+
* 2. `edit(path=...)` calls and `!cmd` shell escapes inside a Python cell.
|
|
70
|
+
*
|
|
71
|
+
* It deliberately does NOT parse arbitrary Python writes — `open(p, "w")`,
|
|
72
|
+
* `Path.write_text`, library calls, anything behind a variable. That would need
|
|
73
|
+
* real dataflow analysis, and a parser that silently half-works is worse than a
|
|
74
|
+
* documented gap: file-change summaries are a reporting nicety here, not
|
|
75
|
+
* correctness. The limitation is stated in docs/agents.md.
|
|
76
|
+
*/
|
|
77
|
+
declare function extractFileChangesFromIpythonCell(code: string): FileChange[];
|
|
78
|
+
/**
|
|
79
|
+
* Map a client-side tool_use block to file changes.
|
|
80
|
+
*
|
|
81
|
+
* In passthrough mode the SDK never executes tools, so PostToolUse hooks never
|
|
82
|
+
* fire and file changes have to be read back out of the conversation.
|
|
83
|
+
*
|
|
84
|
+
* `ipython` is the only tool Prime Agent offers by default; `bash` and `edit`
|
|
85
|
+
* appear only when a user opts into them with `-t`.
|
|
86
|
+
*
|
|
87
|
+
* Shared with transforms/prime.ts so the two cannot drift.
|
|
88
|
+
*/
|
|
89
|
+
declare function extractPrimeFileChanges(toolName: string, toolInput: unknown): FileChange[];
|
|
90
|
+
export declare const primeAdapter: AgentAdapter;
|
|
91
|
+
/**
|
|
92
|
+
* Exported so transforms/prime.ts can share the exact same implementations
|
|
93
|
+
* rather than keeping a hand-copied duplicate in step (the transform-parity
|
|
94
|
+
* test catches drift, but not sharing is simply better). The import direction
|
|
95
|
+
* is transforms → adapters, matching transforms/cherry.ts; the adapter
|
|
96
|
+
* deliberately does NOT re-export primeTransforms, which would close the cycle.
|
|
97
|
+
*/
|
|
98
|
+
export { extractPrimeCwd, extractFileChangesFromIpythonCell, extractPrimeFileChanges, PRIME_ALLOWED_MCP_TOOLS, };
|
|
99
|
+
//# sourceMappingURL=prime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prime.d.ts","sourceRoot":"","sources":["../../../src/proxy/adapters/prime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,KAAK,UAAU,EAA8B,MAAM,gBAAgB,CAAA;AAQ5E;;;;;;;;GAQG;AACH,QAAA,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAO7C,CAAA;AAiBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CActD;AAYD;;;;;;;;;;;;;;;GAeG;AACH,iBAAS,iCAAiC,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAuBrE;AAED;;;;;;;;;;GAUG;AACH,iBAAS,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,CAkBnF;AAED,eAAO,MAAM,YAAY,EAAE,YAoH1B,CAAA;AAED;;;;;;GAMG;AACH,OAAO,EACL,eAAe,EACf,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,GACxB,CAAA"}
|
package/dist/proxy/errors.d.ts
CHANGED
|
@@ -54,11 +54,30 @@ export declare function classifyError(errMsg: string, model?: string): Classifie
|
|
|
54
54
|
*/
|
|
55
55
|
export declare function isExpiredTokenError(errMsg: string): boolean;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* the
|
|
57
|
+
* Why the CLI refused a --resume, as far as the refusal itself can tell:
|
|
58
|
+
*
|
|
59
|
+
* - "busy": the session exists and is registered as a running agent. It can
|
|
60
|
+
* be branched, so a caller out of retries may fork it.
|
|
61
|
+
* - "unresumable": the session as a whole could not be opened. This is not
|
|
62
|
+
* proof that it is gone — a --resume landing while the session's previous
|
|
63
|
+
* subprocess is still exiting is refused although the session is intact —
|
|
64
|
+
* so a caller must retry before giving up on it, and has nothing to fork.
|
|
65
|
+
* - "missing-message": one message inside the session is gone, so an
|
|
66
|
+
* identical attempt fails identically. Retrying is pointless.
|
|
67
|
+
*
|
|
68
|
+
* The three carry different recoveries, which is the whole reason they are
|
|
69
|
+
* one verdict rather than scattered text matches at each call site.
|
|
60
70
|
*/
|
|
61
|
-
export
|
|
71
|
+
export type ResumeRefusal = "busy" | "unresumable" | "missing-message";
|
|
72
|
+
/**
|
|
73
|
+
* Classify a resume failure. Returns undefined for anything that is not a
|
|
74
|
+
* refusal of the resume itself (rate limits, auth, upstream faults), which
|
|
75
|
+
* the caller handles on its own paths.
|
|
76
|
+
*
|
|
77
|
+
* The busy refusal text arrives on stderr — the SDK error itself only carries
|
|
78
|
+
* the exit code — so captured stderr is part of the input.
|
|
79
|
+
*/
|
|
80
|
+
export declare function classifyResumeRefusal(error: unknown, stderr?: string): ResumeRefusal | undefined;
|
|
62
81
|
/**
|
|
63
82
|
* Detect the CLI's bg-agent resume refusal (#630). With
|
|
64
83
|
* CLAUDE_CODE_SESSION_KIND=bg (#628 scratchpad suppression) every SDK
|
|
@@ -73,6 +92,20 @@ export declare function isBusySessionError(error: unknown, stderr?: string): boo
|
|
|
73
92
|
* Used by server.ts to decide whether to retry with a smaller context window.
|
|
74
93
|
*/
|
|
75
94
|
export declare function isRateLimitError(errMsg: string): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Whether a classified error type means "this account cannot serve the
|
|
97
|
+
* request, another one might". Used by priority routing to decide failover.
|
|
98
|
+
*/
|
|
99
|
+
export declare function isAccountFailoverError(errorType: string | null | undefined): errorType is string;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the refusal is the quota kind, which names its own reset — the two
|
|
102
|
+
* cooldown tiers read the account's five-hour window, and only this kind has
|
|
103
|
+
* anything to look up there. Lives beside the set so the type name stays
|
|
104
|
+
* owned by one module: a rename that missed a caller in the orchestrator would
|
|
105
|
+
* not break failover loudly, it would silently downgrade every quota cooldown
|
|
106
|
+
* to the conservative default.
|
|
107
|
+
*/
|
|
108
|
+
export declare function isQuotaRefusal(errorType: string | null | undefined): boolean;
|
|
76
109
|
/**
|
|
77
110
|
* Detect errors caused by the 1M context window requiring Extra Usage.
|
|
78
111
|
* Max subscribers without Extra Usage enabled get this error when using
|
|
@@ -86,11 +119,13 @@ export declare function isExtraUsageRequiredError(errMsg: string): boolean;
|
|
|
86
119
|
* collapses into a generic api_error.
|
|
87
120
|
*/
|
|
88
121
|
export interface SdkTermination {
|
|
89
|
-
reason: "max_turns" | "process_exit" | "aborted" | "unknown";
|
|
122
|
+
reason: "max_turns" | "process_exit" | "aborted" | "upstream_idle" | "unknown";
|
|
90
123
|
/** Turn count when reason=max_turns and parseable. */
|
|
91
124
|
turns?: number;
|
|
92
125
|
/** Exit code when reason=process_exit and parseable. */
|
|
93
126
|
exitCode?: number;
|
|
127
|
+
/** Milliseconds the upstream was silent, when reason=upstream_idle. */
|
|
128
|
+
idleMs?: number;
|
|
94
129
|
/** Captured "Subprocess stderr: …" tail (truncated). */
|
|
95
130
|
stderrTail?: string;
|
|
96
131
|
/** Truncated raw error message — set only when reason="unknown" so the log
|
|
@@ -105,6 +140,31 @@ export interface SdkTermination {
|
|
|
105
140
|
* Returns reason="unknown" when the message doesn't match any recognized
|
|
106
141
|
* pattern; callers can still log it with whatever surrounding context they have.
|
|
107
142
|
*/
|
|
143
|
+
/**
|
|
144
|
+
* Can a failed passthrough turn still be delivered as a tool-use response?
|
|
145
|
+
*
|
|
146
|
+
* When the PreToolUse hook already captured tool calls, the client has
|
|
147
|
+
* everything it needs to run them and drive the next turn — so a terminated
|
|
148
|
+
* turn can end as a normal `stop_reason: "tool_use"` instead of a 500 with the
|
|
149
|
+
* calls thrown away.
|
|
150
|
+
*
|
|
151
|
+
* `upstream_idle` qualifies for exactly the same reason as `max_turns` (#770):
|
|
152
|
+
* the stall killed the stream, not the work already captured. Dropping those
|
|
153
|
+
* calls is what leaves the model resuming against its own unfulfilled promise
|
|
154
|
+
* and reporting that it "forgot".
|
|
155
|
+
*
|
|
156
|
+
* `abortIsOurs` exists because the two call sites disagree, deliberately: the
|
|
157
|
+
* streaming path accepts an abort only when meridian raised it (a duplicate
|
|
158
|
+
* tool_use or an early stop), since a client disconnect must never be recorded
|
|
159
|
+
* as a recovered success. The non-streaming path has no client-disconnect abort
|
|
160
|
+
* to distinguish and passes true.
|
|
161
|
+
*/
|
|
162
|
+
export declare function canRecoverCapturedToolUses(input: {
|
|
163
|
+
reason: SdkTermination["reason"];
|
|
164
|
+
passthrough: boolean;
|
|
165
|
+
capturedToolUses: number;
|
|
166
|
+
abortIsOurs: boolean;
|
|
167
|
+
}): boolean;
|
|
108
168
|
export declare function extractSdkTermination(errMsg: string): SdkTermination;
|
|
109
169
|
/**
|
|
110
170
|
* Render an SdkTermination plus request context as a single greppable log line.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/proxy/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAc1D;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/proxy/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;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yEAAyE;AACzE,eAAO,MAAM,gBAAgB,aAAyC,CAAA;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iCAAiC,CAC/C,CAAC,SAAS;IAAE,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,EAC3C,UAAU,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAyCtB;AAED,kEAAkE;AAClE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,8EAA8E;IAC9E,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B;;;;;;;OAOG;IACH,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC;AA4FD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAG,CAAA;CAAE,CAAC,GAC9C,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAyB3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAO3D;AA6BD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAQzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/proxy/plugins/validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/proxy/plugins/validation.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAoCrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdkFeatures.d.ts","sourceRoot":"","sources":["../../src/proxy/sdkFeatures.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,gBAAgB,EAAE,OAAO,CAAA;IACzB,kFAAkF;IAClF,kBAAkB,EAAE,OAAO,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;IACpC,wDAAwD;IACxD,MAAM,EAAE,OAAO,CAAA;IACf,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAA;IACjB,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;IAC7C,4CAA4C;IAC5C,mBAAmB,EAAE,OAAO,CAAA;IAC5B,iFAAiF;IACjF,YAAY,EAAE,OAAO,CAAA;IACrB;;;;;OAKG;IACH,iBAAiB,EAAE,OAAO,CAAA;IAC1B;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iDAAiD;IACjD,YAAY,EAAE,MAAM,CAAA;IACpB,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAA;IACrB,+CAA+C;IAC/C,QAAQ,EAAE,OAAO,CAAA;IACjB,uEAAuE;IACvE,qBAAqB,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"sdkFeatures.d.ts","sourceRoot":"","sources":["../../src/proxy/sdkFeatures.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,gBAAgB,EAAE,OAAO,CAAA;IACzB,kFAAkF;IAClF,kBAAkB,EAAE,OAAO,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,E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E,MAAM,GAAG,IAAI,CAI9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACtE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,CAAA;AAGvD,YAAY,EACV,SAAS,EACT,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,aAAa,CAAA;AAKpB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAoDnG,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EAEpB,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAI1B,OAAO,EAA+B,iBAAiB,EAAE,mBAAmB,EAAsC,MAAM,iBAAiB,CAAA;AAGzI,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA;AACjD,YAAY,EAAE,aAAa,EAAE,CAAA;AA+R7B,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CA2lJhF;AAWD,wBAAgB,gCAAgC,IAAI,IAAI,CAavD;AAED,wBAAsB,gBAAgB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAmGhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/pro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,CAAC,EAAE,MAAM,GAAG,IAAI,QA0CtC"}
|
|
@@ -71,6 +71,9 @@ export type LineageResult = {
|
|
|
71
71
|
type: "diverged";
|
|
72
72
|
reason: LineageDivergenceReason;
|
|
73
73
|
prefixOverlap?: number;
|
|
74
|
+
/** Which message stopped matching. Present for modified-history, the
|
|
75
|
+
* only divergence where the answer is both knowable and useful. */
|
|
76
|
+
mismatch?: LineageMismatch;
|
|
74
77
|
};
|
|
75
78
|
export type LineageDivergenceReason = "unverifiable" | "replayed-request" | "modified-history" | "unrelated-history" | "not-found" | "independent-request" | "missing-session-header";
|
|
76
79
|
/**
|
|
@@ -90,6 +93,61 @@ export declare function hashMessage(message: {
|
|
|
90
93
|
role: string;
|
|
91
94
|
content: any;
|
|
92
95
|
}): string;
|
|
96
|
+
/** A message's shape, for diagnostics that must never carry its content. */
|
|
97
|
+
export interface MessageShape {
|
|
98
|
+
role: string;
|
|
99
|
+
/** "string" for plain content, otherwise the block types in order. */
|
|
100
|
+
blocks: string;
|
|
101
|
+
/** Bytes of normalized content — size moves when content does. */
|
|
102
|
+
bytes: number;
|
|
103
|
+
}
|
|
104
|
+
/** Why two histories stopped matching, in terms safe to log.
|
|
105
|
+
*
|
|
106
|
+
* Answers the question `prefix overlap 50/51` raises and never answers: WHICH
|
|
107
|
+
* message stopped matching, and what changed about its shape. Content never
|
|
108
|
+
* appears here — only role, block types, byte counts, and digests.
|
|
109
|
+
*/
|
|
110
|
+
export interface LineageMismatch {
|
|
111
|
+
/** First index whose digest differs, or -1 when the prefix matches entirely. */
|
|
112
|
+
index: number;
|
|
113
|
+
storedDigest?: string;
|
|
114
|
+
incomingDigest?: string;
|
|
115
|
+
/** Only the incoming side has a shape: the stored side is kept as digests,
|
|
116
|
+
* so its structure is not recoverable — by design, nothing to recover. */
|
|
117
|
+
incomingShape?: MessageShape;
|
|
118
|
+
/** Digest of the preceding index, which by definition matched. */
|
|
119
|
+
previousDigest?: string;
|
|
120
|
+
storedCount: number;
|
|
121
|
+
incomingCount: number;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Locate the first message whose hash differs between a stored session and an
|
|
125
|
+
* incoming request.
|
|
126
|
+
*
|
|
127
|
+
* Pure and allocation-light: callers reach for it only on a divergence, which
|
|
128
|
+
* is rare and already about to cost a full replay.
|
|
129
|
+
*/
|
|
130
|
+
export declare function describeLineageMismatch(cached: SessionState, messages: Array<{
|
|
131
|
+
role: string;
|
|
132
|
+
content: any;
|
|
133
|
+
}>,
|
|
134
|
+
/** Reuse the caller's hashes. verifyLineage has already hashed the incoming
|
|
135
|
+
* history to measure overlap; hashing it again on a 700-message transcript
|
|
136
|
+
* would double the cost of the request that is already paying for a replay. */
|
|
137
|
+
precomputedIncomingHashes?: string[]): LineageMismatch;
|
|
138
|
+
/**
|
|
139
|
+
* One-line explanation of a divergence, for the log that reports it.
|
|
140
|
+
*
|
|
141
|
+
* `prefix overlap 50/51` says how many messages matched and never which one
|
|
142
|
+
* stopped, which is the fact needed to act on it — a trailing-only mismatch is
|
|
143
|
+
* a late tool result or a client re-serialising its last turn, while a mismatch
|
|
144
|
+
* in the middle means the history was rewritten. Same overlap count, different
|
|
145
|
+
* bug.
|
|
146
|
+
*
|
|
147
|
+
* Digests are truncated and content never appears, so the line is safe to paste
|
|
148
|
+
* into a public issue.
|
|
149
|
+
*/
|
|
150
|
+
export declare function formatLineageMismatch(mismatch: LineageMismatch): string | undefined;
|
|
93
151
|
/**
|
|
94
152
|
* Compute per-message hashes for an entire message array.
|
|
95
153
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage.d.ts","sourceRoot":"","sources":["../../../src/proxy/session/lineage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,4EAA4E;AAC5E,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,2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;GAaG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAG,CAAA;CAAE,CAAC,GAC9C,aAAa,CAkKf"}
|
|
@@ -93,8 +93,41 @@ export interface TelemetryContext {
|
|
|
93
93
|
readonly cacheCreationTokens: number;
|
|
94
94
|
readonly cacheHitRate: number;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* A lineage decision, after it has been made.
|
|
98
|
+
*
|
|
99
|
+
* Observe-only in practice: the pipeline takes the returned context, but
|
|
100
|
+
* nothing downstream reads it back, so a plugin cannot change how a session
|
|
101
|
+
* resumes. That is deliberate — resume correctness is core's to own, and the
|
|
102
|
+
* three stale-lineage defects it has already produced are not a surface to
|
|
103
|
+
* open to third parties.
|
|
104
|
+
*
|
|
105
|
+
* `mismatch` is present only on a divergence, which is the case worth
|
|
106
|
+
* diagnosing: it names WHICH message stopped matching, where `prefix overlap
|
|
107
|
+
* 50/51` only ever said how many did. Content never appears — roles, block
|
|
108
|
+
* types, byte counts, and digests are enough to tell a late tool result from a
|
|
109
|
+
* rewritten transcript, and they are safe to write to a log.
|
|
110
|
+
*/
|
|
96
111
|
export interface SessionContext {
|
|
97
112
|
readonly adapter: string;
|
|
113
|
+
readonly lineage: "continuation" | "compaction" | "undo" | "diverged";
|
|
114
|
+
/** Set when lineage is `diverged`. */
|
|
115
|
+
readonly reason?: string;
|
|
116
|
+
readonly sessionKey?: string;
|
|
117
|
+
readonly storedCount?: number;
|
|
118
|
+
readonly incomingCount?: number;
|
|
119
|
+
readonly prefixOverlap?: number;
|
|
120
|
+
readonly mismatch?: {
|
|
121
|
+
readonly index: number;
|
|
122
|
+
readonly storedDigest?: string;
|
|
123
|
+
readonly incomingDigest?: string;
|
|
124
|
+
readonly previousDigest?: string;
|
|
125
|
+
readonly incomingShape?: {
|
|
126
|
+
readonly role: string;
|
|
127
|
+
readonly blocks: string;
|
|
128
|
+
readonly bytes: number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
98
131
|
[key: string]: unknown;
|
|
99
132
|
}
|
|
100
133
|
export interface ToolUseContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/proxy/transform.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAGnE;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IAGnB,SAAS,CAAC,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAAA;IAC/C,UAAU,CAAC,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAAA;IAClD,WAAW,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAGzC,SAAS,CAAC,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAAA;IAC/C,SAAS,CAAC,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAAA;IAC/C,YAAY,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,iBAAiB,CAAA;IACxD,OAAO,CAAC,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAAA;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,iCAAiC;IACjC,QAAQ,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,EAAE,SAAS,SAAS,EAAE,EACvC,gBAAgB,EAAE,SAAS,SAAS,EAAE,GACrC,SAAS,EAAE,CAEb;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,GAAG,CAAA;IACT,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,EAAE,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;CACzB,GAAG,cAAc,CAqBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prime.d.ts","sourceRoot":"","sources":["../../../src/proxy/transforms/prime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,cAAc,CAAA;AAkB7D,eAAO,MAAM,eAAe,EAAE,SAAS,EAmBtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/proxy/transforms/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/proxy/transforms/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAyC7C,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,SAAS,EAAE,CAE9E"}
|
package/dist/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing.d.ts","sourceRoot":"","sources":["../../src/telemetry/landing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"landing.d.ts","sourceRoot":"","sources":["../../src/telemetry/landing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,eAAO,MAAM,WAAW,QA8QhB,CAAA"}
|
package/package.json
CHANGED