@rynfar/meridian 1.72.0 → 1.73.0
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/cli-1jstkdj9.js +30 -0
- package/dist/{cli-9e5cxp89.js → cli-2h3w5n6g.js} +163 -65
- package/dist/cli-3zwfvexc.js +56 -0
- package/dist/{cli-hxxy0m1z.js → cli-82e2m44k.js} +2 -1
- package/dist/cli-8sw5wr9j.js +136 -0
- package/dist/{cli-khhjyk04.js → cli-chsp880k.js} +214 -21
- package/dist/cli-dh0a1bw4.js +619 -0
- package/dist/cli-eehk3052.js +57 -0
- package/dist/cli-grfp0s1j.js +330 -0
- package/dist/{cli-ab7zkp1a.js → cli-p5zbk952.js} +2027 -315
- package/dist/{cli-hj61zpt7.js → cli-p9ca4p13.js} +17 -2
- package/dist/cli-qpfky8wy.js +133 -0
- package/dist/cli.js +47 -12
- package/dist/cliDashboard-c0dvkj4y.js +325 -0
- package/dist/configDir.d.ts +30 -0
- package/dist/configDir.d.ts.map +1 -0
- package/dist/organizationName-90f0atkn.js +29 -0
- package/dist/{pluginPage-f5gdmbxc.js → pluginPage-3kxsrdpj.js} +1 -1
- package/dist/{profileCli-1eecbmgk.js → profileCli-1bfgc05h.js} +13 -3
- package/dist/{profilePage-mamej7kp.js → profilePage-etxqg3vn.js} +252 -60
- package/dist/profileRename-4a4km6g8.js +22 -0
- package/dist/{profiles-wch9h234.js → profiles-0mp32ek9.js} +16 -3
- package/dist/proxy/adapterInstances.d.ts +1 -1
- package/dist/proxy/adapterInstances.d.ts.map +1 -1
- package/dist/proxy/adapters/claudecode.d.ts.map +1 -1
- package/dist/proxy/adapters/droid.d.ts.map +1 -1
- package/dist/proxy/authDiscovery.d.ts +52 -0
- package/dist/proxy/authDiscovery.d.ts.map +1 -0
- package/dist/proxy/credentialsMode.d.ts +77 -0
- package/dist/proxy/credentialsMode.d.ts.map +1 -0
- package/dist/proxy/design.d.ts.map +1 -1
- package/dist/proxy/followActive.d.ts +262 -0
- package/dist/proxy/followActive.d.ts.map +1 -0
- package/dist/proxy/limitDetection.d.ts +110 -0
- package/dist/proxy/limitDetection.d.ts.map +1 -0
- package/dist/proxy/models.d.ts.map +1 -1
- package/dist/proxy/oauthPlan.d.ts +63 -0
- package/dist/proxy/oauthPlan.d.ts.map +1 -0
- package/dist/proxy/oauthUsage.d.ts +65 -2
- package/dist/proxy/oauthUsage.d.ts.map +1 -1
- package/dist/proxy/openai.d.ts +4 -2
- package/dist/proxy/openai.d.ts.map +1 -1
- package/dist/proxy/organizationName.d.ts +71 -0
- package/dist/proxy/organizationName.d.ts.map +1 -0
- package/dist/proxy/passthroughEarlyStop.d.ts +10 -0
- package/dist/proxy/passthroughEarlyStop.d.ts.map +1 -1
- package/dist/proxy/planAllowance.d.ts +75 -0
- package/dist/proxy/planAllowance.d.ts.map +1 -0
- package/dist/proxy/probes.d.ts +85 -0
- package/dist/proxy/probes.d.ts.map +1 -0
- package/dist/proxy/profileCli.d.ts +53 -1
- package/dist/proxy/profileCli.d.ts.map +1 -1
- package/dist/proxy/profileHealth.d.ts +127 -0
- package/dist/proxy/profileHealth.d.ts.map +1 -0
- package/dist/proxy/profileRename.d.ts +83 -0
- package/dist/proxy/profileRename.d.ts.map +1 -0
- package/dist/proxy/profiles.d.ts +72 -6
- package/dist/proxy/profiles.d.ts.map +1 -1
- package/dist/proxy/query.d.ts +7 -0
- package/dist/proxy/query.d.ts.map +1 -1
- package/dist/proxy/routing.d.ts +59 -1
- package/dist/proxy/routing.d.ts.map +1 -1
- package/dist/proxy/sdkFeatures.d.ts +1 -1
- package/dist/proxy/sdkFeatures.d.ts.map +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/proxy/session/fingerprint.d.ts +5 -0
- package/dist/proxy/session/fingerprint.d.ts.map +1 -1
- package/dist/proxy/session/lineage.d.ts.map +1 -1
- package/dist/proxy/setup.d.ts.map +1 -1
- package/dist/proxy/supervision.d.ts +41 -0
- package/dist/proxy/supervision.d.ts.map +1 -0
- package/dist/proxy/tokenRefresh.d.ts +38 -4
- package/dist/proxy/tokenRefresh.d.ts.map +1 -1
- package/dist/server.js +11 -7
- package/dist/settings.d.ts +83 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/{setup-ndmjpy23.js → setup-7fr49z92.js} +1 -1
- package/dist/statusProbe-9x9q261e.js +151 -0
- package/dist/telemetry/dashboard.d.ts.map +1 -1
- package/dist/telemetry/index.d.ts +20 -2
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/landing.d.ts +1 -1
- package/dist/telemetry/landing.d.ts.map +1 -1
- package/dist/telemetry/logStore.d.ts +11 -0
- package/dist/telemetry/logStore.d.ts.map +1 -1
- package/dist/telemetry/pricingStore.d.ts +2 -2
- package/dist/telemetry/pricingStore.d.ts.map +1 -1
- package/dist/telemetry/profileBar.d.ts +2 -2
- package/dist/telemetry/profileBar.d.ts.map +1 -1
- package/dist/telemetry/profileFacts.d.ts +17 -0
- package/dist/telemetry/profileFacts.d.ts.map +1 -0
- package/dist/telemetry/profileOrder.d.ts +68 -0
- package/dist/telemetry/profileOrder.d.ts.map +1 -0
- package/dist/telemetry/profilePage.d.ts.map +1 -1
- package/dist/telemetry/profileSort.d.ts +35 -0
- package/dist/telemetry/profileSort.d.ts.map +1 -0
- package/dist/telemetry/profileSpent.d.ts +68 -0
- package/dist/telemetry/profileSpent.d.ts.map +1 -0
- package/dist/telemetry/routeChain.d.ts +32 -0
- package/dist/telemetry/routeChain.d.ts.map +1 -0
- package/dist/telemetry/routes.d.ts.map +1 -1
- package/dist/telemetry/settingsPage.d.ts +1 -1
- package/dist/telemetry/settingsPage.d.ts.map +1 -1
- package/dist/telemetry/sqlite.d.ts.map +1 -1
- package/dist/telemetry/store.d.ts +6 -1
- package/dist/telemetry/store.d.ts.map +1 -1
- package/dist/telemetry/types.d.ts +132 -2
- package/dist/telemetry/types.d.ts.map +1 -1
- package/dist/{tokenRefresh-kzz08kea.js → tokenRefresh-eg9h83wd.js} +6 -1
- package/package.json +1 -1
- package/dist/cli-5jxyma6z.js +0 -277
- package/dist/cli-vj9cv18n.js +0 -38
- package/dist/proxy/settings.d.ts +0 -30
- package/dist/proxy/settings.d.ts.map +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What we know, right now, about accounts that have just been refused.
|
|
3
|
+
*
|
|
4
|
+
* Two stores, both in-memory and both deliberately not persisted - this is
|
|
5
|
+
* observability and routing hygiene, not durable truth. After a restart the
|
|
6
|
+
* next refusal re-establishes everything.
|
|
7
|
+
*
|
|
8
|
+
* `SpentStore` holds the latest refusal per profile, so a UI can say "this
|
|
9
|
+
* account is refusing" alongside the cached percentages instead of replacing
|
|
10
|
+
* them. Measured on the live fleet: an account rendered `5h 67% / 7d 7%` while
|
|
11
|
+
* every request through it was being refused, because those percentages are a
|
|
12
|
+
* snapshot of the last successful read and a refusal never touched them.
|
|
13
|
+
*
|
|
14
|
+
* `FailoverEventLog` is a bounded, monotonically numbered event ring so an
|
|
15
|
+
* external supervisor (vibeterm's account switcher) can poll for refusals and
|
|
16
|
+
* failovers. It exists because `claudeLog("profile.failover", …)` went to the
|
|
17
|
+
* log and nowhere else, and because `/telemetry/requests` - the obvious place
|
|
18
|
+
* to look - is a 500-row ring with no cursor, so a poller cannot tell "nothing
|
|
19
|
+
* happened" from "it scrolled past between polls". The `since` cursor here is
|
|
20
|
+
* the fix for exactly that.
|
|
21
|
+
*
|
|
22
|
+
* Leaf module: no I/O, no imports from server.ts. Clocks are injectable so the
|
|
23
|
+
* tests do not depend on wall time.
|
|
24
|
+
*/
|
|
25
|
+
import type { LimitDiagnosis } from "./limitDetection";
|
|
26
|
+
export interface SpentRecord {
|
|
27
|
+
profileId: string;
|
|
28
|
+
/** When the refusal was observed (epoch ms). */
|
|
29
|
+
at: number;
|
|
30
|
+
diagnosis: LimitDiagnosis;
|
|
31
|
+
/** When this account is expected to serve again, when known. */
|
|
32
|
+
until: number | null;
|
|
33
|
+
/** Truncated raw SDK message - the operator's evidence for the verdict. */
|
|
34
|
+
message: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Latest refusal per profile, dropped on read once it expires (the same
|
|
38
|
+
* read-time expiry `ProfileExhaustion` uses, so the two never disagree about
|
|
39
|
+
* whether an account is currently in trouble).
|
|
40
|
+
*/
|
|
41
|
+
export declare class SpentStore {
|
|
42
|
+
private readonly now;
|
|
43
|
+
private readonly records;
|
|
44
|
+
constructor(now?: () => number);
|
|
45
|
+
/**
|
|
46
|
+
* Record a refusal. A later record always replaces an earlier one: unlike an
|
|
47
|
+
* exhaustion mark (where a longer cooldown must win), the newest refusal is
|
|
48
|
+
* by definition the best description of the account's current state.
|
|
49
|
+
*/
|
|
50
|
+
record(profileId: string, diagnosis: LimitDiagnosis, message: string): SpentRecord;
|
|
51
|
+
get(profileId: string): SpentRecord | undefined;
|
|
52
|
+
/** Live records only - expired ones are dropped on read. */
|
|
53
|
+
snapshot(): SpentRecord[];
|
|
54
|
+
clear(): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* `refused` - an account said no. Emitted in every routing mode, so an
|
|
58
|
+
* exhausted account is visible even when nothing failed over.
|
|
59
|
+
* `failover` - a request was re-issued on another account and succeeded,
|
|
60
|
+
* so the client never saw the refusal.
|
|
61
|
+
* `pool_exhausted` - every candidate refused; the client got the error.
|
|
62
|
+
*/
|
|
63
|
+
export type FailoverEventKind = "refused" | "failover" | "pool_exhausted";
|
|
64
|
+
export interface FailoverEvent {
|
|
65
|
+
/** Monotonic, starts at 1, never reused. The `since` cursor. */
|
|
66
|
+
seq: number;
|
|
67
|
+
at: number;
|
|
68
|
+
kind: FailoverEventKind;
|
|
69
|
+
/** The account that refused. */
|
|
70
|
+
profile: string;
|
|
71
|
+
/** The account that served the request instead, for `failover`. */
|
|
72
|
+
servedBy: string | null;
|
|
73
|
+
reason: string;
|
|
74
|
+
/** Routing mode in effect when this happened. */
|
|
75
|
+
routing: string;
|
|
76
|
+
sessionKey: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* True when this refusal happened on an internal re-proxy hop, meaning the
|
|
79
|
+
* client did not see it. A `refused` event with `internalHop: false` is one
|
|
80
|
+
* the connected agent actually received.
|
|
81
|
+
*/
|
|
82
|
+
internalHop: boolean;
|
|
83
|
+
until: number | null;
|
|
84
|
+
limit: LimitDiagnosis | null;
|
|
85
|
+
}
|
|
86
|
+
export interface FailoverEventPage {
|
|
87
|
+
events: FailoverEvent[];
|
|
88
|
+
/**
|
|
89
|
+
* Cursor for the next poll. The seq of the LAST RETURNED event, or the
|
|
90
|
+
* requested `since` when nothing was returned - never the ring's newest seq,
|
|
91
|
+
* because a page truncated by `limit` would then skip the remainder.
|
|
92
|
+
*/
|
|
93
|
+
nextSince: number;
|
|
94
|
+
oldestSeq: number;
|
|
95
|
+
latestSeq: number;
|
|
96
|
+
/**
|
|
97
|
+
* True when events between the requested `since` and the oldest retained one
|
|
98
|
+
* were evicted, so the caller knows it missed some rather than believing it
|
|
99
|
+
* has seen everything.
|
|
100
|
+
*/
|
|
101
|
+
dropped: boolean;
|
|
102
|
+
capacity: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Bounded ring of refusal/failover events, oldest-first on read.
|
|
106
|
+
*
|
|
107
|
+
* Capacity is generous relative to the event rate (one per refusal, not one per
|
|
108
|
+
* request), so a consumer polling every few seconds cannot outrun it; `dropped`
|
|
109
|
+
* exists for the case where a consumer was away long enough that it did.
|
|
110
|
+
*/
|
|
111
|
+
export declare class FailoverEventLog {
|
|
112
|
+
private readonly capacity;
|
|
113
|
+
private readonly now;
|
|
114
|
+
private readonly events;
|
|
115
|
+
private seq;
|
|
116
|
+
constructor(capacity?: number, now?: () => number);
|
|
117
|
+
append(event: Omit<FailoverEvent, "seq" | "at"> & {
|
|
118
|
+
at?: number;
|
|
119
|
+
}): FailoverEvent;
|
|
120
|
+
/**
|
|
121
|
+
* Events strictly after `since`, oldest-first. `since = 0` returns everything
|
|
122
|
+
* retained, which is what a consumer starting cold wants.
|
|
123
|
+
*/
|
|
124
|
+
since(since: number, limit?: number): FailoverEventPage;
|
|
125
|
+
clear(): void;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=profileHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileHealth.d.ts","sourceRoot":"","sources":["../../src/proxy/profileHealth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,cAAc,CAAA;IACzB,gEAAgE;IAChE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAA;CAChB;AAWD;;;;GAIG;AACH,qBAAa,UAAU;IAGT,OAAO,CAAC,QAAQ,CAAC,GAAG;IAFhC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;gBAE5B,GAAG,GAAE,MAAM,MAAiB;IAEzD;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW;IAiBlF,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAU/C,4DAA4D;IAC5D,QAAQ,IAAI,WAAW,EAAE;IASzB,KAAK,IAAI,IAAI;CAGd;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAEzE,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,i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profile: its entry in
|
|
5
|
+
* profiles.json and, when its credentials live under
|
|
6
|
+
* ~/.config/meridian/profiles/<id>, the credential directory itself. Renaming
|
|
7
|
+
* the entry alone would leave the profile pointing at a directory that is no
|
|
8
|
+
* longer its own — an account logged out by a cosmetic change — so both are
|
|
9
|
+
* planned together and applied as one step that either happens or does not.
|
|
10
|
+
*
|
|
11
|
+
* The old name survives as an ALIAS on the renamed profile. It is a redirect,
|
|
12
|
+
* not a second name: after `x` is renamed to `y`, `x-meridian-profile: x` is
|
|
13
|
+
* served by `y`, and the moment `x` is claimed again — by `profile add x`, or
|
|
14
|
+
* by renaming something else to `x` — the redirect is dropped.
|
|
15
|
+
*
|
|
16
|
+
* Chains are collapsed on write. Renaming x→y and later y→z leaves z holding
|
|
17
|
+
* both "x" and "y", so resolution is a single lookup and no alias can dangle
|
|
18
|
+
* at an intermediate name that no longer exists.
|
|
19
|
+
*
|
|
20
|
+
* This is a leaf module — no imports from server.ts or session/.
|
|
21
|
+
*/
|
|
22
|
+
import type { ProfileConfig } from "./profiles";
|
|
23
|
+
export declare function isValidProfileId(id: string): boolean;
|
|
24
|
+
export declare function defaultProfilesDir(): string;
|
|
25
|
+
export declare function defaultProfilesConfigFile(): string;
|
|
26
|
+
export declare function loadProfileConfigFrom(file: string): ProfileConfig[];
|
|
27
|
+
export declare function saveProfileConfigTo(file: string, profiles: ProfileConfig[]): void;
|
|
28
|
+
/**
|
|
29
|
+
* Drop `name` from every profile's alias list — a real profile is claiming the
|
|
30
|
+
* name, so the redirect has to stop. Profiles with nothing to drop are
|
|
31
|
+
* returned as-is.
|
|
32
|
+
*/
|
|
33
|
+
export declare function reclaimAlias(profiles: ProfileConfig[], name: string): ProfileConfig[];
|
|
34
|
+
export interface ProfileRenamePlan {
|
|
35
|
+
/** The complete profile list as it should be written to disk. */
|
|
36
|
+
profiles: ProfileConfig[];
|
|
37
|
+
/** Credential directory to move, when this profile keeps one under profilesDir. */
|
|
38
|
+
dirMove?: {
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
};
|
|
42
|
+
/** Aliases the renamed profile ends up carrying, chains already collapsed. */
|
|
43
|
+
aliases: string[];
|
|
44
|
+
}
|
|
45
|
+
export type ProfileRenameResult = {
|
|
46
|
+
ok: true;
|
|
47
|
+
plan: ProfileRenamePlan;
|
|
48
|
+
} | {
|
|
49
|
+
ok: false;
|
|
50
|
+
error: string;
|
|
51
|
+
hint?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Pure: decide what a rename would change. Refuses rather than corrupting —
|
|
55
|
+
* an unknown source, an occupied target, or a name the charset rejects each
|
|
56
|
+
* come back as an error with nothing planned.
|
|
57
|
+
*/
|
|
58
|
+
export declare function planProfileRename(profiles: ProfileConfig[], from: string, to: string, profilesDir: string): ProfileRenameResult;
|
|
59
|
+
export interface ApplyProfileRenameOptions {
|
|
60
|
+
/** Directory holding per-profile credential dirs. Defaults to the real one. */
|
|
61
|
+
profilesDir?: string;
|
|
62
|
+
/** profiles.json path. Defaults to the real one. */
|
|
63
|
+
configFile?: string;
|
|
64
|
+
}
|
|
65
|
+
export type ApplyProfileRenameResult = {
|
|
66
|
+
ok: true;
|
|
67
|
+
from: string;
|
|
68
|
+
to: string;
|
|
69
|
+
aliases: string[];
|
|
70
|
+
profiles: ProfileConfig[];
|
|
71
|
+
} | {
|
|
72
|
+
ok: false;
|
|
73
|
+
error: string;
|
|
74
|
+
hint?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Apply a rename to disk: credentials first, then the profile list, then the
|
|
78
|
+
* active pointer. If the profile list cannot be written the credential move is
|
|
79
|
+
* undone, so the profile is never left naming a directory that moved out from
|
|
80
|
+
* under it.
|
|
81
|
+
*/
|
|
82
|
+
export declare function applyProfileRename(from: string, to: string, options?: ApplyProfileRenameOptions): ApplyProfileRenameResult;
|
|
83
|
+
//# sourceMappingURL=profileRename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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BAAyB;IACxC,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,wBAAwB,GAChC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,GACpF;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/C;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,yBAA8B,GACtC,wBAAwB,CAwD1B"}
|
package/dist/proxy/profiles.d.ts
CHANGED
|
@@ -8,18 +8,37 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Profile selection priority:
|
|
10
10
|
* 1. x-meridian-profile request header (per-request override)
|
|
11
|
-
* 2. Active profile (set via POST /profiles/active or UI
|
|
11
|
+
* 2. Active profile (set via POST /profiles/active or UI, or taken from
|
|
12
|
+
* another instance under MERIDIAN_FOLLOW_ACTIVE — see followActive.ts)
|
|
12
13
|
* 3. First configured profile (or implicit "default" if none configured)
|
|
13
14
|
*
|
|
14
15
|
* This is a leaf module — no imports from server.ts or session/.
|
|
15
16
|
*/
|
|
16
17
|
import { type RoutingMode } from "./routing";
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Pure: what to say when the configured profiles.json is absent — a message,
|
|
20
|
+
* or undefined when there is nothing worth saying.
|
|
21
|
+
*
|
|
22
|
+
* MERIDIAN_CONFIG_DIR used to move settings.json alone, so anyone who already
|
|
23
|
+
* set it kept getting their profile list from the default directory. Now that
|
|
24
|
+
* it moves the whole directory that list is gone from their instance, which
|
|
25
|
+
* reads as profiles lost rather than profiles left where they always were.
|
|
26
|
+
* Only relocation can produce that, hence the first condition: with the
|
|
27
|
+
* variable unset both paths are the same file and this stays silent.
|
|
28
|
+
*/
|
|
29
|
+
export declare function profilesRelocationNotice(configuredFile: string, defaultFile: string, defaultFileExists: boolean): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Load profiles from profiles.json in the config directory.
|
|
19
32
|
* Cached with a 5s TTL so new profiles are picked up without restart,
|
|
20
33
|
* while avoiding synchronous disk I/O on every request.
|
|
21
34
|
*/
|
|
22
35
|
export declare function loadProfilesFromDisk(): ProfileConfig[];
|
|
36
|
+
/**
|
|
37
|
+
* Drop the cached disk profiles so the next read hits the file. Called after
|
|
38
|
+
* a mutation this process performed (e.g. a rename via the UI), where waiting
|
|
39
|
+
* out the TTL would show the caller their own stale profile list.
|
|
40
|
+
*/
|
|
41
|
+
export declare function invalidateDiskProfileCache(): void;
|
|
23
42
|
export type ProfileType = "claude-max" | "api" | "oauth-token";
|
|
24
43
|
export interface ProfileConfig {
|
|
25
44
|
/** Unique profile identifier (e.g. "personal", "work") */
|
|
@@ -39,6 +58,13 @@ export interface ProfileConfig {
|
|
|
39
58
|
baseUrl?: string;
|
|
40
59
|
/** Long-lived OAuth token from `claude setup-token` (oauth-token profiles) */
|
|
41
60
|
oauthToken?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Former names left behind by `meridian profile rename`. Each is a redirect,
|
|
63
|
+
* not a second name: requests naming one are served by this profile until
|
|
64
|
+
* the name is claimed again. Chains are collapsed on write (see
|
|
65
|
+
* profileRename.ts), so every alias points straight at its current profile.
|
|
66
|
+
*/
|
|
67
|
+
aliases?: string[];
|
|
42
68
|
}
|
|
43
69
|
export interface ResolvedProfile {
|
|
44
70
|
id: string;
|
|
@@ -48,13 +74,30 @@ export interface ResolvedProfile {
|
|
|
48
74
|
}
|
|
49
75
|
/**
|
|
50
76
|
* Set the active profile. All requests without an explicit x-meridian-profile
|
|
51
|
-
* header will use this profile. Persisted to
|
|
77
|
+
* header will use this profile. Persisted to settings.json in the config directory.
|
|
52
78
|
*/
|
|
53
79
|
export declare function setActiveProfile(profileId: string): void;
|
|
54
80
|
/**
|
|
55
|
-
* Get the
|
|
81
|
+
* Get the LOCAL active profile ID — this instance's own choice, ignoring
|
|
82
|
+
* follow mode. Callers that want the profile actually in effect want
|
|
83
|
+
* `resolveActiveProfileId` instead.
|
|
56
84
|
*/
|
|
57
85
|
export declare function getActiveProfileId(): string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The active profile actually in effect: the followed instance's choice under
|
|
88
|
+
* MERIDIAN_FOLLOW_ACTIVE, otherwise this instance's own.
|
|
89
|
+
*
|
|
90
|
+
* This is the ONE input follow mode replaces. Everything around it — the
|
|
91
|
+
* header override, sticky assignment, the config default, the first-profile
|
|
92
|
+
* fallback — is unchanged.
|
|
93
|
+
*
|
|
94
|
+
* @param availableIds profile IDs this instance actually has, so a followed
|
|
95
|
+
* value it cannot serve is rejected here rather than resolving to an
|
|
96
|
+
* unrelated account further down `resolveProfile`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function resolveActiveProfileId(availableIds: readonly string[]): string | undefined;
|
|
99
|
+
/** The active profile in effect, resolved against the effective profile list. */
|
|
100
|
+
export declare function getEffectiveActiveProfileId(configProfiles: ProfileConfig[] | undefined): string | undefined;
|
|
58
101
|
/** Reset active profile — for testing only. */
|
|
59
102
|
export declare function resetActiveProfile(): void;
|
|
60
103
|
/**
|
|
@@ -66,9 +109,21 @@ export declare function resetActiveProfile(): void;
|
|
|
66
109
|
export declare function restoreActiveProfile(configProfiles?: ProfileConfig[]): void;
|
|
67
110
|
/** Enable disk auto-discovery of profiles. Called by the CLI when
|
|
68
111
|
* no MERIDIAN_PROFILES env var is set, so the server picks up
|
|
69
|
-
* profiles from
|
|
112
|
+
* profiles from profiles.json in the config directory dynamically. */
|
|
70
113
|
export declare function enableDiskProfileDiscovery(): void;
|
|
71
114
|
export declare function getEffectiveProfiles(configProfiles: ProfileConfig[] | undefined): ProfileConfig[];
|
|
115
|
+
/**
|
|
116
|
+
* Where another instance on this machine could read this profile's credentials,
|
|
117
|
+
* or null when it could not.
|
|
118
|
+
*
|
|
119
|
+
* The test is that the resolved environment is a config directory and NOTHING
|
|
120
|
+
* else. That is what makes it derived rather than a second opinion about
|
|
121
|
+
* profile types: a profile whose credentials are an inline API key or OAuth
|
|
122
|
+
* token carries that secret in its env, fails the test, and is reported by id
|
|
123
|
+
* alone. A secret must never leave the process holding it, so there is no
|
|
124
|
+
* shape of this function that returns one.
|
|
125
|
+
*/
|
|
126
|
+
export declare function shareableCredentialDir(resolved: ResolvedProfile): string | null;
|
|
72
127
|
/** Check if any profiles are available from any source */
|
|
73
128
|
export declare function hasProfiles(configProfiles: ProfileConfig[] | undefined): boolean;
|
|
74
129
|
/** Options for the sticky-routing resolution step (#383). */
|
|
@@ -82,7 +137,11 @@ export interface ResolveProfileOptions {
|
|
|
82
137
|
* Resolve a profile from the configuration.
|
|
83
138
|
*
|
|
84
139
|
* Priority: header > sticky assignment (routing="sticky" only) > active >
|
|
85
|
-
* config default > first profile.
|
|
140
|
+
* config default > first profile. Whatever that yields is matched against
|
|
141
|
+
* profile ids first and rename aliases second, so a name a rename left behind
|
|
142
|
+
* keeps routing without ever shadowing a live profile.
|
|
143
|
+
*
|
|
144
|
+
* The sticky step exists so multi-account
|
|
86
145
|
* setups can distribute sessions across profiles WITHOUT losing per-account
|
|
87
146
|
* prompt caching — see routing.ts. With routingMode unset/"active" the
|
|
88
147
|
* chain is exactly the pre-#383 behavior.
|
|
@@ -93,6 +152,12 @@ export interface ResolveProfileOptions {
|
|
|
93
152
|
* @param options - Sticky-routing inputs (session key + mode)
|
|
94
153
|
*/
|
|
95
154
|
export declare function resolveProfile(profiles: ProfileConfig[] | undefined, defaultProfile: string | undefined, requestedId?: string, options?: ResolveProfileOptions): ResolvedProfile;
|
|
155
|
+
/**
|
|
156
|
+
* Look a profile up by id, then by alias. Real profiles ALWAYS win: an alias
|
|
157
|
+
* is only a redirect left behind by a rename, and a stale one must never
|
|
158
|
+
* shadow a live account that has since taken the name.
|
|
159
|
+
*/
|
|
160
|
+
export declare function findProfileByIdOrAlias(profiles: ProfileConfig[], id: string): ProfileConfig | undefined;
|
|
96
161
|
/**
|
|
97
162
|
* Get all configured profile IDs with their types.
|
|
98
163
|
*/
|
|
@@ -100,5 +165,6 @@ export declare function listProfiles(profiles: ProfileConfig[] | undefined, defa
|
|
|
100
165
|
id: string;
|
|
101
166
|
type: ProfileType;
|
|
102
167
|
isActive: boolean;
|
|
168
|
+
aliases?: string[];
|
|
103
169
|
}>;
|
|
104
170
|
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/proxy/profiles.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/proxy/profiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAW/D;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,OAAO,GACzB,MAAM,GAAG,SAAS,CAKpB;AAgBD;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,aAAa,EAAE,CAyBtD;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,KAAK,GAAG,aAAa,CAAA;AAE9D,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAA;IACV;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,uC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F;AAED,6DAA6D;AAC7D,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qEAAqE;IACrE,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,aAAa,EAAE,GAAG,SAAS,EACrC,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,eAAe,CA0BjB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,EAAE,EACzB,EAAE,EAAE,MAAM,GACT,aAAa,GAAG,SAAS,CAE3B;AAkCD;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,aAAa,EAAE,GAAG,SAAS,EACrC,cAAc,EAAE,MAAM,GAAG,SAAS,GACjC,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAWjF"}
|
package/dist/proxy/query.d.ts
CHANGED
|
@@ -201,5 +201,12 @@ export declare const GIT_STATUS_PROVENANCE_NOTE: string;
|
|
|
201
201
|
/** Models must understand the client-history transport used by Meridian.
|
|
202
202
|
* Keep this constant across turns so normal resumes retain their system cache. */
|
|
203
203
|
export declare const REPLAY_PROVENANCE_NOTE: string;
|
|
204
|
+
/**
|
|
205
|
+
* Prompt-level counter-instruction to suppress writes to the CLI's proxy-host
|
|
206
|
+
* scratchpad directory in passthrough mode (#627, #1049).
|
|
207
|
+
* Avoids setting CLAUDE_CODE_SESSION_KIND=bg which causes CLI 2.1.274+ to
|
|
208
|
+
* register phantom job records under ~/.claude/jobs/ (#1049).
|
|
209
|
+
*/
|
|
210
|
+
export declare const SCRATCHPAD_COUNTER_INSTRUCTION: string;
|
|
204
211
|
export declare function buildQueryOptions(ctx: QueryContext, abortController?: AbortController): BuildQueryResult;
|
|
205
212
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/proxy/query.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAW,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnG,OAAO,EAAE,0BAA0B,EAAwB,MAAM,oBAAoB,CAAA;AAErF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AA6CtC;;4CAE4C;AAC5C,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAC5C,YAAY,EAAE,OAAO,GAAG,SAAS,EACjC,gBAAgB,GAAE,MAAsB,GACvC,MAAM,CAWR;AAED,MAAM,WAAW,YAAY;IAC3B,iEAAiE;IACjE,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;IACnC,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,gBAAgB,EAAE,MAAM,CAAA;IACxB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,iFAAiF;IACjF,mCAAmC,CAAC,EAAE,OAAO,CAAA;IAC7C,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,gCAAgC;IAChC,gBAAgB,EAAE,MAAM,CAAA;IACxB,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAA;IACpB,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAA;IACf,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,mEAAmE;IACnE,cAAc,CAAC,EAAE,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EAAE,YAAY,CAAC,QAAQ,CAAC,CAAA;IAC9B,OAAO,EAAE,OAAO,CAAA;CACjB;AAwED,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,mCAAmC,CAAC,EAAE,OAAO,CAAA;IAC7C,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAoCD;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,OAAO,EACzB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAIT;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,GAAE,cAAmB,GAC3B,MAAM,CAwBR;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,0BAA0B,QAWnB,CAAA;AAEpB;kFACkF;AAClF,eAAO,MAAM,sBAAsB,QAQf,CAAA;AAEpB;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,QAMvB,CAAA;AAkCpB,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,gBAAgB,CA+LxG"}
|
package/dist/proxy/routing.d.ts
CHANGED
|
@@ -21,7 +21,16 @@
|
|
|
21
21
|
* exhaustion/assignment trackers below hold mutable in-memory state (by
|
|
22
22
|
* design — see their own doc comments) but still perform no I/O.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
import type { RouteKind } from "../telemetry/types";
|
|
25
|
+
export type RoutingMode = "active" | "sticky" | "priority" | "active+priority";
|
|
26
|
+
export declare const ACTIVE_PRIORITY: "active+priority";
|
|
27
|
+
/**
|
|
28
|
+
* Every selectable mode, in the order the settings UI offers them. Single
|
|
29
|
+
* source of truth: the mode list was previously written out again inside the
|
|
30
|
+
* settings route's validator and a third time in the page's `<select>`, so a
|
|
31
|
+
* new mode parsed correctly and still could not be selected.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ROUTING_MODES: readonly RoutingMode[];
|
|
25
34
|
export type PriorityFailbackPolicy = "new-conversation" | "next-user-turn";
|
|
26
35
|
export type PriorityAssignment = {
|
|
27
36
|
readonly profileId: string;
|
|
@@ -37,10 +46,37 @@ export type PriorityPromotionInput = {
|
|
|
37
46
|
* Parse a routing mode string (from settings or MERIDIAN_ROUTING).
|
|
38
47
|
* Unknown values fall back to "active" — a typo must never change
|
|
39
48
|
* routing behavior into something surprising.
|
|
49
|
+
*
|
|
50
|
+
* The three original branches stay exact-match, so every value that falls back
|
|
51
|
+
* to "active" today still does. Only the new mode accepts separator variants
|
|
52
|
+
* ("active-priority", "active_priority", "active priority"): its canonical
|
|
53
|
+
* spelling carries a `+`, which a query string decodes to a space, and being
|
|
54
|
+
* strict there would turn one plausible transport detail into silently routing
|
|
55
|
+
* all traffic to the active profile with no failover.
|
|
40
56
|
*/
|
|
41
57
|
export declare function getRoutingMode(raw: string | undefined): RoutingMode;
|
|
58
|
+
export declare function isPoolRouting(mode: RoutingMode): boolean;
|
|
42
59
|
export declare function getPriorityFailbackPolicy(raw: string | undefined): PriorityFailbackPolicy;
|
|
43
60
|
export declare function shouldPromotePriorityAssignment(input: PriorityPromotionInput): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Classify how the serving profile was chosen, from values the caller already
|
|
63
|
+
* holds. Runs per request, so it may never do I/O or read settings of its own.
|
|
64
|
+
*
|
|
65
|
+
* Undefined when the routing mode isn't known (the outer catch records before
|
|
66
|
+
* routing resolves): the pin and the hop flag still prove
|
|
67
|
+
* `pinned`/`priority-hop`, but "active" would be a guess, and a guess on an
|
|
68
|
+
* attribution dashboard is worse than a blank.
|
|
69
|
+
*/
|
|
70
|
+
export declare function classifyRouteKind(input: {
|
|
71
|
+
pinnedProfileHeader?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* One internal hop of a pool dispatch. A flag rather than a header because
|
|
74
|
+
* the failover re-enters the handler directly, so there is no second HTTP
|
|
75
|
+
* request for a header to travel on.
|
|
76
|
+
*/
|
|
77
|
+
priorityHop?: boolean | undefined;
|
|
78
|
+
routingMode?: RoutingMode | undefined;
|
|
79
|
+
}): RouteKind | undefined;
|
|
44
80
|
/**
|
|
45
81
|
* Pick the sticky profile for a session: the profile with the highest
|
|
46
82
|
* rendezvous score. Returns undefined when there is nothing to pick
|
|
@@ -76,6 +112,28 @@ export declare function choosePriorityProfile(order: readonly string[], isExhaus
|
|
|
76
112
|
id: string;
|
|
77
113
|
allExhausted: boolean;
|
|
78
114
|
} | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Candidate order for `active+priority`: the active profile first, then the
|
|
117
|
+
* priority order behind it as fallbacks.
|
|
118
|
+
*
|
|
119
|
+
* The active profile OUTRANKS an existing session assignment, which is the one
|
|
120
|
+
* place this mode deliberately disagrees with `priority`. In `priority` the
|
|
121
|
+
* pool head moves on its own (a cooldown expires) and affinity protects a
|
|
122
|
+
* conversation from being dragged along - worth protecting, since a live
|
|
123
|
+
* request here showed a 441k-token cache read at a 99.8% hit rate, all of which
|
|
124
|
+
* is thrown away by a move. In `active+priority` the head only ever moves
|
|
125
|
+
* because a human or a supervisor moved it, and moving running conversations is
|
|
126
|
+
* precisely what they moved it FOR. Honouring the old assignment would mean
|
|
127
|
+
* switching the active profile changed nothing for any conversation already
|
|
128
|
+
* under way, which is every conversation that matters and leaves the mode
|
|
129
|
+
* indistinguishable from plain `priority`.
|
|
130
|
+
*
|
|
131
|
+
* Affinity still applies BELOW the active profile: while the active profile is
|
|
132
|
+
* refusing, a session returns to the same fallback it used last time rather
|
|
133
|
+
* than being re-picked each turn, so an outage costs one cold cache instead of
|
|
134
|
+
* one per turn.
|
|
135
|
+
*/
|
|
136
|
+
export declare function chooseActivePriorityCandidates(activeId: string, order: readonly string[], isExhausted: (id: string) => boolean, assigned?: string): string[];
|
|
79
137
|
export interface ExhaustionEntry {
|
|
80
138
|
id: string;
|
|
81
139
|
until: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/proxy/routing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/proxy/routing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,iBAAiB,CAAA;AAE9E,eAAO,MAAM,eAAe,EAAG,iBAA0B,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAsD,CAAA;AAEtG,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAA;IACvC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CACzC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAMnE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAExD;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,sBAAsB,CAEzF;AAED,wBAAgB,+BAA+B,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IACH,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,IAAI,CAQf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SDK feature toggles — per-adapter configuration for Claude Code features.
|
|
3
3
|
*
|
|
4
|
-
* Persisted
|
|
4
|
+
* Persisted to sdk-features.json in the config directory (see configDir.ts).
|
|
5
5
|
* Read at request time (no restart needed to pick up changes).
|
|
6
6
|
*/
|
|
7
7
|
export interface AdapterFeatures {
|
|
@@ -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,CAA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;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAU1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAAC,UAAU,CAAC,GAAG,SAAS,CAKhG;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAOtE;AAKD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAgC5E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAInG;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAI9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAoBA,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;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAoBA,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;AA4FnG,OAAO,EACL,kBAAkB,EAElB,WAAW,EACX,oBAAoB,EAMpB,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAI1B,OAAO,EAKL,iBAAiB,EACjB,mBAAmB,EAKpB,MAAM,iBAAiB,CAAA;AA0CxB,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA;AACjD,YAAY,EAAE,aAAa,EAAE,CAAA;AAuZ7B,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CA+nQhF;AAWD,wBAAgB,gCAAgC,IAAI,IAAI,CAavD;AAED,wBAAsB,gBAAgB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAkPhG"}
|
|
@@ -23,6 +23,11 @@ export declare function extractClientCwd(body: any): string | undefined;
|
|
|
23
23
|
* contains dynamic file trees/diagnostics that change every request).
|
|
24
24
|
* This prevents cross-project collisions when different projects start
|
|
25
25
|
* with the same first message.
|
|
26
|
+
* <system-reminder> blocks injected into user messages are stripped
|
|
27
|
+
* before hashing: they are per-machine environment noise, not conversation
|
|
28
|
+
* identity, and can otherwise dominate the hash window. When a client
|
|
29
|
+
* opens with a reminder-only message (Droid), the seed comes from the
|
|
30
|
+
* first user message that carries actual task text.
|
|
26
31
|
*/
|
|
27
32
|
export declare function getConversationFingerprint(messages: Array<{
|
|
28
33
|
role: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../../src/proxy/session/fingerprint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAc9D;AAED
|
|
1
|
+
{"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../../src/proxy/session/fingerprint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAc9D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAG,CAAA;CAAE,CAAC,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CA6B7H;AAWD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,GAAG,CAAA;CAAE,CAAC,EAC/C,gBAAgB,CAAC,EAAE,MAAM,GACxB,MAAM,GAAG,IAAI,CAIf"}
|
|
@@ -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,2BAA2B,CAAC,E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