protoagent 0.1.8 → 0.1.9

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 (2) hide show
  1. package/dist/App.js +3 -7
  2. package/package.json +1 -1
package/dist/App.js CHANGED
@@ -79,7 +79,6 @@ function printBanner(addStatic) {
79
79
  const green = '\x1b[38;2;9;164;105m';
80
80
  const reset = '\x1b[0m';
81
81
  addStatic([
82
- '',
83
82
  `${green}█▀█ █▀█ █▀█ ▀█▀ █▀█ ▄▀█ █▀▀ █▀▀ █▄ █ ▀█▀${reset}`,
84
83
  `${green}█▀▀ █▀▄ █▄█ █ █▄█ █▀█ █▄█ ██▄ █ ▀█ █${reset}`,
85
84
  '',
@@ -87,17 +86,14 @@ function printBanner(addStatic) {
87
86
  }
88
87
  function printRuntimeHeader(addStatic, config, session, logFilePath, dangerouslyAcceptAll) {
89
88
  const provider = getProvider(config.provider);
90
- const grey = '\x1b[90m';
91
- const reset = '\x1b[0m';
92
- let line = `${grey}Model: ${provider?.name || config.provider} / ${config.model}`;
89
+ let line = `Model: ${provider?.name || config.provider} / ${config.model}`;
93
90
  if (dangerouslyAcceptAll)
94
91
  line += ' (auto-approve all)';
95
92
  if (session)
96
93
  line += ` | Session: ${session.id.slice(0, 8)}`;
97
- line += reset;
98
94
  let text = `${line}\n`;
99
95
  if (logFilePath) {
100
- text += `${grey}Debug logs: ${logFilePath}${reset}\n`;
96
+ text += `Debug logs: ${logFilePath}\n`;
101
97
  }
102
98
  text += '\n';
103
99
  addStatic(text);
@@ -238,7 +234,7 @@ const ApprovalPrompt = ({ request, onRespond }) => {
238
234
  const UsageDisplay = ({ usage, totalCost }) => {
239
235
  if (!usage && totalCost === 0)
240
236
  return null;
241
- return (_jsxs(Box, { marginTop: 1, children: [usage && (_jsxs(Box, { children: [_jsxs(Box, { backgroundColor: "#042f2e", paddingX: 1, children: [_jsx(Text, { color: "black", children: "tokens: " }), _jsxs(Text, { color: "black", bold: true, children: [usage.inputTokens, "\u2193 ", usage.outputTokens, "\u2191"] })] }), _jsxs(Box, { backgroundColor: "#064e3b", paddingX: 1, children: [_jsx(Text, { color: "black", children: "ctx: " }), _jsxs(Text, { color: "black", bold: true, children: [usage.contextPercent.toFixed(0), "%"] })] })] })), _jsxs(Box, { backgroundColor: "#042f2e", paddingX: 1, children: [_jsx(Text, { color: "black", children: "cost: " }), _jsxs(Text, { color: "black", bold: true, children: ["$", totalCost.toFixed(4)] })] })] }));
237
+ return (_jsxs(Box, { marginTop: 1, children: [usage && (_jsxs(Box, { children: [_jsxs(Box, { backgroundColor: "#064e3b", paddingX: 1, children: [_jsx(Text, { color: "black", children: "tokens: " }), _jsxs(Text, { color: "black", bold: true, children: [usage.inputTokens, "\u2193 ", usage.outputTokens, "\u2191"] })] }), _jsxs(Box, { backgroundColor: "#065f46", paddingX: 1, children: [_jsx(Text, { color: "black", children: "ctx: " }), _jsxs(Text, { color: "black", bold: true, children: [usage.contextPercent.toFixed(0), "%"] })] })] })), totalCost > 0 && (_jsxs(Box, { backgroundColor: "#064e3b", paddingX: 1, children: [_jsx(Text, { color: "black", children: "cost: " }), _jsxs(Text, { color: "black", bold: true, children: ["$", totalCost.toFixed(4)] })] }))] }));
242
238
  };
243
239
  /** Inline setup wizard — shown when no config exists. */
244
240
  const InlineSetup = ({ onComplete }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protoagent",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",