sharkbait 1.0.29 → 1.0.30

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/cli.js +46 -42
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -6772,7 +6772,7 @@ import { render } from "ink";
6772
6772
 
6773
6773
  // src/ui/app.tsx
6774
6774
  import { useCallback as useCallback2, useMemo } from "react";
6775
- import { Box as Box13, Text as Text13, useApp as useApp2 } from "ink";
6775
+ import { Box as Box13, Text as Text13, Static, useApp as useApp2 } from "ink";
6776
6776
 
6777
6777
  // src/ui/message.tsx
6778
6778
  import { memo } from "react";
@@ -7049,7 +7049,7 @@ var Spinner = memo2(function Spinner2({
7049
7049
  useEffect(() => {
7050
7050
  const timer = setInterval(() => {
7051
7051
  setFrameIndex((prev) => (prev + 1) % frames.length);
7052
- }, 300);
7052
+ }, 400);
7053
7053
  return () => clearInterval(timer);
7054
7054
  }, [frames.length]);
7055
7055
  return /* @__PURE__ */ jsxDEV3(Box3, {
@@ -8650,7 +8650,7 @@ function formatToolInfo(name, args) {
8650
8650
  return `${name} → "${taskName}"`;
8651
8651
  return name;
8652
8652
  }
8653
- var RENDER_INTERVAL = 150;
8653
+ var RENDER_INTERVAL = 200;
8654
8654
  function useAgentSession(options = {}) {
8655
8655
  const config = loadConfig();
8656
8656
  const [state, dispatch] = useReducer(sessionReducer, {
@@ -9142,27 +9142,7 @@ function App({
9142
9142
  });
9143
9143
  await processAgentEvents(agent, userMessage);
9144
9144
  }, [pendingConfirm, showWelcome, commandContext, agent, processAgentEvents, handleConfirmation, dispatch]);
9145
- const messageList = useMemo(() => messages.map((msg, i) => /* @__PURE__ */ jsxDEV13(Box13, {
9146
- flexDirection: "column",
9147
- children: [
9148
- /* @__PURE__ */ jsxDEV13(MessageView, {
9149
- role: msg.role,
9150
- content: msg.content,
9151
- timestamp: msg.timestamp
9152
- }, undefined, false, undefined, this),
9153
- msg.toolCalls && msg.toolCalls.length > 0 && /* @__PURE__ */ jsxDEV13(Box13, {
9154
- flexDirection: "column",
9155
- marginLeft: 2,
9156
- children: msg.toolCalls.map((tc, j) => /* @__PURE__ */ jsxDEV13(ToolCallView, {
9157
- name: tc.displayName,
9158
- status: tc.status,
9159
- result: tc.result,
9160
- error: tc.error,
9161
- duration: tc.duration
9162
- }, j, false, undefined, this))
9163
- }, undefined, false, undefined, this)
9164
- ]
9165
- }, i, true, undefined, this)), [messages]);
9145
+ const committedMessages = messages;
9166
9146
  const activeToolCallList = useMemo(() => activeToolCalls.length > 0 ? /* @__PURE__ */ jsxDEV13(Box13, {
9167
9147
  flexDirection: "column",
9168
9148
  marginLeft: 2,
@@ -9178,28 +9158,52 @@ function App({
9178
9158
  flexDirection: "column",
9179
9159
  padding: 0,
9180
9160
  children: [
9181
- showWelcome ? /* @__PURE__ */ jsxDEV13(WelcomeScreen, {
9161
+ showWelcome && /* @__PURE__ */ jsxDEV13(WelcomeScreen, {
9182
9162
  version,
9183
9163
  workingDir: currentDir
9184
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV13(Box13, {
9185
- marginBottom: 0,
9186
- justifyContent: "space-between",
9187
- children: [
9188
- /* @__PURE__ */ jsxDEV13(InlineLogo, {}, undefined, false, undefined, this),
9189
- /* @__PURE__ */ jsxDEV13(Text13, {
9190
- color: colors.textDim,
9191
- children: [
9192
- "v",
9193
- version
9194
- ]
9195
- }, undefined, true, undefined, this)
9196
- ]
9197
- }, undefined, true, undefined, this),
9164
+ }, undefined, false, undefined, this),
9165
+ !showWelcome && /* @__PURE__ */ jsxDEV13(Static, {
9166
+ items: committedMessages,
9167
+ children: (msg, i) => /* @__PURE__ */ jsxDEV13(Box13, {
9168
+ flexDirection: "column",
9169
+ children: [
9170
+ i === 0 && /* @__PURE__ */ jsxDEV13(Box13, {
9171
+ marginBottom: 0,
9172
+ justifyContent: "space-between",
9173
+ children: [
9174
+ /* @__PURE__ */ jsxDEV13(InlineLogo, {}, undefined, false, undefined, this),
9175
+ /* @__PURE__ */ jsxDEV13(Text13, {
9176
+ color: colors.textDim,
9177
+ children: [
9178
+ "v",
9179
+ version
9180
+ ]
9181
+ }, undefined, true, undefined, this)
9182
+ ]
9183
+ }, undefined, true, undefined, this),
9184
+ /* @__PURE__ */ jsxDEV13(MessageView, {
9185
+ role: msg.role,
9186
+ content: msg.content,
9187
+ timestamp: msg.timestamp
9188
+ }, undefined, false, undefined, this),
9189
+ msg.toolCalls && msg.toolCalls.length > 0 && /* @__PURE__ */ jsxDEV13(Box13, {
9190
+ flexDirection: "column",
9191
+ marginLeft: 2,
9192
+ children: msg.toolCalls.map((tc, j) => /* @__PURE__ */ jsxDEV13(ToolCallView, {
9193
+ name: tc.displayName,
9194
+ status: tc.status,
9195
+ result: tc.result,
9196
+ error: tc.error,
9197
+ duration: tc.duration
9198
+ }, j, false, undefined, this))
9199
+ }, undefined, false, undefined, this)
9200
+ ]
9201
+ }, `msg-${i}-${msg.timestamp?.getTime() ?? i}`, true, undefined, this)
9202
+ }, undefined, false, undefined, this),
9198
9203
  !showWelcome && /* @__PURE__ */ jsxDEV13(Box13, {
9199
9204
  flexDirection: "column",
9200
9205
  marginBottom: 0,
9201
9206
  children: [
9202
- messageList,
9203
9207
  activeToolCallList,
9204
9208
  parallelProgress && /* @__PURE__ */ jsxDEV13(ParallelProgressView, {
9205
9209
  title: "Parallel Execution",
@@ -9304,7 +9308,7 @@ function App({
9304
9308
  }
9305
9309
 
9306
9310
  // src/version.ts
9307
- var VERSION = "1.0.29";
9311
+ var VERSION = "1.0.30";
9308
9312
 
9309
9313
  // src/agent/start-chat.ts
9310
9314
  async function startChat(options = {}) {
@@ -10588,7 +10592,7 @@ ${"━".repeat(60)}`);
10588
10592
  }
10589
10593
 
10590
10594
  // src/version.ts
10591
- var VERSION2 = "1.0.29";
10595
+ var VERSION2 = "1.0.30";
10592
10596
 
10593
10597
  // src/ui/logo.tsx
10594
10598
  import { memo as memo12 } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharkbait",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "AI-powered coding assistant for the command line. Uses OpenAI Responses API (not Chat). Autonomous agents, parallel code reviews, 36 tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",