personal-bot 0.4.0 → 0.4.2

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 (120) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/README.md +4 -1
  4. package/README.zh-CN.md +4 -1
  5. package/docs/README.md +2 -3
  6. package/docs/architecture/design.md +41 -2
  7. package/docs/architecture/extensibility.md +3 -3
  8. package/docs/architecture/model-context.md +10 -4
  9. package/docs/architecture/principles.md +2 -2
  10. package/docs/guides/cross-harness-workers.md +27 -2
  11. package/docs/guides/workspace-configuration.md +3 -1
  12. package/docs/hosts/claude-code.md +1 -1
  13. package/docs/hosts/codex-qoder.md +3 -1
  14. package/hooks/hooks.json +3 -0
  15. package/lib/antigravity-plugin/lib/extension/acp-worker.js +22 -6
  16. package/lib/antigravity-plugin/lib/extension/cli.js +169 -95
  17. package/lib/antigravity-plugin/lib/extension/hosts/plugin-runtime.js +3 -1
  18. package/lib/antigravity-plugin/lib/extension/mcp.js +163 -119
  19. package/lib/antigravity-plugin/lib/integrations/agent-resources.d.ts +4 -2
  20. package/lib/antigravity-plugin/lib/integrations/agent-resources.js +23 -5
  21. package/lib/antigravity-plugin/lib/integrations/hosts/antigravity/adapter.js +0 -1
  22. package/lib/antigravity-plugin/lib/integrations/hosts/claude/adapter.js +1 -2
  23. package/lib/antigravity-plugin/lib/integrations/hosts/dsh/resources.d.ts +2 -1
  24. package/lib/antigravity-plugin/lib/integrations/hosts/dsh/resources.js +12 -13
  25. package/lib/antigravity-plugin/lib/integrations/hosts/prompt-hooks.js +4 -7
  26. package/lib/antigravity-plugin/lib/model/worker-template.d.ts +21 -0
  27. package/lib/antigravity-plugin/lib/model/worker-template.js +1 -0
  28. package/lib/antigravity-plugin/lib/services/history/summary-dimensions/monthly.js +1 -1
  29. package/lib/antigravity-plugin/lib/services/history/summary-dimensions/session.js +6 -3
  30. package/lib/antigravity-plugin/lib/services/history/summary-runner.js +3 -3
  31. package/lib/antigravity-plugin/lib/services/workspace/worker-templates.d.ts +17 -0
  32. package/lib/antigravity-plugin/lib/services/workspace/worker-templates.js +88 -0
  33. package/lib/antigravity-plugin/lib/storage/history-files.js +3 -2
  34. package/lib/antigravity-plugin/package.json +1 -1
  35. package/lib/antigravity-plugin/plugin.json +2 -2
  36. package/lib/antigravity-plugin/resources/agents/coordinator.md +2 -4
  37. package/lib/antigravity-plugin/resources/agents/general-purpose.md +2 -4
  38. package/lib/antigravity-plugin/resources/prompts/history-monthly-summary.md +6 -11
  39. package/lib/antigravity-plugin/resources/prompts/history-summary.md +6 -11
  40. package/lib/antigravity-plugin/resources/prompts/plugin-coordinator.md +1 -1
  41. package/lib/antigravity-plugin/resources/prompts/workspace.md +16 -23
  42. package/lib/antigravity-plugin/resources/skills/project-maintenance/SKILL.md +14 -21
  43. package/lib/antigravity-plugin/resources/skills/provider-connections/SKILL.md +23 -36
  44. package/lib/antigravity-plugin/resources/templates/workspace-agents.md +5 -13
  45. package/lib/antigravity-plugin/skills/pbot/SKILL.md +6 -23
  46. package/lib/antigravity-plugin/skills/project-maintenance/SKILL.md +14 -21
  47. package/lib/antigravity-plugin/skills/provider-connections/SKILL.md +23 -36
  48. package/lib/codex-marketplace/plugins/personal-bot/.codex-plugin/plugin.json +2 -2
  49. package/lib/codex-marketplace/plugins/personal-bot/.mcp.json +2 -2
  50. package/lib/codex-marketplace/plugins/personal-bot/hooks/hooks.json +3 -3
  51. package/lib/codex-marketplace/plugins/personal-bot/skills/pbot/SKILL.md +11 -3
  52. package/lib/extension/acp-worker.js +22 -6
  53. package/lib/extension/cli.js +169 -95
  54. package/lib/extension/hosts/dsh/command.js +1 -1
  55. package/lib/extension/hosts/dsh/workspace.js +5 -2
  56. package/lib/extension/hosts/plugin-runtime.js +3 -1
  57. package/lib/extension/mcp/tool-contract.d.ts +3 -3
  58. package/lib/extension/mcp/tool-contract.js +63 -101
  59. package/lib/extension/mcp/workers.d.ts +1 -1
  60. package/lib/extension/mcp/workers.js +19 -13
  61. package/lib/extension/mcp.js +163 -119
  62. package/lib/integrations/agent-resources.d.ts +4 -2
  63. package/lib/integrations/agent-resources.js +23 -5
  64. package/lib/integrations/hosts/antigravity/adapter.js +0 -1
  65. package/lib/integrations/hosts/claude/adapter.js +1 -2
  66. package/lib/integrations/hosts/dsh/resources.d.ts +2 -1
  67. package/lib/integrations/hosts/dsh/resources.js +12 -13
  68. package/lib/integrations/hosts/prompt-hooks.js +4 -7
  69. package/lib/model/worker-template.d.ts +21 -0
  70. package/lib/model/worker-template.js +1 -0
  71. package/lib/qoder-plugin/.mcp.json +2 -2
  72. package/lib/qoder-plugin/.qoder-plugin/plugin.json +2 -2
  73. package/lib/qoder-plugin/hooks/hooks.json +3 -3
  74. package/lib/qoder-plugin/skills/pbot/SKILL.md +11 -3
  75. package/lib/services/agents/agent-service.js +2 -2
  76. package/lib/services/history/summary-dimensions/monthly.js +1 -1
  77. package/lib/services/history/summary-dimensions/session.js +6 -3
  78. package/lib/services/history/summary-runner.js +3 -3
  79. package/lib/services/workspace/worker-templates.d.ts +17 -0
  80. package/lib/services/workspace/worker-templates.js +88 -0
  81. package/lib/storage/history-files.js +3 -2
  82. package/lib/tools/history/contract.d.ts +1 -1
  83. package/lib/tools/history/contract.js +14 -16
  84. package/package.json +2 -2
  85. package/resources/agents/coordinator.md +2 -4
  86. package/resources/agents/general-purpose.md +2 -4
  87. package/resources/antigravity/skills/pbot/SKILL.md +6 -23
  88. package/resources/claude/skills/pbot/SKILL.md +6 -23
  89. package/resources/plugin/skills/pbot/SKILL.md +11 -3
  90. package/resources/prompts/history-coordinator.md +1 -1
  91. package/resources/prompts/history-monthly-summary.md +6 -11
  92. package/resources/prompts/history-summary.md +6 -11
  93. package/resources/prompts/plugin-coordinator.md +1 -1
  94. package/resources/prompts/workspace.md +16 -23
  95. package/resources/skills/project-maintenance/SKILL.md +14 -21
  96. package/resources/skills/provider-connections/SKILL.md +23 -36
  97. package/resources/templates/workspace-agents.md +5 -13
  98. package/src/extension/cli/commands/mcp.ts +1 -1
  99. package/src/extension/hosts/dsh/command.ts +1 -1
  100. package/src/extension/hosts/dsh/workspace.ts +5 -1
  101. package/src/extension/hosts/pi/command.ts +1 -1
  102. package/src/extension/hosts/pi/events.ts +3 -1
  103. package/src/extension/hosts/plugin-runtime.ts +3 -1
  104. package/src/extension/mcp/tool-contract.ts +63 -103
  105. package/src/extension/mcp/workers.ts +21 -14
  106. package/src/integrations/agent-resources.ts +27 -7
  107. package/src/integrations/hosts/antigravity/adapter.ts +0 -1
  108. package/src/integrations/hosts/claude/adapter.ts +1 -2
  109. package/src/integrations/hosts/dsh/resources.ts +14 -13
  110. package/src/integrations/hosts/prompt-hooks.ts +3 -6
  111. package/src/model/worker-template.ts +24 -0
  112. package/src/pbot.ts +2 -2
  113. package/src/services/agents/agent-service.ts +2 -2
  114. package/src/services/history/summary-dimensions/monthly.ts +1 -1
  115. package/src/services/history/summary-dimensions/session.ts +6 -3
  116. package/src/services/history/summary-runner.ts +3 -3
  117. package/src/services/workspace/worker-templates.ts +80 -0
  118. package/src/storage/history-files.ts +3 -2
  119. package/src/tools/history/contract.ts +14 -16
  120. package/docs/architecture/model-instruction-guidelines.md +0 -34
@@ -6,6 +6,7 @@ import { loadWorkspaceContext } from "../../integrations/agent-resources.js";
6
6
  import { recordHistoryCapture } from "../../services/history/history-capture.js";
7
7
  import { historyStartupNotices } from "../../services/history/summary-runner.js";
8
8
  import { readWorkspaceConfig, workspaceFeatures } from "../../services/workspace/workspace-config.js";
9
+ import { readWorkerTemplates } from "../../services/workspace/worker-templates.js";
9
10
  import { initializeWorkspace } from "../../services/workspace/workspace-preparation.js";
10
11
  import { discoverSkills, discoverWorkspaceSkills } from "../../services/workspace/workspace-skills.js";
11
12
  function disabledMessage(adapter, configuration) {
@@ -86,7 +87,8 @@ export async function pluginHook(adapter, payload, replay) {
86
87
  host: adapter.host,
87
88
  root,
88
89
  role: event.role,
89
- ...(adapter.coordinatorPrompt ? { coordinatorPrompt: adapter.coordinatorPrompt } : {}),
90
+ readWorkerTemplates,
91
+ coordinatorPrompt: adapter.coordinatorPrompt ?? (features.history ? "plugin-coordinator.md" : null),
90
92
  includePrompts,
91
93
  includeRootAgents: includePrompts && !adapter.nativeRootAgents,
92
94
  ...(event.localRoleOnly ? { localRoleOnly: true } : {}),