@jun133/kitty 0.0.14 → 0.0.16
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/README.md +25 -137
- package/dist/{App-CBTIS4IK.mjs → App-K7CBA2FU.mjs} +1 -1
- package/dist/{chunk-KROQCOWD.mjs → chunk-7FOTCUIH.mjs} +1486 -305
- package/dist/{chunk-3KMC6H5K.mjs → chunk-C3MFBHV3.mjs} +445 -1428
- package/dist/{chunk-4BN45TQG.mjs → chunk-FKBVCYPW.mjs} +1 -1
- package/dist/{chunk-NBKU7KA4.mjs → chunk-L27HOXD2.mjs} +192 -196
- package/dist/{chunk-KKGULDIF.mjs → chunk-LCTAPA2B.mjs} +113 -56
- package/dist/{chunk-VR3L2EPP.mjs → chunk-XY3SQDFZ.mjs} +1 -1
- package/dist/cli.js +7687 -6924
- package/dist/cli.js.map +1 -1
- package/dist/{interactive-KRRDJYBR.mjs → interactive-ZNDB2JQO.mjs} +5 -5
- package/dist/{oneShot-PHU3JOPP.mjs → oneShot-4SH2HITB.mjs} +3 -3
- package/dist/{session-XKWJHRVY.mjs → session-WJWPSYBD.mjs} +2 -2
- package/dist/tui.mjs +17 -7
- package/package.json +5 -2
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
mirrorProcessOutputToTerminalLog,
|
|
8
8
|
renderKittyBanner,
|
|
9
9
|
ui
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LCTAPA2B.mjs";
|
|
11
|
+
import "./chunk-FKBVCYPW.mjs";
|
|
12
12
|
import {
|
|
13
13
|
createRuntimeUiAgentCallbacks
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XY3SQDFZ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
colorRuntimeUiText,
|
|
17
17
|
loadProjectContext,
|
|
18
18
|
writeStdout
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-7FOTCUIH.mjs";
|
|
20
|
+
import "./chunk-C3MFBHV3.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-
|
|
3
|
+
} from "./chunk-XY3SQDFZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
runHostTurn
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7FOTCUIH.mjs";
|
|
7
|
+
import "./chunk-C3MFBHV3.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-
|
|
5
|
+
} from "./chunk-FKBVCYPW.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-
|
|
34
|
+
} from "./chunk-C3MFBHV3.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-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LCTAPA2B.mjs";
|
|
11
|
+
import "./chunk-FKBVCYPW.mjs";
|
|
12
12
|
import {
|
|
13
13
|
buildToolCallDisplay,
|
|
14
14
|
buildToolResultDisplay,
|
|
15
15
|
loadProjectContext,
|
|
16
16
|
tryParseJson
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-7FOTCUIH.mjs";
|
|
18
|
+
import "./chunk-C3MFBHV3.mjs";
|
|
19
19
|
import {
|
|
20
20
|
TUI_COLORS,
|
|
21
21
|
appendTranscriptEntry,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
scrollTuiTranscriptToTop,
|
|
31
31
|
updateComposerState,
|
|
32
32
|
updateRuntimeDock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-L27HOXD2.mjs";
|
|
34
34
|
|
|
35
35
|
// src/shell/tui/input/scroll.ts
|
|
36
36
|
var ENABLE_MOUSE_TRACKING = "\x1B[?1000h\x1B[?1002h\x1B[?1006h";
|
|
@@ -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
|
|
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
|
|
@@ -738,7 +748,7 @@ async function startTuiChat(options) {
|
|
|
738
748
|
const [{ default: React }, ink, { createTuiAppComponent }] = await Promise.all([
|
|
739
749
|
import("react"),
|
|
740
750
|
import("ink"),
|
|
741
|
-
import("./App-
|
|
751
|
+
import("./App-K7CBA2FU.mjs")
|
|
742
752
|
]);
|
|
743
753
|
const selected = await selectTuiSession({
|
|
744
754
|
cwd: options.cwd,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jun133/kitty",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
"check": "npm run typecheck && npm run build",
|
|
29
29
|
"dev": "tsx src/cli.ts",
|
|
30
30
|
"test:build": "node -e \"require('node:fs').rmSync('.test-build', { recursive: true, force: true })\" && tsc -p tsconfig.tests.json",
|
|
31
|
-
"test:core": "npm run test:build && node
|
|
31
|
+
"test:core": "npm run test:build && node scripts/run-core-tests.mjs",
|
|
32
|
+
"test:eval": "npm run test:build && node --test .test-build/tests/evaluation/**/*.test.js",
|
|
33
|
+
"eval:local": "node scripts/ensure-dist-built.mjs && node dist/cli.js eval --run-local",
|
|
34
|
+
"eval:production": "node scripts/ensure-dist-built.mjs && node dist/cli.js eval --run-production",
|
|
32
35
|
"verify": "npm test",
|
|
33
36
|
"typecheck": "tsc --noEmit",
|
|
34
37
|
"prepublishOnly": "npm run build",
|