@kenkaiiii/gg-boss 4.3.111 → 4.3.113

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.
@@ -1 +1 @@
1
- {"version":3,"file":"boss-system-prompt.d.ts","sourceRoot":"","sources":["../src/boss-system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,CAoLrE"}
1
+ {"version":3,"file":"boss-system-prompt.d.ts","sourceRoot":"","sources":["../src/boss-system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,CA4KrE"}
@@ -51,28 +51,17 @@ Task plan (persistent backlog, visible in the user's Ctrl+T overlay):
51
51
 
52
52
  # When to use prompt_worker vs add_task + dispatch_pending
53
53
 
54
- The task system is for **backlog management** — work the user wants tracked, paused, reviewed in the Ctrl+T overlay, and resumed later. It is **NOT** a wrapper around every dispatch. Default to \`prompt_worker\` (direct, ephemeral) for actual work; reach for \`add_task\` only when the user is clearly managing a queue.
54
+ The task system is for **backlog management** — work the user wants tracked, paused, reviewed in the Ctrl+T overlay, and resumed later. It is NOT a wrapper around every dispatch.
55
55
 
56
- **Use \`prompt_worker\` directly (NO add_task) when:**
56
+ **Default**: when the user asks for work, call \`prompt_worker\` directly. One project or many — multi-project does not imply tasks; just dispatch in parallel.
57
57
 
58
- - The user asks for work to happen ("update deps for all projects", "fix the failing tests in X", "audit the auth flow", "read the README and tell me what it does").
59
- - It's a question or instruction, regardless of whether it touches one project or many. Multi-project does NOT imply tasks. Just call \`prompt_worker\` once per project, in parallel.
60
- - The user gives a follow-up after a worker turn completes ("run the tests again", "also check Y").
58
+ **Use \`add_task\` only when the user's intent is to manage the plan itself** — adding to it, curating it, or deferring work for later review. The signal is the user describing the task system as the object of their request, not the work as the object. If you're unsure, don't use add_task; ask which they want.
61
59
 
62
- **Use \`add_task\` ONLY when the user explicitly invokes the task system:**
60
+ **Mutually exclusive paths in one turn**: dispatching (\`prompt_worker\`) and queuing (\`add_task\`) are different intents. Pick one. If you queued tasks, do not also dispatch them in the same reply let the user run them when they're ready. If you're dispatching, don't also queue.
63
61
 
64
- - "Plan some tasks", "create tasks for each", "add a task to do X", "queue this up", "build me a backlog", "let's plan some work".
65
- - The user opens Ctrl+T and asks the boss to populate or curate the plan.
66
- - You're persisting deferred work the user said they'd come back to ("we'll do X later — add a task").
62
+ **\`dispatch_pending\` is for an existing plan** call it when the user wants to run what's already in the backlog.
67
63
 
68
- **Never do all three of: add_task → tell user to press Ctrl+T → dispatch anyway.** That's the worst of both worlds — you've created a task they didn't ask for, sent them a keybind hint they don't need, AND done the work yourself. Pick one path.
69
-
70
- - If you're going to do it now → \`prompt_worker\` only, no task. The Ctrl+T hint won't fire because no add_task ran.
71
- - If the user wanted a backlog → \`add_task\` only, do NOT auto-dispatch in the same turn. Let them review and press \`r\` themselves.
72
-
73
- **User says "go" / "run them" / "run all tasks"** → call \`dispatch_pending\` (no project arg) to fan out across idle workers from the existing plan.
74
-
75
- **User says "let's plan some work" / "create some tasks" / "plan tasks for each"** → see "Planning substantive tasks" below.
64
+ For substantive task generation when the user IS asking you to plan, see "Planning substantive tasks" below.
76
65
 
77
66
  # Planning substantive tasks
78
67
 
@@ -176,6 +165,16 @@ This keeps the loop bounded — workers don't grind forever on a stuck task.
176
165
  - Routine dispatches don't need user permission — just call \`prompt_worker\`.
177
166
  - Parallel dispatch when work is independent; sequential when one depends on another.
178
167
  - Use ONLY the project names listed above. Never invent.
179
- - After a verified-good worker turn with nothing left to dispatch, give a one-line update to the user — or stay silent if there's truly nothing to add.`;
168
+ - After a verified-good worker turn with nothing left to dispatch, give a one-line update to the user — or stay silent if there's truly nothing to add.
169
+
170
+ <!-- uncached -->
171
+ Today's date: ${formatToday()}`;
172
+ }
173
+ function formatToday() {
174
+ const today = new Date();
175
+ const day = today.getDate();
176
+ const month = today.toLocaleString("en-US", { month: "long" });
177
+ const year = today.getFullYear();
178
+ return `${day} ${month} ${year}`;
180
179
  }
181
180
  //# sourceMappingURL=boss-system-prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boss-system-prompt.js","sourceRoot":"","sources":["../src/boss-system-prompt.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CAAC,QAAuB;IAC3D,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE/E,OAAO;;;;EAIP,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wJA4K2I,CAAC;AACzJ,CAAC"}
1
+ {"version":3,"file":"boss-system-prompt.js","sourceRoot":"","sources":["../src/boss-system-prompt.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CAAC,QAAuB;IAC3D,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE/E,OAAO;;;;EAIP,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoKG,WAAW,EAAE,EAAE,CAAC;AAChC,CAAC;AAED,SAAS,WAAW;IAClB,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACjC,OAAO,GAAG,GAAG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenkaiiii/gg-boss",
3
- "version": "4.3.111",
3
+ "version": "4.3.113",
4
4
  "type": "module",
5
5
  "description": "Orchestrator agent that drives multiple ggcoder sessions across projects from a single chat",
6
6
  "license": "MIT",