@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,408 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_EMPLOYEE_SKILL_CATALOG_CANDIDATES = void 0;
|
|
4
|
+
const contract_versions_1 = require("./contract-versions");
|
|
5
|
+
/**
|
|
6
|
+
* Canonical skills that are useful to show before a provider package is
|
|
7
|
+
* onboarded. These are catalog metadata only: the executable descriptor
|
|
8
|
+
* registry remains empty until a released package registers a real skill.
|
|
9
|
+
*
|
|
10
|
+
* Keep Tencent out of this first display set while its onboarding is archived.
|
|
11
|
+
* A future package can add it after a product and connection are confirmed.
|
|
12
|
+
*/
|
|
13
|
+
const ACTIVE_CATALOG_PROVIDERS = Object.freeze(['dingtalk', 'feishu']);
|
|
14
|
+
function catalogSkill(input) {
|
|
15
|
+
return {
|
|
16
|
+
skillId: input.skillId,
|
|
17
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_DESCRIPTOR_SCHEMA_VERSION,
|
|
18
|
+
title: input.title,
|
|
19
|
+
description: input.description,
|
|
20
|
+
group: input.group,
|
|
21
|
+
lifecycleStatus: 'development',
|
|
22
|
+
family: input.family,
|
|
23
|
+
inputSchema: input.inputSchema ?? { type: 'object', additionalProperties: true },
|
|
24
|
+
outputSchema: { type: 'object', additionalProperties: true },
|
|
25
|
+
// Candidate intent is carried separately. `supportedProviders` remains
|
|
26
|
+
// reserved for providers actually registered for runtime resolution.
|
|
27
|
+
supportedProviders: [],
|
|
28
|
+
requiredCapabilities: [input.skillId],
|
|
29
|
+
sideEffectClass: input.sideEffectClass,
|
|
30
|
+
riskLevel: input.riskLevel,
|
|
31
|
+
approvalRequirement: input.approvalRequirement,
|
|
32
|
+
idempotencyMode: input.idempotencyMode,
|
|
33
|
+
verificationContract: {
|
|
34
|
+
required: true,
|
|
35
|
+
checks: input.verificationChecks,
|
|
36
|
+
},
|
|
37
|
+
artifactContract: input.artifactContract,
|
|
38
|
+
learningSignals: ['catalog_interest', 'tool_call', 'outcome'],
|
|
39
|
+
owner: 'employee-skill-catalog',
|
|
40
|
+
publication: {
|
|
41
|
+
releaseGate: 'workforce-release-gate',
|
|
42
|
+
rollbackOwner: 'employee-skill-release-owner',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function catalogCandidate(input) {
|
|
47
|
+
return Object.freeze({
|
|
48
|
+
descriptor: catalogSkill(input),
|
|
49
|
+
plannedProviders: Object.freeze([...ACTIVE_CATALOG_PROVIDERS]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The first customer-facing catalog slice. Every entry is explicitly
|
|
54
|
+
* development-only until a package supplies a provider adapter, capability
|
|
55
|
+
* evidence, connection probe and release-gate receipt.
|
|
56
|
+
*/
|
|
57
|
+
exports.DEFAULT_EMPLOYEE_SKILL_CATALOG_CANDIDATES = Object.freeze([
|
|
58
|
+
catalogCandidate({
|
|
59
|
+
skillId: 'chat.search',
|
|
60
|
+
title: '搜索消息',
|
|
61
|
+
description: '按关键词、时间和会话范围查找已授权的消息,并返回来源引用。',
|
|
62
|
+
group: 'communication',
|
|
63
|
+
family: 'chat',
|
|
64
|
+
sideEffectClass: 'read',
|
|
65
|
+
riskLevel: 'L0',
|
|
66
|
+
approvalRequirement: 'none',
|
|
67
|
+
idempotencyMode: 'provider_query',
|
|
68
|
+
artifactContract: 'external_ref',
|
|
69
|
+
verificationChecks: ['provider_request'],
|
|
70
|
+
}),
|
|
71
|
+
catalogCandidate({
|
|
72
|
+
skillId: 'chat.draft',
|
|
73
|
+
title: '起草消息',
|
|
74
|
+
description: '根据业务上下文生成待审核的消息草稿,不直接发送。',
|
|
75
|
+
group: 'communication',
|
|
76
|
+
family: 'chat',
|
|
77
|
+
sideEffectClass: 'draft',
|
|
78
|
+
riskLevel: 'L1',
|
|
79
|
+
approvalRequirement: 'none',
|
|
80
|
+
idempotencyMode: 'none',
|
|
81
|
+
artifactContract: 'none',
|
|
82
|
+
verificationChecks: ['schema'],
|
|
83
|
+
}),
|
|
84
|
+
catalogCandidate({
|
|
85
|
+
skillId: 'chat.send',
|
|
86
|
+
title: '发送消息',
|
|
87
|
+
description: '向已授权的会话发送消息,支持审批、幂等和发送结果核对。',
|
|
88
|
+
group: 'communication',
|
|
89
|
+
family: 'chat',
|
|
90
|
+
sideEffectClass: 'external_send',
|
|
91
|
+
riskLevel: 'L3',
|
|
92
|
+
approvalRequirement: 'on_external_send',
|
|
93
|
+
idempotencyMode: 'required',
|
|
94
|
+
artifactContract: 'external_ref',
|
|
95
|
+
verificationChecks: ['provider_request', 'message_state'],
|
|
96
|
+
}),
|
|
97
|
+
catalogCandidate({
|
|
98
|
+
skillId: 'mail.search',
|
|
99
|
+
title: '搜索邮件',
|
|
100
|
+
description: '在已授权邮箱中按条件检索邮件,并保留外部邮件引用。',
|
|
101
|
+
group: 'communication',
|
|
102
|
+
family: 'mail',
|
|
103
|
+
sideEffectClass: 'read',
|
|
104
|
+
riskLevel: 'L0',
|
|
105
|
+
approvalRequirement: 'none',
|
|
106
|
+
idempotencyMode: 'provider_query',
|
|
107
|
+
artifactContract: 'external_ref',
|
|
108
|
+
verificationChecks: ['provider_request'],
|
|
109
|
+
}),
|
|
110
|
+
catalogCandidate({
|
|
111
|
+
skillId: 'mail.draft',
|
|
112
|
+
title: '生成邮件草稿',
|
|
113
|
+
description: '根据客户或业务上下文生成邮件草稿,交由人工审核后再发送。',
|
|
114
|
+
group: 'communication',
|
|
115
|
+
family: 'mail',
|
|
116
|
+
sideEffectClass: 'draft',
|
|
117
|
+
riskLevel: 'L1',
|
|
118
|
+
approvalRequirement: 'none',
|
|
119
|
+
idempotencyMode: 'none',
|
|
120
|
+
artifactContract: 'none',
|
|
121
|
+
verificationChecks: ['schema'],
|
|
122
|
+
}),
|
|
123
|
+
catalogCandidate({
|
|
124
|
+
skillId: 'calendar.find_availability',
|
|
125
|
+
title: '查询共同空闲',
|
|
126
|
+
description: '根据参会人和时间范围查询共同空闲时段,不直接创建会议。',
|
|
127
|
+
group: 'communication',
|
|
128
|
+
family: 'calendar',
|
|
129
|
+
sideEffectClass: 'read',
|
|
130
|
+
riskLevel: 'L0',
|
|
131
|
+
approvalRequirement: 'none',
|
|
132
|
+
idempotencyMode: 'provider_query',
|
|
133
|
+
artifactContract: 'external_ref',
|
|
134
|
+
verificationChecks: ['provider_request'],
|
|
135
|
+
inputSchema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
additionalProperties: false,
|
|
138
|
+
required: ['userIds', 'startTime', 'endTime'],
|
|
139
|
+
properties: {
|
|
140
|
+
userIds: {
|
|
141
|
+
type: 'array',
|
|
142
|
+
minItems: 1,
|
|
143
|
+
maxItems: 20,
|
|
144
|
+
items: { type: 'string', minLength: 1 },
|
|
145
|
+
description: '钉钉用户 unionId,最多 20 个。',
|
|
146
|
+
},
|
|
147
|
+
startTime: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
format: 'date-time',
|
|
150
|
+
description: '查询开始时间。',
|
|
151
|
+
},
|
|
152
|
+
endTime: {
|
|
153
|
+
type: 'string',
|
|
154
|
+
format: 'date-time',
|
|
155
|
+
description: '查询结束时间。',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
}),
|
|
160
|
+
catalogCandidate({
|
|
161
|
+
skillId: 'task.create',
|
|
162
|
+
title: '创建待办',
|
|
163
|
+
description: '创建带负责人、截止时间和来源引用的待办事项。',
|
|
164
|
+
group: 'communication',
|
|
165
|
+
family: 'task',
|
|
166
|
+
sideEffectClass: 'write',
|
|
167
|
+
riskLevel: 'L2',
|
|
168
|
+
approvalRequirement: 'on_write',
|
|
169
|
+
idempotencyMode: 'lookup_before_retry',
|
|
170
|
+
artifactContract: 'external_ref',
|
|
171
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
172
|
+
}),
|
|
173
|
+
catalogCandidate({
|
|
174
|
+
skillId: 'document.read',
|
|
175
|
+
title: '读取文档',
|
|
176
|
+
description: '读取已授权的外部文档内容,返回来源、版本和权限范围。',
|
|
177
|
+
group: 'office',
|
|
178
|
+
family: 'document',
|
|
179
|
+
sideEffectClass: 'read',
|
|
180
|
+
riskLevel: 'L0',
|
|
181
|
+
approvalRequirement: 'none',
|
|
182
|
+
idempotencyMode: 'provider_query',
|
|
183
|
+
artifactContract: 'external_ref',
|
|
184
|
+
verificationChecks: ['object_exists', 'revision'],
|
|
185
|
+
}),
|
|
186
|
+
catalogCandidate({
|
|
187
|
+
skillId: 'document.create',
|
|
188
|
+
title: '创建文档',
|
|
189
|
+
description: '在已授权的平台创建文档草稿,保留文档引用和创建结果。',
|
|
190
|
+
group: 'office',
|
|
191
|
+
family: 'document',
|
|
192
|
+
sideEffectClass: 'draft',
|
|
193
|
+
riskLevel: 'L2',
|
|
194
|
+
approvalRequirement: 'on_write',
|
|
195
|
+
idempotencyMode: 'lookup_before_retry',
|
|
196
|
+
artifactContract: 'external_ref',
|
|
197
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
198
|
+
}),
|
|
199
|
+
catalogCandidate({
|
|
200
|
+
skillId: 'presentation.create',
|
|
201
|
+
title: '创建演示文稿',
|
|
202
|
+
description: '创建演示文稿草稿并返回外部演示文稿引用,不在本地实现编辑器。',
|
|
203
|
+
group: 'office',
|
|
204
|
+
family: 'presentation',
|
|
205
|
+
sideEffectClass: 'draft',
|
|
206
|
+
riskLevel: 'L2',
|
|
207
|
+
approvalRequirement: 'on_write',
|
|
208
|
+
idempotencyMode: 'lookup_before_retry',
|
|
209
|
+
artifactContract: 'external_ref',
|
|
210
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
211
|
+
}),
|
|
212
|
+
catalogCandidate({
|
|
213
|
+
skillId: 'spreadsheet.read',
|
|
214
|
+
title: '读取表格',
|
|
215
|
+
description: '读取已授权表格的范围、列和行,并保留外部对象引用。',
|
|
216
|
+
group: 'data',
|
|
217
|
+
family: 'spreadsheet',
|
|
218
|
+
sideEffectClass: 'read',
|
|
219
|
+
riskLevel: 'L0',
|
|
220
|
+
approvalRequirement: 'none',
|
|
221
|
+
idempotencyMode: 'provider_query',
|
|
222
|
+
artifactContract: 'external_ref',
|
|
223
|
+
verificationChecks: ['object_exists', 'revision'],
|
|
224
|
+
}),
|
|
225
|
+
catalogCandidate({
|
|
226
|
+
skillId: 'spreadsheet.write',
|
|
227
|
+
title: '写入表格',
|
|
228
|
+
description: '向已授权表格写入或追加数据,受审批、幂等和结果核对约束。',
|
|
229
|
+
group: 'data',
|
|
230
|
+
family: 'spreadsheet',
|
|
231
|
+
sideEffectClass: 'write',
|
|
232
|
+
riskLevel: 'L2',
|
|
233
|
+
approvalRequirement: 'on_write',
|
|
234
|
+
idempotencyMode: 'required',
|
|
235
|
+
artifactContract: 'external_ref',
|
|
236
|
+
verificationChecks: ['provider_request', 'revision'],
|
|
237
|
+
}),
|
|
238
|
+
catalogCandidate({
|
|
239
|
+
skillId: 'business_table.query',
|
|
240
|
+
title: '查询业务表',
|
|
241
|
+
description: '按筛选、排序和分页读取业务表记录,不绕过平台权限。',
|
|
242
|
+
group: 'data',
|
|
243
|
+
family: 'business_table',
|
|
244
|
+
sideEffectClass: 'read',
|
|
245
|
+
riskLevel: 'L0',
|
|
246
|
+
approvalRequirement: 'none',
|
|
247
|
+
idempotencyMode: 'provider_query',
|
|
248
|
+
artifactContract: 'external_ref',
|
|
249
|
+
verificationChecks: ['provider_request'],
|
|
250
|
+
}),
|
|
251
|
+
catalogCandidate({
|
|
252
|
+
skillId: 'business_table.create',
|
|
253
|
+
title: '创建多维表',
|
|
254
|
+
description: '在已授权的平台创建多维表结构,返回外部表引用并核对创建结果。',
|
|
255
|
+
group: 'data',
|
|
256
|
+
family: 'business_table',
|
|
257
|
+
sideEffectClass: 'write',
|
|
258
|
+
riskLevel: 'L2',
|
|
259
|
+
approvalRequirement: 'on_write',
|
|
260
|
+
idempotencyMode: 'required',
|
|
261
|
+
artifactContract: 'external_ref',
|
|
262
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
263
|
+
}),
|
|
264
|
+
catalogCandidate({
|
|
265
|
+
skillId: 'business_table.upsert',
|
|
266
|
+
title: '新增或更新业务记录',
|
|
267
|
+
description: '按唯一业务键新增或更新记录,保留幂等键和平台回执。',
|
|
268
|
+
group: 'data',
|
|
269
|
+
family: 'business_table',
|
|
270
|
+
sideEffectClass: 'write',
|
|
271
|
+
riskLevel: 'L2',
|
|
272
|
+
approvalRequirement: 'on_write',
|
|
273
|
+
idempotencyMode: 'required',
|
|
274
|
+
artifactContract: 'external_ref',
|
|
275
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
276
|
+
}),
|
|
277
|
+
catalogCandidate({
|
|
278
|
+
skillId: 'file.search',
|
|
279
|
+
title: '搜索文件',
|
|
280
|
+
description: '在已授权文件空间搜索文件和文件夹,并返回可重新打开的外部引用。',
|
|
281
|
+
group: 'data',
|
|
282
|
+
family: 'file',
|
|
283
|
+
sideEffectClass: 'read',
|
|
284
|
+
riskLevel: 'L0',
|
|
285
|
+
approvalRequirement: 'none',
|
|
286
|
+
idempotencyMode: 'provider_query',
|
|
287
|
+
artifactContract: 'external_ref',
|
|
288
|
+
verificationChecks: ['provider_request'],
|
|
289
|
+
}),
|
|
290
|
+
catalogCandidate({
|
|
291
|
+
skillId: 'research.search',
|
|
292
|
+
title: '跨平台检索',
|
|
293
|
+
description: '在已授权连接中检索主题并返回带来源引用的结果摘要。',
|
|
294
|
+
group: 'data',
|
|
295
|
+
family: 'research',
|
|
296
|
+
sideEffectClass: 'read',
|
|
297
|
+
riskLevel: 'L1',
|
|
298
|
+
approvalRequirement: 'none',
|
|
299
|
+
idempotencyMode: 'provider_query',
|
|
300
|
+
artifactContract: 'external_ref',
|
|
301
|
+
verificationChecks: ['provider_request', 'citation'],
|
|
302
|
+
}),
|
|
303
|
+
catalogCandidate({
|
|
304
|
+
skillId: 'social.comment.monitor',
|
|
305
|
+
title: '监控评论',
|
|
306
|
+
description: '监控已授权社交账号的评论变化,供客服和运营跟进。',
|
|
307
|
+
group: 'social',
|
|
308
|
+
family: 'social',
|
|
309
|
+
sideEffectClass: 'read',
|
|
310
|
+
riskLevel: 'L1',
|
|
311
|
+
approvalRequirement: 'none',
|
|
312
|
+
idempotencyMode: 'provider_query',
|
|
313
|
+
artifactContract: 'external_ref',
|
|
314
|
+
verificationChecks: ['provider_request'],
|
|
315
|
+
}),
|
|
316
|
+
catalogCandidate({
|
|
317
|
+
skillId: 'social.comment.classify',
|
|
318
|
+
title: '评论分类',
|
|
319
|
+
description: '对已授权评论进行意图、情绪和优先级分类,不直接回复。',
|
|
320
|
+
group: 'social',
|
|
321
|
+
family: 'social',
|
|
322
|
+
sideEffectClass: 'read',
|
|
323
|
+
riskLevel: 'L1',
|
|
324
|
+
approvalRequirement: 'none',
|
|
325
|
+
idempotencyMode: 'none',
|
|
326
|
+
artifactContract: 'none',
|
|
327
|
+
verificationChecks: ['schema'],
|
|
328
|
+
}),
|
|
329
|
+
catalogCandidate({
|
|
330
|
+
skillId: 'social.comment.draft_reply',
|
|
331
|
+
title: '生成评论回复草稿',
|
|
332
|
+
description: '基于评论上下文生成回复草稿,提交人工审批后再触达外部用户。',
|
|
333
|
+
group: 'social',
|
|
334
|
+
family: 'social',
|
|
335
|
+
sideEffectClass: 'draft',
|
|
336
|
+
riskLevel: 'L2',
|
|
337
|
+
approvalRequirement: 'none',
|
|
338
|
+
idempotencyMode: 'none',
|
|
339
|
+
artifactContract: 'none',
|
|
340
|
+
verificationChecks: ['schema'],
|
|
341
|
+
}),
|
|
342
|
+
catalogCandidate({
|
|
343
|
+
skillId: 'social.reply_after_approval',
|
|
344
|
+
title: '审批后回复',
|
|
345
|
+
description: '仅在审批通过后回复外部评论,并保留平台回执和审计链。',
|
|
346
|
+
group: 'social',
|
|
347
|
+
family: 'social',
|
|
348
|
+
sideEffectClass: 'external_send',
|
|
349
|
+
riskLevel: 'L3',
|
|
350
|
+
approvalRequirement: 'always',
|
|
351
|
+
idempotencyMode: 'required',
|
|
352
|
+
artifactContract: 'external_ref',
|
|
353
|
+
verificationChecks: ['provider_request', 'message_state'],
|
|
354
|
+
}),
|
|
355
|
+
catalogCandidate({
|
|
356
|
+
skillId: 'social.content.publish',
|
|
357
|
+
title: '发布内容',
|
|
358
|
+
description: '在已授权账号发布经过审批的内容,并记录发布结果。',
|
|
359
|
+
group: 'social',
|
|
360
|
+
family: 'social',
|
|
361
|
+
sideEffectClass: 'external_send',
|
|
362
|
+
riskLevel: 'L3',
|
|
363
|
+
approvalRequirement: 'always',
|
|
364
|
+
idempotencyMode: 'required',
|
|
365
|
+
artifactContract: 'external_ref',
|
|
366
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
367
|
+
}),
|
|
368
|
+
catalogCandidate({
|
|
369
|
+
skillId: 'social.performance_read',
|
|
370
|
+
title: '读取内容表现',
|
|
371
|
+
description: '读取已授权内容的互动和转化指标,返回带来源的统计结果。',
|
|
372
|
+
group: 'social',
|
|
373
|
+
family: 'social',
|
|
374
|
+
sideEffectClass: 'read',
|
|
375
|
+
riskLevel: 'L1',
|
|
376
|
+
approvalRequirement: 'none',
|
|
377
|
+
idempotencyMode: 'provider_query',
|
|
378
|
+
artifactContract: 'external_ref',
|
|
379
|
+
verificationChecks: ['provider_request'],
|
|
380
|
+
}),
|
|
381
|
+
catalogCandidate({
|
|
382
|
+
skillId: 'social.account.health_check',
|
|
383
|
+
title: '检查账号健康',
|
|
384
|
+
description: '检查已授权账号的连接、权限和平台健康状态。',
|
|
385
|
+
group: 'social',
|
|
386
|
+
family: 'social',
|
|
387
|
+
sideEffectClass: 'read',
|
|
388
|
+
riskLevel: 'L1',
|
|
389
|
+
approvalRequirement: 'none',
|
|
390
|
+
idempotencyMode: 'provider_query',
|
|
391
|
+
artifactContract: 'none',
|
|
392
|
+
verificationChecks: ['provider_request'],
|
|
393
|
+
}),
|
|
394
|
+
catalogCandidate({
|
|
395
|
+
skillId: 'social.like',
|
|
396
|
+
title: '受限点赞',
|
|
397
|
+
description: '仅在平台能力、客户授权和审批策略全部满足时执行的受限互动动作。',
|
|
398
|
+
group: 'social',
|
|
399
|
+
family: 'social',
|
|
400
|
+
sideEffectClass: 'external_send',
|
|
401
|
+
riskLevel: 'L3',
|
|
402
|
+
approvalRequirement: 'always',
|
|
403
|
+
idempotencyMode: 'required',
|
|
404
|
+
artifactContract: 'external_ref',
|
|
405
|
+
verificationChecks: ['provider_request', 'object_exists'],
|
|
406
|
+
}),
|
|
407
|
+
]);
|
|
408
|
+
//# sourceMappingURL=employee-skill.catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-skill.catalog.js","sourceRoot":"","sources":["../../src/agent-executable-assets/employee-skill.catalog.ts"],"names":[],"mappings":";;;AAAA,2DAE6B;AAW7B;;;;;;;GAOG;AACH,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC,CAAC;AAiBhF,SAAS,YAAY,CAAC,KAAwB;IAC5C,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,aAAa,EAAE,4DAAwC;QACvD,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,eAAe,EAAE,aAAa;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAChF,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAC5D,uEAAuE;QACvE,qEAAqE;QACrE,kBAAkB,EAAE,EAAE;QACtB,oBAAoB,EAAE,CAAC,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K,EAAE,QAAQ;QACf,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,eAAe,EAAE,MAAM;QACvB,SAAS,EAAE,IAAI;QACf,mBAAmB,EAAE,MAAM;QAC3B,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,cAAc;QAChC,kBAAkB,EAAE,CAAC,kBAAkB,CAAC;KACzC,CAAC;IACF,gBAAgB,CAAC;QACf,OAAO,EAAE,6BAA6B;QACtC,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,eAAe,EAAE,MAAM;QACvB,SAAS,EAAE,IAAI;QACf,mBAAmB,EAAE,MAAM;QAC3B,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,MAAM;QACxB,kBAAkB,EAAE,CAAC,kBAAkB,CAAC;KACzC,CAAC;IACF,gBAAgB,CAAC;QACf,OAAO,EAAE,aAAa;QACtB,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,iCAAiC;QAC9C,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,eAAe,EAAE,eAAe;QAChC,SAAS,EAAE,IAAI;QACf,mBAAmB,EAAE,QAAQ;QAC7B,eAAe,EAAE,UAAU;QAC3B,gBAAgB,EAAE,cAAc;QAChC,kBAAkB,EAAE,CAAC,kBAAkB,EAAE,eAAe,CAAC;KAC1D,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExternalArtifactRef, SkillAdapterDescriptor, SkillCapabilityMatrixEntry, SkillDescriptor, SkillInvocation, SkillResult } from './employee-skill.types';
|
|
2
|
+
/**
|
|
3
|
+
* Offline v1 contract fixture. It contains identifiers and digests only; it
|
|
4
|
+
* must never be treated as a provider success or a connection credential.
|
|
5
|
+
*/
|
|
6
|
+
export interface EmployeeSkillContractFixture {
|
|
7
|
+
readonly descriptor: SkillDescriptor;
|
|
8
|
+
readonly adapter: SkillAdapterDescriptor;
|
|
9
|
+
readonly capability: SkillCapabilityMatrixEntry;
|
|
10
|
+
readonly invocation: SkillInvocation;
|
|
11
|
+
readonly artifact: ExternalArtifactRef;
|
|
12
|
+
readonly result: SkillResult;
|
|
13
|
+
}
|
|
14
|
+
export declare const EMPLOYEE_SKILL_CONTRACT_FIXTURE: EmployeeSkillContractFixture;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPLOYEE_SKILL_CONTRACT_FIXTURE = void 0;
|
|
4
|
+
const contract_versions_1 = require("./contract-versions");
|
|
5
|
+
const artifact = {
|
|
6
|
+
schemaVersion: contract_versions_1.EMPLOYEE_EXTERNAL_ARTIFACT_REF_SCHEMA_VERSION,
|
|
7
|
+
providerFamily: 'dingtalk',
|
|
8
|
+
adapterId: 'dingtalk.docs.api',
|
|
9
|
+
product: 'docs',
|
|
10
|
+
objectType: 'document',
|
|
11
|
+
opaqueObjectId: 'external-document-fixture-1',
|
|
12
|
+
revision: 'revision-fixture-1',
|
|
13
|
+
workspaceId: 'workspace-fixture-1',
|
|
14
|
+
permissionContextHash: 'sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
|
15
|
+
createdByExecutionId: 'execution-fixture-1',
|
|
16
|
+
};
|
|
17
|
+
exports.EMPLOYEE_SKILL_CONTRACT_FIXTURE = Object.freeze({
|
|
18
|
+
descriptor: Object.freeze({
|
|
19
|
+
skillId: 'document.read',
|
|
20
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_DESCRIPTOR_SCHEMA_VERSION,
|
|
21
|
+
title: '读取文档',
|
|
22
|
+
description: '读取外部文档内容',
|
|
23
|
+
group: 'office',
|
|
24
|
+
lifecycleStatus: 'released',
|
|
25
|
+
family: 'document',
|
|
26
|
+
inputSchema: Object.freeze({ type: 'object' }),
|
|
27
|
+
outputSchema: Object.freeze({ type: 'object' }),
|
|
28
|
+
supportedProviders: Object.freeze(['dingtalk']),
|
|
29
|
+
requiredCapabilities: Object.freeze(['document.read']),
|
|
30
|
+
sideEffectClass: 'read',
|
|
31
|
+
riskLevel: 'L1',
|
|
32
|
+
approvalRequirement: 'none',
|
|
33
|
+
idempotencyMode: 'provider_query',
|
|
34
|
+
verificationContract: Object.freeze({
|
|
35
|
+
required: true,
|
|
36
|
+
checks: Object.freeze(['object_exists']),
|
|
37
|
+
}),
|
|
38
|
+
artifactContract: 'external_ref',
|
|
39
|
+
learningSignals: Object.freeze(['tool_call']),
|
|
40
|
+
owner: 'employee-skill-runtime',
|
|
41
|
+
publication: Object.freeze({
|
|
42
|
+
releaseGate: 'workforce-release-gate',
|
|
43
|
+
rollbackOwner: 'employee-skill-runtime',
|
|
44
|
+
}),
|
|
45
|
+
}),
|
|
46
|
+
adapter: Object.freeze({
|
|
47
|
+
adapterId: 'dingtalk.docs.api',
|
|
48
|
+
providerFamily: 'dingtalk',
|
|
49
|
+
product: 'docs',
|
|
50
|
+
adapterVersion: '1.0.0',
|
|
51
|
+
transport: 'api',
|
|
52
|
+
executableRef: 'dingtalk-doc',
|
|
53
|
+
supportedSkills: Object.freeze(['document.read']),
|
|
54
|
+
capabilityProbeRef: 'probe:dingtalk.docs.read',
|
|
55
|
+
authBindingType: 'workspace-connection',
|
|
56
|
+
credentialRequirements: Object.freeze(['workspace_oauth']),
|
|
57
|
+
scopes: Object.freeze(['docs:read']),
|
|
58
|
+
dataResidency: 'provider-region',
|
|
59
|
+
rateLimit: Object.freeze({ maxRequests: 60, windowMs: 60000 }),
|
|
60
|
+
idempotencySupport: 'nexus_key',
|
|
61
|
+
artifactReferenceSupport: 'external_ref',
|
|
62
|
+
verificationSupport: Object.freeze(['object_exists', 'revision']),
|
|
63
|
+
compensationSupport: 'manual',
|
|
64
|
+
owner: 'dingtalk-adapter-owner',
|
|
65
|
+
rollbackOwner: 'dingtalk-adapter-rollback-owner',
|
|
66
|
+
evidenceRefs: Object.freeze(['evidence:official-dingtalk-docs-api']),
|
|
67
|
+
healthStatus: 'ready',
|
|
68
|
+
}),
|
|
69
|
+
capability: Object.freeze({
|
|
70
|
+
skillId: 'document.read',
|
|
71
|
+
providerFamily: 'dingtalk',
|
|
72
|
+
product: 'docs',
|
|
73
|
+
adapterId: 'dingtalk.docs.api',
|
|
74
|
+
adapterVersion: '1.0.0',
|
|
75
|
+
operationId: 'docs.document.read',
|
|
76
|
+
operationVersion: '1.0.0',
|
|
77
|
+
transport: 'api',
|
|
78
|
+
requiredScopes: Object.freeze(['docs:read']),
|
|
79
|
+
capabilityLimits: Object.freeze([]),
|
|
80
|
+
availability: 'available',
|
|
81
|
+
}),
|
|
82
|
+
invocation: Object.freeze({
|
|
83
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_INVOCATION_SCHEMA_VERSION,
|
|
84
|
+
invocationId: 'invocation-fixture-1',
|
|
85
|
+
skillId: 'document.read',
|
|
86
|
+
skillVersion: '1.0.0',
|
|
87
|
+
workspaceId: 'workspace-fixture-1',
|
|
88
|
+
agentId: 'agent-fixture-1',
|
|
89
|
+
executionId: 'execution-fixture-1',
|
|
90
|
+
toolCallId: 'tool-call-fixture-1',
|
|
91
|
+
callerUserId: 'user-fixture-1',
|
|
92
|
+
providerFamily: 'dingtalk',
|
|
93
|
+
product: 'docs',
|
|
94
|
+
adapterId: 'dingtalk.docs.api',
|
|
95
|
+
adapterVersion: '1.0.0',
|
|
96
|
+
operationId: 'docs.document.read',
|
|
97
|
+
operationVersion: '1.0.0',
|
|
98
|
+
transport: 'api',
|
|
99
|
+
input: Object.freeze({ documentId: 'external-document-fixture-1' }),
|
|
100
|
+
idempotencyKey: 'idempotency-fixture-1',
|
|
101
|
+
traceId: 'trace-fixture-1',
|
|
102
|
+
}),
|
|
103
|
+
artifact: Object.freeze(artifact),
|
|
104
|
+
result: Object.freeze({
|
|
105
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_RESULT_SCHEMA_VERSION,
|
|
106
|
+
status: 'completed',
|
|
107
|
+
providerReceipt: Object.freeze({
|
|
108
|
+
requestId: 'provider-request-fixture-1',
|
|
109
|
+
businessStatus: 'ok',
|
|
110
|
+
}),
|
|
111
|
+
artifacts: Object.freeze([artifact]),
|
|
112
|
+
verification: Object.freeze({
|
|
113
|
+
status: 'passed',
|
|
114
|
+
evidenceRefs: Object.freeze(['evidence:provider-readback-fixture-1']),
|
|
115
|
+
}),
|
|
116
|
+
retryable: false,
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=employee-skill.contract.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-skill.contract.fixture.js","sourceRoot":"","sources":["../../src/agent-executable-assets/employee-skill.contract.fixture.ts"],"names":[],"mappings":";;;AAAA,2DAK6B;AAuB7B,MAAM,QAAQ,GAAwB;IACpC,aAAa,EAAE,iEAA6C;IAC5D,cAAc,EAAE,UAAU;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,UAAU;IACtB,cAAc,EAAE,6BAA6B;IAC7C,QAAQ,EAAE,oBAAoB;IAC9B,WAAW,EAAE,qBAAqB;IAClC,qBAAqB,EAAE,yEAAyE;IAChG,oBAAoB,EAAE,qBAAqB;CAC5C,CAAC;AAEW,QAAA,+BAA+B,GAC1C,MAAM,CAAC,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;QACxB,OAAO,EAAE,eAAe;QACxB,aAAa,EAAE,4DAAwC;QACvD,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,UAAU;QACvB,KAAK,EAAE,QAAQ;QACf,eAAe,EAAE,UAAU;QAC3B,MAAM,EAAE,UAAU;QAClB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAA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OAAO;QACzB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC;QACnE,cAAc,EAAE,uBAAuB;QACvC,OAAO,EAAE,iBAAiB;KAC3B,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,aAAa,EAAE,wDAAoC;QACnD,MAAM,EAAE,WAAW;QACnB,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC;YAC7B,SAAS,EAAE,4BAA4B;YACvC,cAAc,EAAE,IAAI;SACrB,CAAC;QACF,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;QACpC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;YAC1B,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,sCAAsC,CAAC,CAAC;SACtE,CAAC;QACF,SAAS,EAAE,KAAK;KACjB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SkillTransportManifest } from './employee-skill.transport.types';
|
|
2
|
+
/** Offline-only transport manifests; none of these claims a live provider connection. */
|
|
3
|
+
export declare const EMPLOYEE_SKILL_TRANSPORT_FIXTURE: Readonly<{
|
|
4
|
+
api: SkillTransportManifest;
|
|
5
|
+
mcp: SkillTransportManifest;
|
|
6
|
+
cli: SkillTransportManifest;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPLOYEE_SKILL_TRANSPORT_FIXTURE = void 0;
|
|
4
|
+
const contract_versions_1 = require("./contract-versions");
|
|
5
|
+
/** Offline-only transport manifests; none of these claims a live provider connection. */
|
|
6
|
+
exports.EMPLOYEE_SKILL_TRANSPORT_FIXTURE = Object.freeze({
|
|
7
|
+
api: Object.freeze({
|
|
8
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_TRANSPORT_MANIFEST_SCHEMA_VERSION,
|
|
9
|
+
providerFamily: 'dingtalk',
|
|
10
|
+
skillId: 'document.read',
|
|
11
|
+
product: 'docs',
|
|
12
|
+
adapterId: 'dingtalk.docs.api',
|
|
13
|
+
adapterVersion: '1.0.0',
|
|
14
|
+
operationId: 'docs.document.read',
|
|
15
|
+
operationVersion: '1.0.0',
|
|
16
|
+
transport: 'api',
|
|
17
|
+
timeoutMs: 10000,
|
|
18
|
+
method: 'GET',
|
|
19
|
+
baseUrl: 'https://api.example.invalid',
|
|
20
|
+
pathTemplate: '/v1/documents/{{input.documentId}}',
|
|
21
|
+
requestIdHeader: 'x-request-id',
|
|
22
|
+
pagination: {
|
|
23
|
+
mode: 'cursor',
|
|
24
|
+
requestField: 'cursor',
|
|
25
|
+
responseField: 'nextCursor',
|
|
26
|
+
maxPages: 10,
|
|
27
|
+
},
|
|
28
|
+
rateLimit: { maxRequests: 10, windowMs: 1000 },
|
|
29
|
+
errorCodeMap: {},
|
|
30
|
+
redactedHeaders: ['authorization', 'cookie'],
|
|
31
|
+
}),
|
|
32
|
+
mcp: Object.freeze({
|
|
33
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_TRANSPORT_MANIFEST_SCHEMA_VERSION,
|
|
34
|
+
providerFamily: 'feishu',
|
|
35
|
+
skillId: 'document.read',
|
|
36
|
+
product: 'docs',
|
|
37
|
+
adapterId: 'feishu.docs.mcp',
|
|
38
|
+
adapterVersion: '1.0.0',
|
|
39
|
+
operationId: 'docs.document.read',
|
|
40
|
+
operationVersion: '1.0.0',
|
|
41
|
+
transport: 'mcp',
|
|
42
|
+
timeoutMs: 10000,
|
|
43
|
+
serverId: 'feishu-docs',
|
|
44
|
+
serverVersion: '2026.10',
|
|
45
|
+
toolName: 'document_read',
|
|
46
|
+
inputSchemaDigest: `sha256:${'b'.repeat(64)}`,
|
|
47
|
+
outputSchemaDigest: `sha256:${'c'.repeat(64)}`,
|
|
48
|
+
allowedResourceTypes: ['text/plain', 'application/json'],
|
|
49
|
+
}),
|
|
50
|
+
cli: Object.freeze({
|
|
51
|
+
schemaVersion: contract_versions_1.EMPLOYEE_SKILL_TRANSPORT_MANIFEST_SCHEMA_VERSION,
|
|
52
|
+
providerFamily: 'tencent',
|
|
53
|
+
skillId: 'document.read',
|
|
54
|
+
product: 'docs',
|
|
55
|
+
adapterId: 'tencent.docs.cli',
|
|
56
|
+
adapterVersion: '1.0.0',
|
|
57
|
+
operationId: 'docs.document.read',
|
|
58
|
+
operationVersion: '1.0.0',
|
|
59
|
+
transport: 'cli',
|
|
60
|
+
timeoutMs: 10000,
|
|
61
|
+
executableRef: 'tencent-docs',
|
|
62
|
+
executableDigest: `sha256:${'d'.repeat(64)}`,
|
|
63
|
+
argvTemplate: ['read', '--document-id', '{{input.documentId}}'],
|
|
64
|
+
workingDirectoryRef: 'sandbox:employee-skill',
|
|
65
|
+
envAllowlist: ['PATH'],
|
|
66
|
+
stdoutSchemaVersion: 'tencent.docs.result/v1',
|
|
67
|
+
stderrRedactionPatterns: ['token=[^ ]+'],
|
|
68
|
+
}),
|
|
69
|
+
});
|
|
70
|
+
//# sourceMappingURL=employee-skill.transport.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-skill.transport.fixture.js","sourceRoot":"","sources":["../../src/agent-executable-assets/employee-skill.transport.fixture.ts"],"names":[],"mappings":";;;AAAA,2DAE6B;AAG7B,yFAAyF;AAC5E,QAAA,gCAAgC,GAIxC,MAAM,CAAC,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC;QACjB,aAAa,EAAE,oEAAgD;QAC/D,cAAc,EAAE,UAAU;QAC1B,OAAO,EAAE,eAAe;QACxB,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,mBAAmB;QAC9B,c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