@nexusclawhq/cli 0.3.76 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/build-info.json +4 -4
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.d.ts +99 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.d.ts +23 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js +26 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.d.ts +59 -9
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js +99 -15
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.d.ts +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js +163 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.d.ts +53 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js +179 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js +408 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.d.ts +14 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js +119 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js +70 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.d.ts +55 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js +138 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.d.ts +197 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js +412 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.d.ts +577 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js +742 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.d.ts +85 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.d.ts +14 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js +111 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.d.ts +44 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.d.ts +11 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js +11 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.d.ts +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.d.ts +178 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js +280 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js +18 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.d.ts +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.d.ts +32 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js +87 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js +5 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +0 -12
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js +27 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.d.ts +39 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js +27 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.d.ts +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js +28 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.d.ts +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js +35 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +6 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +6 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +642 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +686 -21
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +1284 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +642 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +687 -22
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js +5 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.d.ts +24 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js +66 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.d.ts +0 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js +10 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.d.ts +16 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js +37 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.d.ts +9 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.d.ts +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.d.ts +22 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js +90 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +12 -0
- package/dist/nexus-cli/src/cli.js +1 -0
- package/dist/nexus-cli/src/cli.js.map +1 -1
- package/dist/nexus-cli/src/cli.positional.test.d.ts +1 -0
- package/dist/nexus-cli/src/cli.positional.test.js +33 -0
- package/dist/nexus-cli/src/cli.positional.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/help.test.js +4 -4
- package/dist/nexus-cli/src/commands/generate/component.js +14 -1
- package/dist/nexus-cli/src/commands/generate/component.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js +13 -3
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.js +26 -8
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/candidate.js +9 -2
- package/dist/nexus-cli/src/commands/package/candidate.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-contract-coverage-baseline.json +5 -5
- package/dist/nexus-cli/src/contracts/command-contract.registry.js +2 -2
- package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-inventory.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.exporter.test.js +2 -2
- package/dist/nexus-cli/src/contracts/command-policy.registry.js +1 -1
- package/dist/nexus-cli/src/contracts/command-policy.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-policy.registry.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-routing.d.ts +25 -0
- package/dist/nexus-cli/src/contracts/command-routing.js +488 -0
- package/dist/nexus-cli/src/contracts/command-routing.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js +73 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js.map +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.d.ts +40 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js +234 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js.map +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js +65 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js.map +1 -0
- package/dist/nexus-cli/src/runtime/actionable-error.js +5 -0
- package/dist/nexus-cli/src/runtime/actionable-error.js.map +1 -1
- package/dist/nexus-cli/src/runtime/output-coordinator.js +7 -1
- package/dist/nexus-cli/src/runtime/output-coordinator.js.map +1 -1
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js +1 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js.map +1 -1
- package/dist/nexus-cli/src/services/api-client.d.ts +1 -0
- package/dist/nexus-cli/src/services/api-client.js +14 -4
- package/dist/nexus-cli/src/services/api-client.js.map +1 -1
- package/dist/nexus-cli/src/services/code-authoring-local.js +3 -1
- package/dist/nexus-cli/src/services/code-authoring-local.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js +2 -0
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js +5 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js.map +1 -1
- package/dist/nexus-cli/src/services/sse-client.js +7 -2
- package/dist/nexus-cli/src/services/sse-client.js.map +1 -1
- package/dist/nexus-cli/src/services/step-up-helper.js +1 -0
- package/dist/nexus-cli/src/services/step-up-helper.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.js +12 -7
- package/dist/nexus-cli/src/services/target-context.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.test.js +7 -0
- package/dist/nexus-cli/src/services/target-context.test.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-bundle-archive.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-remote-operations.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
- package/dist/nexus-cli/src/services/workspace-health.js +10 -5
- package/dist/nexus-cli/src/services/workspace-health.js.map +1 -1
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.d.ts +11 -2
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js +11 -1
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js.map +1 -1
- package/dist/nexus-cli/src/templates/component.ts.tpl +9 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.d.ts
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared contracts for the NexusClaw Harness execution adapter.
|
|
3
|
+
*
|
|
4
|
+
* These are operational envelopes. They deliberately contain references and
|
|
5
|
+
* bounded machine values only; prompt text, secrets, hidden fields and memory
|
|
6
|
+
* content stay in their existing permissioned owners.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NEXUS_GRAPH_STATE_V1: "nexus-graph-state-v1";
|
|
9
|
+
export declare const HARNESS_CHECKPOINT_BINDING_V1: "nexus-harness-checkpoint-binding/v1";
|
|
10
|
+
export declare const HARNESS_GRAPH_EVENT_V1: "nexus-harness-graph-event/v1";
|
|
11
|
+
export declare const NEXUS_APPROVAL_INTERRUPT_V1: "nexus-harness-approval-interrupt/v1";
|
|
12
|
+
export declare const HARNESS_APPROVAL_RESUME_CLAIM_V1: "nexus-harness-approval-resume-claim/v1";
|
|
13
|
+
export declare const HARNESS_EXECUTION_MIGRATION_MANIFEST_V1: "harness-execution-migration-v1";
|
|
14
|
+
export declare const HARNESS_RELEASE_EVIDENCE_V1: "nexus-harness-release-evidence/v1";
|
|
15
|
+
export declare const HARNESS_SIDE_EFFECT_COMMAND_V1: "nexus-harness-side-effect-command/v1";
|
|
16
|
+
export type NexusGraphStateStatus = 'running' | 'waiting_approval' | 'completed' | 'failed' | 'cancelled';
|
|
17
|
+
export type NexusGraphNodeName = 'admitExecution' | 'freezeGoal' | 'buildContext' | 'modelStep' | 'proposeTool' | 'approvalGate' | 'executeTool' | 'recordEvidence' | 'distillMemory' | 'evaluateOutcome' | 'runExecutor' | 'complete';
|
|
18
|
+
export interface NexusGraphStateV1 {
|
|
19
|
+
readonly schemaVersion: typeof NEXUS_GRAPH_STATE_V1;
|
|
20
|
+
readonly executionId: string;
|
|
21
|
+
readonly workspaceId: string;
|
|
22
|
+
readonly agentId: string;
|
|
23
|
+
readonly agentVersionId: string;
|
|
24
|
+
readonly releaseSetId: string;
|
|
25
|
+
readonly graphId: string;
|
|
26
|
+
readonly graphSchemaVersion: string;
|
|
27
|
+
readonly graphDigest: string;
|
|
28
|
+
readonly runtimeAdapterVersion: string;
|
|
29
|
+
readonly releaseEvidenceDigest: string;
|
|
30
|
+
readonly goalSnapshotId: string;
|
|
31
|
+
readonly goalSnapshotDigest?: string;
|
|
32
|
+
readonly contextManifestId?: string;
|
|
33
|
+
readonly contextManifestDigest?: string;
|
|
34
|
+
readonly currentNode: NexusGraphNodeName;
|
|
35
|
+
readonly pendingToolCallId?: string;
|
|
36
|
+
readonly approvalRequestId?: string;
|
|
37
|
+
readonly lastRuntimeEventId?: string;
|
|
38
|
+
readonly retryCount: number;
|
|
39
|
+
readonly status: NexusGraphStateStatus;
|
|
40
|
+
}
|
|
41
|
+
export interface HarnessCheckpointBindingV1 {
|
|
42
|
+
readonly schemaVersion: typeof HARNESS_CHECKPOINT_BINDING_V1;
|
|
43
|
+
readonly checkpointId: string;
|
|
44
|
+
readonly threadId: string;
|
|
45
|
+
readonly executionId: string;
|
|
46
|
+
readonly workspaceId: string;
|
|
47
|
+
readonly agentVersionId: string;
|
|
48
|
+
readonly releaseSetId: string;
|
|
49
|
+
readonly graphId: string;
|
|
50
|
+
readonly graphSchemaVersion: string;
|
|
51
|
+
readonly graphDigest: string;
|
|
52
|
+
readonly runtimeAdapterVersion: string;
|
|
53
|
+
readonly releaseEvidenceDigest: string;
|
|
54
|
+
readonly goalSnapshotDigest?: string;
|
|
55
|
+
readonly contextManifestDigest?: string;
|
|
56
|
+
}
|
|
57
|
+
export type HarnessGraphEventType = 'node_transition' | 'checkpoint_written' | 'interrupt' | 'resume_requested' | 'retry_scheduled' | 'duplicate_resume';
|
|
58
|
+
export type HarnessGraphEventResult = 'accepted' | 'replayed' | 'rejected' | 'failed';
|
|
59
|
+
export interface HarnessGraphEventV1 {
|
|
60
|
+
readonly schemaVersion: typeof HARNESS_GRAPH_EVENT_V1;
|
|
61
|
+
readonly eventId: string;
|
|
62
|
+
readonly eventType: HarnessGraphEventType;
|
|
63
|
+
readonly occurredAt: string;
|
|
64
|
+
readonly workspaceId: string;
|
|
65
|
+
readonly executionId: string;
|
|
66
|
+
readonly graphId: string;
|
|
67
|
+
readonly graphSchemaVersion: string;
|
|
68
|
+
readonly graphDigest: string;
|
|
69
|
+
readonly runtimeAdapterVersion: string;
|
|
70
|
+
readonly agentId?: string;
|
|
71
|
+
readonly agentVersionId?: string;
|
|
72
|
+
readonly traceId?: string;
|
|
73
|
+
readonly correlationId?: string;
|
|
74
|
+
readonly commandId?: string;
|
|
75
|
+
/** Existing cognition/release references used to correlate graph evidence. */
|
|
76
|
+
readonly releaseSetId?: string;
|
|
77
|
+
readonly goalSnapshotId?: string;
|
|
78
|
+
readonly goalSnapshotDigest?: string;
|
|
79
|
+
readonly contextManifestId?: string;
|
|
80
|
+
readonly contextManifestDigest?: string;
|
|
81
|
+
readonly idempotencyKey: string;
|
|
82
|
+
readonly result: HarnessGraphEventResult;
|
|
83
|
+
readonly node?: NexusGraphNodeName;
|
|
84
|
+
readonly checkpointId?: string;
|
|
85
|
+
readonly approvalRequestId?: string;
|
|
86
|
+
readonly toolCallId?: string;
|
|
87
|
+
readonly errorCode?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A permission-safe command envelope for a graph node that delegates a
|
|
91
|
+
* business side effect to an existing owner. The command is evidence and
|
|
92
|
+
* idempotency metadata only; it never contains a tool payload or provider
|
|
93
|
+
* input.
|
|
94
|
+
*/
|
|
95
|
+
export interface HarnessSideEffectCommandV1 {
|
|
96
|
+
readonly schemaVersion: typeof HARNESS_SIDE_EFFECT_COMMAND_V1;
|
|
97
|
+
readonly commandId: string;
|
|
98
|
+
readonly operation: 'executor.execute';
|
|
99
|
+
readonly executionId: string;
|
|
100
|
+
readonly workspaceId: string;
|
|
101
|
+
readonly node: 'runExecutor';
|
|
102
|
+
readonly idempotencyKey: string;
|
|
103
|
+
readonly owner: 'ExecutorEngineService';
|
|
104
|
+
}
|
|
105
|
+
export interface NexusApprovalInterruptV1 {
|
|
106
|
+
readonly approvalRequestId: string;
|
|
107
|
+
readonly executionId: string;
|
|
108
|
+
readonly toolCallId: string;
|
|
109
|
+
readonly riskLevel: string;
|
|
110
|
+
readonly displaySummary: string;
|
|
111
|
+
readonly expiresAt: string;
|
|
112
|
+
}
|
|
113
|
+
export interface HarnessApprovalResumeClaimV1 {
|
|
114
|
+
readonly schemaVersion: typeof HARNESS_APPROVAL_RESUME_CLAIM_V1;
|
|
115
|
+
readonly approvalRequestId: string;
|
|
116
|
+
readonly executionId: string;
|
|
117
|
+
readonly toolCallId: string;
|
|
118
|
+
readonly claimOwnerId: string;
|
|
119
|
+
readonly idempotencyKey: string;
|
|
120
|
+
}
|
|
121
|
+
export interface HarnessExecutionMigrationUnresolvedItemV1 {
|
|
122
|
+
readonly executionId: string;
|
|
123
|
+
readonly reasonCode: string;
|
|
124
|
+
}
|
|
125
|
+
export interface HarnessExecutionMigrationManifestV1 {
|
|
126
|
+
readonly schemaVersion: typeof HARNESS_EXECUTION_MIGRATION_MANIFEST_V1;
|
|
127
|
+
readonly sourceEnvironment: string;
|
|
128
|
+
readonly targetEnvironment: string;
|
|
129
|
+
readonly sourceWorkspaceId: string;
|
|
130
|
+
readonly targetWorkspaceId: string;
|
|
131
|
+
readonly graphId: string;
|
|
132
|
+
readonly sourceGraphSchemaVersion: string;
|
|
133
|
+
readonly targetGraphSchemaVersion: string;
|
|
134
|
+
readonly sourceGraphDigest: string;
|
|
135
|
+
readonly targetGraphDigest: string;
|
|
136
|
+
readonly sourceRuntimeAdapterVersion: string;
|
|
137
|
+
readonly targetRuntimeAdapterVersion: string;
|
|
138
|
+
readonly sourceReleaseSetId: string;
|
|
139
|
+
readonly targetReleaseSetId?: string;
|
|
140
|
+
readonly selectedExecutionIds: readonly string[];
|
|
141
|
+
readonly exportedCount: number;
|
|
142
|
+
readonly importedCount: number;
|
|
143
|
+
readonly unresolved: readonly HarnessExecutionMigrationUnresolvedItemV1[];
|
|
144
|
+
readonly digest: string;
|
|
145
|
+
}
|
|
146
|
+
export interface HarnessReleaseEvidenceV1 {
|
|
147
|
+
readonly schemaVersion: typeof HARNESS_RELEASE_EVIDENCE_V1;
|
|
148
|
+
readonly workspaceId: string;
|
|
149
|
+
readonly agentVersionId: string;
|
|
150
|
+
readonly releaseSetId: string;
|
|
151
|
+
readonly graphId: string;
|
|
152
|
+
readonly graphSchemaVersion: string;
|
|
153
|
+
readonly graphDigest: string;
|
|
154
|
+
readonly runtimeAdapterVersion: string;
|
|
155
|
+
readonly releaseEvidenceDigest: string;
|
|
156
|
+
readonly licenseSbomDigest: string;
|
|
157
|
+
readonly agentVersionReleaseChecksum?: string;
|
|
158
|
+
readonly agentVersionSourceLockDigest?: string;
|
|
159
|
+
readonly releaseSetPortableBundleDigest: string;
|
|
160
|
+
readonly releaseSetSourceLockDigest: string;
|
|
161
|
+
readonly releaseSetReleaseItemSetDigest: string;
|
|
162
|
+
readonly releaseSetMaterializedItemRefsDigest: string;
|
|
163
|
+
readonly releaseSetEnvelopeDigest?: string;
|
|
164
|
+
readonly digest: string;
|
|
165
|
+
}
|
|
166
|
+
export interface HarnessContractValidationIssue {
|
|
167
|
+
readonly code: 'not_object' | 'unknown_field' | 'missing_field' | 'invalid_schema_version' | 'invalid_value' | 'thread_execution_mismatch' | 'forbidden_payload';
|
|
168
|
+
readonly path: string;
|
|
169
|
+
readonly message: string;
|
|
170
|
+
}
|
|
171
|
+
export declare function validateNexusGraphStateV1(value: unknown): HarnessContractValidationIssue[];
|
|
172
|
+
export declare function validateHarnessCheckpointBindingV1(value: unknown): HarnessContractValidationIssue[];
|
|
173
|
+
export declare function validateHarnessGraphEventV1(value: unknown): HarnessContractValidationIssue[];
|
|
174
|
+
export declare function validateHarnessSideEffectCommandV1(value: unknown): HarnessContractValidationIssue[];
|
|
175
|
+
export declare function validateNexusApprovalInterruptV1(value: unknown): HarnessContractValidationIssue[];
|
|
176
|
+
export declare function validateHarnessApprovalResumeClaimV1(value: unknown): HarnessContractValidationIssue[];
|
|
177
|
+
export declare function validateHarnessExecutionMigrationManifestV1(value: unknown): HarnessContractValidationIssue[];
|
|
178
|
+
export declare function validateHarnessReleaseEvidenceV1(value: unknown): HarnessContractValidationIssue[];
|
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared contracts for the NexusClaw Harness execution adapter.
|
|
4
|
+
*
|
|
5
|
+
* These are operational envelopes. They deliberately contain references and
|
|
6
|
+
* bounded machine values only; prompt text, secrets, hidden fields and memory
|
|
7
|
+
* content stay in their existing permissioned owners.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.HARNESS_SIDE_EFFECT_COMMAND_V1 = exports.HARNESS_RELEASE_EVIDENCE_V1 = exports.HARNESS_EXECUTION_MIGRATION_MANIFEST_V1 = exports.HARNESS_APPROVAL_RESUME_CLAIM_V1 = exports.NEXUS_APPROVAL_INTERRUPT_V1 = exports.HARNESS_GRAPH_EVENT_V1 = exports.HARNESS_CHECKPOINT_BINDING_V1 = exports.NEXUS_GRAPH_STATE_V1 = void 0;
|
|
11
|
+
exports.validateNexusGraphStateV1 = validateNexusGraphStateV1;
|
|
12
|
+
exports.validateHarnessCheckpointBindingV1 = validateHarnessCheckpointBindingV1;
|
|
13
|
+
exports.validateHarnessGraphEventV1 = validateHarnessGraphEventV1;
|
|
14
|
+
exports.validateHarnessSideEffectCommandV1 = validateHarnessSideEffectCommandV1;
|
|
15
|
+
exports.validateNexusApprovalInterruptV1 = validateNexusApprovalInterruptV1;
|
|
16
|
+
exports.validateHarnessApprovalResumeClaimV1 = validateHarnessApprovalResumeClaimV1;
|
|
17
|
+
exports.validateHarnessExecutionMigrationManifestV1 = validateHarnessExecutionMigrationManifestV1;
|
|
18
|
+
exports.validateHarnessReleaseEvidenceV1 = validateHarnessReleaseEvidenceV1;
|
|
19
|
+
exports.NEXUS_GRAPH_STATE_V1 = 'nexus-graph-state-v1';
|
|
20
|
+
exports.HARNESS_CHECKPOINT_BINDING_V1 = 'nexus-harness-checkpoint-binding/v1';
|
|
21
|
+
exports.HARNESS_GRAPH_EVENT_V1 = 'nexus-harness-graph-event/v1';
|
|
22
|
+
exports.NEXUS_APPROVAL_INTERRUPT_V1 = 'nexus-harness-approval-interrupt/v1';
|
|
23
|
+
exports.HARNESS_APPROVAL_RESUME_CLAIM_V1 = 'nexus-harness-approval-resume-claim/v1';
|
|
24
|
+
exports.HARNESS_EXECUTION_MIGRATION_MANIFEST_V1 = 'harness-execution-migration-v1';
|
|
25
|
+
exports.HARNESS_RELEASE_EVIDENCE_V1 = 'nexus-harness-release-evidence/v1';
|
|
26
|
+
exports.HARNESS_SIDE_EFFECT_COMMAND_V1 = 'nexus-harness-side-effect-command/v1';
|
|
27
|
+
const FORBIDDEN_FIELD_PATTERN = /secret|credential|password|rawprompt|raw_prompt|chain.?of.?thought|toolinput|memorytext|memory_text/i;
|
|
28
|
+
function asRecord(value) {
|
|
29
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
30
|
+
? value
|
|
31
|
+
: null;
|
|
32
|
+
}
|
|
33
|
+
function issue(code, path, message) {
|
|
34
|
+
return { code, path, message };
|
|
35
|
+
}
|
|
36
|
+
function validateObjectKeys(value, expected) {
|
|
37
|
+
const expectedSet = new Set(expected);
|
|
38
|
+
return Object.keys(value).flatMap((key) => {
|
|
39
|
+
if (FORBIDDEN_FIELD_PATTERN.test(key)) {
|
|
40
|
+
return [issue('forbidden_payload', key, 'operational contract cannot contain secret, prompt, tool input, or memory text')];
|
|
41
|
+
}
|
|
42
|
+
if (!expectedSet.has(key)) {
|
|
43
|
+
return [issue('unknown_field', key, `unknown field: ${key}`)];
|
|
44
|
+
}
|
|
45
|
+
return [];
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function requireNonBlank(value, key, issues) {
|
|
49
|
+
if (typeof value[key] !== 'string' || !value[key].trim()) {
|
|
50
|
+
issues.push(issue('missing_field', key, `${key} must be a non-blank string`));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function requireEnum(value, key, allowed, issues) {
|
|
54
|
+
if (typeof value[key] !== 'string' || !allowed.includes(value[key])) {
|
|
55
|
+
issues.push(issue('invalid_value', key, `${key} must be one of: ${allowed.join(', ')}`));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function validateNexusGraphStateV1(value) {
|
|
59
|
+
const record = asRecord(value);
|
|
60
|
+
if (!record)
|
|
61
|
+
return [issue('not_object', '', 'graph state must be an object')];
|
|
62
|
+
const expected = [
|
|
63
|
+
'schemaVersion', 'executionId', 'workspaceId', 'agentId', 'agentVersionId',
|
|
64
|
+
'releaseSetId', 'graphId', 'graphSchemaVersion', 'graphDigest', 'runtimeAdapterVersion', 'releaseEvidenceDigest',
|
|
65
|
+
'goalSnapshotId', 'goalSnapshotDigest', 'contextManifestId', 'contextManifestDigest', 'currentNode', 'pendingToolCallId',
|
|
66
|
+
'approvalRequestId', 'lastRuntimeEventId', 'retryCount', 'status',
|
|
67
|
+
];
|
|
68
|
+
const issues = validateObjectKeys(record, expected);
|
|
69
|
+
if (record.schemaVersion !== exports.NEXUS_GRAPH_STATE_V1) {
|
|
70
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.NEXUS_GRAPH_STATE_V1}`));
|
|
71
|
+
}
|
|
72
|
+
for (const key of [
|
|
73
|
+
'executionId', 'workspaceId', 'agentId', 'agentVersionId', 'releaseSetId',
|
|
74
|
+
'graphId', 'graphSchemaVersion', 'graphDigest', 'runtimeAdapterVersion', 'releaseEvidenceDigest', 'goalSnapshotId',
|
|
75
|
+
])
|
|
76
|
+
requireNonBlank(record, key, issues);
|
|
77
|
+
requireEnum(record, 'currentNode', [
|
|
78
|
+
'admitExecution', 'freezeGoal', 'buildContext', 'modelStep', 'proposeTool',
|
|
79
|
+
'approvalGate', 'executeTool', 'recordEvidence', 'distillMemory',
|
|
80
|
+
'evaluateOutcome', 'runExecutor', 'complete',
|
|
81
|
+
], issues);
|
|
82
|
+
requireEnum(record, 'status', [
|
|
83
|
+
'running', 'waiting_approval', 'completed', 'failed', 'cancelled',
|
|
84
|
+
], issues);
|
|
85
|
+
if (!Number.isInteger(record.retryCount) || record.retryCount < 0) {
|
|
86
|
+
issues.push(issue('invalid_value', 'retryCount', 'retryCount must be a non-negative integer'));
|
|
87
|
+
}
|
|
88
|
+
return issues;
|
|
89
|
+
}
|
|
90
|
+
function validateHarnessCheckpointBindingV1(value) {
|
|
91
|
+
const record = asRecord(value);
|
|
92
|
+
if (!record)
|
|
93
|
+
return [issue('not_object', '', 'checkpoint binding must be an object')];
|
|
94
|
+
const expected = [
|
|
95
|
+
'schemaVersion', 'checkpointId', 'threadId', 'executionId', 'workspaceId',
|
|
96
|
+
'agentVersionId', 'releaseSetId', 'graphId', 'graphSchemaVersion', 'graphDigest',
|
|
97
|
+
'runtimeAdapterVersion', 'releaseEvidenceDigest', 'goalSnapshotDigest', 'contextManifestDigest',
|
|
98
|
+
];
|
|
99
|
+
const issues = validateObjectKeys(record, expected);
|
|
100
|
+
if (record.schemaVersion !== exports.HARNESS_CHECKPOINT_BINDING_V1) {
|
|
101
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_CHECKPOINT_BINDING_V1}`));
|
|
102
|
+
}
|
|
103
|
+
for (const key of [
|
|
104
|
+
'checkpointId', 'threadId', 'executionId', 'workspaceId', 'agentVersionId',
|
|
105
|
+
'releaseSetId', 'graphId', 'graphSchemaVersion', 'graphDigest',
|
|
106
|
+
'runtimeAdapterVersion', 'releaseEvidenceDigest',
|
|
107
|
+
])
|
|
108
|
+
requireNonBlank(record, key, issues);
|
|
109
|
+
if (typeof record.threadId === 'string' && typeof record.executionId === 'string' && record.threadId !== record.executionId) {
|
|
110
|
+
issues.push(issue('thread_execution_mismatch', 'threadId', 'threadId must equal executionId'));
|
|
111
|
+
}
|
|
112
|
+
return issues;
|
|
113
|
+
}
|
|
114
|
+
function validateHarnessGraphEventV1(value) {
|
|
115
|
+
const record = asRecord(value);
|
|
116
|
+
if (!record)
|
|
117
|
+
return [issue('not_object', '', 'graph event must be an object')];
|
|
118
|
+
const expected = [
|
|
119
|
+
'schemaVersion', 'eventId', 'eventType', 'occurredAt', 'workspaceId',
|
|
120
|
+
'executionId', 'graphId', 'graphSchemaVersion', 'graphDigest', 'runtimeAdapterVersion',
|
|
121
|
+
'releaseSetId', 'goalSnapshotId', 'contextManifestId',
|
|
122
|
+
'goalSnapshotDigest', 'contextManifestDigest',
|
|
123
|
+
'agentId', 'agentVersionId', 'traceId', 'correlationId', 'commandId',
|
|
124
|
+
'idempotencyKey', 'result', 'node', 'checkpointId', 'approvalRequestId',
|
|
125
|
+
'toolCallId', 'errorCode',
|
|
126
|
+
];
|
|
127
|
+
const issues = validateObjectKeys(record, expected);
|
|
128
|
+
if (record.schemaVersion !== exports.HARNESS_GRAPH_EVENT_V1) {
|
|
129
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_GRAPH_EVENT_V1}`));
|
|
130
|
+
}
|
|
131
|
+
for (const key of [
|
|
132
|
+
'eventId', 'occurredAt', 'workspaceId', 'executionId', 'graphId',
|
|
133
|
+
'graphSchemaVersion', 'runtimeAdapterVersion', 'idempotencyKey',
|
|
134
|
+
])
|
|
135
|
+
requireNonBlank(record, key, issues);
|
|
136
|
+
requireEnum(record, 'eventType', [
|
|
137
|
+
'node_transition', 'checkpoint_written', 'interrupt', 'resume_requested',
|
|
138
|
+
'retry_scheduled', 'duplicate_resume',
|
|
139
|
+
], issues);
|
|
140
|
+
requireEnum(record, 'result', ['accepted', 'replayed', 'rejected', 'failed'], issues);
|
|
141
|
+
return issues;
|
|
142
|
+
}
|
|
143
|
+
function validateHarnessSideEffectCommandV1(value) {
|
|
144
|
+
const record = asRecord(value);
|
|
145
|
+
if (!record)
|
|
146
|
+
return [issue('not_object', '', 'side-effect command must be an object')];
|
|
147
|
+
const expected = [
|
|
148
|
+
'schemaVersion', 'commandId', 'operation', 'executionId', 'workspaceId',
|
|
149
|
+
'node', 'idempotencyKey', 'owner',
|
|
150
|
+
];
|
|
151
|
+
const issues = validateObjectKeys(record, expected);
|
|
152
|
+
if (record.schemaVersion !== exports.HARNESS_SIDE_EFFECT_COMMAND_V1) {
|
|
153
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_SIDE_EFFECT_COMMAND_V1}`));
|
|
154
|
+
}
|
|
155
|
+
for (const key of ['commandId', 'executionId', 'workspaceId', 'idempotencyKey']) {
|
|
156
|
+
requireNonBlank(record, key, issues);
|
|
157
|
+
}
|
|
158
|
+
requireEnum(record, 'operation', ['executor.execute'], issues);
|
|
159
|
+
requireEnum(record, 'node', ['runExecutor'], issues);
|
|
160
|
+
requireEnum(record, 'owner', ['ExecutorEngineService'], issues);
|
|
161
|
+
return issues;
|
|
162
|
+
}
|
|
163
|
+
function validateNexusApprovalInterruptV1(value) {
|
|
164
|
+
const record = asRecord(value);
|
|
165
|
+
if (!record)
|
|
166
|
+
return [issue('not_object', '', 'approval interrupt must be an object')];
|
|
167
|
+
const expected = [
|
|
168
|
+
'approvalRequestId', 'executionId', 'toolCallId', 'riskLevel', 'displaySummary', 'expiresAt',
|
|
169
|
+
];
|
|
170
|
+
const issues = validateObjectKeys(record, expected);
|
|
171
|
+
for (const key of expected)
|
|
172
|
+
requireNonBlank(record, key, issues);
|
|
173
|
+
return issues;
|
|
174
|
+
}
|
|
175
|
+
function validateHarnessApprovalResumeClaimV1(value) {
|
|
176
|
+
const record = asRecord(value);
|
|
177
|
+
if (!record)
|
|
178
|
+
return [issue('not_object', '', 'approval resume claim must be an object')];
|
|
179
|
+
const expected = [
|
|
180
|
+
'schemaVersion', 'approvalRequestId', 'executionId', 'toolCallId', 'claimOwnerId', 'idempotencyKey',
|
|
181
|
+
];
|
|
182
|
+
const issues = validateObjectKeys(record, expected);
|
|
183
|
+
if (record.schemaVersion !== exports.HARNESS_APPROVAL_RESUME_CLAIM_V1) {
|
|
184
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_APPROVAL_RESUME_CLAIM_V1}`));
|
|
185
|
+
}
|
|
186
|
+
for (const key of expected.slice(1))
|
|
187
|
+
requireNonBlank(record, key, issues);
|
|
188
|
+
return issues;
|
|
189
|
+
}
|
|
190
|
+
function validateHarnessExecutionMigrationManifestV1(value) {
|
|
191
|
+
const record = asRecord(value);
|
|
192
|
+
if (!record)
|
|
193
|
+
return [issue('not_object', '', 'migration manifest must be an object')];
|
|
194
|
+
const expected = [
|
|
195
|
+
'schemaVersion', 'sourceEnvironment', 'targetEnvironment', 'sourceWorkspaceId',
|
|
196
|
+
'targetWorkspaceId', 'graphId', 'sourceGraphSchemaVersion', 'targetGraphSchemaVersion',
|
|
197
|
+
'sourceGraphDigest', 'targetGraphDigest', 'sourceRuntimeAdapterVersion', 'targetRuntimeAdapterVersion', 'sourceReleaseSetId',
|
|
198
|
+
'targetReleaseSetId', 'selectedExecutionIds', 'exportedCount', 'importedCount',
|
|
199
|
+
'unresolved', 'digest',
|
|
200
|
+
];
|
|
201
|
+
const issues = validateObjectKeys(record, expected);
|
|
202
|
+
if (record.schemaVersion !== exports.HARNESS_EXECUTION_MIGRATION_MANIFEST_V1) {
|
|
203
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_EXECUTION_MIGRATION_MANIFEST_V1}`));
|
|
204
|
+
}
|
|
205
|
+
for (const key of [
|
|
206
|
+
'sourceEnvironment', 'targetEnvironment', 'sourceWorkspaceId', 'targetWorkspaceId',
|
|
207
|
+
'graphId', 'sourceGraphSchemaVersion', 'targetGraphSchemaVersion', 'sourceGraphDigest', 'targetGraphDigest',
|
|
208
|
+
'sourceRuntimeAdapterVersion', 'targetRuntimeAdapterVersion', 'sourceReleaseSetId', 'digest',
|
|
209
|
+
])
|
|
210
|
+
requireNonBlank(record, key, issues);
|
|
211
|
+
if (!Array.isArray(record.selectedExecutionIds) || record.selectedExecutionIds.some((id) => typeof id !== 'string' || !id.trim())) {
|
|
212
|
+
issues.push(issue('invalid_value', 'selectedExecutionIds', 'selectedExecutionIds must contain only non-blank strings'));
|
|
213
|
+
}
|
|
214
|
+
for (const key of ['exportedCount', 'importedCount']) {
|
|
215
|
+
if (!Number.isInteger(record[key]) || record[key] < 0) {
|
|
216
|
+
issues.push(issue('invalid_value', key, `${key} must be a non-negative integer`));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (!Array.isArray(record.unresolved)) {
|
|
220
|
+
issues.push(issue('invalid_value', 'unresolved', 'unresolved must be an array'));
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
record.unresolved.forEach((item, index) => {
|
|
224
|
+
const unresolved = asRecord(item);
|
|
225
|
+
if (!unresolved) {
|
|
226
|
+
issues.push(issue('invalid_value', `unresolved[${index}]`, 'unresolved item must be an object'));
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const itemIssues = validateObjectKeys(unresolved, ['executionId', 'reasonCode']);
|
|
230
|
+
issues.push(...itemIssues.map((entry) => ({ ...entry, path: `unresolved[${index}].${entry.path}` })));
|
|
231
|
+
requireNonBlank(unresolved, 'executionId', issues);
|
|
232
|
+
requireNonBlank(unresolved, 'reasonCode', issues);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return issues;
|
|
236
|
+
}
|
|
237
|
+
function validateHarnessReleaseEvidenceV1(value) {
|
|
238
|
+
const record = asRecord(value);
|
|
239
|
+
if (!record)
|
|
240
|
+
return [issue('not_object', '', 'release evidence must be an object')];
|
|
241
|
+
const expected = [
|
|
242
|
+
'schemaVersion', 'workspaceId', 'agentVersionId', 'releaseSetId', 'graphId',
|
|
243
|
+
'graphSchemaVersion', 'graphDigest', 'runtimeAdapterVersion', 'releaseEvidenceDigest',
|
|
244
|
+
'licenseSbomDigest', 'agentVersionReleaseChecksum', 'agentVersionSourceLockDigest',
|
|
245
|
+
'releaseSetPortableBundleDigest', 'releaseSetSourceLockDigest',
|
|
246
|
+
'releaseSetReleaseItemSetDigest', 'releaseSetMaterializedItemRefsDigest',
|
|
247
|
+
'releaseSetEnvelopeDigest', 'digest',
|
|
248
|
+
];
|
|
249
|
+
const digestKeys = [
|
|
250
|
+
'graphDigest', 'releaseEvidenceDigest', 'licenseSbomDigest',
|
|
251
|
+
'agentVersionReleaseChecksum', 'agentVersionSourceLockDigest',
|
|
252
|
+
'releaseSetPortableBundleDigest', 'releaseSetSourceLockDigest',
|
|
253
|
+
'releaseSetReleaseItemSetDigest', 'releaseSetMaterializedItemRefsDigest',
|
|
254
|
+
'releaseSetEnvelopeDigest', 'digest',
|
|
255
|
+
];
|
|
256
|
+
const issues = validateObjectKeys(record, expected);
|
|
257
|
+
if (record.schemaVersion !== exports.HARNESS_RELEASE_EVIDENCE_V1) {
|
|
258
|
+
issues.push(issue('invalid_schema_version', 'schemaVersion', `schemaVersion must be ${exports.HARNESS_RELEASE_EVIDENCE_V1}`));
|
|
259
|
+
}
|
|
260
|
+
for (const key of [
|
|
261
|
+
'workspaceId', 'agentVersionId', 'releaseSetId', 'graphId', 'graphSchemaVersion',
|
|
262
|
+
'graphDigest', 'runtimeAdapterVersion', 'releaseEvidenceDigest', 'licenseSbomDigest',
|
|
263
|
+
'releaseSetPortableBundleDigest', 'releaseSetSourceLockDigest',
|
|
264
|
+
'releaseSetReleaseItemSetDigest', 'releaseSetMaterializedItemRefsDigest', 'digest',
|
|
265
|
+
])
|
|
266
|
+
requireNonBlank(record, key, issues);
|
|
267
|
+
for (const key of ['agentVersionReleaseChecksum', 'agentVersionSourceLockDigest', 'releaseSetEnvelopeDigest']) {
|
|
268
|
+
if (record[key] !== undefined && (typeof record[key] !== 'string' || !record[key].trim())) {
|
|
269
|
+
issues.push(issue('invalid_value', key, `${key} must be a non-blank string when present`));
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
for (const key of digestKeys) {
|
|
273
|
+
if (record[key] !== undefined && record[key] !== '' &&
|
|
274
|
+
(typeof record[key] !== 'string' || !/^sha256:[0-9a-f]{64}$/.test(record[key]))) {
|
|
275
|
+
issues.push(issue('invalid_value', key, `${key} must be a sha256 digest`));
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return issues;
|
|
279
|
+
}
|
|
280
|
+
//# sourceMappingURL=harness-runtime.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-runtime.types.js","sourceRoot":"","sources":["../../src/agent-runtime/harness-runtime.types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAyQH,8DA8BC;AAED,gFAqBC;AAED,kEA0BC;AAED,gFAkBC;AAED,4EASC;AAED,oFAYC;AAED,kGA2CC;AAED,4EAwCC;AA5dY,QAAA,oBAAoB,GAAG,sBAA+B,CAAC;AACvD,QAAA,6BAA6B,GAAG,qCAA8C,CAAC;AAC/E,QAAA,sBAAsB,GAAG,8BAAuC,CAAC;AACjE,QAAA,2BAA2B,GAAG,qCAA8C,CAAC;AAC7E,QAAA,gCAAgC,GAAG,wCAAiD,CAAC;AACrF,QAAA,uCAAuC,GAAG,gCAAyC,CAAC;AACpF,QAAA,2BAA2B,GAAG,mCAA4C,CAAC;AAC3E,QAAA,8BAA8B,GAAG,sCAA+C,CAAC;AA2M9F,MAAM,uBAAuB,GAAG,sGAAsG,CAAC;AAEvI,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,Q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AC,GAAG,CAAC,KAAK,EAAE;YACjD,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YAClF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,0BAA0B,CAAC,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './harness-runtime.types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./harness-runtime.types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Sha256Digest } from '../agent-executable-assets/canonical-hash';
|
|
2
2
|
export declare const EFFECTIVE_AGENT_MANIFEST_SCHEMA_VERSION: "nexusclaw.effective-agent-manifest/v1";
|
|
3
|
-
export declare const AGENT_READINESS_DIAGNOSTIC_CODES: readonly ["AGENT_IDENTITY_INVARIANT_INVALID", "ASSISTANT_BACKGROUND_A1_UNAVAILABLE", "AGENT_TOOL_BINDING_UNRESOLVED", "AGENT_TOOL_BINDING_MAPPING_USE_FLOW", "AGENT_TOOL_BINDING_MAPPING_LEGACY_UNSUPPORTED", "AGENT_TOOL_RISK_UNRESOLVED", "AGENT_TOOL_RISK_DECLARATION_RAISED", "SUCCESS_METRIC_UNRESOLVED", "SUCCESS_EVALUATOR_UNAVAILABLE", "CANDIDATE_COGNITION_NOT_COVERED", "CANDIDATE_FIXTURE_STALE", "ROLE_TASK_SOURCE_UNRESOLVED", "ROLE_TASK_SIGNAL_EVIDENCE_INCOMPLETE"];
|
|
3
|
+
export declare const AGENT_READINESS_DIAGNOSTIC_CODES: readonly ["AGENT_IDENTITY_INVARIANT_INVALID", "ASSISTANT_BACKGROUND_A1_UNAVAILABLE", "AGENT_TOOL_BINDING_UNRESOLVED", "AGENT_TOOL_BINDING_MAPPING_USE_FLOW", "AGENT_TOOL_BINDING_MAPPING_LEGACY_UNSUPPORTED", "AGENT_TOOL_RISK_UNRESOLVED", "AGENT_TOOL_RISK_DECLARATION_RAISED", "SUCCESS_METRIC_UNRESOLVED", "SUCCESS_METRIC_UNBOUND", "SUCCESS_EVALUATOR_UNAVAILABLE", "CANDIDATE_COGNITION_NOT_COVERED", "CANDIDATE_FIXTURE_STALE", "ROLE_TASK_SOURCE_UNRESOLVED", "ROLE_TASK_SIGNAL_EVIDENCE_INCOMPLETE"];
|
|
4
4
|
export type AgentReadinessDiagnosticCode = (typeof AGENT_READINESS_DIAGNOSTIC_CODES)[number];
|
|
5
5
|
export type EffectiveRiskLevel = 'L0' | 'L1' | 'L2' | 'L3' | 'L4';
|
|
6
6
|
export interface AgentReadinessDiagnosticV1 {
|
|
@@ -14,6 +14,7 @@ exports.AGENT_READINESS_DIAGNOSTIC_CODES = [
|
|
|
14
14
|
'AGENT_TOOL_RISK_UNRESOLVED',
|
|
15
15
|
'AGENT_TOOL_RISK_DECLARATION_RAISED',
|
|
16
16
|
'SUCCESS_METRIC_UNRESOLVED',
|
|
17
|
+
'SUCCESS_METRIC_UNBOUND',
|
|
17
18
|
'SUCCESS_EVALUATOR_UNAVAILABLE',
|
|
18
19
|
'CANDIDATE_COGNITION_NOT_COVERED',
|
|
19
20
|
'CANDIDATE_FIXTURE_STALE',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effective-agent-manifest.js","sourceRoot":"","sources":["../../src/employee-package/effective-agent-manifest.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"effective-agent-manifest.js","sourceRoot":"","sources":["../../src/employee-package/effective-agent-manifest.ts"],"names":[],"mappings":";;;AAuJA,oEAIC;AAED,wEAoDC;AAjND,8EAGmD;AAGtC,QAAA,uCAAuC,GAClD,uCAAgD,CAAC;AAEtC,QAAA,gCAAgC,GAAG;IAC9C,kCAAkC;IAClC,qCAAqC;IACrC,+BAA+B;IAC/B,qCAAqC;IACrC,+CAA+C;IAC/C,4BAA4B;IAC5B,oCAAoC;IACpC,2BAA2B;IAC3B,wBAAwB;IACxB,+BAA+B;IAC/B,iCAAiC;IACjC,yBAAyB;IACzB,6BAA6B;IAC7B,sCAAsC;CAC9B,CAAC;AA2HX,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAC1C,MAAM,WAAW,GAAG,IAAI,GAAG,CAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAChF,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS,wCAAgC,CAAC,CAAC;AAE3E,SAAgB,4BAA4B,CAC1C,QAAkD;IAEl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,32 @@
|
|
|
1
|
+
/** Immutable, opt-in business handoff contract. No industry or status vocabulary is built into runtime. */
|
|
2
|
+
export interface HandoffEvidencePolicy {
|
|
3
|
+
schemaVersion: 'handoff-evidence/v1';
|
|
4
|
+
requestTerms: string[];
|
|
5
|
+
historyRequestTerms: string[];
|
|
6
|
+
/** Frozen package-key bindings consumed by the handoff semantic reviewer. */
|
|
7
|
+
guardrailConstraints?: Array<{
|
|
8
|
+
key: string;
|
|
9
|
+
instructions: string[];
|
|
10
|
+
}>;
|
|
11
|
+
blockedTools?: Array<{
|
|
12
|
+
key: string;
|
|
13
|
+
toolNames: string[];
|
|
14
|
+
}>;
|
|
15
|
+
records: Array<{
|
|
16
|
+
objectApiName: string;
|
|
17
|
+
stateField: string;
|
|
18
|
+
excludedStates: string[];
|
|
19
|
+
fieldMeanings: Record<string, string>;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
export declare function assertHandoffEvidencePolicy(value: unknown): asserts value is HandoffEvidencePolicy;
|
|
23
|
+
export declare function isHandoffReview(value: unknown): value is string[];
|
|
24
|
+
/** Closed, registered condition vocabulary; unsupported historical DSL fails closed. */
|
|
25
|
+
export declare function isSupportedHandoffGuardrailConditions(value: unknown): boolean;
|
|
26
|
+
/** Single portable-package projection, shared by install and release replay. */
|
|
27
|
+
export declare function bindHandoffGuardrailPolicy(policy: HandoffEvidencePolicy | undefined, keys?: readonly string[], rules?: ReadonlyArray<{
|
|
28
|
+
key: string;
|
|
29
|
+
conditions: Record<string, unknown>;
|
|
30
|
+
riskLevel?: string;
|
|
31
|
+
isActive?: boolean;
|
|
32
|
+
}>): HandoffEvidencePolicy | undefined;
|