@xdxer/dingtalk-agent 0.1.4-beta.1 → 0.1.4-beta.11
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 +70 -0
- package/README.en.md +397 -0
- package/README.md +500 -47
- package/dist/bin/dingtalk-agent.js +1263 -351
- package/dist/bin/dingtalk-agent.js.map +1 -1
- package/dist/src/actions.js +98 -14
- package/dist/src/actions.js.map +1 -1
- package/dist/src/agent-audit.js +460 -0
- package/dist/src/agent-audit.js.map +1 -0
- package/dist/src/agent-bindings.js +132 -0
- package/dist/src/agent-bindings.js.map +1 -0
- package/dist/src/agent-definition.js +182 -0
- package/dist/src/agent-definition.js.map +1 -0
- package/dist/src/agent-enhance.js +678 -0
- package/dist/src/agent-enhance.js.map +1 -0
- package/dist/src/agent-platform.js +158 -0
- package/dist/src/agent-platform.js.map +1 -0
- package/dist/src/bootstrap.js +125 -17
- package/dist/src/bootstrap.js.map +1 -1
- package/dist/src/config.js +1 -7
- package/dist/src/config.js.map +1 -1
- package/dist/src/development-workspace.js +736 -0
- package/dist/src/development-workspace.js.map +1 -0
- package/dist/src/doctor.js +49 -22
- package/dist/src/doctor.js.map +1 -1
- package/dist/src/dws.js +145 -0
- package/dist/src/dws.js.map +1 -1
- package/dist/src/eval-evidence.js +193 -0
- package/dist/src/eval-evidence.js.map +1 -0
- package/dist/src/init.js +1 -1
- package/dist/src/init.js.map +1 -1
- package/dist/src/invocation.js +36 -0
- package/dist/src/invocation.js.map +1 -0
- package/dist/src/lab.js +679 -0
- package/dist/src/lab.js.map +1 -0
- package/dist/src/lease.js +100 -0
- package/dist/src/lease.js.map +1 -0
- package/dist/src/map.js +157 -0
- package/dist/src/map.js.map +1 -0
- package/dist/src/memory/candidates.js +451 -0
- package/dist/src/memory/candidates.js.map +1 -0
- package/dist/src/memory/completion-evidence.js +536 -0
- package/dist/src/memory/completion-evidence.js.map +1 -0
- package/dist/src/memory/operational.js +263 -0
- package/dist/src/memory/operational.js.map +1 -0
- package/dist/src/memory/remote-state.js +478 -0
- package/dist/src/memory/remote-state.js.map +1 -0
- package/dist/src/memory/task-checkpoints.js +204 -0
- package/dist/src/memory/task-checkpoints.js.map +1 -0
- package/dist/src/multica-deploy.js +1480 -0
- package/dist/src/multica-deploy.js.map +1 -0
- package/dist/src/multica-provider.js +685 -0
- package/dist/src/multica-provider.js.map +1 -0
- package/dist/src/opencode-evals.js +1062 -0
- package/dist/src/opencode-evals.js.map +1 -0
- package/dist/src/opencode-provider.js +531 -0
- package/dist/src/opencode-provider.js.map +1 -0
- package/dist/src/opencode-workspace.js +197 -0
- package/dist/src/opencode-workspace.js.map +1 -0
- package/dist/src/perception.js +225 -0
- package/dist/src/perception.js.map +1 -0
- package/dist/src/personal-event-evals.js +595 -0
- package/dist/src/personal-event-evals.js.map +1 -0
- package/dist/src/promotion.js +786 -0
- package/dist/src/promotion.js.map +1 -0
- package/dist/src/remote-semantic-state-live-evals.js +888 -0
- package/dist/src/remote-semantic-state-live-evals.js.map +1 -0
- package/dist/src/remote-semantic-state-worker.js +38 -0
- package/dist/src/remote-semantic-state-worker.js.map +1 -0
- package/dist/src/remote-state-evals.js +501 -0
- package/dist/src/remote-state-evals.js.map +1 -0
- package/dist/src/response-gate.js +51 -0
- package/dist/src/response-gate.js.map +1 -0
- package/dist/src/robot-evals.js +770 -0
- package/dist/src/robot-evals.js.map +1 -0
- package/dist/src/sessions.js +66 -105
- package/dist/src/sessions.js.map +1 -1
- package/dist/src/setup.js +14 -12
- package/dist/src/setup.js.map +1 -1
- package/dist/src/skill-manager.js +128 -203
- package/dist/src/skill-manager.js.map +1 -1
- package/dist/src/skills.js.map +1 -1
- package/dist/src/storage-evals.js +26 -0
- package/dist/src/storage-evals.js.map +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/upgrade.js +137 -0
- package/dist/src/upgrade.js.map +1 -0
- package/dist/src/waits.js +5 -1
- package/dist/src/waits.js.map +1 -1
- package/dist/src/workspace.js +28 -3
- package/dist/src/workspace.js.map +1 -1
- package/docs/INSTALLATION.md +119 -14
- package/docs/SECOND-AGENT-ACCEPTANCE.md +62 -0
- package/docs/architecture/agent-memory-topology.png +0 -0
- package/docs/architecture/agent-memory-topology.svg +132 -0
- package/docs/architecture/general-agent-kernel-topology.png +0 -0
- package/docs/architecture/general-agent-kernel-topology.svg +149 -0
- package/docs/architecture/provider-bound-development-workspace.png +0 -0
- package/docs/architecture/provider-bound-development-workspace.svg +141 -0
- package/docs/architecture/task-completion-gate.png +0 -0
- package/docs/architecture/task-completion-gate.svg +191 -0
- package/docs/schemas/agent-audit-load-evidence.schema.json +14 -0
- package/docs/schemas/agent-audit.schema.json +92 -0
- package/docs/schemas/agent-bindings.schema.json +54 -0
- package/docs/schemas/agent-definition.schema.json +78 -0
- package/docs/schemas/agent-enhancement-plan.schema.json +88 -0
- package/docs/schemas/agent-enhancement-receipt.schema.json +37 -0
- package/docs/schemas/agent-platform.schema.json +13 -0
- package/docs/schemas/enriched-invocation.schema.json +46 -0
- package/docs/schemas/eval-candidate-plan.schema.json +28 -0
- package/docs/schemas/eval-candidate-result.schema.json +20 -0
- package/docs/schemas/eval-candidate.schema.json +30 -0
- package/docs/schemas/invocation.schema.json +19 -0
- package/docs/schemas/memory-candidate-proposal.schema.json +18 -0
- package/docs/schemas/memory-candidate.schema.json +76 -0
- package/docs/schemas/memory-publish-target.schema.json +25 -0
- package/docs/schemas/multica-deployment-list.schema.json +29 -0
- package/docs/schemas/multica-deployment-operation.schema.json +51 -0
- package/docs/schemas/multica-deployment-plan.schema.json +70 -0
- package/docs/schemas/multica-deployment-receipt.schema.json +87 -0
- package/docs/schemas/multica-deployment-status.schema.json +23 -0
- package/docs/schemas/multica-workspace-inspection.schema.json +77 -0
- package/docs/schemas/multica-workspace-plan.schema.json +68 -0
- package/docs/schemas/multica-workspace-resource-list.schema.json +27 -0
- package/docs/schemas/multica-workspace-status.schema.json +34 -0
- package/docs/schemas/observation.schema.json +21 -0
- package/docs/schemas/operational-memory-provider.schema.json +36 -0
- package/docs/schemas/operational-memory-record.schema.json +24 -0
- package/docs/schemas/perception-input.schema.json +56 -0
- package/docs/schemas/project.schema.json +113 -0
- package/docs/schemas/promotion-list.schema.json +36 -0
- package/docs/schemas/promotion-plan.schema.json +60 -0
- package/docs/schemas/promotion-policy.schema.json +29 -0
- package/docs/schemas/promotion-receipt.schema.json +43 -0
- package/docs/schemas/promotion-status.schema.json +23 -0
- package/docs/schemas/release-readiness.schema.json +66 -0
- package/docs/schemas/remote-semantic-state-live-eval.schema.json +60 -0
- package/docs/schemas/remote-semantic-state-manifest.schema.json +79 -0
- package/docs/schemas/remote-semantic-state-provider.schema.json +98 -0
- package/docs/schemas/response-gate.schema.json +20 -0
- package/docs/schemas/task-checkpoint.schema.json +71 -0
- package/docs/schemas/task-completion-evidence.schema.json +154 -0
- package/docs/schemas/workspace-doctor.schema.json +56 -0
- package/docs/schemas/workspace-state.schema.json +39 -0
- package/evals/baselines/2026-07-16/opencode-basic-010-completion-summary.json +123 -0
- package/evals/baselines/2026-07-16/opencode-basic-skill-required-summary.json +69 -0
- package/evals/baselines/2026-07-16/opencode-multi-surface-summary.json +63 -0
- package/evals/baselines/2026-07-16/remote-state-live-summary.json +70 -0
- package/evals/baselines/2026-07-17/agent-enhance-opencode-dogfood-summary.json +98 -0
- package/evals/baselines/2026-07-17/personal-event-live-readiness-summary.json +68 -0
- package/examples/agents/fde-coach/AGENTS.md +26 -0
- package/examples/agents/fde-coach/MEMORY.md +3 -0
- package/examples/agents/fde-coach/fields/default/field.json +24 -0
- package/examples/agents/fde-coach/knowledge/INDEX.md +4 -0
- package/examples/agents/fde-coach/skills/fde-coach/SKILL.md +13 -0
- package/examples/agents/release-manager/AGENTS.md +26 -0
- package/examples/agents/release-manager/MEMORY.md +3 -0
- package/examples/agents/release-manager/fields/default/field.json +24 -0
- package/examples/agents/release-manager/knowledge/INDEX.md +4 -0
- package/examples/agents/release-manager/skills/release-manager/SKILL.md +13 -0
- package/lab/README.md +109 -0
- package/lab/agent-eval/catalog.json +91 -0
- package/lab/agent-eval/classic-failures.json +177 -0
- package/lab/agent-eval/completion-gate-regression.json +99 -0
- package/lab/agent-eval/personal-event-live.example.json +94 -0
- package/lab/agent-eval/remote-semantic-state-live.example.json +70 -0
- package/lab/agent-eval/remote-semantic-state-provider.fixture.json +47 -0
- package/lab/agent-eval/remote-state-workspace/AGENTS.md +8 -0
- package/lab/agent-eval/remote-state-workspace/opencode.json +7 -0
- package/lab/agent-eval/remote-state-workspace/skills/remote-state-operator/SKILL.md +13 -0
- package/lab/agent-eval/remote-state.example.json +31 -0
- package/lab/agent-eval/workspace/AGENTS.md +7 -0
- package/lab/agent-eval/workspace/MEMORY.md +4 -0
- package/lab/agent-eval/workspace/artifacts/pending-review.md +3 -0
- package/lab/agent-eval/workspace/knowledge/INDEX.md +4 -0
- package/lab/agent-eval/workspace/opencode.json +20 -0
- package/lab/manifest.example.json +27 -0
- package/lab/manifest.personal-event.example.json +27 -0
- package/lab/project-workspace/README.md +11 -0
- package/lab/project-workspace/fake-multica-provider.mjs +266 -0
- package/lab/project-workspace/multica-deploy.fixture.json +29 -0
- package/lab/project-workspace/multica-readonly.fixture.json +69 -0
- package/lab/project-workspace/observation.fixture.json +14 -0
- package/lab/project-workspace/opencode-provider-suite.json +65 -0
- package/lab/project-workspace/project.fixture.json +44 -0
- package/lab/project-workspace/promotion-policy.fixture.json +15 -0
- package/lab/robot-eval/pool.example.json +30 -0
- package/lab/robot-eval/suite.json +123 -0
- package/lab/robot-eval/workspace/AGENTS.md +21 -0
- package/lab/robot-eval/workspace/MEMORY.md +3 -0
- package/lab/robot-eval/workspace/knowledge/INDEX.md +5 -0
- package/lab/robot-eval/workspace/opencode.json +22 -0
- package/lab/schemas/agent-eval-catalog.schema.json +47 -0
- package/lab/schemas/lab-manifest.schema.json +70 -0
- package/lab/schemas/personal-event-eval.schema.json +91 -0
- package/lab/schemas/remote-state-eval.schema.json +66 -0
- package/lab/schemas/robot-eval-suite.schema.json +184 -0
- package/lab/schemas/robot-pool.schema.json +56 -0
- package/package.json +26 -14
- package/skills/dingtalk-agent-boot-multica/SKILL.md +40 -0
- package/skills/dingtalk-agent-compose/SKILL.md +110 -0
- package/skills/dingtalk-agent-compose/assets/AGENTS.template.md +26 -0
- package/skills/dingtalk-agent-compose/assets/agent.bindings.dingtalk-doc.template.json +13 -0
- package/skills/dingtalk-agent-compose/assets/agent.bindings.local.template.json +13 -0
- package/skills/dingtalk-agent-compose/assets/opencode.template.json +12 -0
- package/skills/dingtalk-agent-compose/assets/role-skill.template.md +24 -0
- package/skills/dingtalk-agent-compose/evals/evals.json +94 -0
- package/skills/dingtalk-agent-compose/references/agent-definition-contract.md +55 -0
- package/skills/dingtalk-agent-compose/references/opencode-host-contract.md +65 -0
- package/skills/dingtalk-agent-compose/references/storage-routing.md +20 -0
- package/skills/dingtalk-agent-deploy/SKILL.md +60 -0
- package/skills/dingtalk-agent-deploy/references/multica-deployment-contract.md +49 -0
- package/skills/dingtalk-agent-deploy/references/promotion-observation-contract.md +49 -0
- package/skills/dingtalk-agent-eval/SKILL.md +116 -0
- package/skills/dingtalk-agent-eval/assets/eval-catalog.template.json +18 -0
- package/skills/dingtalk-agent-eval/evals/evals.json +61 -0
- package/skills/dingtalk-agent-eval/references/eval-topology.md +34 -0
- package/skills/dingtalk-agent-eval/references/evidence-contract.md +31 -0
- package/skills/dingtalk-agent-eval/references/scenario-taxonomy.md +25 -0
- package/skills/dingtalk-agent-eval/references/storage-modes.md +75 -0
- package/skills/dingtalk-basic-behavior/SKILL.md +63 -3
- package/skills/dingtalk-basic-behavior/assets/memory-candidate-proposal.json +10 -0
- package/skills/dingtalk-basic-behavior/assets/{task-checkpoint.md → task-checkpoint.json} +2 -21
- package/skills/dingtalk-basic-behavior/references/action-contract.md +2 -0
- package/skills/dingtalk-basic-behavior/references/memory-and-evolution.md +15 -1
- package/skills/dingtalk-basic-behavior/references/perception-and-gates.md +28 -0
- package/skills/dingtalk-basic-behavior/references/task-lifecycle.md +32 -7
- package/dist/src/boot.js +0 -70
- package/dist/src/boot.js.map +0 -1
- package/dist/src/duty.js +0 -74
- package/dist/src/duty.js.map +0 -1
- package/dist/src/kb.js +0 -240
- package/dist/src/kb.js.map +0 -1
- package/dist/src/runs.js +0 -79
- package/dist/src/runs.js.map +0 -1
- package/docs/ARCHITECTURE.md +0 -217
- package/docs/MINIMAL-WORKSPACE-V1.md +0 -172
- package/docs/OPEN-SOURCE-REFERENCES.md +0 -107
- package/docs/SELF-TEST.md +0 -252
- package/docs//345/206/205/347/275/221/345/256/236/347/233/270.md +0 -77
- package/evals/baselines/2026-07-14/behavior-summary.json +0 -28
- package/evals/baselines/2026-07-14/contract-summary.json +0 -18
- package/evals/baselines/2026-07-14/live-canary-summary.json +0 -25
- package/evals/baselines/2026-07-15/dingtalk-basic-behavior-0.3.0/SKILL.md +0 -72
- package/evals/baselines/2026-07-15/dingtalk-basic-behavior-0.3.0/references/action-contract.md +0 -31
- package/evals/baselines/2026-07-15/dingtalk-basic-behavior-0.3.0/references/event-to-behavior.md +0 -22
- package/evals/baselines/2026-07-15/dingtalk-basic-behavior-0.3.0/references/memory-and-evolution.md +0 -25
- package/evals/baselines/2026-07-15/dingtalk-basic-behavior-0.3.0/references/runtime-modes.md +0 -34
- package/evals/baselines/2026-07-15/task-lifecycle-summary.json +0 -50
- package/evals/evals.json +0 -316
- package/evals/fixtures/dm-ambiguous-send.json +0 -4
- package/evals/fixtures/dm-blocked.json +0 -4
- package/evals/fixtures/dm-clear.json +0 -4
- package/evals/fixtures/dm-discussion.json +0 -4
- package/evals/fixtures/dm-doc-write-no-tool.json +0 -4
- package/evals/fixtures/dm-long-task-ack.json +0 -4
- package/evals/fixtures/dm-nonblocking-gap.json +0 -4
- package/evals/fixtures/dm-structured-task.json +0 -4
- package/evals/fixtures/group.json +0 -10
- package/evals/fixtures/mentioned.json +0 -3
- package/evals/run-contract-evals.mjs +0 -1106
- package/evals/run-shadow-evals.mjs +0 -267
- package/evals/runners/README.md +0 -66
- package/evals/runners/claude-shadow.mjs +0 -533
- package/evals/schemas/action-request.schema.json +0 -77
- package/evals/shadow-evals.json +0 -133
- package/skills/AGENTS.md +0 -104
- package/skills//344/273/273/345/212/241.md +0 -48
- package/skills//345/237/272/347/241/200/350/241/214/344/270/272.md +0 -44
- package/skills//345/277/203/350/267/263.md +0 -79
- package/skills//346/266/210/346/201/257.md +0 -50
- package/skills//347/237/245/350/257/206.md +0 -55
- package/skills//350/257/204/346/265/213.md +0 -62
- package/skills//351/222/211/351/222/211.md +0 -64
- package/templates/ontology/index.md +0 -24
- package/templates/ontology/self/access.md +0 -38
- package/templates/ontology/self/role-spec.md +0 -34
- package/templates/ontology/self/workspace.md +0 -41
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-deployment-list.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Deployment List",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "workspace", "provider", "deployments", "remoteRead", "remoteWrite", "triggerWrite", "sideEffect", "dingtalkSideEffect"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/multica-deployment-list@1" },
|
|
10
|
+
"workspace": { "type": "string", "minLength": 1 }, "provider": { "const": "multica" },
|
|
11
|
+
"deployments": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object", "additionalProperties": false,
|
|
15
|
+
"required": ["receiptId", "operationId", "action", "status", "passed", "providerReady", "planId", "deploymentHash"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"receiptId": { "type": "string" }, "operationId": { "type": "string" },
|
|
18
|
+
"action": { "enum": ["apply", "retire"] },
|
|
19
|
+
"status": { "enum": ["applying", "reconciling", "verifying", "ready", "failed", "retired"] },
|
|
20
|
+
"passed": { "type": "boolean" }, "providerReady": { "type": "boolean" },
|
|
21
|
+
"planId": { "type": "string" }, "deploymentHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"remoteRead": { "const": false }, "remoteWrite": { "const": false },
|
|
26
|
+
"triggerWrite": { "const": false }, "sideEffect": { "const": false },
|
|
27
|
+
"dingtalkSideEffect": { "const": false }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-deployment-operation.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Deployment Operation",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "operationId", "planId", "workspace", "action", "status", "profile", "workspaceId", "runtimeId", "agentId", "deploymentHash", "ambiguousAction", "receiptId", "receiptPath", "calls", "failures", "updatedAt"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/multica-deployment-operation@1" },
|
|
10
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
11
|
+
"planId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"workspace": { "$ref": "#/$defs/name" },
|
|
13
|
+
"action": { "enum": ["apply", "retire"] },
|
|
14
|
+
"status": { "$ref": "#/$defs/status" },
|
|
15
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
16
|
+
"workspaceId": { "type": "string", "minLength": 1 },
|
|
17
|
+
"runtimeId": { "type": "string", "minLength": 1 },
|
|
18
|
+
"agentId": { "type": "string" },
|
|
19
|
+
"deploymentHash": { "$ref": "#/$defs/hash" },
|
|
20
|
+
"ambiguousAction": { "type": "string" },
|
|
21
|
+
"receiptId": { "type": "string" },
|
|
22
|
+
"receiptPath": { "type": "string" },
|
|
23
|
+
"calls": { "$ref": "#/$defs/calls" },
|
|
24
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
25
|
+
"updatedAt": { "type": "string", "format": "date-time" }
|
|
26
|
+
},
|
|
27
|
+
"$defs": {
|
|
28
|
+
"id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{1,127}$" },
|
|
29
|
+
"name": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$" },
|
|
30
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
31
|
+
"status": { "enum": ["applying", "reconciling", "verifying", "ready", "failed", "retired"] },
|
|
32
|
+
"calls": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["id", "kind", "argv", "exitCode", "stdoutHash", "stderrHash", "passed", "ambiguous"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"id": { "type": "string", "minLength": 1 },
|
|
40
|
+
"kind": { "enum": ["read", "write", "rollback"] },
|
|
41
|
+
"argv": { "type": "array", "items": { "type": "string" } },
|
|
42
|
+
"exitCode": { "type": "integer" },
|
|
43
|
+
"stdoutHash": { "$ref": "#/$defs/hash" },
|
|
44
|
+
"stderrHash": { "$ref": "#/$defs/hash" },
|
|
45
|
+
"passed": { "type": "boolean" },
|
|
46
|
+
"ambiguous": { "type": "boolean" }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-deployment-plan.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Deployment Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "planId", "action", "workspace", "provider", "profile", "inspectionId", "desiredHash", "deploymentHash", "expected", "operations", "writeBudget", "blocking", "requiresPlanId", "requiresExplicitYes", "remoteRead", "remoteWrite", "triggerWrite", "sideEffect", "dingtalkSideEffect"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/multica-deployment-plan@1" },
|
|
10
|
+
"planId": { "$ref": "#/$defs/id" },
|
|
11
|
+
"action": { "enum": ["apply", "retire"] },
|
|
12
|
+
"workspace": { "$ref": "#/$defs/name" },
|
|
13
|
+
"provider": { "const": "multica" },
|
|
14
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
15
|
+
"inspectionId": { "type": "string" },
|
|
16
|
+
"desiredHash": { "$ref": "#/$defs/hash" },
|
|
17
|
+
"deploymentHash": { "$ref": "#/$defs/hash" },
|
|
18
|
+
"expected": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["workspaceId", "runtimeId", "agentId", "agentName", "skills", "definitionHash", "instructionsHash"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"workspaceId": { "type": "string", "minLength": 1 },
|
|
24
|
+
"runtimeId": { "type": "string", "minLength": 1 },
|
|
25
|
+
"agentId": { "type": "string" },
|
|
26
|
+
"agentName": { "type": "string", "minLength": 1 },
|
|
27
|
+
"skills": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 2,
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["name", "hash", "files"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"name": { "$ref": "#/$defs/name" },
|
|
37
|
+
"hash": { "$ref": "#/$defs/hash" },
|
|
38
|
+
"files": { "type": "integer", "minimum": 1 }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"definitionHash": { "$ref": "#/$defs/hash" },
|
|
43
|
+
"instructionsHash": { "$ref": "#/$defs/hash" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"operations": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
47
|
+
"writeBudget": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": ["forward", "rollback"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"forward": { "type": "integer", "minimum": 0 },
|
|
53
|
+
"rollback": { "type": "integer", "minimum": 0 }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"blocking": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
57
|
+
"requiresPlanId": { "const": true },
|
|
58
|
+
"requiresExplicitYes": { "const": true },
|
|
59
|
+
"remoteRead": { "const": false },
|
|
60
|
+
"remoteWrite": { "const": false },
|
|
61
|
+
"triggerWrite": { "const": false },
|
|
62
|
+
"sideEffect": { "const": false },
|
|
63
|
+
"dingtalkSideEffect": { "const": false }
|
|
64
|
+
},
|
|
65
|
+
"$defs": {
|
|
66
|
+
"id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{1,127}$" },
|
|
67
|
+
"name": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$" },
|
|
68
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-deployment-receipt.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Deployment Receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "receiptId", "operationId", "planId", "action", "workspace", "provider", "profile", "status", "passed", "providerReady", "idempotent", "inspectionId", "inspectionObservedHash", "inspectionEvidencePath", "desiredHash", "deploymentHash", "observedHash", "agent", "skills", "assignmentHash", "calls", "smoke", "rollback", "failures", "evidencePath", "remoteRead", "remoteWrite", "triggerWrite", "sideEffect", "dingtalkSideEffect"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/multica-deployment-receipt@1" },
|
|
10
|
+
"receiptId": { "$ref": "#/$defs/id" },
|
|
11
|
+
"operationId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"planId": { "$ref": "#/$defs/id" },
|
|
13
|
+
"action": { "enum": ["apply", "retire"] },
|
|
14
|
+
"workspace": { "$ref": "#/$defs/name" },
|
|
15
|
+
"provider": { "const": "multica" },
|
|
16
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
17
|
+
"status": { "$ref": "#/$defs/status" },
|
|
18
|
+
"passed": { "type": "boolean" },
|
|
19
|
+
"providerReady": { "type": "boolean" },
|
|
20
|
+
"idempotent": { "type": "boolean" },
|
|
21
|
+
"inspectionId": { "type": "string" },
|
|
22
|
+
"inspectionObservedHash": { "type": "string" },
|
|
23
|
+
"inspectionEvidencePath": { "type": "string" },
|
|
24
|
+
"desiredHash": { "$ref": "#/$defs/hash" },
|
|
25
|
+
"deploymentHash": { "$ref": "#/$defs/hash" },
|
|
26
|
+
"observedHash": { "type": "string" },
|
|
27
|
+
"agent": {
|
|
28
|
+
"type": "object", "additionalProperties": false,
|
|
29
|
+
"required": ["id", "runtimeId", "instructionsHash", "archived", "action"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": { "type": "string" }, "runtimeId": { "type": "string" },
|
|
32
|
+
"instructionsHash": { "type": "string" }, "archived": { "type": "boolean" },
|
|
33
|
+
"action": { "enum": ["create", "update", "restore", "archive", "noop", "unknown"] }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"skills": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object", "additionalProperties": false,
|
|
40
|
+
"required": ["id", "name", "sourceHash", "remoteHash", "action"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "type": "string" }, "name": { "$ref": "#/$defs/name" },
|
|
43
|
+
"sourceHash": { "$ref": "#/$defs/hash" }, "remoteHash": { "type": "string" },
|
|
44
|
+
"action": { "enum": ["create", "update", "noop", "unknown"] }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"assignmentHash": { "type": "string" },
|
|
49
|
+
"calls": { "$ref": "multica-deployment-operation.schema.json#/$defs/calls" },
|
|
50
|
+
"smoke": {
|
|
51
|
+
"type": "object", "additionalProperties": false,
|
|
52
|
+
"required": ["status", "marker", "markerHash", "issueId", "taskId", "taskStatus", "requiredSkills", "loadedSkills", "toolTracePassed", "responsePassed", "responseHash", "failures"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"status": { "enum": ["not-run", "pending", "passed", "failed"] },
|
|
55
|
+
"marker": { "type": "string" }, "markerHash": { "type": "string" },
|
|
56
|
+
"issueId": { "type": "string" }, "taskId": { "type": "string" },
|
|
57
|
+
"taskStatus": { "type": "string" },
|
|
58
|
+
"requiredSkills": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/name" } },
|
|
59
|
+
"loadedSkills": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/name" } },
|
|
60
|
+
"toolTracePassed": { "type": "boolean" }, "responsePassed": { "type": "boolean" },
|
|
61
|
+
"responseHash": { "type": "string" },
|
|
62
|
+
"failures": { "type": "array", "items": { "type": "string" } }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"rollback": {
|
|
66
|
+
"type": "object", "additionalProperties": false,
|
|
67
|
+
"required": ["attempted", "passed", "actions", "failures"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"attempted": { "type": "boolean" }, "passed": { "type": "boolean" },
|
|
70
|
+
"actions": { "type": "array", "items": { "type": "string" } },
|
|
71
|
+
"failures": { "type": "array", "items": { "type": "string" } }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
75
|
+
"evidencePath": { "type": "string", "minLength": 1 },
|
|
76
|
+
"remoteRead": { "const": true }, "remoteWrite": { "type": "boolean" },
|
|
77
|
+
"triggerWrite": { "const": false },
|
|
78
|
+
"sideEffect": { "enum": ["multica-read-write", "multica-read", "none"] },
|
|
79
|
+
"dingtalkSideEffect": { "const": false }
|
|
80
|
+
},
|
|
81
|
+
"$defs": {
|
|
82
|
+
"id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{1,127}$" },
|
|
83
|
+
"name": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$" },
|
|
84
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
85
|
+
"status": { "enum": ["applying", "reconciling", "verifying", "ready", "failed", "retired"] }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-deployment-status.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Deployment Status",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "workspace", "provider", "available", "operationId", "receiptId", "status", "passed", "providerReady", "operationIntegrity", "receiptIntegrity", "reconciled", "failures", "receipt", "remoteRead", "remoteWrite", "triggerWrite", "sideEffect", "dingtalkSideEffect"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/multica-deployment-status@1" },
|
|
10
|
+
"workspace": { "type": "string", "minLength": 1 }, "provider": { "const": "multica" },
|
|
11
|
+
"available": { "type": "boolean" }, "operationId": { "type": "string" },
|
|
12
|
+
"receiptId": { "type": "string" },
|
|
13
|
+
"status": { "enum": ["missing", "applying", "reconciling", "verifying", "ready", "failed", "retired"] },
|
|
14
|
+
"passed": { "type": "boolean" }, "providerReady": { "type": "boolean" },
|
|
15
|
+
"operationIntegrity": { "type": "boolean" }, "receiptIntegrity": { "type": "boolean" },
|
|
16
|
+
"reconciled": { "type": "boolean" },
|
|
17
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
18
|
+
"receipt": { "oneOf": [{ "type": "null" }, { "$ref": "multica-deployment-receipt.schema.json" }] },
|
|
19
|
+
"remoteRead": { "type": "boolean" }, "remoteWrite": { "const": false },
|
|
20
|
+
"triggerWrite": { "const": false }, "sideEffect": { "enum": [false, "multica-read"] },
|
|
21
|
+
"dingtalkSideEffect": { "const": false }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-workspace-inspection.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Workspace Redacted Inspection",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema", "passed", "readyForApply", "providerReady", "inspectionId",
|
|
9
|
+
"workspace", "provider", "profile", "cliVersion", "desiredHash", "observedHash",
|
|
10
|
+
"expected", "auth", "resources", "diff", "failures", "calls", "evidencePath",
|
|
11
|
+
"remoteRead", "remoteWrite", "sideEffect", "dingtalkSideEffect"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"$schema": { "const": "dingtalk-agent/multica-workspace-inspection@1" },
|
|
15
|
+
"passed": { "type": "boolean" },
|
|
16
|
+
"readyForApply": { "type": "boolean" },
|
|
17
|
+
"providerReady": { "const": false },
|
|
18
|
+
"inspectionId": { "type": "string", "pattern": "^multica_inspect_[a-f0-9]{24}$" },
|
|
19
|
+
"workspace": { "type": "string", "minLength": 1 },
|
|
20
|
+
"provider": { "const": "multica" },
|
|
21
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
22
|
+
"cliVersion": { "type": "string" },
|
|
23
|
+
"desiredHash": { "$ref": "#/$defs/hash" },
|
|
24
|
+
"observedHash": { "$ref": "#/$defs/hash" },
|
|
25
|
+
"expected": { "type": "object" },
|
|
26
|
+
"auth": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["authenticated", "principalHash", "serverHash"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"authenticated": { "type": "boolean" },
|
|
32
|
+
"principalHash": { "type": "string" },
|
|
33
|
+
"serverHash": { "type": "string" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"resources": { "$ref": "#/$defs/resources" },
|
|
37
|
+
"diff": { "type": "array", "items": { "type": "string" } },
|
|
38
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
39
|
+
"calls": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["id", "argv", "exitCode", "stdoutHash", "stderrHash", "passed"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"id": { "type": "string" },
|
|
47
|
+
"argv": { "type": "array", "items": { "type": "string" } },
|
|
48
|
+
"exitCode": { "type": "integer" },
|
|
49
|
+
"stdoutHash": { "$ref": "#/$defs/hash" },
|
|
50
|
+
"stderrHash": { "$ref": "#/$defs/hash" },
|
|
51
|
+
"passed": { "type": "boolean" }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"evidencePath": { "type": "string", "minLength": 1 },
|
|
56
|
+
"remoteRead": { "const": true },
|
|
57
|
+
"remoteWrite": { "const": false },
|
|
58
|
+
"sideEffect": { "const": "remote-read" },
|
|
59
|
+
"dingtalkSideEffect": { "const": false }
|
|
60
|
+
},
|
|
61
|
+
"$defs": {
|
|
62
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
63
|
+
"resources": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": ["workspace", "runtime", "agent", "agentCandidates", "catalogSkills", "assignedSkills"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"workspace": { "type": ["object", "null"] },
|
|
69
|
+
"runtime": { "type": ["object", "null"] },
|
|
70
|
+
"agent": { "type": ["object", "null"] },
|
|
71
|
+
"agentCandidates": { "type": "array", "items": { "type": "object" } },
|
|
72
|
+
"catalogSkills": { "type": "array", "items": { "type": "object" } },
|
|
73
|
+
"assignedSkills": { "type": "array", "items": { "type": "object" } }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-workspace-plan.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Workspace Read-only Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema", "planId", "workspace", "provider", "profile", "desiredHash",
|
|
9
|
+
"currentState", "expected", "observed", "diff", "blocking", "operations",
|
|
10
|
+
"writes", "remoteRead", "remoteWrite", "sideEffect", "dingtalkSideEffect"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": { "const": "dingtalk-agent/multica-workspace-plan@1" },
|
|
14
|
+
"planId": { "type": "string", "pattern": "^multica_plan_[a-f0-9]{24}$" },
|
|
15
|
+
"workspace": { "$ref": "#/$defs/name" },
|
|
16
|
+
"provider": { "const": "multica" },
|
|
17
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
18
|
+
"desiredHash": { "$ref": "#/$defs/hash" },
|
|
19
|
+
"currentState": { "type": "string", "minLength": 1 },
|
|
20
|
+
"expected": { "$ref": "#/$defs/expected" },
|
|
21
|
+
"observed": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["workspaceId", "runtimeId", "agentId", "skillSetHash"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"workspaceId": { "type": "string" },
|
|
27
|
+
"runtimeId": { "type": "string" },
|
|
28
|
+
"agentId": { "type": "string" },
|
|
29
|
+
"skillSetHash": { "type": "string" }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"diff": { "type": "array", "items": { "type": "string" } },
|
|
33
|
+
"blocking": { "type": "array", "items": { "type": "string" } },
|
|
34
|
+
"operations": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"minItems": 8,
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["id", "argv"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "type": "string", "minLength": 1 },
|
|
43
|
+
"argv": { "type": "array", "items": { "type": "string" } }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"writes": { "type": "array", "maxItems": 0 },
|
|
48
|
+
"remoteRead": { "const": false },
|
|
49
|
+
"remoteWrite": { "const": false },
|
|
50
|
+
"sideEffect": { "const": false },
|
|
51
|
+
"dingtalkSideEffect": { "const": false }
|
|
52
|
+
},
|
|
53
|
+
"$defs": {
|
|
54
|
+
"name": { "type": "string", "pattern": "^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$" },
|
|
55
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
56
|
+
"expected": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": ["workspaceId", "runtimeId", "agentId", "skills"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"workspaceId": { "type": "string" },
|
|
62
|
+
"runtimeId": { "type": "string" },
|
|
63
|
+
"agentId": { "type": "string" },
|
|
64
|
+
"skills": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/name" } }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-workspace-resource-list.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Workspace Redacted Resource List",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema", "passed", "workspace", "provider", "profile", "inspectionId",
|
|
9
|
+
"resources", "failures", "calls", "remoteRead", "remoteWrite", "sideEffect",
|
|
10
|
+
"dingtalkSideEffect"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": { "const": "dingtalk-agent/multica-workspace-resource-list@1" },
|
|
14
|
+
"passed": { "type": "boolean" },
|
|
15
|
+
"workspace": { "type": "string", "minLength": 1 },
|
|
16
|
+
"provider": { "const": "multica" },
|
|
17
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
18
|
+
"inspectionId": { "type": "string", "pattern": "^multica_inspect_[a-f0-9]{24}$" },
|
|
19
|
+
"resources": { "type": "object" },
|
|
20
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
21
|
+
"calls": { "type": "array", "items": { "type": "object" } },
|
|
22
|
+
"remoteRead": { "const": true },
|
|
23
|
+
"remoteWrite": { "const": false },
|
|
24
|
+
"sideEffect": { "const": "remote-read" },
|
|
25
|
+
"dingtalkSideEffect": { "const": false }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/multica-workspace-status.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Multica Workspace Local Status",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema", "workspace", "provider", "available", "inspectionId", "passed",
|
|
9
|
+
"readyForApply", "providerReady", "evidencePath", "evidenceIntegrity", "stateMatched",
|
|
10
|
+
"desiredHash", "observedHash", "diff", "failures", "remoteRead", "remoteWrite",
|
|
11
|
+
"sideEffect", "dingtalkSideEffect"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"$schema": { "const": "dingtalk-agent/multica-workspace-status@1" },
|
|
15
|
+
"workspace": { "type": "string", "minLength": 1 },
|
|
16
|
+
"provider": { "const": "multica" },
|
|
17
|
+
"available": { "type": "boolean" },
|
|
18
|
+
"inspectionId": { "type": "string" },
|
|
19
|
+
"passed": { "type": "boolean" },
|
|
20
|
+
"readyForApply": { "type": "boolean" },
|
|
21
|
+
"providerReady": { "const": false },
|
|
22
|
+
"evidencePath": { "type": "string" },
|
|
23
|
+
"evidenceIntegrity": { "type": "boolean" },
|
|
24
|
+
"stateMatched": { "type": "boolean" },
|
|
25
|
+
"desiredHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
26
|
+
"observedHash": { "type": "string" },
|
|
27
|
+
"diff": { "type": "array", "items": { "type": "string" } },
|
|
28
|
+
"failures": { "type": "array", "items": { "type": "string" } },
|
|
29
|
+
"remoteRead": { "const": false },
|
|
30
|
+
"remoteWrite": { "const": false },
|
|
31
|
+
"sideEffect": { "const": false },
|
|
32
|
+
"dingtalkSideEffect": { "const": false }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/D1-2004/dingtalk-agent/docs/schemas/observation.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Redacted Observation",
|
|
5
|
+
"type": "object", "additionalProperties": false,
|
|
6
|
+
"required": ["$schema", "observedAt", "observedHash", "category", "risk", "capability", "outcome", "summary", "expected", "actual", "sourceRefs", "redacted"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "const": "dingtalk-agent/observation@1" },
|
|
9
|
+
"observedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"observedHash": { "$ref": "promotion-plan.schema.json#/$defs/hash" },
|
|
11
|
+
"category": { "enum": ["behavior", "safety", "reliability", "quality"] },
|
|
12
|
+
"risk": { "enum": ["low", "medium", "high", "critical"] },
|
|
13
|
+
"capability": { "type": "string", "minLength": 1, "maxLength": 100 },
|
|
14
|
+
"outcome": { "enum": ["pass", "fail", "mixed", "unknown"] },
|
|
15
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 500 },
|
|
16
|
+
"expected": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
17
|
+
"actual": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
18
|
+
"sourceRefs": { "type": "array", "maxItems": 10, "items": { "type": "string", "minLength": 1, "maxLength": 200 } },
|
|
19
|
+
"redacted": { "const": true }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://dingtalk-agent.dev/schemas/operational-memory-provider.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Operational Memory Provider",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "provider", "baseId", "tableId", "fields"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "dingtalk-agent/operational-memory-provider@1" },
|
|
10
|
+
"provider": { "const": "dingtalk-aitable" },
|
|
11
|
+
"baseId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"tableId": { "type": "string", "minLength": 1 },
|
|
13
|
+
"profile": { "type": "string" },
|
|
14
|
+
"expectedUserId": { "type": "string" },
|
|
15
|
+
"fields": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": [
|
|
19
|
+
"key", "scopeId", "kind", "subjectId", "summary", "sourceRefs", "occurredAt",
|
|
20
|
+
"recordedAt", "confidence", "attributes"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"key": { "type": "string", "minLength": 1 },
|
|
24
|
+
"scopeId": { "type": "string", "minLength": 1 },
|
|
25
|
+
"kind": { "type": "string", "minLength": 1 },
|
|
26
|
+
"subjectId": { "type": "string", "minLength": 1 },
|
|
27
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
28
|
+
"sourceRefs": { "type": "string", "minLength": 1 },
|
|
29
|
+
"occurredAt": { "type": "string", "minLength": 1 },
|
|
30
|
+
"recordedAt": { "type": "string", "minLength": 1 },
|
|
31
|
+
"confidence": { "type": "string", "minLength": 1 },
|
|
32
|
+
"attributes": { "type": "string", "minLength": 1 }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://dingtalk-agent.dev/schemas/operational-memory-record.schema.json",
|
|
4
|
+
"title": "dingtalk-agent Operational Memory Record",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema", "key", "scopeId", "kind", "subjectId", "summary", "sourceRefs",
|
|
9
|
+
"occurredAt", "recordedAt", "confidence", "attributes"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"$schema": { "const": "dingtalk-agent/operational-memory-record@1" },
|
|
13
|
+
"key": { "type": "string", "minLength": 1 },
|
|
14
|
+
"scopeId": { "type": "string", "minLength": 1 },
|
|
15
|
+
"kind": { "enum": ["summary", "interaction", "task", "calendar", "fact"] },
|
|
16
|
+
"subjectId": { "type": "string", "minLength": 1 },
|
|
17
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
18
|
+
"sourceRefs": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
19
|
+
"occurredAt": { "type": ["string", "null"], "format": "date-time" },
|
|
20
|
+
"recordedAt": { "type": "string" },
|
|
21
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
22
|
+
"attributes": { "type": "object" }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://dingtalk-agent.dev/schemas/perception-input.schema.json",
|
|
4
|
+
"title": "Trusted Perception Input",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": { "const": "dingtalk-agent/perception-input@1" },
|
|
9
|
+
"fetchedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"quote": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["conversationId", "messageId", "text", "source"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"conversationId": { "type": "string" },
|
|
16
|
+
"messageId": { "type": "string" },
|
|
17
|
+
"text": { "type": "string" },
|
|
18
|
+
"occurredAt": { "type": "string" },
|
|
19
|
+
"author": { "type": "object" },
|
|
20
|
+
"source": { "enum": ["host-event", "dws-readback"] }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"recentMessages": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"maxItems": 50,
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["conversationId", "messageId", "actorId", "text", "source"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"conversationId": { "type": "string" },
|
|
32
|
+
"messageId": { "type": "string" },
|
|
33
|
+
"actorId": { "type": "string" },
|
|
34
|
+
"actorName": { "type": "string" },
|
|
35
|
+
"text": { "type": "string" },
|
|
36
|
+
"occurredAt": { "type": "string" },
|
|
37
|
+
"source": { "enum": ["host-event", "dws-readback"] }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"identity": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["subjectId", "displayName", "source"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"subjectId": { "type": "string" },
|
|
47
|
+
"displayName": { "type": "string" },
|
|
48
|
+
"userId": { "type": "string" },
|
|
49
|
+
"openDingTalkId": { "type": "string" },
|
|
50
|
+
"department": { "type": "string" },
|
|
51
|
+
"title": { "type": "string" },
|
|
52
|
+
"source": { "enum": ["host-event", "dws-contact"] }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|