opencode-codex-memory 0.10.1 → 0.10.3
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 +10 -12
- package/dist/src/agent-health.js +10 -7
- package/dist/src/capture.js +7 -7
- package/dist/src/citation.js +12 -3
- package/dist/src/claude-import.js +1 -3
- package/dist/src/codex-interop.js +20 -5
- package/dist/src/db.d.ts +0 -2
- package/dist/src/db.js +0 -4
- package/dist/src/git-baseline.d.ts +4 -6
- package/dist/src/git-baseline.js +45 -68
- package/dist/src/host-client.d.ts +5 -0
- package/dist/src/host-client.js +24 -0
- package/dist/src/index.d.ts +4 -145
- package/dist/src/index.js +56 -99
- package/dist/src/llm.d.ts +4 -1
- package/dist/src/llm.js +41 -13
- package/dist/src/options.d.ts +7 -0
- package/dist/src/options.js +20 -2
- package/dist/src/paths.d.ts +1 -0
- package/dist/src/paths.js +5 -2
- package/dist/src/phase1.js +12 -21
- package/dist/src/phase2.js +3 -3
- package/dist/src/reasoning-variant.d.ts +7 -0
- package/dist/src/reasoning-variant.js +11 -2
- package/dist/src/rollout-input.js +3 -5
- package/dist/src/session-version.js +4 -5
- package/dist/src/source.js +6 -2
- package/dist/src/store.d.ts +3 -2
- package/dist/src/store.js +72 -47
- package/dist/src/v2/agents.js +11 -14
- package/dist/src/v2/model-readiness.js +9 -1
- package/dist/src/v2/plugin.js +81 -109
- package/dist/src/v2/search-sandbox.js +1 -1
- package/dist/src/v2/service.js +5 -0
- package/dist/src/v2/shim.d.ts +3 -0
- package/dist/src/v2/shim.js +144 -90
- package/dist/src/v2/status-rpc.js +40 -14
- package/dist/src/v2/status.js +4 -7
- package/dist/src/v2/tools.d.ts +20 -14
- package/dist/src/v2/tools.js +14 -14
- package/dist/src/v2/tui.js +14 -4
- package/dist/src/workspace.js +13 -4
- package/dist/tools/control.d.ts +4 -33
- package/dist/tools/control.js +29 -28
- package/dist/tools/memory.d.ts +5 -70
- package/dist/tools/memory.js +164 -89
- package/package.json +32 -20
package/dist/tools/memory.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import {
|
|
3
|
+
import { setImmediate as yieldToHost } from "node:timers/promises";
|
|
4
|
+
import { safeResolveMemoryPath, safeResolveUnderRoot, assertMemoryRootSafe, readRegularFileNoFollow, writeRegularFileNoFollow, } from "../src/path-guard.js";
|
|
4
5
|
import { tool as defineTool } from "@opencode-ai/plugin";
|
|
5
6
|
import { withSessionMemoryVersion } from "../src/session-version.js";
|
|
6
7
|
// Both host adapters call these definitions. Resolve once for the whole tool
|
|
@@ -13,12 +14,15 @@ function sessionTool(definition) {
|
|
|
13
14
|
}
|
|
14
15
|
const tool = Object.assign(sessionTool, { schema: defineTool.schema });
|
|
15
16
|
const MAX_READ_BYTES = 256 * 1024;
|
|
17
|
+
// Keep public declarations on the SDK's type rather than a nested Zod import.
|
|
16
18
|
export const memory_read = tool({
|
|
17
19
|
description: "Read a file from the persistent memory workspace (MEMORY.md, rollout_summaries/*, skills/*, etc.). " +
|
|
18
20
|
"Paths are relative to the memory root and cannot escape it. Supports line_offset/max_lines for " +
|
|
19
21
|
"reading a window of a large file; line_offset is 1-indexed and the starting line is reported.",
|
|
20
22
|
args: {
|
|
21
|
-
path: tool.schema
|
|
23
|
+
path: tool.schema
|
|
24
|
+
.string()
|
|
25
|
+
.describe("Relative path inside the memory workspace (e.g. MEMORY.md, rollout_summaries/session-xyz.md)."),
|
|
22
26
|
line_offset: tool.schema.number().int().min(1).optional().describe("1-indexed line to start reading from."),
|
|
23
27
|
max_lines: tool.schema.number().int().min(1).optional().describe("Maximum number of lines to return."),
|
|
24
28
|
},
|
|
@@ -34,7 +38,9 @@ export const memory_read = tool({
|
|
|
34
38
|
.sort((a, b) => comparePathNames(a.name, b.name))
|
|
35
39
|
.map((e) => e.name);
|
|
36
40
|
return {
|
|
37
|
-
output: `Directory ${args.path}/\n` +
|
|
41
|
+
output: `Directory ${args.path}/\n` +
|
|
42
|
+
entries.map((e) => `- ${e}`).join("\n") +
|
|
43
|
+
"\n(use memory_list for sorted, typed listings)",
|
|
38
44
|
metadata: { kind: "directory", entries },
|
|
39
45
|
};
|
|
40
46
|
}
|
|
@@ -61,7 +67,10 @@ export const memory_read = tool({
|
|
|
61
67
|
if (Buffer.byteLength(body, "utf8") > MAX_READ_BYTES) {
|
|
62
68
|
byteTruncated = true;
|
|
63
69
|
// Byte-accurate cut; drop a possibly split trailing multibyte char.
|
|
64
|
-
body = Buffer.from(body, "utf8")
|
|
70
|
+
body = Buffer.from(body, "utf8")
|
|
71
|
+
.subarray(0, MAX_READ_BYTES)
|
|
72
|
+
.toString("utf8")
|
|
73
|
+
.replace(/\uFFFD+$/, "");
|
|
65
74
|
}
|
|
66
75
|
const notes = [];
|
|
67
76
|
if (lineTruncated)
|
|
@@ -71,7 +80,12 @@ export const memory_read = tool({
|
|
|
71
80
|
const header = startLine > 1 ? `[starting at line ${startLine}]\n` : "";
|
|
72
81
|
return {
|
|
73
82
|
output: header + body + (notes.length ? "\n\n" + notes.join("\n") : ""),
|
|
74
|
-
metadata: {
|
|
83
|
+
metadata: {
|
|
84
|
+
path: args.path,
|
|
85
|
+
bytes: stat.size,
|
|
86
|
+
start_line_number: startLine,
|
|
87
|
+
truncated: byteTruncated || lineTruncated,
|
|
88
|
+
},
|
|
75
89
|
};
|
|
76
90
|
}
|
|
77
91
|
catch (err) {
|
|
@@ -114,9 +128,18 @@ export const memory_list = tool({
|
|
|
114
128
|
"with entry types. Hidden files and symlinks are skipped. Supports cursor pagination and listing " +
|
|
115
129
|
"a single file. Use path '' (empty) for the memory root.",
|
|
116
130
|
args: {
|
|
117
|
-
path: tool.schema
|
|
131
|
+
path: tool.schema
|
|
132
|
+
.string()
|
|
133
|
+
.default("")
|
|
134
|
+
.describe("Relative directory path inside the memory workspace ('' for the root)."),
|
|
118
135
|
cursor: tool.schema.string().optional().describe("Pagination cursor from a previous response's next_cursor."),
|
|
119
|
-
max_results: tool.schema
|
|
136
|
+
max_results: tool.schema
|
|
137
|
+
.number()
|
|
138
|
+
.int()
|
|
139
|
+
.min(1)
|
|
140
|
+
.max(LIST_MAX_RESULTS)
|
|
141
|
+
.default(LIST_MAX_RESULTS)
|
|
142
|
+
.describe("Maximum entries to return."),
|
|
120
143
|
},
|
|
121
144
|
async execute(args) {
|
|
122
145
|
try {
|
|
@@ -235,6 +258,8 @@ function firstContentLine(content) {
|
|
|
235
258
|
}
|
|
236
259
|
// --- search engine, ported from codex ext/memories/src/local/search.rs ---
|
|
237
260
|
const SEARCH_MAX_RESULTS = 200; // codex MAX_SEARCH_RESULTS (= default)
|
|
261
|
+
const SEARCH_PAGE_BYTES = 128 * 1024;
|
|
262
|
+
const SNIPPET_BYTES = 16 * 1024;
|
|
238
263
|
// codex SearchComparison::prepare: lowercase when case-insensitive; when
|
|
239
264
|
// normalized, keep ONLY alphanumeric characters (Unicode) so "blue-green",
|
|
240
265
|
// "blue green" and "bluegreen" compare equal.
|
|
@@ -244,61 +269,57 @@ function prepareComparable(value, caseSensitive, normalized) {
|
|
|
244
269
|
v = v.replace(/[^\p{L}\p{N}]/gu, "");
|
|
245
270
|
return v;
|
|
246
271
|
}
|
|
247
|
-
/**
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const prepared = prepareComparable(line, caseSensitive, normalized);
|
|
256
|
-
return preparedQueries.map((q) => prepared.includes(q));
|
|
257
|
-
});
|
|
258
|
-
const matchedQueries = (flags) => queries.filter((_, i) => flags[i]);
|
|
259
|
-
const push = (start, end, flags) => {
|
|
260
|
-
const contentStart = Math.max(0, start - contextLines);
|
|
261
|
-
const contentEnd = Math.min(lines.length, end + contextLines + 1);
|
|
262
|
-
out.push({
|
|
263
|
-
path: file.rel,
|
|
264
|
-
match_line_number: start + 1,
|
|
265
|
-
content_start_line_number: contentStart + 1,
|
|
266
|
-
content: lines.slice(contentStart, contentEnd).join("\n"),
|
|
267
|
-
matched_queries: matchedQueries(flags),
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
if (mode === "any" || mode === "all_on_same_line") {
|
|
271
|
-
for (let i = 0; i < lines.length; i++) {
|
|
272
|
-
const flags = lineFlags[i];
|
|
273
|
-
const hit = mode === "any" ? flags.some(Boolean) : flags.every(Boolean);
|
|
274
|
-
if (hit)
|
|
275
|
-
push(i, i, flags);
|
|
272
|
+
/** A minimal covering window ends exactly when the oldest last-seen query moves forward. */
|
|
273
|
+
async function searchFileContent(lines, preparedQueries, mode, lineCount, caseSensitive, normalized, signal, hit) {
|
|
274
|
+
const last = preparedQueries.map(() => -1);
|
|
275
|
+
let previous = -1;
|
|
276
|
+
for (let i = 0; i < lines.length; i++) {
|
|
277
|
+
if (i && i % 2048 === 0) {
|
|
278
|
+
await yieldToHost();
|
|
279
|
+
signal?.throwIfAborted();
|
|
276
280
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
if (!lineFlags[start].some(Boolean))
|
|
281
|
+
const line = prepareComparable(lines[i], caseSensitive, normalized);
|
|
282
|
+
const flags = preparedQueries.map((q) => line.includes(q));
|
|
283
|
+
if (mode !== "all_within_lines") {
|
|
284
|
+
if (mode === "any" ? flags.some(Boolean) : flags.every(Boolean))
|
|
285
|
+
hit(i, i, flags);
|
|
283
286
|
continue;
|
|
284
|
-
const lastAllowed = Math.min(start + lineCount - 1, lines.length - 1);
|
|
285
|
-
const flags = new Array(preparedQueries.length).fill(false);
|
|
286
|
-
for (let end = start; end <= lastAllowed; end++) {
|
|
287
|
-
for (let q = 0; q < flags.length; q++)
|
|
288
|
-
flags[q] = flags[q] || lineFlags[end][q];
|
|
289
|
-
if (flags.every(Boolean)) {
|
|
290
|
-
windows.push({ start, end, flags });
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
287
|
}
|
|
288
|
+
for (let q = 0; q < flags.length; q++)
|
|
289
|
+
if (flags[q])
|
|
290
|
+
last[q] = i;
|
|
291
|
+
const start = Math.min(...last);
|
|
292
|
+
if (start > previous && i - start < lineCount)
|
|
293
|
+
hit(start, i);
|
|
294
|
+
previous = start;
|
|
294
295
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
}
|
|
297
|
+
/** Materialize only returned matches. Keep the hit visible even with huge leading context. */
|
|
298
|
+
function searchSnippet(lines, start, end, context) {
|
|
299
|
+
let first = start;
|
|
300
|
+
let bytes = 0;
|
|
301
|
+
while (first > Math.max(0, start - context)) {
|
|
302
|
+
const extra = Buffer.byteLength(lines[first - 1]) + 1;
|
|
303
|
+
if (bytes + extra > SNIPPET_BYTES / 4)
|
|
304
|
+
break;
|
|
305
|
+
bytes += extra;
|
|
306
|
+
first--;
|
|
307
|
+
}
|
|
308
|
+
const chunks = lines.slice(first, start);
|
|
309
|
+
for (let i = start; i <= Math.min(end + context, lines.length - 1); i++) {
|
|
310
|
+
const line = lines[i];
|
|
311
|
+
const room = SNIPPET_BYTES - bytes - 32;
|
|
312
|
+
if (line.length > room || Buffer.byteLength(line) > room) {
|
|
313
|
+
chunks.push(Buffer.from(line.slice(0, Math.max(0, room)))
|
|
314
|
+
.subarray(0, Math.max(0, room))
|
|
315
|
+
.toString("utf8")
|
|
316
|
+
.replace(/\uFFFD$/, "") + " […truncated]");
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
chunks.push(line);
|
|
320
|
+
bytes += Buffer.byteLength(line) + 1;
|
|
301
321
|
}
|
|
322
|
+
return { content_start_line_number: first + 1, content: chunks.join("\n") };
|
|
302
323
|
}
|
|
303
324
|
function renderMatch(m) {
|
|
304
325
|
const header = `${m.path}:${m.match_line_number}`;
|
|
@@ -316,17 +337,49 @@ export const memory_search = tool({
|
|
|
316
337
|
"notes) from that period — useful to recall what the user was working on around a given time. " +
|
|
317
338
|
"With since/until and no queries, returns a chronological listing of that period's sessions/notes.",
|
|
318
339
|
args: {
|
|
319
|
-
queries: tool.schema
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
340
|
+
queries: tool.schema
|
|
341
|
+
.array(tool.schema.string())
|
|
342
|
+
.optional()
|
|
343
|
+
.describe("Search substrings (at least one, non-empty after trim). Optional only when since/until is set."),
|
|
344
|
+
match_mode: tool.schema
|
|
345
|
+
.enum(["any", "all_on_same_line", "all_within_lines"])
|
|
346
|
+
.default("any")
|
|
347
|
+
.describe("How multiple queries combine (default any)."),
|
|
348
|
+
line_count: tool.schema
|
|
349
|
+
.number()
|
|
350
|
+
.int()
|
|
351
|
+
.min(1)
|
|
352
|
+
.optional()
|
|
353
|
+
.describe("Window size in lines for all_within_lines (required for that mode)."),
|
|
354
|
+
path: tool.schema
|
|
355
|
+
.string()
|
|
356
|
+
.optional()
|
|
357
|
+
.describe("Restrict the search to a file or directory relative to the memory root."),
|
|
323
358
|
cursor: tool.schema.string().optional().describe("Pagination cursor from a previous response's next_cursor."),
|
|
324
359
|
context_lines: tool.schema.number().int().min(0).default(0).describe("Extra lines of context around each match."),
|
|
325
|
-
case_sensitive: tool.schema
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
360
|
+
case_sensitive: tool.schema
|
|
361
|
+
.boolean()
|
|
362
|
+
.default(true)
|
|
363
|
+
.describe("Case-sensitive matching (default true, like codex memories/search)."),
|
|
364
|
+
normalized: tool.schema
|
|
365
|
+
.boolean()
|
|
366
|
+
.default(false)
|
|
367
|
+
.describe("Compare only alphanumeric characters, ignoring separators (blue-green == bluegreen); combine with case_sensitive=false to also ignore case."),
|
|
368
|
+
since: tool.schema
|
|
369
|
+
.string()
|
|
370
|
+
.optional()
|
|
371
|
+
.describe("Only time-anchored files at/after this time (YYYY-MM-DD or ISO datetime)."),
|
|
372
|
+
until: tool.schema
|
|
373
|
+
.string()
|
|
374
|
+
.optional()
|
|
375
|
+
.describe("Only time-anchored files at/before this time (YYYY-MM-DD or ISO datetime; whole day for date-only)."),
|
|
376
|
+
max_results: tool.schema
|
|
377
|
+
.number()
|
|
378
|
+
.int()
|
|
379
|
+
.min(1)
|
|
380
|
+
.max(SEARCH_MAX_RESULTS)
|
|
381
|
+
.default(SEARCH_MAX_RESULTS)
|
|
382
|
+
.describe("Max matches per page (default/max 200, like codex)."),
|
|
330
383
|
},
|
|
331
384
|
async execute(args, ctx) {
|
|
332
385
|
try {
|
|
@@ -336,6 +389,8 @@ export const memory_search = tool({
|
|
|
336
389
|
if (!fs.existsSync(root))
|
|
337
390
|
return { output: "Memory workspace is empty." };
|
|
338
391
|
const queries = (args.queries ?? []).map((q) => q.trim());
|
|
392
|
+
if (queries.length > 64 || queries.reduce((sum, q) => sum + Buffer.byteLength(q), 0) > 8192)
|
|
393
|
+
return { output: "memory_search error: at most 64 queries and 8192 query bytes are supported." };
|
|
339
394
|
if (args.queries && (queries.length === 0 || queries.some((q) => q.length === 0))) {
|
|
340
395
|
return { output: "memory_search error: queries must be non-empty strings." };
|
|
341
396
|
}
|
|
@@ -364,7 +419,9 @@ export const memory_search = tool({
|
|
|
364
419
|
return { output: `Not found: ${args.path}` };
|
|
365
420
|
}
|
|
366
421
|
const rel = args.path.replace(/\/+$/, "");
|
|
367
|
-
files = st.isFile()
|
|
422
|
+
files = st.isFile()
|
|
423
|
+
? [{ rel, abs: start, ts: fileTimestamp(path.basename(start)) }]
|
|
424
|
+
: collectSearchFiles(start, rel);
|
|
368
425
|
}
|
|
369
426
|
else {
|
|
370
427
|
files = collectSearchFiles(root, "");
|
|
@@ -397,8 +454,7 @@ export const memory_search = tool({
|
|
|
397
454
|
try {
|
|
398
455
|
content = readRegularFileNoFollow(f.abs).content.toString("utf8");
|
|
399
456
|
}
|
|
400
|
-
catch {
|
|
401
|
-
}
|
|
457
|
+
catch { }
|
|
402
458
|
return `${new Date(f.ts).toISOString()} ${f.rel} — ${firstContentLine(content)}`;
|
|
403
459
|
});
|
|
404
460
|
if (files.length === 0)
|
|
@@ -428,40 +484,59 @@ export const memory_search = tool({
|
|
|
428
484
|
if (preparedQueries.some((q) => q.length === 0)) {
|
|
429
485
|
return { output: "memory_search error: a query is empty after normalization." };
|
|
430
486
|
}
|
|
431
|
-
|
|
432
|
-
|
|
487
|
+
const startIndex = args.cursor === undefined ? 0 : Number(args.cursor);
|
|
488
|
+
if (!Number.isSafeInteger(startIndex) ||
|
|
489
|
+
startIndex < 0 ||
|
|
490
|
+
(args.cursor !== undefined && String(startIndex) !== args.cursor.trim()))
|
|
491
|
+
return { output: `memory_search error: invalid cursor "${args.cursor}" (must be a non-negative integer).` };
|
|
492
|
+
const pageMatches = [];
|
|
493
|
+
const pageSize = args.max_results ?? SEARCH_MAX_RESULTS;
|
|
494
|
+
let count = 0;
|
|
495
|
+
let pageBytes = 0;
|
|
496
|
+
let pageFull = false;
|
|
497
|
+
files.sort((a, b) => comparePathNames(a.rel, b.rel));
|
|
433
498
|
for (const f of files) {
|
|
499
|
+
await yieldToHost();
|
|
500
|
+
ctx.abort?.throwIfAborted();
|
|
434
501
|
let content;
|
|
435
502
|
try {
|
|
436
|
-
content = readRegularFileNoFollow(f.
|
|
503
|
+
content = readRegularFileNoFollow(safeResolveUnderRoot(root, f.rel)).content.toString("utf8");
|
|
437
504
|
}
|
|
438
505
|
catch {
|
|
439
506
|
continue;
|
|
440
507
|
}
|
|
441
508
|
if (content.includes("\u0000"))
|
|
442
509
|
continue; // binary, like codex's InvalidData skip
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
510
|
+
const lines = content.split(/\r?\n/);
|
|
511
|
+
await searchFileContent(lines, preparedQueries, mode, args.line_count ?? 1, caseSensitive, normalized, ctx.abort, (start, end, flags) => {
|
|
512
|
+
if (count++ < startIndex || pageFull || pageMatches.length >= pageSize)
|
|
513
|
+
return;
|
|
514
|
+
const match = {
|
|
515
|
+
path: f.rel,
|
|
516
|
+
match_line_number: start + 1,
|
|
517
|
+
...searchSnippet(lines, start, end, args.context_lines ?? 0),
|
|
518
|
+
matched_queries: flags ? queries.filter((_, i) => flags[i]) : queries,
|
|
519
|
+
};
|
|
520
|
+
// Account for both the display text and persisted match metadata.
|
|
521
|
+
const size = Buffer.byteLength(JSON.stringify(match)) + Buffer.byteLength(renderMatch(match)) + 1;
|
|
522
|
+
if (pageMatches.length && pageBytes + size > SEARCH_PAGE_BYTES) {
|
|
523
|
+
pageFull = true;
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
pageBytes += size;
|
|
527
|
+
pageMatches.push(match);
|
|
528
|
+
});
|
|
455
529
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const
|
|
530
|
+
if (startIndex > count)
|
|
531
|
+
return { output: `memory_search error: cursor ${startIndex} exceeds result count ${count}.` };
|
|
532
|
+
const endIndex = startIndex + pageMatches.length;
|
|
533
|
+
const nextCursor = endIndex < count ? String(endIndex) : null;
|
|
459
534
|
const truncated = nextCursor !== null;
|
|
460
535
|
const label = queries.map((q) => `"${q}"`).join(", ");
|
|
461
|
-
if (
|
|
536
|
+
if (count === 0)
|
|
462
537
|
return { output: `No matches for ${label}${rangeLabel}.` };
|
|
463
538
|
return {
|
|
464
|
-
output: `${pageMatches.length} of ${
|
|
539
|
+
output: `${pageMatches.length} of ${count} match(es) for ${label}${rangeLabel}` +
|
|
465
540
|
`${truncated ? ` (more available; pass cursor=${nextCursor})` : ""}:\n` +
|
|
466
541
|
pageMatches.map(renderMatch).join("\n"),
|
|
467
542
|
metadata: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-codex-memory",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Persistent memory plugin for opencode — ports codex's two-phase memory system (extraction → consolidation → injection → citation feedback)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
"live:e2e": "bun scripts/live-e2e.ts",
|
|
52
52
|
"prepack": "npm run build && npm run smoke",
|
|
53
53
|
"test": "bun test",
|
|
54
|
-
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json"
|
|
54
|
+
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
|
|
55
|
+
"format": "prettier --write .",
|
|
56
|
+
"format:check": "prettier --check ."
|
|
55
57
|
},
|
|
56
58
|
"keywords": [
|
|
57
59
|
"opencode",
|
|
@@ -63,21 +65,21 @@
|
|
|
63
65
|
],
|
|
64
66
|
"license": "Apache-2.0",
|
|
65
67
|
"dependencies": {
|
|
66
|
-
"@opencode-ai/plugin": "
|
|
67
|
-
"@opencode/client": "2.
|
|
68
|
-
"diff": "
|
|
69
|
-
"isomorphic-git": "
|
|
70
|
-
"xdg-basedir": "
|
|
71
|
-
"zod": "4.1.8"
|
|
68
|
+
"@opencode-ai/plugin": "1.19.6",
|
|
69
|
+
"@opencode/client": "2.4.1",
|
|
70
|
+
"diff": "9.0.0",
|
|
71
|
+
"isomorphic-git": "1.44.19",
|
|
72
|
+
"xdg-basedir": "5.1.0"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
|
-
"@opencode/plugin": "2.
|
|
75
|
-
"@opencode/theme": "2.
|
|
76
|
-
"@opentui/core": "0.
|
|
77
|
-
"@opentui/solid": "0.
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
75
|
+
"@opencode/plugin": "2.4.1",
|
|
76
|
+
"@opencode/theme": "2.4.1",
|
|
77
|
+
"@opentui/core": "0.9.9",
|
|
78
|
+
"@opentui/solid": "0.9.9",
|
|
79
|
+
"@types/bun": "1.4.5",
|
|
80
|
+
"prettier": "3.10.1",
|
|
81
|
+
"solid-js": "1.9.20",
|
|
82
|
+
"typescript": "5.9.3"
|
|
81
83
|
},
|
|
82
84
|
"peerDependencies": {
|
|
83
85
|
"@opencode/client": ">=2.0.3",
|
|
@@ -87,11 +89,21 @@
|
|
|
87
89
|
"solid-js": ">=1.9.0"
|
|
88
90
|
},
|
|
89
91
|
"peerDependenciesMeta": {
|
|
90
|
-
"@opencode/client": {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"@
|
|
94
|
-
|
|
92
|
+
"@opencode/client": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@opencode/plugin": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@opentui/core": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"@opentui/solid": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"solid-js": {
|
|
105
|
+
"optional": true
|
|
106
|
+
}
|
|
95
107
|
},
|
|
96
108
|
"engines": {
|
|
97
109
|
"bun": ">=1.1.0"
|