@nexusclawhq/cli 0.2.1
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 +11 -0
- package/README.md +13 -0
- package/dist/build-info.json +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/capability-extractor.d.ts +38 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/capability-extractor.js +323 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/capability-extractor.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/code-static-analysis.d.ts +6 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/code-static-analysis.js +225 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/analysis/code-static-analysis.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/checksums.d.ts +64 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/checksums.js +72 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/checksums.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/code-action-compiler.d.ts +38 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/code-action-compiler.js +369 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/code-action-compiler.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/schema-to-typescript.d.ts +5 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/schema-to-typescript.js +127 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/compiler/schema-to-typescript.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/index.d.ts +109 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/index.js +39 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/archive-safety.d.ts +31 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/archive-safety.js +119 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/archive-safety.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/canonical-zip.d.ts +46 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/canonical-zip.js +314 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/canonical-zip.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/manifest-inventory.d.ts +49 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/manifest-inventory.js +95 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/manifest-inventory.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/workforce-bundle-inventory.d.ts +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/workforce-bundle-inventory.js +196 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/package/workforce-bundle-inventory.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/runtime/local-runner-lock.d.ts +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/runtime/local-runner-lock.js +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/runtime/local-runner-lock.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/schema/code-schema-loader.d.ts +52 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/schema/code-schema-loader.js +189 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/dist/schema/code-schema-loader.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/package.json +16 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/code-authoring/src/runtime/local-runner.lock.json +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-avatars/presets.d.ts +17 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-avatars/presets.js +55 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-avatars/presets.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context-signing.d.ts +35 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context-signing.js +243 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context-signing.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.d.ts +232 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.js +160 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/candidate-execution-workspace-admin.types.d.ts +71 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/candidate-execution-workspace-admin.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/candidate-execution-workspace-admin.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/canonical-hash.d.ts +124 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/canonical-hash.js +366 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/canonical-hash.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/cli-contract.types.d.ts +140 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/cli-contract.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/cli-contract.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-action.types.d.ts +278 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-action.types.js +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-action.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-extension-manifest.types.d.ts +65 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-extension-manifest.types.js +35 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/code-extension-manifest.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-schemas.d.ts +77 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-schemas.js +387 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.d.ts +125 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js +137 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/error-catalog.d.ts +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/error-catalog.js +295 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/error-catalog.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/executable-package-validation.types.d.ts +134 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/executable-package-validation.types.js +65 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/executable-package-validation.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-payload-v2.types.d.ts +105 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-payload-v2.types.js +17 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-payload-v2.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-v2-canonical.d.ts +33 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-v2-canonical.js +175 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/flow-v2-canonical.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.d.ts +28 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js +100 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/json-value.d.ts +48 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/json-value.js +108 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/json-value.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.d.ts +34 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js +135 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.d.ts +232 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-bundle.types.d.ts +98 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-bundle.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-bundle.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-lock.types.d.ts +96 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-lock.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-lock.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-events.types.d.ts +28 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-events.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-events.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-gate-receipt.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-gate-receipt.js +26 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-release-gate-receipt.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-markdown-policy/index.d.ts +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-markdown-policy/index.js +66 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-markdown-policy/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.d.ts +38 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.js +502 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.d.ts +173 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.d.ts +4 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.js +53 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.d.ts +37 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.d.ts +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.js +42 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.d.ts +12 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.js +161 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.d.ts +44 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.d.ts +5 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.js +81 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.d.ts +61 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.d.ts +15 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.js +32 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.d.ts +9 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.js +170 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.d.ts +98 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.d.ts +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.js +157 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.d.ts +47 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.d.ts +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.js +177 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.d.ts +66 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.d.ts +53 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.js +42 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.d.ts +743 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.js +1261 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +208 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +26 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.d.ts +13 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js +257 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +12 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +31 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +20892 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +21538 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/flatten.d.ts +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/flatten.js +24 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/flatten.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +41790 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.js +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +20892 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +21538 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-release-governance/index.d.ts +71 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-release-governance/index.js +13 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-release-governance/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.d.ts +91 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js +331 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/index.js +18 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/page-source-file.d.ts +73 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/page-source-file.js +266 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/source-format/page-source-file.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +55 -0
- package/dist/nexus-cli/src/cli.d.ts +3 -0
- package/dist/nexus-cli/src/cli.js +120 -0
- package/dist/nexus-cli/src/cli.js.map +1 -0
- package/dist/nexus-cli/src/cli.test.d.ts +1 -0
- package/dist/nexus-cli/src/cli.test.js +69 -0
- package/dist/nexus-cli/src/cli.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/context-export.d.ts +22 -0
- package/dist/nexus-cli/src/commands/ai/context-export.js +309 -0
- package/dist/nexus-cli/src/commands/ai/context-export.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/context-export.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/ai/context-export.test.js +146 -0
- package/dist/nexus-cli/src/commands/ai/context-export.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/context-v2.d.ts +19 -0
- package/dist/nexus-cli/src/commands/ai/context-v2.js +115 -0
- package/dist/nexus-cli/src/commands/ai/context-v2.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/help.d.ts +14 -0
- package/dist/nexus-cli/src/commands/ai/help.js +129 -0
- package/dist/nexus-cli/src/commands/ai/help.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/help.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/ai/help.test.js +114 -0
- package/dist/nexus-cli/src/commands/ai/help.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/ai/index.js +21 -0
- package/dist/nexus-cli/src/commands/ai/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/changeset/index.d.ts +6 -0
- package/dist/nexus-cli/src/commands/changeset/index.js +250 -0
- package/dist/nexus-cli/src/commands/changeset/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/changeset/index.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/changeset/index.test.js +68 -0
- package/dist/nexus-cli/src/commands/changeset/index.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/commands.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/commands.test.js +106 -0
- package/dist/nexus-cli/src/commands/commands.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/activate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/activate.js +49 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/activate.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/create.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/create.js +70 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/create.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/deactivate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/deactivate.js +49 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/deactivate.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/get.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/get.js +60 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/get.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/index.js +21 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/list.js +56 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/validate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/validate.js +52 -0
- package/dist/nexus-cli/src/commands/customer-entitlement/validate.js.map +1 -0
- package/dist/nexus-cli/src/commands/data/delete-bulk.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/delete-bulk.js +24 -0
- package/dist/nexus-cli/src/commands/data/delete-bulk.js.map +1 -0
- package/dist/nexus-cli/src/commands/data/export-tree.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/export-tree.js +71 -0
- package/dist/nexus-cli/src/commands/data/export-tree.js.map +1 -0
- package/dist/nexus-cli/src/commands/data/import-tree.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/import-tree.js +68 -0
- package/dist/nexus-cli/src/commands/data/import-tree.js.map +1 -0
- package/dist/nexus-cli/src/commands/data/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/index.js +17 -0
- package/dist/nexus-cli/src/commands/data/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/data/query.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/query.js +49 -0
- package/dist/nexus-cli/src/commands/data/query.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/employee-report.d.ts +2 -0
- package/dist/nexus-cli/src/commands/deployment/employee-report.js +82 -0
- package/dist/nexus-cli/src/commands/deployment/employee-report.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/deployment/index.js +86 -0
- package/dist/nexus-cli/src/commands/deployment/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/quick.d.ts +2 -0
- package/dist/nexus-cli/src/commands/deployment/quick.js +53 -0
- package/dist/nexus-cli/src/commands/deployment/quick.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/report.d.ts +2 -0
- package/dist/nexus-cli/src/commands/deployment/report.js +142 -0
- package/dist/nexus-cli/src/commands/deployment/report.js.map +1 -0
- package/dist/nexus-cli/src/commands/deployment/resume.d.ts +2 -0
- package/dist/nexus-cli/src/commands/deployment/resume.js +119 -0
- package/dist/nexus-cli/src/commands/deployment/resume.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx-pages.d.ts +18 -0
- package/dist/nexus-cli/src/commands/dx-pages.js +213 -0
- package/dist/nexus-cli/src/commands/dx-pages.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx-release-boundary.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/dx-release-boundary.e2e.test.js +624 -0
- package/dist/nexus-cli/src/commands/dx-release-boundary.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js +659 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx.d.ts +17 -0
- package/dist/nexus-cli/src/commands/dx.js +857 -0
- package/dist/nexus-cli/src/commands/dx.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/bundle.d.ts +16 -0
- package/dist/nexus-cli/src/commands/employee/bundle.js +213 -0
- package/dist/nexus-cli/src/commands/employee/bundle.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/code.d.ts +2 -0
- package/dist/nexus-cli/src/commands/employee/code.js +119 -0
- package/dist/nexus-cli/src/commands/employee/code.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/deploy.d.ts +2 -0
- package/dist/nexus-cli/src/commands/employee/deploy.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/employee/deploy.e2e.test.js +199 -0
- package/dist/nexus-cli/src/commands/employee/deploy.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/deploy.js +97 -0
- package/dist/nexus-cli/src/commands/employee/deploy.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/flow.d.ts +2 -0
- package/dist/nexus-cli/src/commands/employee/flow.js +96 -0
- package/dist/nexus-cli/src/commands/employee/flow.js.map +1 -0
- package/dist/nexus-cli/src/commands/employee/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/employee/index.js +17 -0
- package/dist/nexus-cli/src/commands/employee/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/entitlement/grant.d.ts +2 -0
- package/dist/nexus-cli/src/commands/entitlement/grant.js +41 -0
- package/dist/nexus-cli/src/commands/entitlement/grant.js.map +1 -0
- package/dist/nexus-cli/src/commands/entitlement/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/entitlement/index.js +15 -0
- package/dist/nexus-cli/src/commands/entitlement/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/entitlement/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/entitlement/list.js +34 -0
- package/dist/nexus-cli/src/commands/entitlement/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/entitlement/revoke.d.ts +2 -0
- package/dist/nexus-cli/src/commands/entitlement/revoke.js +36 -0
- package/dist/nexus-cli/src/commands/entitlement/revoke.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/class.d.ts +2 -0
- package/dist/nexus-cli/src/commands/generate/class.js +64 -0
- package/dist/nexus-cli/src/commands/generate/class.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/component.d.ts +2 -0
- package/dist/nexus-cli/src/commands/generate/component.js +67 -0
- package/dist/nexus-cli/src/commands/generate/component.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/generate/index.js +20 -0
- package/dist/nexus-cli/src/commands/generate/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/project.d.ts +25 -0
- package/dist/nexus-cli/src/commands/generate/project.js +574 -0
- package/dist/nexus-cli/src/commands/generate/project.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/project.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/generate/project.test.js +214 -0
- package/dist/nexus-cli/src/commands/generate/project.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/test.d.ts +2 -0
- package/dist/nexus-cli/src/commands/generate/test.js +61 -0
- package/dist/nexus-cli/src/commands/generate/test.js.map +1 -0
- package/dist/nexus-cli/src/commands/generate/trigger.d.ts +2 -0
- package/dist/nexus-cli/src/commands/generate/trigger.js +67 -0
- package/dist/nexus-cli/src/commands/generate/trigger.js.map +1 -0
- package/dist/nexus-cli/src/commands/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/index.js +23 -0
- package/dist/nexus-cli/src/commands/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/install-contract/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/install-contract/index.js +146 -0
- package/dist/nexus-cli/src/commands/install-contract/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/log/get.d.ts +2 -0
- package/dist/nexus-cli/src/commands/log/get.js +20 -0
- package/dist/nexus-cli/src/commands/log/get.js.map +1 -0
- package/dist/nexus-cli/src/commands/log/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/log/index.js +15 -0
- package/dist/nexus-cli/src/commands/log/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/log/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/log/list.js +34 -0
- package/dist/nexus-cli/src/commands/log/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/log/tail.d.ts +3 -0
- package/dist/nexus-cli/src/commands/log/tail.js +91 -0
- package/dist/nexus-cli/src/commands/log/tail.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/deploy.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/deploy.js +117 -0
- package/dist/nexus-cli/src/commands/metadata/deploy.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/diff.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/diff.js +41 -0
- package/dist/nexus-cli/src/commands/metadata/diff.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/export.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/export.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/metadata/export.e2e.test.js +105 -0
- package/dist/nexus-cli/src/commands/metadata/export.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/export.js +65 -0
- package/dist/nexus-cli/src/commands/metadata/export.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/import.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/import.js +47 -0
- package/dist/nexus-cli/src/commands/metadata/import.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/retrieve.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/retrieve.js +57 -0
- package/dist/nexus-cli/src/commands/metadata/retrieve.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.js +38 -0
- package/dist/nexus-cli/src/commands/metadata/validate-source.js.map +1 -0
- package/dist/nexus-cli/src/commands/metadata/validate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/metadata/validate.js +61 -0
- package/dist/nexus-cli/src/commands/metadata/validate.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/default-set.d.ts +2 -0
- package/dist/nexus-cli/src/commands/org/default-set.js +19 -0
- package/dist/nexus-cli/src/commands/org/default-set.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/display.d.ts +2 -0
- package/dist/nexus-cli/src/commands/org/display.js +48 -0
- package/dist/nexus-cli/src/commands/org/display.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/org/index.js +23 -0
- package/dist/nexus-cli/src/commands/org/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/org/list.js +45 -0
- package/dist/nexus-cli/src/commands/org/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.d.ts +25 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.js +82 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.test.js +45 -0
- package/dist/nexus-cli/src/commands/org/login-jwt.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/login-web.d.ts +9 -0
- package/dist/nexus-cli/src/commands/org/login-web.js +419 -0
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/login-web.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/org/login-web.test.js +66 -0
- package/dist/nexus-cli/src/commands/org/login-web.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/logout.d.ts +2 -0
- package/dist/nexus-cli/src/commands/org/logout.js +26 -0
- package/dist/nexus-cli/src/commands/org/logout.js.map +1 -0
- package/dist/nexus-cli/src/commands/org/open.d.ts +3 -0
- package/dist/nexus-cli/src/commands/org/open.js +73 -0
- package/dist/nexus-cli/src/commands/org/open.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/deprecate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/deprecate.js +68 -0
- package/dist/nexus-cli/src/commands/package/deprecate.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/format.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/format.js +30 -0
- package/dist/nexus-cli/src/commands/package/format.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/helpers.d.ts +33 -0
- package/dist/nexus-cli/src/commands/package/helpers.js +118 -0
- package/dist/nexus-cli/src/commands/package/helpers.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/history.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/history.js +43 -0
- package/dist/nexus-cli/src/commands/package/history.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/index.js +51 -0
- package/dist/nexus-cli/src/commands/package/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/info.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/info.js +67 -0
- package/dist/nexus-cli/src/commands/package/info.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/install.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/install.js +180 -0
- package/dist/nexus-cli/src/commands/package/install.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/list.js +81 -0
- package/dist/nexus-cli/src/commands/package/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/pack.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/pack.js +83 -0
- package/dist/nexus-cli/src/commands/package/pack.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/package-governance.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/package/package-governance.e2e.test.js +205 -0
- package/dist/nexus-cli/src/commands/package/package-governance.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/package-lifecycle.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/package/package-lifecycle.e2e.test.js +386 -0
- package/dist/nexus-cli/src/commands/package/package-lifecycle.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/package-payload.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/package/package-payload.e2e.test.js +126 -0
- package/dist/nexus-cli/src/commands/package/package-payload.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/package-query-json.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/package/package-query-json.e2e.test.js +84 -0
- package/dist/nexus-cli/src/commands/package/package-query-json.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/plan.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/plan.js +51 -0
- package/dist/nexus-cli/src/commands/package/plan.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/promote.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/promote.js +59 -0
- package/dist/nexus-cli/src/commands/package/promote.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/promotion-history.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/promotion-history.js +39 -0
- package/dist/nexus-cli/src/commands/package/promotion-history.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/publish.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/publish.js +57 -0
- package/dist/nexus-cli/src/commands/package/publish.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/rollback.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/rollback.js +137 -0
- package/dist/nexus-cli/src/commands/package/rollback.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/rollout-status.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/rollout-status.js +27 -0
- package/dist/nexus-cli/src/commands/package/rollout-status.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/rollout-update.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/rollout-update.js +43 -0
- package/dist/nexus-cli/src/commands/package/rollout-update.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/rollout-workspaces.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/rollout-workspaces.js +33 -0
- package/dist/nexus-cli/src/commands/package/rollout-workspaces.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/search.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/search.js +44 -0
- package/dist/nexus-cli/src/commands/package/search.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/uninstall.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/uninstall.js +53 -0
- package/dist/nexus-cli/src/commands/package/uninstall.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/upgrade.d.ts +3 -0
- package/dist/nexus-cli/src/commands/package/upgrade.js +160 -0
- package/dist/nexus-cli/src/commands/package/upgrade.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/validate.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/validate.js +130 -0
- package/dist/nexus-cli/src/commands/package/validate.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/versions.d.ts +2 -0
- package/dist/nexus-cli/src/commands/package/versions.js +38 -0
- package/dist/nexus-cli/src/commands/package/versions.js.map +1 -0
- package/dist/nexus-cli/src/commands/preflight/get.d.ts +2 -0
- package/dist/nexus-cli/src/commands/preflight/get.js +54 -0
- package/dist/nexus-cli/src/commands/preflight/get.js.map +1 -0
- package/dist/nexus-cli/src/commands/preflight/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/preflight/index.js +13 -0
- package/dist/nexus-cli/src/commands/preflight/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/preflight/run.d.ts +2 -0
- package/dist/nexus-cli/src/commands/preflight/run.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/preflight/run.e2e.test.js +159 -0
- package/dist/nexus-cli/src/commands/preflight/run.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/preflight/run.js +81 -0
- package/dist/nexus-cli/src/commands/preflight/run.js.map +1 -0
- package/dist/nexus-cli/src/commands/project/convert.d.ts +2 -0
- package/dist/nexus-cli/src/commands/project/convert.js +323 -0
- package/dist/nexus-cli/src/commands/project/convert.js.map +1 -0
- package/dist/nexus-cli/src/commands/project/deploy-start.d.ts +2 -0
- package/dist/nexus-cli/src/commands/project/deploy-start.js +164 -0
- package/dist/nexus-cli/src/commands/project/deploy-start.js.map +1 -0
- package/dist/nexus-cli/src/commands/project/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/project/index.js +47 -0
- package/dist/nexus-cli/src/commands/project/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/baseline.d.ts +4 -0
- package/dist/nexus-cli/src/commands/revision/baseline.js +44 -0
- package/dist/nexus-cli/src/commands/revision/baseline.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/diff.d.ts +2 -0
- package/dist/nexus-cli/src/commands/revision/diff.js +33 -0
- package/dist/nexus-cli/src/commands/revision/diff.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/history.d.ts +2 -0
- package/dist/nexus-cli/src/commands/revision/history.js +52 -0
- package/dist/nexus-cli/src/commands/revision/history.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/revision/index.js +17 -0
- package/dist/nexus-cli/src/commands/revision/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/revision.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/revision/revision.e2e.test.js +135 -0
- package/dist/nexus-cli/src/commands/revision/revision.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/revision/rollback.d.ts +2 -0
- package/dist/nexus-cli/src/commands/revision/rollback.js +26 -0
- package/dist/nexus-cli/src/commands/revision/rollback.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/create.d.ts +2 -0
- package/dist/nexus-cli/src/commands/sandbox/create.js +25 -0
- package/dist/nexus-cli/src/commands/sandbox/create.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/delete.d.ts +2 -0
- package/dist/nexus-cli/src/commands/sandbox/delete.js +24 -0
- package/dist/nexus-cli/src/commands/sandbox/delete.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/sandbox/index.js +17 -0
- package/dist/nexus-cli/src/commands/sandbox/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/list.d.ts +2 -0
- package/dist/nexus-cli/src/commands/sandbox/list.js +30 -0
- package/dist/nexus-cli/src/commands/sandbox/list.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.d.ts +2 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.e2e.test.js +120 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.js +69 -0
- package/dist/nexus-cli/src/commands/sandbox/promote.js.map +1 -0
- package/dist/nexus-cli/src/commands/script/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/script/index.js +11 -0
- package/dist/nexus-cli/src/commands/script/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/script/run.d.ts +2 -0
- package/dist/nexus-cli/src/commands/script/run.js +78 -0
- package/dist/nexus-cli/src/commands/script/run.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/dx-pull-pages.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/source/dx-pull-pages.e2e.test.js +336 -0
- package/dist/nexus-cli/src/commands/source/dx-pull-pages.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/get.d.ts +2 -0
- package/dist/nexus-cli/src/commands/source/get.js +34 -0
- package/dist/nexus-cli/src/commands/source/get.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/source/index.js +17 -0
- package/dist/nexus-cli/src/commands/source/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/pull.d.ts +2 -0
- package/dist/nexus-cli/src/commands/source/pull.js +167 -0
- package/dist/nexus-cli/src/commands/source/pull.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/push.d.ts +2 -0
- package/dist/nexus-cli/src/commands/source/push.js +172 -0
- package/dist/nexus-cli/src/commands/source/push.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/source-page-diff.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/source/source-page-diff.e2e.test.js +318 -0
- package/dist/nexus-cli/src/commands/source/source-page-diff.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/source-sync.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/source/source-sync.e2e.test.js +274 -0
- package/dist/nexus-cli/src/commands/source/source-sync.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/source/status.d.ts +2 -0
- package/dist/nexus-cli/src/commands/source/status.js +132 -0
- package/dist/nexus-cli/src/commands/source/status.js.map +1 -0
- package/dist/nexus-cli/src/commands/test/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/test/index.js +13 -0
- package/dist/nexus-cli/src/commands/test/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/test/report.d.ts +2 -0
- package/dist/nexus-cli/src/commands/test/report.js +38 -0
- package/dist/nexus-cli/src/commands/test/report.js.map +1 -0
- package/dist/nexus-cli/src/commands/test/run.d.ts +2 -0
- package/dist/nexus-cli/src/commands/test/run.js +49 -0
- package/dist/nexus-cli/src/commands/test/run.js.map +1 -0
- package/dist/nexus-cli/src/commands/validate/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/validate/index.js +55 -0
- package/dist/nexus-cli/src/commands/validate/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/workspace/index.d.ts +2 -0
- package/dist/nexus-cli/src/commands/workspace/index.js +412 -0
- package/dist/nexus-cli/src/commands/workspace/index.js.map +1 -0
- package/dist/nexus-cli/src/commands/workspace/workspace.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/workspace/workspace.e2e.test.js +320 -0
- package/dist/nexus-cli/src/commands/workspace/workspace.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/config/metadata-type-map.json +12 -0
- package/dist/nexus-cli/src/contracts/argv-predicate.d.ts +17 -0
- package/dist/nexus-cli/src/contracts/argv-predicate.js +88 -0
- package/dist/nexus-cli/src/contracts/argv-predicate.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-contract.d.ts +15 -0
- package/dist/nexus-cli/src/contracts/command-contract.exporter.d.ts +7 -0
- package/dist/nexus-cli/src/contracts/command-contract.exporter.js +24 -0
- package/dist/nexus-cli/src/contracts/command-contract.exporter.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-contract.guard.d.ts +5 -0
- package/dist/nexus-cli/src/contracts/command-contract.guard.js +149 -0
- package/dist/nexus-cli/src/contracts/command-contract.guard.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-contract.js +39 -0
- package/dist/nexus-cli/src/contracts/command-contract.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-contract.registry.d.ts +16 -0
- package/dist/nexus-cli/src/contracts/command-contract.registry.js +542 -0
- package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-order.d.ts +23 -0
- package/dist/nexus-cli/src/contracts/command-order.js +151 -0
- package/dist/nexus-cli/src/contracts/command-order.js.map +1 -0
- package/dist/nexus-cli/src/contracts/contracts.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/contracts.test.js +301 -0
- package/dist/nexus-cli/src/contracts/contracts.test.js.map +1 -0
- package/dist/nexus-cli/src/contracts/exit-codes.d.ts +3 -0
- package/dist/nexus-cli/src/contracts/exit-codes.js +7 -0
- package/dist/nexus-cli/src/contracts/exit-codes.js.map +1 -0
- package/dist/nexus-cli/src/contracts/index.d.ts +8 -0
- package/dist/nexus-cli/src/contracts/index.js +35 -0
- package/dist/nexus-cli/src/contracts/index.js.map +1 -0
- package/dist/nexus-cli/src/contracts/machine-result.d.ts +21 -0
- package/dist/nexus-cli/src/contracts/machine-result.js +95 -0
- package/dist/nexus-cli/src/contracts/machine-result.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.d.ts +30 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.js +386 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js +171 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-context-managed-install.d.ts +16 -0
- package/dist/nexus-cli/src/services/ai-context-managed-install.js +79 -0
- package/dist/nexus-cli/src/services/ai-context-managed-install.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-context-pack.d.ts +33 -0
- package/dist/nexus-cli/src/services/ai-context-pack.js +72 -0
- package/dist/nexus-cli/src/services/ai-context-pack.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-context-pack.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/ai-context-pack.test.js +102 -0
- package/dist/nexus-cli/src/services/ai-context-pack.test.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.d.ts +17 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js +160 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js.map +1 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.test.js +114 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.test.js.map +1 -0
- package/dist/nexus-cli/src/services/api-client.d.ts +1097 -0
- package/dist/nexus-cli/src/services/api-client.js +1352 -0
- package/dist/nexus-cli/src/services/api-client.js.map +1 -0
- package/dist/nexus-cli/src/services/api-client.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/api-client.test.js +669 -0
- package/dist/nexus-cli/src/services/api-client.test.js.map +1 -0
- package/dist/nexus-cli/src/services/auth-store.d.ts +19 -0
- package/dist/nexus-cli/src/services/auth-store.js +146 -0
- package/dist/nexus-cli/src/services/auth-store.js.map +1 -0
- package/dist/nexus-cli/src/services/auth-store.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/auth-store.test.js +104 -0
- package/dist/nexus-cli/src/services/auth-store.test.js.map +1 -0
- package/dist/nexus-cli/src/services/code-authoring-local.d.ts +65 -0
- package/dist/nexus-cli/src/services/code-authoring-local.js +403 -0
- package/dist/nexus-cli/src/services/code-authoring-local.js.map +1 -0
- package/dist/nexus-cli/src/services/code-authoring-local.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/code-authoring-local.test.js +129 -0
- package/dist/nexus-cli/src/services/code-authoring-local.test.js.map +1 -0
- package/dist/nexus-cli/src/services/code-extension-governance.d.ts +4 -0
- package/dist/nexus-cli/src/services/code-extension-governance.js +217 -0
- package/dist/nexus-cli/src/services/code-extension-governance.js.map +1 -0
- package/dist/nexus-cli/src/services/config.d.ts +23 -0
- package/dist/nexus-cli/src/services/config.js +109 -0
- package/dist/nexus-cli/src/services/config.js.map +1 -0
- package/dist/nexus-cli/src/services/config.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/config.test.js +120 -0
- package/dist/nexus-cli/src/services/config.test.js.map +1 -0
- package/dist/nexus-cli/src/services/core-version.d.ts +14 -0
- package/dist/nexus-cli/src/services/core-version.js +149 -0
- package/dist/nexus-cli/src/services/core-version.js.map +1 -0
- package/dist/nexus-cli/src/services/executable-workforce-future-api.types.d.ts +22 -0
- package/dist/nexus-cli/src/services/executable-workforce-future-api.types.js +3 -0
- package/dist/nexus-cli/src/services/executable-workforce-future-api.types.js.map +1 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.d.ts +46 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.js +116 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.js.map +1 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.test.js +51 -0
- package/dist/nexus-cli/src/services/flow-authoring-local.test.js.map +1 -0
- package/dist/nexus-cli/src/services/json-diff.d.ts +8 -0
- package/dist/nexus-cli/src/services/json-diff.js +66 -0
- package/dist/nexus-cli/src/services/json-diff.js.map +1 -0
- package/dist/nexus-cli/src/services/manifest-parser.d.ts +10 -0
- package/dist/nexus-cli/src/services/manifest-parser.js +82 -0
- package/dist/nexus-cli/src/services/manifest-parser.js.map +1 -0
- package/dist/nexus-cli/src/services/pack-registry.d.ts +55 -0
- package/dist/nexus-cli/src/services/pack-registry.js +450 -0
- package/dist/nexus-cli/src/services/pack-registry.js.map +1 -0
- package/dist/nexus-cli/src/services/pack-registry.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/pack-registry.test.js +108 -0
- package/dist/nexus-cli/src/services/pack-registry.test.js.map +1 -0
- package/dist/nexus-cli/src/services/package-manifest.d.ts +14 -0
- package/dist/nexus-cli/src/services/package-manifest.js +313 -0
- package/dist/nexus-cli/src/services/package-manifest.js.map +1 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.d.ts +7 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.js +126 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.js.map +1 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.test.js +133 -0
- package/dist/nexus-cli/src/services/package-pack-inventory.test.js.map +1 -0
- package/dist/nexus-cli/src/services/package-self-containment.d.ts +47 -0
- package/dist/nexus-cli/src/services/package-self-containment.js +223 -0
- package/dist/nexus-cli/src/services/package-self-containment.js.map +1 -0
- package/dist/nexus-cli/src/services/page-source-file.d.ts +14 -0
- package/dist/nexus-cli/src/services/page-source-file.js +114 -0
- package/dist/nexus-cli/src/services/page-source-file.js.map +1 -0
- package/dist/nexus-cli/src/services/page-source-file.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/page-source-file.test.js +154 -0
- package/dist/nexus-cli/src/services/page-source-file.test.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.d.ts +8 -0
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js +65 -0
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.d.ts +7 -0
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js +14 -0
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/index.d.ts +13 -0
- package/dist/nexus-cli/src/services/revision-ledger/index.js +30 -0
- package/dist/nexus-cli/src/services/revision-ledger/index.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/initialize.d.ts +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/initialize.js +23 -0
- package/dist/nexus-cli/src/services/revision-ledger/initialize.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.d.ts +14 -0
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js +91 -0
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.d.ts +8 -0
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js +115 -0
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.d.ts +10 -0
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js +36 -0
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/query-api.d.ts +4 -0
- package/dist/nexus-cli/src/services/revision-ledger/query-api.js +11 -0
- package/dist/nexus-cli/src/services/revision-ledger/query-api.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-ledger.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-ledger.test.js +384 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-ledger.test.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.d.ts +44 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js +189 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.d.ts +15 -0
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js +146 -0
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/source-tracking-bridge.d.ts +3 -0
- package/dist/nexus-cli/src/services/revision-ledger/source-tracking-bridge.js +22 -0
- package/dist/nexus-cli/src/services/revision-ledger/source-tracking-bridge.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/state-helpers.d.ts +23 -0
- package/dist/nexus-cli/src/services/revision-ledger/state-helpers.js +357 -0
- package/dist/nexus-cli/src/services/revision-ledger/state-helpers.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/types.d.ts +178 -0
- package/dist/nexus-cli/src/services/revision-ledger/types.js +3 -0
- package/dist/nexus-cli/src/services/revision-ledger/types.js.map +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/utils.d.ts +5 -0
- package/dist/nexus-cli/src/services/revision-ledger/utils.js +61 -0
- package/dist/nexus-cli/src/services/revision-ledger/utils.js.map +1 -0
- package/dist/nexus-cli/src/services/source-tracker.d.ts +71 -0
- package/dist/nexus-cli/src/services/source-tracker.js +709 -0
- package/dist/nexus-cli/src/services/source-tracker.js.map +1 -0
- package/dist/nexus-cli/src/services/source-tracker.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/source-tracker.test.js +362 -0
- package/dist/nexus-cli/src/services/source-tracker.test.js.map +1 -0
- package/dist/nexus-cli/src/services/sse-client.d.ts +13 -0
- package/dist/nexus-cli/src/services/sse-client.js +107 -0
- package/dist/nexus-cli/src/services/sse-client.js.map +1 -0
- package/dist/nexus-cli/src/services/target-context.d.ts +31 -0
- package/dist/nexus-cli/src/services/target-context.js +91 -0
- package/dist/nexus-cli/src/services/target-context.js.map +1 -0
- package/dist/nexus-cli/src/services/target-context.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/target-context.test.js +93 -0
- package/dist/nexus-cli/src/services/target-context.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.d.ts +12 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.js +102 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.test.js +54 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.d.ts +26 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.js +250 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.test.js +100 -0
- package/dist/nexus-cli/src/services/workforce-bundle-local.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +63 -0
- package/dist/nexus-cli/src/services/workforce-bundle-remote.js +138 -0
- package/dist/nexus-cli/src/services/workforce-bundle-remote.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.d.ts +60 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.e2e.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.e2e.test.js +266 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.e2e.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js +156 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js.map +1 -0
- package/dist/nexus-cli/src/services/workspace-contract.d.ts +140 -0
- package/dist/nexus-cli/src/services/workspace-contract.js +744 -0
- package/dist/nexus-cli/src/services/workspace-contract.js.map +1 -0
- package/dist/nexus-cli/src/services/workspace-contract.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workspace-contract.test.js +404 -0
- package/dist/nexus-cli/src/services/workspace-contract.test.js.map +1 -0
- package/dist/nexus-cli/src/services/workspace-dx.d.ts +31 -0
- package/dist/nexus-cli/src/services/workspace-dx.js +168 -0
- package/dist/nexus-cli/src/services/workspace-dx.js.map +1 -0
- package/dist/nexus-cli/src/services/workspace-health.d.ts +140 -0
- package/dist/nexus-cli/src/services/workspace-health.js +548 -0
- package/dist/nexus-cli/src/services/workspace-health.js.map +1 -0
- package/dist/nexus-cli/src/services/workspace-health.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/workspace-health.test.js +808 -0
- package/dist/nexus-cli/src/services/workspace-health.test.js.map +1 -0
- package/dist/nexus-cli/src/templates/class.ts.tpl +15 -0
- package/dist/nexus-cli/src/templates/component.ts.tpl +28 -0
- package/dist/nexus-cli/src/templates/project/nexus-project.json.tpl +6 -0
- package/dist/nexus-cli/src/templates/project/package.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/template-manifest.json +59 -0
- package/dist/nexus-cli/src/templates/project/templates/base-crm/README.md.tpl +41 -0
- package/dist/nexus-cli/src/templates/project/templates/base-crm/nexus-project.json.tpl +35 -0
- package/dist/nexus-cli/src/templates/project/templates/base-crm/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/base-crm/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/README.md.tpl +47 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/nexus-project.json.tpl +39 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/scenario-payload/approvals.yaml +80 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/scenario-payload/flows.yaml +77 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/scenario-payload/records.yaml +2109 -0
- package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/README.md.tpl +45 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/deploy-artifacts/drill-code-extension-page.deploy.json +190 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/deploy-artifacts/runtime-account-data-page.png +0 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/deploy-artifacts/runtime-nav-page-formal.png +0 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/deploy-artifacts/runtime-nav-page.png +0 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/deploy-artifacts/runtime-page.png +0 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/env/drill.sandbox.yaml +4 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-project.json.tpl +25 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/package.json.tpl +26 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/preview/drill-code-extension-page.html +31 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/build-component.mjs +12 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/deploy-drill.mjs +341 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/src/components/drill-code-extension-page/index.js +70 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/src/metadata/drill-code-extension-page.manifest.json +63 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/src/tests/drill-code-extension-page.assertions.json +13 -0
- package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/empty/README.md.tpl +40 -0
- package/dist/nexus-cli/src/templates/project/templates/empty/nexus-project.json.tpl +32 -0
- package/dist/nexus-cli/src/templates/project/templates/empty/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/empty/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-education/README.md.tpl +36 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-education/nexus-project.json.tpl +37 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-education/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-education/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/README.md.tpl +36 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/nexus-project.json.tpl +37 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-finance/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/README.md.tpl +36 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/nexus-project.json.tpl +37 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/README.md.tpl +42 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/nexus-project.json.tpl +36 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/README.md.tpl +36 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/nexus-project.json.tpl +37 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/package.json.tpl +24 -0
- package/dist/nexus-cli/src/templates/project/templates/industry-retail/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/project/tsconfig.json.tpl +15 -0
- package/dist/nexus-cli/src/templates/test.ts.tpl +24 -0
- package/dist/nexus-cli/src/templates/trigger.ts.tpl +26 -0
- package/dist/nexus-cli/src/test-discovery.guard.test.d.ts +1 -0
- package/dist/nexus-cli/src/test-discovery.guard.test.js +83 -0
- package/dist/nexus-cli/src/test-discovery.guard.test.js.map +1 -0
- package/dist/nexus-cli/src/test-utils/target-context-fixture.d.ts +10 -0
- package/dist/nexus-cli/src/test-utils/target-context-fixture.js +49 -0
- package/dist/nexus-cli/src/test-utils/target-context-fixture.js.map +1 -0
- package/dist/nexus-cli/src/tests/revision-ledger/properties/generators.d.ts +8 -0
- package/dist/nexus-cli/src/tests/revision-ledger/properties/generators.js +85 -0
- package/dist/nexus-cli/src/tests/revision-ledger/properties/generators.js.map +1 -0
- package/dist/nexus-cli/src/utils/error-handler.d.ts +8 -0
- package/dist/nexus-cli/src/utils/error-handler.js +57 -0
- package/dist/nexus-cli/src/utils/error-handler.js.map +1 -0
- package/dist/nexus-cli/src/utils/logger.d.ts +6 -0
- package/dist/nexus-cli/src/utils/logger.js +14 -0
- package/dist/nexus-cli/src/utils/logger.js.map +1 -0
- package/dist/nexus-cli/src/utils/spinner.d.ts +2 -0
- package/dist/nexus-cli/src/utils/spinner.js +11 -0
- package/dist/nexus-cli/src/utils/spinner.js.map +1 -0
- package/dist/nexus-cli/src/utils/structured-error.d.ts +16 -0
- package/dist/nexus-cli/src/utils/structured-error.js +57 -0
- package/dist/nexus-cli/src/utils/structured-error.js.map +1 -0
- package/dist/nexus-cli/src/utils/table-formatter.d.ts +7 -0
- package/dist/nexus-cli/src/utils/table-formatter.js +31 -0
- package/dist/nexus-cli/src/utils/table-formatter.js.map +1 -0
- package/dist/shared/src/source-format/__tests__/page-source-file.properties.test.d.ts +1 -0
- package/dist/shared/src/source-format/__tests__/page-source-file.properties.test.js +167 -0
- package/dist/shared/src/source-format/__tests__/page-source-file.properties.test.js.map +1 -0
- package/dist/shared/src/source-format/index.d.ts +1 -0
- package/dist/shared/src/source-format/index.js +16 -0
- package/dist/shared/src/source-format/index.js.map +1 -0
- package/dist/shared/src/source-format/page-source-file.d.ts +53 -0
- package/dist/shared/src/source-format/page-source-file.js +214 -0
- package/dist/shared/src/source-format/page-source-file.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,1352 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ApiClient = exports.GraphQLApiError = void 0;
|
|
37
|
+
exports.createApiClient = createApiClient;
|
|
38
|
+
const http = __importStar(require("http"));
|
|
39
|
+
const https = __importStar(require("https"));
|
|
40
|
+
const node_crypto_1 = require("node:crypto");
|
|
41
|
+
const url_1 = require("url");
|
|
42
|
+
const config_1 = require("./config");
|
|
43
|
+
const auth_store_1 = require("./auth-store");
|
|
44
|
+
const WORKFORCE_BUNDLE_LOCK_SELECTION = `
|
|
45
|
+
schemaVersion bundleName bundleVersion portableBundleDigest
|
|
46
|
+
releaseItemSetDigest sourceLockDigest previousReleaseSetId
|
|
47
|
+
target { orgAlias workspaceId workspaceContractHash }
|
|
48
|
+
employee { employeePackageName agentApiName digest }
|
|
49
|
+
codePackages {
|
|
50
|
+
packageName packageVersion packageDigest
|
|
51
|
+
exports {
|
|
52
|
+
exportId toolName sourceHash compiledHash inputSchemaHash
|
|
53
|
+
outputSchemaHash descriptorHash publishedChecksum runtimeApiVersion
|
|
54
|
+
runtimeProviderId compilerVersion compilerOptionsHash sdkDeclarationHash
|
|
55
|
+
actionContractVersion
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
flows { flowApiName flowRevisionKey definitionHash }
|
|
59
|
+
runtimeBindings {
|
|
60
|
+
bindingKey kind connectorInstanceId connectorApiName connectorType
|
|
61
|
+
connectorConfigHash namedCredentialId namedCredentialApiName credentialType
|
|
62
|
+
bindingRevisionKey
|
|
63
|
+
}
|
|
64
|
+
aiPolicies {
|
|
65
|
+
policyKey policyRevisionKey promptTemplateVersion policyHash
|
|
66
|
+
}
|
|
67
|
+
approvalPolicies { policyApiName purpose revisionKey checksum }
|
|
68
|
+
`;
|
|
69
|
+
const GATE_RECEIPT_FIELDS = `
|
|
70
|
+
schemaVersion approvalId candidateReleaseSetId evidenceRunIds
|
|
71
|
+
expectedSourceLockDigest expectedReleaseItemSetDigest
|
|
72
|
+
expectedMaterializedItemRefsDigest governanceContextDigest
|
|
73
|
+
decision decisionVersion expiresAt consumedAt receiptDigest
|
|
74
|
+
`;
|
|
75
|
+
function graphqlAiAuthoringContextInput(input) {
|
|
76
|
+
return {
|
|
77
|
+
...input,
|
|
78
|
+
surface: input.surface.toUpperCase(),
|
|
79
|
+
selector: {
|
|
80
|
+
...input.selector,
|
|
81
|
+
kind: input.selector.kind.toUpperCase(),
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
class GraphQLApiError extends Error {
|
|
86
|
+
constructor(errors) {
|
|
87
|
+
super(errors.map((error) => error.message).filter(Boolean).join('; ') || 'GraphQL 请求失败');
|
|
88
|
+
this.name = 'GraphQLApiError';
|
|
89
|
+
this.errors = errors;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.GraphQLApiError = GraphQLApiError;
|
|
93
|
+
function normalizeGraphQLError(error) {
|
|
94
|
+
const extensions = error.extensions;
|
|
95
|
+
const extensionPath = extensions?.path;
|
|
96
|
+
const path = Array.isArray(error.path)
|
|
97
|
+
? [...error.path]
|
|
98
|
+
: typeof extensionPath === 'string'
|
|
99
|
+
? extensionPath
|
|
100
|
+
: Array.isArray(extensionPath) && extensionPath.every((entry) => typeof entry === 'string' || typeof entry === 'number')
|
|
101
|
+
? [...extensionPath]
|
|
102
|
+
: undefined;
|
|
103
|
+
return {
|
|
104
|
+
message: typeof error.message === 'string' && error.message ? error.message : 'GraphQL 请求失败',
|
|
105
|
+
...(typeof extensions?.code === 'string' ? { code: extensions.code } : {}),
|
|
106
|
+
...(path !== undefined ? { path } : {}),
|
|
107
|
+
...(typeof extensions?.ruleId === 'string' ? { ruleId: extensions.ruleId } : {}),
|
|
108
|
+
...(typeof extensions?.retryable === 'boolean' ? { retryable: extensions.retryable } : {}),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const DEFAULT_API_REQUEST_TIMEOUT_MS = 120000;
|
|
112
|
+
function normalizeRequestTimeoutMs(timeoutMs) {
|
|
113
|
+
const explicitTimeout = Number(timeoutMs);
|
|
114
|
+
if (Number.isFinite(explicitTimeout) && explicitTimeout > 0) {
|
|
115
|
+
return Math.max(1000, Math.trunc(explicitTimeout));
|
|
116
|
+
}
|
|
117
|
+
const envTimeout = Number(process.env.NEXUS_API_TIMEOUT_MS);
|
|
118
|
+
if (Number.isFinite(envTimeout) && envTimeout > 0) {
|
|
119
|
+
return Math.max(1000, Math.trunc(envTimeout));
|
|
120
|
+
}
|
|
121
|
+
return DEFAULT_API_REQUEST_TIMEOUT_MS;
|
|
122
|
+
}
|
|
123
|
+
function extractMessage(value) {
|
|
124
|
+
if (typeof value === 'string') {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
if (value && typeof value === 'object') {
|
|
128
|
+
const message = value.message;
|
|
129
|
+
if (typeof message === 'string' && message.trim()) {
|
|
130
|
+
return message;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return JSON.stringify(value);
|
|
134
|
+
}
|
|
135
|
+
class ApiClient {
|
|
136
|
+
constructor(baseUrl, token, orgAlias, requestTimeoutMs) {
|
|
137
|
+
this.baseUrl = baseUrl || (0, config_1.getBaseUrl)();
|
|
138
|
+
this.token = token || (0, config_1.getAuthToken)();
|
|
139
|
+
this.orgAlias = orgAlias;
|
|
140
|
+
this.requestTimeoutMs = normalizeRequestTimeoutMs(requestTimeoutMs);
|
|
141
|
+
this.tokenFromEnvironment = !token && Boolean(process.env.NEXUS_AUTH_TOKEN);
|
|
142
|
+
}
|
|
143
|
+
async ensureValidToken() {
|
|
144
|
+
if (this.tokenFromEnvironment)
|
|
145
|
+
return;
|
|
146
|
+
const cred = this.orgAlias
|
|
147
|
+
? (0, auth_store_1.loadCredential)(this.orgAlias)
|
|
148
|
+
: (0, auth_store_1.getDefaultCredential)();
|
|
149
|
+
if (!cred || !cred.refreshToken || !cred.expiresAt)
|
|
150
|
+
return;
|
|
151
|
+
const fiveMinutes = 5 * 60 * 1000;
|
|
152
|
+
if (Date.now() + fiveMinutes < cred.expiresAt)
|
|
153
|
+
return;
|
|
154
|
+
const pair = await this.refreshOAuthTokenPair({
|
|
155
|
+
instanceUrl: cred.instanceUrl,
|
|
156
|
+
refreshToken: cred.refreshToken,
|
|
157
|
+
clientId: cred.clientId,
|
|
158
|
+
scope: cred.scope,
|
|
159
|
+
});
|
|
160
|
+
cred.accessToken = pair.accessToken;
|
|
161
|
+
cred.refreshToken = pair.refreshToken;
|
|
162
|
+
cred.expiresAt = Date.now() + pair.expiresIn * 1000;
|
|
163
|
+
if (pair.scope) {
|
|
164
|
+
cred.scope = pair.scope;
|
|
165
|
+
}
|
|
166
|
+
(0, auth_store_1.saveCredential)(cred);
|
|
167
|
+
this.token = cred.accessToken;
|
|
168
|
+
}
|
|
169
|
+
async refreshOAuthTokenPair(cred) {
|
|
170
|
+
const clientId = cred.clientId || 'nexusclaw-cli';
|
|
171
|
+
const params = new URLSearchParams({
|
|
172
|
+
grant_type: 'refresh_token',
|
|
173
|
+
refresh_token: cred.refreshToken,
|
|
174
|
+
client_id: clientId,
|
|
175
|
+
});
|
|
176
|
+
if (cred.scope) {
|
|
177
|
+
params.set('scope', cred.scope);
|
|
178
|
+
}
|
|
179
|
+
const tokenUrl = new url_1.URL('/oauth/token', cred.instanceUrl);
|
|
180
|
+
const transport = tokenUrl.protocol === 'https:' ? https : http;
|
|
181
|
+
const body = params.toString();
|
|
182
|
+
return new Promise((resolve, reject) => {
|
|
183
|
+
const req = transport.request({
|
|
184
|
+
method: 'POST',
|
|
185
|
+
hostname: tokenUrl.hostname,
|
|
186
|
+
port: tokenUrl.port,
|
|
187
|
+
path: tokenUrl.pathname + tokenUrl.search,
|
|
188
|
+
headers: {
|
|
189
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
190
|
+
'Accept': 'application/json',
|
|
191
|
+
'User-Agent': '@nexusclawhq/cli',
|
|
192
|
+
'Content-Length': Buffer.byteLength(body),
|
|
193
|
+
},
|
|
194
|
+
}, (res) => {
|
|
195
|
+
let data = '';
|
|
196
|
+
res.on('data', (chunk) => (data += chunk));
|
|
197
|
+
res.on('end', () => {
|
|
198
|
+
let parsed = {};
|
|
199
|
+
try {
|
|
200
|
+
parsed = data ? JSON.parse(data) : {};
|
|
201
|
+
}
|
|
202
|
+
catch {
|
|
203
|
+
}
|
|
204
|
+
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
|
205
|
+
if (!parsed.access_token || !parsed.refresh_token) {
|
|
206
|
+
reject(new Error('OAuth refresh returned an incomplete token response. Run `nexus org login-web` to re-authenticate.'));
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
resolve({
|
|
210
|
+
accessToken: parsed.access_token,
|
|
211
|
+
refreshToken: parsed.refresh_token,
|
|
212
|
+
expiresIn: Number(parsed.expires_in) || 3600,
|
|
213
|
+
scope: typeof parsed.scope === 'string' ? parsed.scope : undefined,
|
|
214
|
+
});
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
reject(new Error(`OAuth session expired (token endpoint returned ${res.statusCode ?? 'unknown'}). Run \`nexus org login-web\` to re-authenticate.`));
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
req.on('error', (err) => {
|
|
221
|
+
reject(new Error(`OAuth refresh request failed: ${err.message}`));
|
|
222
|
+
});
|
|
223
|
+
req.setTimeout(this.requestTimeoutMs, () => {
|
|
224
|
+
req.destroy();
|
|
225
|
+
reject(new Error('OAuth refresh request timed out.'));
|
|
226
|
+
});
|
|
227
|
+
req.write(body);
|
|
228
|
+
req.end();
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
getHeaders() {
|
|
232
|
+
const headers = {
|
|
233
|
+
'Content-Type': 'application/json',
|
|
234
|
+
'User-Agent': '@nexusclawhq/cli',
|
|
235
|
+
};
|
|
236
|
+
if (this.token) {
|
|
237
|
+
headers['Authorization'] = `Bearer ${this.token}`;
|
|
238
|
+
}
|
|
239
|
+
const credential = this.orgAlias
|
|
240
|
+
? (0, auth_store_1.loadCredential)(this.orgAlias)
|
|
241
|
+
: undefined;
|
|
242
|
+
if (credential?.orgId) {
|
|
243
|
+
headers['X-Workspace-Id'] = credential.orgId;
|
|
244
|
+
}
|
|
245
|
+
return headers;
|
|
246
|
+
}
|
|
247
|
+
request(method, endpoint, body, extraHeaders) {
|
|
248
|
+
return new Promise((resolve, reject) => {
|
|
249
|
+
const url = new url_1.URL(endpoint, this.baseUrl);
|
|
250
|
+
const isHttps = url.protocol === 'https:';
|
|
251
|
+
const transport = isHttps ? https : http;
|
|
252
|
+
const options = {
|
|
253
|
+
method,
|
|
254
|
+
hostname: url.hostname,
|
|
255
|
+
port: url.port,
|
|
256
|
+
path: url.pathname + url.search,
|
|
257
|
+
headers: { ...this.getHeaders(), ...extraHeaders },
|
|
258
|
+
};
|
|
259
|
+
const req = transport.request(options, (res) => {
|
|
260
|
+
let data = '';
|
|
261
|
+
res.on('data', (chunk) => (data += chunk));
|
|
262
|
+
res.on('end', () => {
|
|
263
|
+
try {
|
|
264
|
+
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
|
265
|
+
const parsed = data ? JSON.parse(data) : {};
|
|
266
|
+
resolve({ success: true, data: parsed });
|
|
267
|
+
}
|
|
268
|
+
else if (res.statusCode === 401) {
|
|
269
|
+
resolve({ success: false, error: '认证失败,请检查 token 是否有效' });
|
|
270
|
+
}
|
|
271
|
+
else if (res.statusCode === 403) {
|
|
272
|
+
resolve({ success: false, error: '权限不足' });
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
const parsed = data ? JSON.parse(data) : {};
|
|
276
|
+
resolve({
|
|
277
|
+
success: false,
|
|
278
|
+
error: parsed.message || `请求失败 (${res.statusCode})`,
|
|
279
|
+
errors: parsed.errors,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
catch {
|
|
284
|
+
resolve({ success: false, error: `响应解析失败: ${data.slice(0, 200)}` });
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
req.on('error', (err) => {
|
|
289
|
+
reject(new Error(`网络请求失败: ${err.message}`));
|
|
290
|
+
});
|
|
291
|
+
req.setTimeout(this.requestTimeoutMs, () => {
|
|
292
|
+
req.destroy();
|
|
293
|
+
reject(new Error('请求超时'));
|
|
294
|
+
});
|
|
295
|
+
if (body) {
|
|
296
|
+
req.write(JSON.stringify(body));
|
|
297
|
+
}
|
|
298
|
+
req.end();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
putRawBytes(endpoint, bytes, headers) {
|
|
302
|
+
return new Promise((resolve, reject) => {
|
|
303
|
+
const url = new url_1.URL(endpoint, this.baseUrl);
|
|
304
|
+
const transport = url.protocol === 'https:' ? https : http;
|
|
305
|
+
const req = transport.request({
|
|
306
|
+
method: 'PUT',
|
|
307
|
+
hostname: url.hostname,
|
|
308
|
+
port: url.port,
|
|
309
|
+
path: url.pathname + url.search,
|
|
310
|
+
headers: {
|
|
311
|
+
...this.getHeaders(),
|
|
312
|
+
...headers,
|
|
313
|
+
'Content-Length': String(bytes.byteLength),
|
|
314
|
+
},
|
|
315
|
+
}, (res) => {
|
|
316
|
+
let data = '';
|
|
317
|
+
res.on('data', (chunk) => { data += String(chunk); });
|
|
318
|
+
res.on('end', () => {
|
|
319
|
+
if (!res.statusCode || res.statusCode < 200 || res.statusCode >= 300) {
|
|
320
|
+
reject(new Error(`Executable package upload failed (${res.statusCode ?? 'unknown'})`));
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
try {
|
|
324
|
+
const parsed = JSON.parse(data);
|
|
325
|
+
resolve(parsed !== null &&
|
|
326
|
+
typeof parsed === 'object' &&
|
|
327
|
+
!Array.isArray(parsed) &&
|
|
328
|
+
'data' in parsed
|
|
329
|
+
? parsed.data
|
|
330
|
+
: parsed);
|
|
331
|
+
}
|
|
332
|
+
catch {
|
|
333
|
+
reject(new Error('Executable package upload returned invalid JSON'));
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
req.on('error', reject);
|
|
338
|
+
req.setTimeout(this.requestTimeoutMs, () => {
|
|
339
|
+
req.destroy();
|
|
340
|
+
reject(new Error('Executable package upload timed out'));
|
|
341
|
+
});
|
|
342
|
+
req.end(Buffer.from(bytes));
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
get(endpoint) {
|
|
346
|
+
return this.request('GET', endpoint);
|
|
347
|
+
}
|
|
348
|
+
post(endpoint, body) {
|
|
349
|
+
return this.request('POST', endpoint, body);
|
|
350
|
+
}
|
|
351
|
+
put(endpoint, body) {
|
|
352
|
+
return this.request('PUT', endpoint, body);
|
|
353
|
+
}
|
|
354
|
+
delete(endpoint) {
|
|
355
|
+
return this.request('DELETE', endpoint);
|
|
356
|
+
}
|
|
357
|
+
async graphql(query, variables) {
|
|
358
|
+
const res = await this.post('/graphql', { query, variables });
|
|
359
|
+
if (res.errors?.length) {
|
|
360
|
+
throw new GraphQLApiError(res.errors
|
|
361
|
+
.map(normalizeGraphQLError));
|
|
362
|
+
}
|
|
363
|
+
if (!res.success || !res.data) {
|
|
364
|
+
throw new Error(res.error || 'GraphQL 请求失败');
|
|
365
|
+
}
|
|
366
|
+
if (res.data.errors?.length) {
|
|
367
|
+
throw new GraphQLApiError(res.data.errors.map(normalizeGraphQLError));
|
|
368
|
+
}
|
|
369
|
+
if (res.data.data === undefined) {
|
|
370
|
+
throw new Error('GraphQL 响应缺少 data 字段');
|
|
371
|
+
}
|
|
372
|
+
return res.data.data;
|
|
373
|
+
}
|
|
374
|
+
async getAiContextSigningKeys() {
|
|
375
|
+
await this.ensureValidToken();
|
|
376
|
+
const response = await this.get('/api/v1/ai-authoring-context/signing-keys');
|
|
377
|
+
if (!response.success || !response.data) {
|
|
378
|
+
throw new Error(response.error || 'AI context signing-key discovery failed');
|
|
379
|
+
}
|
|
380
|
+
return 'data' in response.data
|
|
381
|
+
? response.data.data
|
|
382
|
+
: response.data;
|
|
383
|
+
}
|
|
384
|
+
async createExecutablePackageUploadSession(input, idempotencyKey) {
|
|
385
|
+
await this.ensureValidToken();
|
|
386
|
+
const result = await this.graphql(`mutation CreateExecutablePackageUploadSession(
|
|
387
|
+
$input: CreateExecutablePackageUploadSessionInput!
|
|
388
|
+
$idempotencyKey: String!
|
|
389
|
+
) {
|
|
390
|
+
createExecutablePackageUploadSession(
|
|
391
|
+
input: $input
|
|
392
|
+
idempotencyKey: $idempotencyKey
|
|
393
|
+
) {
|
|
394
|
+
uploadSessionId uploadUrl method requiredHeaderNames expiresAt
|
|
395
|
+
}
|
|
396
|
+
}`, { input, idempotencyKey });
|
|
397
|
+
return result.createExecutablePackageUploadSession;
|
|
398
|
+
}
|
|
399
|
+
async uploadExecutablePackageArtifact(input) {
|
|
400
|
+
await this.ensureValidToken();
|
|
401
|
+
if (!/^\/api\/v1\/deployment\/executable-package-uploads\/[A-Za-z0-9-]+$/.test(input.uploadUrl)) {
|
|
402
|
+
throw new Error('PACKAGE_UPLOAD_URL_INVALID');
|
|
403
|
+
}
|
|
404
|
+
const computedArchiveDigest = `sha256:${(0, node_crypto_1.createHash)('sha256')
|
|
405
|
+
.update(input.bytes)
|
|
406
|
+
.digest('hex')}`;
|
|
407
|
+
if (computedArchiveDigest !== input.archiveDigest) {
|
|
408
|
+
throw new Error('PACKAGE_ARCHIVE_DIGEST_MISMATCH');
|
|
409
|
+
}
|
|
410
|
+
return this.putRawBytes(input.uploadUrl, input.bytes, {
|
|
411
|
+
'Content-Type': 'application/zip',
|
|
412
|
+
Digest: `sha-256=${Buffer.from(input.archiveDigest.slice(7), 'hex').toString('base64')}`,
|
|
413
|
+
'Idempotency-Key': input.idempotencyKey,
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
async resolveWorkforceBundleLock(input) {
|
|
417
|
+
await this.ensureValidToken();
|
|
418
|
+
const result = await this.graphql(`query ResolveWorkforceBundleLock($input: WorkforceBundleArtifactOperationInput!) {
|
|
419
|
+
resolveWorkforceBundleLock(input: $input) {
|
|
420
|
+
${WORKFORCE_BUNDLE_LOCK_SELECTION}
|
|
421
|
+
}
|
|
422
|
+
}`, { input });
|
|
423
|
+
return result.resolveWorkforceBundleLock;
|
|
424
|
+
}
|
|
425
|
+
async planExecutableWorkforceBundle(input) {
|
|
426
|
+
await this.ensureValidToken();
|
|
427
|
+
const result = await this.graphql(`query PlanExecutableWorkforceBundle($input: PlanExecutableWorkforceBundleInput!) {
|
|
428
|
+
planExecutableWorkforceBundle(input: $input) {
|
|
429
|
+
schemaVersion planDigest releaseItemSetDigest sourceLockDigest
|
|
430
|
+
plannedItems { itemKind canonicalKey checksum descriptorHash }
|
|
431
|
+
headAtPlan { activeReleaseSetId generation }
|
|
432
|
+
lock { ${WORKFORCE_BUNDLE_LOCK_SELECTION} }
|
|
433
|
+
}
|
|
434
|
+
}`, { input });
|
|
435
|
+
return result.planExecutableWorkforceBundle;
|
|
436
|
+
}
|
|
437
|
+
async stageExecutableWorkforceBundle(input, idempotencyKey) {
|
|
438
|
+
await this.ensureValidToken();
|
|
439
|
+
const result = await this.graphql(`mutation StageExecutableWorkforceBundle(
|
|
440
|
+
$input: StageExecutableWorkforceBundleInput!
|
|
441
|
+
$idempotencyKey: String!
|
|
442
|
+
) {
|
|
443
|
+
stageExecutableWorkforceBundle(input: $input, idempotencyKey: $idempotencyKey) {
|
|
444
|
+
schemaVersion candidateReleaseSetId agentApiName eligibilityStatus
|
|
445
|
+
sourceLockDigest releaseItemSetDigest materializedItemRefsDigest
|
|
446
|
+
releaseEnvelopeDigest previousReleaseSetId
|
|
447
|
+
headAtStage { activeReleaseSetId generation } planDigest
|
|
448
|
+
}
|
|
449
|
+
}`, {
|
|
450
|
+
input: {
|
|
451
|
+
...input,
|
|
452
|
+
authoringContext: graphqlAiAuthoringContextInput(input.authoringContext),
|
|
453
|
+
},
|
|
454
|
+
idempotencyKey,
|
|
455
|
+
});
|
|
456
|
+
return result.stageExecutableWorkforceBundle;
|
|
457
|
+
}
|
|
458
|
+
async runWorkforceCandidateTests(input, idempotencyKey) {
|
|
459
|
+
await this.ensureValidToken();
|
|
460
|
+
const result = await this.graphql(`mutation RunWorkforceCandidateTests($input: RunWorkforceCandidateTestsInput!, $idempotencyKey: String!) {
|
|
461
|
+
runWorkforceCandidateTests(input: $input, idempotencyKey: $idempotencyKey) {
|
|
462
|
+
evidenceRunId evidenceRunDigest passed isolationBindingId
|
|
463
|
+
isolationSnapshotHash resetReceiptId resetReceiptDigest
|
|
464
|
+
newAuthorizationGeneration
|
|
465
|
+
refs { kind evidenceId digest producer createdAt }
|
|
466
|
+
}
|
|
467
|
+
}`, { input, idempotencyKey });
|
|
468
|
+
return result.runWorkforceCandidateTests;
|
|
469
|
+
}
|
|
470
|
+
async getWorkforceCandidateReleaseItems(input) {
|
|
471
|
+
await this.ensureValidToken();
|
|
472
|
+
const result = await this.graphql(`query GetWorkforceCandidateReleaseItems($input: WorkforceCandidateReleaseItemsInput!) {
|
|
473
|
+
getWorkforceCandidateReleaseItems(input: $input) {
|
|
474
|
+
itemKind selectorKey
|
|
475
|
+
}
|
|
476
|
+
}`, { input });
|
|
477
|
+
return result.getWorkforceCandidateReleaseItems;
|
|
478
|
+
}
|
|
479
|
+
async requestWorkforceReleaseApproval(input, idempotencyKey) {
|
|
480
|
+
return this.workforceGateReceiptMutation('RequestWorkforceReleaseApproval', 'requestWorkforceReleaseApproval', input, idempotencyKey);
|
|
481
|
+
}
|
|
482
|
+
async getWorkforceReleaseApprovalStatus(input) {
|
|
483
|
+
await this.ensureValidToken();
|
|
484
|
+
const result = await this.graphql(`query GetWorkforceReleaseApprovalStatus($input: WorkforceReleaseApprovalStatusInput!) {
|
|
485
|
+
getWorkforceReleaseApprovalStatus(input: $input) {
|
|
486
|
+
${GATE_RECEIPT_FIELDS}
|
|
487
|
+
}
|
|
488
|
+
}`, { input });
|
|
489
|
+
return result.getWorkforceReleaseApprovalStatus;
|
|
490
|
+
}
|
|
491
|
+
async evaluateAndSealWorkforceCandidateRelease(input, idempotencyKey) {
|
|
492
|
+
await this.ensureValidToken();
|
|
493
|
+
const result = await this.graphql(`mutation EvaluateAndSealWorkforceCandidateRelease($input: EvaluateWorkforceCandidateReleaseInput!, $idempotencyKey: String!) {
|
|
494
|
+
evaluateAndSealWorkforceCandidateRelease(input: $input, idempotencyKey: $idempotencyKey) {
|
|
495
|
+
releaseSetId evidenceId eligibilityStatus releaseEnvelopeDigest alreadySealed
|
|
496
|
+
}
|
|
497
|
+
}`, { input, idempotencyKey });
|
|
498
|
+
return result.evaluateAndSealWorkforceCandidateRelease;
|
|
499
|
+
}
|
|
500
|
+
async promoteWorkforceRelease(input, idempotencyKey) {
|
|
501
|
+
return this.workforceTransitionMutation('PromoteWorkforceRelease', 'promoteWorkforceRelease', 'PromoteWorkforceReleaseInput', input, idempotencyKey);
|
|
502
|
+
}
|
|
503
|
+
async rollbackWorkforceRelease(input, idempotencyKey) {
|
|
504
|
+
return this.workforceTransitionMutation('RollbackWorkforceRelease', 'rollbackWorkforceRelease', 'RollbackWorkforceReleaseInput', input, idempotencyKey);
|
|
505
|
+
}
|
|
506
|
+
async revokeExecutableToolExport(input, idempotencyKey) {
|
|
507
|
+
await this.ensureValidToken();
|
|
508
|
+
const result = await this.graphql(`mutation RevokeExecutableToolExport($input: RevokeExecutableToolExportInput!, $idempotencyKey: String!) {
|
|
509
|
+
revokeExecutableToolExport(input: $input, idempotencyKey: $idempotencyKey) {
|
|
510
|
+
schemaVersion eventType workspaceId assertedReleaseSetId exportId
|
|
511
|
+
toolName publishedChecksum reason revokedBy revokedAt requestFingerprint
|
|
512
|
+
}
|
|
513
|
+
}`, { input, idempotencyKey });
|
|
514
|
+
return result.revokeExecutableToolExport;
|
|
515
|
+
}
|
|
516
|
+
async workforceGateReceiptMutation(operationName, fieldName, input, idempotencyKey) {
|
|
517
|
+
await this.ensureValidToken();
|
|
518
|
+
const result = await this.graphql(`mutation ${operationName}($input: WorkforceReleaseApprovalRequestInput!, $idempotencyKey: String!) {
|
|
519
|
+
${fieldName}(input: $input, idempotencyKey: $idempotencyKey) {
|
|
520
|
+
${GATE_RECEIPT_FIELDS}
|
|
521
|
+
}
|
|
522
|
+
}`, { input, idempotencyKey });
|
|
523
|
+
return result[fieldName];
|
|
524
|
+
}
|
|
525
|
+
async workforceTransitionMutation(operationName, fieldName, inputType, input, idempotencyKey) {
|
|
526
|
+
await this.ensureValidToken();
|
|
527
|
+
const result = await this.graphql(`mutation ${operationName}($input: ${inputType}!, $idempotencyKey: String!) {
|
|
528
|
+
${fieldName}(input: $input, idempotencyKey: $idempotencyKey) {
|
|
529
|
+
schemaVersion operation beforeReleaseSetId afterReleaseSetId
|
|
530
|
+
beforeGeneration afterGeneration receiptId outboxId alreadyApplied
|
|
531
|
+
}
|
|
532
|
+
}`, { input, idempotencyKey });
|
|
533
|
+
return result[fieldName];
|
|
534
|
+
}
|
|
535
|
+
async validateExecutablePackageArtifact(input) {
|
|
536
|
+
await this.ensureValidToken();
|
|
537
|
+
const result = await this.graphql(`query ValidateExecutablePackageArtifact($input: ValidateExecutablePackageArtifactInput!) {
|
|
538
|
+
validateExecutablePackageArtifact(input: $input) {
|
|
539
|
+
schemaVersion valid stagedArtifactId archiveDigest packageDigest
|
|
540
|
+
contextManifestContentDigest
|
|
541
|
+
diagnostics {
|
|
542
|
+
code severity phase artifactId file line column jsonPath ruleId
|
|
543
|
+
message fixHint retryable docsRef
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}`, { input });
|
|
547
|
+
return result.validateExecutablePackageArtifact;
|
|
548
|
+
}
|
|
549
|
+
async describeAiAuthoringContext(input) {
|
|
550
|
+
await this.ensureValidToken();
|
|
551
|
+
const result = await this.graphql(`query DescribeAiAuthoringContext($input: DescribeAiAuthoringContextInput!) {
|
|
552
|
+
describeAiAuthoringContext(input: $input) {
|
|
553
|
+
schemaVersion coreVersion coreCommitSha cliVersion runtimeApiVersion
|
|
554
|
+
surface targetWorkspaceId principalKind principalId agentApiName
|
|
555
|
+
releaseSetId contractDigest workspaceContractHash principalScopeDigest
|
|
556
|
+
generatedAt expiresAt
|
|
557
|
+
releaseStamp {
|
|
558
|
+
candidateReleaseSetId agentApiName eligibilityStatus
|
|
559
|
+
sourceLockDigest releaseItemSetDigest materializedItemRefsDigest
|
|
560
|
+
releaseEnvelopeDigest previousReleaseSetId
|
|
561
|
+
headAtStage { activeReleaseSetId generation }
|
|
562
|
+
}
|
|
563
|
+
objectCatalog { schemaVersion digest canonicalJson }
|
|
564
|
+
invokableCatalog { schemaVersion digest canonicalJson }
|
|
565
|
+
connectorCatalog { schemaVersion digest canonicalJson }
|
|
566
|
+
aiPolicyCatalog { schemaVersion digest canonicalJson }
|
|
567
|
+
approvalPolicyCatalog { schemaVersion digest canonicalJson }
|
|
568
|
+
}
|
|
569
|
+
}`, { input: graphqlAiAuthoringContextInput(input) });
|
|
570
|
+
return result.describeAiAuthoringContext;
|
|
571
|
+
}
|
|
572
|
+
async verifyAiAuthoringContextFreshness(input) {
|
|
573
|
+
await this.ensureValidToken();
|
|
574
|
+
const result = await this.graphql(`query VerifyAiAuthoringContextFreshness($input: VerifyAiAuthoringContextFreshnessInput!) {
|
|
575
|
+
verifyAiAuthoringContextFreshness(input: $input) {
|
|
576
|
+
valid stale reasons
|
|
577
|
+
currentHashes {
|
|
578
|
+
contractDigest workspaceContractHash principalScopeDigest
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}`, { input: graphqlAiAuthoringContextInput(input) });
|
|
582
|
+
return result.verifyAiAuthoringContextFreshness;
|
|
583
|
+
}
|
|
584
|
+
async signAiAuthoringContextLock(input) {
|
|
585
|
+
await this.ensureValidToken();
|
|
586
|
+
const result = await this.graphql(`query SignAiAuthoringContextLock($input: SignAiAuthoringContextLockInput!) {
|
|
587
|
+
signAiAuthoringContextLock(input: $input) {
|
|
588
|
+
schemaVersion contentDigest manifestContentDigest
|
|
589
|
+
manifestEnvelopeDigest lockDigest signatureAlgorithm keyId signature
|
|
590
|
+
}
|
|
591
|
+
}`, { input: graphqlAiAuthoringContextInput(input) });
|
|
592
|
+
return result.signAiAuthoringContextLock;
|
|
593
|
+
}
|
|
594
|
+
async validate(changeSetId) {
|
|
595
|
+
const res = await this.post('/api/metadata/validate', {
|
|
596
|
+
changeSetId,
|
|
597
|
+
});
|
|
598
|
+
if (!res.success) {
|
|
599
|
+
return { success: false, errors: [res.error || '验证失败'], warnings: [] };
|
|
600
|
+
}
|
|
601
|
+
return {
|
|
602
|
+
success: Boolean(res.data?.success),
|
|
603
|
+
errors: (res.data?.errors ?? []).map((entry) => extractMessage(entry)),
|
|
604
|
+
warnings: (res.data?.warnings ?? []).map((entry) => extractMessage(entry)),
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
async validateDeploymentSource(input) {
|
|
608
|
+
const res = await this.post('/api/deployment/validate/source', input);
|
|
609
|
+
if (!res.success || !res.data) {
|
|
610
|
+
throw new Error(res.error || 'source validation failed');
|
|
611
|
+
}
|
|
612
|
+
return res.data;
|
|
613
|
+
}
|
|
614
|
+
async validateDeploymentPackage(input) {
|
|
615
|
+
const endpoint = input.operation === 'upgrade'
|
|
616
|
+
? '/api/deployment/validate/package/upgrade'
|
|
617
|
+
: '/api/deployment/validate/package/install';
|
|
618
|
+
const res = await this.post(endpoint, input);
|
|
619
|
+
if (!res.success || !res.data) {
|
|
620
|
+
throw new Error(res.error || 'package validation failed');
|
|
621
|
+
}
|
|
622
|
+
return res.data;
|
|
623
|
+
}
|
|
624
|
+
async createManagedChangeSet(input) {
|
|
625
|
+
const res = await this.post('/api/changesets', input);
|
|
626
|
+
if (!res.success || !res.data) {
|
|
627
|
+
throw new Error(res.error || 'change set creation failed');
|
|
628
|
+
}
|
|
629
|
+
return res.data;
|
|
630
|
+
}
|
|
631
|
+
async listManagedChangeSets(filters) {
|
|
632
|
+
const query = new URLSearchParams();
|
|
633
|
+
Object.entries(filters ?? {}).forEach(([key, value]) => {
|
|
634
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
635
|
+
query.set(key, String(value));
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
const suffix = query.toString() ? `?${query.toString()}` : '';
|
|
639
|
+
const res = await this.get(`/api/changesets${suffix}`);
|
|
640
|
+
if (!res.success || !res.data) {
|
|
641
|
+
throw new Error(res.error || 'change set list failed');
|
|
642
|
+
}
|
|
643
|
+
return res.data;
|
|
644
|
+
}
|
|
645
|
+
async getManagedChangeSet(id) {
|
|
646
|
+
const res = await this.get(`/api/changesets/${id}`);
|
|
647
|
+
if (!res.success || !res.data) {
|
|
648
|
+
throw new Error(res.error || 'change set lookup failed');
|
|
649
|
+
}
|
|
650
|
+
return res.data;
|
|
651
|
+
}
|
|
652
|
+
async validateManagedChangeSet(id) {
|
|
653
|
+
const res = await this.post(`/api/changesets/${id}/validate`, {});
|
|
654
|
+
if (!res.success || !res.data) {
|
|
655
|
+
throw new Error(res.error || 'change set validation failed');
|
|
656
|
+
}
|
|
657
|
+
return res.data;
|
|
658
|
+
}
|
|
659
|
+
async deployManagedChangeSet(id) {
|
|
660
|
+
const res = await this.post(`/api/changesets/${id}/deploy`, {});
|
|
661
|
+
if (!res.success || !res.data) {
|
|
662
|
+
throw new Error(res.error || 'change set deployment failed');
|
|
663
|
+
}
|
|
664
|
+
return res.data;
|
|
665
|
+
}
|
|
666
|
+
async rollbackManagedChangeSet(id) {
|
|
667
|
+
const res = await this.post(`/api/changesets/${id}/rollback`, {});
|
|
668
|
+
if (!res.success || !res.data) {
|
|
669
|
+
throw new Error(res.error || 'change set rollback failed');
|
|
670
|
+
}
|
|
671
|
+
return res.data;
|
|
672
|
+
}
|
|
673
|
+
async getManagedChangeSetDependencies(id) {
|
|
674
|
+
const res = await this.get(`/api/changesets/${id}/dependencies`);
|
|
675
|
+
if (!res.success || !res.data) {
|
|
676
|
+
throw new Error(res.error || 'change set dependency lookup failed');
|
|
677
|
+
}
|
|
678
|
+
return res.data;
|
|
679
|
+
}
|
|
680
|
+
async getManagedChangeSetConflicts(id) {
|
|
681
|
+
const res = await this.get(`/api/changesets/${id}/conflicts`);
|
|
682
|
+
if (!res.success || !res.data) {
|
|
683
|
+
throw new Error(res.error || 'change set conflict lookup failed');
|
|
684
|
+
}
|
|
685
|
+
return res.data;
|
|
686
|
+
}
|
|
687
|
+
async approveManagedChangeSet(id, reason) {
|
|
688
|
+
const res = await this.post(`/api/changesets/${id}/approve`, {
|
|
689
|
+
reason,
|
|
690
|
+
});
|
|
691
|
+
if (!res.success || !res.data) {
|
|
692
|
+
throw new Error(res.error || 'change set approval failed');
|
|
693
|
+
}
|
|
694
|
+
return res.data;
|
|
695
|
+
}
|
|
696
|
+
async rejectManagedChangeSet(id, reason) {
|
|
697
|
+
const res = await this.post(`/api/changesets/${id}/reject`, {
|
|
698
|
+
reason,
|
|
699
|
+
});
|
|
700
|
+
if (!res.success || !res.data) {
|
|
701
|
+
throw new Error(res.error || 'change set rejection failed');
|
|
702
|
+
}
|
|
703
|
+
return res.data;
|
|
704
|
+
}
|
|
705
|
+
async listDeploymentHistory(filters) {
|
|
706
|
+
const query = new URLSearchParams();
|
|
707
|
+
Object.entries(filters ?? {}).forEach(([key, value]) => {
|
|
708
|
+
if (value !== undefined && value !== null && value !== '') {
|
|
709
|
+
query.set(key, String(value));
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
const suffix = query.toString() ? `?${query.toString()}` : '';
|
|
713
|
+
const res = await this.get(`/api/deployment/history${suffix}`);
|
|
714
|
+
if (!res.success || !res.data) {
|
|
715
|
+
throw new Error(res.error || 'deployment history query failed');
|
|
716
|
+
}
|
|
717
|
+
return res.data;
|
|
718
|
+
}
|
|
719
|
+
async compareDeployments(leftId, rightId) {
|
|
720
|
+
const res = await this.get(`/api/deployment/compare?leftId=${encodeURIComponent(leftId)}&rightId=${encodeURIComponent(rightId)}`);
|
|
721
|
+
if (!res.success || !res.data) {
|
|
722
|
+
throw new Error(res.error || 'deployment comparison failed');
|
|
723
|
+
}
|
|
724
|
+
return res.data;
|
|
725
|
+
}
|
|
726
|
+
async deploy(changeSetId) {
|
|
727
|
+
const res = await this.post('/api/metadata/deploy', {
|
|
728
|
+
changeSetId,
|
|
729
|
+
});
|
|
730
|
+
if (!res.success) {
|
|
731
|
+
throw new Error(res.error || '部署请求失败');
|
|
732
|
+
}
|
|
733
|
+
return {
|
|
734
|
+
jobId: res.data?.jobId ?? changeSetId,
|
|
735
|
+
status: 'queued',
|
|
736
|
+
message: res.data?.message,
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
async getDeployStatus(jobId) {
|
|
740
|
+
const res = await this.get(`/api/metadata/status/${jobId}`);
|
|
741
|
+
if (!res.success) {
|
|
742
|
+
throw new Error(res.error || '查询部署状态失败');
|
|
743
|
+
}
|
|
744
|
+
const result = res.data?.result;
|
|
745
|
+
const normalizedStatus = result === 'success'
|
|
746
|
+
? 'success'
|
|
747
|
+
: result === 'failed' || result === 'rolled_back'
|
|
748
|
+
? 'failed'
|
|
749
|
+
: 'running';
|
|
750
|
+
return {
|
|
751
|
+
jobId,
|
|
752
|
+
status: normalizedStatus,
|
|
753
|
+
progress: normalizedStatus === 'running' ? 50 : 100,
|
|
754
|
+
message: res.data?.errorMessage ?? result,
|
|
755
|
+
errors: res.data?.errorMessage ? [res.data.errorMessage] : [],
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
async retrieve(changeSetId) {
|
|
759
|
+
const res = await this.post('/api/metadata/retrieve', {
|
|
760
|
+
changeSetId,
|
|
761
|
+
});
|
|
762
|
+
if (!res.success) {
|
|
763
|
+
throw new Error(res.error || '元数据导出失败');
|
|
764
|
+
}
|
|
765
|
+
return res.data;
|
|
766
|
+
}
|
|
767
|
+
async exportRuntimeMetadata() {
|
|
768
|
+
const res = await this.get('/api/metadata/runtime/export');
|
|
769
|
+
if (!res.success) {
|
|
770
|
+
throw new Error(res.error || 'metadata runtime 导出失败');
|
|
771
|
+
}
|
|
772
|
+
return res.data;
|
|
773
|
+
}
|
|
774
|
+
async validateRuntimeMetadata(files) {
|
|
775
|
+
const res = await this.post('/api/metadata/runtime/validate', {
|
|
776
|
+
files,
|
|
777
|
+
});
|
|
778
|
+
if (!res.success) {
|
|
779
|
+
throw new Error(res.error || 'metadata runtime 校验失败');
|
|
780
|
+
}
|
|
781
|
+
return res.data;
|
|
782
|
+
}
|
|
783
|
+
async diffRuntimeMetadata(files) {
|
|
784
|
+
const res = await this.post('/api/metadata/runtime/diff', {
|
|
785
|
+
files,
|
|
786
|
+
});
|
|
787
|
+
if (!res.success) {
|
|
788
|
+
throw new Error(res.error || 'metadata runtime diff 失败');
|
|
789
|
+
}
|
|
790
|
+
return res.data;
|
|
791
|
+
}
|
|
792
|
+
async getSourceStatus() {
|
|
793
|
+
const response = await this.graphql(`query SourceStatus {
|
|
794
|
+
sourceStatus {
|
|
795
|
+
remoteRevision
|
|
796
|
+
remoteHash
|
|
797
|
+
baselineRevision
|
|
798
|
+
baselineHash
|
|
799
|
+
baselineSource
|
|
800
|
+
baselineAvailable
|
|
801
|
+
changedComponentCount
|
|
802
|
+
files {
|
|
803
|
+
path
|
|
804
|
+
hash
|
|
805
|
+
componentKey
|
|
806
|
+
baselineHash
|
|
807
|
+
}
|
|
808
|
+
baselineFiles {
|
|
809
|
+
path
|
|
810
|
+
hash
|
|
811
|
+
componentKey
|
|
812
|
+
baselineHash
|
|
813
|
+
}
|
|
814
|
+
drift
|
|
815
|
+
tracking
|
|
816
|
+
}
|
|
817
|
+
}`);
|
|
818
|
+
return response.sourceStatus;
|
|
819
|
+
}
|
|
820
|
+
async getRemoteChanges(workspaceId) {
|
|
821
|
+
const response = await this.graphql(`query RemoteChanges($workspaceId: ID) {
|
|
822
|
+
remoteChanges(workspaceId: $workspaceId) {
|
|
823
|
+
id
|
|
824
|
+
componentType
|
|
825
|
+
componentId
|
|
826
|
+
componentName
|
|
827
|
+
changeType
|
|
828
|
+
changeSource
|
|
829
|
+
changedAt
|
|
830
|
+
}
|
|
831
|
+
}`, workspaceId ? { workspaceId } : undefined);
|
|
832
|
+
return response.remoteChanges;
|
|
833
|
+
}
|
|
834
|
+
async getLocalChanges(workspaceId) {
|
|
835
|
+
const response = await this.graphql(`query LocalChanges($workspaceId: ID) {
|
|
836
|
+
localChanges(workspaceId: $workspaceId) {
|
|
837
|
+
id
|
|
838
|
+
componentType
|
|
839
|
+
componentId
|
|
840
|
+
componentName
|
|
841
|
+
changeType
|
|
842
|
+
changeSource
|
|
843
|
+
changedAt
|
|
844
|
+
}
|
|
845
|
+
}`, workspaceId ? { workspaceId } : undefined);
|
|
846
|
+
return response.localChanges;
|
|
847
|
+
}
|
|
848
|
+
async getSourceFiles(input) {
|
|
849
|
+
const response = await this.graphql(`query SourceFiles($paths: [String!], $recordAccess: Boolean) {
|
|
850
|
+
sourceFiles(paths: $paths, recordAccess: $recordAccess) {
|
|
851
|
+
remoteRevision
|
|
852
|
+
files {
|
|
853
|
+
path
|
|
854
|
+
hash
|
|
855
|
+
content
|
|
856
|
+
componentKey
|
|
857
|
+
baselineHash
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}`, input);
|
|
861
|
+
return response.sourceFiles;
|
|
862
|
+
}
|
|
863
|
+
async pushSource(input) {
|
|
864
|
+
const response = await this.graphql(`mutation PushSource($files: [SourceFileInput!]!, $dryRun: Boolean) {
|
|
865
|
+
pushSource(files: $files, dryRun: $dryRun) {
|
|
866
|
+
success
|
|
867
|
+
count
|
|
868
|
+
dryRun
|
|
869
|
+
beforeRevision
|
|
870
|
+
afterRevision
|
|
871
|
+
plan
|
|
872
|
+
}
|
|
873
|
+
}`, input);
|
|
874
|
+
return response.pushSource;
|
|
875
|
+
}
|
|
876
|
+
async rebuildSourceBaseline(reason) {
|
|
877
|
+
const response = await this.graphql(`mutation RebuildSourceBaseline($reason: String) {
|
|
878
|
+
rebuildSourceBaseline(reason: $reason) {
|
|
879
|
+
success
|
|
880
|
+
baselineAvailable
|
|
881
|
+
baselineRevision
|
|
882
|
+
baselineSource
|
|
883
|
+
filesCount
|
|
884
|
+
warnings
|
|
885
|
+
}
|
|
886
|
+
}`, reason ? { reason } : undefined);
|
|
887
|
+
return response.rebuildSourceBaseline;
|
|
888
|
+
}
|
|
889
|
+
async importRuntimeMetadata(files, options) {
|
|
890
|
+
const res = await this.post('/api/metadata/runtime/import', {
|
|
891
|
+
files,
|
|
892
|
+
dryRun: options?.dryRun,
|
|
893
|
+
destructiveSync: options?.destructiveSync,
|
|
894
|
+
});
|
|
895
|
+
if (!res.success) {
|
|
896
|
+
throw new Error(res.error || 'metadata runtime 导入失败');
|
|
897
|
+
}
|
|
898
|
+
return res.data;
|
|
899
|
+
}
|
|
900
|
+
async getMetadataPackageInstallPlan(input) {
|
|
901
|
+
const response = await this.graphql(`query MetadataPackageInstallPlan(
|
|
902
|
+
$workspaceId: String!,
|
|
903
|
+
$manifests: JSON!,
|
|
904
|
+
$dryRun: Boolean,
|
|
905
|
+
$packageDirectory: String,
|
|
906
|
+
$coreVersion: String
|
|
907
|
+
) {
|
|
908
|
+
metadataPackageInstallPlan(
|
|
909
|
+
workspaceId: $workspaceId,
|
|
910
|
+
manifests: $manifests,
|
|
911
|
+
dryRun: $dryRun,
|
|
912
|
+
packageDirectory: $packageDirectory,
|
|
913
|
+
coreVersion: $coreVersion
|
|
914
|
+
)
|
|
915
|
+
}`, input);
|
|
916
|
+
return response.metadataPackageInstallPlan;
|
|
917
|
+
}
|
|
918
|
+
async installMetadataPackage(input) {
|
|
919
|
+
const response = await this.graphql(`mutation InstallMetadataPackage(
|
|
920
|
+
$workspaceId: String!,
|
|
921
|
+
$manifest: JSON!,
|
|
922
|
+
$dryRun: Boolean,
|
|
923
|
+
$packageDirectory: String,
|
|
924
|
+
$archivePath: String,
|
|
925
|
+
$serializerChangeSetId: String,
|
|
926
|
+
$sourceUri: String,
|
|
927
|
+
$coreVersion: String
|
|
928
|
+
) {
|
|
929
|
+
installMetadataPackage(
|
|
930
|
+
workspaceId: $workspaceId,
|
|
931
|
+
manifest: $manifest,
|
|
932
|
+
dryRun: $dryRun,
|
|
933
|
+
packageDirectory: $packageDirectory,
|
|
934
|
+
archivePath: $archivePath,
|
|
935
|
+
serializerChangeSetId: $serializerChangeSetId,
|
|
936
|
+
sourceUri: $sourceUri,
|
|
937
|
+
coreVersion: $coreVersion
|
|
938
|
+
)
|
|
939
|
+
}`, input);
|
|
940
|
+
return response.installMetadataPackage;
|
|
941
|
+
}
|
|
942
|
+
async deployEmployeePackage(input) {
|
|
943
|
+
const response = await this.graphql(`mutation DeployEmployeePackage(
|
|
944
|
+
$workspaceId: String!,
|
|
945
|
+
$manifest: JSON!,
|
|
946
|
+
$dryRun: Boolean,
|
|
947
|
+
$allowMutatingEvals: Boolean,
|
|
948
|
+
$skipEmbeddings: Boolean,
|
|
949
|
+
$forceAdopt: Boolean
|
|
950
|
+
) {
|
|
951
|
+
deployEmployeePackage(
|
|
952
|
+
workspaceId: $workspaceId,
|
|
953
|
+
manifest: $manifest,
|
|
954
|
+
dryRun: $dryRun,
|
|
955
|
+
allowMutatingEvals: $allowMutatingEvals,
|
|
956
|
+
skipEmbeddings: $skipEmbeddings,
|
|
957
|
+
forceAdopt: $forceAdopt
|
|
958
|
+
)
|
|
959
|
+
}`, input);
|
|
960
|
+
return response.deployEmployeePackage;
|
|
961
|
+
}
|
|
962
|
+
async getEmployeeDeploymentReport(input) {
|
|
963
|
+
const response = await this.graphql(`query EmployeeDeploymentReport($workspaceId: String!, $deploymentReportId: String!) {
|
|
964
|
+
employeeDeploymentReport(workspaceId: $workspaceId, deploymentReportId: $deploymentReportId) {
|
|
965
|
+
id workspaceId agentId gateReportId auditId packageName packageVersion
|
|
966
|
+
status activationStatus activated gatePassed gateFailureReason
|
|
967
|
+
coreVersion cliVersion errors createdAt updatedAt
|
|
968
|
+
}
|
|
969
|
+
}`, input);
|
|
970
|
+
return response.employeeDeploymentReport;
|
|
971
|
+
}
|
|
972
|
+
async listEmployeeDeploymentReports(workspaceId) {
|
|
973
|
+
const response = await this.graphql(`query EmployeeDeploymentReports($workspaceId: String!) {
|
|
974
|
+
employeeDeploymentReports(workspaceId: $workspaceId) {
|
|
975
|
+
id workspaceId agentId gateReportId auditId packageName packageVersion
|
|
976
|
+
status activationStatus activated gatePassed gateFailureReason
|
|
977
|
+
coreVersion cliVersion errors createdAt updatedAt
|
|
978
|
+
}
|
|
979
|
+
}`, { workspaceId });
|
|
980
|
+
return response.employeeDeploymentReports ?? [];
|
|
981
|
+
}
|
|
982
|
+
async runRuntimeDemoPreflight(input) {
|
|
983
|
+
const response = await this.graphql(`mutation RunRuntimeDemoPreflight(
|
|
984
|
+
$workspaceId: String!,
|
|
985
|
+
$expectedCoreSha: String,
|
|
986
|
+
$imageEvidence: JSON
|
|
987
|
+
) {
|
|
988
|
+
runRuntimeDemoPreflight(
|
|
989
|
+
workspaceId: $workspaceId,
|
|
990
|
+
expectedCoreSha: $expectedCoreSha,
|
|
991
|
+
imageEvidence: $imageEvidence
|
|
992
|
+
) {
|
|
993
|
+
id workspaceId actor overallStatus
|
|
994
|
+
coreVersion cliVersion
|
|
995
|
+
frontendImageSha mobileImageSha backendImageSha cliImageSha
|
|
996
|
+
metadataInstallIds businessDataInstallIds
|
|
997
|
+
deploymentReportId gateReportId auditId agentId
|
|
998
|
+
checks blockers createdAt
|
|
999
|
+
}
|
|
1000
|
+
}`, input);
|
|
1001
|
+
return response.runRuntimeDemoPreflight;
|
|
1002
|
+
}
|
|
1003
|
+
async getRuntimeDemoPreflightReport(input) {
|
|
1004
|
+
const response = await this.graphql(`query RuntimeDemoPreflightReport($workspaceId: String!, $preflightReportId: String!) {
|
|
1005
|
+
runtimeDemoPreflightReport(workspaceId: $workspaceId, preflightReportId: $preflightReportId) {
|
|
1006
|
+
id workspaceId actor overallStatus
|
|
1007
|
+
coreVersion cliVersion
|
|
1008
|
+
frontendImageSha mobileImageSha backendImageSha cliImageSha
|
|
1009
|
+
metadataInstallIds businessDataInstallIds
|
|
1010
|
+
deploymentReportId gateReportId auditId agentId
|
|
1011
|
+
checks blockers createdAt
|
|
1012
|
+
}
|
|
1013
|
+
}`, input);
|
|
1014
|
+
return response.runtimeDemoPreflightReport;
|
|
1015
|
+
}
|
|
1016
|
+
async registerMetadataInstall(input) {
|
|
1017
|
+
const response = await this.graphql(`mutation RegisterMetadataInstall(
|
|
1018
|
+
$workspaceId: String!,
|
|
1019
|
+
$packageName: String!,
|
|
1020
|
+
$version: String!,
|
|
1021
|
+
$installedStateId: String!,
|
|
1022
|
+
$compatibleCoreSha: String!,
|
|
1023
|
+
$auditId: String,
|
|
1024
|
+
$sourceUri: String
|
|
1025
|
+
) {
|
|
1026
|
+
registerMetadataInstall(
|
|
1027
|
+
workspaceId: $workspaceId,
|
|
1028
|
+
packageName: $packageName,
|
|
1029
|
+
version: $version,
|
|
1030
|
+
installedStateId: $installedStateId,
|
|
1031
|
+
compatibleCoreSha: $compatibleCoreSha,
|
|
1032
|
+
auditId: $auditId,
|
|
1033
|
+
sourceUri: $sourceUri
|
|
1034
|
+
)
|
|
1035
|
+
}`, input);
|
|
1036
|
+
return response.registerMetadataInstall;
|
|
1037
|
+
}
|
|
1038
|
+
async registerBusinessDataInstall(input) {
|
|
1039
|
+
const response = await this.graphql(`mutation RegisterBusinessDataInstall(
|
|
1040
|
+
$workspaceId: String!,
|
|
1041
|
+
$contractName: String!,
|
|
1042
|
+
$contractVersion: String!,
|
|
1043
|
+
$compatibleCoreSha: String!,
|
|
1044
|
+
$sourceUri: String,
|
|
1045
|
+
$auditId: String,
|
|
1046
|
+
$summary: JSON
|
|
1047
|
+
) {
|
|
1048
|
+
registerBusinessDataInstall(
|
|
1049
|
+
workspaceId: $workspaceId,
|
|
1050
|
+
contractName: $contractName,
|
|
1051
|
+
contractVersion: $contractVersion,
|
|
1052
|
+
compatibleCoreSha: $compatibleCoreSha,
|
|
1053
|
+
sourceUri: $sourceUri,
|
|
1054
|
+
auditId: $auditId,
|
|
1055
|
+
summary: $summary
|
|
1056
|
+
)
|
|
1057
|
+
}`, input);
|
|
1058
|
+
return response.registerBusinessDataInstall;
|
|
1059
|
+
}
|
|
1060
|
+
async listMetadataInstallations(workspaceId) {
|
|
1061
|
+
const response = await this.graphql(`query MetadataInstallationRecords($workspaceId: String!) {
|
|
1062
|
+
metadataInstallationRecords(workspaceId: $workspaceId)
|
|
1063
|
+
}`, { workspaceId });
|
|
1064
|
+
return response.metadataInstallationRecords ?? [];
|
|
1065
|
+
}
|
|
1066
|
+
async listBusinessDataInstallations(workspaceId) {
|
|
1067
|
+
const response = await this.graphql(`query BusinessDataInstallationRecords($workspaceId: String!) {
|
|
1068
|
+
businessDataInstallationRecords(workspaceId: $workspaceId)
|
|
1069
|
+
}`, { workspaceId });
|
|
1070
|
+
return response.businessDataInstallationRecords ?? [];
|
|
1071
|
+
}
|
|
1072
|
+
async upgradeMetadataPackage(input) {
|
|
1073
|
+
const response = await this.graphql(`mutation UpgradeMetadataPackage(
|
|
1074
|
+
$workspaceId: String!,
|
|
1075
|
+
$manifest: JSON!,
|
|
1076
|
+
$allowDestructiveChanges: Boolean,
|
|
1077
|
+
$packageDirectory: String,
|
|
1078
|
+
$archivePath: String,
|
|
1079
|
+
$serializerChangeSetId: String,
|
|
1080
|
+
$coreVersion: String
|
|
1081
|
+
) {
|
|
1082
|
+
upgradeMetadataPackage(
|
|
1083
|
+
workspaceId: $workspaceId,
|
|
1084
|
+
manifest: $manifest,
|
|
1085
|
+
allowDestructiveChanges: $allowDestructiveChanges,
|
|
1086
|
+
packageDirectory: $packageDirectory,
|
|
1087
|
+
archivePath: $archivePath,
|
|
1088
|
+
serializerChangeSetId: $serializerChangeSetId,
|
|
1089
|
+
coreVersion: $coreVersion
|
|
1090
|
+
)
|
|
1091
|
+
}`, input);
|
|
1092
|
+
return response.upgradeMetadataPackage;
|
|
1093
|
+
}
|
|
1094
|
+
async uninstallMetadataPackage(input) {
|
|
1095
|
+
const response = await this.graphql(`mutation UninstallMetadataPackage(
|
|
1096
|
+
$workspaceId: String!,
|
|
1097
|
+
$packageName: String!,
|
|
1098
|
+
$force: Boolean,
|
|
1099
|
+
$purgeMetadata: Boolean
|
|
1100
|
+
) {
|
|
1101
|
+
uninstallMetadataPackage(
|
|
1102
|
+
workspaceId: $workspaceId,
|
|
1103
|
+
packageName: $packageName,
|
|
1104
|
+
force: $force,
|
|
1105
|
+
purgeMetadata: $purgeMetadata
|
|
1106
|
+
)
|
|
1107
|
+
}`, input);
|
|
1108
|
+
return response.uninstallMetadataPackage;
|
|
1109
|
+
}
|
|
1110
|
+
async rollbackMetadataPackageInstall(input) {
|
|
1111
|
+
const response = await this.graphql(`mutation RollbackMetadataPackageInstall(
|
|
1112
|
+
$workspaceId: String!,
|
|
1113
|
+
$manifest: JSON!,
|
|
1114
|
+
$deploymentHistoryId: String,
|
|
1115
|
+
$targetStateId: String,
|
|
1116
|
+
$cascade: Boolean,
|
|
1117
|
+
$dryRun: Boolean
|
|
1118
|
+
) {
|
|
1119
|
+
rollbackMetadataPackageInstall(
|
|
1120
|
+
workspaceId: $workspaceId,
|
|
1121
|
+
manifest: $manifest,
|
|
1122
|
+
deploymentHistoryId: $deploymentHistoryId,
|
|
1123
|
+
targetStateId: $targetStateId,
|
|
1124
|
+
cascade: $cascade,
|
|
1125
|
+
dryRun: $dryRun
|
|
1126
|
+
)
|
|
1127
|
+
}`, input);
|
|
1128
|
+
return response.rollbackMetadataPackageInstall;
|
|
1129
|
+
}
|
|
1130
|
+
async runtimeComposerPreview(input) {
|
|
1131
|
+
const response = await this.graphql(`query RuntimeComposerPreview($input: JSON!, $registryRootDirectories: [String!]) {
|
|
1132
|
+
runtimeComposerPreview(
|
|
1133
|
+
input: $input,
|
|
1134
|
+
registryRootDirectories: $registryRootDirectories
|
|
1135
|
+
)
|
|
1136
|
+
}`, input);
|
|
1137
|
+
return response.runtimeComposerPreview;
|
|
1138
|
+
}
|
|
1139
|
+
async rollbackDeployment(input) {
|
|
1140
|
+
const response = await this.graphql(`mutation RollbackDeployment($historyId: ID!, $componentIds: [String!]) {
|
|
1141
|
+
rollbackDeployment(historyId: $historyId, componentIds: $componentIds) {
|
|
1142
|
+
id
|
|
1143
|
+
result
|
|
1144
|
+
errorMessage
|
|
1145
|
+
}
|
|
1146
|
+
}`, input);
|
|
1147
|
+
return response.rollbackDeployment;
|
|
1148
|
+
}
|
|
1149
|
+
async promoteSandbox(input) {
|
|
1150
|
+
const response = await this.graphql(`mutation PromoteSandbox($input: PromoteSandboxInput!) {
|
|
1151
|
+
promoteSandbox(input: $input)
|
|
1152
|
+
}`, { input });
|
|
1153
|
+
return response.promoteSandbox;
|
|
1154
|
+
}
|
|
1155
|
+
async getSandboxPromotionPrecheck(input) {
|
|
1156
|
+
const response = await this.graphql(`query PromotionPrecheck($input: PromotionPrecheckInput!) {
|
|
1157
|
+
promotionPrecheck(input: $input) {
|
|
1158
|
+
canPromote
|
|
1159
|
+
warnings
|
|
1160
|
+
errors
|
|
1161
|
+
frontendDiff {
|
|
1162
|
+
from
|
|
1163
|
+
to
|
|
1164
|
+
changes
|
|
1165
|
+
}
|
|
1166
|
+
backendDiff {
|
|
1167
|
+
from
|
|
1168
|
+
to
|
|
1169
|
+
changes
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}`, { input });
|
|
1173
|
+
return response.promotionPrecheck;
|
|
1174
|
+
}
|
|
1175
|
+
async codeEnvironmentPromotionPlan(input) {
|
|
1176
|
+
const response = await this.graphql(`query CodeEnvironmentPromotionPlan($input: JSON!) {
|
|
1177
|
+
codeEnvironmentPromotionPlan(input: $input)
|
|
1178
|
+
}`, { input });
|
|
1179
|
+
return response.codeEnvironmentPromotionPlan;
|
|
1180
|
+
}
|
|
1181
|
+
async promoteCodeEnvironment(input) {
|
|
1182
|
+
const response = await this.graphql(`mutation PromoteCodeEnvironment($input: JSON!) {
|
|
1183
|
+
promoteCodeEnvironment(input: $input)
|
|
1184
|
+
}`, { input });
|
|
1185
|
+
return response.promoteCodeEnvironment;
|
|
1186
|
+
}
|
|
1187
|
+
async listInstalledMetadataPackages(input) {
|
|
1188
|
+
const response = await this.graphql(`query InstalledMetadataPackages($workspaceId: String!, $includeUninstalled: Boolean) {
|
|
1189
|
+
installedMetadataPackages(
|
|
1190
|
+
workspaceId: $workspaceId,
|
|
1191
|
+
includeUninstalled: $includeUninstalled
|
|
1192
|
+
) {
|
|
1193
|
+
id
|
|
1194
|
+
workspaceId
|
|
1195
|
+
packageName
|
|
1196
|
+
version
|
|
1197
|
+
packageDigest
|
|
1198
|
+
installSource
|
|
1199
|
+
status
|
|
1200
|
+
installedAt
|
|
1201
|
+
updatedAt
|
|
1202
|
+
manifest
|
|
1203
|
+
}
|
|
1204
|
+
}`, input);
|
|
1205
|
+
return response.installedMetadataPackages;
|
|
1206
|
+
}
|
|
1207
|
+
async listMetadataPackageInstallHistory(input) {
|
|
1208
|
+
const response = await this.graphql(`query MetadataPackageInstallHistory($workspaceId: String!, $packageName: String) {
|
|
1209
|
+
metadataPackageInstallHistory(
|
|
1210
|
+
workspaceId: $workspaceId,
|
|
1211
|
+
packageName: $packageName
|
|
1212
|
+
) {
|
|
1213
|
+
id
|
|
1214
|
+
workspaceId
|
|
1215
|
+
packageName
|
|
1216
|
+
version
|
|
1217
|
+
action
|
|
1218
|
+
status
|
|
1219
|
+
installSource
|
|
1220
|
+
sourceUri
|
|
1221
|
+
manifest
|
|
1222
|
+
details
|
|
1223
|
+
sourceStateId
|
|
1224
|
+
targetStateId
|
|
1225
|
+
rollbackDetails
|
|
1226
|
+
createdAt
|
|
1227
|
+
}
|
|
1228
|
+
}`, input);
|
|
1229
|
+
return response.metadataPackageInstallHistory;
|
|
1230
|
+
}
|
|
1231
|
+
async verifyMetadataPackageSnapshots(input) {
|
|
1232
|
+
const response = await this.graphql(`query VerifyMetadataPackageSnapshots($workspaceId: String!, $packageName: String!) {
|
|
1233
|
+
verifyMetadataPackageSnapshots(
|
|
1234
|
+
workspaceId: $workspaceId,
|
|
1235
|
+
packageName: $packageName
|
|
1236
|
+
)
|
|
1237
|
+
}`, input);
|
|
1238
|
+
return response.verifyMetadataPackageSnapshots;
|
|
1239
|
+
}
|
|
1240
|
+
async promotePackage(input) {
|
|
1241
|
+
const res = await this.post('/api/registry/promotions', input);
|
|
1242
|
+
if (!res.success || !res.data) {
|
|
1243
|
+
throw new Error(res.error || '创建 promotion 失败');
|
|
1244
|
+
}
|
|
1245
|
+
return res.data.promotion;
|
|
1246
|
+
}
|
|
1247
|
+
async getPromotionHistory(input) {
|
|
1248
|
+
const params = new URLSearchParams();
|
|
1249
|
+
for (const [key, value] of Object.entries(input)) {
|
|
1250
|
+
if (value) {
|
|
1251
|
+
params.set(key, value);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
const res = await this.get(`/api/registry/promotions?${params.toString()}`);
|
|
1255
|
+
if (!res.success || !res.data) {
|
|
1256
|
+
throw new Error(res.error || '查询 promotion 历史失败');
|
|
1257
|
+
}
|
|
1258
|
+
return res.data.promotions;
|
|
1259
|
+
}
|
|
1260
|
+
async getPromotion(id) {
|
|
1261
|
+
const res = await this.get(`/api/registry/promotions/${encodeURIComponent(id)}`);
|
|
1262
|
+
if (!res.success || !res.data) {
|
|
1263
|
+
throw new Error(res.error || '查询 promotion 失败');
|
|
1264
|
+
}
|
|
1265
|
+
return res.data.promotion;
|
|
1266
|
+
}
|
|
1267
|
+
async getRolloutStatus(input) {
|
|
1268
|
+
const params = new URLSearchParams({ channel: input.channel });
|
|
1269
|
+
const res = await this.get(`/api/registry/rollouts/${encodeURIComponent(input.packageName)}/${encodeURIComponent(input.version)}?${params.toString()}`);
|
|
1270
|
+
if (!res.success) {
|
|
1271
|
+
throw new Error(res.error || '查询 rollout 状态失败');
|
|
1272
|
+
}
|
|
1273
|
+
return res.data ?? null;
|
|
1274
|
+
}
|
|
1275
|
+
async updateRolloutPercentage(input) {
|
|
1276
|
+
const res = await this.put(`/api/registry/rollouts/${encodeURIComponent(input.packageName)}/${encodeURIComponent(input.version)}`, input);
|
|
1277
|
+
if (!res.success || !res.data) {
|
|
1278
|
+
throw new Error(res.error || '更新 rollout 失败');
|
|
1279
|
+
}
|
|
1280
|
+
return res.data.rollout;
|
|
1281
|
+
}
|
|
1282
|
+
async getRolloutWorkspaces(input) {
|
|
1283
|
+
const params = new URLSearchParams({ channel: input.channel });
|
|
1284
|
+
if (typeof input.limit === 'number') {
|
|
1285
|
+
params.set('limit', String(input.limit));
|
|
1286
|
+
}
|
|
1287
|
+
const res = await this.get(`/api/registry/rollouts/${encodeURIComponent(input.packageName)}/${encodeURIComponent(input.version)}/workspaces?${params.toString()}`);
|
|
1288
|
+
if (!res.success || !res.data) {
|
|
1289
|
+
throw new Error(res.error || '查询 rollout workspaces 失败');
|
|
1290
|
+
}
|
|
1291
|
+
return res.data.workspaces;
|
|
1292
|
+
}
|
|
1293
|
+
async deprecatePackageVersion(input) {
|
|
1294
|
+
const res = await this.post('/api/registry/deprecations', input);
|
|
1295
|
+
if (!res.success || !res.data) {
|
|
1296
|
+
throw new Error(res.error || '标记 package deprecated 失败');
|
|
1297
|
+
}
|
|
1298
|
+
return res.data.deprecation;
|
|
1299
|
+
}
|
|
1300
|
+
async getChannelPolicy() {
|
|
1301
|
+
const res = await this.get('/api/registry/channel-policy');
|
|
1302
|
+
if (!res.success || !res.data) {
|
|
1303
|
+
throw new Error(res.error || '查询 channel policy 失败');
|
|
1304
|
+
}
|
|
1305
|
+
return res.data;
|
|
1306
|
+
}
|
|
1307
|
+
async grantChannelAccess(input) {
|
|
1308
|
+
const res = await this.post('/api/registry/entitlements', input);
|
|
1309
|
+
if (!res.success || !res.data) {
|
|
1310
|
+
throw new Error(res.error || '授予 channel entitlement 失败');
|
|
1311
|
+
}
|
|
1312
|
+
return res.data.entitlement;
|
|
1313
|
+
}
|
|
1314
|
+
async revokeChannelAccess(input) {
|
|
1315
|
+
const res = await this.post(`/api/registry/entitlements/${encodeURIComponent(input.entitlementId)}/revoke`, { reason: input.reason });
|
|
1316
|
+
if (!res.success || !res.data) {
|
|
1317
|
+
throw new Error(res.error || '撤销 channel entitlement 失败');
|
|
1318
|
+
}
|
|
1319
|
+
return res.data.entitlement;
|
|
1320
|
+
}
|
|
1321
|
+
async listChannelEntitlements(input) {
|
|
1322
|
+
const params = new URLSearchParams();
|
|
1323
|
+
if (input.status) {
|
|
1324
|
+
params.set('status', input.status);
|
|
1325
|
+
}
|
|
1326
|
+
const res = await this.get(`/api/registry/entitlements/workspace/${encodeURIComponent(input.workspaceId)}?${params.toString()}`);
|
|
1327
|
+
if (!res.success || !res.data) {
|
|
1328
|
+
throw new Error(res.error || '查询 channel entitlements 失败');
|
|
1329
|
+
}
|
|
1330
|
+
return res.data.entitlements;
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
exports.ApiClient = ApiClient;
|
|
1334
|
+
function createApiClient(targetOrg, requestTimeoutMs) {
|
|
1335
|
+
const timeoutMs = normalizeRequestTimeoutMs(requestTimeoutMs);
|
|
1336
|
+
if (targetOrg) {
|
|
1337
|
+
const credential = (0, auth_store_1.loadCredential)(targetOrg);
|
|
1338
|
+
if (!credential) {
|
|
1339
|
+
throw new Error(`未找到 org 凭据: ${targetOrg}`);
|
|
1340
|
+
}
|
|
1341
|
+
return new ApiClient(credential.instanceUrl, credential.accessToken, targetOrg, timeoutMs);
|
|
1342
|
+
}
|
|
1343
|
+
if (process.env.NEXUS_BASE_URL || process.env.NEXUS_AUTH_TOKEN) {
|
|
1344
|
+
return new ApiClient(undefined, undefined, undefined, timeoutMs);
|
|
1345
|
+
}
|
|
1346
|
+
const credential = (0, auth_store_1.getDefaultCredential)();
|
|
1347
|
+
if (credential) {
|
|
1348
|
+
return new ApiClient(credential.instanceUrl, credential.accessToken, credential.alias, timeoutMs);
|
|
1349
|
+
}
|
|
1350
|
+
return new ApiClient(undefined, undefined, undefined, timeoutMs);
|
|
1351
|
+
}
|
|
1352
|
+
//# sourceMappingURL=api-client.js.map
|