@hasna/oldpal 0.3.8 → 0.3.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.
package/dist/index.js CHANGED
@@ -28594,7 +28594,7 @@ var import_react20 = __toESM(require_react(), 1);
28594
28594
  // node_modules/.pnpm/ink@5.2.1_@types+react@18.3.27_react-devtools-core@4.28.5_react@18.3.1/node_modules/ink/build/hooks/use-focus-manager.js
28595
28595
  var import_react21 = __toESM(require_react(), 1);
28596
28596
  // packages/terminal/src/components/App.tsx
28597
- var import_react27 = __toESM(require_react(), 1);
28597
+ var import_react26 = __toESM(require_react(), 1);
28598
28598
  // packages/shared/src/utils.ts
28599
28599
  import { randomUUID } from "crypto";
28600
28600
  function generateId() {
@@ -31998,154 +31998,32 @@ function ProcessingIndicator({
31998
31998
  }, undefined, true, undefined, this);
31999
31999
  }
32000
32000
 
32001
- // packages/terminal/src/components/ToolCallBox.tsx
32002
- var import_react26 = __toESM(require_react(), 1);
32003
- var jsx_dev_runtime7 = __toESM(require_jsx_dev_runtime(), 1);
32004
- function ToolCallBox({
32005
- entries,
32006
- maxVisible = 3,
32007
- isExpanded = false,
32008
- onToggleExpand
32009
- }) {
32010
- if (entries.length === 0) {
32011
- return null;
32012
- }
32013
- const visibleEntries = isExpanded ? entries : entries.slice(-maxVisible);
32014
- const hiddenCount = entries.length - visibleEntries.length;
32015
- return /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32016
- flexDirection: "column",
32017
- borderStyle: "round",
32018
- borderColor: "gray",
32019
- paddingX: 1,
32020
- marginY: 1,
32021
- children: [
32022
- /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32023
- justifyContent: "space-between",
32024
- children: [
32025
- /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32026
- dimColor: true,
32027
- bold: true,
32028
- children: [
32029
- "Tools (",
32030
- entries.length,
32031
- ")"
32032
- ]
32033
- }, undefined, true, undefined, this),
32034
- entries.length > maxVisible && /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32035
- dimColor: true,
32036
- children: isExpanded ? "Ctrl+O to collapse" : "Ctrl+O to expand"
32037
- }, undefined, false, undefined, this)
32038
- ]
32039
- }, undefined, true, undefined, this),
32040
- hiddenCount > 0 && !isExpanded && /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32041
- dimColor: true,
32042
- children: [
32043
- " +",
32044
- hiddenCount,
32045
- " more above..."
32046
- ]
32047
- }, undefined, true, undefined, this),
32048
- visibleEntries.map((entry, index) => /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(ToolCallRow, {
32049
- entry
32050
- }, entry.toolCall.id, false, undefined, this))
32051
- ]
32052
- }, undefined, true, undefined, this);
32053
- }
32054
- function ToolCallRow({ entry }) {
32055
- const { toolCall, result } = entry;
32056
- const statusIcon = result ? result.isError ? "\u2717" : "\u2713" : "\u25D0";
32057
- const statusColor = result ? result.isError ? "red" : "green" : "yellow";
32058
- return /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32059
- children: [
32060
- /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32061
- color: statusColor,
32062
- children: [
32063
- statusIcon,
32064
- " "
32065
- ]
32066
- }, undefined, true, undefined, this),
32067
- /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32068
- dimColor: true,
32069
- children: formatToolCall2(toolCall)
32070
- }, undefined, false, undefined, this)
32071
- ]
32072
- }, undefined, true, undefined, this);
32073
- }
32074
- function formatToolCall2(toolCall) {
32075
- const { name, input } = toolCall;
32076
- switch (name) {
32077
- case "bash":
32078
- return `bash: ${truncate2(String(input.command || ""), 50)}`;
32079
- case "curl":
32080
- case "web_fetch":
32081
- return `fetch: ${truncate2(String(input.url || ""), 50)}`;
32082
- case "web_search":
32083
- return `search: ${truncate2(String(input.query || ""), 50)}`;
32084
- case "read":
32085
- return `read: ${truncate2(String(input.path || input.file_path || ""), 50)}`;
32086
- case "write":
32087
- return `write: ${truncate2(String(input.path || input.file_path || ""), 50)}`;
32088
- case "glob":
32089
- return `glob: ${truncate2(String(input.pattern || ""), 50)}`;
32090
- case "grep":
32091
- return `grep: ${truncate2(String(input.pattern || ""), 50)}`;
32092
- case "notion":
32093
- return `notion: ${truncate2(String(input.command || input.action || ""), 50)}`;
32094
- case "gmail":
32095
- return `gmail: ${truncate2(String(input.command || input.action || ""), 50)}`;
32096
- case "googledrive":
32097
- return `drive: ${truncate2(String(input.command || input.action || ""), 50)}`;
32098
- case "googlecalendar":
32099
- return `calendar: ${truncate2(String(input.command || input.action || ""), 50)}`;
32100
- case "linear":
32101
- return `linear: ${truncate2(String(input.command || input.action || ""), 50)}`;
32102
- case "slack":
32103
- return `slack: ${truncate2(String(input.command || input.action || ""), 50)}`;
32104
- default:
32105
- return `${name}: ${truncate2(JSON.stringify(input), 40)}`;
32106
- }
32107
- }
32108
- function truncate2(text, maxLength) {
32109
- if (text.length <= maxLength)
32110
- return text;
32111
- return text.slice(0, maxLength - 3) + "...";
32112
- }
32113
- function useToolCallExpansion() {
32114
- const [isExpanded, setIsExpanded] = import_react26.useState(false);
32115
- use_input_default((input, key) => {
32116
- if (key.ctrl && input === "o") {
32117
- setIsExpanded((prev) => !prev);
32118
- }
32119
- });
32120
- return { isExpanded, setIsExpanded };
32121
- }
32122
-
32123
32001
  // packages/terminal/src/components/WelcomeBanner.tsx
32124
- var jsx_dev_runtime8 = __toESM(require_jsx_dev_runtime(), 1);
32002
+ var jsx_dev_runtime7 = __toESM(require_jsx_dev_runtime(), 1);
32125
32003
  function WelcomeBanner({ version, model, directory }) {
32126
32004
  const homeDir = process.env.HOME || "";
32127
32005
  const displayDir = directory.startsWith(homeDir) ? "~" + directory.slice(homeDir.length) : directory;
32128
- return /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32006
+ return /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32129
32007
  flexDirection: "column",
32130
32008
  marginBottom: 1,
32131
32009
  children: [
32132
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32010
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32133
32011
  children: [
32134
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32012
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32135
32013
  color: "cyan",
32136
32014
  bold: true,
32137
32015
  children: ">"
32138
32016
  }, undefined, false, undefined, this),
32139
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32017
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32140
32018
  color: "cyan",
32141
32019
  bold: true,
32142
32020
  children: "_ "
32143
32021
  }, undefined, false, undefined, this),
32144
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32022
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32145
32023
  bold: true,
32146
32024
  children: "oldpal"
32147
32025
  }, undefined, false, undefined, this),
32148
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32026
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32149
32027
  dimColor: true,
32150
32028
  children: [
32151
32029
  " (v",
@@ -32155,29 +32033,29 @@ function WelcomeBanner({ version, model, directory }) {
32155
32033
  }, undefined, true, undefined, this)
32156
32034
  ]
32157
32035
  }, undefined, true, undefined, this),
32158
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32036
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32159
32037
  marginTop: 1,
32160
32038
  children: [
32161
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32039
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32162
32040
  dimColor: true,
32163
32041
  children: "model: "
32164
32042
  }, undefined, false, undefined, this),
32165
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32043
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32166
32044
  children: model
32167
32045
  }, undefined, false, undefined, this),
32168
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32046
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32169
32047
  dimColor: true,
32170
32048
  children: " /model to change"
32171
32049
  }, undefined, false, undefined, this)
32172
32050
  ]
32173
32051
  }, undefined, true, undefined, this),
32174
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32052
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
32175
32053
  children: [
32176
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32054
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32177
32055
  dimColor: true,
32178
32056
  children: "directory: "
32179
32057
  }, undefined, false, undefined, this),
32180
- /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32058
+ /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text, {
32181
32059
  children: displayDir
32182
32060
  }, undefined, false, undefined, this)
32183
32061
  ]
@@ -32187,30 +32065,53 @@ function WelcomeBanner({ version, model, directory }) {
32187
32065
  }
32188
32066
 
32189
32067
  // packages/terminal/src/components/App.tsx
32190
- var jsx_dev_runtime9 = __toESM(require_jsx_dev_runtime(), 1);
32068
+ var jsx_dev_runtime8 = __toESM(require_jsx_dev_runtime(), 1);
32069
+ function formatToolName(toolCall) {
32070
+ const { name, input } = toolCall;
32071
+ switch (name) {
32072
+ case "bash":
32073
+ return `bash`;
32074
+ case "read":
32075
+ const path = String(input.path || input.file_path || "");
32076
+ return `read ${path.split("/").pop() || ""}`;
32077
+ case "write":
32078
+ const writePath = String(input.path || input.file_path || "");
32079
+ return `write ${writePath.split("/").pop() || ""}`;
32080
+ case "glob":
32081
+ return `glob`;
32082
+ case "grep":
32083
+ return `grep`;
32084
+ case "web_search":
32085
+ return `search`;
32086
+ case "web_fetch":
32087
+ case "curl":
32088
+ return `fetch`;
32089
+ default:
32090
+ return name;
32091
+ }
32092
+ }
32191
32093
  function App2({ cwd: cwd2 }) {
32192
32094
  const { exit } = use_app_default();
32193
- const [client, setClient] = import_react27.useState(null);
32194
- const [messages, setMessages] = import_react27.useState([]);
32195
- const [currentResponse, setCurrentResponse] = import_react27.useState("");
32196
- const [currentToolCall, setCurrentToolCall] = import_react27.useState();
32197
- const [lastToolResult, setLastToolResult] = import_react27.useState();
32198
- const [isProcessing, setIsProcessing] = import_react27.useState(false);
32199
- const [isInitializing, setIsInitializing] = import_react27.useState(true);
32200
- const [error, setError] = import_react27.useState(null);
32201
- const [messageQueue, setMessageQueue] = import_react27.useState([]);
32202
- const [activityLog, setActivityLog] = import_react27.useState([]);
32203
- const [tokenUsage, setTokenUsage] = import_react27.useState();
32204
- const [processingStartTime, setProcessingStartTime] = import_react27.useState();
32205
- const [currentTurnTokens, setCurrentTurnTokens] = import_react27.useState(0);
32206
- const [scrollOffset, setScrollOffset] = import_react27.useState(0);
32207
- const [autoScroll, setAutoScroll] = import_react27.useState(true);
32208
- const { isExpanded: toolsExpanded } = useToolCallExpansion();
32209
- const responseRef = import_react27.useRef("");
32210
- const clientRef = import_react27.useRef(null);
32211
- const toolCallsRef = import_react27.useRef([]);
32212
- const toolResultsRef = import_react27.useRef([]);
32213
- const processQueue = import_react27.useCallback(async () => {
32095
+ const [client, setClient] = import_react26.useState(null);
32096
+ const [messages, setMessages] = import_react26.useState([]);
32097
+ const [currentResponse, setCurrentResponse] = import_react26.useState("");
32098
+ const [currentToolCall, setCurrentToolCall] = import_react26.useState();
32099
+ const [lastToolResult, setLastToolResult] = import_react26.useState();
32100
+ const [isProcessing, setIsProcessing] = import_react26.useState(false);
32101
+ const [isInitializing, setIsInitializing] = import_react26.useState(true);
32102
+ const [error, setError] = import_react26.useState(null);
32103
+ const [messageQueue, setMessageQueue] = import_react26.useState([]);
32104
+ const [activityLog, setActivityLog] = import_react26.useState([]);
32105
+ const [tokenUsage, setTokenUsage] = import_react26.useState();
32106
+ const [processingStartTime, setProcessingStartTime] = import_react26.useState();
32107
+ const [currentTurnTokens, setCurrentTurnTokens] = import_react26.useState(0);
32108
+ const [scrollOffset, setScrollOffset] = import_react26.useState(0);
32109
+ const [autoScroll, setAutoScroll] = import_react26.useState(true);
32110
+ const responseRef = import_react26.useRef("");
32111
+ const clientRef = import_react26.useRef(null);
32112
+ const toolCallsRef = import_react26.useRef([]);
32113
+ const toolResultsRef = import_react26.useRef([]);
32114
+ const processQueue = import_react26.useCallback(async () => {
32214
32115
  if (!clientRef.current || messageQueue.length === 0)
32215
32116
  return;
32216
32117
  const nextMessage = messageQueue[0];
@@ -32235,7 +32136,7 @@ function App2({ cwd: cwd2 }) {
32235
32136
  setIsProcessing(true);
32236
32137
  await clientRef.current.send(nextMessage);
32237
32138
  }, [messageQueue]);
32238
- import_react27.useEffect(() => {
32139
+ import_react26.useEffect(() => {
32239
32140
  const initClient = async () => {
32240
32141
  try {
32241
32142
  const newClient = new EmbeddedClient(cwd2);
@@ -32345,17 +32246,19 @@ function App2({ cwd: cwd2 }) {
32345
32246
  };
32346
32247
  initClient();
32347
32248
  }, [cwd2]);
32348
- import_react27.useEffect(() => {
32249
+ import_react26.useEffect(() => {
32349
32250
  if (!isProcessing && messageQueue.length > 0) {
32350
32251
  processQueue();
32351
32252
  }
32352
32253
  }, [isProcessing, messageQueue.length, processQueue]);
32353
- import_react27.useEffect(() => {
32254
+ import_react26.useEffect(() => {
32354
32255
  if (autoScroll) {
32355
32256
  setScrollOffset(0);
32356
32257
  }
32357
32258
  }, [messages.length, autoScroll]);
32358
- const maxVisibleMessages = 10;
32259
+ const baseMaxVisible = 10;
32260
+ const toolCallsHeight = isProcessing ? Math.min(toolCallsRef.current.length, 5) : 0;
32261
+ const maxVisibleMessages = Math.max(3, baseMaxVisible - toolCallsHeight);
32359
32262
  use_input_default((input, key) => {
32360
32263
  if (key.ctrl && input === "c") {
32361
32264
  if (isProcessing && client) {
@@ -32426,7 +32329,7 @@ function App2({ cwd: cwd2 }) {
32426
32329
  setAutoScroll(true);
32427
32330
  }
32428
32331
  });
32429
- const handleSubmit = import_react27.useCallback(async (input, mode = "normal") => {
32332
+ const handleSubmit = import_react26.useCallback(async (input, mode = "normal") => {
32430
32333
  if (!client || !input.trim())
32431
32334
  return;
32432
32335
  const trimmedInput = input.trim();
@@ -32475,10 +32378,10 @@ function App2({ cwd: cwd2 }) {
32475
32378
  await client.send(trimmedInput);
32476
32379
  }, [client, isProcessing]);
32477
32380
  if (isInitializing) {
32478
- return /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Box_default, {
32381
+ return /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32479
32382
  flexDirection: "column",
32480
32383
  padding: 1,
32481
- children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Spinner2, {
32384
+ children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Spinner2, {
32482
32385
  label: "Initializing..."
32483
32386
  }, undefined, false, undefined, this)
32484
32387
  }, undefined, false, undefined, this);
@@ -32489,17 +32392,17 @@ function App2({ cwd: cwd2 }) {
32489
32392
  });
32490
32393
  const isThinking = isProcessing && !currentResponse && !currentToolCall && toolCallEntries.length === 0;
32491
32394
  const showWelcome = messages.length === 0 && !isProcessing;
32492
- return /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Box_default, {
32395
+ return /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32493
32396
  flexDirection: "column",
32494
32397
  padding: 1,
32495
32398
  children: [
32496
- showWelcome && /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(WelcomeBanner, {
32497
- version: "0.3.8",
32399
+ showWelcome && /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(WelcomeBanner, {
32400
+ version: "0.3.9",
32498
32401
  model: "claude-sonnet-4-20250514",
32499
32402
  directory: cwd2
32500
32403
  }, undefined, false, undefined, this),
32501
- scrollOffset > 0 && /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Box_default, {
32502
- children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Text, {
32404
+ scrollOffset > 0 && /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32405
+ children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32503
32406
  dimColor: true,
32504
32407
  children: [
32505
32408
  "\u2191 ",
@@ -32508,7 +32411,7 @@ function App2({ cwd: cwd2 }) {
32508
32411
  ]
32509
32412
  }, undefined, true, undefined, this)
32510
32413
  }, undefined, false, undefined, this),
32511
- /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Messages4, {
32414
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Messages4, {
32512
32415
  messages,
32513
32416
  currentResponse: isProcessing ? currentResponse : undefined,
32514
32417
  currentToolCall: undefined,
@@ -32517,14 +32420,24 @@ function App2({ cwd: cwd2 }) {
32517
32420
  scrollOffset,
32518
32421
  maxVisible: maxVisibleMessages
32519
32422
  }, undefined, false, undefined, this),
32520
- isProcessing && toolCallEntries.length > 0 && /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(ToolCallBox, {
32521
- entries: toolCallEntries,
32522
- maxVisible: 3,
32523
- isExpanded: toolsExpanded
32423
+ isProcessing && toolCallEntries.length > 0 && /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32424
+ marginY: 1,
32425
+ children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32426
+ dimColor: true,
32427
+ children: [
32428
+ "\u2699 ",
32429
+ toolCallEntries.length,
32430
+ " tool",
32431
+ toolCallEntries.length > 1 ? "s" : "",
32432
+ " running",
32433
+ toolCallEntries.length > 0 && `: ${formatToolName(toolCallEntries[toolCallEntries.length - 1].toolCall)}`,
32434
+ toolCallEntries.length > 1 && ` (+${toolCallEntries.length - 1} more)`
32435
+ ]
32436
+ }, undefined, true, undefined, this)
32524
32437
  }, undefined, false, undefined, this),
32525
- messageQueue.length > 0 && /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Box_default, {
32438
+ messageQueue.length > 0 && /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32526
32439
  marginY: 1,
32527
- children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Text, {
32440
+ children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32528
32441
  dimColor: true,
32529
32442
  children: [
32530
32443
  messageQueue.length,
@@ -32534,9 +32447,9 @@ function App2({ cwd: cwd2 }) {
32534
32447
  ]
32535
32448
  }, undefined, true, undefined, this)
32536
32449
  }, undefined, false, undefined, this),
32537
- error && /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Box_default, {
32450
+ error && /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
32538
32451
  marginY: 1,
32539
- children: /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Text, {
32452
+ children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text, {
32540
32453
  color: "red",
32541
32454
  children: [
32542
32455
  "Error: ",
@@ -32544,18 +32457,18 @@ function App2({ cwd: cwd2 }) {
32544
32457
  ]
32545
32458
  }, undefined, true, undefined, this)
32546
32459
  }, undefined, false, undefined, this),
32547
- /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(ProcessingIndicator, {
32460
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(ProcessingIndicator, {
32548
32461
  isProcessing,
32549
32462
  startTime: processingStartTime,
32550
32463
  tokenCount: currentTurnTokens,
32551
32464
  isThinking
32552
32465
  }, undefined, false, undefined, this),
32553
- /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Input, {
32466
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Input, {
32554
32467
  onSubmit: handleSubmit,
32555
32468
  isProcessing,
32556
32469
  queueLength: messageQueue.length
32557
32470
  }, undefined, false, undefined, this),
32558
- /* @__PURE__ */ jsx_dev_runtime9.jsxDEV(Status, {
32471
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Status, {
32559
32472
  isProcessing,
32560
32473
  cwd: cwd2,
32561
32474
  queueLength: messageQueue.length,
@@ -32566,7 +32479,7 @@ function App2({ cwd: cwd2 }) {
32566
32479
  }
32567
32480
 
32568
32481
  // packages/terminal/src/index.tsx
32569
- var jsx_dev_runtime10 = __toESM(require_jsx_dev_runtime(), 1);
32482
+ var jsx_dev_runtime9 = __toESM(require_jsx_dev_runtime(), 1);
32570
32483
  var args = process.argv.slice(2);
32571
32484
  var options = {
32572
32485
  cwd: process.cwd(),
@@ -32574,7 +32487,7 @@ var options = {
32574
32487
  help: args.includes("--help") || args.includes("-h")
32575
32488
  };
32576
32489
  if (options.version) {
32577
- console.log("oldpal v0.3.8");
32490
+ console.log("oldpal v0.3.9");
32578
32491
  process.exit(0);
32579
32492
  }
32580
32493
  if (options.help) {
@@ -32598,11 +32511,11 @@ In interactive mode:
32598
32511
  `);
32599
32512
  process.exit(0);
32600
32513
  }
32601
- var { waitUntilExit } = render_default(/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(App2, {
32514
+ var { waitUntilExit } = render_default(/* @__PURE__ */ jsx_dev_runtime9.jsxDEV(App2, {
32602
32515
  cwd: options.cwd
32603
32516
  }, undefined, false, undefined, this));
32604
32517
  waitUntilExit().then(() => {
32605
32518
  process.exit(0);
32606
32519
  });
32607
32520
 
32608
- //# debugId=13C80C7BB59BEAC264756E2164756E21
32521
+ //# debugId=4B7AD4CD51004C7264756E2164756E21