@coalex-ai/sdk 2.9.1-beta.709 → 2.10.0-beta.710
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/auto-instrument.js +1 -1
- package/dist/context.d.ts +4 -4
- package/dist/context.js +4 -4
- package/dist/decision-request.d.ts +13 -13
- package/dist/decision-request.d.ts.map +1 -1
- package/dist/decision-request.js +15 -16
- package/dist/decision-request.js.map +1 -1
- package/dist/evaluate.d.ts +6 -6
- package/dist/evaluate.js +4 -4
- package/dist/evaluate.js.map +1 -1
- package/dist/ext/tool.js +2 -2
- package/dist/ext/tool.js.map +1 -1
- package/dist/http.d.ts +2 -2
- package/dist/http.js +2 -2
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/inventory.js +1 -1
- package/dist/inventory.js.map +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/prompt-refs.d.ts +2 -1
- package/dist/prompt-refs.d.ts.map +1 -1
- package/dist/prompt-refs.js +2 -1
- package/dist/prompt-refs.js.map +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/prompts.js +4 -4
- package/dist/prompts.js.map +1 -1
- package/dist/resolve.d.ts +6 -6
- package/dist/resolve.d.ts.map +1 -1
- package/dist/resolve.js +4 -4
- package/dist/safe-exporter.d.ts +2 -2
- package/dist/safe-exporter.js +2 -2
- package/dist/ungoverned.d.ts +3 -3
- package/dist/ungoverned.js +7 -7
- package/dist/ungoverned.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/auto-instrument.js
CHANGED
|
@@ -24,7 +24,7 @@ const INSTRUMENTORS = [
|
|
|
24
24
|
},
|
|
25
25
|
];
|
|
26
26
|
/**
|
|
27
|
-
* How an instrumentation package is found and loaded
|
|
27
|
+
* How an instrumentation package is found and loaded.
|
|
28
28
|
*
|
|
29
29
|
* This file used to call a bare `require(config.package)`. The package is `"type": "module"`, so in
|
|
30
30
|
* the built `dist` that identifier does not exist and the line threw `ReferenceError: require is not
|
package/dist/context.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface ActiveContext {
|
|
|
16
16
|
export declare function activeContext(): Readonly<ActiveContext> | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Record the prompt version/type getPrompt() served: on the active context when there is one,
|
|
19
|
-
* otherwise as the process-wide startup prompt
|
|
19
|
+
* otherwise as the process-wide startup prompt.
|
|
20
20
|
*/
|
|
21
21
|
export declare function setLastPrompt(version: number, type: string): void;
|
|
22
22
|
/** The prompt of the active context, or the startup prompt outside one, or null. */
|
|
@@ -50,7 +50,7 @@ export interface CoalexContextOptions {
|
|
|
50
50
|
runId?: string;
|
|
51
51
|
/**
|
|
52
52
|
* The build this invocation is running. Optional today, and omitting it logs a warning once
|
|
53
|
-
* per agent per process
|
|
53
|
+
* per agent per process: a trace with no version cannot be attributed to a build,
|
|
54
54
|
* and the dashboard records it against the version `unknown`. It becomes required in
|
|
55
55
|
* @coalex-ai/sdk 3.0.
|
|
56
56
|
*/
|
|
@@ -59,14 +59,14 @@ export interface CoalexContextOptions {
|
|
|
59
59
|
* Prompt Vault version driving this invocation. Lets an agent that fetches its prompt once at
|
|
60
60
|
* startup (outside any request trace) attribute each request to a prompt version — getPrompt()
|
|
61
61
|
* only stamps the trace it runs in, so the cache-at-startup pattern passes the version here per
|
|
62
|
-
* request
|
|
62
|
+
* request. The TypeScript mirror of Python `coalex_context(prompt_version=)`.
|
|
63
63
|
*/
|
|
64
64
|
promptVersion?: number;
|
|
65
65
|
/** Prompt type (e.g. "system"). Paired with {@link promptVersion}. */
|
|
66
66
|
promptType?: string;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* An agent that does not say which version it is, is an agent whose
|
|
70
70
|
* decisions cannot be attributed to a build — in a governance product that is the difference between
|
|
71
71
|
* "this decision came from this version of the system" and "it came from something". Measured
|
|
72
72
|
* 24/09/2026: the `golden-advisor` ran unversioned from 19/08 to 09/09 and only surfaced in a
|
package/dist/context.js
CHANGED
|
@@ -8,14 +8,14 @@ export function activeContext() {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* The prompt version + type fetched via getPrompt() outside any coalexContext() (a startup fetch),
|
|
11
|
-
* so later invocations of that agent and spans outside any context are still attributed
|
|
11
|
+
* so later invocations of that agent and spans outside any context are still attributed.
|
|
12
12
|
* Inside a context, getPrompt() writes to that context instead, so concurrent invocations of
|
|
13
13
|
* different agents never see each other's prompt.
|
|
14
14
|
*/
|
|
15
15
|
let _startupPrompt = null;
|
|
16
16
|
/**
|
|
17
17
|
* Record the prompt version/type getPrompt() served: on the active context when there is one,
|
|
18
|
-
* otherwise as the process-wide startup prompt
|
|
18
|
+
* otherwise as the process-wide startup prompt.
|
|
19
19
|
*/
|
|
20
20
|
export function setLastPrompt(version, type) {
|
|
21
21
|
const active = contextStore.getStore();
|
|
@@ -70,7 +70,7 @@ export function currentParentAgentId() {
|
|
|
70
70
|
return contextStore.getStore()?.parentAgentId;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* An agent that does not say which version it is, is an agent whose
|
|
74
74
|
* decisions cannot be attributed to a build — in a governance product that is the difference between
|
|
75
75
|
* "this decision came from this version of the system" and "it came from something". Measured
|
|
76
76
|
* 24/09/2026: the `golden-advisor` ran unversioned from 19/08 to 09/09 and only surfaced in a
|
|
@@ -119,7 +119,7 @@ export function resetVersionWarnings() {
|
|
|
119
119
|
/**
|
|
120
120
|
* Warn once per agent that no `version` was given.
|
|
121
121
|
*
|
|
122
|
-
* Through `log.warn`, never a bare `console.warn`:
|
|
122
|
+
* Through `log.warn`, never a bare `console.warn`: every diagnostic in this SDK is
|
|
123
123
|
* routable into the host's own logging and silenceable with `register({ logger: null })`, and a
|
|
124
124
|
* library that writes unconditionally to a production service's stderr is a defect on its own.
|
|
125
125
|
* A context nested in the same agent inherits that agent's version, so it is not warned about.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Decision Request — the gateway-proof HITL seam (
|
|
2
|
+
* Decision Request — the gateway-proof HITL seam (Console spec §4).
|
|
3
3
|
*
|
|
4
4
|
* A Decision Request is the single object the Coalex Console renders and resolves,
|
|
5
5
|
* deliberately agnostic to *who* produced it. In v1 the producer is the SDK's
|
|
@@ -42,8 +42,8 @@ export declare function parseResolver(spec: string): ResolverPolicy;
|
|
|
42
42
|
export declare function resolverToSpec(policy: ResolverPolicy): string;
|
|
43
43
|
/**
|
|
44
44
|
* Rebuild a ResumeHook from its `serializeResumeHook` wire shape (spec §4.4) — the inverse
|
|
45
|
-
* used when a persisted escalation carries a stored hook (`escalations.resume_hook
|
|
46
|
-
*
|
|
45
|
+
* used when a persisted escalation carries a stored hook (`escalations.resume_hook`). An
|
|
46
|
+
* unrecognized `kind` falls back to `checkpoint` so a forward Gateway value
|
|
47
47
|
* can never break the read path. Mirrors the Python SDK's `ResumeHook.from_dict`.
|
|
48
48
|
*/
|
|
49
49
|
export declare function resumeHookFromDict(data: Record<string, unknown>): ResumeHook;
|
|
@@ -77,11 +77,11 @@ export interface QuestionSchema {
|
|
|
77
77
|
required: string[];
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
* Fields a Decision Request must never carry to an approver (spec §6
|
|
80
|
+
* Fields a Decision Request must never carry to an approver (spec §6).
|
|
81
81
|
*
|
|
82
82
|
* Anchoring: a reviewer told the agent was 94% confident does not review, they ratify. The Python
|
|
83
83
|
* SDK has filtered these since the composer existed and the Console has filtered them at render
|
|
84
|
-
*
|
|
84
|
+
* — **this SDK filtered nothing**, and the JSDoc below claimed otherwise. So a
|
|
85
85
|
* TypeScript producer whose agent put `{answer, confidence: 0.94}` in the output had that
|
|
86
86
|
* confidence served to every other client of the Decision Requests API, and the anchoring the whole
|
|
87
87
|
* of §6 exists to prevent was live in that organisation.
|
|
@@ -106,17 +106,17 @@ export interface QuestionComposer {
|
|
|
106
106
|
*
|
|
107
107
|
* Case AND separators are normalised, so `riskScore`, `risk-score` and `Risk_Score` are the same key
|
|
108
108
|
* as `risk_score`. The comparison used to be an exact lowercase match, which meant the very same
|
|
109
|
-
* word in the very next casing convention walked straight through
|
|
110
|
-
* has applied
|
|
109
|
+
* word in the very next casing convention walked straight through — the rule the Console
|
|
110
|
+
* has applied, finally applied where the card's content is decided.
|
|
111
111
|
*
|
|
112
112
|
* Deliberately NOT a substring match. `reason` is on the list, so `reason_code` would be dropped —
|
|
113
|
-
* and a value hidden from the approver is its own §6 failure:
|
|
114
|
-
* was asked to approve a wire without seeing the amount. Dropping a legitimate field is not the safe
|
|
113
|
+
* and a value hidden from the approver is its own §6 failure: an operator
|
|
114
|
+
* was once asked to approve a wire without seeing the amount. Dropping a legitimate field is not the safe
|
|
115
115
|
* side of this trade, it is a different way to fail.
|
|
116
116
|
*/
|
|
117
117
|
export declare function isForbiddenFieldKey(key: string): boolean;
|
|
118
118
|
/**
|
|
119
|
-
* A copy of `value` with every §6-forbidden key removed, at EVERY depth
|
|
119
|
+
* A copy of `value` with every §6-forbidden key removed, at EVERY depth.
|
|
120
120
|
*
|
|
121
121
|
* Top level was the whole of the filter, and the deployed agent nests everything under `arguments` —
|
|
122
122
|
* which the card's own test fixture documents. So a payload carrying `arguments.confidence` and
|
|
@@ -130,7 +130,7 @@ export declare const identityComposer: QuestionComposer;
|
|
|
130
130
|
/**
|
|
131
131
|
* What the human needs to judge (spec §4.1, §6 de-biasing). `output` is shown as an editable
|
|
132
132
|
* answer, with the agent's reasoning, confidence and risk score removed by the composer — see
|
|
133
|
-
* `FORBIDDEN_FIELD_KEYS`.
|
|
133
|
+
* `FORBIDDEN_FIELD_KEYS`. This comment used to be a claim this SDK did not honour.
|
|
134
134
|
*/
|
|
135
135
|
export interface ContextPayload {
|
|
136
136
|
question: string;
|
|
@@ -168,7 +168,7 @@ export interface DecisionRequest {
|
|
|
168
168
|
resumeHook?: ResumeHook;
|
|
169
169
|
result?: ElicitationResult;
|
|
170
170
|
/**
|
|
171
|
-
* When this stops being worth waiting for
|
|
171
|
+
* When this stops being worth waiting for. Absent = no deadline. Surfaced so a reviewer
|
|
172
172
|
* can see how long they have, rather than finding out when the request disappears.
|
|
173
173
|
*/
|
|
174
174
|
expiresAt?: string;
|
|
@@ -217,7 +217,7 @@ export interface FromEscalationOptions {
|
|
|
217
217
|
composer?: QuestionComposer;
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Materialize an escalation as a Decision Request (spec §4
|
|
220
|
+
* Materialize an escalation as a Decision Request (spec §4). The task state
|
|
221
221
|
* and elicitation action follow spec §5's mapping. The escalation has no
|
|
222
222
|
* resolver/resume-hook of its own, so the producer supplies them here; `resolver`
|
|
223
223
|
* defaults to `self`. Throws on an unrecognized status.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-request.d.ts","sourceRoot":"","sources":["../src/decision-request.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,+DAA+D;AAC/D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE5F,yDAAyD;AACzD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,SAAS,CAM7C,CAAC;AAEH,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhE,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,IA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IAC7D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,UAAU,EAAE,cAAc,EAC1B,OAAO,GAAE,qBAA0B,GAClC,eAAe,CA4DjB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAM7E;AAoBD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrF"}
|
package/dist/decision-request.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Decision Request — the gateway-proof HITL seam (
|
|
2
|
+
* Decision Request — the gateway-proof HITL seam (Console spec §4).
|
|
3
3
|
*
|
|
4
4
|
* A Decision Request is the single object the Coalex Console renders and resolves,
|
|
5
5
|
* deliberately agnostic to *who* produced it. In v1 the producer is the SDK's
|
|
@@ -51,8 +51,8 @@ export function resolverToSpec(policy) {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Rebuild a ResumeHook from its `serializeResumeHook` wire shape (spec §4.4) — the inverse
|
|
54
|
-
* used when a persisted escalation carries a stored hook (`escalations.resume_hook
|
|
55
|
-
*
|
|
54
|
+
* used when a persisted escalation carries a stored hook (`escalations.resume_hook`). An
|
|
55
|
+
* unrecognized `kind` falls back to `checkpoint` so a forward Gateway value
|
|
56
56
|
* can never break the read path. Mirrors the Python SDK's `ResumeHook.from_dict`.
|
|
57
57
|
*/
|
|
58
58
|
export function resumeHookFromDict(data) {
|
|
@@ -65,11 +65,11 @@ export function resumeHookFromDict(data) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
* Fields a Decision Request must never carry to an approver (spec §6
|
|
68
|
+
* Fields a Decision Request must never carry to an approver (spec §6).
|
|
69
69
|
*
|
|
70
70
|
* Anchoring: a reviewer told the agent was 94% confident does not review, they ratify. The Python
|
|
71
71
|
* SDK has filtered these since the composer existed and the Console has filtered them at render
|
|
72
|
-
*
|
|
72
|
+
* — **this SDK filtered nothing**, and the JSDoc below claimed otherwise. So a
|
|
73
73
|
* TypeScript producer whose agent put `{answer, confidence: 0.94}` in the output had that
|
|
74
74
|
* confidence served to every other client of the Decision Requests API, and the anchoring the whole
|
|
75
75
|
* of §6 exists to prevent was live in that organisation.
|
|
@@ -93,8 +93,7 @@ export const FORBIDDEN_FIELD_KEYS = new Set([
|
|
|
93
93
|
"score",
|
|
94
94
|
]);
|
|
95
95
|
/**
|
|
96
|
-
* The curated human-readable `reason` from an escalation's metadata, for the card summary
|
|
97
|
-
* (COA-1758).
|
|
96
|
+
* The curated human-readable `reason` from an escalation's metadata, for the card summary.
|
|
98
97
|
*
|
|
99
98
|
* ONLY this field is surfaced from metadata — never the risk tier, the governed flag or the risk
|
|
100
99
|
* score, which is the same rule the denylist enforces one level up.
|
|
@@ -123,12 +122,12 @@ const TOO_DEEP = "[omitted: nested too deeply to check]";
|
|
|
123
122
|
*
|
|
124
123
|
* Case AND separators are normalised, so `riskScore`, `risk-score` and `Risk_Score` are the same key
|
|
125
124
|
* as `risk_score`. The comparison used to be an exact lowercase match, which meant the very same
|
|
126
|
-
* word in the very next casing convention walked straight through
|
|
127
|
-
* has applied
|
|
125
|
+
* word in the very next casing convention walked straight through — the rule the Console
|
|
126
|
+
* has applied, finally applied where the card's content is decided.
|
|
128
127
|
*
|
|
129
128
|
* Deliberately NOT a substring match. `reason` is on the list, so `reason_code` would be dropped —
|
|
130
|
-
* and a value hidden from the approver is its own §6 failure:
|
|
131
|
-
* was asked to approve a wire without seeing the amount. Dropping a legitimate field is not the safe
|
|
129
|
+
* and a value hidden from the approver is its own §6 failure: an operator
|
|
130
|
+
* was once asked to approve a wire without seeing the amount. Dropping a legitimate field is not the safe
|
|
132
131
|
* side of this trade, it is a different way to fail.
|
|
133
132
|
*/
|
|
134
133
|
export function isForbiddenFieldKey(key) {
|
|
@@ -140,7 +139,7 @@ export function isForbiddenFieldKey(key) {
|
|
|
140
139
|
return false;
|
|
141
140
|
}
|
|
142
141
|
/**
|
|
143
|
-
* A copy of `value` with every §6-forbidden key removed, at EVERY depth
|
|
142
|
+
* A copy of `value` with every §6-forbidden key removed, at EVERY depth.
|
|
144
143
|
*
|
|
145
144
|
* Top level was the whole of the filter, and the deployed agent nests everything under `arguments` —
|
|
146
145
|
* which the card's own test fixture documents. So a payload carrying `arguments.confidence` and
|
|
@@ -191,7 +190,7 @@ export const TASK_STATE_BY_STATUS = {
|
|
|
191
190
|
corrected: "completed",
|
|
192
191
|
rejected: "completed",
|
|
193
192
|
expired: "cancelled",
|
|
194
|
-
// The status the platform writes most often, and the one this map did not have
|
|
193
|
+
// The status the platform writes most often, and the one this map did not have. Every
|
|
195
194
|
// `evaluate()` the engine does not escalate is stored as `auto_approved`; without it
|
|
196
195
|
// `fromEscalation` threw on the ordinary case. Completed, with no action below: the task is done
|
|
197
196
|
// and nobody was asked.
|
|
@@ -245,7 +244,7 @@ function questionSchemaFromOutput(output, metrics) {
|
|
|
245
244
|
return { type: "object", properties, required };
|
|
246
245
|
}
|
|
247
246
|
/**
|
|
248
|
-
* Materialize an escalation as a Decision Request (spec §4
|
|
247
|
+
* Materialize an escalation as a Decision Request (spec §4). The task state
|
|
249
248
|
* and elicitation action follow spec §5's mapping. The escalation has no
|
|
250
249
|
* resolver/resume-hook of its own, so the producer supplies them here; `resolver`
|
|
251
250
|
* defaults to `self`. Throws on an unrecognized status.
|
|
@@ -258,7 +257,7 @@ export function fromEscalation(escalation, options = {}) {
|
|
|
258
257
|
throw new Error(`unknown escalation status '${status}'; expected one of ${known}`);
|
|
259
258
|
}
|
|
260
259
|
const action = ACTION_BY_STATUS[status];
|
|
261
|
-
// Through the composer, not straight from the escalation
|
|
260
|
+
// Through the composer, not straight from the escalation: this is where §6's
|
|
262
261
|
// forbidden keys are dropped, and where a better composer would change the card.
|
|
263
262
|
const composed = (options.composer ?? identityComposer).compose(escalation);
|
|
264
263
|
const questionSchema = composed.schema;
|
|
@@ -310,7 +309,7 @@ export function fromEscalation(escalation, options = {}) {
|
|
|
310
309
|
if (escalation.request_id)
|
|
311
310
|
dr.requestId = escalation.request_id;
|
|
312
311
|
// The producer may pass the hook explicitly; otherwise adopt the one persisted on the
|
|
313
|
-
// escalation at evaluate()
|
|
312
|
+
// escalation at evaluate(), so the Decision Request API returns it verbatim.
|
|
314
313
|
if (options.resumeHook)
|
|
315
314
|
dr.resumeHook = options.resumeHook;
|
|
316
315
|
else if (escalation.resume_hook)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-request.js","sourceRoot":"","sources":["../src/decision-request.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,yDAAyD;AACzD,MAAM,CAAC,MAAM,WAAW,GAA2B,IAAI,GAAG,CAAC;IACzD,SAAS;IACT,gBAAgB;IAChB,WAAW;IACX,QAAQ;IACR,WAAW;CACZ,CAAC,CAAC;AAKH,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAQrD,oEAAoE;AACpE,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC7C,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QAC/C,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACjF,OAAO,EAAE,IAAI,EAAE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,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC;IAC9D,IAAI,EAAE,CAAC,UAAU,KAAK,SAAS;QAAE,GAAG,CAAC,WAAW,GAAG,mBAAmB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IACtF,IAAI,EAAE,CAAC,MAAM,KAAK,SAAS;QAAE,GAAG,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACrE,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC;IAC9D,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC;IAC9D,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,SAAS,CAAC;IAC9D,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/evaluate.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type ResumeHook } from "./decision-request.js";
|
|
2
|
-
/** `semantic_similarity` was removed
|
|
2
|
+
/** `semantic_similarity` was removed: its server-side implementation returned a
|
|
3
3
|
* constant 0.0, so every field scored with it dragged the agent's health down for a reason
|
|
4
4
|
* that was not real. The server rejects the name too. */
|
|
5
5
|
export declare const KNOWN_METRICS: Set<string>;
|
|
6
6
|
export interface EvaluationDecision {
|
|
7
|
-
/** `rejected` was in this union and the server has never returned it
|
|
7
|
+
/** `rejected` was in this union and the server has never returned it:
|
|
8
8
|
* /evaluate chooses between these two and nothing else. A human rejecting an escalation is
|
|
9
9
|
* a different event, recorded on the escalation rather than on this response. */
|
|
10
10
|
readonly status: "auto_approved" | "escalated";
|
|
11
11
|
/**
|
|
12
|
-
* The same outcome in MCP vocabulary
|
|
12
|
+
* The same outcome in MCP vocabulary: "escalated" is "input_required". Undefined
|
|
13
13
|
* against an older platform that does not send it yet.
|
|
14
14
|
*/
|
|
15
15
|
readonly taskState?: string;
|
|
@@ -26,13 +26,13 @@ export interface EvaluateOptions {
|
|
|
26
26
|
metadata?: Record<string, unknown>;
|
|
27
27
|
/**
|
|
28
28
|
* Agent identifier. Defaults to the active coalexContext()'s agentId. Propagated
|
|
29
|
-
* so mid-run escalations get the right agent even before the trace ingests
|
|
29
|
+
* so mid-run escalations get the right agent even before the trace ingests.
|
|
30
30
|
*/
|
|
31
31
|
agentId?: string;
|
|
32
32
|
/**
|
|
33
|
-
* How the producer resumes after resolution (Decision Request §4.4
|
|
33
|
+
* How the producer resumes after resolution (Decision Request §4.4). When given,
|
|
34
34
|
* the agent's checkpoint/task hook is persisted on the resulting escalation so the Console
|
|
35
|
-
* (and the
|
|
35
|
+
* (and the resolve trigger) can continue the run. Omitted → no hook sent.
|
|
36
36
|
*/
|
|
37
37
|
resumeHook?: ResumeHook;
|
|
38
38
|
/**
|
package/dist/evaluate.js
CHANGED
|
@@ -5,7 +5,7 @@ import { currentAgentId, currentParentAgentId, currentRunId } from "./context.js
|
|
|
5
5
|
import { serializeResumeHook } from "./decision-request.js";
|
|
6
6
|
import { coalexFetch, httpError, sdkHeaders } from "./http.js";
|
|
7
7
|
import { log } from "./logger.js";
|
|
8
|
-
/** `semantic_similarity` was removed
|
|
8
|
+
/** `semantic_similarity` was removed: its server-side implementation returned a
|
|
9
9
|
* constant 0.0, so every field scored with it dragged the agent's health down for a reason
|
|
10
10
|
* that was not real. The server rejects the name too. */
|
|
11
11
|
export const KNOWN_METRICS = new Set([
|
|
@@ -18,7 +18,7 @@ export const KNOWN_METRICS = new Set([
|
|
|
18
18
|
"contains",
|
|
19
19
|
]);
|
|
20
20
|
/**
|
|
21
|
-
* Options the Python SDK accepts and this one does not
|
|
21
|
+
* Options the Python SDK accepts and this one does not.
|
|
22
22
|
*
|
|
23
23
|
* From TypeScript, passing one is a compile error — the earlier and better failure. From plain
|
|
24
24
|
* JavaScript it was silently dropped, and the escalation quietly took the platform's default
|
|
@@ -102,12 +102,12 @@ export async function evaluate(options) {
|
|
|
102
102
|
if (!resp.ok) {
|
|
103
103
|
throw await httpError("evaluate()", resp);
|
|
104
104
|
}
|
|
105
|
-
// The platform answered, so it is up: take any backlog of ungoverned records with it
|
|
105
|
+
// The platform answered, so it is up: take any backlog of ungoverned records with it.
|
|
106
106
|
// Not awaited — `evaluate()` is on the caller's hot path and must not get slower to drain a queue
|
|
107
107
|
// — and it never rejects. Without this the spool would only drain on the NEXT outage, keeping the
|
|
108
108
|
// backlog exactly as long as the outage lasted, and then some.
|
|
109
109
|
void flushUngoverned();
|
|
110
|
-
//
|
|
110
|
+
// Surface server-side deprecation notices to the caller.
|
|
111
111
|
const deprecation = resp.headers?.get?.("X-Deprecation");
|
|
112
112
|
if (deprecation) {
|
|
113
113
|
log.warn(`API deprecation: ${deprecation}`);
|
package/dist/evaluate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate.js","sourceRoot":"","sources":["../src/evaluate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAmB,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;0DAE0D;AAC1D,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IACnC,IAAI;IACJ,cAAc;IACd,MAAM;IACN,SAAS;IAC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,SAAS,EAAE,IAAI,CAAC,UAAU;QAC1B,YAAY,EAAE,IAAI,CAAC,aAAa,IAAI,SAAS;KAC9C,CAAC;AACJ,CAAC"}
|
package/dist/ext/tool.js
CHANGED
|
@@ -39,7 +39,7 @@ export function toolSpan(options, fn) {
|
|
|
39
39
|
}
|
|
40
40
|
const result = await fn(...args);
|
|
41
41
|
// Capture the return value so silver's output_value is populated —
|
|
42
|
-
// unblocks tool-correctness / tool-use metrics
|
|
42
|
+
// unblocks tool-correctness / tool-use metrics.
|
|
43
43
|
try {
|
|
44
44
|
span.setAttribute("output.value", serializeToolOutput(result));
|
|
45
45
|
}
|
|
@@ -51,7 +51,7 @@ export function toolSpan(options, fn) {
|
|
|
51
51
|
}
|
|
52
52
|
catch (e) {
|
|
53
53
|
// Its two siblings — `guardrail.ts` and `retrieval.ts` — already do this, and only
|
|
54
|
-
// `toolSpan` was left out
|
|
54
|
+
// `toolSpan` was left out. `startActiveSpan` does NOT record exceptions the way
|
|
55
55
|
// Python's `start_as_current_span(record_exception=True)` does, so a tool that threw on
|
|
56
56
|
// every call showed up in the trace viewer with status UNSET and no exception event —
|
|
57
57
|
// indistinguishable from success. The developer concluded the tool was fine and looked
|
package/dist/ext/tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../src/ext/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAOpD,MAAM,cAAc,GAAG,MAAM,CAAC;AAE9B;;;GAGG;AACH,SAAS,mBAAmB,CAAC,KAAc;IACzC,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAAC,MAAM,CAAC;QACP,IA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|
+
* The two things every governance call to Coalex has to get right.
|
|
3
3
|
*
|
|
4
4
|
* **A timeout.** Node's `fetch` has none. A swallowed connection — the shape a firewall that drops
|
|
5
5
|
* rather than refuses produces — leaves the promise pending *for ever*. A customer's network policy
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* body, so a 422 says the status and nothing about which field was wrong.
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
|
-
* Authorization + `X-SDK-Version`, for EVERY call rather than one of them
|
|
14
|
+
* Authorization + `X-SDK-Version`, for EVERY call rather than one of them.
|
|
15
15
|
*
|
|
16
16
|
* The header went out on `evaluate()` and `ungoverned` and nowhere else, so the platform could not
|
|
17
17
|
* answer "does this only happen on clients older than 1.20?" about the library whose whole job is
|
package/dist/http.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The two things every governance call to Coalex has to get right
|
|
2
|
+
* The two things every governance call to Coalex has to get right.
|
|
3
3
|
*
|
|
4
4
|
* **A timeout.** Node's `fetch` has none. A swallowed connection — the shape a firewall that drops
|
|
5
5
|
* rather than refuses produces — leaves the promise pending *for ever*. A customer's network policy
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { VERSION } from "./version.js";
|
|
14
14
|
/**
|
|
15
|
-
* Authorization + `X-SDK-Version`, for EVERY call rather than one of them
|
|
15
|
+
* Authorization + `X-SDK-Version`, for EVERY call rather than one of them.
|
|
16
16
|
*
|
|
17
17
|
* The header went out on `evaluate()` and `ungoverned` and nowhere else, so the platform could not
|
|
18
18
|
* answer "does this only happen on clients older than 1.20?" about the library whose whole job is
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface RegisterOptions {
|
|
|
35
35
|
filterNonAiSpans?: boolean;
|
|
36
36
|
suppressExportErrors?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Where this SDK's diagnostics go
|
|
38
|
+
* Where this SDK's diagnostics go. Defaults to `console`; pass your own logger to
|
|
39
39
|
* route them into your structured logging, or `null` to silence them.
|
|
40
40
|
*
|
|
41
41
|
* Every diagnostic used to be an unconditional `console.warn` into your service's stderr, which
|
|
@@ -43,7 +43,7 @@ export interface RegisterOptions {
|
|
|
43
43
|
*/
|
|
44
44
|
logger?: CoalexLogger | null;
|
|
45
45
|
/**
|
|
46
|
-
* Optionally tell the platform where this agent lives and what tools it has
|
|
46
|
+
* Optionally tell the platform where this agent lives and what tools it has, so it
|
|
47
47
|
* appears in the Console without anyone registering it by hand. Best-effort: a failure is
|
|
48
48
|
* logged and startup continues. Omit it and `register()` makes no network call at all.
|
|
49
49
|
*
|
|
@@ -54,9 +54,11 @@ export interface RegisterOptions {
|
|
|
54
54
|
/**
|
|
55
55
|
* Export the text of a prompt fetched with `getPrompt()` as a reference to its Prompt Vault
|
|
56
56
|
* version (`coalex.prompt.ref`) instead of in full; the platform restores it from the vault when
|
|
57
|
-
* it stores the span
|
|
58
|
-
*
|
|
59
|
-
*
|
|
57
|
+
* it stores the span, so the trace is smaller and carries the same governance data. On by
|
|
58
|
+
* default: `undefined` and an unset `COALEX_PROMPT_REFS` mean on. Pass `false`, or set
|
|
59
|
+
* `COALEX_PROMPT_REFS` to `0`/`false`/`no`/`off`, to export the prompt text in full. The option
|
|
60
|
+
* wins over the env var. A prompt becomes a reference only when `getPrompt()` loaded it and the
|
|
61
|
+
* platform can restore the span byte for byte; every other prompt is exported as it was.
|
|
60
62
|
*/
|
|
61
63
|
promptRefs?: boolean;
|
|
62
64
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3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15
|
export { agentNode, coalexContext, coalexContextSync, currentAgentId, currentAgentVersion, currentParentAgentId, currentRequestId, currentRunId, } from "./context.js";
|
|
16
16
|
export { evaluate, KNOWN_METRICS } from "./evaluate.js";
|
|
17
17
|
export { resolve, VALID_DECISIONS } from "./resolve.js";
|
|
18
|
-
// What ran while the platform was unreachable
|
|
18
|
+
// What ran while the platform was unreachable. Python's SDK already had this and
|
|
19
19
|
// this SDK had no equivalent at all, so a TypeScript agent's outage left nothing in the record —
|
|
20
20
|
// and an omission in a compliance report cannot be investigated the way a wrong label can.
|
|
21
21
|
export { recordUngoverned, flushUngoverned } from "./ungoverned.js";
|
|
22
22
|
export { fromEscalation, serializeDecisionRequest, parseResolver, resolverToSpec, resumeHookFromDict, serializeResumeHook, taskStateForStatus, TASK_STATES, TASK_STATE_BY_STATUS, DEFAULT_QUESTION,
|
|
23
23
|
// The §6 rule itself, so a custom `QuestionComposer` applies the same one rather than a weaker
|
|
24
|
-
// copy — which is exactly how the SDKs and the Console drifted apart
|
|
24
|
+
// copy — which is exactly how the SDKs and the Console drifted apart.
|
|
25
25
|
isForbiddenFieldKey, scrubForbidden, } from "./decision-request.js";
|
|
26
26
|
export { getPrompt } from "./prompts.js";
|
|
27
27
|
export { declareAgent } from "./agents.js";
|
|
@@ -76,7 +76,7 @@ export function register(options) {
|
|
|
76
76
|
const filterNonAiSpans = options?.filterNonAiSpans ?? false;
|
|
77
77
|
const suppressExportErrors = options?.suppressExportErrors ?? true;
|
|
78
78
|
const promptRefs = options?.promptRefs ??
|
|
79
|
-
["
|
|
79
|
+
!["0", "false", "no", "off"].includes((process.env.COALEX_PROMPT_REFS ?? "").trim().toLowerCase());
|
|
80
80
|
const captureContent = options?.captureContent ?? true;
|
|
81
81
|
const spanOptions = {
|
|
82
82
|
endpoint,
|
|
@@ -119,7 +119,7 @@ export function register(options) {
|
|
|
119
119
|
? new FilteringSpanExporter(safeExporter)
|
|
120
120
|
: safeExporter;
|
|
121
121
|
// OpenTelemetry JS 2.x removed the deprecated addSpanProcessor() call in favour of passing every
|
|
122
|
-
// processor to the constructor, in the same order they must run onStart
|
|
122
|
+
// processor to the constructor, in the same order they must run onStart: the attribute
|
|
123
123
|
// propagator has to see each span before the batch exporter picks it up.
|
|
124
124
|
const provider = new NodeTracerProvider({
|
|
125
125
|
resource,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA4B,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAqB,MAAM,aAAa,CAAC;AAG3D,OAAO,EACL,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,GACb,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM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AAO,GAAG,IAAI,CAAC;IACf,OAAO,GAAG,IAAI,CAAC;IACf,oBAAoB,GAAG,SAAS,CAAC;AACnC,CAAC"}
|
package/dist/inventory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Self-declaration: an agent tells the platform where it lives
|
|
1
|
+
// Self-declaration: an agent tells the platform where it lives.
|
|
2
2
|
//
|
|
3
3
|
// Until now an agent appeared in the Console only because somebody hand-wrote a config file and
|
|
4
4
|
// PUT it. That drifts the moment an agent moves or a new one is deployed. Here the agent declares
|
package/dist/inventory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../src/inventory.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../src/inventory.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,EAAE;AACF,gGAAgG;AAChG,kGAAkG;AAClG,6BAA6B;AAC7B,EAAE;AACF,mGAAmG;AACnG,sEAAsE;AACtE,iGAAiG;AACjG,0FAA0F;AAC1F,oGAAoG;AAGpG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,4FAA4F;AAC5F,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwB,IAAI,GAAG,CAAC,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,CAAC,CAAC;AAElH,MAAM,gBAAgB,GACpB,+DAA+D;IAC/D,+CAA+C,CAAC;AAClD,MAAM,wBAAwB,GAC5B,0FAA0F;IAC1F,iGAAiG;IACjG,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agnostics go.
|
|
3
3
|
*
|
|
4
4
|
* Every diagnostic used to be a raw `console.warn`: no level, no way to silence it, no way to route
|
|
5
5
|
* it into the host's own structured logging. A library writing unconditionally to a production
|
package/dist/prompt-refs.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Attributes } from "@opentelemetry/api";
|
|
2
2
|
import type { ReadableSpan, SpanExporter } from "@opentelemetry/sdk-trace-base";
|
|
3
3
|
/**
|
|
4
|
-
* Export a vault prompt as a reference instead of its text
|
|
4
|
+
* Export a vault prompt as a reference instead of its text. On by default; `register({ promptRefs: false })`
|
|
5
|
+
* or `COALEX_PROMPT_REFS=false` exports the text.
|
|
5
6
|
*
|
|
6
7
|
* The TypeScript twin of the Python SDK's `coalex/prompt_refs.py`, with the same wire format, which
|
|
7
8
|
* the transformer reads (`silver/prompt_refs.py`) to put the text back from the Prompt Vault when it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-refs.d.ts","sourceRoot":"","sources":["../src/prompt-refs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEhF
|
|
1
|
+
{"version":3,"file":"prompt-refs.d.ts","sourceRoot":"","sources":["../src/prompt-refs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEhF;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,aAAa,sBAAsB,CAAC;AACjD,eAAO,MAAM,aAAa,yBAAyB,CAAC;AACpD,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,SAAS,yCAA0C,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,SA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;AAC3F,qBAAa,uBAAwB,YAAW,YAAY;IAC9C,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,YAAY;IAE1D,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,GAAG,IAAI;IAkBnF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
package/dist/prompt-refs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
/**
|
|
3
|
-
* Export a vault prompt as a reference instead of its text
|
|
3
|
+
* Export a vault prompt as a reference instead of its text. On by default; `register({ promptRefs: false })`
|
|
4
|
+
* or `COALEX_PROMPT_REFS=false` exports the text.
|
|
4
5
|
*
|
|
5
6
|
* The TypeScript twin of the Python SDK's `coalex/prompt_refs.py`, with the same wire format, which
|
|
6
7
|
* the transformer reads (`silver/prompt_refs.py`) to put the text back from the Prompt Vault when it
|
package/dist/prompt-refs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-refs.js","sourceRoot":"","sources":["../src/prompt-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC
|
|
1
|
+
{"version":3,"file":"prompt-refs.js","sourceRoot":"","sources":["../src/prompt-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;AACjD,MAAM,CAAC,MAAM,aAAa,GAAG,sBAAsB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EA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AAK,EAAE,cAAc,CAAC,CAAC;YACnD,OAAO;QACT,CAAC;QACD,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7B,IAAI,CAAC;gBACH,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;gBAC/D,OAAO,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACpD,CAAC;YAAC,MAAM,CAAC;gBACP,sDAAsD;gBACtD,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,EAAE,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;CACF"}
|
package/dist/prompts.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface PromptVersion {
|
|
|
10
10
|
readonly metadata: Record<string, unknown>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* The version keywords the Prompt Vault actually implements, and nothing else
|
|
13
|
+
* The version keywords the Prompt Vault actually implements, and nothing else.
|
|
14
14
|
*
|
|
15
15
|
* `routes/prompts.py` branches on exactly these three and sends anything else to `int()`. This type
|
|
16
16
|
* used to include `"staging"`, which the platform has never had: its promotion map is
|
|
@@ -34,7 +34,7 @@ export interface GetPromptOptions {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Fetch a prompt template from the Prompt Vault — the TypeScript counterpart of the Python
|
|
37
|
-
* SDK's `coalex.get_prompt()
|
|
37
|
+
* SDK's `coalex.get_prompt()`.
|
|
38
38
|
*
|
|
39
39
|
* @throws if `register()` hasn't been called, or if the API returns a non-2xx (e.g. 404).
|
|
40
40
|
*/
|
package/dist/prompts.js
CHANGED
|
@@ -4,7 +4,7 @@ import { setLastPrompt } from "./context.js";
|
|
|
4
4
|
import { coalexFetch, httpError, sdkHeaders } from "./http.js";
|
|
5
5
|
import { rememberPrompt } from "./prompt-refs.js";
|
|
6
6
|
/**
|
|
7
|
-
* The version keywords the Prompt Vault actually implements, and nothing else
|
|
7
|
+
* The version keywords the Prompt Vault actually implements, and nothing else.
|
|
8
8
|
*
|
|
9
9
|
* `routes/prompts.py` branches on exactly these three and sends anything else to `int()`. This type
|
|
10
10
|
* used to include `"staging"`, which the platform has never had: its promotion map is
|
|
@@ -29,7 +29,7 @@ function checkedVersion(version) {
|
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Fetch a prompt template from the Prompt Vault — the TypeScript counterpart of the Python
|
|
32
|
-
* SDK's `coalex.get_prompt()
|
|
32
|
+
* SDK's `coalex.get_prompt()`.
|
|
33
33
|
*
|
|
34
34
|
* @throws if `register()` hasn't been called, or if the API returns a non-2xx (e.g. 404).
|
|
35
35
|
*/
|
|
@@ -46,9 +46,9 @@ export async function getPrompt(options) {
|
|
|
46
46
|
throw await httpError("getPrompt()", resp);
|
|
47
47
|
}
|
|
48
48
|
const data = await resp.json();
|
|
49
|
-
// Attribute subsequent spans to this prompt version
|
|
49
|
+
// Attribute subsequent spans to this prompt version: store it as a fallback for
|
|
50
50
|
// spans that start outside any invocation, and stamp the current span if one is recording.
|
|
51
|
-
// Remember the text too, so
|
|
51
|
+
// Remember the text too, so the span exporter can send it as a reference (on by default, `promptRefs: false` turns it off).
|
|
52
52
|
setLastPrompt(data.version, data.prompt_type);
|
|
53
53
|
rememberPrompt(data.id, data.version, data.content);
|
|
54
54
|
const active = trace.getActiveSpan();
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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MAAM,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;IACrC,IAAI,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC;QAC1B,MAAM,CAAC,YAAY,CAAC,uBAAuB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3D,MAAM,CAAC,YAAY,CAAC,oBAAoB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,OAAO,EAAE,IAAI,CAAC,QAAQ;QACtB,yFAAyF;QACzF,yFAAyF;QACzF,IAAI,EAAE,IAAI,CAAC,WAAW;QACtB,UAAU,EAAE,IAAI,CAAC,WAAW;QAC5B,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,EAAE;KAC9B,CAAC;AACJ,CAAC"}
|
package/dist/resolve.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const VALID_DECISIONS: Set<"approved" | "corrected" | "rejected" | "expired">;
|
|
2
2
|
/**
|
|
3
|
-
* The MCP spelling of the same four (
|
|
4
|
-
* the API understands both
|
|
3
|
+
* The MCP spelling of the same four (spec §5). Accepted here and sent on the wire as-is —
|
|
4
|
+
* the API understands both — so an integration can move vocabulary without the SDK
|
|
5
5
|
* translating behind its back and hiding which words it actually sent.
|
|
6
6
|
*/
|
|
7
7
|
export declare const MCP_DECISIONS: Set<"cancelled" | "accept" | "decline" | "cancel" | "accept-with-content">;
|
|
8
8
|
/**
|
|
9
|
-
* The one refusal a caller of `resolve()` cannot fix from code
|
|
9
|
+
* The one refusal a caller of `resolve()` cannot fix from code.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* A decision whose `resolver` names a role is closed only with a **reviewer
|
|
12
12
|
* assertion**: a signed proof that the person resolving it holds that role, issued by the Console.
|
|
13
13
|
* An SDK cannot mint one and should not be able to — an API key says which workload is calling,
|
|
14
14
|
* and the role gate exists to record which *person* approved.
|
|
@@ -30,14 +30,14 @@ export interface ResolutionResult {
|
|
|
30
30
|
readonly reviewerName?: string;
|
|
31
31
|
readonly reviewerEmail?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The MCP reading of the same resolution
|
|
33
|
+
* The MCP reading of the same resolution. Undefined against an older platform that does
|
|
34
34
|
* not send them yet — the SDK reports what it was told rather than deriving them locally, so a
|
|
35
35
|
* caller can tell "this deployment is older" from "this decision has no action".
|
|
36
36
|
*/
|
|
37
37
|
readonly taskState?: string;
|
|
38
38
|
readonly resultAction?: string;
|
|
39
39
|
}
|
|
40
|
-
/** Either vocabulary; they mean the same things
|
|
40
|
+
/** Either vocabulary; they mean the same things. */
|
|
41
41
|
export type Decision = "approved" | "rejected" | "corrected" | "expired" | "accept" | "accept-with-content" | "decline" | "cancel" | "cancelled";
|
|
42
42
|
export interface ResolveOptions {
|
|
43
43
|
escalationId: string;
|
package/dist/resolve.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,wDAAqE,CAAC;AAClG;;;;GAIG;AACH,eAAO,MAAM,aAAa,4EAMf,CAAC;AAIZ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,QAMiC,CAAC;AAEjE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,YAAY,EA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,UAAU,GACV,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,qBAAqB,GACrB,SAAS,GACT,QAAQ,GACR,WAAW,CAAC;AAEhB,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA4EhF"}
|
package/dist/resolve.js
CHANGED
|
@@ -2,8 +2,8 @@ import { getConfig, getApiKey } from "./index.js";
|
|
|
2
2
|
import { coalexFetch, httpError, sdkHeaders } from "./http.js";
|
|
3
3
|
export const VALID_DECISIONS = new Set(["approved", "rejected", "corrected", "expired"]);
|
|
4
4
|
/**
|
|
5
|
-
* The MCP spelling of the same four (
|
|
6
|
-
* the API understands both
|
|
5
|
+
* The MCP spelling of the same four (spec §5). Accepted here and sent on the wire as-is —
|
|
6
|
+
* the API understands both — so an integration can move vocabulary without the SDK
|
|
7
7
|
* translating behind its back and hiding which words it actually sent.
|
|
8
8
|
*/
|
|
9
9
|
export const MCP_DECISIONS = new Set([
|
|
@@ -15,9 +15,9 @@ export const MCP_DECISIONS = new Set([
|
|
|
15
15
|
]);
|
|
16
16
|
const ALL_DECISIONS = new Set([...VALID_DECISIONS, ...MCP_DECISIONS]);
|
|
17
17
|
/**
|
|
18
|
-
* The one refusal a caller of `resolve()` cannot fix from code
|
|
18
|
+
* The one refusal a caller of `resolve()` cannot fix from code.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* A decision whose `resolver` names a role is closed only with a **reviewer
|
|
21
21
|
* assertion**: a signed proof that the person resolving it holds that role, issued by the Console.
|
|
22
22
|
* An SDK cannot mint one and should not be able to — an API key says which workload is calling,
|
|
23
23
|
* and the role gate exists to record which *person* approved.
|
package/dist/safe-exporter.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface ExportResult {
|
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Never let a broken telemetry endpoint break the customer's agent — but never go quiet about it
|
|
8
|
-
* either (
|
|
8
|
+
* either (matching the Python SDK).
|
|
9
9
|
*
|
|
10
10
|
* This used to log the first three failures and then say nothing for the life of the process. A
|
|
11
11
|
* long-running agent whose key is rotated at hour six produced three warnings that scrolled past in
|
|
@@ -29,7 +29,7 @@ export declare class SafeOTLPSpanExporter implements SpanExporter {
|
|
|
29
29
|
/**
|
|
30
30
|
* The wrapped call can fail in two ways and only one of them was handled: `try/catch` catches a
|
|
31
31
|
* synchronous throw, but these methods RETURN the wrapped exporter's promise, so a rejection
|
|
32
|
-
* escaped this class entirely as an unhandled rejection
|
|
32
|
+
* escaped this class entirely as an unhandled rejection. And both swallowed the
|
|
33
33
|
* failure with no message at all — a flush that drops the last batch on shutdown is exactly the
|
|
34
34
|
* one worth knowing about.
|
|
35
35
|
*/
|
package/dist/safe-exporter.js
CHANGED
|
@@ -2,7 +2,7 @@ import { log } from "./logger.js";
|
|
|
2
2
|
const ExportResultCode = { SUCCESS: 0, FAILED: 1 };
|
|
3
3
|
/**
|
|
4
4
|
* Never let a broken telemetry endpoint break the customer's agent — but never go quiet about it
|
|
5
|
-
* either (
|
|
5
|
+
* either (matching the Python SDK).
|
|
6
6
|
*
|
|
7
7
|
* This used to log the first three failures and then say nothing for the life of the process. A
|
|
8
8
|
* long-running agent whose key is rotated at hour six produced three warnings that scrolled past in
|
|
@@ -61,7 +61,7 @@ export class SafeOTLPSpanExporter {
|
|
|
61
61
|
/**
|
|
62
62
|
* The wrapped call can fail in two ways and only one of them was handled: `try/catch` catches a
|
|
63
63
|
* synchronous throw, but these methods RETURN the wrapped exporter's promise, so a rejection
|
|
64
|
-
* escaped this class entirely as an unhandled rejection
|
|
64
|
+
* escaped this class entirely as an unhandled rejection. And both swallowed the
|
|
65
65
|
* failure with no message at all — a flush that drops the last batch on shutdown is exactly the
|
|
66
66
|
* one worth knowing about.
|
|
67
67
|
*/
|
package/dist/ungoverned.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Recording that an action ran WITHOUT governance (
|
|
2
|
+
* Recording that an action ran WITHOUT governance (ported from the Python SDK).
|
|
3
3
|
*
|
|
4
4
|
* An agent that cannot reach Coalex has two honest options: stop, or proceed and say so. Stopping
|
|
5
5
|
* is often wrong — failing closed blocks the customer's business when the fault is ours, and an
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* compliance report does not mislabel it, it OMITS it. For a document handed to a regulator that is
|
|
13
13
|
* the worse failure, because a wrong label can be investigated and an absence cannot.
|
|
14
14
|
*
|
|
15
|
-
* Python
|
|
15
|
+
* Python already had this and TypeScript had nothing — and the parity page did not say
|
|
16
16
|
* so either, so a TS customer's outage was invisible twice over.
|
|
17
17
|
*
|
|
18
18
|
* **Why this cannot be a plain API call.** The failure is, by definition, "we could not reach the
|
|
19
19
|
* platform". You cannot report to an unavailable service that it was unavailable. So the record is
|
|
20
20
|
* written to disk and delivered when the platform comes back.
|
|
21
21
|
*
|
|
22
|
-
* **This is not a transcription of the Python module.**
|
|
22
|
+
* **This is not a transcription of the Python module.** It has three known defects, and all
|
|
23
23
|
* three are closed here rather than inherited:
|
|
24
24
|
*
|
|
25
25
|
* 1. its `flush` reads the file, makes a network call, then rewrites the remainder — so a record
|
package/dist/ungoverned.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Recording that an action ran WITHOUT governance (
|
|
2
|
+
* Recording that an action ran WITHOUT governance (ported from the Python SDK).
|
|
3
3
|
*
|
|
4
4
|
* An agent that cannot reach Coalex has two honest options: stop, or proceed and say so. Stopping
|
|
5
5
|
* is often wrong — failing closed blocks the customer's business when the fault is ours, and an
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* compliance report does not mislabel it, it OMITS it. For a document handed to a regulator that is
|
|
13
13
|
* the worse failure, because a wrong label can be investigated and an absence cannot.
|
|
14
14
|
*
|
|
15
|
-
* Python
|
|
15
|
+
* Python already had this and TypeScript had nothing — and the parity page did not say
|
|
16
16
|
* so either, so a TS customer's outage was invisible twice over.
|
|
17
17
|
*
|
|
18
18
|
* **Why this cannot be a plain API call.** The failure is, by definition, "we could not reach the
|
|
19
19
|
* platform". You cannot report to an unavailable service that it was unavailable. So the record is
|
|
20
20
|
* written to disk and delivered when the platform comes back.
|
|
21
21
|
*
|
|
22
|
-
* **This is not a transcription of the Python module.**
|
|
22
|
+
* **This is not a transcription of the Python module.** It has three known defects, and all
|
|
23
23
|
* three are closed here rather than inherited:
|
|
24
24
|
*
|
|
25
25
|
* 1. its `flush` reads the file, makes a network call, then rewrites the remainder — so a record
|
|
@@ -81,7 +81,7 @@ function identity() {
|
|
|
81
81
|
* The filename carries a hash of endpoint + API key, and deliberately NOT the process id. Two
|
|
82
82
|
* processes sharing one key SHOULD share a spool: whichever is alive drains it, and that is what
|
|
83
83
|
* makes a record outlive the process that wrote it. What must never be shared is two different
|
|
84
|
-
* keys — the mix-up
|
|
84
|
+
* keys — the mix-up where one customer's actions are posted into another's
|
|
85
85
|
* audit trail. The key is hashed and never written: no key has reached a file or a log line from
|
|
86
86
|
* this SDK, and a spool filename is something a customer will read.
|
|
87
87
|
*/
|
|
@@ -127,7 +127,7 @@ async function post(endpoint, apiKey, entry, late) {
|
|
|
127
127
|
arguments: null,
|
|
128
128
|
// A vocabulary of its own, and that is the whole point: `allow` would say the platform
|
|
129
129
|
// permitted this call. Nobody permitted it — nobody was asked. The transformer reads
|
|
130
|
-
// exactly this field to tell the rail row apart from a freely-running tool
|
|
130
|
+
// exactly this field to tell the rail row apart from a freely-running tool,
|
|
131
131
|
// and the compliance exporter maps it to `ungoverned` rather than `allowed`.
|
|
132
132
|
policy_decision: "ungoverned",
|
|
133
133
|
outcome: "ran",
|
|
@@ -148,7 +148,7 @@ async function post(endpoint, apiKey, entry, late) {
|
|
|
148
148
|
if (resp.ok)
|
|
149
149
|
return "delivered";
|
|
150
150
|
// A record the server will never accept. Keeping it would block every record behind it for ever,
|
|
151
|
-
// which is how a queue that exists to preserve evidence ends up preserving none of it
|
|
151
|
+
// which is how a queue that exists to preserve evidence ends up preserving none of it.
|
|
152
152
|
if (resp.status === 400 || resp.status === 404 || resp.status === 422) {
|
|
153
153
|
log.warn(`dropping an ungoverned record the platform rejected permanently (${resp.status}); ` +
|
|
154
154
|
`action=${entry.action} request_id=${entry.request_id}`);
|
|
@@ -308,7 +308,7 @@ async function drain() {
|
|
|
308
308
|
const path = spoolPath(endpoint, apiKey);
|
|
309
309
|
reclaimStranded(path);
|
|
310
310
|
// Rotate, then work on the copy. Anything appended from here on goes to a fresh live file and
|
|
311
|
-
// cannot be erased by this drain — the defect
|
|
311
|
+
// cannot be erased by this drain — the defect the Python side has.
|
|
312
312
|
const working = `${path}.${process.pid}.${Date.now()}.sending`;
|
|
313
313
|
try {
|
|
314
314
|
renameSync(path, working);
|
package/dist/ungoverned.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ungoverned.js","sourceRoot":"","sources":["../src/ungoverned.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAA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ION = "2.
|
|
1
|
+
export declare const VERSION = "2.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SDK version, sent in the X-SDK-Version header so the platform can see which
|
|
2
|
-
// SDK releases customers run before removing a deprecated field
|
|
2
|
+
// SDK releases customers run before removing a deprecated field.
|
|
3
3
|
// Keep in sync with package.json "version".
|
|
4
|
-
export const VERSION = "2.
|
|
4
|
+
export const VERSION = "2.10.0";
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,iEAAiE;AACjE,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|