@nexusclawhq/cli 0.3.77 → 0.3.78

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.
Files changed (169) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/build-info.json +4 -4
  3. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.js +0 -5
  4. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.js.map +1 -1
  5. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.d.ts +24 -3
  6. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js +26 -4
  7. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js.map +1 -1
  8. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.d.ts +59 -9
  9. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js +99 -15
  10. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js.map +1 -1
  11. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.d.ts +50 -0
  12. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js +163 -0
  13. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js.map +1 -0
  14. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.d.ts +53 -0
  15. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js +179 -0
  16. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js.map +1 -0
  17. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.d.ts +7 -0
  18. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js +408 -0
  19. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js.map +1 -0
  20. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.d.ts +14 -0
  21. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js +119 -0
  22. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js.map +1 -0
  23. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.d.ts +7 -0
  24. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js +70 -0
  25. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js.map +1 -0
  26. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.d.ts +55 -0
  27. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js +138 -0
  28. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js.map +1 -0
  29. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.d.ts +197 -0
  30. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js +412 -0
  31. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js.map +1 -0
  32. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.d.ts +577 -0
  33. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js +742 -0
  34. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js.map +1 -0
  35. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.d.ts +85 -0
  36. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js +3 -0
  37. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js.map +1 -0
  38. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.d.ts +14 -0
  39. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js +111 -0
  40. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js.map +1 -0
  41. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.d.ts +44 -0
  42. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js +3 -0
  43. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js.map +1 -0
  44. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.d.ts +11 -1
  45. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js +11 -0
  46. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js.map +1 -1
  47. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.d.ts +50 -0
  48. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js +50 -0
  49. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js.map +1 -0
  50. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.d.ts +1 -1
  51. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js +1 -0
  52. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js.map +1 -1
  53. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.d.ts +32 -0
  54. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js +87 -0
  55. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js.map +1 -0
  56. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.d.ts +1 -0
  57. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js +5 -1
  58. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js.map +1 -1
  59. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +2 -0
  60. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +0 -12
  61. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -1
  62. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js +27 -0
  63. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js.map +1 -1
  64. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.d.ts +39 -0
  65. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js +27 -0
  66. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js.map +1 -0
  67. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.d.ts +19 -0
  68. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js +28 -0
  69. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js.map +1 -0
  70. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.d.ts +8 -0
  71. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js +35 -0
  72. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js.map +1 -0
  73. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +4 -0
  74. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +4 -0
  75. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
  76. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +479 -9
  77. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +485 -15
  78. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
  79. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +958 -18
  80. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +479 -9
  81. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +485 -15
  82. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
  83. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js +5 -2
  84. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js.map +1 -1
  85. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.d.ts +1 -0
  86. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js +1 -0
  87. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js.map +1 -1
  88. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.d.ts +16 -0
  89. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js +37 -0
  90. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js.map +1 -0
  91. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.d.ts +2 -2
  92. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js +2 -2
  93. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js.map +1 -1
  94. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js +2 -2
  95. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js.map +1 -1
  96. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.d.ts +1 -0
  97. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js +1 -0
  98. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js.map +1 -1
  99. package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +4 -0
  100. package/dist/nexus-cli/src/cli-runner.test.js +0 -36
  101. package/dist/nexus-cli/src/cli-runner.test.js.map +1 -1
  102. package/dist/nexus-cli/src/cli.js +1 -46
  103. package/dist/nexus-cli/src/cli.js.map +1 -1
  104. package/dist/nexus-cli/src/commands/ai/help.d.ts +0 -5
  105. package/dist/nexus-cli/src/commands/ai/help.js +2 -233
  106. package/dist/nexus-cli/src/commands/ai/help.js.map +1 -1
  107. package/dist/nexus-cli/src/commands/ai/help.test.js +0 -64
  108. package/dist/nexus-cli/src/commands/ai/help.test.js.map +1 -1
  109. package/dist/nexus-cli/src/commands/ai/index.js +2 -2
  110. package/dist/nexus-cli/src/commands/ai/index.js.map +1 -1
  111. package/dist/nexus-cli/src/contracts/command-contract-coverage-baseline.json +3 -3
  112. package/dist/nexus-cli/src/contracts/command-contract.registry.js +4 -49
  113. package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
  114. package/dist/nexus-cli/src/contracts/command-inventory.d.ts +0 -1
  115. package/dist/nexus-cli/src/contracts/command-inventory.js +0 -1
  116. package/dist/nexus-cli/src/contracts/command-inventory.js.map +1 -1
  117. package/dist/nexus-cli/src/contracts/command-policy.exporter.test.js +1 -1
  118. package/dist/nexus-cli/src/contracts/command-policy.registry.js +1 -1
  119. package/dist/nexus-cli/src/contracts/command-policy.registry.js.map +1 -1
  120. package/dist/nexus-cli/src/contracts/command-policy.validator.test.js +3 -3
  121. package/dist/nexus-cli/src/contracts/command-policy.validator.test.js.map +1 -1
  122. package/dist/nexus-cli/src/contracts/contracts.test.js +1 -1
  123. package/dist/nexus-cli/src/contracts/index.d.ts +0 -2
  124. package/dist/nexus-cli/src/contracts/index.js +1 -10
  125. package/dist/nexus-cli/src/contracts/index.js.map +1 -1
  126. package/dist/nexus-cli/src/runtime/actionable-error.js +5 -0
  127. package/dist/nexus-cli/src/runtime/actionable-error.js.map +1 -1
  128. package/dist/nexus-cli/src/runtime/failure-normalizer.js +0 -6
  129. package/dist/nexus-cli/src/runtime/failure-normalizer.js.map +1 -1
  130. package/dist/nexus-cli/src/runtime/output-coordinator.js +7 -1
  131. package/dist/nexus-cli/src/runtime/output-coordinator.js.map +1 -1
  132. package/dist/nexus-cli/src/services/ai-authoring-context-v2.js +3 -18
  133. package/dist/nexus-cli/src/services/ai-authoring-context-v2.js.map +1 -1
  134. package/dist/nexus-cli/src/services/ai-authoring-context-v2.pack.e2e.js +0 -24
  135. package/dist/nexus-cli/src/services/ai-authoring-context-v2.pack.e2e.js.map +1 -1
  136. package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js +0 -8
  137. package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js.map +1 -1
  138. package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js +1 -0
  139. package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js.map +1 -1
  140. package/dist/nexus-cli/src/services/api-client.js +14 -4
  141. package/dist/nexus-cli/src/services/api-client.js.map +1 -1
  142. package/dist/nexus-cli/src/services/code-authoring-local.js +3 -1
  143. package/dist/nexus-cli/src/services/code-authoring-local.js.map +1 -1
  144. package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js +1 -0
  145. package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js.map +1 -1
  146. package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js +1 -0
  147. package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js.map +1 -1
  148. package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js +2 -0
  149. package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js.map +1 -1
  150. package/dist/nexus-cli/src/services/revision-ledger/migration-service.js +1 -0
  151. package/dist/nexus-cli/src/services/revision-ledger/migration-service.js.map +1 -1
  152. package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js +1 -0
  153. package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js.map +1 -1
  154. package/dist/nexus-cli/src/services/revision-ledger/revision-service.js +5 -0
  155. package/dist/nexus-cli/src/services/revision-ledger/revision-service.js.map +1 -1
  156. package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js +1 -0
  157. package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js.map +1 -1
  158. package/dist/nexus-cli/src/services/sse-client.js +7 -2
  159. package/dist/nexus-cli/src/services/sse-client.js.map +1 -1
  160. package/dist/nexus-cli/src/services/step-up-helper.js +1 -0
  161. package/dist/nexus-cli/src/services/step-up-helper.js.map +1 -1
  162. package/dist/nexus-cli/src/services/target-context.js +2 -0
  163. package/dist/nexus-cli/src/services/target-context.js.map +1 -1
  164. package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
  165. package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
  166. package/dist/nexus-cli/src/services/workspace-health.js +10 -5
  167. package/dist/nexus-cli/src/services/workspace-health.js.map +1 -1
  168. package/dist/tsconfig.tsbuildinfo +1 -1
  169. package/package.json +1 -2
@@ -0,0 +1,742 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.evidenceHandoffDraftSchemaV1 = exports.evidenceCaseCardSchemaV1 = exports.evidenceCaseQuerySchemaV1 = void 0;
4
+ const contract_versions_1 = require("./contract-versions");
5
+ /** Authoritative schema owner; docs/contracts are historical design snapshots. */
6
+ /** Public shape only; source access and confirmation authority require owner checks. */
7
+ exports.evidenceCaseQuerySchemaV1 = {
8
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
+ "$id": "schema://nexusclaw/evidence-case-query-v2/contract.schema.json",
10
+ "type": "object",
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "const": contract_versions_1.EVIDENCE_CASE_QUERY_SCHEMA_VERSION
15
+ },
16
+ "plan": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "documentId": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "versionId": {
25
+ "type": "string",
26
+ "minLength": 1
27
+ },
28
+ "partId": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "artifactId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ }
36
+ },
37
+ "required": [
38
+ "documentId",
39
+ "versionId"
40
+ ]
41
+ },
42
+ "requirementRevision": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "requirements": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "itemId": {
53
+ "type": "string",
54
+ "minLength": 1
55
+ },
56
+ "quote": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "basis": {
61
+ "enum": [
62
+ "customer_quote",
63
+ "human_confirmed",
64
+ "hypothesis"
65
+ ]
66
+ },
67
+ "source": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "sourceKind": {
72
+ "enum": [
73
+ "document_region",
74
+ "record_field",
75
+ "customer_quote",
76
+ "case_fact"
77
+ ]
78
+ },
79
+ "sourceId": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "sourceRevision": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ },
87
+ "locator": {
88
+ "type": "string",
89
+ "minLength": 1
90
+ }
91
+ },
92
+ "required": [
93
+ "sourceKind",
94
+ "sourceId",
95
+ "sourceRevision"
96
+ ]
97
+ },
98
+ "constraint": {
99
+ "enum": [
100
+ "hard",
101
+ "soft",
102
+ "unknown"
103
+ ]
104
+ }
105
+ },
106
+ "required": [
107
+ "itemId",
108
+ "quote",
109
+ "basis",
110
+ "source",
111
+ "constraint"
112
+ ]
113
+ }
114
+ },
115
+ "roleView": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z][A-Za-z0-9_.:-]*$" },
116
+ "purpose": {
117
+ "type": "string",
118
+ "minLength": 1
119
+ }
120
+ },
121
+ "required": [
122
+ "schemaVersion",
123
+ "plan",
124
+ "requirementRevision",
125
+ "requirements",
126
+ "roleView",
127
+ "purpose"
128
+ ]
129
+ };
130
+ /** Public shape only; source access and confirmation authority require owner checks. */
131
+ exports.evidenceCaseCardSchemaV1 = {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "$id": "schema://nexusclaw/evidence-case-card-v2/contract.schema.json",
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "properties": {
137
+ "schemaVersion": {
138
+ "const": contract_versions_1.EVIDENCE_CASE_CARD_SCHEMA_VERSION
139
+ },
140
+ "kind": {
141
+ "const": "evidence_case"
142
+ },
143
+ "queryRevision": {
144
+ "type": "string",
145
+ "minLength": 1
146
+ },
147
+ "caseRef": {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "properties": {
151
+ "objectApiName": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ },
155
+ "recordId": {
156
+ "type": "string",
157
+ "minLength": 1
158
+ },
159
+ "sourceRevision": {
160
+ "type": "string",
161
+ "minLength": 1
162
+ }
163
+ },
164
+ "required": [
165
+ "objectApiName",
166
+ "recordId",
167
+ "sourceRevision"
168
+ ]
169
+ },
170
+ "publicTitle": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ },
174
+ "mediaKind": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z][A-Za-z0-9_.:-]*$" },
175
+ "cover": {
176
+ "type": "object",
177
+ "additionalProperties": false,
178
+ "properties": {
179
+ "documentId": {
180
+ "type": "string",
181
+ "minLength": 1
182
+ },
183
+ "versionId": {
184
+ "type": "string",
185
+ "minLength": 1
186
+ },
187
+ "partId": {
188
+ "type": "string",
189
+ "minLength": 1
190
+ },
191
+ "artifactId": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ }
195
+ },
196
+ "required": [
197
+ "documentId",
198
+ "versionId"
199
+ ]
200
+ },
201
+ "summary": {
202
+ "type": "string",
203
+ "minLength": 1
204
+ },
205
+ "matchedReasons": {
206
+ "type": "array",
207
+ "items": {
208
+ "type": "object",
209
+ "additionalProperties": false,
210
+ "properties": {
211
+ "summary": {
212
+ "type": "string",
213
+ "minLength": 1
214
+ },
215
+ "queryEvidence": {
216
+ "type": "array",
217
+ "items": {
218
+ "type": "object",
219
+ "additionalProperties": false,
220
+ "properties": {
221
+ "sourceKind": {
222
+ "enum": [
223
+ "document_region",
224
+ "record_field",
225
+ "customer_quote",
226
+ "case_fact"
227
+ ]
228
+ },
229
+ "sourceId": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ },
233
+ "sourceRevision": {
234
+ "type": "string",
235
+ "minLength": 1
236
+ },
237
+ "locator": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ }
241
+ },
242
+ "required": [
243
+ "sourceKind",
244
+ "sourceId",
245
+ "sourceRevision"
246
+ ]
247
+ },
248
+ "minItems": 1
249
+ },
250
+ "caseEvidence": {
251
+ "type": "array",
252
+ "items": {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "properties": {
256
+ "sourceKind": {
257
+ "enum": [
258
+ "document_region",
259
+ "record_field",
260
+ "customer_quote",
261
+ "case_fact"
262
+ ]
263
+ },
264
+ "sourceId": {
265
+ "type": "string",
266
+ "minLength": 1
267
+ },
268
+ "sourceRevision": {
269
+ "type": "string",
270
+ "minLength": 1
271
+ },
272
+ "locator": {
273
+ "type": "string",
274
+ "minLength": 1
275
+ }
276
+ },
277
+ "required": [
278
+ "sourceKind",
279
+ "sourceId",
280
+ "sourceRevision"
281
+ ]
282
+ },
283
+ "minItems": 1
284
+ }
285
+ },
286
+ "required": [
287
+ "summary",
288
+ "queryEvidence",
289
+ "caseEvidence"
290
+ ]
291
+ },
292
+ "minItems": 1
293
+ },
294
+ "differences": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "additionalProperties": false,
299
+ "properties": {
300
+ "summary": {
301
+ "type": "string",
302
+ "minLength": 1
303
+ },
304
+ "queryEvidence": {
305
+ "type": "array",
306
+ "items": {
307
+ "type": "object",
308
+ "additionalProperties": false,
309
+ "properties": {
310
+ "sourceKind": {
311
+ "enum": [
312
+ "document_region",
313
+ "record_field",
314
+ "customer_quote",
315
+ "case_fact"
316
+ ]
317
+ },
318
+ "sourceId": {
319
+ "type": "string",
320
+ "minLength": 1
321
+ },
322
+ "sourceRevision": {
323
+ "type": "string",
324
+ "minLength": 1
325
+ },
326
+ "locator": {
327
+ "type": "string",
328
+ "minLength": 1
329
+ }
330
+ },
331
+ "required": [
332
+ "sourceKind",
333
+ "sourceId",
334
+ "sourceRevision"
335
+ ]
336
+ },
337
+ "minItems": 1
338
+ },
339
+ "caseEvidence": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "object",
343
+ "additionalProperties": false,
344
+ "properties": {
345
+ "sourceKind": {
346
+ "enum": [
347
+ "document_region",
348
+ "record_field",
349
+ "customer_quote",
350
+ "case_fact"
351
+ ]
352
+ },
353
+ "sourceId": {
354
+ "type": "string",
355
+ "minLength": 1
356
+ },
357
+ "sourceRevision": {
358
+ "type": "string",
359
+ "minLength": 1
360
+ },
361
+ "locator": {
362
+ "type": "string",
363
+ "minLength": 1
364
+ }
365
+ },
366
+ "required": [
367
+ "sourceKind",
368
+ "sourceId",
369
+ "sourceRevision"
370
+ ]
371
+ },
372
+ "minItems": 1
373
+ }
374
+ },
375
+ "required": [
376
+ "summary",
377
+ "queryEvidence",
378
+ "caseEvidence"
379
+ ]
380
+ }
381
+ },
382
+ "unknowns": {
383
+ "type": "array",
384
+ "items": {
385
+ "type": "object",
386
+ "additionalProperties": false,
387
+ "properties": {
388
+ "summary": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ },
392
+ "requiredEvidence": {
393
+ "type": "string",
394
+ "minLength": 1
395
+ }
396
+ },
397
+ "required": [
398
+ "summary",
399
+ "requiredEvidence"
400
+ ]
401
+ }
402
+ },
403
+ "sourceEvidence": {
404
+ "type": "array",
405
+ "items": {
406
+ "type": "object",
407
+ "additionalProperties": false,
408
+ "properties": {
409
+ "sourceKind": {
410
+ "enum": [
411
+ "document_region",
412
+ "record_field",
413
+ "customer_quote",
414
+ "case_fact"
415
+ ]
416
+ },
417
+ "sourceId": {
418
+ "type": "string",
419
+ "minLength": 1
420
+ },
421
+ "sourceRevision": {
422
+ "type": "string",
423
+ "minLength": 1
424
+ },
425
+ "locator": {
426
+ "type": "string",
427
+ "minLength": 1
428
+ }
429
+ },
430
+ "required": [
431
+ "sourceKind",
432
+ "sourceId",
433
+ "sourceRevision"
434
+ ]
435
+ },
436
+ "minItems": 1
437
+ },
438
+ "permittedActions": {
439
+ "type": "array",
440
+ "items": {
441
+ "enum": [
442
+ "open_image",
443
+ "open_source",
444
+ "compare",
445
+ "preview_share"
446
+ ]
447
+ }
448
+ }
449
+ },
450
+ "required": [
451
+ "schemaVersion",
452
+ "kind",
453
+ "queryRevision",
454
+ "caseRef",
455
+ "publicTitle",
456
+ "mediaKind",
457
+ "cover",
458
+ "summary",
459
+ "matchedReasons",
460
+ "differences",
461
+ "unknowns",
462
+ "sourceEvidence",
463
+ "permittedActions"
464
+ ]
465
+ };
466
+ /** Public shape only; source access and confirmation authority require owner checks. */
467
+ exports.evidenceHandoffDraftSchemaV1 = {
468
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
469
+ "$id": "schema://nexusclaw/evidence-handoff-draft-v2/contract.schema.json",
470
+ "type": "object",
471
+ "additionalProperties": false,
472
+ "properties": {
473
+ "schemaVersion": {
474
+ "const": contract_versions_1.EVIDENCE_HANDOFF_DRAFT_SCHEMA_VERSION
475
+ },
476
+ "draftId": {
477
+ "type": "string",
478
+ "minLength": 1
479
+ },
480
+ "draftRevision": {
481
+ "type": "string",
482
+ "minLength": 1
483
+ },
484
+ "plan": {
485
+ "type": "object",
486
+ "additionalProperties": false,
487
+ "properties": {
488
+ "documentId": {
489
+ "type": "string",
490
+ "minLength": 1
491
+ },
492
+ "versionId": {
493
+ "type": "string",
494
+ "minLength": 1
495
+ },
496
+ "partId": {
497
+ "type": "string",
498
+ "minLength": 1
499
+ },
500
+ "artifactId": {
501
+ "type": "string",
502
+ "minLength": 1
503
+ }
504
+ },
505
+ "required": [
506
+ "documentId",
507
+ "versionId"
508
+ ]
509
+ },
510
+ "requirementRevision": {
511
+ "type": "string",
512
+ "minLength": 1
513
+ },
514
+ "requirementItemIds": {
515
+ "type": "array",
516
+ "items": {
517
+ "type": "string",
518
+ "minLength": 1
519
+ }
520
+ },
521
+ "selections": {
522
+ "type": "array",
523
+ "items": {
524
+ "type": "object",
525
+ "additionalProperties": false,
526
+ "properties": {
527
+ "caseRef": {
528
+ "type": "object",
529
+ "additionalProperties": false,
530
+ "properties": {
531
+ "objectApiName": {
532
+ "type": "string",
533
+ "minLength": 1
534
+ },
535
+ "recordId": {
536
+ "type": "string",
537
+ "minLength": 1
538
+ },
539
+ "sourceRevision": {
540
+ "type": "string",
541
+ "minLength": 1
542
+ }
543
+ },
544
+ "required": [
545
+ "objectApiName",
546
+ "recordId",
547
+ "sourceRevision"
548
+ ]
549
+ },
550
+ "selectedPart": {
551
+ "type": "string",
552
+ "minLength": 1
553
+ },
554
+ "selectionEvidence": {
555
+ "type": "object",
556
+ "additionalProperties": false,
557
+ "properties": {
558
+ "sourceKind": {
559
+ "enum": [
560
+ "document_region",
561
+ "record_field",
562
+ "customer_quote",
563
+ "case_fact"
564
+ ]
565
+ },
566
+ "sourceId": {
567
+ "type": "string",
568
+ "minLength": 1
569
+ },
570
+ "sourceRevision": {
571
+ "type": "string",
572
+ "minLength": 1
573
+ },
574
+ "locator": {
575
+ "type": "string",
576
+ "minLength": 1
577
+ }
578
+ },
579
+ "required": [
580
+ "sourceKind",
581
+ "sourceId",
582
+ "sourceRevision"
583
+ ]
584
+ }
585
+ },
586
+ "required": [
587
+ "caseRef",
588
+ "selectedPart",
589
+ "selectionEvidence"
590
+ ]
591
+ }
592
+ },
593
+ "preservedFacts": {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "object",
597
+ "additionalProperties": false,
598
+ "properties": {
599
+ "sourceKind": {
600
+ "enum": [
601
+ "document_region",
602
+ "record_field",
603
+ "customer_quote",
604
+ "case_fact"
605
+ ]
606
+ },
607
+ "sourceId": {
608
+ "type": "string",
609
+ "minLength": 1
610
+ },
611
+ "sourceRevision": {
612
+ "type": "string",
613
+ "minLength": 1
614
+ },
615
+ "locator": {
616
+ "type": "string",
617
+ "minLength": 1
618
+ }
619
+ },
620
+ "required": [
621
+ "sourceKind",
622
+ "sourceId",
623
+ "sourceRevision"
624
+ ]
625
+ }
626
+ },
627
+ "changedItemIds": {
628
+ "type": "array",
629
+ "items": {
630
+ "type": "string",
631
+ "minLength": 1
632
+ }
633
+ },
634
+ "unresolvedChecks": {
635
+ "type": "array",
636
+ "items": {
637
+ "type": "object",
638
+ "additionalProperties": false,
639
+ "properties": {
640
+ "summary": {
641
+ "type": "string",
642
+ "minLength": 1
643
+ },
644
+ "basis": {
645
+ "type": "object",
646
+ "additionalProperties": false,
647
+ "properties": {
648
+ "sourceKind": {
649
+ "enum": [
650
+ "document_region",
651
+ "record_field",
652
+ "customer_quote",
653
+ "case_fact"
654
+ ]
655
+ },
656
+ "sourceId": {
657
+ "type": "string",
658
+ "minLength": 1
659
+ },
660
+ "sourceRevision": {
661
+ "type": "string",
662
+ "minLength": 1
663
+ },
664
+ "locator": {
665
+ "type": "string",
666
+ "minLength": 1
667
+ }
668
+ },
669
+ "required": [
670
+ "sourceKind",
671
+ "sourceId",
672
+ "sourceRevision"
673
+ ]
674
+ },
675
+ "humanRoleNeeded": {
676
+ "type": "string",
677
+ "minLength": 1
678
+ }
679
+ },
680
+ "required": [
681
+ "summary",
682
+ "basis",
683
+ "humanRoleNeeded"
684
+ ]
685
+ }
686
+ },
687
+ "receiverRoleView": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z][A-Za-z0-9_.:-]*$" },
688
+ "sourceExecutionId": {
689
+ "type": "string",
690
+ "minLength": 1
691
+ },
692
+ "sourceReleaseSetId": {
693
+ "type": "string",
694
+ "minLength": 1
695
+ },
696
+ "confirmationState": {
697
+ "enum": [
698
+ "draft",
699
+ "confirmed",
700
+ "superseded"
701
+ ]
702
+ },
703
+ "confirmationRef": {
704
+ "type": "string",
705
+ "minLength": 1
706
+ }
707
+ },
708
+ "required": [
709
+ "schemaVersion",
710
+ "draftId",
711
+ "draftRevision",
712
+ "plan",
713
+ "requirementRevision",
714
+ "requirementItemIds",
715
+ "selections",
716
+ "preservedFacts",
717
+ "changedItemIds",
718
+ "unresolvedChecks",
719
+ "receiverRoleView",
720
+ "sourceExecutionId",
721
+ "sourceReleaseSetId",
722
+ "confirmationState"
723
+ ],
724
+ "allOf": [
725
+ {
726
+ "if": {
727
+ "properties": {
728
+ "confirmationState": {
729
+ "const": "confirmed"
730
+ }
731
+ }
732
+ },
733
+ "then": {
734
+ "properties": { "confirmationRef": { "type": "string", "minLength": 1 } },
735
+ "required": [
736
+ "confirmationRef"
737
+ ]
738
+ }
739
+ }
740
+ ]
741
+ };
742
+ //# sourceMappingURL=evidence-case.schemas.js.map