@retaw106/mmc-oc 2.5.0 → 2.7.1
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/dist/{context-xx09sh1g.js → context-9q17e52a.js} +553 -214
- package/dist/features/magic-context/auto-search-diagnostics.d.ts +27 -0
- package/dist/features/magic-context/auto-search-diagnostics.d.ts.map +1 -0
- package/dist/features/magic-context/compaction-marker.d.ts +34 -6
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +1 -24
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +4 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/session-decision-calibration.d.ts.map +1 -1
- package/dist/features/magic-context/session-retention.fixture.d.ts +4 -0
- package/dist/features/magic-context/session-retention.fixture.d.ts.map +1 -0
- package/dist/features/magic-context/storage-meta-persisted.d.ts +21 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-native-replay.d.ts +2 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/features/magic-context/storage-session-tables.d.ts +4 -11
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/features/magic-context/tool-definition-tokens.d.ts +113 -58
- package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -1
- package/dist/features/magic-context/work-metrics.d.ts +5 -3
- package/dist/features/magic-context/work-metrics.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +32 -0
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/ask-answer-notice.d.ts +25 -0
- package/dist/hooks/magic-context/ask-answer-notice.d.ts.map +1 -0
- package/dist/hooks/magic-context/auto-search-observation.d.ts +13 -0
- package/dist/hooks/magic-context/auto-search-observation.d.ts.map +1 -0
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +5 -5
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-publication.d.ts +14 -0
- package/dist/hooks/magic-context/compaction-marker-publication.d.ts.map +1 -0
- package/dist/hooks/magic-context/compaction-off-transition.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts +11 -0
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +11 -3
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-history-wait.d.ts +16 -0
- package/dist/hooks/magic-context/historian-history-wait.d.ts.map +1 -0
- package/dist/hooks/magic-context/history-boundary-repair.d.ts +1 -1
- package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-measured-request.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-recovery-prefix.d.ts +3 -1
- package/dist/hooks/magic-context/lkg-recovery-prefix.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay-fit.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +2 -0
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-db.d.ts +8 -2
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts +20 -0
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/signed-thinking-fit-snapshot.d.ts +42 -0
- package/dist/hooks/magic-context/signed-thinking-fit-snapshot.d.ts.map +1 -0
- package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/todo-view.d.ts +2 -2
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-bpjjcdy9.js → index-8rmt6s4f.js} +77 -31
- package/dist/{index-mjf0p7yq.js → index-cgjyhwdk.js} +1 -1
- package/dist/{index-k25thxq7.js → index-s3ebcy63.js} +1 -1
- package/dist/{index-1vxffj5j.js → index-t0zx3tgz.js} +408 -89
- package/dist/{index-0d40b4q8.js → index-xrxpbe74.js} +9355 -9215
- package/dist/index.js +14 -4
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{read-session-chunk-eb3fy45y.js → read-session-chunk-2s8x6xps.js} +2 -2
- package/dist/{recomp-orchestrator-mmpy5cb7.js → recomp-orchestrator-gzd1at06.js} +5 -5
- package/dist/{send-session-notification-zpqs213d.js → send-session-notification-vdppp5x6.js} +2 -2
- package/dist/shared/search-text.d.ts +2 -0
- package/dist/shared/search-text.d.ts.map +1 -1
- package/dist/shared/tag-transcript.d.ts +2 -0
- package/dist/shared/tag-transcript.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +3 -1
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/tools/ctx-expand/render.d.ts +5 -3
- package/dist/tools/ctx-expand/render.d.ts.map +1 -1
- package/dist/tools/ctx-expand/tools.d.ts +2 -0
- package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/tools/ctx-note/tools.d.ts.map +1 -1
- package/dist/tools/parameter-descriptions.d.ts +10 -10
- package/dist/tools/parameter-descriptions.d.ts.map +1 -1
- package/dist/tui.js +2144 -0
- package/dist/v2/hooks/context.d.ts +5 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/message-times.d.ts +17 -0
- package/dist/v2/message-times.d.ts.map +1 -0
- package/dist/v2/server.js +11211 -10345
- package/dist/v2/store-reader.d.ts +14 -4
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/tui/client.d.ts +57 -0
- package/dist/v2/tui/client.d.ts.map +1 -0
- package/dist/v2/tui/context-rpc.d.ts +63 -0
- package/dist/v2/tui/context-rpc.d.ts.map +1 -0
- package/dist/v2/tui/entry.d.ts +8 -0
- package/dist/v2/tui/entry.d.ts.map +1 -0
- package/dist/v2/tui/notification-socket.d.ts +26 -0
- package/dist/v2/tui/notification-socket.d.ts.map +1 -0
- package/dist/v2/tui/session-directory.d.ts +22 -0
- package/dist/v2/tui/session-directory.d.ts.map +1 -0
- package/dist/v2/tui/types.d.ts +110 -0
- package/dist/v2/tui/types.d.ts.map +1 -0
- package/dist/web/main.js +85 -11
- package/dist/{wrapup-orchestrator-jq589pgr.js → wrapup-orchestrator-ghq4y406.js} +5 -5
- package/package.json +13 -3
- package/src/config/latch-permanence-guard.test.ts +0 -5
- package/src/shared/prompt-surface-a1-golden.md +8 -9
- package/src/shared/search-text.test.ts +36 -1
- package/src/shared/search-text.ts +48 -0
- package/src/shared/sqlite-transaction-mode-guard.test.ts +2 -0
- package/src/shared/tag-transcript.ts +47 -4
- package/src/shared/transcript.ts +1 -1
- package/src/shared/write-transaction-attribution.test.ts +1 -6
- package/tui.js +4 -0
- package/dist/features/magic-context/message-index-sweep.d.ts +0 -11
- package/dist/features/magic-context/message-index-sweep.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@retaw106/mmc-oc",
|
|
9
|
-
version: "2.
|
|
9
|
+
version: "2.7.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
12
12
|
main: "dist/index.js",
|
|
@@ -37,14 +37,16 @@ var package_default = {
|
|
|
37
37
|
files: [
|
|
38
38
|
"dist",
|
|
39
39
|
"index.js",
|
|
40
|
+
"tui.js",
|
|
40
41
|
"src/shared",
|
|
41
42
|
"src/config",
|
|
42
43
|
"src/agents",
|
|
43
44
|
"README.md"
|
|
44
45
|
],
|
|
45
46
|
scripts: {
|
|
46
|
-
build: "bun ../../scripts/check-bun.mjs && bun ../../scripts/clean-dist-chunks.mjs dist index.js config-init.js cli.js && rm -rf dist/web && bun build src/index.ts --outdir dist --target node --format esm --splitting --external @opencode-ai/plugin --external bun:sqlite --external node:sqlite && bun run build:v2 && bun run build:web && bun run build:config-init && bun run build:cli && tsc --emitDeclarationOnly",
|
|
47
|
+
build: "bun ../../scripts/check-bun.mjs && bun ../../scripts/clean-dist-chunks.mjs dist index.js config-init.js cli.js && rm -rf dist/web && bun build src/index.ts --outdir dist --target node --format esm --splitting --external @opencode-ai/plugin --external bun:sqlite --external node:sqlite && bun run build:v2 && bun run build:tui && bun run build:web && bun run build:config-init && bun run build:cli && tsc --emitDeclarationOnly",
|
|
47
48
|
"build:v2": "bun build src/v2/server.ts --outfile dist/v2/server.js --target node --format esm --external @opencode/plugin && bun test src/v2/server.test.ts",
|
|
49
|
+
"build:tui": "bun build src/v2/tui/entry.ts --outfile dist/tui.js --target node --format esm",
|
|
48
50
|
"build:web": "bun build src/web/main.ts --outfile dist/web/main.js --target node --format esm --external bun:sqlite --external node:sqlite && mkdir -p dist/web/ui && cp src/web/ui/* dist/web/ui/",
|
|
49
51
|
"build:config-init": "bun build scripts/config-init-entry.ts --outfile dist/config-init.js --target node --format esm",
|
|
50
52
|
"build:cli": "bun build scripts/cli.ts --outfile dist/cli.js --target node --format esm",
|
|
@@ -86,10 +88,18 @@ var package_default = {
|
|
|
86
88
|
".": {
|
|
87
89
|
types: "./dist/index.d.ts",
|
|
88
90
|
import: "./dist/index.js"
|
|
91
|
+
},
|
|
92
|
+
"./tui": {
|
|
93
|
+
import: "./tui.js"
|
|
89
94
|
}
|
|
90
95
|
},
|
|
91
96
|
"oc-plugin": [
|
|
92
|
-
"server"
|
|
97
|
+
"server",
|
|
98
|
+
"tui"
|
|
99
|
+
],
|
|
100
|
+
opencode: [
|
|
101
|
+
"server",
|
|
102
|
+
"tui"
|
|
93
103
|
],
|
|
94
104
|
peerDependencies: {
|
|
95
105
|
"@opencode-ai/plugin": ">=1.15.0"
|
|
@@ -127,7 +137,7 @@ async function setup(context) {
|
|
|
127
137
|
log("v2 setup() called on a host without session.hook; v1 server lane owns this host, v2 lane inert");
|
|
128
138
|
return async () => {};
|
|
129
139
|
}
|
|
130
|
-
const { registerContext } = await import("./context-
|
|
140
|
+
const { registerContext } = await import("./context-9q17e52a.js");
|
|
131
141
|
setHarness("opencode2");
|
|
132
142
|
const duties = await registerContext(context);
|
|
133
143
|
log("[magic-context] @retaw106/mmc-oc v2 setup");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqBzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;AAe3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAQhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAUlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-handlers.d.ts","sourceRoot":"","sources":["../../src/plugin/rpc-handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAqBzE,OAAO,EACH,KAAK,eAAe,IAAI,QAAQ,EAGnC,MAAM,mCAAmC,CAAC;AAe3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;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AC;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,KAAK,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC;YAClB,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,EAAE,MAAM,CAAC;YACrB,mBAAmB,EAAE,MAAM,CAAC;YAC5B,cAAc,EAAE,MAAM,CAAC;SAC1B,CAAC,CAAC;KACN,CAAC;CACL;AAiBD,wBAAgB,iBAAiB,CAC7B,MAAM,EAAE,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,EAC7C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACrC,OAAO,CAET;AAED,wBAAgB,qBAAqB,CACjC,cAAc,GAAE,yBAA8B,GAC/C,wBAAwB,CA2E1B;AAuHD;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,SAAS,EAAE,qBAAqB,EAChC,IAAI,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,wBAAwB,CAAC,EAAE,oBAAoB,CAAC,0BAA0B,CAAC,CAAC;IAC5E,qFAAqF;IACrF,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,yBAAyB,GAAG,SAAS,CAAC;IACpE;0EACsE;IACtE,WAAW,CAAC,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC;CACvC,GACF,IAAI,CA4SN"}
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
getRawSessionTagKeysThrough2,
|
|
25
25
|
getLegacyProtectedTailStartOrdinal2,
|
|
26
26
|
readSessionChunk2
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
} from "./index-t0zx3tgz.js";
|
|
28
|
+
import"./index-8rmt6s4f.js";
|
|
29
29
|
import"./index-pte3cfs9.js";
|
|
30
30
|
import"./index-x37vg474.js";
|
|
31
31
|
import"./index-k59af64t.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
setRecompStarting2,
|
|
3
3
|
setRecompTerminal2,
|
|
4
4
|
runManagedRecomp2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
5
|
+
} from "./index-cgjyhwdk.js";
|
|
6
|
+
import"./index-xrxpbe74.js";
|
|
7
|
+
import"./index-s3ebcy63.js";
|
|
8
|
+
import"./index-t0zx3tgz.js";
|
|
9
|
+
import"./index-8rmt6s4f.js";
|
|
10
10
|
import"./index-yjv8dpht.js";
|
|
11
11
|
import"./index-pte3cfs9.js";
|
|
12
12
|
import"./index-jdxxq8cz.js";
|
package/dist/{send-session-notification-zpqs213d.js → send-session-notification-vdppp5x6.js}
RENAMED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
clearIgnoredMessages2,
|
|
5
5
|
observeIgnoredNotificationEvent2,
|
|
6
6
|
sendStatusNotification2
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-s3ebcy63.js";
|
|
8
|
+
import"./index-8rmt6s4f.js";
|
|
9
9
|
import"./index-pte3cfs9.js";
|
|
10
10
|
import"./index-kmbme1v1.js";
|
|
11
11
|
import"./index-k59af64t.js";
|
|
@@ -3,6 +3,8 @@ export declare function removeTaskNotifications(text: string): string;
|
|
|
3
3
|
export declare function cleanSearchText(text: string): string;
|
|
4
4
|
/** Score distinct query coverage independently of other results. */
|
|
5
5
|
export declare function keywordRelevance(query: string, content: string): number;
|
|
6
|
+
/** Match unspaced clauses for hints without changing retrieval or snippet scoring. */
|
|
7
|
+
export declare function hintKeywordRelevance(query: string, content: string): number;
|
|
6
8
|
/** Pick the densest matching passage before compression discards matched words. */
|
|
7
9
|
export declare function matchedSearchSnippet(content: string, query: string, cap?: number): string;
|
|
8
10
|
//# sourceMappingURL=search-text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-text.d.ts","sourceRoot":"","sources":["../../src/shared/search-text.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIpD;AAkBD,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAKvE;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAM,GAAG,MAAM,CAuBtF"}
|
|
1
|
+
{"version":3,"file":"search-text.d.ts","sourceRoot":"","sources":["../../src/shared/search-text.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIpD;AAkBD,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAKvE;AAsBD,sFAAsF;AACtF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAyB3E;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAM,GAAG,MAAM,CAuBtF"}
|
|
@@ -52,6 +52,8 @@ import { TEXT_TAG_IDENTITY_MARKER } from "./tag-owner-id";
|
|
|
52
52
|
import type { Transcript } from "./transcript";
|
|
53
53
|
export { TEXT_TAG_IDENTITY_MARKER };
|
|
54
54
|
export interface TagTranscriptOptions {
|
|
55
|
+
/** Independently validated text sources; does not authorize tool accounting reuse. */
|
|
56
|
+
reuseTextMessageIds?: ReadonlySet<string>;
|
|
55
57
|
/**
|
|
56
58
|
* When true, skip injecting `§N§` prefix into visible text. Tags
|
|
57
59
|
* still get assigned in the DB so historian/drops can reference
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-transcript.d.ts","sourceRoot":"","sources":["../../src/shared/tag-transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAQzE,OAAO,EAAwB,KAAK,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAWhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAqC,MAAM,cAAc,CAAC;AAGlF,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACjC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;OAOG;IACH,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1D;;;;OAIG;IACH,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClD,wEAAwE;IACxE,uBAAuB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,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;AAwGD,wBAAgB,aAAa,CACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,eAAe,EACnB,OAAO,GAAE,oBAAyB,GACnC,mBAAmB,CAsYrB"}
|
|
@@ -115,7 +115,9 @@ export interface TranscriptPart {
|
|
|
115
115
|
*
|
|
116
116
|
* For non-tool parts both byte fields are undefined/0.
|
|
117
117
|
*/
|
|
118
|
-
getToolMetadata(
|
|
118
|
+
getToolMetadata(options?: {
|
|
119
|
+
skipInputTokenCount?: boolean;
|
|
120
|
+
}): {
|
|
119
121
|
toolName: string | undefined;
|
|
120
122
|
inputByteSize: number;
|
|
121
123
|
inputTokenCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/shared/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,kBAAkB,GACxB,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,OAAO,GACP,MAAM,GACN,YAAY,GACZ,SAAS,CAAC;AAEhB;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,6EAA6E;IAC7E,aAAa,CAAC,IAAI,OAAO,CAAC;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;;;;;;OAOG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS,CAAC;IAE9B;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;OAIG;IACH,aAAa,CAAC,OAAO,E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AM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;IAEvD;;;;;;;;;;;;OAYG;IACH,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEnD,wFAAwF;IACxF,MAAM,CAAC,IAAI,OAAO,CAAC;IACnB,gGAAgG;IAChG,sFAAsF;IACtF,SAAS,CAAC,IAAI,OAAO,GAAG,OAAO,CAAC;IAEhC;;;;;;;;OAQG;IACH,WAAW,CAAC,IAAI,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAC9B,8FAA8F;IAC9F,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,IAAI,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEjE,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACvB,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAEvC;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAE5B;;;;;;;;;;;;;OAaG;IACH,MAAM,IAAI,IAAI,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAAiC,CAAC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import { type ContextDatabase } from "../../features/magic-context/storage";
|
|
24
24
|
import type { ToolExpansionMap } from "../../shared/historian-tool-template";
|
|
25
|
+
export type RecoveryAttachments = (sessionId: string, messageId: string) => readonly unknown[];
|
|
25
26
|
/**
|
|
26
27
|
* Full untruncated recovery of one message by its ORDINAL — the same `[N]`
|
|
27
28
|
* identifier the agent already uses everywhere (compartment start/end, mmc_search
|
|
@@ -29,7 +30,7 @@ import type { ToolExpansionMap } from "../../shared/historian-tool-template";
|
|
|
29
30
|
* sits at that ordinal (pruned/reverted or wrong ordinal) — stated as absence
|
|
30
31
|
* from stored history, never as permanent deletion.
|
|
31
32
|
*/
|
|
32
|
-
export declare function renderMessageByOrdinal(sessionId: string, ordinal: number): string;
|
|
33
|
+
export declare function renderMessageByOrdinal(sessionId: string, ordinal: number, attachments?: RecoveryAttachments): string;
|
|
33
34
|
export interface VerboseRangeResult {
|
|
34
35
|
text: string;
|
|
35
36
|
/** Last ordinal actually rendered (for the continuation hint). */
|
|
@@ -42,7 +43,8 @@ export interface VerboseRangeResult {
|
|
|
42
43
|
* id and a per-part preview, bounded by `tokenBudget`. The agent reads the ids
|
|
43
44
|
* here and recovers any one message in full with mmc_expand(id=...).
|
|
44
45
|
*/
|
|
45
|
-
export declare function renderVerboseRange(sessionId: string, start: number, end: number, tokenBudget: number, expandTools?: ToolExpansionMap): VerboseRangeResult;
|
|
46
|
+
export declare function renderVerboseRange(sessionId: string, start: number, end: number, tokenBudget: number, expandTools?: ToolExpansionMap, attachments?: RecoveryAttachments): VerboseRangeResult;
|
|
47
|
+
export declare function renderVerboseRangeForTool(sessionId: string, start: number, end: number, tokenBudget: number, expandTools?: ToolExpansionMap, attachments?: RecoveryAttachments): string;
|
|
46
48
|
/** Resolve a transcript handle by persisted ownership, never by message ordinal. */
|
|
47
|
-
export declare function renderItemByTag(db: ContextDatabase, sessionId: string, number: number, textIndexDomain?: "part" | "text"): string;
|
|
49
|
+
export declare function renderItemByTag(db: ContextDatabase, sessionId: string, number: number, textIndexDomain?: "part" | "text", attachments?: RecoveryAttachments): string;
|
|
48
50
|
//# sourceMappingURL=render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-expand/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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eAAe,CAC3B,EAAE,EAAE,eAAe,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,eAAe,GAAE,MAAM,GAAG,MAAe,EACzC,WAAW,CAAC,EAAE,mBAAmB,GAClC,MAAM,CAqER"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { ContextDatabase } from "../../features/magic-context/storage";
|
|
3
3
|
import type { ToolExpansionMap } from "../../shared/historian-tool-template";
|
|
4
|
+
import { type RecoveryAttachments } from "./render";
|
|
4
5
|
export { CTX_EXPAND_LIGHT_DESCRIPTION } from "../light-descriptions";
|
|
5
6
|
export interface CtxExpandToolDeps {
|
|
6
7
|
db: ContextDatabase;
|
|
7
8
|
expandTools?: ToolExpansionMap;
|
|
9
|
+
recoveryAttachments?: RecoveryAttachments;
|
|
8
10
|
}
|
|
9
11
|
export declare function createCtxExpandTools(deps: CtxExpandToolDeps): Record<string, ToolDefinition>;
|
|
10
12
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-expand/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAK5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-expand/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAK5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,OAAO,EACH,KAAK,mBAAmB,EAI3B,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,eAAe,CAAC;IACpB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC7C;AAsJD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AA+BhE,OAAO,EAIH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AA+BhE,OAAO,EAIH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAooBrE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-note/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAiBhE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAapD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,QAAQ,CAAC;IACb;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAClE;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-note/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,qBAAqB,CAAC;AAiBhE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAapD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,QAAQ,CAAC;IACb;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAClE;AA0SD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAIxF"}
|
|
@@ -11,18 +11,18 @@ export declare const FULL_PARAMETER_DESCRIPTIONS: {
|
|
|
11
11
|
readonly message: "Message ordinal from a <session-history> heading or a mmc_search hit, not a tag number. Returns that one message in full. Use alone.";
|
|
12
12
|
};
|
|
13
13
|
readonly mmc_note: {
|
|
14
|
-
readonly action: "write | read | update | dismiss.
|
|
14
|
+
readonly action: "write | read | update | dismiss.";
|
|
15
15
|
readonly content: "Note text for write/update: first line is the title (under 80 chars), then the detail.";
|
|
16
16
|
readonly filter: "Read filter: active (default), all, dismissed.";
|
|
17
17
|
readonly limit: "Rows per read (default 25).";
|
|
18
18
|
readonly offset: "Skip this many newest rows (default 0).";
|
|
19
|
-
readonly note_ids: "Note ids: one for update, 1–50 for dismiss or
|
|
19
|
+
readonly note_ids: "Note ids: one for update, 1–50 for dismiss, or 1–50 to read those notes in full. Write and a plain read take an empty list.";
|
|
20
20
|
};
|
|
21
21
|
readonly mmc_memory: {
|
|
22
22
|
readonly action: "write | update | archive | merge | get";
|
|
23
|
-
readonly content: "The memory text — one standalone fact (write, update, merge).";
|
|
24
|
-
readonly category: "Kind of fact
|
|
25
|
-
readonly ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get.";
|
|
23
|
+
readonly content: "The memory text — one standalone fact (write, update, merge). Archive and get take an empty string.";
|
|
24
|
+
readonly category: "Kind of fact: the new fact's kind for write; on update/merge, the memory's current category to keep it. Archive and get ignore it.";
|
|
25
|
+
readonly ids: "Memory ids from <project-memory>: one for update, one or more for archive, two or more for merge, 1–20 for get. Write takes an empty list.";
|
|
26
26
|
readonly reason: "Why it is being archived (optional).";
|
|
27
27
|
};
|
|
28
28
|
readonly mmc_search: {
|
|
@@ -45,18 +45,18 @@ export declare const LIGHT_PARAMETER_DESCRIPTIONS: {
|
|
|
45
45
|
readonly message: "Message ordinal from a <session-history> heading or a mmc_search hit, not a tag number. Returns that one message in full. Use alone.";
|
|
46
46
|
};
|
|
47
47
|
readonly mmc_note: {
|
|
48
|
-
readonly action: "write | read | update | dismiss
|
|
48
|
+
readonly action: "write | read | update | dismiss.";
|
|
49
49
|
readonly content: "Note text: first line title (<80 chars), then detail.";
|
|
50
50
|
readonly filter: "Read filter: active (default), all, dismissed.";
|
|
51
51
|
readonly limit: "Rows per read (default 25).";
|
|
52
52
|
readonly offset: "Skip newest rows (default 0).";
|
|
53
|
-
readonly note_ids: "One id for update, 1–50 for dismiss or read
|
|
53
|
+
readonly note_ids: "One id for update, 1–50 for dismiss, or 1–50 to read those notes in full. Write and a plain read take an empty list.";
|
|
54
54
|
};
|
|
55
55
|
readonly mmc_memory: {
|
|
56
56
|
readonly action: "write | update | archive | merge | get";
|
|
57
|
-
readonly content: "One standalone fact (write, update, merge).";
|
|
58
|
-
readonly category: "Kind of fact (
|
|
59
|
-
readonly ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get.";
|
|
57
|
+
readonly content: "One standalone fact (write, update, merge). Archive and get: empty string.";
|
|
58
|
+
readonly category: "Kind of fact (write; on update/merge pass the current category to keep it). Archive and get ignore it.";
|
|
59
|
+
readonly ids: "Ids from <project-memory>: one for update, 1+ for archive, 2+ for merge, 1–20 for get. Write: empty list.";
|
|
60
60
|
readonly reason: "Why it is archived (optional).";
|
|
61
61
|
};
|
|
62
62
|
readonly mmc_search: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/parameter-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"parameter-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/parameter-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC9B,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,2BAA2B,CAAC;AAEpF,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,mBAAmB,GAC5B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAI9C;AAED,wBAAgB,oCAAoC,CAChD,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,mBAAmB,GAC5B,IAAI,CAWN"}
|