@stigmer/ink 1.0.3 → 2.0.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.
- package/app/SessionView.d.ts.map +1 -1
- package/app/SessionView.js +1 -2
- package/app/SessionView.js.map +1 -1
- package/components/UsageWidget.d.ts.map +1 -1
- package/components/UsageWidget.js +1 -1
- package/components/UsageWidget.js.map +1 -1
- package/package.json +4 -4
- package/src/app/SessionView.tsx +0 -3
- package/src/components/UsageWidget.tsx +2 -1
package/app/SessionView.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionView.d.ts","sourceRoot":"","sources":["../../src/app/SessionView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionView.d.ts","sourceRoot":"","sources":["../../src/app/SessionView.tsx"],"names":[],"mappings":"AAUA,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/C,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAqIrE"}
|
package/app/SessionView.js
CHANGED
|
@@ -7,7 +7,6 @@ import { MessageThread } from "../components/MessageThread.js";
|
|
|
7
7
|
import { TodoList } from "../components/TodoList.js";
|
|
8
8
|
import { FollowUpInput } from "../components/FollowUpInput.js";
|
|
9
9
|
import { UsageWidget } from "../components/UsageWidget.js";
|
|
10
|
-
import { ContextGauge } from "../components/ContextGauge.js";
|
|
11
10
|
import { ExecutionProgress } from "../components/ExecutionProgress.js";
|
|
12
11
|
/**
|
|
13
12
|
* Full-featured session conversation view for the terminal.
|
|
@@ -60,7 +59,7 @@ export function SessionView({ sessionId, org, mode }) {
|
|
|
60
59
|
];
|
|
61
60
|
const activeTodos = conv.activeStreamExecution?.status?.todos;
|
|
62
61
|
const subject = resolvedSubject(conv.session?.spec?.subject);
|
|
63
|
-
return (_jsxs(Box, { flexDirection: "column", children: [subject && subject !== PENDING_SUBJECT && (_jsx(Box, { paddingLeft: 1, marginBottom: 1, children: _jsx(Text, { dimColor: true, bold: true, children: subject }) })), conv.isConnecting && (_jsxs(Box, { gap: 1, paddingLeft: 1, children: [_jsx(Text, { color: "cyan", children: _jsx(Spinner, { type: "dots" }) }), _jsx(Text, { dimColor: true, children: "Connecting to stream..." })] })), conv.streamError && (_jsxs(Box, { flexDirection: "column", paddingLeft: 1, marginBottom: 1, children: [_jsxs(Box, { gap: 1, children: [_jsx(Text, { color: "yellow", bold: true, children: "Stream disconnected" }), _jsx(Text, { dimColor: true, children: "\u2014 reconnecting..." })] }), _jsx(Text, { color: "red", dimColor: true, children: conv.streamError.message })] })), conv.activePhase != null && conv.activePhase !== 0 && (_jsx(ExecutionProgress, { phase: conv.activePhase })), _jsx(MessageThread, { executions: conv.completedExecutions, activeStreamExecution: conv.activeStreamExecution, pendingUserMessage: conv.pendingUserMessage, onApprovalSubmit: conv.submitApproval, submittingApprovalIds: conv.submittingApprovalIds, expandToolCalls: expandTools }), activeTodos && Object.keys(activeTodos).length > 0 && (_jsx(Box, { marginTop: 1, paddingLeft: 1, children: _jsx(TodoList, { todos: activeTodos }) })), conv.approvalError && (_jsx(Box, { paddingLeft: 1, children: _jsxs(Text, { color: "red", children: ["Approval error: ", conv.approvalError.message] }) })), conv.sendError && (_jsx(Box, { paddingLeft: 1, children: _jsxs(Text, { color: "red", children: ["Send error: ", conv.sendError.message] }) })), _jsx(UsageWidget, { executions: allExecutions }),
|
|
62
|
+
return (_jsxs(Box, { flexDirection: "column", children: [subject && subject !== PENDING_SUBJECT && (_jsx(Box, { paddingLeft: 1, marginBottom: 1, children: _jsx(Text, { dimColor: true, bold: true, children: subject }) })), conv.isConnecting && (_jsxs(Box, { gap: 1, paddingLeft: 1, children: [_jsx(Text, { color: "cyan", children: _jsx(Spinner, { type: "dots" }) }), _jsx(Text, { dimColor: true, children: "Connecting to stream..." })] })), conv.streamError && (_jsxs(Box, { flexDirection: "column", paddingLeft: 1, marginBottom: 1, children: [_jsxs(Box, { gap: 1, children: [_jsx(Text, { color: "yellow", bold: true, children: "Stream disconnected" }), _jsx(Text, { dimColor: true, children: "\u2014 reconnecting..." })] }), _jsx(Text, { color: "red", dimColor: true, children: conv.streamError.message })] })), conv.activePhase != null && conv.activePhase !== 0 && (_jsx(ExecutionProgress, { phase: conv.activePhase })), _jsx(MessageThread, { executions: conv.completedExecutions, activeStreamExecution: conv.activeStreamExecution, pendingUserMessage: conv.pendingUserMessage, onApprovalSubmit: conv.submitApproval, submittingApprovalIds: conv.submittingApprovalIds, expandToolCalls: expandTools }), activeTodos && Object.keys(activeTodos).length > 0 && (_jsx(Box, { marginTop: 1, paddingLeft: 1, children: _jsx(TodoList, { todos: activeTodos }) })), conv.approvalError && (_jsx(Box, { paddingLeft: 1, children: _jsxs(Text, { color: "red", children: ["Approval error: ", conv.approvalError.message] }) })), conv.sendError && (_jsx(Box, { paddingLeft: 1, children: _jsxs(Text, { color: "red", children: ["Send error: ", conv.sendError.message] }) })), _jsx(UsageWidget, { executions: allExecutions }), conv.canSendFollowUp && (_jsx(Box, { paddingLeft: 1, children: _jsx(Text, { color: activeMode === "plan" ? "yellow" : "cyan", dimColor: true, children: activeMode === "plan"
|
|
64
63
|
? "Plan mode — read-only analysis, no file mutations"
|
|
65
64
|
: "Agent mode — full tool access" }) })), _jsx(FollowUpInput, { onSubmit: (message) => conv.sendFollowUp(message, { interactionMode: activeMode }), isSubmitting: conv.isSending, disabled: !conv.canSendFollowUp, mode: activeMode })] }));
|
|
66
65
|
}
|
package/app/SessionView.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionView.js","sourceRoot":"","sources":["../../src/app/SessionView.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SessionView.js","sourceRoot":"","sources":["../../src/app/SessionView.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAwBvE;;;;;;;;;;;;;;;;;;;;;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,IAAI,CACvB,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,YACjB,KAAC,IAAI,IAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,kBAC7D,UAAU,KAAK,MAAM;wBACpB,CAAC,CAAC,mDAAmD;wBACrD,CAAC,CAAC,+BAA+B,GAC9B,GACH,CACP,EAED,KAAC,aAAa,IACZ,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,EAE7D,YAAY,EAAE,IAAI,CAAC,SAAS,EAC5B,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAC/B,IAAI,EAAE,UAAU,GAChB,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageWidget.d.ts","sourceRoot":"","sources":["../../src/components/UsageWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAGlG,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"UsageWidget.d.ts","sourceRoot":"","sources":["../../src/components/UsageWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAGlG,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,EAAE,gBAAgB,kDAgB3D"}
|
|
@@ -13,6 +13,6 @@ export function UsageWidget({ executions }) {
|
|
|
13
13
|
const usage = useSessionUsage(executions);
|
|
14
14
|
if (!usage.hasUsage)
|
|
15
15
|
return null;
|
|
16
|
-
return (_jsx(Box, { paddingLeft: 1, gap: 1, children: _jsxs(Text, { dimColor: true, children: [formatCost(usage.totalCostUsd), " \u00B7 ", formatTokenCount(usage.totalTokens), " ", "tokens \u00B7 ", usage.llmCallCount, " ", usage.llmCallCount === 1 ? "call" : "calls", usage.primaryModel ? ` · ${usage.primaryModel}` : ""] }) }));
|
|
16
|
+
return (_jsx(Box, { paddingLeft: 1, gap: 1, children: _jsxs(Text, { dimColor: true, children: [formatCost(usage.totalCostUsd), usage.isEstimated ? " (est.)" : "", " \u00B7 ", formatTokenCount(usage.totalTokens), " ", "tokens \u00B7 ", usage.llmCallCount, " ", usage.llmCallCount === 1 ? "call" : "calls", usage.primaryModel ? ` · ${usage.primaryModel}` : ""] }) }));
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=UsageWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageWidget.js","sourceRoot":"","sources":["../../src/components/UsageWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQ/E;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,UAAU,EAAoB;IAC1D,MAAM,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAE1C,IAAI,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAEjC,OAAO,CACL,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,YACzB,MAAC,IAAI,IAAC,QAAQ,mBACX,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,cAAK,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"UsageWidget.js","sourceRoot":"","sources":["../../src/components/UsageWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQ/E;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,UAAU,EAAoB;IAC1D,MAAM,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAE1C,IAAI,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAEjC,OAAO,CACL,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,YACzB,MAAC,IAAI,IAAC,QAAQ,mBACX,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,EAC9B,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,cAAK,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,GAAG,oBACtE,KAAK,CAAC,YAAY,EAAE,GAAG,EAChC,KAAK,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC3C,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,IAChD,GACH,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/ink",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Ink (React for terminals) components for rendering Stigmer agent sessions in the terminal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@connectrpc/connect-node": "^2.1.1",
|
|
35
|
-
"@stigmer/react": "
|
|
35
|
+
"@stigmer/react": "2.0.0",
|
|
36
36
|
"ink-spinner": "^5.0.0",
|
|
37
37
|
"ink-text-input": "^6.0.0",
|
|
38
38
|
"marked": "^15.0.7",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@bufbuild/protobuf": "^2.0.0",
|
|
43
|
-
"@stigmer/protos": "
|
|
44
|
-
"@stigmer/sdk": "
|
|
43
|
+
"@stigmer/protos": "2.0.0",
|
|
44
|
+
"@stigmer/sdk": "2.0.0",
|
|
45
45
|
"ink": "^7.0.0",
|
|
46
46
|
"react": ">=19.0.0"
|
|
47
47
|
}
|
package/src/app/SessionView.tsx
CHANGED
|
@@ -6,7 +6,6 @@ import { MessageThread } from "../components/MessageThread.js";
|
|
|
6
6
|
import { TodoList } from "../components/TodoList.js";
|
|
7
7
|
import { FollowUpInput } from "../components/FollowUpInput.js";
|
|
8
8
|
import { UsageWidget } from "../components/UsageWidget.js";
|
|
9
|
-
import { ContextGauge } from "../components/ContextGauge.js";
|
|
10
9
|
import { ExecutionProgress } from "../components/ExecutionProgress.js";
|
|
11
10
|
|
|
12
11
|
/** Interaction mode type used for follow-up executions. */
|
|
@@ -167,8 +166,6 @@ export function SessionView({ sessionId, org, mode }: SessionViewProps) {
|
|
|
167
166
|
|
|
168
167
|
<UsageWidget executions={allExecutions} />
|
|
169
168
|
|
|
170
|
-
<ContextGauge execution={conv.activeStreamExecution ?? null} />
|
|
171
|
-
|
|
172
169
|
{conv.canSendFollowUp && (
|
|
173
170
|
<Box paddingLeft={1}>
|
|
174
171
|
<Text color={activeMode === "plan" ? "yellow" : "cyan"} dimColor>
|
|
@@ -25,7 +25,8 @@ export function UsageWidget({ executions }: UsageWidgetProps) {
|
|
|
25
25
|
return (
|
|
26
26
|
<Box paddingLeft={1} gap={1}>
|
|
27
27
|
<Text dimColor>
|
|
28
|
-
{formatCost(usage.totalCostUsd)}
|
|
28
|
+
{formatCost(usage.totalCostUsd)}
|
|
29
|
+
{usage.isEstimated ? " (est.)" : ""} · {formatTokenCount(usage.totalTokens)}{" "}
|
|
29
30
|
tokens · {usage.llmCallCount}{" "}
|
|
30
31
|
{usage.llmCallCount === 1 ? "call" : "calls"}
|
|
31
32
|
{usage.primaryModel ? ` · ${usage.primaryModel}` : ""}
|