dsh-taskbridge 1.7.0 → 1.8.0

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 (75) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +21 -21
  3. package/README.md +150 -289
  4. package/THIRD_PARTY_NOTICES.txt +23 -23
  5. package/antigravity/agents/dsh-taskbridge.md +31 -0
  6. package/antigravity/skills/dsh-taskbridge/SKILL.md +51 -0
  7. package/codex/dsh-taskbridge.toml +170 -627
  8. package/cordis.patch.yml +6 -6
  9. package/docs/INTRODUCTION.md +119 -295
  10. package/docs/INTRODUCTION.zh.md +134 -279
  11. package/docs/antigravity-integration.md +42 -0
  12. package/docs/auth-contract.md +138 -138
  13. package/docs/claude-code.md +6 -11
  14. package/docs/codex-integration.md +13 -2
  15. package/docs/contracts-stage-b.md +443 -443
  16. package/docs/plugin-market.md +30 -30
  17. package/docs/redaction-contract.md +170 -170
  18. package/docs/releases/1.7.0.zh.md +11 -11
  19. package/docs/releases/1.8.0.zh.md +16 -0
  20. package/docs/runtime-compatibility.md +1 -1
  21. package/docs/taskbridge-upgrade.md +28 -28
  22. package/docs/taskdispatch-upgrade.md +25 -25
  23. package/docs/workspace-contract.md +538 -538
  24. package/docs/workspace-grouping.md +126 -126
  25. package/icon.svg +1 -1
  26. package/lib/client.d.ts +733 -699
  27. package/lib/client.js +7 -7
  28. package/locale/en.json +1 -1
  29. package/locale/zh.json +1 -1
  30. package/package.json +149 -144
  31. package/src/antigravity/installer.js +1046 -0
  32. package/src/antigravity/seam.js +142 -0
  33. package/src/auth/fence.js +361 -361
  34. package/src/auth/grants.js +789 -789
  35. package/src/client/api.js +143 -0
  36. package/src/client/index.jsx +113 -3
  37. package/src/client/sidebar.jsx +862 -862
  38. package/src/client/styles.js +624 -624
  39. package/src/client/task-cleanup.js +304 -304
  40. package/src/client/task-records-table.jsx +217 -217
  41. package/src/client/task-view.js +307 -307
  42. package/src/client/workspace-groups.js +482 -482
  43. package/src/client/workspaces-browser.jsx +770 -770
  44. package/src/codex/agent-ownership.js +270 -270
  45. package/src/codex/installer.js +6 -0
  46. package/src/codex/toml.js +784 -784
  47. package/src/config/redact.js +245 -245
  48. package/src/config/store.js +186 -186
  49. package/src/credentials/seam.js +202 -202
  50. package/src/http/respond.js +6 -5
  51. package/src/http/user-plane.js +72 -0
  52. package/src/index.js +25 -0
  53. package/src/jobs/diagnostics.js +15 -15
  54. package/src/jobs/plan-store.js +1020 -1020
  55. package/src/jobs/review-note.js +63 -63
  56. package/src/jobs/task-descriptions.js +82 -82
  57. package/src/jobs/task-display.js +73 -73
  58. package/src/jobs/task-tree.js +786 -786
  59. package/src/jobs/title.js +134 -134
  60. package/src/mcp/continuation.js +317 -317
  61. package/src/mcp/server.js +12 -5
  62. package/src/model/connectivity.js +371 -371
  63. package/src/model/discovery.js +582 -582
  64. package/src/model/native-catalog.js +68 -68
  65. package/src/model/openai-adapter.js +671 -671
  66. package/src/model/probe.js +264 -264
  67. package/src/model/providers.js +756 -756
  68. package/src/model/routing.js +321 -321
  69. package/src/runtime/permissions.js +1619 -1619
  70. package/src/runtime/question-call.js +162 -162
  71. package/src/runtime/questions.js +909 -909
  72. package/src/runtime/worker-prompt.js +60 -53
  73. package/src/workspace/audit.js +775 -775
  74. package/src/workspace/preflight.js +424 -424
  75. package/src/workspace/worktrees.js +679 -679
package/src/mcp/server.js CHANGED
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // Design rule taken from SPEC §10–11: an external MCP client may *exercise* an
4
4
  // authorization the operator already created, and may do nothing else. So this
5
- // server exposes eight tools and maps each one onto one execution-plane route:
5
+ // server exposes eleven tools and maps each execution tool onto one execution-plane route:
6
6
  //
7
7
  // delegate_status → GET /dsh-delegate/x/status
8
8
  // delegate_submit → POST /dsh-delegate/x/tasks
@@ -10,8 +10,11 @@
10
10
  // delegate_wait → POST /dsh-delegate/x/tasks/observe (repeated)
11
11
  // delegate_cancel → POST /dsh-delegate/x/tasks/cancel
12
12
  // delegate_permission_decide → POST /dsh-delegate/x/tasks/permission
13
+ // delegate_question_answer → POST /dsh-delegate/x/tasks/question
13
14
  // delegate_review → POST /dsh-delegate/x/tasks/review
15
+ // delegate_plan → POST /dsh-delegate/x/plans
14
16
  // delegate_preflight → POST /dsh-delegate/x/workspace/preflight
17
+ // delegate_metrics → local process census (no plane route)
15
18
  //
16
19
  // `delegate_wait` is a read like `delegate_result`, and it is the one tool whose
17
20
  // single call may take a long time: it composes several BOUNDED observation
@@ -308,9 +311,9 @@ export const TOOLS = Object.freeze([
308
311
  + 'the caller. An unknown, unfinished, removed or differently-sourced parent is refused rather than '
309
312
  + 'started as a new conversation. '
310
313
  + 'The commander must first plan and scope ONE cohesive, independently verifiable work packet. '
311
- + 'Split a separable multi-stage goal before dispatch; include the chosen approach, scope and acceptance '
312
- + 'checks. A simple complete task may use one packet. Rules, planning and final review remain with '
313
- + 'the commander; a verification-only packet does not authorize implementation changes.',
314
+ + 'Inspect the project and prior delivery, choose the next ready packet, and tell the operator the approach and reuse decision. '
315
+ + 'Put the implementation plan in the prompt. Group dependent packets with delegate_plan. A simple task can use one brief. '
316
+ + 'Rules, planning and final review stay with the commander. Verification-only packets are read-only.',
314
317
  // It creates work, so it is not a read; it is not destructive of anything the
315
318
  // operator already has, and repeating it creates ANOTHER task (never idempotent).
316
319
  annotations: Object.freeze({
@@ -335,7 +338,11 @@ export const TOOLS = Object.freeze([
335
338
  + 'an execution.workspacePath or any other internal execution location in its place, because a '
336
339
  + 'different source path names a different repository and the continuation is refused.',
337
340
  },
338
- prompt: { type: 'string', description: 'One commander-planned work packet: objective, chosen approach, owned files or modules, constraints and acceptance checks. Roadmap context does not authorize future packets. A verification-only assignment permits checks and evidence, not implementation edits.' },
341
+ prompt: {
342
+ type: 'string',
343
+ description: 'Give DSH the objective, verified starting facts, code entry points, ordered steps, existing-code or GitHub reuse, owned scope and acceptance evidence. '
344
+ + 'Make the first implementation step clear. Roadmap context does not authorize future packets. A verification-only packet permits checks and evidence only.',
345
+ },
339
346
  title: { type: 'string', maxLength: 120, description: 'Short work-content title in the operator\'s language, e.g. 修复登录错误. Used to name the new DSH Workspace; omit role instructions and task ids. A follow-up keeps its existing Workspace name.' },
340
347
  overrides: {
341
348
  type: 'object',