@orcareplay/schema 0.2.5-main.gac3a619 → 0.3.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/constants.d.ts +14 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +17 -1
- package/dist/constants.js.map +1 -1
- package/package.json +1 -1
- package/schema/event.schema.json +4 -0
package/dist/constants.d.ts
CHANGED
|
@@ -5,14 +5,26 @@
|
|
|
5
5
|
* `test/schema-parity.test.ts` proves the arrays equal the schema enums. That gives the
|
|
6
6
|
* same drift protection as codegen without a build step that can silently break.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SCHEMA_VERSION = "0.
|
|
9
|
-
export declare const EVENT_TYPES: readonly ["run.start", "run.end", "model.request", "model.response", "tool.call", "tool.result", "mcp.request", "mcp.response", "shell.exec", "shell.result", "fs.snapshot", "fs.change", "net.request", "net.response", "error", "divergence", "checkpoint", "fork", "route.decision", "session.snapshot", "note"];
|
|
8
|
+
export declare const SCHEMA_VERSION = "0.2.0";
|
|
9
|
+
export declare const EVENT_TYPES: readonly ["run.start", "run.end", "model.request", "model.response", "tool.call", "tool.result", "mcp.request", "mcp.response", "shell.exec", "shell.result", "fs.snapshot", "fs.change", "net.request", "net.response", "retrieval.context", "error", "divergence", "checkpoint", "fork", "agent.start", "agent.handoff", "agent.guardrail", "route.decision", "session.snapshot", "note"];
|
|
10
10
|
export declare const ACTORS: readonly ["agent", "harness", "model", "orca", "gateway", "tool", "user"];
|
|
11
11
|
export declare const DIVERGENCE_LEVELS: readonly ["minor", "major"];
|
|
12
12
|
/** Match rungs from spec §4. Rung 1 is an exact canonical-hash match. */
|
|
13
13
|
export declare const MATCH_RUNGS: readonly [1, 2, 3, 4];
|
|
14
14
|
/** Payloads larger than this (serialized bytes) MUST spill to a blob. Spec §2.2. */
|
|
15
15
|
export declare const INLINE_PAYLOAD_LIMIT = 4096;
|
|
16
|
+
/**
|
|
17
|
+
* The instants a `date-time` `ts` can write down: `0000-01-01T00:00:00.000Z` and
|
|
18
|
+
* `9999-12-31T23:59:59.999Z`.
|
|
19
|
+
*
|
|
20
|
+
* `Date.parse` accepts far more than this — `+275760-09-13T00:00:00Z` parses, and
|
|
21
|
+
* `toISOString` writes it back with a six-digit year, which the format rejects. Every reader that
|
|
22
|
+
* hands the drain an instant off a file another process wrote has to bound it, because the throw
|
|
23
|
+
* lands inside `TraceWriter.append`, where the trace is being sealed. Three of them do; this is
|
|
24
|
+
* the copy they share, since what the bound describes is this schema rather than any one of them.
|
|
25
|
+
*/
|
|
26
|
+
export declare const EARLIEST_TS_MS = -62167219200000;
|
|
27
|
+
export declare const LATEST_TS_MS = 253402300799999;
|
|
16
28
|
export declare const RUN_ID_PATTERN: RegExp;
|
|
17
29
|
export declare const BLOB_REF_PATTERN: RegExp;
|
|
18
30
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,WAAW,6XA0Bd,CAAC;AAEX,eAAO,MAAM,MAAM,2EAA4E,CAAC;AAEhG,eAAO,MAAM,iBAAiB,6BAA8B,CAAC;AAE7D,yEAAyE;AACzE,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,kBAAsB,CAAC;AAClD,eAAO,MAAM,YAAY,kBAAsB,CAAC;AAEhD,eAAO,MAAM,cAAc,QAAyB,CAAC;AACrD,eAAO,MAAM,gBAAgB,QAA0B,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `test/schema-parity.test.ts` proves the arrays equal the schema enums. That gives the
|
|
6
6
|
* same drift protection as codegen without a build step that can silently break.
|
|
7
7
|
*/
|
|
8
|
-
export const SCHEMA_VERSION = '0.
|
|
8
|
+
export const SCHEMA_VERSION = '0.2.0';
|
|
9
9
|
export const EVENT_TYPES = [
|
|
10
10
|
'run.start',
|
|
11
11
|
'run.end',
|
|
@@ -21,10 +21,14 @@ export const EVENT_TYPES = [
|
|
|
21
21
|
'fs.change',
|
|
22
22
|
'net.request',
|
|
23
23
|
'net.response',
|
|
24
|
+
'retrieval.context',
|
|
24
25
|
'error',
|
|
25
26
|
'divergence',
|
|
26
27
|
'checkpoint',
|
|
27
28
|
'fork',
|
|
29
|
+
'agent.start',
|
|
30
|
+
'agent.handoff',
|
|
31
|
+
'agent.guardrail',
|
|
28
32
|
'route.decision',
|
|
29
33
|
'session.snapshot',
|
|
30
34
|
'note',
|
|
@@ -35,6 +39,18 @@ export const DIVERGENCE_LEVELS = ['minor', 'major'];
|
|
|
35
39
|
export const MATCH_RUNGS = [1, 2, 3, 4];
|
|
36
40
|
/** Payloads larger than this (serialized bytes) MUST spill to a blob. Spec §2.2. */
|
|
37
41
|
export const INLINE_PAYLOAD_LIMIT = 4096;
|
|
42
|
+
/**
|
|
43
|
+
* The instants a `date-time` `ts` can write down: `0000-01-01T00:00:00.000Z` and
|
|
44
|
+
* `9999-12-31T23:59:59.999Z`.
|
|
45
|
+
*
|
|
46
|
+
* `Date.parse` accepts far more than this — `+275760-09-13T00:00:00Z` parses, and
|
|
47
|
+
* `toISOString` writes it back with a six-digit year, which the format rejects. Every reader that
|
|
48
|
+
* hands the drain an instant off a file another process wrote has to bound it, because the throw
|
|
49
|
+
* lands inside `TraceWriter.append`, where the trace is being sealed. Three of them do; this is
|
|
50
|
+
* the copy they share, since what the bound describes is this schema rather than any one of them.
|
|
51
|
+
*/
|
|
52
|
+
export const EARLIEST_TS_MS = -62_167_219_200_000;
|
|
53
|
+
export const LATEST_TS_MS = 253_402_300_799_999;
|
|
38
54
|
export const RUN_ID_PATTERN = /^run_[0-9a-f]{6,32}$/;
|
|
39
55
|
export const BLOB_REF_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
40
56
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,aAAa;IACb,cAAc;IACd,YAAY;IACZ,cAAc;IACd,aAAa;IACb,WAAW;IACX,aAAa;IACb,cAAc;IACd,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AAE7D,yEAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAEjD,oFAAoF;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,aAAa;IACb,cAAc;IACd,YAAY;IACZ,cAAc;IACd,aAAa;IACb,WAAW;IACX,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,OAAO;IACP,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,MAAM;CACE,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AAE7D,yEAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAEjD,oFAAoF;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,kBAAkB,CAAC;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC"}
|
package/package.json
CHANGED
package/schema/event.schema.json
CHANGED
|
@@ -27,10 +27,14 @@
|
|
|
27
27
|
"fs.change",
|
|
28
28
|
"net.request",
|
|
29
29
|
"net.response",
|
|
30
|
+
"retrieval.context",
|
|
30
31
|
"error",
|
|
31
32
|
"divergence",
|
|
32
33
|
"checkpoint",
|
|
33
34
|
"fork",
|
|
35
|
+
"agent.start",
|
|
36
|
+
"agent.handoff",
|
|
37
|
+
"agent.guardrail",
|
|
34
38
|
"route.decision",
|
|
35
39
|
"session.snapshot",
|
|
36
40
|
"note"
|