@nexusclawhq/cli 0.3.76 → 0.3.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/build-info.json +4 -4
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.d.ts +99 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.d.ts +23 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js +26 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.d.ts +59 -9
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js +99 -15
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-eval-cases.types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.d.ts +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js +163 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-binding.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.d.ts +53 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js +179 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill-composite.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js +408 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.catalog.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.d.ts +14 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js +119 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.contract.fixture.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js +70 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.fixture.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.d.ts +55 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js +138 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.transport.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.d.ts +197 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js +412 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/employee-skill.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.d.ts +577 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js +742 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.schemas.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.d.ts +85 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.d.ts +14 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js +111 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/evidence-case.validation.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.d.ts +44 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/image-evidence.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.d.ts +11 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js +11 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.d.ts +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js +50 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-prompt-policy/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.d.ts +178 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js +280 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js +18 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.d.ts +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/effective-agent-manifest.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.d.ts +32 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js +87 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/handoff-evidence.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js +5 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +0 -12
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js +27 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/validator.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.d.ts +39 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js +27 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-flow-graph.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.d.ts +19 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js +28 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/enterprise-integration-nodes.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.d.ts +8 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js +35 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/external-reference.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +6 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +6 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +642 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +686 -21
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +1284 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +642 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +687 -22
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js +5 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.d.ts +24 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js +66 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.d.ts +0 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js +10 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.d.ts +16 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js +37 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/referenceView.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.d.ts +9 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.d.ts +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.d.ts +22 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js +90 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +12 -0
- package/dist/nexus-cli/src/cli.js +1 -0
- package/dist/nexus-cli/src/cli.js.map +1 -1
- package/dist/nexus-cli/src/cli.positional.test.d.ts +1 -0
- package/dist/nexus-cli/src/cli.positional.test.js +33 -0
- package/dist/nexus-cli/src/cli.positional.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/help.test.js +4 -4
- package/dist/nexus-cli/src/commands/generate/component.js +14 -1
- package/dist/nexus-cli/src/commands/generate/component.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js +13 -3
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.js +26 -8
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/candidate.js +9 -2
- package/dist/nexus-cli/src/commands/package/candidate.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-contract-coverage-baseline.json +5 -5
- package/dist/nexus-cli/src/contracts/command-contract.registry.js +2 -2
- package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-inventory.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.exporter.test.js +2 -2
- package/dist/nexus-cli/src/contracts/command-policy.registry.js +1 -1
- package/dist/nexus-cli/src/contracts/command-policy.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-policy.registry.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-routing.d.ts +25 -0
- package/dist/nexus-cli/src/contracts/command-routing.js +488 -0
- package/dist/nexus-cli/src/contracts/command-routing.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js +73 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js.map +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.d.ts +40 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js +234 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js.map +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js +65 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js.map +1 -0
- package/dist/nexus-cli/src/runtime/actionable-error.js +5 -0
- package/dist/nexus-cli/src/runtime/actionable-error.js.map +1 -1
- package/dist/nexus-cli/src/runtime/output-coordinator.js +7 -1
- package/dist/nexus-cli/src/runtime/output-coordinator.js.map +1 -1
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js +1 -0
- package/dist/nexus-cli/src/services/ai-context-signing-key-cache.js.map +1 -1
- package/dist/nexus-cli/src/services/api-client.d.ts +1 -0
- package/dist/nexus-cli/src/services/api-client.js +14 -4
- package/dist/nexus-cli/src/services/api-client.js.map +1 -1
- package/dist/nexus-cli/src/services/code-authoring-local.js +3 -1
- package/dist/nexus-cli/src/services/code-authoring-local.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/baseline-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/drift-calculator.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js +2 -0
- package/dist/nexus-cli/src/services/revision-ledger/ledger-storage.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/migration-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/page-source-baseline-store.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js +5 -0
- package/dist/nexus-cli/src/services/revision-ledger/revision-service.js.map +1 -1
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js +1 -0
- package/dist/nexus-cli/src/services/revision-ledger/rollback-service.js.map +1 -1
- package/dist/nexus-cli/src/services/sse-client.js +7 -2
- package/dist/nexus-cli/src/services/sse-client.js.map +1 -1
- package/dist/nexus-cli/src/services/step-up-helper.js +1 -0
- package/dist/nexus-cli/src/services/step-up-helper.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.js +12 -7
- package/dist/nexus-cli/src/services/target-context.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.test.js +7 -0
- package/dist/nexus-cli/src/services/target-context.test.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-bundle-archive.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-remote-operations.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
- package/dist/nexus-cli/src/services/workspace-health.js +10 -5
- package/dist/nexus-cli/src/services/workspace-health.js.map +1 -1
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.d.ts +11 -2
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js +11 -1
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js.map +1 -1
- package/dist/nexus-cli/src/templates/component.ts.tpl +9 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EMPLOYEE_SKILL_BINDING_SCHEMA_VERSION } from './contract-versions';
|
|
2
|
+
import { type EmployeeSkillProviderFamily } from './employee-skill.types';
|
|
3
|
+
export type EmployeeSkillBindingStatus = 'draft' | 'enabled' | 'disabled' | 'revoked';
|
|
4
|
+
export interface EmployeeSkillTargetScopeV1 {
|
|
5
|
+
readonly product: string;
|
|
6
|
+
readonly resourceType: string;
|
|
7
|
+
readonly opaqueResourceId: string;
|
|
8
|
+
readonly allowDescendants: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_SCHEMA_VERSION: "nexusclaw.employee-skill-provider-scope-evidence/v1";
|
|
11
|
+
export interface EmployeeSkillProviderScopeEvidenceV1 {
|
|
12
|
+
readonly schemaVersion: typeof EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_SCHEMA_VERSION;
|
|
13
|
+
readonly providerFamily: EmployeeSkillProviderFamily;
|
|
14
|
+
readonly product: string;
|
|
15
|
+
readonly providerWorkspaceRef: string;
|
|
16
|
+
readonly targetScopeRef: string;
|
|
17
|
+
readonly capabilityDigest: `sha256:${string}`;
|
|
18
|
+
readonly operationScopes: readonly string[];
|
|
19
|
+
readonly observedAt: string;
|
|
20
|
+
}
|
|
21
|
+
export interface EmployeeSkillBindingV1 {
|
|
22
|
+
readonly schemaVersion: typeof EMPLOYEE_SKILL_BINDING_SCHEMA_VERSION;
|
|
23
|
+
readonly bindingId: string;
|
|
24
|
+
readonly workspaceId: string;
|
|
25
|
+
readonly agentId: string;
|
|
26
|
+
readonly skillId: string;
|
|
27
|
+
readonly connectionId: string;
|
|
28
|
+
readonly providerWorkspaceRef: string;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly targetScope: EmployeeSkillTargetScopeV1;
|
|
31
|
+
readonly defaultTargetRef?: string;
|
|
32
|
+
readonly operationScopes: readonly string[];
|
|
33
|
+
readonly approvalPolicyRef: string;
|
|
34
|
+
readonly revision: number;
|
|
35
|
+
readonly status: EmployeeSkillBindingStatus;
|
|
36
|
+
readonly providerScopeEvidence?: EmployeeSkillProviderScopeEvidenceV1;
|
|
37
|
+
}
|
|
38
|
+
export declare function employeeSkillBindingProductForSkill(skillId: string): string | null;
|
|
39
|
+
export declare function employeeSkillBindingTargetResourceTypes(skillId: string): readonly string[] | null;
|
|
40
|
+
export declare function assertValidEmployeeSkillBinding(value: unknown): asserts value is EmployeeSkillBindingV1;
|
|
41
|
+
export declare function assertValidEmployeeSkillProviderScopeEvidence(value: unknown): asserts value is EmployeeSkillProviderScopeEvidenceV1;
|
|
42
|
+
/**
|
|
43
|
+
* Validates the product and target-scope portion of a binding against the
|
|
44
|
+
* canonical skill family. Provider capability and ancestry evidence remain
|
|
45
|
+
* backend owner responsibilities; this guard only rejects impossible or
|
|
46
|
+
* mismatched client contracts.
|
|
47
|
+
*/
|
|
48
|
+
export declare function assertEmployeeSkillBindingTargetScope(binding: EmployeeSkillBindingV1): void;
|
|
49
|
+
export declare function assertEmployeeSkillBindingProviderScopeEvidence(binding: EmployeeSkillBindingV1): void;
|
|
50
|
+
export declare function assertEmployeeSkillBindingUsable(binding: EmployeeSkillBindingV1, expectedRevision: number): void;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_SCHEMA_VERSION = void 0;
|
|
4
|
+
exports.employeeSkillBindingProductForSkill = employeeSkillBindingProductForSkill;
|
|
5
|
+
exports.employeeSkillBindingTargetResourceTypes = employeeSkillBindingTargetResourceTypes;
|
|
6
|
+
exports.assertValidEmployeeSkillBinding = assertValidEmployeeSkillBinding;
|
|
7
|
+
exports.assertValidEmployeeSkillProviderScopeEvidence = assertValidEmployeeSkillProviderScopeEvidence;
|
|
8
|
+
exports.assertEmployeeSkillBindingTargetScope = assertEmployeeSkillBindingTargetScope;
|
|
9
|
+
exports.assertEmployeeSkillBindingProviderScopeEvidence = assertEmployeeSkillBindingProviderScopeEvidence;
|
|
10
|
+
exports.assertEmployeeSkillBindingUsable = assertEmployeeSkillBindingUsable;
|
|
11
|
+
const contract_versions_1 = require("./contract-versions");
|
|
12
|
+
const employee_skill_types_1 = require("./employee-skill.types");
|
|
13
|
+
exports.EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_SCHEMA_VERSION = 'nexusclaw.employee-skill-provider-scope-evidence/v1';
|
|
14
|
+
const PRODUCT_BY_SKILL_FAMILY = Object.freeze({
|
|
15
|
+
document: 'docs',
|
|
16
|
+
presentation: 'presentation',
|
|
17
|
+
spreadsheet: 'spreadsheet',
|
|
18
|
+
business_table: 'aitable',
|
|
19
|
+
mail: 'mail',
|
|
20
|
+
calendar: 'calendar',
|
|
21
|
+
task: 'task',
|
|
22
|
+
chat: 'chat',
|
|
23
|
+
file: 'file',
|
|
24
|
+
research: 'research',
|
|
25
|
+
social: 'social',
|
|
26
|
+
});
|
|
27
|
+
const TARGET_RESOURCE_TYPES_BY_SKILL_FAMILY = Object.freeze({
|
|
28
|
+
document: Object.freeze(['document', 'folder', 'workspace']),
|
|
29
|
+
presentation: Object.freeze(['presentation', 'folder', 'workspace']),
|
|
30
|
+
spreadsheet: Object.freeze(['spreadsheet', 'sheet', 'workspace']),
|
|
31
|
+
business_table: Object.freeze(['base', 'table', 'view', 'workspace']),
|
|
32
|
+
mail: Object.freeze(['mailbox', 'message', 'workspace']),
|
|
33
|
+
calendar: Object.freeze(['calendar', 'workspace']),
|
|
34
|
+
task: Object.freeze(['project', 'task', 'workspace']),
|
|
35
|
+
chat: Object.freeze(['conversation', 'workspace']),
|
|
36
|
+
file: Object.freeze(['file', 'folder', 'workspace']),
|
|
37
|
+
research: Object.freeze(['workspace']),
|
|
38
|
+
social: Object.freeze(['account', 'workspace']),
|
|
39
|
+
});
|
|
40
|
+
function skillFamily(skillId) {
|
|
41
|
+
return skillId.split('.')[0] ?? '';
|
|
42
|
+
}
|
|
43
|
+
function employeeSkillBindingProductForSkill(skillId) {
|
|
44
|
+
return PRODUCT_BY_SKILL_FAMILY[skillFamily(skillId)] ?? null;
|
|
45
|
+
}
|
|
46
|
+
function employeeSkillBindingTargetResourceTypes(skillId) {
|
|
47
|
+
return TARGET_RESOURCE_TYPES_BY_SKILL_FAMILY[skillFamily(skillId)] ?? null;
|
|
48
|
+
}
|
|
49
|
+
const IDENTIFIER = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
50
|
+
function text(value) {
|
|
51
|
+
return typeof value === 'string' && value.trim().length > 0;
|
|
52
|
+
}
|
|
53
|
+
function hasOnlyKeys(value, keys) {
|
|
54
|
+
const allowed = new Set(keys);
|
|
55
|
+
return Object.keys(value).every((key) => allowed.has(key));
|
|
56
|
+
}
|
|
57
|
+
function isStatus(value) {
|
|
58
|
+
return value === 'draft' || value === 'enabled' || value === 'disabled' || value === 'revoked';
|
|
59
|
+
}
|
|
60
|
+
function assertValidEmployeeSkillBinding(value) {
|
|
61
|
+
const binding = value;
|
|
62
|
+
const scope = binding?.targetScope;
|
|
63
|
+
if (!binding ||
|
|
64
|
+
!hasOnlyKeys(binding, [
|
|
65
|
+
'schemaVersion', 'bindingId', 'workspaceId', 'agentId', 'skillId',
|
|
66
|
+
'connectionId', 'providerWorkspaceRef', 'name', 'targetScope',
|
|
67
|
+
'defaultTargetRef', 'operationScopes', 'approvalPolicyRef', 'revision', 'status',
|
|
68
|
+
'providerScopeEvidence',
|
|
69
|
+
]) ||
|
|
70
|
+
binding.schemaVersion !== contract_versions_1.EMPLOYEE_SKILL_BINDING_SCHEMA_VERSION ||
|
|
71
|
+
!text(binding.bindingId) || !text(binding.workspaceId) || !text(binding.agentId) ||
|
|
72
|
+
!IDENTIFIER.test(binding.skillId ?? '') || !text(binding.connectionId) ||
|
|
73
|
+
!text(binding.providerWorkspaceRef) || !text(binding.name) || !text(binding.approvalPolicyRef) ||
|
|
74
|
+
!Number.isInteger(binding.revision) || binding.revision < 1 || !isStatus(binding.status) ||
|
|
75
|
+
!Array.isArray(binding.operationScopes) ||
|
|
76
|
+
!binding.operationScopes.every((scopeName) => text(scopeName) && IDENTIFIER.test(scopeName)) ||
|
|
77
|
+
!scope || !hasOnlyKeys(scope, ['product', 'resourceType', 'opaqueResourceId', 'allowDescendants']) ||
|
|
78
|
+
!text(scope.product) || !text(scope.resourceType) || !text(scope.opaqueResourceId) ||
|
|
79
|
+
typeof scope.allowDescendants !== 'boolean' ||
|
|
80
|
+
(binding.defaultTargetRef !== undefined && !text(binding.defaultTargetRef))) {
|
|
81
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_SCHEMA_DRIFT');
|
|
82
|
+
}
|
|
83
|
+
if (binding.providerScopeEvidence !== undefined) {
|
|
84
|
+
assertValidEmployeeSkillProviderScopeEvidence(binding.providerScopeEvidence);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function assertValidEmployeeSkillProviderScopeEvidence(value) {
|
|
88
|
+
const evidence = value;
|
|
89
|
+
const digest = evidence?.capabilityDigest;
|
|
90
|
+
const observedAt = typeof evidence?.observedAt === 'string' ? Date.parse(evidence.observedAt) : Number.NaN;
|
|
91
|
+
if (!evidence ||
|
|
92
|
+
!hasOnlyKeys(evidence, [
|
|
93
|
+
'schemaVersion', 'providerFamily', 'product', 'providerWorkspaceRef',
|
|
94
|
+
'targetScopeRef', 'capabilityDigest', 'operationScopes', 'observedAt',
|
|
95
|
+
]) ||
|
|
96
|
+
evidence.schemaVersion !== exports.EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_SCHEMA_VERSION ||
|
|
97
|
+
!['dingtalk', 'feishu', 'tencent'].includes(evidence.providerFamily ?? '') ||
|
|
98
|
+
!text(evidence.product) ||
|
|
99
|
+
!text(evidence.providerWorkspaceRef) ||
|
|
100
|
+
!text(evidence.targetScopeRef) ||
|
|
101
|
+
typeof digest !== 'string' ||
|
|
102
|
+
!/^sha256:[0-9a-f]{64}$/.test(digest) ||
|
|
103
|
+
!Array.isArray(evidence.operationScopes) ||
|
|
104
|
+
!evidence.operationScopes.every((scope) => text(scope) && IDENTIFIER.test(scope)) ||
|
|
105
|
+
!Number.isFinite(observedAt)) {
|
|
106
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_INVALID');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Validates the product and target-scope portion of a binding against the
|
|
111
|
+
* canonical skill family. Provider capability and ancestry evidence remain
|
|
112
|
+
* backend owner responsibilities; this guard only rejects impossible or
|
|
113
|
+
* mismatched client contracts.
|
|
114
|
+
*/
|
|
115
|
+
function assertEmployeeSkillBindingTargetScope(binding) {
|
|
116
|
+
assertValidEmployeeSkillBinding(binding);
|
|
117
|
+
const expectedProduct = employeeSkillBindingProductForSkill(binding.skillId);
|
|
118
|
+
if (expectedProduct && binding.targetScope.product !== expectedProduct) {
|
|
119
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_PRODUCT_MISMATCH');
|
|
120
|
+
}
|
|
121
|
+
const allowedResourceTypes = employeeSkillBindingTargetResourceTypes(binding.skillId);
|
|
122
|
+
if (allowedResourceTypes &&
|
|
123
|
+
!allowedResourceTypes.includes(binding.targetScope.resourceType)) {
|
|
124
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_TARGET_SCOPE_INVALID');
|
|
125
|
+
}
|
|
126
|
+
if (binding.targetScope.resourceType === 'document' &&
|
|
127
|
+
binding.targetScope.allowDescendants) {
|
|
128
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_TARGET_SCOPE_INVALID');
|
|
129
|
+
}
|
|
130
|
+
if (binding.defaultTargetRef !== undefined &&
|
|
131
|
+
binding.defaultTargetRef !== binding.targetScope.opaqueResourceId) {
|
|
132
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_TARGET_SCOPE_INVALID');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function assertEmployeeSkillBindingProviderScopeEvidence(binding) {
|
|
136
|
+
if (!binding.providerScopeEvidence) {
|
|
137
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_REQUIRED');
|
|
138
|
+
}
|
|
139
|
+
assertValidEmployeeSkillProviderScopeEvidence(binding.providerScopeEvidence);
|
|
140
|
+
const evidence = binding.providerScopeEvidence;
|
|
141
|
+
const bindingOperationScopes = new Set(binding.operationScopes);
|
|
142
|
+
const evidenceOperationScopes = new Set(evidence.operationScopes);
|
|
143
|
+
if (evidence.product !== binding.targetScope.product ||
|
|
144
|
+
evidence.providerWorkspaceRef !== binding.providerWorkspaceRef ||
|
|
145
|
+
evidence.targetScopeRef !== binding.targetScope.opaqueResourceId ||
|
|
146
|
+
bindingOperationScopes.size !== evidenceOperationScopes.size ||
|
|
147
|
+
[...bindingOperationScopes].some((scope) => !evidenceOperationScopes.has(scope))) {
|
|
148
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_PROVIDER_SCOPE_EVIDENCE_INVALID');
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function assertEmployeeSkillBindingUsable(binding, expectedRevision) {
|
|
152
|
+
assertValidEmployeeSkillBinding(binding);
|
|
153
|
+
if (binding.status === 'revoked' || binding.status === 'disabled') {
|
|
154
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_REVOKED');
|
|
155
|
+
}
|
|
156
|
+
if (binding.status !== 'enabled') {
|
|
157
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_REQUIRED');
|
|
158
|
+
}
|
|
159
|
+
if (binding.revision !== expectedRevision) {
|
|
160
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_BINDING_REVISION_MISMATCH');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=employee-skill-binding.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-skill-binding.types.js","sourceRoot":"","sources":["../../src/agent-executable-assets/employee-skill-binding.types.ts"],"names":[],"mappings":";;;AAgFA,kFAEC;AAED,0FAEC;AAiBD,0EA8BC;AAED,sGAyBC;AAQD,sFA2BC;AAED,0GAmBC;AAED,4EAcC;AAxOD,2DAA4E;AAC5E,iEAAgG;AAenF,QAAA,qDAAqD,GAChE,qDAA8D,CAAC;AA+BjE,MAAM,uBAAuB,GAAqC,MAAM,CAAC,MAAM,CAAC;IAC9E,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAC;AAEH,MAAM,qCAAqC,GAAgD,MAAM,CAAC,MAAM,CAAC;IACvG,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC5D,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACpE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,aA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BAAoB;QAC9D,QAAQ,CAAC,cAAc,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB;QAChE,sBAAsB,CAAC,IAAI,KAAK,uBAAuB,CAAC,IAAI;QAC5D,CAAC,GAAG,sBAAsB,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAChF,CAAC;QACD,MAAM,IAAA,2CAAoB,EAAC,gDAAgD,CAAC,CAAC;IAC/E,CAAC;AACH,CAAC;AAED,SAAgB,gCAAgC,CAC9C,OAA+B,EAC/B,gBAAwB;IAExB,+BAA+B,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAClE,MAAM,IAAA,2CAAoB,EAAC,gCAAgC,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,IAAA,2CAAoB,EAAC,iCAAiC,CAAC,CAAC;IAChE,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,gBAAgB,EAAE,CAAC;QAC1C,MAAM,IAAA,2CAAoB,EAAC,0CAA0C,CAAC,CAAC;IACzE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EMPLOYEE_SKILL_COMPOSITE_SCHEMA_VERSION, EMPLOYEE_SKILL_ROLE_PACKAGE_SCHEMA_VERSION } from './contract-versions';
|
|
2
|
+
export type CompositeApprovalPoint = 'none' | 'before' | 'after';
|
|
3
|
+
export type CompositeCompensationKind = 'none' | 'manual' | 'atomic_skill';
|
|
4
|
+
export interface EmployeeSkillCompositeStepV1 {
|
|
5
|
+
readonly stepId: string;
|
|
6
|
+
/** Canonical atomic skill id; never a provider operation or endpoint. */
|
|
7
|
+
readonly skillId: string;
|
|
8
|
+
readonly dependsOn: readonly string[];
|
|
9
|
+
readonly approvalPoint: CompositeApprovalPoint;
|
|
10
|
+
/** Canonical external write intents, e.g. `calendar.event.create`. */
|
|
11
|
+
readonly writeSet: readonly string[];
|
|
12
|
+
readonly compensation: {
|
|
13
|
+
readonly kind: CompositeCompensationKind;
|
|
14
|
+
readonly skillId?: string;
|
|
15
|
+
readonly actionKey?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Portable composite skill plan. Provider resolution, authorization and
|
|
20
|
+
* execution remain owned by the atomic skill resolver and Agent Runtime.
|
|
21
|
+
*/
|
|
22
|
+
export interface EmployeeSkillCompositeV1 {
|
|
23
|
+
readonly schemaVersion: typeof EMPLOYEE_SKILL_COMPOSITE_SCHEMA_VERSION;
|
|
24
|
+
readonly compositeSkillId: string;
|
|
25
|
+
readonly version: string;
|
|
26
|
+
readonly title: string;
|
|
27
|
+
readonly description: string;
|
|
28
|
+
readonly steps: readonly EmployeeSkillCompositeStepV1[];
|
|
29
|
+
readonly successCriteria: readonly string[];
|
|
30
|
+
readonly owner: string;
|
|
31
|
+
readonly publication: {
|
|
32
|
+
readonly releaseGate: string;
|
|
33
|
+
readonly rollbackOwner: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Portable role package. It contains only canonical skill ids and policy
|
|
38
|
+
* references; it deliberately has no agent identity, provider endpoint or
|
|
39
|
+
* credential fields.
|
|
40
|
+
*/
|
|
41
|
+
export interface EmployeeSkillRolePackageV1 {
|
|
42
|
+
readonly schemaVersion: typeof EMPLOYEE_SKILL_ROLE_PACKAGE_SCHEMA_VERSION;
|
|
43
|
+
readonly rolePackageId: string;
|
|
44
|
+
readonly version: string;
|
|
45
|
+
readonly title: string;
|
|
46
|
+
readonly description: string;
|
|
47
|
+
readonly atomicSkillIds: readonly string[];
|
|
48
|
+
readonly compositeSkillIds: readonly string[];
|
|
49
|
+
readonly policyRefs: readonly string[];
|
|
50
|
+
readonly guardrailRefs: readonly string[];
|
|
51
|
+
}
|
|
52
|
+
export declare function assertValidEmployeeSkillComposite(value: unknown): asserts value is EmployeeSkillCompositeV1;
|
|
53
|
+
export declare function assertValidEmployeeSkillRolePackage(value: unknown): asserts value is EmployeeSkillRolePackageV1;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertValidEmployeeSkillComposite = assertValidEmployeeSkillComposite;
|
|
4
|
+
exports.assertValidEmployeeSkillRolePackage = assertValidEmployeeSkillRolePackage;
|
|
5
|
+
const contract_versions_1 = require("./contract-versions");
|
|
6
|
+
const employee_skill_types_1 = require("./employee-skill.types");
|
|
7
|
+
const IDENTIFIER = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
8
|
+
const PROVIDER_ENDPOINT = /(?:^|\b)(?:https?:\/\/|mcp:\/\/|api\.|endpoint:|server:)/i;
|
|
9
|
+
function assertValidEmployeeSkillComposite(value) {
|
|
10
|
+
const composite = value;
|
|
11
|
+
if (!composite ||
|
|
12
|
+
!hasOnlyKeys(composite, [
|
|
13
|
+
'schemaVersion',
|
|
14
|
+
'compositeSkillId',
|
|
15
|
+
'version',
|
|
16
|
+
'title',
|
|
17
|
+
'description',
|
|
18
|
+
'steps',
|
|
19
|
+
'successCriteria',
|
|
20
|
+
'owner',
|
|
21
|
+
'publication',
|
|
22
|
+
]) ||
|
|
23
|
+
composite.schemaVersion !== contract_versions_1.EMPLOYEE_SKILL_COMPOSITE_SCHEMA_VERSION ||
|
|
24
|
+
!isIdentifier(composite.compositeSkillId) ||
|
|
25
|
+
!hasText(composite.version) ||
|
|
26
|
+
!hasText(composite.title) ||
|
|
27
|
+
!hasText(composite.description) ||
|
|
28
|
+
!Array.isArray(composite.steps) ||
|
|
29
|
+
composite.steps.length === 0 ||
|
|
30
|
+
!Array.isArray(composite.successCriteria) ||
|
|
31
|
+
!composite.successCriteria.length ||
|
|
32
|
+
!composite.successCriteria.every(isSafeText) ||
|
|
33
|
+
!hasText(composite.owner) ||
|
|
34
|
+
!composite.publication ||
|
|
35
|
+
!hasText(composite.publication.releaseGate) ||
|
|
36
|
+
!hasText(composite.publication.rollbackOwner)) {
|
|
37
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_COMPOSITE_SCHEMA_DRIFT');
|
|
38
|
+
}
|
|
39
|
+
const steps = composite.steps;
|
|
40
|
+
const stepIds = new Set();
|
|
41
|
+
for (const step of steps) {
|
|
42
|
+
if (!step ||
|
|
43
|
+
!hasOnlyKeys(step, [
|
|
44
|
+
'stepId',
|
|
45
|
+
'skillId',
|
|
46
|
+
'dependsOn',
|
|
47
|
+
'approvalPoint',
|
|
48
|
+
'writeSet',
|
|
49
|
+
'compensation',
|
|
50
|
+
]) ||
|
|
51
|
+
!isIdentifier(step.stepId) ||
|
|
52
|
+
stepIds.has(step.stepId) ||
|
|
53
|
+
!isIdentifier(step.skillId) ||
|
|
54
|
+
!Array.isArray(step.dependsOn) ||
|
|
55
|
+
!step.dependsOn.every(isIdentifier) ||
|
|
56
|
+
step.dependsOn.includes(step.stepId) ||
|
|
57
|
+
!isApprovalPoint(step.approvalPoint) ||
|
|
58
|
+
!Array.isArray(step.writeSet) ||
|
|
59
|
+
!step.writeSet.every(isSafeText) ||
|
|
60
|
+
!isCompensation(step.compensation)) {
|
|
61
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_COMPOSITE_SCHEMA_DRIFT');
|
|
62
|
+
}
|
|
63
|
+
stepIds.add(step.stepId);
|
|
64
|
+
}
|
|
65
|
+
for (const step of steps) {
|
|
66
|
+
if (step.dependsOn.some((dependency) => !stepIds.has(dependency))) {
|
|
67
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_COMPOSITE_DEPENDENCY_INVALID');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
assertAcyclic(steps);
|
|
71
|
+
}
|
|
72
|
+
function assertValidEmployeeSkillRolePackage(value) {
|
|
73
|
+
const rolePackage = value;
|
|
74
|
+
if (!rolePackage ||
|
|
75
|
+
!hasOnlyKeys(rolePackage, [
|
|
76
|
+
'schemaVersion',
|
|
77
|
+
'rolePackageId',
|
|
78
|
+
'version',
|
|
79
|
+
'title',
|
|
80
|
+
'description',
|
|
81
|
+
'atomicSkillIds',
|
|
82
|
+
'compositeSkillIds',
|
|
83
|
+
'policyRefs',
|
|
84
|
+
'guardrailRefs',
|
|
85
|
+
]) ||
|
|
86
|
+
rolePackage.schemaVersion !== contract_versions_1.EMPLOYEE_SKILL_ROLE_PACKAGE_SCHEMA_VERSION ||
|
|
87
|
+
!isIdentifier(rolePackage.rolePackageId) ||
|
|
88
|
+
!hasText(rolePackage.version) ||
|
|
89
|
+
!hasText(rolePackage.title) ||
|
|
90
|
+
!hasText(rolePackage.description) ||
|
|
91
|
+
!isIdentifierArray(rolePackage.atomicSkillIds) ||
|
|
92
|
+
!isIdentifierArray(rolePackage.compositeSkillIds) ||
|
|
93
|
+
(rolePackage.atomicSkillIds.length === 0 &&
|
|
94
|
+
rolePackage.compositeSkillIds.length === 0) ||
|
|
95
|
+
!hasNoDuplicates([
|
|
96
|
+
...rolePackage.atomicSkillIds,
|
|
97
|
+
...rolePackage.compositeSkillIds,
|
|
98
|
+
]) ||
|
|
99
|
+
!isSafeTextArray(rolePackage.policyRefs) ||
|
|
100
|
+
!isSafeTextArray(rolePackage.guardrailRefs) ||
|
|
101
|
+
hasForbiddenRolePackageKeys(rolePackage)) {
|
|
102
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_ROLE_PACKAGE_SCHEMA_DRIFT');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function assertAcyclic(steps) {
|
|
106
|
+
const byId = new Map(steps.map((step) => [step.stepId, step]));
|
|
107
|
+
const visiting = new Set();
|
|
108
|
+
const visited = new Set();
|
|
109
|
+
const visit = (stepId) => {
|
|
110
|
+
if (visiting.has(stepId)) {
|
|
111
|
+
throw (0, employee_skill_types_1.employeeSkillBlocker)('EMPLOYEE_SKILL_COMPOSITE_DEPENDENCY_CYCLE');
|
|
112
|
+
}
|
|
113
|
+
if (visited.has(stepId))
|
|
114
|
+
return;
|
|
115
|
+
visiting.add(stepId);
|
|
116
|
+
for (const dependency of byId.get(stepId).dependsOn)
|
|
117
|
+
visit(dependency);
|
|
118
|
+
visiting.delete(stepId);
|
|
119
|
+
visited.add(stepId);
|
|
120
|
+
};
|
|
121
|
+
for (const step of steps)
|
|
122
|
+
visit(step.stepId);
|
|
123
|
+
}
|
|
124
|
+
function isCompensation(value) {
|
|
125
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
126
|
+
return false;
|
|
127
|
+
if (!hasOnlyKeys(value, ['kind', 'skillId', 'actionKey']))
|
|
128
|
+
return false;
|
|
129
|
+
const compensation = value;
|
|
130
|
+
if (!isCompensationKind(compensation.kind))
|
|
131
|
+
return false;
|
|
132
|
+
if (compensation.kind === 'atomic_skill')
|
|
133
|
+
return isIdentifier(compensation.skillId);
|
|
134
|
+
if (compensation.kind === 'manual')
|
|
135
|
+
return isSafeText(compensation.actionKey);
|
|
136
|
+
return compensation.skillId === undefined && compensation.actionKey === undefined;
|
|
137
|
+
}
|
|
138
|
+
function isCompensationKind(value) {
|
|
139
|
+
return value === 'none' || value === 'manual' || value === 'atomic_skill';
|
|
140
|
+
}
|
|
141
|
+
function isApprovalPoint(value) {
|
|
142
|
+
return value === 'none' || value === 'before' || value === 'after';
|
|
143
|
+
}
|
|
144
|
+
function isIdentifierArray(value) {
|
|
145
|
+
return Array.isArray(value) && value.every(isIdentifier);
|
|
146
|
+
}
|
|
147
|
+
function hasNoDuplicates(values) {
|
|
148
|
+
return new Set(values).size === values.length;
|
|
149
|
+
}
|
|
150
|
+
function hasForbiddenRolePackageKeys(value) {
|
|
151
|
+
return [
|
|
152
|
+
'agentKind',
|
|
153
|
+
'isAssistant',
|
|
154
|
+
'identityType',
|
|
155
|
+
'serviceUserId',
|
|
156
|
+
'roleId',
|
|
157
|
+
'providerEndpoint',
|
|
158
|
+
'credential',
|
|
159
|
+
].some((key) => Object.prototype.hasOwnProperty.call(value, key));
|
|
160
|
+
}
|
|
161
|
+
function hasOnlyKeys(value, allowed) {
|
|
162
|
+
return (value !== null &&
|
|
163
|
+
typeof value === 'object' &&
|
|
164
|
+
!Array.isArray(value) &&
|
|
165
|
+
Object.keys(value).every((key) => allowed.includes(key)));
|
|
166
|
+
}
|
|
167
|
+
function isSafeTextArray(value) {
|
|
168
|
+
return Array.isArray(value) && value.every(isSafeText);
|
|
169
|
+
}
|
|
170
|
+
function isIdentifier(value) {
|
|
171
|
+
return typeof value === 'string' && IDENTIFIER.test(value);
|
|
172
|
+
}
|
|
173
|
+
function isSafeText(value) {
|
|
174
|
+
return hasText(value) && !PROVIDER_ENDPOINT.test(value);
|
|
175
|
+
}
|
|
176
|
+
function hasText(value) {
|
|
177
|
+
return typeof value === 'string' && value.trim().length > 0;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=employee-skill-composite.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-skill-composite.types.js","sourceRoot":"","sources":["../../src/agent-executable-assets/employee-skill-composite.types.ts"],"names":[],"mappings":";;AA+DA,8EAsEC;AAED,kFAoCC;AA3KD,2DAG6B;AAC7B,iEAA8D;AAwD9D,MAAM,UAAU,GAAG,qCAAqC,CAAC;AACzD,MAAM,iBAAiB,GAAG,2DAA2D,CAAC;AAEtF,SAAgB,iCAAiC,CAC/C,KAAc;IAEd,MAAM,SAAS,GAAG,KAAiD,CAAC;IACpE,IACE,CAAC,SAAS;QACV,CAAC,WAAW,CAAC,SAAS,EAAE;YACtB,eAAe;YACf,kBAAkB;YAClB,SAAS;YACT,OAAO;YACP,aAAa;YACb,OAAO;YACP,iBAAiB;YACjB,OAAO;YACP,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I,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,OAAO,CAAC,KAAc;IAC7B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SkillCatalogCandidate } from './employee-skill.types';
|
|
2
|
+
/**
|
|
3
|
+
* The first customer-facing catalog slice. Every entry is explicitly
|
|
4
|
+
* development-only until a package supplies a provider adapter, capability
|
|
5
|
+
* evidence, connection probe and release-gate receipt.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_EMPLOYEE_SKILL_CATALOG_CANDIDATES: readonly SkillCatalogCandidate[];
|