minicode-ai 0.10.0 → 0.11.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.
- package/AGENTS.md +45 -0
- package/CHANGELOG.md +59 -4
- package/PLAN.md +491 -0
- package/README.md +2 -2
- package/cli/commands/acp.ts +485 -0
- package/cli/commands/auth.ts +7 -4
- package/cli/commands/config.ts +41 -27
- package/cli/commands/exec.ts +33 -12
- package/cli/commands/mcp.ts +3 -2
- package/cli/commands/memory.ts +1 -1
- package/cli/commands/pricing.ts +6 -4
- package/cli/commands/providers.ts +18 -8
- package/cli/commands/sessions.ts +11 -4
- package/cli/commands/skills.ts +3 -3
- package/cli/commands/stats.ts +3 -1
- package/cli/commands.ts +6 -0
- package/cli/index.ts +82 -57
- package/cli/model-manager.ts +6 -1
- package/cli/router.ts +7 -0
- package/cli/setup.ts +341 -5
- package/cli/tui.ts +54 -18
- package/docs/ARCHITECTURE.html +29 -22
- package/docs/CONTROL-PLANE-MAP.md +139 -0
- package/docs/HARNESS.md +150 -0
- package/docs/PLAN_UIUX_V6.md +209 -0
- package/docs/README.md +1 -1
- package/docs/SUMMARY.md +52 -0
- package/docs/TERMINAL_CONTRACT.md +367 -0
- package/docs/UI_RENDER_PIPELINE.md +165 -0
- package/docs/USAGE.md +11 -0
- package/docs/agents.md +31 -0
- package/docs/architecture.md +3 -3
- package/docs/choosing-mode.md +34 -0
- package/docs/cli.md +130 -0
- package/docs/concepts.md +53 -0
- package/docs/config-providers.md +87 -0
- package/docs/config.md +63 -0
- package/docs/contributing.md +79 -0
- package/docs/environment.md +95 -0
- package/docs/exec.md +73 -0
- package/docs/getting-started.md +102 -0
- package/docs/glossary.md +37 -0
- package/docs/mcp-lsp.md +54 -0
- package/docs/memory-sessions.md +63 -0
- package/docs/policy-sandbox.md +72 -0
- package/docs/pricing-budget.md +49 -0
- package/docs/quickstart.md +60 -0
- package/docs/repl.md +67 -0
- package/docs/security-model.md +95 -0
- package/docs/security.md +91 -0
- package/docs/skills.md +48 -0
- package/docs/terminal.md +79 -0
- package/docs/tools.md +123 -0
- package/docs/troubleshooting.md +40 -0
- package/docs/verify-benchmark.md +58 -0
- package/package.json +8 -5
- package/src/app/provider-layer.ts +12 -4
- package/src/app/session.ts +6 -0
- package/src/app/tool-layer.ts +2 -1
- package/src/constants.ts +35 -0
- package/src/lib/net.ts +6 -1
- package/src/lsp/client.ts +41 -8
- package/src/mcp/http-transport.ts +52 -15
- package/src/mcp/transport.ts +32 -1
- package/src/memory/files.ts +6 -5
- package/src/policy/allowlist.ts +1 -1
- package/src/policy/bash-guard.ts +154 -14
- package/src/policy/compaction.ts +57 -3
- package/src/policy/context.ts +4 -0
- package/src/policy/jail.ts +49 -4
- package/src/policy/permission.ts +152 -12
- package/src/policy/pricing.ts +12 -9
- package/src/presentation/adapter.ts +721 -0
- package/src/presentation/events.ts +324 -0
- package/src/presentation/label.ts +140 -0
- package/src/presentation/model.ts +172 -0
- package/src/presentation/reducer.ts +486 -0
- package/src/presentation/store.ts +256 -0
- package/src/providers/anthropic.ts +22 -4
- package/src/providers/detect.ts +2 -1
- package/src/providers/router.ts +13 -0
- package/src/repo/repomap.ts +2 -29
- package/src/session/checkpoint.ts +27 -9
- package/src/session/journal.ts +27 -5
- package/src/skills/loader.ts +88 -5
- package/src/telemetry/trace.ts +36 -15
- package/src/tools/ask_user.ts +73 -4
- package/src/tools/bash.ts +15 -17
- package/src/tools/glob.ts +10 -11
- package/src/tools/lsp.ts +3 -56
- package/src/tools/memory.ts +13 -12
- package/src/tools/task.ts +1 -0
- package/src/ui/approval/prompt.ts +14 -6
- package/src/ui/assistant/simple.ts +137 -26
- package/src/ui/assistant/turn-status.ts +16 -3
- package/src/ui/contract.ts +119 -0
- package/src/ui/footer.ts +21 -2
- package/src/ui/i18n/en.ts +34 -6
- package/src/ui/i18n/id.ts +34 -6
- package/src/ui/i18n/locale.ts +3 -1
- package/src/ui/input/input.ts +51 -4
- package/src/ui/input/prompt-engine.ts +46 -4
- package/src/ui/render/collapse.ts +13 -13
- package/src/ui/render/diff.ts +7 -2
- package/src/ui/render/format.ts +16 -8
- package/src/ui/render/highlight.ts +7 -3
- package/src/ui/render/markdown.ts +5 -1
- package/src/ui/render/sanitize.ts +29 -2
- package/src/ui/render/table.ts +8 -5
- package/src/ui/render/theme.ts +18 -4
- package/src/ui/render/width.ts +89 -10
- package/src/ui/runtime/motion.ts +16 -0
- package/src/ui/runtime/screen.ts +45 -0
- package/src/ui/runtime/spinner.ts +50 -4
- package/src/ui/runtime/statusline.ts +50 -1
- package/src/ui/screens/form.ts +42 -15
- package/src/ui/screens/model-manager.ts +26 -18
- package/src/ui/screens/picker.ts +47 -23
- package/src/ui/screens/provider-manager.ts +18 -12
- package/src/ui/screens/wizard.ts +24 -8
- package/src/ui/tui/app.ts +233 -27
- package/src/ui/tui/transcript.ts +269 -65
- package/vendor/minicore/LICENSE +21 -0
- package/vendor/minicore/VENDOR.md +6 -3
- package/vendor/minicore/package.json +6 -3
- package/vendor/minicore/src/core/loop.ts +12 -2
- package/vendor/minicore/src/core/snapshot.ts +4 -0
- package/vendor/minicore/src/providers/openai-compat.ts +76 -25
package/cli/index.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { randomUUID } from "node:crypto"
|
|
3
3
|
import { readFileSync } from "node:fs"
|
|
4
4
|
import { resolve as resolvePath } from "node:path"
|
|
5
|
+
import { NoProviderError } from "../src/app/provider-layer.ts"
|
|
5
6
|
import { createMinicodeSession } from "../src/app/session.ts"
|
|
7
|
+
import { parseCompactKeepTurns } from "../src/policy/compaction.ts"
|
|
6
8
|
import { createRateLimiter } from "../src/policy/ratelimit.ts"
|
|
7
9
|
import { resolveSandbox, sandboxRefusalReason } from "../src/policy/sandbox-policy.ts"
|
|
8
10
|
import { budgetStatus } from "../src/policy/usage.ts"
|
|
@@ -38,6 +40,7 @@ Usage:
|
|
|
38
40
|
minicode # interactive chat
|
|
39
41
|
minicode "prompt" [options] # one-shot run
|
|
40
42
|
minicode exec "prompt" [--json] # headless CI mode (JSON stream)
|
|
43
|
+
minicode acp # JSON-RPC stdio server for IDEs (minimal subset)
|
|
41
44
|
echo "prompt" | minicode # via pipe
|
|
42
45
|
minicode sync # refresh models from all providers
|
|
43
46
|
Options:
|
|
@@ -64,9 +67,12 @@ Options:
|
|
|
64
67
|
--budget <usd> session cost limit
|
|
65
68
|
--budget-strict unknown cost + spend counts as over budget (fail-closed default)
|
|
66
69
|
--tool-scope <s> full (default) | explore (read-only subset)
|
|
70
|
+
--tui deprecated no-op (interactive mode is always the fullscreen TUI)
|
|
67
71
|
|
|
68
72
|
TUI: /help /provider /model /sync /status /sessions /init /exit /mode /undo /redo /clear /copy /history /compact /thinking /minimize
|
|
69
|
-
Keys: Enter submit · Tab/Shift+Tab mode · Up/Down history · PgUp/PgDn scroll
|
|
73
|
+
Keys: Enter submit · Tab/Shift+Tab mode · Up/Down history · PgUp/PgDn scroll (Shift = half page)
|
|
74
|
+
Home/End jump to transcript top/tail · Ctrl+R search · Esc/Ctrl+C abort turn (twice = quit) · Ctrl+D exit
|
|
75
|
+
Subcommand flags (config/mcp/sessions/skills/exec/...): see 'minicode <cmd> --help'.
|
|
70
76
|
`
|
|
71
77
|
|
|
72
78
|
const args = process.argv.slice(2)
|
|
@@ -74,6 +80,19 @@ function getArg(name: string): string | undefined {
|
|
|
74
80
|
return rawGetArg(args, name)
|
|
75
81
|
}
|
|
76
82
|
|
|
83
|
+
// Guard runtime: `AbortSignal.any()` (dipakai policy/context, tools/git,
|
|
84
|
+
// memory/vector, mcp/server, providers/detect) baru tersedia di Bun 1.1.x.
|
|
85
|
+
// `engines.bun` di package.json hanya DOKUMENTASI (npm menegakkan node/npm,
|
|
86
|
+
// bukan bun), jadi tanpa guard ini user Bun lama cuma melihat
|
|
87
|
+
// "AbortSignal.any is not a function" di tengah turn pertama — jauh dari
|
|
88
|
+
// penyebabnya. Gagal cepat + sebut versi minimum.
|
|
89
|
+
if (typeof AbortSignal.any !== "function") {
|
|
90
|
+
process.stderr.write(
|
|
91
|
+
`minicode requires Bun >= 1.1.13 (AbortSignal.any missing; detected ${process.versions.bun ?? "unknown"})\n`,
|
|
92
|
+
)
|
|
93
|
+
process.exit(1)
|
|
94
|
+
}
|
|
95
|
+
|
|
77
96
|
// Update-notifier untuk mode NON-interaktif (one-shot/pipe/subcommand):
|
|
78
97
|
// fire-and-forget, cache 24 jam, hormat NO_UPDATE_CHECK/CI/--json.
|
|
79
98
|
// REPL interaktif TIDAK lewat sini — ditangani maybeAutoUpdate (cek fresh +
|
|
@@ -127,6 +146,13 @@ if (hasFlag(args, "--version") || args.includes("-v")) {
|
|
|
127
146
|
}
|
|
128
147
|
|
|
129
148
|
if (args.includes("-h") || args.includes("--help")) {
|
|
149
|
+
if (args.includes("--tui")) {
|
|
150
|
+
// Peringatan usang TETAP dicetak walau help dicetak: sensitivitas ke
|
|
151
|
+
// urutan argumen = alasan klasik flag "diam" tak ketahuan (audit F8).
|
|
152
|
+
process.stderr.write(
|
|
153
|
+
"[deprecated] --tui is a no-op: interactive mode is always the fullscreen TUI\n",
|
|
154
|
+
)
|
|
155
|
+
}
|
|
130
156
|
if (args.includes("--json")) {
|
|
131
157
|
// machine-readable help for CI (minicode --help --json)
|
|
132
158
|
console.log(
|
|
@@ -137,6 +163,7 @@ if (args.includes("-h") || args.includes("--help")) {
|
|
|
137
163
|
"minicode",
|
|
138
164
|
'minicode "prompt" [options]',
|
|
139
165
|
'minicode exec "prompt" [--json]',
|
|
166
|
+
"minicode acp",
|
|
140
167
|
"minicode providers|models|sync|config|mcp|skills|sessions|stats|memory",
|
|
141
168
|
],
|
|
142
169
|
options: [
|
|
@@ -169,6 +196,7 @@ if (args.includes("-h") || args.includes("--help")) {
|
|
|
169
196
|
{ flag: "--budget-strict", desc: "unknown cost + spend counts as over budget (default)" },
|
|
170
197
|
{ flag: "--tool-scope <full|explore>", desc: "tool subset (explore = read-only)" },
|
|
171
198
|
{ flag: "--json", desc: "JSON output (help/exec)" },
|
|
199
|
+
{ flag: "--tui", desc: "deprecated no-op (interactive is always the fullscreen TUI)" },
|
|
172
200
|
],
|
|
173
201
|
}),
|
|
174
202
|
)
|
|
@@ -206,6 +234,14 @@ if (maxStepsRaw && (!Number.isFinite(maxSteps) || (maxSteps as number) <= 0)) {
|
|
|
206
234
|
process.stderr.write(`[warn] --max-steps requires a positive number, ignoring "${maxStepsRaw}"\n`)
|
|
207
235
|
maxSteps = undefined
|
|
208
236
|
}
|
|
237
|
+
// `--tui` alias usang (TUI fullscreen kini satu-satunya tampilan interaktif):
|
|
238
|
+
// tetap diterima agar skrip lama tak pecah, tapi TIDAK diam — tanpa peringatan
|
|
239
|
+
// user mengira flag-nya masih mengubah perilaku.
|
|
240
|
+
if (args.includes("--tui")) {
|
|
241
|
+
process.stderr.write(
|
|
242
|
+
"[deprecated] --tui is a no-op: interactive mode is always the fullscreen TUI\n",
|
|
243
|
+
)
|
|
244
|
+
}
|
|
209
245
|
const ctxWindowRaw = getArg("--context-window")
|
|
210
246
|
let contextWindowTokens = ctxWindowRaw ? Number(ctxWindowRaw) : undefined
|
|
211
247
|
if (
|
|
@@ -217,6 +253,15 @@ if (
|
|
|
217
253
|
)
|
|
218
254
|
contextWindowTokens = undefined
|
|
219
255
|
}
|
|
256
|
+
// F3.2: override keepRecentTurns kompaksi kernel via env (bukan flag: jarang
|
|
257
|
+
// diubah, dan permukaan flag CLI sengaja kecil). Selain bilangan >=1 =
|
|
258
|
+
// diabaikan + warn (fail-open aman: default kernel berlaku).
|
|
259
|
+
const keepTurnsRaw = (process.env.MINICODE_COMPACT_KEEP_TURNS ?? "").trim()
|
|
260
|
+
const keepRecentTurns = parseCompactKeepTurns(keepTurnsRaw || undefined)
|
|
261
|
+
if (keepTurnsRaw && keepRecentTurns === undefined)
|
|
262
|
+
process.stderr.write(
|
|
263
|
+
`[warn] MINICODE_COMPACT_KEEP_TURNS requires an integer >= 1, ignoring "${keepTurnsRaw}"\n`,
|
|
264
|
+
)
|
|
220
265
|
const timeoutRaw = getArg("--timeout")
|
|
221
266
|
let timeoutMs = timeoutRaw ? Number(timeoutRaw) : undefined
|
|
222
267
|
if (timeoutRaw && (!Number.isFinite(timeoutMs) || (timeoutMs as number) < 0)) {
|
|
@@ -276,53 +321,33 @@ const enterRepl = interactive || (!prompt && process.stdin.isTTY)
|
|
|
276
321
|
// REPL interaktif: cek update FRESH tiap dibuka → install + restart bila ada
|
|
277
322
|
// versi baru (tak pernah kembali bila restart). Tampilkan spinner 1.8 dtk
|
|
278
323
|
// agar tidak terlihat hang — budget tetap, hanya UX.
|
|
324
|
+
// Spinner transient HANYA lewat ownership tunggal (src/ui/runtime/spinner) —
|
|
325
|
+
// tulis mentah ke stderr melewati arbitrase statusline.ts: pesan [warn] lain
|
|
326
|
+
// dihapus oleh tick berikutnya, dan frame-nya bisa menghapus baris layar
|
|
327
|
+
// interaktif yang sedang menunggu input (wizard setup pertama).
|
|
328
|
+
const { createSpinner } = await import("../src/ui/runtime/spinner.ts")
|
|
279
329
|
if (enterRepl) {
|
|
280
330
|
const ctrl = new AbortController()
|
|
281
331
|
const to = setTimeout(() => ctrl.abort(), 1800)
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
// Dipanggil auto-update SEBELUM fase panjang (install npm + respawn anak):
|
|
286
|
-
// matikan spinner agar tak menulis ke stderr yang sama dengan anak selama
|
|
287
|
-
// berjam-jam (stdio inherit) — itu yang terlihat sebagai hang/flicker.
|
|
288
|
-
// Idempoten: aman dipanggil dua kali (sebelum install, sebelum restart).
|
|
289
|
-
let longOpCleaned = false
|
|
290
|
-
const stopUpdateSpin = () => {
|
|
291
|
-
if (longOpCleaned) return
|
|
292
|
-
longOpCleaned = true
|
|
293
|
-
if (showTimer) clearTimeout(showTimer)
|
|
294
|
-
showTimer = undefined
|
|
295
|
-
if (spin) {
|
|
296
|
-
clearInterval(spin)
|
|
297
|
-
spin = undefined
|
|
298
|
-
try {
|
|
299
|
-
process.stderr.write("\r\x1b[2K")
|
|
300
|
-
} catch {}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
if (process.stderr.isTTY) {
|
|
304
|
-
const frames = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
|
|
305
|
-
showTimer = setTimeout(() => {
|
|
306
|
-
spin = setInterval(() => {
|
|
307
|
-
const f = frames[fi++ % frames.length]!
|
|
308
|
-
process.stderr.write(`\r\x1b[2K${c.dim(`${f} Checking for updates…`)}`)
|
|
309
|
-
}, 80)
|
|
310
|
-
}, 120)
|
|
311
|
-
}
|
|
332
|
+
// Delay 120ms: cek update sering selesai <200ms — tanpa delay, spinner
|
|
333
|
+
// berkedip lalu hilang. Pola frame 80ms sesuai kontrak startup.
|
|
334
|
+
const spin = createSpinner("Checking for updates…", { delayMs: 120, intervalMs: 80 })
|
|
312
335
|
try {
|
|
313
336
|
const { maybeAutoUpdate } = await import("./auto-update.ts")
|
|
314
|
-
|
|
337
|
+
// Dipanggil auto-update SEBELUM fase panjang (install npm + respawn anak):
|
|
338
|
+
// matikan spinner agar tak menulis ke stderr yang sama dengan anak selama
|
|
339
|
+
// berjam-jam (stdio inherit) — itu yang terlihat sebagai hang/flicker.
|
|
340
|
+
// Idempoten: aman dipanggil dua kali (sebelum install, sebelum restart).
|
|
341
|
+
await maybeAutoUpdate(readVersion(), ctrl.signal, { onLongOp: () => spin.stop() })
|
|
315
342
|
} catch {}
|
|
316
343
|
clearTimeout(to)
|
|
317
|
-
|
|
318
|
-
if (spin) {
|
|
319
|
-
clearInterval(spin)
|
|
320
|
-
process.stderr.write("\r\x1b[2K")
|
|
321
|
-
}
|
|
344
|
+
spin.stop()
|
|
322
345
|
}
|
|
323
346
|
if (!prompt && !enterRepl) {
|
|
324
347
|
process.stderr.write('usage: minicode "prompt" | minicode (interactive mode)\n')
|
|
325
|
-
|
|
348
|
+
// Salah pakai (bukan gagal runtime): exit 2 agar skrip bisa membedakan
|
|
349
|
+
// dari kegagalan provider/budget (exit 1). Lihat TERMINAL_CONTRACT.md.
|
|
350
|
+
process.exit(2)
|
|
326
351
|
}
|
|
327
352
|
|
|
328
353
|
// -- skills: expand /name args --
|
|
@@ -344,24 +369,14 @@ try {
|
|
|
344
369
|
// Session setup (provider/RAG/MCP/session) bisa makan detik (network + spawn)
|
|
345
370
|
// TANPA output — user melihat kursor mati. Spinner transient TTY-only selama
|
|
346
371
|
// setup, dibersihkan sebelum banner REPL agar tak ada jejak.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
const stopSetupSpin = () => {
|
|
357
|
-
if (setupSpin) {
|
|
358
|
-
clearInterval(setupSpin)
|
|
359
|
-
setupSpin = undefined
|
|
360
|
-
try {
|
|
361
|
-
process.stderr.write("\r\x1b[2K")
|
|
362
|
-
} catch {}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
372
|
+
// Spinner ini berjalan di atas createCliSession — termasuk saat wizard setup
|
|
373
|
+
// pertama (picker gateway + prompt API key) memegang terminal. Lewat
|
|
374
|
+
// createSpinner, tick-nya otomatis BERHENTI selama layar interaktif aktif
|
|
375
|
+
// (statusline.beginInteractiveScreen di openAltScreen): dulu tulis mentah
|
|
376
|
+
// `\r\x1b[2K` menghapus baris prompt wizard, sehingga user baru hanya melihat
|
|
377
|
+
// "Menyiapkan sesi…" tanpa cara menyelesaikan setup (laporan: minicode dari
|
|
378
|
+
// home selalu macet).
|
|
379
|
+
const setupSpin = enterRepl ? createSpinner("Menyiapkan sesi…") : undefined
|
|
365
380
|
// finally: createCliSession yang melempar (provider/MCP gagal) tak boleh
|
|
366
381
|
// membocorkan interval — tanpa ini spinner menulis ke stderr selamanya dan
|
|
367
382
|
// proses tak pernah exit (terlihat hang).
|
|
@@ -387,12 +402,22 @@ try {
|
|
|
387
402
|
toolScope,
|
|
388
403
|
maxSteps,
|
|
389
404
|
contextWindowTokens,
|
|
405
|
+
...(keepRecentTurns !== undefined ? { keepRecentTurns } : {}),
|
|
390
406
|
timeoutMs,
|
|
391
407
|
rateLimiter,
|
|
392
408
|
sandboxNotice: requestedSandbox ? sandbox.notice : undefined,
|
|
393
409
|
})
|
|
410
|
+
} catch (e) {
|
|
411
|
+
// Tanpa provider = setup gagal sebelum sesi ada. Pesan + exit(1) sama
|
|
412
|
+
// persis seperti dulu (provider-layer tak lagi exit sendiri agar
|
|
413
|
+
// exec --json bisa memasang envelope mesinnya — lihat exec.ts).
|
|
414
|
+
if (e instanceof NoProviderError) {
|
|
415
|
+
console.error(e.message)
|
|
416
|
+
process.exit(1)
|
|
417
|
+
}
|
|
418
|
+
throw e
|
|
394
419
|
} finally {
|
|
395
|
-
|
|
420
|
+
setupSpin?.stop()
|
|
396
421
|
}
|
|
397
422
|
|
|
398
423
|
if (enterRepl) {
|
package/cli/model-manager.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from "../src/config.ts"
|
|
14
14
|
import { effortOptionsForModel } from "../src/providers/effort.ts"
|
|
15
15
|
import { t } from "../src/ui/i18n/locale.ts"
|
|
16
|
+
import { sanitizeAnsiLine } from "../src/ui/render/sanitize.ts"
|
|
16
17
|
import { type ModelRow, runModelManagerView } from "../src/ui/screens/model-manager.ts"
|
|
17
18
|
|
|
18
19
|
/** Minimal model registry: list, select, add, and remove. */
|
|
@@ -28,7 +29,11 @@ export async function runModelManager(opts: {
|
|
|
28
29
|
}): Promise<void> {
|
|
29
30
|
const cfg = await loadConfig(opts.cwd, { allowLocal: opts.allowLocalConfig })
|
|
30
31
|
if (!process.stdin.isTTY) {
|
|
31
|
-
|
|
32
|
+
// ID dari berkas config (tak-terpercaya): sanitasi satu-baris agar ANSI
|
|
33
|
+
// mentah tak mencemari pipe (kontrak stdout non-TTY).
|
|
34
|
+
for (const p of cfg.providers)
|
|
35
|
+
for (const model of p.models)
|
|
36
|
+
console.log(`${sanitizeAnsiLine(p.id)}::${sanitizeAnsiLine(model)}`)
|
|
32
37
|
return
|
|
33
38
|
}
|
|
34
39
|
|
package/cli/router.ts
CHANGED
|
@@ -110,6 +110,13 @@ export async function dispatch(
|
|
|
110
110
|
await handleExec(args, subGetArg)
|
|
111
111
|
return true
|
|
112
112
|
}
|
|
113
|
+
if (cmd === "acp") {
|
|
114
|
+
// Fase 5: server JSON-RPC stdio minimal untuk IDE (subset, bukan ACP penuh).
|
|
115
|
+
// Handler memblokir sampai stdin EOF/shutdown; tak ada sesi CLI yang dibuat.
|
|
116
|
+
const { handleAcp } = await import("./commands/acp.ts")
|
|
117
|
+
await handleAcp()
|
|
118
|
+
return true
|
|
119
|
+
}
|
|
113
120
|
if (cmd === "memory") {
|
|
114
121
|
const { handleMemory } = await import("./commands/memory.ts")
|
|
115
122
|
await handleMemory(args, subGetArg)
|