@kenkaiiii/gg-boss 4.3.140 → 4.3.142
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.
- package/dist/{chunk-JVQDTPYR.js → chunk-3EWLK53W.js} +18 -9
- package/dist/{chunk-JVQDTPYR.js.map → chunk-3EWLK53W.js.map} +1 -1
- package/dist/{chunk-5WNYQQPQ.js → chunk-QT366Y52.js} +4 -3
- package/dist/{chunk-5WNYQQPQ.js.map → chunk-QT366Y52.js.map} +1 -1
- package/dist/{chunk-PQAHDHVY.js → chunk-WJ4S4TOY.js} +3 -2
- package/dist/{chunk-PQAHDHVY.js.map → chunk-WJ4S4TOY.js.map} +1 -1
- package/dist/{chunk-B2WQ5E5J.js → chunk-YNWFCUMR.js} +2 -1
- package/dist/{chunk-B2WQ5E5J.js.map → chunk-YNWFCUMR.js.map} +1 -1
- package/dist/cli.js +2248 -182
- package/dist/cli.js.map +1 -1
- package/dist/{devtools-VBUDNGEI.js → devtools-4TI4D7F2.js} +3 -2
- package/dist/{devtools-VBUDNGEI.js.map → devtools-4TI4D7F2.js.map} +1 -1
- package/dist/{dist-7DAPKZGX.js → dist-VXOVSHZ5.js} +3 -2
- package/dist/{dist-7DAPKZGX.js.map → dist-VXOVSHZ5.js.map} +1 -1
- package/dist/{ignore-3AEIALHQ.js → ignore-76P4EAAU.js} +3 -2
- package/dist/{ignore-3AEIALHQ.js.map → ignore-76P4EAAU.js.map} +1 -1
- package/dist/index.js +21 -4
- package/dist/index.js.map +1 -1
- package/dist/{out-D65DTPFZ.js → out-XEXARMKS.js} +3 -2
- package/dist/{out-D65DTPFZ.js.map → out-XEXARMKS.js.map} +1 -1
- package/dist/pixel-WPYTQADG.js +14 -0
- package/dist/{pixel-fix-ALWXCLTS.js → pixel-fix-4WGZAJ5W.js} +4 -3
- package/dist/{pixel-fix-ALWXCLTS.js.map → pixel-fix-4WGZAJ5W.js.map} +1 -1
- package/package.json +10 -11
- package/dist/audio.d.ts +0 -21
- package/dist/audio.d.ts.map +0 -1
- package/dist/audio.js +0 -231
- package/dist/audio.js.map +0 -1
- package/dist/audio.test.d.ts +0 -2
- package/dist/audio.test.d.ts.map +0 -1
- package/dist/audio.test.js +0 -13
- package/dist/audio.test.js.map +0 -1
- package/dist/auto-update.d.ts +0 -24
- package/dist/auto-update.d.ts.map +0 -1
- package/dist/auto-update.js +0 -231
- package/dist/auto-update.js.map +0 -1
- package/dist/banner.d.ts +0 -17
- package/dist/banner.d.ts.map +0 -1
- package/dist/banner.js +0 -25
- package/dist/banner.js.map +0 -1
- package/dist/boss-footer.d.ts +0 -25
- package/dist/boss-footer.d.ts.map +0 -1
- package/dist/boss-footer.js +0 -107
- package/dist/boss-footer.js.map +0 -1
- package/dist/boss-phrases.d.ts +0 -9
- package/dist/boss-phrases.d.ts.map +0 -1
- package/dist/boss-phrases.js +0 -71
- package/dist/boss-phrases.js.map +0 -1
- package/dist/boss-store.d.ts +0 -245
- package/dist/boss-store.d.ts.map +0 -1
- package/dist/boss-store.js +0 -623
- package/dist/boss-store.js.map +0 -1
- package/dist/boss-system-prompt.d.ts +0 -3
- package/dist/boss-system-prompt.d.ts.map +0 -1
- package/dist/boss-system-prompt.js +0 -180
- package/dist/boss-system-prompt.js.map +0 -1
- package/dist/boss-tasks-overlay.d.ts +0 -22
- package/dist/boss-tasks-overlay.d.ts.map +0 -1
- package/dist/boss-tasks-overlay.js +0 -157
- package/dist/boss-tasks-overlay.js.map +0 -1
- package/dist/branding.d.ts +0 -32
- package/dist/branding.d.ts.map +0 -1
- package/dist/branding.js +0 -59
- package/dist/branding.js.map +0 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.smoke.test.d.ts +0 -2
- package/dist/cli.smoke.test.d.ts.map +0 -1
- package/dist/cli.smoke.test.js +0 -48
- package/dist/cli.smoke.test.js.map +0 -1
- package/dist/colors.d.ts +0 -14
- package/dist/colors.d.ts.map +0 -1
- package/dist/colors.js +0 -31
- package/dist/colors.js.map +0 -1
- package/dist/discover.d.ts +0 -13
- package/dist/discover.d.ts.map +0 -1
- package/dist/discover.js +0 -92
- package/dist/discover.js.map +0 -1
- package/dist/event-queue.d.ts +0 -16
- package/dist/event-queue.d.ts.map +0 -1
- package/dist/event-queue.js +0 -39
- package/dist/event-queue.js.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/link-command.d.ts +0 -2
- package/dist/link-command.d.ts.map +0 -1
- package/dist/link-command.js +0 -120
- package/dist/link-command.js.map +0 -1
- package/dist/links.d.ts +0 -11
- package/dist/links.d.ts.map +0 -1
- package/dist/links.js +0 -22
- package/dist/links.js.map +0 -1
- package/dist/logger.d.ts +0 -41
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -112
- package/dist/logger.js.map +0 -1
- package/dist/orchestrator-app.d.ts +0 -15
- package/dist/orchestrator-app.d.ts.map +0 -1
- package/dist/orchestrator-app.js +0 -599
- package/dist/orchestrator-app.js.map +0 -1
- package/dist/orchestrator.d.ts +0 -147
- package/dist/orchestrator.d.ts.map +0 -1
- package/dist/orchestrator.js +0 -707
- package/dist/orchestrator.js.map +0 -1
- package/dist/orchestrator.test.d.ts +0 -2
- package/dist/orchestrator.test.d.ts.map +0 -1
- package/dist/orchestrator.test.js +0 -55
- package/dist/orchestrator.test.js.map +0 -1
- package/dist/pixel-WB6VRJWP.js +0 -13
- package/dist/radio-picker.d.ts +0 -20
- package/dist/radio-picker.d.ts.map +0 -1
- package/dist/radio-picker.js +0 -31
- package/dist/radio-picker.js.map +0 -1
- package/dist/radio.d.ts +0 -43
- package/dist/radio.d.ts.map +0 -1
- package/dist/radio.js +0 -150
- package/dist/radio.js.map +0 -1
- package/dist/sessions.d.ts +0 -21
- package/dist/sessions.d.ts.map +0 -1
- package/dist/sessions.js +0 -122
- package/dist/sessions.js.map +0 -1
- package/dist/settings.d.ts +0 -11
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -38
- package/dist/settings.js.map +0 -1
- package/dist/slash-commands.d.ts +0 -19
- package/dist/slash-commands.d.ts.map +0 -1
- package/dist/slash-commands.js +0 -76
- package/dist/slash-commands.js.map +0 -1
- package/dist/splash.d.ts +0 -21
- package/dist/splash.d.ts.map +0 -1
- package/dist/splash.js +0 -137
- package/dist/splash.js.map +0 -1
- package/dist/task-tools.d.ts +0 -18
- package/dist/task-tools.d.ts.map +0 -1
- package/dist/task-tools.js +0 -172
- package/dist/task-tools.js.map +0 -1
- package/dist/tasks-store.d.ts +0 -66
- package/dist/tasks-store.d.ts.map +0 -1
- package/dist/tasks-store.js +0 -199
- package/dist/tasks-store.js.map +0 -1
- package/dist/tasks-store.test.d.ts +0 -2
- package/dist/tasks-store.test.d.ts.map +0 -1
- package/dist/tasks-store.test.js +0 -138
- package/dist/tasks-store.test.js.map +0 -1
- package/dist/tool-formatters.d.ts +0 -7
- package/dist/tool-formatters.d.ts.map +0 -1
- package/dist/tool-formatters.js +0 -111
- package/dist/tool-formatters.js.map +0 -1
- package/dist/tools.d.ts +0 -26
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -133
- package/dist/tools.js.map +0 -1
- package/dist/types.d.ts +0 -32
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/worker.d.ts +0 -47
- package/dist/worker.d.ts.map +0 -1
- package/dist/worker.js +0 -123
- package/dist/worker.js.map +0 -1
- /package/dist/{pixel-WB6VRJWP.js.map → pixel-WPYTQADG.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boss-footer.d.ts","sourceRoot":"","sources":["../src/boss-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgC1B,UAAU,eAAe;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;uEACmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;6BAEyB;IACzB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAaD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,qBAAqB,GACtB,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CA6HtC"}
|
package/dist/boss-footer.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { Text, Box } from "ink";
|
|
4
|
-
import { useTheme } from "@kenkaiiii/ggcoder/ui/theme";
|
|
5
|
-
import { useTerminalSize } from "@kenkaiiii/ggcoder/ui/hooks/terminal-size";
|
|
6
|
-
import { getContextWindow } from "@kenkaiiii/ggcoder";
|
|
7
|
-
import { COLORS } from "./branding.js";
|
|
8
|
-
const PARTIAL_BLOCKS = [" ", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█"];
|
|
9
|
-
const LIGHT_SHADE = "░";
|
|
10
|
-
const SHORT_MODELS = {
|
|
11
|
-
"claude-opus-4-7": "Opus",
|
|
12
|
-
"claude-sonnet-4-6": "Sonnet",
|
|
13
|
-
"claude-haiku-4-5": "Haiku",
|
|
14
|
-
"claude-haiku-4-5-20251001": "Haiku",
|
|
15
|
-
"gpt-5.5": "GPT-5.5",
|
|
16
|
-
"gpt-5.5-pro": "GPT-5.5 Pro",
|
|
17
|
-
"gpt-5.4": "GPT-5.4",
|
|
18
|
-
"gpt-5.4-mini": "GPT-5.4 Mini",
|
|
19
|
-
"gpt-5.3-codex": "GPT-5.3 Codex",
|
|
20
|
-
};
|
|
21
|
-
function shortModel(model) {
|
|
22
|
-
return SHORT_MODELS[model] ?? model;
|
|
23
|
-
}
|
|
24
|
-
function getContextPercent(model, tokensIn) {
|
|
25
|
-
const limit = getContextWindow(model);
|
|
26
|
-
if (!limit || tokensIn === 0)
|
|
27
|
-
return 0;
|
|
28
|
-
return Math.round((tokensIn / limit) * 100);
|
|
29
|
-
}
|
|
30
|
-
// Short, recognisable station names for the footer slot. The picker shows the
|
|
31
|
-
// full name; here we just want enough to tell stations apart without eating
|
|
32
|
-
// column budget. Order matters: more-frequent first because pattern matching
|
|
33
|
-
// in the renderer is cheap-but-still-O(n).
|
|
34
|
-
const SHORT_RADIO = {
|
|
35
|
-
"somafm-groove-salad": "Groove Salad",
|
|
36
|
-
"somafm-drone-zone": "Drone Zone",
|
|
37
|
-
"radio-paradise": "Radio Paradise",
|
|
38
|
-
"george-fm": "George FM",
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Footer for gg-boss that mirrors ggcoder's Footer visual style — context bar
|
|
42
|
-
* with partial-block precision, percent, then BOTH models displayed in the
|
|
43
|
-
* same bold/coloured treatment so neither feels secondary.
|
|
44
|
-
*/
|
|
45
|
-
export function BossFooter({ bossModel, workerModel, tokensIn, exitPending, bossThinkingLevel, updatePending, currentRadioStationId, }) {
|
|
46
|
-
const theme = useTheme();
|
|
47
|
-
const { columns } = useTerminalSize();
|
|
48
|
-
if (exitPending) {
|
|
49
|
-
return (_jsx(Box, { paddingX: 1, children: _jsx(Text, { color: theme.warning, children: "Press Ctrl+C again to exit" }) }));
|
|
50
|
-
}
|
|
51
|
-
const contextPct = getContextPercent(bossModel, tokensIn);
|
|
52
|
-
const contextColor = contextPct >= 80 ? theme.error : contextPct >= 50 ? theme.warning : theme.success;
|
|
53
|
-
const sep = _jsx(Text, { color: theme.border, children: " │ " });
|
|
54
|
-
// Context bar — same partial-block precision as ggcoder's Footer.
|
|
55
|
-
const barWidth = 8;
|
|
56
|
-
const fillFloat = Math.min((contextPct / 100) * barWidth, barWidth);
|
|
57
|
-
const barChars = [];
|
|
58
|
-
for (let i = 0; i < barWidth; i++) {
|
|
59
|
-
const cellFill = Math.max(0, Math.min(1, fillFloat - i));
|
|
60
|
-
const eighths = Math.round(cellFill * 8);
|
|
61
|
-
if (eighths === 8) {
|
|
62
|
-
barChars.push(_jsx(Text, { color: contextColor, children: PARTIAL_BLOCKS[8] }, i));
|
|
63
|
-
}
|
|
64
|
-
else if (eighths > 0) {
|
|
65
|
-
barChars.push(_jsx(Text, { color: contextColor, children: PARTIAL_BLOCKS[eighths] }, i));
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
barChars.push(_jsx(Text, { color: theme.textDim, children: LIGHT_SHADE }, i));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
// Priority-drop layout: when terminal is narrower than the full footer
|
|
72
|
-
// would need, we shed lower-priority chrome to keep the row from wrapping.
|
|
73
|
-
// Ranked highest-to-lowest priority:
|
|
74
|
-
// 1. context bar + % — always visible (essential)
|
|
75
|
-
// 2. update notice — actionable; user needs to know
|
|
76
|
-
// 3. radio — visible state of an audio process they started
|
|
77
|
-
// 4. boss/worker model names — frequent reference, but stable
|
|
78
|
-
// 5. thinking indicator — least chatty, easiest to hide first
|
|
79
|
-
// 6. "boss "/"workers " text labels — pure decoration
|
|
80
|
-
//
|
|
81
|
-
// Approximate per-section widths (with separator " │ "):
|
|
82
|
-
// bar+% = ~12, model = ~5+name+3 sep, thinking = ~14, radio ≈ ♪+name+3,
|
|
83
|
-
// update = ~30. We compute and degrade in stages.
|
|
84
|
-
const radioName = currentRadioStationId
|
|
85
|
-
? (SHORT_RADIO[currentRadioStationId] ?? currentRadioStationId)
|
|
86
|
-
: null;
|
|
87
|
-
const bossM = shortModel(bossModel);
|
|
88
|
-
const wkrM = shortModel(workerModel);
|
|
89
|
-
// Rough char estimate; padding=2, separators are " │ " (3 each).
|
|
90
|
-
const estFull = 2 +
|
|
91
|
-
12 + // bar + " 99%"
|
|
92
|
-
3 +
|
|
93
|
-
5 +
|
|
94
|
-
bossM.length + // " │ boss <model>"
|
|
95
|
-
3 +
|
|
96
|
-
8 +
|
|
97
|
-
wkrM.length + // " │ workers <model>"
|
|
98
|
-
3 +
|
|
99
|
-
12 + // " │ Thinking off"
|
|
100
|
-
(radioName ? 3 + 2 + radioName.length : 0) + // " │ ♪ Name"
|
|
101
|
-
(updatePending ? 3 + 28 : 0); // " │ Update ready. Restart GG Boss."
|
|
102
|
-
const dropLabels = estFull > columns; // stage 1: kill "boss "/"workers " words
|
|
103
|
-
const dropThinking = estFull > columns + 14; // stage 2: kill thinking indicator
|
|
104
|
-
const useShortUpdate = updatePending && estFull > columns + 6; // stage 3: shrink the update notice
|
|
105
|
-
return (_jsxs(Box, { paddingX: 1, width: columns, children: [_jsx(Box, { flexGrow: 1 }), _jsxs(Box, { flexShrink: 0, children: [_jsx(Text, { children: barChars }), _jsxs(Text, { color: contextColor, children: [" ", contextPct, "%"] }), sep, !dropLabels && _jsx(Text, { color: theme.textDim, children: "boss " }), _jsx(Text, { color: COLORS.primary, bold: true, children: bossM }), sep, !dropLabels && _jsx(Text, { color: theme.textDim, children: "workers " }), _jsx(Text, { color: COLORS.accent, bold: true, children: wkrM }), !dropThinking && (_jsxs(_Fragment, { children: [sep, _jsx(Text, { color: bossThinkingLevel ? theme.accent : theme.textDim, children: bossThinkingLevel ? "Thinking on" : "Thinking off" })] })), radioName && (_jsxs(_Fragment, { children: [sep, _jsxs(Text, { color: theme.secondary ?? theme.accent, children: ["\u266A ", radioName] })] })), updatePending && (_jsxs(_Fragment, { children: [sep, _jsx(Text, { color: theme.success, bold: true, wrap: "truncate", children: useShortUpdate ? "Update ready" : "Update ready. Restart GG Boss." })] }))] })] }));
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=boss-footer.js.map
|
package/dist/boss-footer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boss-footer.js","sourceRoot":"","sources":["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AAG,EACJ,KAAC,IAAI,IAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAC1D,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,GAC9C,IACN,CACJ,EACA,SAAS,IAAI,CACZ,8BACG,GAAG,EACJ,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,wBAAK,SAAS,IAAQ,IACjE,CACJ,EACA,aAAa,IAAI,CAChB,8BACG,GAAG,EACJ,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,QAAC,IAAI,EAAC,UAAU,YAC7C,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,gCAAgC,GAC9D,IACN,CACJ,IACG,IACF,CACP,CAAC;AACJ,CAAC"}
|
package/dist/boss-phrases.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ActivityPhase } from "@kenkaiiii/ggcoder/ui";
|
|
2
|
-
/**
|
|
3
|
-
* Boss-themed phrase library for the activity indicator. Replaces ggcoder's
|
|
4
|
-
* coder-flavored phrases ("Cogitating", "Sleuthing", etc.) with vocabulary
|
|
5
|
-
* that fits an orchestrator role — managing, dispatching, reviewing — so the
|
|
6
|
-
* spinner reads as "the boss is at work" not "the boss is writing code".
|
|
7
|
-
*/
|
|
8
|
-
export declare const BOSS_PHRASES: Record<ActivityPhase, string[]>;
|
|
9
|
-
//# sourceMappingURL=boss-phrases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boss-phrases.d.ts","sourceRoot":"","sources":["../src/boss-phrases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CAoExD,CAAC"}
|
package/dist/boss-phrases.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Boss-themed phrase library for the activity indicator. Replaces ggcoder's
|
|
3
|
-
* coder-flavored phrases ("Cogitating", "Sleuthing", etc.) with vocabulary
|
|
4
|
-
* that fits an orchestrator role — managing, dispatching, reviewing — so the
|
|
5
|
-
* spinner reads as "the boss is at work" not "the boss is writing code".
|
|
6
|
-
*/
|
|
7
|
-
export const BOSS_PHRASES = {
|
|
8
|
-
// Generic between-states fallback. Probably never shown but keep for safety.
|
|
9
|
-
idle: ["Standing by", "Waiting for orders", "On call"],
|
|
10
|
-
// Boss has issued a request, waiting for the LLM to begin streaming.
|
|
11
|
-
waiting: [
|
|
12
|
-
"Briefing",
|
|
13
|
-
"Reviewing the room",
|
|
14
|
-
"Triaging",
|
|
15
|
-
"Lining up the brief",
|
|
16
|
-
"Surveying projects",
|
|
17
|
-
"Reading the room",
|
|
18
|
-
"Picking the right hand",
|
|
19
|
-
"Marshalling thoughts",
|
|
20
|
-
"Checking the board",
|
|
21
|
-
"Sizing up the work",
|
|
22
|
-
],
|
|
23
|
-
// LLM is mid-thinking-block (extended reasoning).
|
|
24
|
-
thinking: [
|
|
25
|
-
"Strategising",
|
|
26
|
-
"Plotting next move",
|
|
27
|
-
"Weighing options",
|
|
28
|
-
"Reasoning",
|
|
29
|
-
"Deliberating",
|
|
30
|
-
"Thinking it through",
|
|
31
|
-
"Mapping the play",
|
|
32
|
-
"Considering angles",
|
|
33
|
-
"Calculating odds",
|
|
34
|
-
"Drafting the call",
|
|
35
|
-
],
|
|
36
|
-
// LLM is streaming text — boss is forming its dispatch / response.
|
|
37
|
-
generating: [
|
|
38
|
-
"Drafting",
|
|
39
|
-
"Composing dispatch",
|
|
40
|
-
"Writing the brief",
|
|
41
|
-
"Penning instructions",
|
|
42
|
-
"Wording it up",
|
|
43
|
-
"Putting it on paper",
|
|
44
|
-
"Phrasing the ask",
|
|
45
|
-
"Forming the directive",
|
|
46
|
-
"Scripting the plan",
|
|
47
|
-
],
|
|
48
|
-
// Boss is invoking a tool — most often prompt_worker.
|
|
49
|
-
tools: [
|
|
50
|
-
"Coordinating",
|
|
51
|
-
"Dispatching",
|
|
52
|
-
"Routing",
|
|
53
|
-
"Delegating",
|
|
54
|
-
"Issuing orders",
|
|
55
|
-
"Handing off",
|
|
56
|
-
"Aligning workers",
|
|
57
|
-
"Conducting",
|
|
58
|
-
"Calling the team",
|
|
59
|
-
"Steering",
|
|
60
|
-
"Pulling levers",
|
|
61
|
-
],
|
|
62
|
-
// Provider retry (overloaded / rate-limited / etc.).
|
|
63
|
-
retrying: [
|
|
64
|
-
"Reattempting",
|
|
65
|
-
"Course correcting",
|
|
66
|
-
"Trying again",
|
|
67
|
-
"Pushing through",
|
|
68
|
-
"Holding the line",
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=boss-phrases.js.map
|
package/dist/boss-phrases.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boss-phrases.js","sourceRoot":"","sources":["../src/boss-phrases.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAoC;IAC3D,6EAA6E;IAC7E,IAAI,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,SAAS,CAAC;IAEtD,qEAAqE;IACrE,OAAO,EAAE;QACP,UAAU;QACV,oBAAoB;QACpB,UAAU;QACV,qBAAqB;QACrB,oBAAoB;QACpB,kBAAkB;QAClB,wBAAwB;QACxB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;KACrB;IAED,kDAAkD;IAClD,QAAQ,EAAE;QACR,cAAc;QACd,oBAAoB;QACpB,kBAAkB;QAClB,WAAW;QACX,cAAc;QACd,qBAAqB;QACrB,kBAAkB;QAClB,oBAAoB;QACpB,kBAAkB;QAClB,mBAAmB;KACpB;IAED,mEAAmE;IACnE,UAAU,EAAE;QACV,UAAU;QACV,oBAAoB;QACpB,mBAAmB;QACnB,sBAAsB;QACtB,eAAe;QACf,qBAAqB;QACrB,kBAAkB;QAClB,uBAAuB;QACvB,oBAAoB;KACrB;IAED,sDAAsD;IACtD,KAAK,EAAE;QACL,cAAc;QACd,aAAa;QACb,SAAS;QACT,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,kBAAkB;QAClB,YAAY;QACZ,kBAAkB;QAClB,UAAU;QACV,gBAAgB;KACjB;IAED,qDAAqD;IACrD,QAAQ,EAAE;QACR,cAAc;QACd,mBAAmB;QACnB,cAAc;QACd,iBAAiB;QACjB,kBAAkB;KACnB;CACF,CAAC"}
|
package/dist/boss-store.d.ts
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import type { ActivityPhase, RetryInfo } from "@kenkaiiii/ggcoder/ui";
|
|
2
|
-
import type { Message, Provider, ThinkingLevel } from "@kenkaiiii/gg-ai";
|
|
3
|
-
import type { WorkerStatus, WorkerTurnSummary } from "./types.js";
|
|
4
|
-
export interface UserItem {
|
|
5
|
-
kind: "user";
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
|
-
timestamp: number;
|
|
9
|
-
}
|
|
10
|
-
export interface AssistantItem {
|
|
11
|
-
kind: "assistant";
|
|
12
|
-
id: string;
|
|
13
|
-
text: string;
|
|
14
|
-
durationMs: number;
|
|
15
|
-
thinking?: string;
|
|
16
|
-
thinkingMs?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ToolItem {
|
|
19
|
-
kind: "tool";
|
|
20
|
-
id: string;
|
|
21
|
-
toolCallId: string;
|
|
22
|
-
name: string;
|
|
23
|
-
args: Record<string, unknown>;
|
|
24
|
-
isError: boolean;
|
|
25
|
-
durationMs: number;
|
|
26
|
-
result: string;
|
|
27
|
-
details?: unknown;
|
|
28
|
-
}
|
|
29
|
-
export interface WorkerEventItem {
|
|
30
|
-
kind: "worker_event";
|
|
31
|
-
id: string;
|
|
32
|
-
project: string;
|
|
33
|
-
status: WorkerStatus;
|
|
34
|
-
finalText: string;
|
|
35
|
-
toolsUsed: {
|
|
36
|
-
name: string;
|
|
37
|
-
ok: boolean;
|
|
38
|
-
}[];
|
|
39
|
-
turnIndex: number;
|
|
40
|
-
timestamp: string;
|
|
41
|
-
}
|
|
42
|
-
export interface WorkerErrorItem {
|
|
43
|
-
kind: "worker_error";
|
|
44
|
-
id: string;
|
|
45
|
-
project: string;
|
|
46
|
-
message: string;
|
|
47
|
-
timestamp: string;
|
|
48
|
-
}
|
|
49
|
-
export interface InfoItem {
|
|
50
|
-
kind: "info";
|
|
51
|
-
id: string;
|
|
52
|
-
text: string;
|
|
53
|
-
level?: "info" | "warning" | "error";
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Task-dispatch announcement. Rendered when the user (or boss) fires a batch
|
|
57
|
-
* of tasks via `r` in the overlay or `dispatch_pending`. Structured (vs plain
|
|
58
|
-
* info text) so each project name can be drawn in its own projectColor() —
|
|
59
|
-
* matching the WorkerStatusBar / WorkerEventRow / scope pill conventions.
|
|
60
|
-
*/
|
|
61
|
-
export interface TaskDispatchItem {
|
|
62
|
-
kind: "task_dispatch";
|
|
63
|
-
id: string;
|
|
64
|
-
tasks: {
|
|
65
|
-
project: string;
|
|
66
|
-
title: string;
|
|
67
|
-
}[];
|
|
68
|
-
timestamp: number;
|
|
69
|
-
}
|
|
70
|
-
export type HistoryItem = UserItem | AssistantItem | ToolItem | WorkerEventItem | WorkerErrorItem | InfoItem | TaskDispatchItem;
|
|
71
|
-
export interface StreamingTool {
|
|
72
|
-
toolCallId: string;
|
|
73
|
-
name: string;
|
|
74
|
-
args: Record<string, unknown>;
|
|
75
|
-
status: "running" | "done" | "error";
|
|
76
|
-
startedAt: number;
|
|
77
|
-
durationMs?: number;
|
|
78
|
-
result?: string;
|
|
79
|
-
details?: unknown;
|
|
80
|
-
}
|
|
81
|
-
export interface StreamingTurn {
|
|
82
|
-
text: string;
|
|
83
|
-
thinking: string;
|
|
84
|
-
thinkingMs: number;
|
|
85
|
-
tools: StreamingTool[];
|
|
86
|
-
startedAt: number;
|
|
87
|
-
thinkingStartedAt: number | null;
|
|
88
|
-
}
|
|
89
|
-
export interface CompactionSnapshot {
|
|
90
|
-
state: "running" | "done";
|
|
91
|
-
originalCount: number;
|
|
92
|
-
newCount: number;
|
|
93
|
-
tokensBefore: number;
|
|
94
|
-
tokensAfter: number;
|
|
95
|
-
}
|
|
96
|
-
export interface WorkerView {
|
|
97
|
-
name: string;
|
|
98
|
-
cwd: string;
|
|
99
|
-
status: WorkerStatus;
|
|
100
|
-
/** When the worker most recently transitioned to "working". Cleared when it
|
|
101
|
-
* goes back to idle/error. Drives the elapsed-time readout in the worker
|
|
102
|
-
* status bar so users can see "yaatuber working · 1:24" while waiting. */
|
|
103
|
-
workStartedAt: number | null;
|
|
104
|
-
lastSummary?: WorkerTurnSummary;
|
|
105
|
-
}
|
|
106
|
-
export interface BossUiState {
|
|
107
|
-
bossProvider: Provider;
|
|
108
|
-
bossModel: string;
|
|
109
|
-
/** Boss extended-thinking level. undefined = off. Toggled via Shift+Tab. */
|
|
110
|
-
bossThinkingLevel?: ThinkingLevel;
|
|
111
|
-
workerProvider: Provider;
|
|
112
|
-
workerModel: string;
|
|
113
|
-
/** Providers the user is logged in to — controls which models the picker offers. */
|
|
114
|
-
loggedInProviders: Provider[];
|
|
115
|
-
history: HistoryItem[];
|
|
116
|
-
/**
|
|
117
|
-
* Two-phase flush queue. Items here have already been REMOVED from the
|
|
118
|
-
* streaming live-area (so it has shrunk) but not yet committed to history.
|
|
119
|
-
* A useEffect in BossApp watches `flushGeneration` and calls
|
|
120
|
-
* `commitPendingFlush()` on the next render cycle, so Ink's log-update
|
|
121
|
-
* doesn't try to clear a tall live area AND write new Static lines in the
|
|
122
|
-
* same frame — which clips the bottom of long responses.
|
|
123
|
-
*/
|
|
124
|
-
pendingFlush: HistoryItem[];
|
|
125
|
-
flushGeneration: number;
|
|
126
|
-
/** Info rows queued by mid-turn tools, flushed when the boss's turn ends.
|
|
127
|
-
* See queueEndOfTurnInfo / flushEndOfTurnInfos. */
|
|
128
|
-
pendingEndOfTurnInfos: {
|
|
129
|
-
text: string;
|
|
130
|
-
level: InfoItem["level"];
|
|
131
|
-
}[];
|
|
132
|
-
streaming: StreamingTurn | null;
|
|
133
|
-
phase: "idle" | "working";
|
|
134
|
-
/** Fine-grained phase used by ActivityIndicator. */
|
|
135
|
-
activityPhase: ActivityPhase;
|
|
136
|
-
/** Most recent retry (provider overload, rate limit, etc.), null when not retrying. */
|
|
137
|
-
retryInfo: RetryInfo | null;
|
|
138
|
-
/** Live compaction status (or recent done-state) for the orchestrator's banner. */
|
|
139
|
-
compaction: CompactionSnapshot | null;
|
|
140
|
-
/** Cumulative input tokens from boss turn_end events. Drives footer context bar. */
|
|
141
|
-
bossInputTokens: number;
|
|
142
|
-
/** When the current boss turn started (for elapsed display). */
|
|
143
|
-
runStartMs: number | null;
|
|
144
|
-
workers: WorkerView[];
|
|
145
|
-
pendingUserMessages: number;
|
|
146
|
-
exitPending: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Scope pill in the input — "all" (default) or a specific worker name.
|
|
149
|
-
* Cycled with Tab; gets injected into every prompt the user sends.
|
|
150
|
-
*/
|
|
151
|
-
scope: string;
|
|
152
|
-
}
|
|
153
|
-
export declare function useBossState(): BossUiState;
|
|
154
|
-
export declare const bossStore: {
|
|
155
|
-
init(opts: {
|
|
156
|
-
bossProvider: Provider;
|
|
157
|
-
bossModel: string;
|
|
158
|
-
bossThinkingLevel?: ThinkingLevel;
|
|
159
|
-
workerProvider: Provider;
|
|
160
|
-
workerModel: string;
|
|
161
|
-
loggedInProviders: Provider[];
|
|
162
|
-
workers: {
|
|
163
|
-
name: string;
|
|
164
|
-
cwd: string;
|
|
165
|
-
}[];
|
|
166
|
-
}): void;
|
|
167
|
-
setBossThinking(level: ThinkingLevel | undefined): void;
|
|
168
|
-
setBossModel(provider: Provider, model: string): void;
|
|
169
|
-
setWorkerModel(provider: Provider, model: string): void;
|
|
170
|
-
setLoggedInProviders(providers: Provider[]): void;
|
|
171
|
-
appendUser(text: string): void;
|
|
172
|
-
appendTaskDispatch(tasks: {
|
|
173
|
-
project: string;
|
|
174
|
-
title: string;
|
|
175
|
-
}[]): void;
|
|
176
|
-
appendInfo(text: string, level?: InfoItem["level"]): void;
|
|
177
|
-
/**
|
|
178
|
-
* Queue an info message to be appended AFTER the boss's current turn ends.
|
|
179
|
-
* Used by tools (like add_task's keybind hint) that fire mid-turn and would
|
|
180
|
-
* otherwise interleave their announcement between the boss's tool calls,
|
|
181
|
-
* making it read like the boss issued the message itself.
|
|
182
|
-
*/
|
|
183
|
-
queueEndOfTurnInfo(text: string, level?: InfoItem["level"]): void;
|
|
184
|
-
/** Flush any deferred infos as real history rows. Called from the boss's
|
|
185
|
-
* turn_end event handler in the orchestrator. */
|
|
186
|
-
flushEndOfTurnInfos(): void;
|
|
187
|
-
setPendingMessages(n: number): void;
|
|
188
|
-
startStreaming(): void;
|
|
189
|
-
appendStreamText(text: string): void;
|
|
190
|
-
appendStreamThinking(text: string): void;
|
|
191
|
-
setActivityPhase(phase: ActivityPhase): void;
|
|
192
|
-
setRetryInfo(info: RetryInfo | null): void;
|
|
193
|
-
startCompaction(): void;
|
|
194
|
-
endCompaction(originalCount: number, newCount: number): void;
|
|
195
|
-
cancelCompaction(): void;
|
|
196
|
-
/** Read-only accessor for the orchestrator (which lives outside React). */
|
|
197
|
-
getInputTokens(): number;
|
|
198
|
-
setBossInputTokens(tokens: number): void;
|
|
199
|
-
startTool(toolCallId: string, name: string, args: Record<string, unknown>): void;
|
|
200
|
-
endTool(toolCallId: string, isError: boolean, durationMs: number, result: string, details?: unknown): void;
|
|
201
|
-
/**
|
|
202
|
-
* Flush any pending streaming text into the pendingFlush queue. The actual
|
|
203
|
-
* commit to history happens on the next render cycle (two-phase flush) so
|
|
204
|
-
* Ink doesn't clip long responses.
|
|
205
|
-
* Called on tool_call_start and turn_end so text/tool order is preserved.
|
|
206
|
-
*/
|
|
207
|
-
flushPendingText(): void;
|
|
208
|
-
/**
|
|
209
|
-
* Phase 2 of the two-phase flush. Move queued items into history. Called by
|
|
210
|
-
* a useEffect in BossApp when flushGeneration changes — guaranteed to run
|
|
211
|
-
* AFTER React has painted the live-area shrinkage from phase 1.
|
|
212
|
-
*/
|
|
213
|
-
commitPendingFlush(): void;
|
|
214
|
-
/**
|
|
215
|
-
* Called when the user interrupts (ESC / Ctrl+C while running). Stops all
|
|
216
|
-
* in-flight running tools, queueing them in pendingFlush as errored "Stopped."
|
|
217
|
-
* entries — matches ggcoder's onAborted behavior so the user sees the same
|
|
218
|
-
* visual feedback for an aborted run.
|
|
219
|
-
*/
|
|
220
|
-
interruptStreaming(): void;
|
|
221
|
-
/**
|
|
222
|
-
* Tear down the streaming session. By this point, tool_call_end and turn_end
|
|
223
|
-
* handlers have already flushed text + tools into pendingFlush in proper order.
|
|
224
|
-
* Anything left is a final text tail (no tool followed it) — also goes through
|
|
225
|
-
* the two-phase queue so it doesn't clip.
|
|
226
|
-
*/
|
|
227
|
-
finishStreaming(): void;
|
|
228
|
-
setWorkerStatus(name: string, status: WorkerStatus): void;
|
|
229
|
-
appendWorkerEvent(summary: WorkerTurnSummary): void;
|
|
230
|
-
appendWorkerError(project: string, message: string, timestamp: string): void;
|
|
231
|
-
setScope(scope: string): void;
|
|
232
|
-
/** Cycle scope through ["all", ...worker names]. Wraps around. */
|
|
233
|
-
cycleScope(): void;
|
|
234
|
-
setExitPending(pending: boolean): void;
|
|
235
|
-
reset(): void;
|
|
236
|
-
/**
|
|
237
|
-
* Rebuild the visible chat history from a persisted Message[] (boss session
|
|
238
|
-
* resume). Pairs assistant tool_use blocks with their tool_result blocks
|
|
239
|
-
* so completed tools render in scrollback as if they'd just happened.
|
|
240
|
-
*/
|
|
241
|
-
restoreHistory(messages: Message[]): void;
|
|
242
|
-
/** /clear handler: wipe history but keep workers, model info, etc. */
|
|
243
|
-
clearHistory(): void;
|
|
244
|
-
};
|
|
245
|
-
//# sourceMappingURL=boss-store.d.ts.map
|
package/dist/boss-store.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boss-store.d.ts","sourceRoot":"","sources":["../src/boss-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAEV,OAAO,EACP,QAAQ,EAER,aAAa,EAGd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAiClE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EA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