| name | dws-doc-cli-mock |
| description | Use when an agent needs to run against the dws_doc_cli DingTalk Workspace CLI mock for DingTalk Doc workflows with the real command prefix `dws`, without real DingTalk credentials or network access. |
| metadata | {"category":"benchmark-mock","requires":{"bins":["dws"]}} |
dws_doc_cli Skill
dws_doc_cli is a Bun/Node-compatible mock of the DingTalk Workspace CLI. It is scoped to DingTalk Doc behavior and should not be used for real DingTalk data or real enterprise operations.
The mock lives under ditto_site/mocks/dws_doc_cli/. The package and service identify as a mock, but the command exposed to agents is exactly dws.
Invocation
From the mock directory:
DWS_MOCK_HOME=/private/tmp/dws-doc-cli-state dws <command> --format json
The formal harness should put this package's npm bin on PATH, or npm link can be used during setup. Use a writable DWS_MOCK_HOME for every isolated agent run; the default is ~/.dws-mock.
Service Mode
Use service mode only for ditto_site health and verifier checks. Agents should still interact through the dws CLI.
bun server.js
curl http://localhost:3020/health
curl http://localhost:3020/api/verify
Verifier endpoints are /api/state, /api/sessions, /api/access-log, and /api/verify. Set to require on those routes.