@eddyskywalker/dsh-chatgpt-subscription 0.70.1 → 0.72.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 (86) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +4 -2
  3. package/lib/client.js +1188 -226
  4. package/lib/client.js.map +1 -1
  5. package/lib/{entry-progress-updates-DpzbX1GP.js → entry-progress-updates-DMLVID9V.js} +10 -23
  6. package/lib/index.js +6516 -3205
  7. package/lib/plan-mode-pipeline.js +3 -3
  8. package/lib/progress-updates.js +1 -1
  9. package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts +35 -0
  10. package/lib/types/client/antigravity-acp/AntigravityAcpComposerBadge.d.ts.map +1 -0
  11. package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts +20 -0
  12. package/lib/types/client/antigravity-acp/AntigravityAcpSection.d.ts.map +1 -0
  13. package/lib/types/client/antigravity-acp/api.d.ts +36 -0
  14. package/lib/types/client/antigravity-acp/api.d.ts.map +1 -0
  15. package/lib/types/client/antigravity-acp/locales.d.ts +521 -0
  16. package/lib/types/client/antigravity-acp/locales.d.ts.map +1 -0
  17. package/lib/types/client/antigravity-acp/route.d.ts +3 -0
  18. package/lib/types/client/antigravity-acp/route.d.ts.map +1 -0
  19. package/lib/types/client/antigravity-acp/styles.d.ts +15 -0
  20. package/lib/types/client/antigravity-acp/styles.d.ts.map +1 -0
  21. package/lib/types/client/command-code/locales.d.ts +2 -2
  22. package/lib/types/client/hub/brand-icons.d.ts +1 -1
  23. package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
  24. package/lib/types/client/hub/providers.d.ts.map +1 -1
  25. package/lib/types/client/index.d.ts +2 -0
  26. package/lib/types/client/index.d.ts.map +1 -1
  27. package/lib/types/client/locales-ru/antigravity-acp.d.ts +10 -0
  28. package/lib/types/client/locales-ru/antigravity-acp.d.ts.map +1 -0
  29. package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
  30. package/lib/types/client/locales-ru/index.d.ts.map +1 -1
  31. package/lib/types/client/locales.d.ts +3 -1
  32. package/lib/types/client/locales.d.ts.map +1 -1
  33. package/lib/types/compat.d.ts +1 -1
  34. package/lib/types/entry-plan-mode-pipeline.d.ts +3 -3
  35. package/lib/types/entry-plan-mode-pipeline.d.ts.map +1 -1
  36. package/lib/types/host/agent-preset.d.ts.map +1 -1
  37. package/lib/types/host/antigravity-acp/acp-client.d.ts +136 -0
  38. package/lib/types/host/antigravity-acp/acp-client.d.ts.map +1 -0
  39. package/lib/types/host/antigravity-acp/adapter.d.ts +191 -0
  40. package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -0
  41. package/lib/types/host/antigravity-acp/auth-cache.d.ts +50 -0
  42. package/lib/types/host/antigravity-acp/auth-cache.d.ts.map +1 -0
  43. package/lib/types/host/antigravity-acp/binary.d.ts +122 -0
  44. package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -0
  45. package/lib/types/host/antigravity-acp/catalog.d.ts +95 -0
  46. package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -0
  47. package/lib/types/host/antigravity-acp/doctor.d.ts +73 -0
  48. package/lib/types/host/antigravity-acp/doctor.d.ts.map +1 -0
  49. package/lib/types/host/antigravity-acp/errors.d.ts +59 -0
  50. package/lib/types/host/antigravity-acp/errors.d.ts.map +1 -0
  51. package/lib/types/host/antigravity-acp/history.d.ts +76 -0
  52. package/lib/types/host/antigravity-acp/history.d.ts.map +1 -0
  53. package/lib/types/host/antigravity-acp/login.d.ts +59 -0
  54. package/lib/types/host/antigravity-acp/login.d.ts.map +1 -0
  55. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts +115 -0
  56. package/lib/types/host/antigravity-acp/mcp-bridge.d.ts.map +1 -0
  57. package/lib/types/host/antigravity-acp/routes.d.ts +81 -0
  58. package/lib/types/host/antigravity-acp/routes.d.ts.map +1 -0
  59. package/lib/types/host/antigravity-acp/settings.d.ts +70 -0
  60. package/lib/types/host/antigravity-acp/settings.d.ts.map +1 -0
  61. package/lib/types/host/antigravity-acp/subagent.d.ts +96 -0
  62. package/lib/types/host/antigravity-acp/subagent.d.ts.map +1 -0
  63. package/lib/types/host/antigravity-acp/types.d.ts +113 -0
  64. package/lib/types/host/antigravity-acp/types.d.ts.map +1 -0
  65. package/lib/types/host/common/i18n/en.d.ts.map +1 -1
  66. package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -1
  67. package/lib/types/host/common/i18n/ru.d.ts.map +1 -1
  68. package/lib/types/host/common/i18n/zh.d.ts +3 -0
  69. package/lib/types/host/common/i18n/zh.d.ts.map +1 -1
  70. package/lib/types/host/common/model-request-control.d.ts +1 -1
  71. package/lib/types/host/common/model-request-control.d.ts.map +1 -1
  72. package/lib/types/host/common/request-diagnostics.d.ts +2 -2
  73. package/lib/types/host/common/request-diagnostics.d.ts.map +1 -1
  74. package/lib/types/host/dispatch-ledger/protocol.d.ts.map +1 -1
  75. package/lib/types/host/progress-updates/prompt.d.ts +2 -2
  76. package/lib/types/host/progress-updates/prompt.d.ts.map +1 -1
  77. package/lib/types/host/widget-board/line-quota.d.ts +10 -0
  78. package/lib/types/host/widget-board/line-quota.d.ts.map +1 -1
  79. package/lib/types/host/widget-board/line-registry.d.ts.map +1 -1
  80. package/lib/types/index.d.ts.map +1 -1
  81. package/lib/types/shared/antigravity-acp-contracts.d.ts +132 -0
  82. package/lib/types/shared/antigravity-acp-contracts.d.ts.map +1 -0
  83. package/package.json +1 -1
  84. package/presets/dispatch/README.md +27 -21
  85. package/presets/dispatch/agent.cordis.yml +64 -74
  86. package/presets/dispatch/preset.yml +1 -1
@@ -88,7 +88,7 @@ const DISABLED_OUTPUT_TEXT = "Progress updates are disabled; the update was not
88
88
  /** 工具描述的最终全文。 */
89
89
  const PROGRESS_UPDATE_DESCRIPTION = [
90
90
  "Report progress to the user without ending your turn.",
91
- "Two updates are part of the job, not optional narration: send one BEFORE your first tool call of a multi-step task (the plan), and one BEFORE your final answer (what was done and what was verified).",
91
+ "For L2, delegated, or long-running multi-step work, two updates are part of the job, not optional narration: send one BEFORE your first tool call (the plan), and one BEFORE your final answer (what was done and what was verified). L0 single-point work and quick local L1 tasks do not require either update.",
92
92
  "Use it during the rest of the work so the user can follow along and correct course early:",
93
93
  "state your plan near the beginning of the task (what you will do, and in what order);",
94
94
  "report a meaningful conclusion the moment you have it (a key fact, the root cause, a verified assumption) rather than narrating every step;",
@@ -96,7 +96,7 @@ const PROGRESS_UPDATE_DESCRIPTION = [
96
96
  "explain what you are waiting for before a long wait such as a test run, an install, or a build;",
97
97
  "and say what blocks you — and what you will try next, or what you need from the user — when you are stuck.",
98
98
  "Each update has one short title line (plain text, no Markdown, no trailing period) with the details in the message body.",
99
- "Do not repeat a status that has not changed. Use exactly one opening and one closing update per task.",
99
+ "Do not repeat a status that has not changed. Use at most one opening and one closing update per complex multi-step task; do not manufacture either for L0 single-point or quick L1 work.",
100
100
  "Never announce an intended tool call instead of making it. After an opening or intermediate update, perform actual work, ask a necessary question, or finish before considering another update.",
101
101
  "If a repeat-tool reminder names progress_update, do not answer with another progress update: inspect the previous result and continue with a task tool, a necessary question, or the final response.",
102
102
  "When you run as a subagent, describe only your own subtask: finishing your subtask is not the same as finishing the overall task."
@@ -293,35 +293,22 @@ const PROGRESS_UPDATE_LANGUAGES = [
293
293
  /**
294
294
  * 引导词正文。写法对齐 Kimi 的「进展更新」:先说清多步任务早期的思路,再报
295
295
  * 有意义的结论、阶段判断、长等待与阻塞;每条给一行标题,细节放正文;不重复
296
- * 没有变化的状态。开头与结尾两条被提成硬要求——没有它们,面板在任务的两端
297
- * 都是空的。
296
+ * 没有变化的状态。复杂多步骤任务(L2、含派发或长耗时)保留开头与结尾两条硬要求;
297
+ * L0 单点工作与短平快 L1 任务不制造固定开场/收尾播报(L1 按需播报)。
298
298
  */
299
299
  const PROGRESS_GUIDANCE = [
300
300
  "## Progress updates",
301
301
  "",
302
- "During multi-step work you can call `progress_update` to report progress without ending your turn and without spending a question: report, then keep working.",
302
+ "During multi-step work you can call `progress_update` to report progress without ending your turn: report, then keep working.",
303
303
  "",
304
- "**Two updates are mandatory — missing either one means the job is not finished:**",
304
+ "**For L2, delegated, or long-running multi-step work, two updates are mandatory — missing either one means the job is not finished. L0 single-point work and quick, local L1 tasks do not require opening or closing updates (for L1, report on demand only when a phase shift, long wait, or blocker occurs):**",
305
305
  "",
306
- "- **Opening**: before the first tool call of the task, send one update stating the plan (which steps, what you touch first). The user must be able to redirect you before you disappear into execution.",
307
- "- **Closing**: after the work is done and before your final answer, send one update stating the result (what changed, what was verified, what is left). The panel and the conversation both close on this line.",
306
+ "- **Opening**: before the first tool call of the task, state the plan (which steps, what you touch first).",
307
+ "- **Closing**: after the work is done and before your final answer, state the result (what changed, what was verified, what is left).",
308
308
  "",
309
- "Use exactly one opening and one closing update per task. Never announce an intended tool call instead of making it: after an opening or intermediate update, perform actual work, ask a necessary question, or finish before considering another update. If a repeat-tool reminder names `progress_update`, do not answer with another progress update; inspect the previous result and continue with a task tool, a necessary question, or the final response.",
309
+ "Use at most one opening and one closing update per complex multi-step task; do not manufacture either for L0 single-point or quick L1 work. Never announce an intended tool call instead of making it: after an update, perform actual work, ask a necessary question, or finish before considering another update. If a repeat-tool reminder names `progress_update`, do not answer with another progress update; inspect the previous result and continue with a task tool, a necessary question, or the final response.",
310
310
  "",
311
- "Beyond those two, these moments are worth a report:",
312
- "- **Early planning**: the opening update covers it; report again only when the plan really changes (different approach, smaller scope, a broken premise).",
313
- "- **A meaningful conclusion**: a key fact, a root cause, a verified assumption — report the conclusion itself, not \"I just read a file\".",
314
- "- **A stage judgement**: one phase ends and the next begins — one line on where things stand and what happens next.",
315
- "- **Before a long wait**: a test run, an install, a build — say what you are waiting for and roughly how long.",
316
- "- **When blocked**: missing information, missing permission, an external failure — say where you are stuck, what you will try next, or what you need from the user.",
317
- "",
318
- "How to write one:",
319
- "- One short title line (plain text, no Markdown, no trailing period); the details go in the message body.",
320
- "- The body uses light Markdown: one paragraph of prose plus a few bullets. **When several rows share fields, use a GFM pipe table** (header row plus a `| --- |` separator row) instead of one item per line.",
321
- "- Do not repeat a status that has not changed: if the last update already said it is running, it needs no second report.",
322
- "- A progress update is for the user, not for the log: write it in human words, do not restate tool arguments.",
323
- "",
324
- "When you run as a subagent: describe only your own subtask progress. Finishing your subtask is not the same as finishing the overall task — do not report the overall progress as done."
311
+ "Report intermediate updates only on a plan change, meaningful conclusion, stage transition, long wait, or blocker. Format: one short plain-text title line (no Markdown, no trailing period) and a brief Markdown body (use a GFM pipe table when rows share fields). Write in human words without restating tool arguments or unchanged status. As a subagent, describe only your own subtask progress."
325
312
  ].join("\n");
326
313
  /**
327
314
  * 每个语言档位对应的一句指令。