@claudexor/schema 4.5.0 → 4.6.2
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/account-routing-evidence.d.ts +18 -0
- package/dist/account-routing-evidence.d.ts.map +1 -1
- package/dist/agent-capabilities.d.ts +8 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +5 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/control-harness-list.d.ts +9 -0
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-operation-responses.d.ts +3 -0
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control.d.ts +11 -0
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +3 -1
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +36 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/harness.d.ts +49 -0
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +5 -1
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/prompt-cache.d.ts +32 -0
- package/dist/prompt-cache.d.ts.map +1 -0
- package/dist/prompt-cache.js +34 -0
- package/dist/prompt-cache.js.map +1 -0
- package/dist/readiness.d.ts +7 -0
- package/dist/readiness.d.ts.map +1 -1
- package/dist/task.d.ts +9 -0
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +2 -0
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +92 -4
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +2 -2
- package/dist/telemetry.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +12 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +13 -1
- package/generated/ControlCredentialProfilesResourcesResponse.schema.json +13 -1
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +13 -1
- package/generated/ControlHarnessListResponse.schema.json +13 -1
- package/generated/ControlRunAgainDraft.schema.json +9 -1
- package/generated/ControlRunStartRequest.schema.json +9 -1
- package/generated/ControlThreadTurnRequest.schema.json +8 -0
- package/generated/HarnessEvent.schema.json +87 -0
- package/generated/HarnessManifest.schema.json +13 -1
- package/generated/HarnessStatusDto.schema.json +13 -1
- package/generated/McpAccountsToolResult.schema.json +13 -1
- package/generated/PromptCacheTtl.schema.json +14 -0
- package/generated/PromptCacheTtlReceipt.schema.json +96 -0
- package/generated/RunTelemetry.schema.json +87 -0
- package/generated/TaskContract.schema.json +8 -0
- package/package.json +2 -2
|
@@ -397,11 +397,23 @@
|
|
|
397
397
|
],
|
|
398
398
|
"description": "How a live message enters a running session: mid_turn (consumed inside the active turn), next_tool_boundary (queued until the same turn's next tool boundary), none (no truthful channel; the engine answers unsupported).",
|
|
399
399
|
"default": "none"
|
|
400
|
+
},
|
|
401
|
+
"prompt_cache_ttls": {
|
|
402
|
+
"type": "array",
|
|
403
|
+
"items": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"enum": [
|
|
406
|
+
"5m",
|
|
407
|
+
"1h"
|
|
408
|
+
],
|
|
409
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
410
|
+
},
|
|
411
|
+
"description": "Prompt-cache lifetimes this adapter translates into native controls; a requested lifetime outside the list (or with the list absent) is disclosed as ignored."
|
|
400
412
|
}
|
|
401
413
|
},
|
|
402
414
|
"additionalProperties": false,
|
|
403
415
|
"default": {},
|
|
404
|
-
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection,
|
|
416
|
+
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection, live input into a running session, and translated prompt-cache lifetimes."
|
|
405
417
|
},
|
|
406
418
|
"capabilities": {
|
|
407
419
|
"type": "object",
|
|
@@ -415,11 +415,23 @@
|
|
|
415
415
|
],
|
|
416
416
|
"description": "How a live message enters a running session: mid_turn (consumed inside the active turn), next_tool_boundary (queued until the same turn's next tool boundary), none (no truthful channel; the engine answers unsupported).",
|
|
417
417
|
"default": "none"
|
|
418
|
+
},
|
|
419
|
+
"prompt_cache_ttls": {
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"enum": [
|
|
424
|
+
"5m",
|
|
425
|
+
"1h"
|
|
426
|
+
],
|
|
427
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
428
|
+
},
|
|
429
|
+
"description": "Prompt-cache lifetimes this adapter translates into native controls; a requested lifetime outside the list (or with the list absent) is disclosed as ignored."
|
|
418
430
|
}
|
|
419
431
|
},
|
|
420
432
|
"additionalProperties": false,
|
|
421
433
|
"default": {},
|
|
422
|
-
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection,
|
|
434
|
+
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection, live input into a running session, and translated prompt-cache lifetimes."
|
|
423
435
|
},
|
|
424
436
|
"capabilities": {
|
|
425
437
|
"type": "object",
|
|
@@ -978,11 +978,23 @@
|
|
|
978
978
|
],
|
|
979
979
|
"description": "How a live message enters a running session: mid_turn (consumed inside the active turn), next_tool_boundary (queued until the same turn's next tool boundary), none (no truthful channel; the engine answers unsupported).",
|
|
980
980
|
"default": "none"
|
|
981
|
+
},
|
|
982
|
+
"prompt_cache_ttls": {
|
|
983
|
+
"type": "array",
|
|
984
|
+
"items": {
|
|
985
|
+
"type": "string",
|
|
986
|
+
"enum": [
|
|
987
|
+
"5m",
|
|
988
|
+
"1h"
|
|
989
|
+
],
|
|
990
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
991
|
+
},
|
|
992
|
+
"description": "Prompt-cache lifetimes this adapter translates into native controls; a requested lifetime outside the list (or with the list absent) is disclosed as ignored."
|
|
981
993
|
}
|
|
982
994
|
},
|
|
983
995
|
"additionalProperties": false,
|
|
984
996
|
"default": {},
|
|
985
|
-
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection,
|
|
997
|
+
"description": "Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, MCP injection, live input into a running session, and translated prompt-cache lifetimes."
|
|
986
998
|
},
|
|
987
999
|
"capabilities": {
|
|
988
1000
|
"type": "object",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/PromptCacheTtl",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"PromptCacheTtl": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"5m",
|
|
8
|
+
"1h"
|
|
9
|
+
],
|
|
10
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
14
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/PromptCacheTtlReceipt",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"PromptCacheTtlReceipt": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"requested": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": [
|
|
12
|
+
"5m",
|
|
13
|
+
"1h"
|
|
14
|
+
],
|
|
15
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"description": "Lifetime the engine routed to this session: the run's captured value where this adapter declares it, otherwise null (Default, or an undeclared value disclosed as ignored). The captured intent itself is the task contract's prompt_cache_ttl."
|
|
22
|
+
},
|
|
23
|
+
"submitted": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"$ref": "#/definitions/PromptCacheTtlReceipt/properties/requested/anyOf/0"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "null"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"description": "Value set on the native lifetime controls of this process, null when none was set. Configuration, not proof that the provider applied it."
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"pattern": "\\S",
|
|
40
|
+
"description": "User-supplied string that must contain visible content, not just whitespace."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "null"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"description": "Known reason the submitted value cannot govern this session (a forcing or disabling native control in effect, or a CLI that predates the controls); null when none is known."
|
|
47
|
+
},
|
|
48
|
+
"observed": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"enum": [
|
|
51
|
+
"5m",
|
|
52
|
+
"1h",
|
|
53
|
+
"mixed",
|
|
54
|
+
"none",
|
|
55
|
+
"unknown"
|
|
56
|
+
],
|
|
57
|
+
"description": "Lifetime split of the cache writes reported by the native result usage; it does not establish which request buckets that usage aggregates. none = no observed writes (not disabled caching); unknown = a result did not report the split."
|
|
58
|
+
},
|
|
59
|
+
"write_5m_tokens": {
|
|
60
|
+
"anyOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": 0
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"description": "Reported five-minute cache-write tokens summed over results; null when any result omitted the split."
|
|
70
|
+
},
|
|
71
|
+
"write_1h_tokens": {
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{
|
|
74
|
+
"$ref": "#/definitions/PromptCacheTtlReceipt/properties/write_5m_tokens/anyOf/0"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "null"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"description": "Reported one-hour cache-write tokens summed over results; null when any result omitted the split."
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"requested",
|
|
85
|
+
"submitted",
|
|
86
|
+
"reason",
|
|
87
|
+
"observed",
|
|
88
|
+
"write_5m_tokens",
|
|
89
|
+
"write_1h_tokens"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"description": "Requested, configured and observed prompt-cache lifetime facts for one attempt. Lifecycle, outcome and cost are separate facts and never derive from this receipt."
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
96
|
+
}
|
|
@@ -514,6 +514,93 @@
|
|
|
514
514
|
"additionalProperties": false,
|
|
515
515
|
"description": "Mode-qualified billing evidence for an existing cost record. Authentication alone does not establish included premium service; credits, cash, and token valuation stay distinct."
|
|
516
516
|
},
|
|
517
|
+
"prompt_cache_ttl": {
|
|
518
|
+
"type": "object",
|
|
519
|
+
"properties": {
|
|
520
|
+
"requested": {
|
|
521
|
+
"anyOf": [
|
|
522
|
+
{
|
|
523
|
+
"type": "string",
|
|
524
|
+
"enum": [
|
|
525
|
+
"5m",
|
|
526
|
+
"1h"
|
|
527
|
+
],
|
|
528
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"type": "null"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"description": "Lifetime the engine routed to this session: the run's captured value where this adapter declares it, otherwise null (Default, or an undeclared value disclosed as ignored). The captured intent itself is the task contract's prompt_cache_ttl."
|
|
535
|
+
},
|
|
536
|
+
"submitted": {
|
|
537
|
+
"anyOf": [
|
|
538
|
+
{
|
|
539
|
+
"$ref": "#/definitions/RunTelemetry/properties/attempts/items/properties/prompt_cache_ttl/properties/requested/anyOf/0"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"type": "null"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"description": "Value set on the native lifetime controls of this process, null when none was set. Configuration, not proof that the provider applied it."
|
|
546
|
+
},
|
|
547
|
+
"reason": {
|
|
548
|
+
"anyOf": [
|
|
549
|
+
{
|
|
550
|
+
"$ref": "#/definitions/RunTelemetry/properties/attempts/items/properties/effort_resolution/properties/requested/anyOf/0"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"type": "null"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"description": "Known reason the submitted value cannot govern this session (a forcing or disabling native control in effect, or a CLI that predates the controls); null when none is known."
|
|
557
|
+
},
|
|
558
|
+
"observed": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"enum": [
|
|
561
|
+
"5m",
|
|
562
|
+
"1h",
|
|
563
|
+
"mixed",
|
|
564
|
+
"none",
|
|
565
|
+
"unknown"
|
|
566
|
+
],
|
|
567
|
+
"description": "Lifetime split of the cache writes reported by the native result usage; it does not establish which request buckets that usage aggregates. none = no observed writes (not disabled caching); unknown = a result did not report the split."
|
|
568
|
+
},
|
|
569
|
+
"write_5m_tokens": {
|
|
570
|
+
"anyOf": [
|
|
571
|
+
{
|
|
572
|
+
"type": "integer",
|
|
573
|
+
"minimum": 0
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"type": "null"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"description": "Reported five-minute cache-write tokens summed over results; null when any result omitted the split."
|
|
580
|
+
},
|
|
581
|
+
"write_1h_tokens": {
|
|
582
|
+
"anyOf": [
|
|
583
|
+
{
|
|
584
|
+
"$ref": "#/definitions/RunTelemetry/properties/attempts/items/properties/prompt_cache_ttl/properties/write_5m_tokens/anyOf/0"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"type": "null"
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"description": "Reported one-hour cache-write tokens summed over results; null when any result omitted the split."
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"required": [
|
|
594
|
+
"requested",
|
|
595
|
+
"submitted",
|
|
596
|
+
"reason",
|
|
597
|
+
"observed",
|
|
598
|
+
"write_5m_tokens",
|
|
599
|
+
"write_1h_tokens"
|
|
600
|
+
],
|
|
601
|
+
"additionalProperties": false,
|
|
602
|
+
"description": "Requested, configured and observed prompt-cache lifetime facts for one attempt. Lifecycle, outcome and cost are separate facts and never derive from this receipt."
|
|
603
|
+
},
|
|
517
604
|
"usage_cost": {
|
|
518
605
|
"type": "object",
|
|
519
606
|
"properties": {
|
|
@@ -561,6 +561,14 @@
|
|
|
561
561
|
],
|
|
562
562
|
"description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
|
|
563
563
|
},
|
|
564
|
+
"prompt_cache_ttl": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"enum": [
|
|
567
|
+
"5m",
|
|
568
|
+
"1h"
|
|
569
|
+
],
|
|
570
|
+
"description": "Native prompt-cache lifetime for the main conversation and helper requests of a harness that declares it. Omission sends no override: native defaults, profile settings and the inherited environment stay in effect."
|
|
571
|
+
},
|
|
564
572
|
"routing_efforts": {
|
|
565
573
|
"type": "object",
|
|
566
574
|
"additionalProperties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudexor/schema",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^4.6.5",
|
|
22
22
|
"zod-to-json-schema": "^3.24.1",
|
|
23
|
-
"@claudexor/util": "4.
|
|
23
|
+
"@claudexor/util": "4.6.2"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|