@jun133/kitty 0.0.14 → 0.0.15

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.
@@ -7,17 +7,17 @@ import {
7
7
  mirrorProcessOutputToTerminalLog,
8
8
  renderKittyBanner,
9
9
  ui
10
- } from "./chunk-KKGULDIF.mjs";
11
- import "./chunk-4BN45TQG.mjs";
10
+ } from "./chunk-WIKLME2V.mjs";
11
+ import "./chunk-KUP5OMPB.mjs";
12
12
  import {
13
13
  createRuntimeUiAgentCallbacks
14
- } from "./chunk-VR3L2EPP.mjs";
14
+ } from "./chunk-AQEMM5VH.mjs";
15
15
  import {
16
16
  colorRuntimeUiText,
17
17
  loadProjectContext,
18
18
  writeStdout
19
- } from "./chunk-KROQCOWD.mjs";
20
- import "./chunk-3KMC6H5K.mjs";
19
+ } from "./chunk-7FDXKNTM.mjs";
20
+ import "./chunk-S4QTRPZ7.mjs";
21
21
 
22
22
  // src/shell/cli/intro.ts
23
23
  import chalk from "chalk";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createRuntimeUiAgentCallbacks
3
- } from "./chunk-VR3L2EPP.mjs";
3
+ } from "./chunk-AQEMM5VH.mjs";
4
4
  import {
5
5
  runHostTurn
6
- } from "./chunk-KROQCOWD.mjs";
7
- import "./chunk-3KMC6H5K.mjs";
6
+ } from "./chunk-7FDXKNTM.mjs";
7
+ import "./chunk-S4QTRPZ7.mjs";
8
8
 
9
9
  // src/cli/oneShot.ts
10
10
  async function runOneShotPrompt(prompt, cwd, config, session, sessionStore, options = {}) {
@@ -2,7 +2,7 @@ import {
2
2
  InProcessSessionStore,
3
3
  SessionStore,
4
4
  createSessionRecord
5
- } from "./chunk-4BN45TQG.mjs";
5
+ } from "./chunk-KUP5OMPB.mjs";
6
6
  import {
7
7
  applyCurrentTurnFrame,
8
8
  buildChatMessages,
@@ -31,7 +31,7 @@ import {
31
31
  shouldIncludeStoredAssistantReasoning,
32
32
  sliceCurrentUserInputFrame,
33
33
  toChatMessage
34
- } from "./chunk-3KMC6H5K.mjs";
34
+ } from "./chunk-S4QTRPZ7.mjs";
35
35
  export {
36
36
  InProcessSessionStore,
37
37
  SessionStore,
package/dist/tui.mjs CHANGED
@@ -7,15 +7,15 @@ import {
7
7
  mirrorInteractionShellToTerminalLog,
8
8
  parseSessionPickerChoice,
9
9
  renderKittyBanner
10
- } from "./chunk-KKGULDIF.mjs";
11
- import "./chunk-4BN45TQG.mjs";
10
+ } from "./chunk-WIKLME2V.mjs";
11
+ import "./chunk-KUP5OMPB.mjs";
12
12
  import {
13
13
  buildToolCallDisplay,
14
14
  buildToolResultDisplay,
15
15
  loadProjectContext,
16
16
  tryParseJson
17
- } from "./chunk-KROQCOWD.mjs";
18
- import "./chunk-3KMC6H5K.mjs";
17
+ } from "./chunk-7FDXKNTM.mjs";
18
+ import "./chunk-S4QTRPZ7.mjs";
19
19
  import {
20
20
  TUI_COLORS,
21
21
  appendTranscriptEntry,
@@ -196,6 +196,7 @@ var TuiController = class {
196
196
  projection = new TuiTranscriptProjection();
197
197
  listeners = /* @__PURE__ */ new Set();
198
198
  pendingInput = null;
199
+ queuedInputs = [];
199
200
  interruptHandler;
200
201
  disposed = false;
201
202
  constructor(session) {
@@ -224,8 +225,12 @@ var TuiController = class {
224
225
  return this.openInput(promptLabel);
225
226
  }
226
227
  submitInput(value) {
228
+ if (this.disposed) {
229
+ return;
230
+ }
227
231
  const pending = this.pendingInput;
228
- if (!pending || this.disposed) {
232
+ if (!pending) {
233
+ this.queuedInputs.push(value);
229
234
  return;
230
235
  }
231
236
  this.pendingInput = null;
@@ -312,6 +317,7 @@ var TuiController = class {
312
317
  }
313
318
  dispose() {
314
319
  this.disposed = true;
320
+ this.queuedInputs = [];
315
321
  this.closeInput();
316
322
  this.listeners.clear();
317
323
  }
@@ -323,6 +329,10 @@ var TuiController = class {
323
329
  this.setState(updateComposerState(this.state, {
324
330
  promptLabel
325
331
  }));
332
+ const queued = this.queuedInputs.shift();
333
+ if (queued !== void 0) {
334
+ return Promise.resolve({ kind: "submit", value: queued });
335
+ }
326
336
  return new Promise((resolve) => {
327
337
  this.pendingInput = {
328
338
  resolve
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jun133/kitty",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Agent",
5
5
  "license": "MIT",
6
6
  "keywords": [