@xdxer/dingtalk-agent 0.1.4-beta.8 → 0.1.4

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.
Files changed (254) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/README.en.md +167 -0
  3. package/README.md +101 -248
  4. package/dist/bin/dingtalk-agent.js +1255 -25
  5. package/dist/bin/dingtalk-agent.js.map +1 -1
  6. package/dist/src/actions.js +98 -14
  7. package/dist/src/actions.js.map +1 -1
  8. package/dist/src/agent-audit.js +1385 -0
  9. package/dist/src/agent-audit.js.map +1 -0
  10. package/dist/src/agent-bindings.js +132 -0
  11. package/dist/src/agent-bindings.js.map +1 -0
  12. package/dist/src/agent-definition.js +182 -0
  13. package/dist/src/agent-definition.js.map +1 -0
  14. package/dist/src/agent-enhance.js +711 -0
  15. package/dist/src/agent-enhance.js.map +1 -0
  16. package/dist/src/agent-platform.js +299 -0
  17. package/dist/src/agent-platform.js.map +1 -0
  18. package/dist/src/bootstrap.js +125 -17
  19. package/dist/src/bootstrap.js.map +1 -1
  20. package/dist/src/config.js +1 -7
  21. package/dist/src/config.js.map +1 -1
  22. package/dist/src/development-workspace.js +755 -0
  23. package/dist/src/development-workspace.js.map +1 -0
  24. package/dist/src/doctor.js +74 -15
  25. package/dist/src/doctor.js.map +1 -1
  26. package/dist/src/dws.js +145 -0
  27. package/dist/src/dws.js.map +1 -1
  28. package/dist/src/eval-evidence.js +193 -0
  29. package/dist/src/eval-evidence.js.map +1 -0
  30. package/dist/src/host-detect.js +146 -0
  31. package/dist/src/host-detect.js.map +1 -0
  32. package/dist/src/instruction-path.js +270 -0
  33. package/dist/src/instruction-path.js.map +1 -0
  34. package/dist/src/invocation.js +36 -0
  35. package/dist/src/invocation.js.map +1 -0
  36. package/dist/src/lab.js +679 -0
  37. package/dist/src/lab.js.map +1 -0
  38. package/dist/src/lease.js +100 -0
  39. package/dist/src/lease.js.map +1 -0
  40. package/dist/src/map.js +157 -0
  41. package/dist/src/map.js.map +1 -0
  42. package/dist/src/memory/candidates.js +451 -0
  43. package/dist/src/memory/candidates.js.map +1 -0
  44. package/dist/src/memory/completion-evidence.js +536 -0
  45. package/dist/src/memory/completion-evidence.js.map +1 -0
  46. package/dist/src/memory/operational.js +263 -0
  47. package/dist/src/memory/operational.js.map +1 -0
  48. package/dist/src/memory/remote-state.js +478 -0
  49. package/dist/src/memory/remote-state.js.map +1 -0
  50. package/dist/src/memory/task-checkpoints.js +204 -0
  51. package/dist/src/memory/task-checkpoints.js.map +1 -0
  52. package/dist/src/multica-deploy.js +1538 -0
  53. package/dist/src/multica-deploy.js.map +1 -0
  54. package/dist/src/multica-provider.js +685 -0
  55. package/dist/src/multica-provider.js.map +1 -0
  56. package/dist/src/opencode-evals.js +1547 -0
  57. package/dist/src/opencode-evals.js.map +1 -0
  58. package/dist/src/opencode-isolation.js +124 -0
  59. package/dist/src/opencode-isolation.js.map +1 -0
  60. package/dist/src/opencode-provider.js +532 -0
  61. package/dist/src/opencode-provider.js.map +1 -0
  62. package/dist/src/opencode-workspace.js +208 -0
  63. package/dist/src/opencode-workspace.js.map +1 -0
  64. package/dist/src/perception.js +225 -0
  65. package/dist/src/perception.js.map +1 -0
  66. package/dist/src/personal-event-evals.js +595 -0
  67. package/dist/src/personal-event-evals.js.map +1 -0
  68. package/dist/src/promotion.js +786 -0
  69. package/dist/src/promotion.js.map +1 -0
  70. package/dist/src/remote-semantic-state-live-evals.js +888 -0
  71. package/dist/src/remote-semantic-state-live-evals.js.map +1 -0
  72. package/dist/src/remote-semantic-state-worker.js +38 -0
  73. package/dist/src/remote-semantic-state-worker.js.map +1 -0
  74. package/dist/src/remote-state-evals.js +502 -0
  75. package/dist/src/remote-state-evals.js.map +1 -0
  76. package/dist/src/response-gate.js +51 -0
  77. package/dist/src/response-gate.js.map +1 -0
  78. package/dist/src/robot-evals.js +771 -0
  79. package/dist/src/robot-evals.js.map +1 -0
  80. package/dist/src/sessions.js +66 -105
  81. package/dist/src/sessions.js.map +1 -1
  82. package/dist/src/setup.js +6 -5
  83. package/dist/src/setup.js.map +1 -1
  84. package/dist/src/skill-manager.js +162 -24
  85. package/dist/src/skill-manager.js.map +1 -1
  86. package/dist/src/skills.js +2 -1
  87. package/dist/src/skills.js.map +1 -1
  88. package/dist/src/storage-evals.js +26 -0
  89. package/dist/src/storage-evals.js.map +1 -0
  90. package/dist/src/types.js.map +1 -1
  91. package/dist/src/upgrade.js +23 -27
  92. package/dist/src/upgrade.js.map +1 -1
  93. package/dist/src/version.js +73 -0
  94. package/dist/src/version.js.map +1 -0
  95. package/dist/src/waits.js +5 -1
  96. package/dist/src/waits.js.map +1 -1
  97. package/dist/src/workspace.js +28 -3
  98. package/dist/src/workspace.js.map +1 -1
  99. package/docs/INSTALLATION.md +50 -3
  100. package/docs/SECOND-AGENT-ACCEPTANCE.md +62 -0
  101. package/docs/architecture/agent-memory-topology.png +0 -0
  102. package/docs/architecture/agent-memory-topology.svg +132 -0
  103. package/docs/architecture/general-agent-kernel-topology.png +0 -0
  104. package/docs/architecture/general-agent-kernel-topology.svg +149 -0
  105. package/docs/architecture/provider-bound-development-workspace.png +0 -0
  106. package/docs/architecture/provider-bound-development-workspace.svg +141 -0
  107. package/docs/architecture/task-completion-gate.png +0 -0
  108. package/docs/architecture/task-completion-gate.svg +191 -0
  109. package/docs/assets/agent-delivery-lifecycle.svg +103 -0
  110. package/docs/schemas/agent-audit-load-evidence.schema.json +14 -0
  111. package/docs/schemas/agent-audit.schema.json +92 -0
  112. package/docs/schemas/agent-bindings.schema.json +54 -0
  113. package/docs/schemas/agent-definition.schema.json +78 -0
  114. package/docs/schemas/agent-enhancement-plan.schema.json +88 -0
  115. package/docs/schemas/agent-enhancement-receipt.schema.json +37 -0
  116. package/docs/schemas/agent-platform.schema.json +13 -0
  117. package/docs/schemas/enriched-invocation.schema.json +46 -0
  118. package/docs/schemas/eval-candidate-plan.schema.json +28 -0
  119. package/docs/schemas/eval-candidate-result.schema.json +20 -0
  120. package/docs/schemas/eval-candidate.schema.json +30 -0
  121. package/docs/schemas/invocation.schema.json +19 -0
  122. package/docs/schemas/memory-candidate-proposal.schema.json +18 -0
  123. package/docs/schemas/memory-candidate.schema.json +76 -0
  124. package/docs/schemas/memory-publish-target.schema.json +25 -0
  125. package/docs/schemas/multica-deployment-list.schema.json +29 -0
  126. package/docs/schemas/multica-deployment-operation.schema.json +51 -0
  127. package/docs/schemas/multica-deployment-plan.schema.json +70 -0
  128. package/docs/schemas/multica-deployment-receipt.schema.json +87 -0
  129. package/docs/schemas/multica-deployment-status.schema.json +23 -0
  130. package/docs/schemas/multica-workspace-inspection.schema.json +77 -0
  131. package/docs/schemas/multica-workspace-plan.schema.json +68 -0
  132. package/docs/schemas/multica-workspace-resource-list.schema.json +27 -0
  133. package/docs/schemas/multica-workspace-status.schema.json +34 -0
  134. package/docs/schemas/observation.schema.json +21 -0
  135. package/docs/schemas/operational-memory-provider.schema.json +36 -0
  136. package/docs/schemas/operational-memory-record.schema.json +24 -0
  137. package/docs/schemas/perception-input.schema.json +56 -0
  138. package/docs/schemas/project.schema.json +115 -0
  139. package/docs/schemas/promotion-list.schema.json +36 -0
  140. package/docs/schemas/promotion-plan.schema.json +60 -0
  141. package/docs/schemas/promotion-policy.schema.json +29 -0
  142. package/docs/schemas/promotion-receipt.schema.json +43 -0
  143. package/docs/schemas/promotion-status.schema.json +23 -0
  144. package/docs/schemas/release-readiness.schema.json +66 -0
  145. package/docs/schemas/remote-semantic-state-live-eval.schema.json +60 -0
  146. package/docs/schemas/remote-semantic-state-manifest.schema.json +79 -0
  147. package/docs/schemas/remote-semantic-state-provider.schema.json +98 -0
  148. package/docs/schemas/response-gate.schema.json +20 -0
  149. package/docs/schemas/task-checkpoint.schema.json +71 -0
  150. package/docs/schemas/task-completion-evidence.schema.json +154 -0
  151. package/docs/schemas/workspace-doctor.schema.json +56 -0
  152. package/docs/schemas/workspace-state.schema.json +39 -0
  153. package/evals/README.md +17 -0
  154. package/evals/baselines/2026-07-16/opencode-basic-010-completion-summary.json +123 -0
  155. package/evals/baselines/2026-07-16/opencode-basic-skill-required-summary.json +69 -0
  156. package/evals/baselines/2026-07-16/opencode-multi-surface-summary.json +63 -0
  157. package/evals/baselines/2026-07-16/remote-state-live-summary.json +70 -0
  158. package/evals/baselines/2026-07-17/agent-enhance-opencode-dogfood-summary.json +98 -0
  159. package/evals/baselines/2026-07-17/personal-event-live-readiness-summary.json +68 -0
  160. package/examples/agents/fde-coach/AGENTS.md +26 -0
  161. package/examples/agents/fde-coach/MEMORY.md +3 -0
  162. package/examples/agents/fde-coach/fields/default/field.json +24 -0
  163. package/examples/agents/fde-coach/knowledge/INDEX.md +4 -0
  164. package/examples/agents/fde-coach/skills/fde-coach/SKILL.md +13 -0
  165. package/examples/agents/release-manager/AGENTS.md +26 -0
  166. package/examples/agents/release-manager/MEMORY.md +3 -0
  167. package/examples/agents/release-manager/fields/default/field.json +24 -0
  168. package/examples/agents/release-manager/knowledge/INDEX.md +4 -0
  169. package/examples/agents/release-manager/skills/release-manager/SKILL.md +13 -0
  170. package/lab/README.md +109 -0
  171. package/lab/agent-eval/catalog.json +91 -0
  172. package/lab/agent-eval/classic-failures.json +177 -0
  173. package/lab/agent-eval/completion-gate-regression.json +99 -0
  174. package/lab/agent-eval/personal-event-live.example.json +94 -0
  175. package/lab/agent-eval/remote-semantic-state-live.example.json +70 -0
  176. package/lab/agent-eval/remote-semantic-state-provider.fixture.json +47 -0
  177. package/lab/agent-eval/remote-state-workspace/AGENTS.md +8 -0
  178. package/lab/agent-eval/remote-state-workspace/opencode.json +7 -0
  179. package/lab/agent-eval/remote-state-workspace/skills/remote-state-operator/SKILL.md +13 -0
  180. package/lab/agent-eval/remote-state.example.json +31 -0
  181. package/lab/agent-eval/workspace/AGENTS.md +7 -0
  182. package/lab/agent-eval/workspace/MEMORY.md +4 -0
  183. package/lab/agent-eval/workspace/artifacts/pending-review.md +3 -0
  184. package/lab/agent-eval/workspace/knowledge/INDEX.md +4 -0
  185. package/lab/agent-eval/workspace/opencode.json +20 -0
  186. package/lab/manifest.example.json +27 -0
  187. package/lab/manifest.personal-event.example.json +27 -0
  188. package/lab/project-workspace/README.md +11 -0
  189. package/lab/project-workspace/fake-multica-provider.mjs +277 -0
  190. package/lab/project-workspace/multica-deploy.fixture.json +29 -0
  191. package/lab/project-workspace/multica-readonly.fixture.json +69 -0
  192. package/lab/project-workspace/observation.fixture.json +14 -0
  193. package/lab/project-workspace/opencode-provider-suite.json +65 -0
  194. package/lab/project-workspace/project.fixture.json +44 -0
  195. package/lab/project-workspace/promotion-policy.fixture.json +15 -0
  196. package/lab/robot-eval/pool.example.json +30 -0
  197. package/lab/robot-eval/suite.json +123 -0
  198. package/lab/robot-eval/workspace/AGENTS.md +21 -0
  199. package/lab/robot-eval/workspace/MEMORY.md +3 -0
  200. package/lab/robot-eval/workspace/knowledge/INDEX.md +5 -0
  201. package/lab/robot-eval/workspace/opencode.json +22 -0
  202. package/lab/schemas/agent-eval-catalog.schema.json +47 -0
  203. package/lab/schemas/lab-manifest.schema.json +70 -0
  204. package/lab/schemas/personal-event-eval.schema.json +91 -0
  205. package/lab/schemas/remote-state-eval.schema.json +66 -0
  206. package/lab/schemas/robot-eval-suite.schema.json +184 -0
  207. package/lab/schemas/robot-pool.schema.json +56 -0
  208. package/package.json +28 -9
  209. package/skills/README.md +23 -0
  210. package/skills/core/dingtalk-agent-compose/SKILL.md +151 -0
  211. package/skills/core/dingtalk-agent-compose/assets/AGENTS.template.md +35 -0
  212. package/skills/core/dingtalk-agent-compose/assets/agent.bindings.dingtalk-doc.template.json +13 -0
  213. package/skills/core/dingtalk-agent-compose/assets/agent.bindings.local.template.json +13 -0
  214. package/skills/core/dingtalk-agent-compose/assets/hosts/opencode/opencode.template.json +12 -0
  215. package/skills/core/dingtalk-agent-compose/assets/role-skill.template.md +32 -0
  216. package/skills/core/dingtalk-agent-compose/evals/evals.json +129 -0
  217. package/skills/core/dingtalk-agent-compose/references/agent-definition-contract.md +55 -0
  218. package/skills/core/dingtalk-agent-compose/references/host-loading-contract.md +58 -0
  219. package/skills/core/dingtalk-agent-compose/references/hosts/claude-code.md +48 -0
  220. package/skills/core/dingtalk-agent-compose/references/hosts/opencode.md +77 -0
  221. package/skills/core/dingtalk-agent-compose/references/storage-routing.md +20 -0
  222. package/skills/core/dingtalk-agent-eval/SKILL.md +140 -0
  223. package/skills/core/dingtalk-agent-eval/assets/eval-catalog.template.json +18 -0
  224. package/skills/core/dingtalk-agent-eval/evals/evals.json +83 -0
  225. package/skills/core/dingtalk-agent-eval/references/eval-topology.md +48 -0
  226. package/skills/core/dingtalk-agent-eval/references/evidence-contract.md +52 -0
  227. package/skills/core/dingtalk-agent-eval/references/failure-to-case.md +35 -0
  228. package/skills/core/dingtalk-agent-eval/references/interactive-debug-channels.md +93 -0
  229. package/skills/core/dingtalk-agent-eval/references/local-connector-smoke.md +75 -0
  230. package/skills/core/dingtalk-agent-eval/references/scenario-taxonomy.md +25 -0
  231. package/skills/core/dingtalk-agent-eval/references/storage-modes.md +75 -0
  232. package/skills/core/dingtalk-basic-behavior/SKILL.md +87 -0
  233. package/skills/core/dingtalk-basic-behavior/assets/memory-candidate-proposal.json +10 -0
  234. package/skills/{dingtalk-basic-behavior/assets/task-checkpoint.md → core/dingtalk-basic-behavior/assets/task-checkpoint.json} +2 -21
  235. package/skills/{dingtalk-basic-behavior → core/dingtalk-basic-behavior}/references/action-contract.md +2 -0
  236. package/skills/core/dingtalk-basic-behavior/references/memory-and-evolution.md +53 -0
  237. package/skills/core/dingtalk-basic-behavior/references/perception-and-gates.md +28 -0
  238. package/skills/core/dingtalk-basic-behavior/references/risk-authority-and-privacy.md +62 -0
  239. package/skills/{dingtalk-basic-behavior → core/dingtalk-basic-behavior}/references/task-lifecycle.md +47 -10
  240. package/skills/core/dingtalk-basic-behavior/references/truth-and-recovery.md +65 -0
  241. package/skills/platforms/deap/PLATFORM.md +3 -0
  242. package/skills/platforms/deap/README.md +3 -0
  243. package/skills/platforms/multica-dingtalk/PLATFORM.md +40 -0
  244. package/skills/platforms/multica-dingtalk/dingtalk-agent-boot-multica/SKILL.md +40 -0
  245. package/skills/platforms/multica-dingtalk/dingtalk-agent-deploy-multica/SKILL.md +60 -0
  246. package/skills/platforms/multica-dingtalk/dingtalk-agent-deploy-multica/references/multica-deployment-contract.md +49 -0
  247. package/skills/platforms/multica-dingtalk/dingtalk-agent-deploy-multica/references/promotion-observation-contract.md +49 -0
  248. package/skills/platforms/multica-dingtalk/multica-external/SKILL.md +282 -0
  249. package/skills/platforms/multica-dingtalk/multica-external/scripts/bootstrap.sh +78 -0
  250. package/skills/platforms/multica-dingtalk/multica-external/scripts/multica_ext.py +1180 -0
  251. package/skills/dingtalk-basic-behavior/SKILL.md +0 -86
  252. package/skills/dingtalk-basic-behavior/references/memory-and-evolution.md +0 -27
  253. /package/skills/{dingtalk-basic-behavior → core/dingtalk-basic-behavior}/references/event-to-behavior.md +0 -0
  254. /package/skills/{dingtalk-basic-behavior → core/dingtalk-basic-behavior}/references/runtime-modes.md +0 -0
@@ -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
+ }