@talonic/docs 0.21.50 → 0.21.52

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/seo.js CHANGED
@@ -24003,6 +24003,15 @@ var openapi_default = {
24003
24003
  ]
24004
24004
  }
24005
24005
  },
24006
+ {
24007
+ name: "pipeline_id",
24008
+ in: "query",
24009
+ description: "Restrict to one pipeline (run).",
24010
+ schema: {
24011
+ type: "string",
24012
+ format: "uuid"
24013
+ }
24014
+ },
24006
24015
  {
24007
24016
  name: "limit",
24008
24017
  in: "query",
@@ -24056,7 +24065,7 @@ var openapi_default = {
24056
24065
  get: {
24057
24066
  operationId: "getAgentTask",
24058
24067
  summary: "Fetch one Agent task payload",
24059
- description: "Fetching the immutable snapshot is recorded as an audited data disclosure.",
24068
+ description: "Fetching the immutable snapshot is recorded as an audited data disclosure. A task the caller itself submitted also carries `result_summary` \u2014 what the platform did with the submit.",
24060
24069
  tags: [
24061
24070
  "Agent Tasks"
24062
24071
  ],
@@ -24094,6 +24103,73 @@ var openapi_default = {
24094
24103
  }
24095
24104
  }
24096
24105
  },
24106
+ "/v1/agent-tasks/claim-next": {
24107
+ post: {
24108
+ operationId: "claimNextAgentTasks",
24109
+ summary: "Claim the next batch of one pipeline's available tasks",
24110
+ description: "Claims up to `count` (1-50, default 10) available tasks of the pipeline, oldest first, and returns their full payloads. Each claim is the ordinary row-locked claim, so parallel agents get disjoint tasks; a task another agent took in the meantime is skipped. Returns an empty `data` array when nothing is available.\n",
24111
+ tags: [
24112
+ "Agent Tasks"
24113
+ ],
24114
+ requestBody: {
24115
+ required: true,
24116
+ content: {
24117
+ "application/json": {
24118
+ schema: {
24119
+ type: "object",
24120
+ required: [
24121
+ "pipeline_id"
24122
+ ],
24123
+ properties: {
24124
+ pipeline_id: {
24125
+ type: "string",
24126
+ format: "uuid"
24127
+ },
24128
+ count: {
24129
+ type: "integer",
24130
+ minimum: 1,
24131
+ maximum: 50,
24132
+ default: 10
24133
+ }
24134
+ }
24135
+ }
24136
+ }
24137
+ }
24138
+ },
24139
+ responses: {
24140
+ "200": {
24141
+ description: "The claimed tasks (full payloads) and how many were claimed.",
24142
+ content: {
24143
+ "application/json": {
24144
+ schema: {
24145
+ type: "object",
24146
+ properties: {
24147
+ data: {
24148
+ type: "array",
24149
+ items: {
24150
+ $ref: "#/components/schemas/AgentTaskPayload"
24151
+ }
24152
+ },
24153
+ claimed: {
24154
+ type: "integer"
24155
+ }
24156
+ }
24157
+ }
24158
+ }
24159
+ }
24160
+ },
24161
+ "400": {
24162
+ $ref: "#/components/responses/BadRequest"
24163
+ },
24164
+ "401": {
24165
+ $ref: "#/components/responses/Unauthorized"
24166
+ },
24167
+ "429": {
24168
+ $ref: "#/components/responses/RateLimitExceeded"
24169
+ }
24170
+ }
24171
+ }
24172
+ },
24097
24173
  "/v1/agent-tasks/{id}/claim": {
24098
24174
  post: {
24099
24175
  operationId: "claimAgentTask",
@@ -24223,7 +24299,7 @@ var openapi_default = {
24223
24299
  },
24224
24300
  responses: {
24225
24301
  "200": {
24226
- description: "Submitted task metadata.",
24302
+ description: "Submitted task metadata, with the submit's `result_summary`.",
24227
24303
  content: {
24228
24304
  "application/json": {
24229
24305
  schema: {
@@ -31528,6 +31604,121 @@ var openapi_default = {
31528
31604
  updated_at: {
31529
31605
  type: "string",
31530
31606
  format: "date-time"
31607
+ },
31608
+ result_summary: {
31609
+ $ref: "#/components/schemas/AgentTaskResultSummary"
31610
+ }
31611
+ }
31612
+ },
31613
+ AgentTaskResultSummary: {
31614
+ type: [
31615
+ "object",
31616
+ "null"
31617
+ ],
31618
+ description: "Present only on a task the caller itself submitted (the submit response, and `GET /v1/agent-tasks/{id}` by the claim holder). What the platform did with the submit; keys with nothing to report are omitted.",
31619
+ additionalProperties: true,
31620
+ properties: {
31621
+ fields: {
31622
+ type: "array",
31623
+ items: {
31624
+ type: "string"
31625
+ },
31626
+ description: "Fields written as submitted."
31627
+ },
31628
+ summary: {
31629
+ type: "string"
31630
+ },
31631
+ demoted_below_floor: {
31632
+ type: "array",
31633
+ items: {
31634
+ type: "string"
31635
+ },
31636
+ description: "Values under the autonomy contract's confidence floor; recorded",
31637
+ "never written.": null
31638
+ },
31639
+ skipped_cells: {
31640
+ type: "array",
31641
+ description: "Fields the cell-write guard withheld. `review_authority` = a review decision outranks the agent; `pending_approval` = the cell is held for review. Under `releaseHolds`, a `pending_approval` field also appears in `released_holds` or `release_failed`.",
31642
+ items: {
31643
+ type: "object",
31644
+ properties: {
31645
+ field_key: {
31646
+ type: "string"
31647
+ },
31648
+ reason: {
31649
+ type: "string",
31650
+ enum: [
31651
+ "review_authority",
31652
+ "pending_approval"
31653
+ ]
31654
+ }
31655
+ }
31656
+ }
31657
+ },
31658
+ escalated: {
31659
+ type: "array",
31660
+ description: "Fields handed to a human (agent escalation or an unverified quote).",
31661
+ items: {
31662
+ type: "object",
31663
+ properties: {
31664
+ field_key: {
31665
+ type: "string"
31666
+ },
31667
+ reason: {
31668
+ type: "string"
31669
+ },
31670
+ proposed: {}
31671
+ }
31672
+ }
31673
+ },
31674
+ released_holds: {
31675
+ type: "array",
31676
+ description: "Product grain with the autonomy contract's `releaseHolds`: held fields the submit settled through the review path (`approve` = held value kept, `correct` = submitted value written; a null value clears the field).",
31677
+ items: {
31678
+ type: "object",
31679
+ properties: {
31680
+ field_key: {
31681
+ type: "string"
31682
+ },
31683
+ action: {
31684
+ type: "string",
31685
+ enum: [
31686
+ "approve",
31687
+ "correct"
31688
+ ]
31689
+ },
31690
+ pipeline_document_id: {
31691
+ type: "string",
31692
+ format: "uuid"
31693
+ }
31694
+ }
31695
+ }
31696
+ },
31697
+ release_failed: {
31698
+ type: "array",
31699
+ description: "Held fields the release could not settle; they stay held for a human.",
31700
+ items: {
31701
+ type: "object",
31702
+ properties: {
31703
+ field_key: {
31704
+ type: "string"
31705
+ },
31706
+ reason: {
31707
+ type: "string"
31708
+ }
31709
+ }
31710
+ }
31711
+ },
31712
+ anchor_election: {
31713
+ type: "string",
31714
+ format: "uuid"
31715
+ },
31716
+ autonomy_mode: {
31717
+ type: "string",
31718
+ enum: [
31719
+ "propose",
31720
+ "observe"
31721
+ ]
31531
31722
  }
31532
31723
  }
31533
31724
  },
@@ -31575,6 +31766,18 @@ var openapi_default = {
31575
31766
  },
31576
31767
  required: {
31577
31768
  type: "boolean"
31769
+ },
31770
+ description: {
31771
+ type: "string",
31772
+ description: "The Spec field description (the field's rules), frozen when the task was created."
31773
+ },
31774
+ enumValues: {
31775
+ type: "array",
31776
+ items: {
31777
+ type: "string"
31778
+ },
31779
+ description: "Allowed codes of a closed enum field",
31780
+ "frozen when the task was created.": null
31578
31781
  }
31579
31782
  }
31580
31783
  }
@@ -31637,6 +31840,19 @@ var openapi_default = {
31637
31840
  reasoning: {
31638
31841
  type: "string",
31639
31842
  maxLength: 4e3
31843
+ },
31844
+ escalate: {
31845
+ type: "boolean",
31846
+ description: "Product-grain (Agentic Review) tasks only. Hand this field to a human instead of writing it; `value` is shown as the proposal and `reasoning` as the reason."
31847
+ },
31848
+ quote: {
31849
+ type: "string",
31850
+ description: "Verbatim evidence for a changed value. Required when the Spec's autonomy contract sets `requireQuote`; a change whose quote is missing or not found in `document_id` is escalated instead of written."
31851
+ },
31852
+ document_id: {
31853
+ type: "string",
31854
+ format: "uuid",
31855
+ description: "The contract document the `quote` comes from (the anchor, a candidate supplier document, or any member document listed in `input_snapshot.memberDocuments`)."
31640
31856
  }
31641
31857
  }
31642
31858
  }
package/openapi.json CHANGED
@@ -23983,6 +23983,15 @@
23983
23983
  ]
23984
23984
  }
23985
23985
  },
23986
+ {
23987
+ "name": "pipeline_id",
23988
+ "in": "query",
23989
+ "description": "Restrict to one pipeline (run).",
23990
+ "schema": {
23991
+ "type": "string",
23992
+ "format": "uuid"
23993
+ }
23994
+ },
23986
23995
  {
23987
23996
  "name": "limit",
23988
23997
  "in": "query",
@@ -24036,7 +24045,7 @@
24036
24045
  "get": {
24037
24046
  "operationId": "getAgentTask",
24038
24047
  "summary": "Fetch one Agent task payload",
24039
- "description": "Fetching the immutable snapshot is recorded as an audited data disclosure.",
24048
+ "description": "Fetching the immutable snapshot is recorded as an audited data disclosure. A task the caller itself submitted also carries `result_summary` — what the platform did with the submit.",
24040
24049
  "tags": [
24041
24050
  "Agent Tasks"
24042
24051
  ],
@@ -24074,6 +24083,73 @@
24074
24083
  }
24075
24084
  }
24076
24085
  },
24086
+ "/v1/agent-tasks/claim-next": {
24087
+ "post": {
24088
+ "operationId": "claimNextAgentTasks",
24089
+ "summary": "Claim the next batch of one pipeline's available tasks",
24090
+ "description": "Claims up to `count` (1-50, default 10) available tasks of the pipeline, oldest first, and returns their full payloads. Each claim is the ordinary row-locked claim, so parallel agents get disjoint tasks; a task another agent took in the meantime is skipped. Returns an empty `data` array when nothing is available.\n",
24091
+ "tags": [
24092
+ "Agent Tasks"
24093
+ ],
24094
+ "requestBody": {
24095
+ "required": true,
24096
+ "content": {
24097
+ "application/json": {
24098
+ "schema": {
24099
+ "type": "object",
24100
+ "required": [
24101
+ "pipeline_id"
24102
+ ],
24103
+ "properties": {
24104
+ "pipeline_id": {
24105
+ "type": "string",
24106
+ "format": "uuid"
24107
+ },
24108
+ "count": {
24109
+ "type": "integer",
24110
+ "minimum": 1,
24111
+ "maximum": 50,
24112
+ "default": 10
24113
+ }
24114
+ }
24115
+ }
24116
+ }
24117
+ }
24118
+ },
24119
+ "responses": {
24120
+ "200": {
24121
+ "description": "The claimed tasks (full payloads) and how many were claimed.",
24122
+ "content": {
24123
+ "application/json": {
24124
+ "schema": {
24125
+ "type": "object",
24126
+ "properties": {
24127
+ "data": {
24128
+ "type": "array",
24129
+ "items": {
24130
+ "$ref": "#/components/schemas/AgentTaskPayload"
24131
+ }
24132
+ },
24133
+ "claimed": {
24134
+ "type": "integer"
24135
+ }
24136
+ }
24137
+ }
24138
+ }
24139
+ }
24140
+ },
24141
+ "400": {
24142
+ "$ref": "#/components/responses/BadRequest"
24143
+ },
24144
+ "401": {
24145
+ "$ref": "#/components/responses/Unauthorized"
24146
+ },
24147
+ "429": {
24148
+ "$ref": "#/components/responses/RateLimitExceeded"
24149
+ }
24150
+ }
24151
+ }
24152
+ },
24077
24153
  "/v1/agent-tasks/{id}/claim": {
24078
24154
  "post": {
24079
24155
  "operationId": "claimAgentTask",
@@ -24203,7 +24279,7 @@
24203
24279
  },
24204
24280
  "responses": {
24205
24281
  "200": {
24206
- "description": "Submitted task metadata.",
24282
+ "description": "Submitted task metadata, with the submit's `result_summary`.",
24207
24283
  "content": {
24208
24284
  "application/json": {
24209
24285
  "schema": {
@@ -31508,6 +31584,121 @@
31508
31584
  "updated_at": {
31509
31585
  "type": "string",
31510
31586
  "format": "date-time"
31587
+ },
31588
+ "result_summary": {
31589
+ "$ref": "#/components/schemas/AgentTaskResultSummary"
31590
+ }
31591
+ }
31592
+ },
31593
+ "AgentTaskResultSummary": {
31594
+ "type": [
31595
+ "object",
31596
+ "null"
31597
+ ],
31598
+ "description": "Present only on a task the caller itself submitted (the submit response, and `GET /v1/agent-tasks/{id}` by the claim holder). What the platform did with the submit; keys with nothing to report are omitted.",
31599
+ "additionalProperties": true,
31600
+ "properties": {
31601
+ "fields": {
31602
+ "type": "array",
31603
+ "items": {
31604
+ "type": "string"
31605
+ },
31606
+ "description": "Fields written as submitted."
31607
+ },
31608
+ "summary": {
31609
+ "type": "string"
31610
+ },
31611
+ "demoted_below_floor": {
31612
+ "type": "array",
31613
+ "items": {
31614
+ "type": "string"
31615
+ },
31616
+ "description": "Values under the autonomy contract's confidence floor; recorded",
31617
+ "never written.": null
31618
+ },
31619
+ "skipped_cells": {
31620
+ "type": "array",
31621
+ "description": "Fields the cell-write guard withheld. `review_authority` = a review decision outranks the agent; `pending_approval` = the cell is held for review. Under `releaseHolds`, a `pending_approval` field also appears in `released_holds` or `release_failed`.",
31622
+ "items": {
31623
+ "type": "object",
31624
+ "properties": {
31625
+ "field_key": {
31626
+ "type": "string"
31627
+ },
31628
+ "reason": {
31629
+ "type": "string",
31630
+ "enum": [
31631
+ "review_authority",
31632
+ "pending_approval"
31633
+ ]
31634
+ }
31635
+ }
31636
+ }
31637
+ },
31638
+ "escalated": {
31639
+ "type": "array",
31640
+ "description": "Fields handed to a human (agent escalation or an unverified quote).",
31641
+ "items": {
31642
+ "type": "object",
31643
+ "properties": {
31644
+ "field_key": {
31645
+ "type": "string"
31646
+ },
31647
+ "reason": {
31648
+ "type": "string"
31649
+ },
31650
+ "proposed": {}
31651
+ }
31652
+ }
31653
+ },
31654
+ "released_holds": {
31655
+ "type": "array",
31656
+ "description": "Product grain with the autonomy contract's `releaseHolds`: held fields the submit settled through the review path (`approve` = held value kept, `correct` = submitted value written; a null value clears the field).",
31657
+ "items": {
31658
+ "type": "object",
31659
+ "properties": {
31660
+ "field_key": {
31661
+ "type": "string"
31662
+ },
31663
+ "action": {
31664
+ "type": "string",
31665
+ "enum": [
31666
+ "approve",
31667
+ "correct"
31668
+ ]
31669
+ },
31670
+ "pipeline_document_id": {
31671
+ "type": "string",
31672
+ "format": "uuid"
31673
+ }
31674
+ }
31675
+ }
31676
+ },
31677
+ "release_failed": {
31678
+ "type": "array",
31679
+ "description": "Held fields the release could not settle; they stay held for a human.",
31680
+ "items": {
31681
+ "type": "object",
31682
+ "properties": {
31683
+ "field_key": {
31684
+ "type": "string"
31685
+ },
31686
+ "reason": {
31687
+ "type": "string"
31688
+ }
31689
+ }
31690
+ }
31691
+ },
31692
+ "anchor_election": {
31693
+ "type": "string",
31694
+ "format": "uuid"
31695
+ },
31696
+ "autonomy_mode": {
31697
+ "type": "string",
31698
+ "enum": [
31699
+ "propose",
31700
+ "observe"
31701
+ ]
31511
31702
  }
31512
31703
  }
31513
31704
  },
@@ -31555,6 +31746,18 @@
31555
31746
  },
31556
31747
  "required": {
31557
31748
  "type": "boolean"
31749
+ },
31750
+ "description": {
31751
+ "type": "string",
31752
+ "description": "The Spec field description (the field's rules), frozen when the task was created."
31753
+ },
31754
+ "enumValues": {
31755
+ "type": "array",
31756
+ "items": {
31757
+ "type": "string"
31758
+ },
31759
+ "description": "Allowed codes of a closed enum field",
31760
+ "frozen when the task was created.": null
31558
31761
  }
31559
31762
  }
31560
31763
  }
@@ -31617,6 +31820,19 @@
31617
31820
  "reasoning": {
31618
31821
  "type": "string",
31619
31822
  "maxLength": 4000
31823
+ },
31824
+ "escalate": {
31825
+ "type": "boolean",
31826
+ "description": "Product-grain (Agentic Review) tasks only. Hand this field to a human instead of writing it; `value` is shown as the proposal and `reasoning` as the reason."
31827
+ },
31828
+ "quote": {
31829
+ "type": "string",
31830
+ "description": "Verbatim evidence for a changed value. Required when the Spec's autonomy contract sets `requireQuote`; a change whose quote is missing or not found in `document_id` is escalated instead of written."
31831
+ },
31832
+ "document_id": {
31833
+ "type": "string",
31834
+ "format": "uuid",
31835
+ "description": "The contract document the `quote` comes from (the anchor, a candidate supplier document, or any member document listed in `input_snapshot.memberDocuments`)."
31620
31836
  }
31621
31837
  }
31622
31838
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talonic/docs",
3
- "version": "0.21.50",
3
+ "version": "0.21.52",
4
4
  "description": "Talonic documentation components — API Reference & Platform Guide",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -1,45 +0,0 @@
1
- /**
2
- * Tailwind CSS preset for @talonic/docs consumers.
3
- * Adds the Void design system color tokens and font families
4
- * so doc components render correctly in any host app.
5
- */
6
- declare const voidDocsPreset: {
7
- darkMode: "class";
8
- theme: {
9
- extend: {
10
- colors: {
11
- 'void-bg': string;
12
- 'void-bg-elevated': string;
13
- 'void-surface': string;
14
- 'void-surface-2': string;
15
- 'void-surface-3': string;
16
- 'void-border': string;
17
- 'void-border-hover': string;
18
- 'void-text-primary': string;
19
- 'void-text-secondary': string;
20
- 'void-text-muted': string;
21
- 'void-text-tertiary': string;
22
- 'void-accent': string;
23
- 'void-accent-hover': string;
24
- 'void-accent-dim': string;
25
- 'void-accent-tint': string;
26
- 'void-danger': string;
27
- 'void-danger-solid': string;
28
- 'void-divider': string;
29
- 'void-warning': string;
30
- 'void-warning-dim': string;
31
- 'void-tier-1': string;
32
- 'void-tier-2': string;
33
- 'void-tier-3': string;
34
- };
35
- fontFamily: {
36
- space: string[];
37
- body: string[];
38
- mono: string[];
39
- };
40
- };
41
- };
42
- plugins: never[];
43
- };
44
-
45
- export { voidDocsPreset as default };
@@ -1,45 +0,0 @@
1
- /**
2
- * Tailwind CSS preset for @talonic/docs consumers.
3
- * Adds the Void design system color tokens and font families
4
- * so doc components render correctly in any host app.
5
- */
6
- declare const voidDocsPreset: {
7
- darkMode: "class";
8
- theme: {
9
- extend: {
10
- colors: {
11
- 'void-bg': string;
12
- 'void-bg-elevated': string;
13
- 'void-surface': string;
14
- 'void-surface-2': string;
15
- 'void-surface-3': string;
16
- 'void-border': string;
17
- 'void-border-hover': string;
18
- 'void-text-primary': string;
19
- 'void-text-secondary': string;
20
- 'void-text-muted': string;
21
- 'void-text-tertiary': string;
22
- 'void-accent': string;
23
- 'void-accent-hover': string;
24
- 'void-accent-dim': string;
25
- 'void-accent-tint': string;
26
- 'void-danger': string;
27
- 'void-danger-solid': string;
28
- 'void-divider': string;
29
- 'void-warning': string;
30
- 'void-warning-dim': string;
31
- 'void-tier-1': string;
32
- 'void-tier-2': string;
33
- 'void-tier-3': string;
34
- };
35
- fontFamily: {
36
- space: string[];
37
- body: string[];
38
- mono: string[];
39
- };
40
- };
41
- };
42
- plugins: never[];
43
- };
44
-
45
- export { voidDocsPreset as default };