@ywldan/kiro 0.3.2 → 0.5.0

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.
@@ -0,0 +1,130 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Box, Text, useInput } from 'ink';
4
+ import { sanitizeText, truncateToWidth, wrapPlain } from './text.js';
5
+ /** Keys are highlighted so the hint reads at a glance; the rest stays dim. */
6
+ const KEY_COLOR = '#ff9e64';
7
+ const MAX_QUESTION_LINES = 3;
8
+ function Key({ children }) {
9
+ return _jsx(Text, { color: KEY_COLOR, children: children });
10
+ }
11
+ function Said({ children }) {
12
+ return _jsx(Text, { dimColor: true, children: children });
13
+ }
14
+ /**
15
+ * Blocking question with a short choice list. Enter picks (or submits the
16
+ * checked set), Space toggles in multi-select mode, and typing jumps to the
17
+ * free-form "Other" row when the request allows it.
18
+ */
19
+ export function AskUserPrompt({ request, width, height, onAnswer, onCancel, }) {
20
+ const [index, setIndex] = useState(0);
21
+ const [checked, setChecked] = useState(new Set());
22
+ const [editing, setEditing] = useState(false);
23
+ const [draft, setDraft] = useState('');
24
+ const rows = request.options.length + (request.allowOther ? 1 : 0);
25
+ const selected = Math.min(index, Math.max(0, rows - 1));
26
+ const otherIndex = request.allowOther ? request.options.length : -1;
27
+ const popup = height !== undefined;
28
+ const base = popup ? 'white' : undefined;
29
+ const submit = (labels, other) => {
30
+ if (labels.length === 0 && !other?.trim())
31
+ return;
32
+ onAnswer({ selected: labels, other: other?.trim() || undefined, cancelled: false });
33
+ };
34
+ useInput((input, key) => {
35
+ if (editing) {
36
+ if (key.escape) {
37
+ setEditing(false);
38
+ setDraft('');
39
+ return;
40
+ }
41
+ if (key.return) {
42
+ submit([...checked], draft);
43
+ return;
44
+ }
45
+ if (key.backspace || key.delete) {
46
+ setDraft(draft.slice(0, -1));
47
+ return;
48
+ }
49
+ if (key.ctrl || key.meta || key.tab || key.upArrow || key.downArrow || key.pageUp || key.pageDown) {
50
+ return;
51
+ }
52
+ const typed = input.replace(/[\u0000-\u001f\u007f]/g, '');
53
+ if (typed)
54
+ setDraft(draft + typed);
55
+ return;
56
+ }
57
+ if (key.escape) {
58
+ onCancel();
59
+ return;
60
+ }
61
+ if (key.upArrow || key.downArrow) {
62
+ if (rows === 0)
63
+ return;
64
+ const delta = key.upArrow ? -1 : 1;
65
+ setIndex(Math.min(rows - 1, Math.max(0, selected + delta)));
66
+ return;
67
+ }
68
+ if (key.home) {
69
+ setIndex(0);
70
+ return;
71
+ }
72
+ if (key.end) {
73
+ setIndex(Math.max(0, rows - 1));
74
+ return;
75
+ }
76
+ if (input === ' ' && request.multiSelect && selected !== otherIndex) {
77
+ const label = request.options[selected]?.label;
78
+ if (!label)
79
+ return;
80
+ const next = new Set(checked);
81
+ if (next.has(label))
82
+ next.delete(label);
83
+ else
84
+ next.add(label);
85
+ setChecked(next);
86
+ return;
87
+ }
88
+ if (!key.return) {
89
+ if (!request.allowOther || key.ctrl || key.meta || key.tab)
90
+ return;
91
+ const typed = input.replace(/[\u0000-\u001f\u007f]/g, '');
92
+ if (!typed)
93
+ return;
94
+ setIndex(otherIndex);
95
+ setEditing(true);
96
+ setDraft(typed);
97
+ return;
98
+ }
99
+ if (selected === otherIndex) {
100
+ setEditing(true);
101
+ return;
102
+ }
103
+ const option = request.options[selected];
104
+ if (!option)
105
+ return;
106
+ if (!request.multiSelect) {
107
+ submit([option.label]);
108
+ return;
109
+ }
110
+ const labels = new Set(checked);
111
+ if (labels.size === 0)
112
+ labels.add(option.label);
113
+ submit([...labels]);
114
+ });
115
+ const innerWidth = Math.max(10, width - 4);
116
+ const questionLines = wrapPlain(sanitizeText(request.question), innerWidth);
117
+ const clipped = questionLines.slice(0, MAX_QUESTION_LINES);
118
+ if (questionLines.length > MAX_QUESTION_LINES) {
119
+ const last = clipped.length - 1;
120
+ clipped[last] = `${truncateToWidth(clipped[last] ?? '', innerWidth - 2)} …`;
121
+ }
122
+ const title = `? ${request.header ?? 'Question'}`;
123
+ return (_jsxs(Box, { flexDirection: "column", width: width, height: height, borderStyle: "round", borderColor: "magenta", paddingX: 1, flexShrink: 0, backgroundColor: popup ? 'black' : undefined, overflow: height === undefined ? undefined : 'hidden', children: [_jsx(Text, { bold: true, color: "magenta", wrap: "truncate-end", children: title }), clipped.map((line, lineIndex) => (_jsx(Text, { color: base, wrap: "truncate-end", children: line || ' ' }, `q${lineIndex}`))), request.options.map((option, optionIndex) => {
124
+ const focused = optionIndex === selected;
125
+ const mark = request.multiSelect ? (checked.has(option.label) ? '[x]' : '[ ]') : ' ';
126
+ return (_jsxs(Text, { color: focused ? 'magenta' : base, bold: focused, wrap: "truncate-end", children: [`${focused ? '>' : ' '} ${mark} ${optionIndex + 1}. ${option.label}`, option.description ? _jsx(Said, { children: ` ${option.description}` }) : null] }, `o${optionIndex}`));
127
+ }), request.allowOther ? (_jsxs(Text, { color: selected === otherIndex ? 'magenta' : base, bold: selected === otherIndex, children: [`${selected === otherIndex ? '>' : ' '}${request.multiSelect ? ' ' : ' '}` +
128
+ `${request.options.length + 1}. Other: `, editing ? (_jsx(Text, { color: base, children: `${draft || ''}▌` })) : (_jsx(Said, { children: "type an answer" }))] })) : null, height === undefined ? null : _jsx(Box, { flexGrow: 1 }), editing ? (_jsxs(Text, { color: base, wrap: "truncate-end", children: [_jsx(Key, { children: "Enter" }), _jsx(Said, { children: " submit \u00B7 type your answer \u00B7 " }), _jsx(Key, { children: "Esc" }), _jsx(Said, { children: " back" })] })) : (_jsxs(Text, { color: base, wrap: "truncate-end", children: [_jsx(Key, { children: "\u2191/\u2193" }), _jsx(Said, { children: " move \u00B7 " }), request.multiSelect ? (_jsxs(_Fragment, { children: [_jsx(Key, { children: "Space" }), _jsx(Said, { children: " toggle \u00B7 " }), _jsx(Key, { children: "Enter" }), _jsx(Said, { children: " submit \u00B7 " })] })) : (_jsxs(_Fragment, { children: [_jsx(Key, { children: "Enter" }), _jsx(Said, { children: " choose \u00B7 " })] })), _jsx(Key, { children: "Esc" }), _jsx(Said, { children: " cancel" })] }))] }));
129
+ }
130
+ //# sourceMappingURL=AskUserPrompt.js.map
@@ -57,6 +57,16 @@ function toolLines(item, width, expanded) {
57
57
  suffix,
58
58
  },
59
59
  ];
60
+ if (item.status === 'running' && item.liveTail) {
61
+ // The newest output line, so a long build shows progress instead of a spinner.
62
+ const livePrefix = ' ⎿ ';
63
+ lines.push({
64
+ prefix: livePrefix,
65
+ prefixDim: true,
66
+ text: truncateToWidth(item.liveTail, Math.max(1, width - displayWidth(livePrefix))),
67
+ dim: true,
68
+ });
69
+ }
60
70
  if (item.resultSummary && item.status !== 'running') {
61
71
  const resultPrefix = ' ⎿ ';
62
72
  const resultWidth = Math.max(1, width - displayWidth(resultPrefix));
@@ -14,7 +14,7 @@ function prettyCwd(cwd) {
14
14
  }
15
15
  return cwd;
16
16
  }
17
- export function StatusBar({ width, profile, model, cwd, activity, toolName, busySince, queued, yolo = false, autoAllowed = [], quitHint = false, contextTokens, contextWindow, }) {
17
+ export function StatusBar({ width, profile, model, cwd, activity, toolName, liveTail, busySince, queued, yolo = false, autoAllowed = [], quitHint = false, contextTokens, contextWindow, }) {
18
18
  const busy = activity !== null;
19
19
  const [frame, setFrame] = useState(0);
20
20
  useEffect(() => {
@@ -27,15 +27,17 @@ export function StatusBar({ width, profile, model, cwd, activity, toolName, busy
27
27
  ? 'Ctrl+C again to quit'
28
28
  : activity === 'approval'
29
29
  ? 'approval needed'
30
- : activity === 'cancelling'
31
- ? 'cancelling…'
32
- : activity === 'running'
33
- ? `running ${toolName ?? 'tool'}…`
34
- : activity === 'replying'
35
- ? 'replying…'
36
- : activity === 'thinking'
37
- ? 'thinking…'
38
- : 'ready';
30
+ : activity === 'question'
31
+ ? 'answer needed'
32
+ : activity === 'cancelling'
33
+ ? 'cancelling…'
34
+ : activity === 'running'
35
+ ? `running ${toolName ?? 'tool'}…`
36
+ : activity === 'replying'
37
+ ? 'replying…'
38
+ : activity === 'thinking'
39
+ ? 'thinking…'
40
+ : 'ready';
39
41
  const stateColor = quitHint
40
42
  ? 'red'
41
43
  : activity === 'cancelling'
@@ -56,7 +58,11 @@ export function StatusBar({ width, profile, model, cwd, activity, toolName, busy
56
58
  const badgeWidth = badge === '' ? 0 : displayWidth(badge) + 2;
57
59
  // The bar is indented to line up with the chat text, so budgets use the inner width.
58
60
  const innerWidth = Math.max(10, width - 2);
59
- const state = `${spinner}${queueNote}${stateText}${elapsedNote}`;
61
+ // While a command runs, its newest output line says more than "running…".
62
+ const liveLine = activity === 'running' && liveTail ? liveTail.trim() : '';
63
+ const state = liveLine
64
+ ? `${spinner}${liveLine}${elapsedNote}`
65
+ : `${spinner}${queueNote}${stateText}${elapsedNote}`;
60
66
  const stateBudget = Math.max(4, Math.max(10, Math.floor(innerWidth / 2)) - badgeWidth);
61
67
  const stateShown = truncateToWidth(state, stateBudget);
62
68
  const restBudget = Math.max(0, innerWidth - badgeWidth - displayWidth(stateShown) - 2 - 6);
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box, Text } from 'ink';
3
3
  import { formatPercent, formatTokens } from '../agent/tokens.js';
4
+ import { formatCost } from '../cost.js';
4
5
  import { formatDuration, truncateToWidth } from './text.js';
5
6
  export const USAGE_CARD_WIDTH = 27;
6
7
  /** Space between the transcript column and the card. */
@@ -18,7 +19,7 @@ export function contextBar(used, window, width) {
18
19
  const filled = Math.min(size, Math.round(ratio * size));
19
20
  return `${'█'.repeat(filled)}${'░'.repeat(size - filled)}`;
20
21
  }
21
- export function UsageCard({ usage, contextTokens, contextWindow, contextEstimated, lastReply, busy, width = USAGE_CARD_WIDTH, }) {
22
+ export function UsageCard({ usage, contextTokens, contextWindow, contextEstimated, lastReply, cost, busy, width = USAGE_CARD_WIDTH, }) {
22
23
  const accent = busy ? 'cyan' : 'gray';
23
24
  const innerWidth = Math.max(8, width - 4);
24
25
  const title = truncateToWidth(`Usage · ${usage.requests} req`, innerWidth);
@@ -35,6 +36,6 @@ export function UsageCard({ usage, contextTokens, contextWindow, contextEstimate
35
36
  const lastLine = truncateToWidth(lastReply
36
37
  ? `last ${formatDuration(lastReply.durationMs)}${speed ? ` · ${speed}` : ''}`
37
38
  : 'no timed reply yet', innerWidth);
38
- return (_jsxs(Box, { flexDirection: "column", width: width, borderStyle: "round", borderColor: accent, paddingX: 1, flexShrink: 0, children: [_jsx(Text, { bold: true, color: accent, wrap: "truncate-end", children: title }), _jsxs(Text, { wrap: "truncate-end", children: [_jsxs(Text, { color: "green", children: ["\u2191 ", prompt] }), _jsx(Text, { children: " " }), _jsxs(Text, { color: "blue", children: ["\u2193 ", completion] })] }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: contextLine }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: windowLine }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: lastLine })] }));
39
+ return (_jsxs(Box, { flexDirection: "column", width: width, borderStyle: "round", borderColor: accent, paddingX: 1, flexShrink: 0, children: [_jsx(Text, { bold: true, color: accent, wrap: "truncate-end", children: title }), _jsxs(Text, { wrap: "truncate-end", children: [_jsxs(Text, { color: "green", children: ["\u2191 ", prompt] }), _jsx(Text, { children: " " }), _jsxs(Text, { color: "blue", children: ["\u2193 ", completion] })] }), cost ? (_jsxs(Text, { wrap: "truncate-end", children: [_jsx(Text, { color: "yellow", children: `${cost.complete ? '' : '~'}${formatCost(cost.dollars)}` }), _jsx(Text, { dimColor: true, children: cost.dollars === 0 ? ' free' : ' est.' })] })) : null, _jsx(Text, { dimColor: true, wrap: "truncate-end", children: contextLine }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: windowLine }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: lastLine })] }));
39
40
  }
40
41
  //# sourceMappingURL=UsageCard.js.map
@@ -1,9 +1,16 @@
1
- /** Tracks which tools skip approval prompts, so the UI can show and revoke it. */
1
+ import { evaluateRules, suggestRulePattern } from '../permissions.js';
2
+ /**
3
+ * Tracks which requests skip approval prompts, so the UI can show and revoke it.
4
+ * YOLO wins over everything; a saved deny rule still stops a request that YOLO
5
+ * would otherwise run, because denying is the more specific instruction.
6
+ */
2
7
  export class ApprovalPolicy {
3
8
  yolo;
9
+ rules;
4
10
  autoAllowed = new Set();
5
- constructor(yolo = false) {
11
+ constructor(yolo = false, rules = []) {
6
12
  this.yolo = yolo;
13
+ this.rules = rules;
7
14
  }
8
15
  markSession(tool) {
9
16
  this.autoAllowed.add(tool);
@@ -18,5 +25,36 @@ export class ApprovalPolicy {
18
25
  clear() {
19
26
  this.autoAllowed.clear();
20
27
  }
28
+ setRules(rules) {
29
+ this.rules = rules;
30
+ }
31
+ savedRules() {
32
+ return this.rules;
33
+ }
34
+ /**
35
+ * Saved rules first: a deny always applies, and an allow only pre-approves a
36
+ * request that stays inside the workspace.
37
+ */
38
+ decide(request) {
39
+ // Undefined means the tool did not say; only an explicit false blocks a rule.
40
+ if (request.insideWorkspace === false) {
41
+ const denied = evaluateRules(this.rules, { tool: request.tool, subject: request.subject });
42
+ return denied === 'deny' ? 'deny' : 'ask';
43
+ }
44
+ return evaluateRules(this.rules, { tool: request.tool, subject: request.subject });
45
+ }
46
+ /** The rule a `[s]` press would save, or null when the request has no subject. */
47
+ ruleFor(request) {
48
+ if (request.subject === undefined)
49
+ return null;
50
+ const match = suggestRulePattern(request.tool, request.subject);
51
+ return match ? { tool: request.tool, match, action: 'allow' } : null;
52
+ }
53
+ /** The rule a `[d]` press would save: the exact subject, denied. */
54
+ denyRuleFor(request) {
55
+ if (request.subject === undefined)
56
+ return null;
57
+ return { tool: request.tool, match: request.subject, action: 'deny' };
58
+ }
21
59
  }
22
60
  //# sourceMappingURL=approval-policy.js.map
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Windows the rows shown in an approval prompt.
3
+ *
4
+ * The prompt asks the user to approve a change, so the preview must show what
5
+ * actually changes. A unified diff starts with header lines that would
6
+ * otherwise eat most of the budget, so headers are dropped and the first hunk
7
+ * is windowed around its first change. Long commands keep both ends, because
8
+ * the destructive half (`rm -rf`, `curl | sh`) is often the last line.
9
+ *
10
+ * Rows are already fitted to the prompt width before they get here.
11
+ */
12
+ export const MAX_PREVIEW_LINES = 6;
13
+ const DIFF_HEADER = /^(---|\+\+\+|diff --git|index |new file |deleted file |similarity index|rename |Binary files)/;
14
+ function isHunk(line) {
15
+ return line.startsWith('@@');
16
+ }
17
+ function isChange(line) {
18
+ return ((line.startsWith('+') || line.startsWith('-')) &&
19
+ !line.startsWith('+++') &&
20
+ !line.startsWith('---'));
21
+ }
22
+ /** Hides the middle of a list, keeping `head` leading and the rest trailing. */
23
+ function windowed(lines, budget, head) {
24
+ if (lines.length <= budget)
25
+ return lines;
26
+ const showHead = Math.max(1, Math.min(head, budget - 1));
27
+ const showTail = Math.max(0, budget - showHead - 1);
28
+ const hidden = lines.length - showHead - showTail;
29
+ return [
30
+ ...lines.slice(0, showHead),
31
+ `… ${hidden} line${hidden === 1 ? '' : 's'} hidden …`,
32
+ ...(showTail > 0 ? lines.slice(lines.length - showTail) : []),
33
+ ];
34
+ }
35
+ function diffBody(lines, budget) {
36
+ const hunks = lines.filter(isHunk);
37
+ const body = lines.filter((line) => !isHunk(line) && !DIFF_HEADER.test(line));
38
+ const hunkBudget = hunks.length > 0 ? 1 : 0;
39
+ const moreBudget = hunks.length > 1 ? 1 : 0;
40
+ const bodyBudget = Math.max(1, budget - hunkBudget - moreBudget);
41
+ let shown;
42
+ if (body.length <= bodyBudget) {
43
+ shown = body;
44
+ }
45
+ else {
46
+ // Slide the window so the first change is visible, not just the context.
47
+ const visible = Math.max(1, bodyBudget - 1);
48
+ const firstChange = body.findIndex(isChange);
49
+ const start = Math.min(Math.max(0, body.length - visible), Math.max(0, firstChange === -1 ? 0 : Math.max(0, firstChange - 1)));
50
+ const slice = body.slice(start, start + visible);
51
+ const hiddenBefore = start;
52
+ const hiddenAfter = body.length - start - slice.length;
53
+ const parts = [
54
+ hiddenBefore > 0 ? `${hiddenBefore} before` : '',
55
+ hiddenAfter > 0 ? `${hiddenAfter} after` : '',
56
+ ].filter(Boolean);
57
+ shown = [...slice, `… ${parts.join(', ')} hidden …`];
58
+ }
59
+ const out = [];
60
+ if (hunks.length > 0)
61
+ out.push(hunks[0]);
62
+ out.push(...shown);
63
+ if (hunks.length > 1)
64
+ out.push(`… ${hunks.length - 1} more hunk${hunks.length === 2 ? '' : 's'} …`);
65
+ return out.slice(0, budget);
66
+ }
67
+ /**
68
+ * Returns at most `budget` rows for the prompt. Diffs drop their file headers
69
+ * and hunk markers; anything else keeps both ends when it does not fit.
70
+ */
71
+ export function windowPreview(rows, tool, budget = MAX_PREVIEW_LINES) {
72
+ const limit = Math.max(1, budget);
73
+ if (rows.length === 0)
74
+ return [];
75
+ if (tool !== 'run_command' && rows.some(isHunk)) {
76
+ return diffBody(rows, limit);
77
+ }
78
+ const head = Math.max(1, Math.ceil((limit - 1) / 2));
79
+ return windowed(rows, limit, head);
80
+ }
81
+ //# sourceMappingURL=approval-preview.js.map
@@ -2,6 +2,7 @@ export const SLASH_COMMANDS = [
2
2
  { name: '/help', description: 'show this help' },
3
3
  { name: '/model', usage: '[name | add | edit | remove | test | list]', description: 'list or switch models' },
4
4
  { name: '/skills', description: 'list installed skills and where they were found' },
5
+ { name: '/mcp', description: 'list MCP servers, their tools, and any startup errors' },
5
6
  { name: '/skill', usage: '<name> [request]', description: 'load a skill and apply it to your next request' },
6
7
  { name: '/context', description: 'show approximate context usage' },
7
8
  { name: '/usage', description: 'show or hide the usage card' },
@@ -13,6 +14,7 @@ export const SLASH_COMMANDS = [
13
14
  { name: '/export', usage: '[file]', description: 'write the transcript to a Markdown file' },
14
15
  { name: '/mouse', description: 'toggle mouse reporting (wheel scroll vs text selection)' },
15
16
  { name: '/allow', usage: '[clear]', description: 'manage tools that skip approval' },
17
+ { name: '/rules', usage: '[clear | remove <n>]', description: 'saved approval rules in .kiro/permissions.json' },
16
18
  { name: '/exit', description: 'quit Kiro' },
17
19
  ];
18
20
  /** A skill called `/model` would be unreachable, so built-in names are claimed. */
package/dist/ui/text.js CHANGED
@@ -473,6 +473,8 @@ export function summarizeToolArgs(name, rawArguments) {
473
473
  const command = typeof args.command === 'string' ? args.command : '';
474
474
  return `$ ${sanitizeInput(command)}`;
475
475
  }
476
+ case 'ask_user':
477
+ return typeof args.question === 'string' ? args.question : '?';
476
478
  default:
477
479
  return truncateToWidth(sanitizeInput(rawArguments), 80);
478
480
  }
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@ywldan/kiro",
3
- "version": "0.3.2",
4
- "description": "A small terminal coding agent with your own OpenAI-compatible endpoint",
5
- "keywords": [
6
- "ai",
7
- "agent",
8
- "cli",
9
- "coding-agent",
10
- "openai",
11
- "terminal",
12
- "tui"
13
- ],
14
- "license": "MIT",
15
- "author": "ywildan",
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/ywildan/kiro.git"
19
- },
20
- "homepage": "https://github.com/ywildan/kiro#readme",
21
- "bugs": {
22
- "url": "https://github.com/ywildan/kiro/issues"
23
- },
24
- "type": "module",
25
- "bin": {
26
- "kiro": "dist/index.js"
27
- },
28
- "main": "dist/index.js",
29
- "files": [
30
- "dist",
31
- "!dist/**/*.map",
32
- "README.md"
33
- ],
34
- "engines": {
35
- "node": ">=20"
36
- },
37
- "publishConfig": {
38
- "access": "public"
39
- },
40
- "scripts": {
41
- "build": "tsc -p tsconfig.json",
42
- "dev": "tsx src/index.tsx",
43
- "test": "tsx test/e2e.ts",
44
- "mock": "tsx test/mock-server.ts",
45
- "prepublishOnly": "npm run build"
46
- },
47
- "dependencies": {
48
- "diff": "^9.0.0",
49
- "ink": "^6.8.0",
50
- "react": "^19.3.1",
51
- "string-width": "^8.3.0",
52
- "wrap-ansi": "^10.0.2"
53
- },
54
- "devDependencies": {
55
- "@types/diff": "^8.0.0",
56
- "@types/node": "^24.10.0",
57
- "@types/react": "^19.3.0",
58
- "tsx": "^4.23.15",
59
- "typescript": "^5.9.3"
60
- }
61
- }
1
+ {
2
+ "name": "@ywldan/kiro",
3
+ "version": "0.5.0",
4
+ "description": "A small terminal coding agent with your own OpenAI-compatible endpoint",
5
+ "keywords": [
6
+ "ai",
7
+ "agent",
8
+ "cli",
9
+ "coding-agent",
10
+ "openai",
11
+ "terminal",
12
+ "tui"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "ywildan",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/ywildan/kiro.git"
19
+ },
20
+ "homepage": "https://github.com/ywildan/kiro#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/ywildan/kiro/issues"
23
+ },
24
+ "type": "module",
25
+ "bin": {
26
+ "kiro": "dist/index.js"
27
+ },
28
+ "main": "dist/index.js",
29
+ "files": [
30
+ "dist",
31
+ "!dist/**/*.map",
32
+ "README.md"
33
+ ],
34
+ "engines": {
35
+ "node": ">=20"
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "scripts": {
41
+ "build": "tsc -p tsconfig.json",
42
+ "dev": "tsx src/index.tsx",
43
+ "test": "tsx test/e2e.ts",
44
+ "mock": "tsx test/mock-server.ts",
45
+ "prepublishOnly": "npm run build"
46
+ },
47
+ "dependencies": {
48
+ "diff": "^9.0.0",
49
+ "ink": "^6.8.0",
50
+ "react": "^19.3.1",
51
+ "string-width": "^8.3.0",
52
+ "wrap-ansi": "^10.0.2"
53
+ },
54
+ "devDependencies": {
55
+ "@types/diff": "^8.0.0",
56
+ "@types/node": "^24.10.0",
57
+ "@types/react": "^19.3.0",
58
+ "tsx": "^4.23.15",
59
+ "typescript": "^5.9.3"
60
+ }
61
+ }