@peasant-labs/schema 0.22.0 → 0.24.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/fixtures/session-graph-capability.d.ts +83 -3
- package/dist/index.js +75 -0
- package/dist/internal/generated/content-capabilities.gen.d.ts +1 -0
- package/dist/internal/generated/content-capabilities.gen.js +4 -1
- package/dist/internal/generated/contract/zod.gen.d.ts +52 -0
- package/dist/internal/generated/contract/zod.gen.js +17 -0
- package/dist/internal/generated/local-api.d.ts +2 -0
- package/dist/internal/generated/public-contract.gen.d.ts +2 -2
- package/dist/internal/generated/public-contract.gen.js +1 -1
- package/dist/internal/generated/session-graph-capability-fixtures.gen.d.ts +83 -3
- package/dist/internal/generated/session-graph-capability-fixtures.gen.js +116 -3
- package/dist/internal/generated/versions.gen.d.ts +3 -3
- package/dist/internal/generated/versions.gen.js +3 -3
- package/dist/internal/generated/village-api.d.ts +3 -1
- package/dist/internal/generated/wire-alias-shapes.gen.d.ts +267 -0
- package/dist/internal/generated/wire-alias-shapes.gen.js +268 -0
- package/package.json +1 -1
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
export declare const canonicalSessionGraphCapabilityFixtures: {
|
|
2
2
|
readonly requiredNames: {
|
|
3
|
-
readonly derivation: readonly ["legacy-empty", "root-null", "usage-null", "model-only", "source-ref-only", "count-only-zero", "count-only-positive", "root-only", "purpose-only-interaction", "purpose-only-delegated", "purpose-only-helper", "purpose-only-unknown", "relationship-only", "main-deeper-provenance", "folded-call-provenance", "folded-result-provenance", "earlier-only", "earlier-nested-tool-native-usage-model", "navigation-only-read"];
|
|
4
|
-
readonly reader: readonly ["advertisement-omitted", "advertisement-empty", "advertisement-null", "advertisement-unknown-duplicate-unordered", "advertisement-future-suffix"];
|
|
5
|
-
readonly producer: readonly ["producer-canonical-four", "producer-unsorted-four", "producer-duplicate", "producer-unknown"];
|
|
3
|
+
readonly derivation: readonly ["legacy-empty", "root-null", "usage-null", "model-only", "source-ref-only", "count-only-zero", "count-only-positive", "root-only", "purpose-only-interaction", "purpose-only-delegated", "purpose-only-helper", "purpose-only-unknown", "relationship-only", "main-deeper-provenance", "folded-call-provenance", "folded-result-provenance", "earlier-only", "earlier-nested-tool-native-usage-model", "navigation-only-read", "retained-accumulates-all"];
|
|
4
|
+
readonly reader: readonly ["advertisement-omitted", "advertisement-empty", "advertisement-null", "advertisement-unknown-duplicate-unordered", "advertisement-future-suffix", "advertisement-retained-duplicate"];
|
|
5
|
+
readonly producer: readonly ["producer-canonical-four", "producer-unsorted-four", "producer-duplicate", "producer-unknown", "producer-canonical-retained", "producer-unsorted-retained", "producer-duplicate-retained"];
|
|
6
6
|
};
|
|
7
7
|
readonly derivation: {
|
|
8
8
|
readonly cases: readonly [{
|
|
9
|
+
readonly name: "retained-accumulates-all";
|
|
10
|
+
readonly classification: "must-pass";
|
|
11
|
+
readonly provenance: {
|
|
12
|
+
readonly source: "requirement";
|
|
13
|
+
readonly ref: "content-capability-negotiation";
|
|
14
|
+
};
|
|
15
|
+
readonly mutation: {
|
|
16
|
+
readonly description: "Retained evidence accumulates every existing preservation requirement";
|
|
17
|
+
};
|
|
18
|
+
readonly input: {
|
|
19
|
+
readonly detailJSON: "{\"id\":\"fixture-session\",\"harness\":\"pi\",\"startTime\":\"2020-01-01T00:00:00Z\",\"endTime\":\"2020-01-01T00:00:00Z\",\"durationMins\":0,\"totalTokens\":0,\"tokensIn\":0,\"tokensOut\":0,\"turnCount\":1,\"toolCallCount\":1,\"purpose\":\"interaction\",\"turns\":[{\"index\":0,\"role\":\"assistant\",\"depth\":0,\"content\":\"\",\"timestamp\":\"2020-01-01T00:00:00Z\",\"sourceEntryRef\":\"e1\",\"observedModel\":\"provider/model\",\"usage\":{\"ownerId\":\"u1\",\"sourceEntryRef\":\"e1\",\"scope\":\"assistant\",\"completeness\":\"unknown\"},\"toolCalls\":[{\"id\":\"t1\",\"name\":\"tool\",\"namespace\":\"extension\",\"arguments\":\"\",\"result\":\"\"}]}],\"nativeMetadata\":[{\"id\":\"n1\",\"kind\":\"pi.custom.data\",\"source\":{\"entryRef\":\"custom1\",\"sourceType\":\"pi.custom\"},\"customType\":\"extension\",\"data\":{}}],\"diagnostics\":{\"partial\":true},\"retainedUnknown\":[{\"sourceRef\":\"source-0\",\"recordIndex\":2,\"position\":4,\"pointer\":\"\",\"namespace\":\"record\",\"kind\":\"future\",\"payload\":\"{\\\"type\\\":\\\"future\\\"}\"}]}";
|
|
20
|
+
};
|
|
21
|
+
readonly expected: {
|
|
22
|
+
readonly capabilities: readonly ["detailed_usage_v1", "native_metadata_v1", "observed_model_v1", "retained_unknown_v1", "session_graph_provenance_v1", "tool_namespace_v1"];
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
9
25
|
readonly name: "legacy-empty";
|
|
10
26
|
readonly classification: "must-pass";
|
|
11
27
|
readonly provenance: {
|
|
@@ -303,6 +319,22 @@ export declare const canonicalSessionGraphCapabilityFixtures: {
|
|
|
303
319
|
};
|
|
304
320
|
readonly reader: {
|
|
305
321
|
readonly cases: readonly [{
|
|
322
|
+
readonly name: "advertisement-retained-duplicate";
|
|
323
|
+
readonly classification: "must-pass";
|
|
324
|
+
readonly provenance: {
|
|
325
|
+
readonly source: "requirement";
|
|
326
|
+
readonly ref: "content-capability-negotiation";
|
|
327
|
+
};
|
|
328
|
+
readonly mutation: {
|
|
329
|
+
readonly description: "Exact retained token survives forward-open discovery";
|
|
330
|
+
};
|
|
331
|
+
readonly input: {
|
|
332
|
+
readonly json: "{\"contentCapabilities\":[\"retained_unknown_v1\",\"retained_unknown_v2\",\"retained_unknown_v1\",\"session_graph_provenance_v1\"]}";
|
|
333
|
+
};
|
|
334
|
+
readonly expected: {
|
|
335
|
+
readonly known: readonly ["retained_unknown_v1", "session_graph_provenance_v1"];
|
|
336
|
+
};
|
|
337
|
+
}, {
|
|
306
338
|
readonly name: "advertisement-omitted";
|
|
307
339
|
readonly classification: "must-pass";
|
|
308
340
|
readonly provenance: {
|
|
@@ -386,6 +418,54 @@ export declare const canonicalSessionGraphCapabilityFixtures: {
|
|
|
386
418
|
};
|
|
387
419
|
readonly producer: {
|
|
388
420
|
readonly cases: readonly [{
|
|
421
|
+
readonly name: "producer-canonical-retained";
|
|
422
|
+
readonly classification: "must-pass";
|
|
423
|
+
readonly provenance: {
|
|
424
|
+
readonly source: "requirement";
|
|
425
|
+
readonly ref: "content-capability-negotiation";
|
|
426
|
+
};
|
|
427
|
+
readonly mutation: {
|
|
428
|
+
readonly description: "Emits sorted accumulated inventory";
|
|
429
|
+
};
|
|
430
|
+
readonly input: {
|
|
431
|
+
readonly tokens: readonly ["detailed_usage_v1", "native_metadata_v1", "observed_model_v1", "retained_unknown_v1", "session_graph_provenance_v1", "tool_namespace_v1"];
|
|
432
|
+
};
|
|
433
|
+
readonly expected: {
|
|
434
|
+
readonly accepted: true;
|
|
435
|
+
};
|
|
436
|
+
}, {
|
|
437
|
+
readonly name: "producer-unsorted-retained";
|
|
438
|
+
readonly classification: "must-fail";
|
|
439
|
+
readonly provenance: {
|
|
440
|
+
readonly source: "boundary";
|
|
441
|
+
readonly ref: "content-capability-negotiation";
|
|
442
|
+
};
|
|
443
|
+
readonly mutation: {
|
|
444
|
+
readonly description: "Retained token out of canonical order refuses";
|
|
445
|
+
};
|
|
446
|
+
readonly input: {
|
|
447
|
+
readonly tokens: readonly ["retained_unknown_v1", "observed_model_v1"];
|
|
448
|
+
};
|
|
449
|
+
readonly expected: {
|
|
450
|
+
readonly errorContains: "canonical lexicographic order";
|
|
451
|
+
};
|
|
452
|
+
}, {
|
|
453
|
+
readonly name: "producer-duplicate-retained";
|
|
454
|
+
readonly classification: "must-fail";
|
|
455
|
+
readonly provenance: {
|
|
456
|
+
readonly source: "boundary";
|
|
457
|
+
readonly ref: "content-capability-negotiation";
|
|
458
|
+
};
|
|
459
|
+
readonly mutation: {
|
|
460
|
+
readonly description: "Duplicate retained token refuses";
|
|
461
|
+
};
|
|
462
|
+
readonly input: {
|
|
463
|
+
readonly tokens: readonly ["retained_unknown_v1", "retained_unknown_v1"];
|
|
464
|
+
};
|
|
465
|
+
readonly expected: {
|
|
466
|
+
readonly errorContains: "duplicated";
|
|
467
|
+
};
|
|
468
|
+
}, {
|
|
389
469
|
readonly name: "producer-canonical-four";
|
|
390
470
|
readonly classification: "must-pass";
|
|
391
471
|
readonly provenance: {
|
|
@@ -20,24 +20,53 @@ export const canonicalSessionGraphCapabilityFixtures = {
|
|
|
20
20
|
"folded-result-provenance",
|
|
21
21
|
"earlier-only",
|
|
22
22
|
"earlier-nested-tool-native-usage-model",
|
|
23
|
-
"navigation-only-read"
|
|
23
|
+
"navigation-only-read",
|
|
24
|
+
"retained-accumulates-all"
|
|
24
25
|
],
|
|
25
26
|
"reader": [
|
|
26
27
|
"advertisement-omitted",
|
|
27
28
|
"advertisement-empty",
|
|
28
29
|
"advertisement-null",
|
|
29
30
|
"advertisement-unknown-duplicate-unordered",
|
|
30
|
-
"advertisement-future-suffix"
|
|
31
|
+
"advertisement-future-suffix",
|
|
32
|
+
"advertisement-retained-duplicate"
|
|
31
33
|
],
|
|
32
34
|
"producer": [
|
|
33
35
|
"producer-canonical-four",
|
|
34
36
|
"producer-unsorted-four",
|
|
35
37
|
"producer-duplicate",
|
|
36
|
-
"producer-unknown"
|
|
38
|
+
"producer-unknown",
|
|
39
|
+
"producer-canonical-retained",
|
|
40
|
+
"producer-unsorted-retained",
|
|
41
|
+
"producer-duplicate-retained"
|
|
37
42
|
]
|
|
38
43
|
},
|
|
39
44
|
"derivation": {
|
|
40
45
|
"cases": [
|
|
46
|
+
{
|
|
47
|
+
"name": "retained-accumulates-all",
|
|
48
|
+
"classification": "must-pass",
|
|
49
|
+
"provenance": {
|
|
50
|
+
"source": "requirement",
|
|
51
|
+
"ref": "content-capability-negotiation"
|
|
52
|
+
},
|
|
53
|
+
"mutation": {
|
|
54
|
+
"description": "Retained evidence accumulates every existing preservation requirement"
|
|
55
|
+
},
|
|
56
|
+
"input": {
|
|
57
|
+
"detailJSON": "{\"id\":\"fixture-session\",\"harness\":\"pi\",\"startTime\":\"2020-01-01T00:00:00Z\",\"endTime\":\"2020-01-01T00:00:00Z\",\"durationMins\":0,\"totalTokens\":0,\"tokensIn\":0,\"tokensOut\":0,\"turnCount\":1,\"toolCallCount\":1,\"purpose\":\"interaction\",\"turns\":[{\"index\":0,\"role\":\"assistant\",\"depth\":0,\"content\":\"\",\"timestamp\":\"2020-01-01T00:00:00Z\",\"sourceEntryRef\":\"e1\",\"observedModel\":\"provider/model\",\"usage\":{\"ownerId\":\"u1\",\"sourceEntryRef\":\"e1\",\"scope\":\"assistant\",\"completeness\":\"unknown\"},\"toolCalls\":[{\"id\":\"t1\",\"name\":\"tool\",\"namespace\":\"extension\",\"arguments\":\"\",\"result\":\"\"}]}],\"nativeMetadata\":[{\"id\":\"n1\",\"kind\":\"pi.custom.data\",\"source\":{\"entryRef\":\"custom1\",\"sourceType\":\"pi.custom\"},\"customType\":\"extension\",\"data\":{}}],\"diagnostics\":{\"partial\":true},\"retainedUnknown\":[{\"sourceRef\":\"source-0\",\"recordIndex\":2,\"position\":4,\"pointer\":\"\",\"namespace\":\"record\",\"kind\":\"future\",\"payload\":\"{\\\"type\\\":\\\"future\\\"}\"}]}"
|
|
58
|
+
},
|
|
59
|
+
"expected": {
|
|
60
|
+
"capabilities": [
|
|
61
|
+
"detailed_usage_v1",
|
|
62
|
+
"native_metadata_v1",
|
|
63
|
+
"observed_model_v1",
|
|
64
|
+
"retained_unknown_v1",
|
|
65
|
+
"session_graph_provenance_v1",
|
|
66
|
+
"tool_namespace_v1"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
41
70
|
{
|
|
42
71
|
"name": "legacy-empty",
|
|
43
72
|
"classification": "must-pass",
|
|
@@ -384,6 +413,26 @@ export const canonicalSessionGraphCapabilityFixtures = {
|
|
|
384
413
|
},
|
|
385
414
|
"reader": {
|
|
386
415
|
"cases": [
|
|
416
|
+
{
|
|
417
|
+
"name": "advertisement-retained-duplicate",
|
|
418
|
+
"classification": "must-pass",
|
|
419
|
+
"provenance": {
|
|
420
|
+
"source": "requirement",
|
|
421
|
+
"ref": "content-capability-negotiation"
|
|
422
|
+
},
|
|
423
|
+
"mutation": {
|
|
424
|
+
"description": "Exact retained token survives forward-open discovery"
|
|
425
|
+
},
|
|
426
|
+
"input": {
|
|
427
|
+
"json": "{\"contentCapabilities\":[\"retained_unknown_v1\",\"retained_unknown_v2\",\"retained_unknown_v1\",\"session_graph_provenance_v1\"]}"
|
|
428
|
+
},
|
|
429
|
+
"expected": {
|
|
430
|
+
"known": [
|
|
431
|
+
"retained_unknown_v1",
|
|
432
|
+
"session_graph_provenance_v1"
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
387
436
|
{
|
|
388
437
|
"name": "advertisement-omitted",
|
|
389
438
|
"classification": "must-pass",
|
|
@@ -482,6 +531,70 @@ export const canonicalSessionGraphCapabilityFixtures = {
|
|
|
482
531
|
},
|
|
483
532
|
"producer": {
|
|
484
533
|
"cases": [
|
|
534
|
+
{
|
|
535
|
+
"name": "producer-canonical-retained",
|
|
536
|
+
"classification": "must-pass",
|
|
537
|
+
"provenance": {
|
|
538
|
+
"source": "requirement",
|
|
539
|
+
"ref": "content-capability-negotiation"
|
|
540
|
+
},
|
|
541
|
+
"mutation": {
|
|
542
|
+
"description": "Emits sorted accumulated inventory"
|
|
543
|
+
},
|
|
544
|
+
"input": {
|
|
545
|
+
"tokens": [
|
|
546
|
+
"detailed_usage_v1",
|
|
547
|
+
"native_metadata_v1",
|
|
548
|
+
"observed_model_v1",
|
|
549
|
+
"retained_unknown_v1",
|
|
550
|
+
"session_graph_provenance_v1",
|
|
551
|
+
"tool_namespace_v1"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"expected": {
|
|
555
|
+
"accepted": true
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "producer-unsorted-retained",
|
|
560
|
+
"classification": "must-fail",
|
|
561
|
+
"provenance": {
|
|
562
|
+
"source": "boundary",
|
|
563
|
+
"ref": "content-capability-negotiation"
|
|
564
|
+
},
|
|
565
|
+
"mutation": {
|
|
566
|
+
"description": "Retained token out of canonical order refuses"
|
|
567
|
+
},
|
|
568
|
+
"input": {
|
|
569
|
+
"tokens": [
|
|
570
|
+
"retained_unknown_v1",
|
|
571
|
+
"observed_model_v1"
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
"expected": {
|
|
575
|
+
"errorContains": "canonical lexicographic order"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "producer-duplicate-retained",
|
|
580
|
+
"classification": "must-fail",
|
|
581
|
+
"provenance": {
|
|
582
|
+
"source": "boundary",
|
|
583
|
+
"ref": "content-capability-negotiation"
|
|
584
|
+
},
|
|
585
|
+
"mutation": {
|
|
586
|
+
"description": "Duplicate retained token refuses"
|
|
587
|
+
},
|
|
588
|
+
"input": {
|
|
589
|
+
"tokens": [
|
|
590
|
+
"retained_unknown_v1",
|
|
591
|
+
"retained_unknown_v1"
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
"expected": {
|
|
595
|
+
"errorContains": "duplicated"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
485
598
|
{
|
|
486
599
|
"name": "producer-canonical-four",
|
|
487
600
|
"classification": "must-pass",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VillageAPIVersion: "0.
|
|
2
|
-
export declare const PeasantLocalAPIVersion: "0.
|
|
3
|
-
export declare const TypesVersion: "0.
|
|
1
|
+
export declare const VillageAPIVersion: "0.22.0";
|
|
2
|
+
export declare const PeasantLocalAPIVersion: "0.14.0";
|
|
3
|
+
export declare const TypesVersion: "0.24.0";
|
|
4
4
|
export declare const MetadataSchemaVersion: 11;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
|
-
export const VillageAPIVersion = "0.
|
|
3
|
-
export const PeasantLocalAPIVersion = "0.
|
|
4
|
-
export const TypesVersion = "0.
|
|
2
|
+
export const VillageAPIVersion = "0.22.0";
|
|
3
|
+
export const PeasantLocalAPIVersion = "0.14.0";
|
|
4
|
+
export const TypesVersion = "0.24.0";
|
|
5
5
|
export const MetadataSchemaVersion = 11;
|
|
@@ -745,7 +745,7 @@ export interface paths {
|
|
|
745
745
|
path?: never;
|
|
746
746
|
cookie?: never;
|
|
747
747
|
};
|
|
748
|
-
/** @description List the caller's attachments that are waiting for a transcript from the caller's machine,
|
|
748
|
+
/** @description List the caller's attachments that are waiting for a transcript from the caller's machine, naming both the base and head remotes of each pull request so a client can match the repository it is about to push against either. */
|
|
749
749
|
get: operations["listMyPromptRequests"];
|
|
750
750
|
put?: never;
|
|
751
751
|
post?: never;
|
|
@@ -978,6 +978,7 @@ export interface components {
|
|
|
978
978
|
* @enum {string}
|
|
979
979
|
*/
|
|
980
980
|
SchemaInputModality: Schema.InputModality;
|
|
981
|
+
SchemaInterpretationDiagnostics: Schema.InterpretationDiagnostics;
|
|
981
982
|
/**
|
|
982
983
|
* License
|
|
983
984
|
* @description Content license for a published transcript
|
|
@@ -1101,6 +1102,7 @@ export interface components {
|
|
|
1101
1102
|
* @enum {string}
|
|
1102
1103
|
*/
|
|
1103
1104
|
SchemaRelationshipTargetState: Schema.RelationshipTargetState;
|
|
1105
|
+
SchemaRetainedUnknownRecord: Schema.RetainedUnknownRecord;
|
|
1104
1106
|
/**
|
|
1105
1107
|
* Role
|
|
1106
1108
|
* @description Sender role of a message turn
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
export declare const wireAliasShapes: {
|
|
2
|
+
readonly ActorOrigin: {};
|
|
3
|
+
readonly ChildSessionRef: {
|
|
4
|
+
readonly fields: {
|
|
5
|
+
readonly id: {};
|
|
6
|
+
readonly project: {};
|
|
7
|
+
readonly startTime: {};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
readonly CommandInvocation: {
|
|
11
|
+
readonly fields: {
|
|
12
|
+
readonly args: {};
|
|
13
|
+
readonly name: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly ContentKind: {};
|
|
17
|
+
readonly ContentOrigin: {};
|
|
18
|
+
readonly ContentOwnership: {};
|
|
19
|
+
readonly ContentProvenance: {
|
|
20
|
+
readonly fields: {
|
|
21
|
+
readonly actor: "ActorOrigin";
|
|
22
|
+
readonly delivery: "DeliveryOrigin";
|
|
23
|
+
readonly evidence: "EvidenceKind";
|
|
24
|
+
readonly inputModality: "InputModality";
|
|
25
|
+
readonly origin: "ContentOrigin";
|
|
26
|
+
readonly ownership: "ContentOwnership";
|
|
27
|
+
readonly submissionRef: "SubmissionRef";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
readonly DeliveryOrigin: {};
|
|
31
|
+
readonly EarlierHistorySection: {
|
|
32
|
+
readonly fields: {
|
|
33
|
+
readonly nativeMetadata: {
|
|
34
|
+
readonly items: "NativeMetadataRecord";
|
|
35
|
+
};
|
|
36
|
+
readonly state: "EarlierHistoryState";
|
|
37
|
+
readonly turns: {
|
|
38
|
+
readonly items: "TurnDetail";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly EarlierHistoryState: {};
|
|
43
|
+
readonly EntryType: {};
|
|
44
|
+
readonly EvidenceKind: {};
|
|
45
|
+
readonly Harness: {};
|
|
46
|
+
readonly InputModality: {};
|
|
47
|
+
readonly InterpretationDiagnostics: {
|
|
48
|
+
readonly fields: {
|
|
49
|
+
readonly partial: {};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly NativeAttachmentRef: {
|
|
53
|
+
readonly fields: {
|
|
54
|
+
readonly toolCallId: {};
|
|
55
|
+
readonly turnIndex: {};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly NativeMetadataKind: {};
|
|
59
|
+
readonly NativeMetadataRecord: {
|
|
60
|
+
readonly fields: {
|
|
61
|
+
readonly attachment: "NativeAttachmentRef";
|
|
62
|
+
readonly customType: {};
|
|
63
|
+
readonly data: {};
|
|
64
|
+
readonly id: {};
|
|
65
|
+
readonly kind: "NativeMetadataKind";
|
|
66
|
+
readonly source: "NativeSourceRef";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly NativeMetadataSourceType: {};
|
|
70
|
+
readonly NativePiMessageRole: {};
|
|
71
|
+
readonly NativeSourceRef: {
|
|
72
|
+
readonly fields: {
|
|
73
|
+
readonly entryRef: "SourceEntryRef";
|
|
74
|
+
readonly messageRole: "NativePiMessageRole";
|
|
75
|
+
readonly sourceType: "NativeMetadataSourceType";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly ObservedModelID: {};
|
|
79
|
+
readonly PublicRevisionRef: {};
|
|
80
|
+
readonly PublicSourceAnchor: {
|
|
81
|
+
readonly fields: {
|
|
82
|
+
readonly kind: "PublicSourceAnchorKind";
|
|
83
|
+
readonly sourceEntryRef: "SourceEntryRef";
|
|
84
|
+
readonly sourceRevisionRef: "PublicRevisionRef";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
readonly PublicSourceAnchorKind: {};
|
|
88
|
+
readonly RecordedCostDetail: {
|
|
89
|
+
readonly fields: {
|
|
90
|
+
readonly cacheRead: {};
|
|
91
|
+
readonly cacheWrite: {};
|
|
92
|
+
readonly input: {};
|
|
93
|
+
readonly output: {};
|
|
94
|
+
readonly source: {};
|
|
95
|
+
readonly total: {};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly RelationshipTargetState: {};
|
|
99
|
+
readonly RetainedUnknownRecord: {
|
|
100
|
+
readonly fields: {
|
|
101
|
+
readonly kind: {};
|
|
102
|
+
readonly namespace: {};
|
|
103
|
+
readonly payload: {};
|
|
104
|
+
readonly pointer: {};
|
|
105
|
+
readonly position: {};
|
|
106
|
+
readonly recordIndex: {};
|
|
107
|
+
readonly sourceRef: {};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly Role: {};
|
|
111
|
+
readonly SessionDetailPayload: {
|
|
112
|
+
readonly fields: {
|
|
113
|
+
readonly childSessions: {
|
|
114
|
+
readonly items: "ChildSessionRef";
|
|
115
|
+
};
|
|
116
|
+
readonly diagnostics: "InterpretationDiagnostics";
|
|
117
|
+
readonly durationMins: {};
|
|
118
|
+
readonly earlierHistory: {
|
|
119
|
+
readonly items: "EarlierHistorySection";
|
|
120
|
+
};
|
|
121
|
+
readonly endTime: {};
|
|
122
|
+
readonly gitBranch: {};
|
|
123
|
+
readonly gitRemote: {};
|
|
124
|
+
readonly harness: "Harness";
|
|
125
|
+
readonly id: {};
|
|
126
|
+
readonly inputSubmissionCount: {};
|
|
127
|
+
readonly model: {};
|
|
128
|
+
readonly nativeMetadata: {
|
|
129
|
+
readonly items: "NativeMetadataRecord";
|
|
130
|
+
};
|
|
131
|
+
readonly outcome: "SessionOutcome";
|
|
132
|
+
readonly parentSessionId: "SessionID";
|
|
133
|
+
readonly project: {};
|
|
134
|
+
readonly purpose: "SessionPurpose";
|
|
135
|
+
readonly relationships: {
|
|
136
|
+
readonly items: "SessionRelationship";
|
|
137
|
+
};
|
|
138
|
+
readonly retainedUnknown: {
|
|
139
|
+
readonly items: "RetainedUnknownRecord";
|
|
140
|
+
};
|
|
141
|
+
readonly rootSessionId: "SessionID";
|
|
142
|
+
readonly schemaVersion: {};
|
|
143
|
+
readonly scorecard: "SessionScorecard";
|
|
144
|
+
readonly sessionOrigin: "SessionOrigin";
|
|
145
|
+
readonly source: {};
|
|
146
|
+
readonly startTime: {};
|
|
147
|
+
readonly status: {};
|
|
148
|
+
readonly tokensIn: {};
|
|
149
|
+
readonly tokensOut: {};
|
|
150
|
+
readonly toolCallCount: {};
|
|
151
|
+
readonly totalTokens: {};
|
|
152
|
+
readonly turnCount: {};
|
|
153
|
+
readonly turns: {
|
|
154
|
+
readonly items: "TurnDetail";
|
|
155
|
+
};
|
|
156
|
+
readonly workingDirectory: {};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly SessionID: {};
|
|
160
|
+
readonly SessionOrigin: {};
|
|
161
|
+
readonly SessionOutcome: {};
|
|
162
|
+
readonly SessionPurpose: {};
|
|
163
|
+
readonly SessionRelationship: {
|
|
164
|
+
readonly fields: {
|
|
165
|
+
readonly anchor: "PublicSourceAnchor";
|
|
166
|
+
readonly evidence: "EvidenceKind";
|
|
167
|
+
readonly kind: "SessionRelationshipKind";
|
|
168
|
+
readonly targetLocalId: "SessionID";
|
|
169
|
+
readonly targetState: "RelationshipTargetState";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly SessionRelationshipKind: {};
|
|
173
|
+
readonly SessionScorecard: {
|
|
174
|
+
readonly fields: {
|
|
175
|
+
readonly costTotalUsd: {};
|
|
176
|
+
readonly m2TokenOutcomeRatio: {};
|
|
177
|
+
readonly m4ConsecutiveErrorMax: {};
|
|
178
|
+
readonly m5ContextUtilizationPct: {};
|
|
179
|
+
readonly m6OutputSurvivalPct: {};
|
|
180
|
+
readonly m7SpecHasConstraints: {};
|
|
181
|
+
readonly m7SpecHasExamples: {};
|
|
182
|
+
readonly outcome: "SessionOutcome";
|
|
183
|
+
readonly retryTokensWasted: {};
|
|
184
|
+
readonly signalDensity: {};
|
|
185
|
+
readonly specQualityScore: {};
|
|
186
|
+
readonly totalTokens: {};
|
|
187
|
+
readonly withinSessionReverts: {};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly SourceEntryRef: {};
|
|
191
|
+
readonly StopReason: {};
|
|
192
|
+
readonly SubmissionRef: {};
|
|
193
|
+
readonly TokenUsageDetail: {
|
|
194
|
+
readonly fields: {
|
|
195
|
+
readonly cacheRead: {};
|
|
196
|
+
readonly cacheWrite: {};
|
|
197
|
+
readonly cacheWrite1h: {};
|
|
198
|
+
readonly input: {};
|
|
199
|
+
readonly output: {};
|
|
200
|
+
readonly reasoning: {};
|
|
201
|
+
readonly totalTokens: {};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly ToolCallDetail: {
|
|
205
|
+
readonly fields: {
|
|
206
|
+
readonly arguments: {};
|
|
207
|
+
readonly callEntryRef: "SourceEntryRef";
|
|
208
|
+
readonly callProvenance: "ContentProvenance";
|
|
209
|
+
readonly durationMs: {};
|
|
210
|
+
readonly exitCode: {};
|
|
211
|
+
readonly filePath: {};
|
|
212
|
+
readonly id: {};
|
|
213
|
+
readonly isError: {};
|
|
214
|
+
readonly name: {};
|
|
215
|
+
readonly namespace: {};
|
|
216
|
+
readonly result: {};
|
|
217
|
+
readonly resultEntryRef: "SourceEntryRef";
|
|
218
|
+
readonly resultProvenance: "ContentProvenance";
|
|
219
|
+
readonly toolKind: "ToolCallKind";
|
|
220
|
+
readonly usage: "UsageDetail";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly ToolCallKind: {};
|
|
224
|
+
readonly TranscriptContent: {
|
|
225
|
+
readonly fields: {
|
|
226
|
+
readonly contractVersion: {};
|
|
227
|
+
readonly kind: "ContentKind";
|
|
228
|
+
readonly sessionDetail: "SessionDetailPayload";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly TurnDetail: {
|
|
232
|
+
readonly fields: {
|
|
233
|
+
readonly agentName: {};
|
|
234
|
+
readonly command: "CommandInvocation";
|
|
235
|
+
readonly content: {};
|
|
236
|
+
readonly depth: {};
|
|
237
|
+
readonly entryType: "EntryType";
|
|
238
|
+
readonly hasThinking: {};
|
|
239
|
+
readonly index: {};
|
|
240
|
+
readonly observedModel: "ObservedModelID";
|
|
241
|
+
readonly parentIndex: {};
|
|
242
|
+
readonly provenance: "ContentProvenance";
|
|
243
|
+
readonly role: "Role";
|
|
244
|
+
readonly sourceEntryRef: "SourceEntryRef";
|
|
245
|
+
readonly stopReason: "StopReason";
|
|
246
|
+
readonly timestamp: {};
|
|
247
|
+
readonly tokensIn: {};
|
|
248
|
+
readonly tokensOut: {};
|
|
249
|
+
readonly toolCalls: {
|
|
250
|
+
readonly items: "ToolCallDetail";
|
|
251
|
+
};
|
|
252
|
+
readonly usage: "UsageDetail";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly UsageCompleteness: {};
|
|
256
|
+
readonly UsageDetail: {
|
|
257
|
+
readonly fields: {
|
|
258
|
+
readonly completeness: "UsageCompleteness";
|
|
259
|
+
readonly cost: "RecordedCostDetail";
|
|
260
|
+
readonly ownerId: {};
|
|
261
|
+
readonly scope: "UsageScope";
|
|
262
|
+
readonly sourceEntryRef: "SourceEntryRef";
|
|
263
|
+
readonly tokens: "TokenUsageDetail";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
readonly UsageScope: {};
|
|
267
|
+
};
|