@cortexkit/opencode-magic-context 0.49.100 → 0.49.102
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/agents/dreamer.d.ts +3 -2
- package/dist/agents/dreamer.d.ts.map +1 -1
- package/dist/agents/permissions.d.ts +2 -0
- package/dist/agents/permissions.d.ts.map +1 -1
- package/dist/agents/smart-notes-dreamer-gate.fixture.d.ts +3 -1
- package/dist/agents/smart-notes-dreamer-gate.fixture.d.ts.map +1 -1
- package/dist/{context-k2tdh146.js → context-4fjwzqqa.js} +214 -30
- package/dist/features/magic-context/dreamer/curate-memory-safety.d.ts +1 -0
- package/dist/features/magic-context/dreamer/curate-memory-safety.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-prompts.d.ts +7 -1
- package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
- package/dist/hooks/magic-context/host-served-rows.d.ts +7 -0
- package/dist/hooks/magic-context/host-served-rows.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-0eyxarpb.js → index-2b7g81z7.js} +66 -21
- package/dist/{index-mfx7hzyc.js → index-4dywj733.js} +1 -1
- package/dist/{index-6hjbeeth.js → index-fbg61b3d.js} +2 -2
- package/dist/{index-qjcye18f.js → index-k4c0majv.js} +1 -1
- package/dist/{index-txthzqrm.js → index-k7yytqrd.js} +95 -53
- package/dist/{index-ajmy0v5j.js → index-ke0mkz7g.js} +13 -0
- package/dist/{index-n3tebmah.js → index-mx4j316q.js} +2 -2
- package/dist/{index-zyb7tndy.js → index-sgsaf60r.js} +4 -4
- package/dist/{index-0tqhr9zs.js → index-tbhbxb09.js} +3 -3
- package/dist/{index-z1hc2g06.js → index-y33x200y.js} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -29
- package/dist/plugin/subagent-tool-policy.d.ts.map +1 -1
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-e7n124g0.js → recomp-orchestrator-cvsfmctf.js} +4 -4
- package/dist/{render-argap54x.js → render-2a83mgrp.js} +2 -2
- package/dist/{search-archive-ads5mh9s.js → search-archive-f5dzec0e.js} +2 -2
- package/dist/{store-reader-01e8t5j0.js → store-reader-c5fwa9qx.js} +1 -1
- package/dist/{store-235fjtsn.js → store-wpx314rk.js} +2 -2
- package/dist/tools/ctx-memory/constants.d.ts +2 -0
- package/dist/tools/ctx-memory/constants.d.ts.map +1 -1
- package/dist/tools/ctx-memory/tools.d.ts +1 -0
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-2y0st4gk.js → transform-postprocess-phase-fyw30790.js} +4 -4
- package/dist/v2/{context-v56v40cx.js → context-08pwkj6g.js} +289 -65
- package/dist/v2/fold/instruction-supersession.d.ts +18 -1
- package/dist/v2/fold/instruction-supersession.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts +2 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/revert-message-state.d.ts +6 -0
- package/dist/v2/hooks/revert-message-state.d.ts.map +1 -1
- package/dist/v2/hooks/tools.d.ts.map +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-5gkzamy2.js → recomp-orchestrator-4mrvs5yc.js} +3 -3
- package/dist/v2/{render-atxj9eaf.js → render-r2djh67k.js} +2 -2
- package/dist/v2/{search-archive-vgwnvdx2.js → search-archive-4bq4ff8q.js} +2 -2
- package/dist/v2/{server-wdmcqhv6.js → server-b25kh28g.js} +1 -1
- package/dist/v2/{server-rwdp3hw6.js → server-f49pxtwf.js} +37 -4
- package/dist/v2/{server-e14d7ebh.js → server-mc5t7k8v.js} +1 -1
- package/dist/v2/{server-8vby30m5.js → server-nbdfv1wx.js} +1 -1
- package/dist/v2/{server-ysg14rv1.js → server-qg8jyfxa.js} +13 -0
- package/dist/v2/{server-08jh9wew.js → server-zzwje0mz.js} +4 -4
- package/dist/v2/server.js +2 -2
- package/dist/v2/{store-0kjfynwp.js → store-mba47sxn.js} +2 -2
- package/dist/v2/{store-reader-w0srb18d.js → store-reader-w7w8vfsy.js} +1 -1
- package/dist/v2/store-reader.d.ts +7 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{v2-archive-reader-1wc5wb1a.js → v2-archive-reader-avcf7a5n.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-ksdn2emb.js → wrapup-orchestrator-zwpjqymz.js} +3 -3
- package/dist/{v2-archive-reader-4pk46nc1.js → v2-archive-reader-cnhvhggz.js} +1 -1
- package/dist/{wrapup-orchestrator-sc2fsfct.js → wrapup-orchestrator-g1gnymt3.js} +5 -5
- package/package.json +1 -1
- package/src/agents/dreamer.ts +3 -2
- package/src/agents/hidden-agent-registrations.ts +2 -2
- package/src/agents/permissions.test.ts +89 -3
- package/src/agents/permissions.ts +32 -0
- package/src/agents/smart-notes-dreamer-gate.fixture.ts +27 -4
- package/src/agents/smart-notes-dreamer-gate.test.ts +5 -1
|
@@ -137,11 +137,11 @@ async function serveV2ArchiveReads2(port, openConnections) {
|
|
|
137
137
|
{ createV2RecoveryAttachments }
|
|
138
138
|
] = await Promise.all([
|
|
139
139
|
import("./sqlite-zdgm52sv.js"),
|
|
140
|
-
import("./store-reader-
|
|
141
|
-
import("./store-
|
|
140
|
+
import("./store-reader-c5fwa9qx.js"),
|
|
141
|
+
import("./store-wpx314rk.js"),
|
|
142
142
|
import("./read-session-chunk-frnwxnjg.js"),
|
|
143
|
-
import("./render-
|
|
144
|
-
import("./search-archive-
|
|
143
|
+
import("./render-2a83mgrp.js"),
|
|
144
|
+
import("./search-archive-f5dzec0e.js"),
|
|
145
145
|
import("./expand-attachments-h33jbgyz.js")
|
|
146
146
|
]);
|
|
147
147
|
const pool = new V2StoreReaderPool;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getCompartments,
|
|
10
10
|
getLastCompartmentEndMessage,
|
|
11
11
|
requestPendingMaterialization
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-y33x200y.js";
|
|
13
13
|
import {
|
|
14
14
|
inRootAsyncContext2
|
|
15
15
|
} from "./index-gzy5w8ya.js";
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
getActiveCompartmentRun,
|
|
36
36
|
markActiveCompartmentRunPublished,
|
|
37
37
|
registerActiveCompartmentRun
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-2b7g81z7.js";
|
|
39
39
|
import {
|
|
40
40
|
sendStatusNotification2
|
|
41
41
|
} from "./index-61a853ky.js";
|
|
42
42
|
import {
|
|
43
43
|
setRecompStarting2,
|
|
44
44
|
setRecompTerminal2
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-fbg61b3d.js";
|
|
46
46
|
|
|
47
47
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
48
48
|
import * as crypto from "node:crypto";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAwHvE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAwHvE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAilCpC,QAAA,MAAM,MAAM,EAAE,YAAY,GAAG;IAAE,KAAK,EAAE,OAAO,KAAK,CAAA;CAIjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,19 +20,9 @@ import {
|
|
|
20
20
|
flushLogger2
|
|
21
21
|
} from "./index-34xvre52.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
string,
|
|
25
|
-
unknown,
|
|
26
|
-
array,
|
|
27
|
-
object,
|
|
28
|
-
union,
|
|
29
|
-
tuple,
|
|
30
|
-
record,
|
|
31
|
-
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
32
|
-
DEFAULT_HISTORIAN_TIMEOUT_MS
|
|
33
|
-
} from "./index-r3f85n7y.js";
|
|
34
|
-
import {
|
|
23
|
+
DREAMER_ONLY_MEMORY_TOOL_NAMES,
|
|
35
24
|
denyTaskRoutingToCallerAgents,
|
|
25
|
+
denyCurateToolToOtherAgents,
|
|
36
26
|
buildHiddenAgentRegistrations,
|
|
37
27
|
buildZenReadAgentRegistrations,
|
|
38
28
|
buildHiddenAgentConfig,
|
|
@@ -57,7 +47,19 @@ import {
|
|
|
57
47
|
checkCompactionMarkerConsistency,
|
|
58
48
|
clearInjectionCache,
|
|
59
49
|
clearNoteNudgeTriggerOnly
|
|
60
|
-
} from "./index-
|
|
50
|
+
} from "./index-2b7g81z7.js";
|
|
51
|
+
import {
|
|
52
|
+
withContentLanguageDirective,
|
|
53
|
+
string,
|
|
54
|
+
unknown,
|
|
55
|
+
array,
|
|
56
|
+
object,
|
|
57
|
+
union,
|
|
58
|
+
tuple,
|
|
59
|
+
record,
|
|
60
|
+
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
61
|
+
DEFAULT_HISTORIAN_TIMEOUT_MS
|
|
62
|
+
} from "./index-r3f85n7y.js";
|
|
61
63
|
import"./index-sd3egckz.js";
|
|
62
64
|
import"./index-abhmtj00.js";
|
|
63
65
|
import {
|
|
@@ -136,10 +138,9 @@ import {
|
|
|
136
138
|
primaryOnlyToolIds,
|
|
137
139
|
guardSubagentTools,
|
|
138
140
|
createCtxExpandTools,
|
|
139
|
-
CTX_MEMORY_LIST_TOOL_NAME,
|
|
140
141
|
CTX_MEMORY_ACTIONS,
|
|
141
142
|
createCtxMemoryTools,
|
|
142
|
-
|
|
143
|
+
createDreamerMemoryTools,
|
|
143
144
|
withoutSmartNoteText,
|
|
144
145
|
createCtxNoteTools,
|
|
145
146
|
createCtxReduceTools,
|
|
@@ -147,7 +148,7 @@ import {
|
|
|
147
148
|
parameterDescriptionsFor,
|
|
148
149
|
MagicContextRpcServer,
|
|
149
150
|
applyHiddenSubagentTemperature
|
|
150
|
-
} from "./index-
|
|
151
|
+
} from "./index-k7yytqrd.js";
|
|
151
152
|
import {
|
|
152
153
|
resolveOpenCodeDbPath,
|
|
153
154
|
openCodeDbPathExists,
|
|
@@ -201,7 +202,7 @@ import {
|
|
|
201
202
|
dropServedRecord,
|
|
202
203
|
registerLkgPersistence,
|
|
203
204
|
dropSlot
|
|
204
|
-
} from "./index-
|
|
205
|
+
} from "./index-y33x200y.js";
|
|
205
206
|
import {
|
|
206
207
|
recordSessionProjectIdentity
|
|
207
208
|
} from "./index-fd3hkyk1.js";
|
|
@@ -313,7 +314,7 @@ import"./index-1vv1ka4a.js";
|
|
|
313
314
|
import {
|
|
314
315
|
deleteIndexedMessage
|
|
315
316
|
} from "./index-jjy4shhy.js";
|
|
316
|
-
import"./index-
|
|
317
|
+
import"./index-ke0mkz7g.js";
|
|
317
318
|
import"./index-ab86c21b.js";
|
|
318
319
|
import {
|
|
319
320
|
pushNotification2
|
|
@@ -347,13 +348,13 @@ import {
|
|
|
347
348
|
armBindingRecoverySafely,
|
|
348
349
|
collectForeignTextParts,
|
|
349
350
|
resetDegradedCacheCount2
|
|
350
|
-
} from "./index-
|
|
351
|
+
} from "./index-mx4j316q.js";
|
|
351
352
|
import {
|
|
352
353
|
scheduleClearAndReindex
|
|
353
354
|
} from "./index-63kp05sy.js";
|
|
354
355
|
import {
|
|
355
356
|
runManagedRecomp2
|
|
356
|
-
} from "./index-
|
|
357
|
+
} from "./index-fbg61b3d.js";
|
|
357
358
|
import {
|
|
358
359
|
isValidSemver,
|
|
359
360
|
compareSemverCore
|
|
@@ -361,11 +362,11 @@ import {
|
|
|
361
362
|
import"./index-fmsr7v69.js";
|
|
362
363
|
import {
|
|
363
364
|
runManagedWrapup2
|
|
364
|
-
} from "./index-
|
|
365
|
+
} from "./index-tbhbxb09.js";
|
|
365
366
|
import"./index-rakm1eay.js";
|
|
366
367
|
import"./index-zg5r2syy.js";
|
|
367
|
-
import"./index-
|
|
368
|
-
import"./index-
|
|
368
|
+
import"./index-sgsaf60r.js";
|
|
369
|
+
import"./index-k4c0majv.js";
|
|
369
370
|
import {
|
|
370
371
|
__toESM,
|
|
371
372
|
__commonJS
|
|
@@ -8221,7 +8222,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8221
8222
|
// package.json
|
|
8222
8223
|
var package_default = {
|
|
8223
8224
|
name: "@cortexkit/opencode-magic-context",
|
|
8224
|
-
version: "0.49.
|
|
8225
|
+
version: "0.49.102",
|
|
8225
8226
|
type: "module",
|
|
8226
8227
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8227
8228
|
main: "dist/index.js",
|
|
@@ -11970,7 +11971,7 @@ async function sendOpenCodeRefusal(client, sessionId, message, refusal) {
|
|
|
11970
11971
|
sessionLog2(sessionId, "refusal notice skipped: no terminal viewing the session", refusal.name);
|
|
11971
11972
|
}
|
|
11972
11973
|
if (storageBusy) {
|
|
11973
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
11974
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-fyw30790.js"));
|
|
11974
11975
|
await abortSessionFailClosed(client, sessionId);
|
|
11975
11976
|
}
|
|
11976
11977
|
}
|
|
@@ -12079,7 +12080,7 @@ function createToolRegistry(args) {
|
|
|
12079
12080
|
allowedActions: [...CTX_MEMORY_ACTIONS],
|
|
12080
12081
|
rustToolBackends
|
|
12081
12082
|
}) : {},
|
|
12082
|
-
...memoryEnabled && args.includeDreamerOnlyTools ?
|
|
12083
|
+
...memoryEnabled && args.includeDreamerOnlyTools ? createDreamerMemoryTools({
|
|
12083
12084
|
db,
|
|
12084
12085
|
resolveProjectPath,
|
|
12085
12086
|
ensureProjectRegistered: ensureProjectRegisteredFromOpenCodeDirectory,
|
|
@@ -12240,7 +12241,7 @@ async function setup(context) {
|
|
|
12240
12241
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12241
12242
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12242
12243
|
}
|
|
12243
|
-
const { registerContext } = await import("./context-
|
|
12244
|
+
const { registerContext } = await import("./context-4fjwzqqa.js");
|
|
12244
12245
|
setHarness2("opencode2");
|
|
12245
12246
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12246
12247
|
const duties = await registerContext(context);
|
|
@@ -12780,7 +12781,7 @@ var server = async (ctx) => {
|
|
|
12780
12781
|
}
|
|
12781
12782
|
config.permission = {
|
|
12782
12783
|
...config.permission ?? {},
|
|
12783
|
-
[
|
|
12784
|
+
...Object.fromEntries(DREAMER_ONLY_MEMORY_TOOL_NAMES.map((id) => [id, "deny"]))
|
|
12784
12785
|
};
|
|
12785
12786
|
const commandConfig = {
|
|
12786
12787
|
...config.command ?? {},
|
|
@@ -12826,7 +12827,7 @@ var server = async (ctx) => {
|
|
|
12826
12827
|
agentConfigRecord[reg.id] = buildHiddenAgentConfig(reg.prompt, reg.allowedTools, reg.maxSteps, reg.overrides, reg.id, reg.lockPermissions === true, reg.description);
|
|
12827
12828
|
}
|
|
12828
12829
|
const callerAgentConfig = denyTaskRoutingToCallerAgents(agentConfigRecord, internalAgentIds);
|
|
12829
|
-
config.agent = callerAgentConfig;
|
|
12830
|
+
config.agent = denyCurateToolToOtherAgents(callerAgentConfig);
|
|
12830
12831
|
} catch (error) {
|
|
12831
12832
|
const e = error;
|
|
12832
12833
|
log2(`[magic-context] config hook failed (commands/agents NOT registered; transform still active): ${e?.message ?? error}`, e?.stack ? { stackHead: e.stack.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-tool-policy.d.ts","sourceRoot":"","sources":["../../src/plugin/subagent-tool-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"subagent-tool-policy.d.ts","sourceRoot":"","sources":["../../src/plugin/subagent-tool-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,gFAAgF;AAChF,wBAAgB,kBAAkB,CAAC,QAAQ,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,EAAE,CAE7E;AAED,sFAAsF;AACtF,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,QAAQ,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,eAAe,GAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAqB,GAC9D,MAAM,GAAG,SAAS,CASpB;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EACrC,EAAE,EAAE,QAAQ,EACZ,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GACjD,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAoBhC;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAC7B,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAC5D,EAAE,EAAE,QAAQ,GACb,IAAI,CAGN;AAED,oFAAoF;AACpF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAE3E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAMvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAiB1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAiB7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiB7C;;;;;;GAMG;AACH,wBAAgB,8BAA8B,IAAI,SAAS,MAAM,EAAE,CAElE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,yBAAyB,CAAC,EAAE,mBAAmB,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/C,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/plugin/tool-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAiB1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAiB7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiB7C;;;;;;GAMG;AACH,wBAAgB,8BAA8B,IAAI,SAAS,MAAM,EAAE,CAElE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,aAAa,CAAC;IACnB,YAAY,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,yBAAyB,CAAC,EAAE,mBAAmB,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/C,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAoMjC"}
|
|
@@ -19,7 +19,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
19
19
|
await main();
|
|
20
20
|
async function main() {
|
|
21
21
|
if (input.v2ArchiveReader) {
|
|
22
|
-
const { serveV2ArchiveReads } = await import("./v2-archive-reader-
|
|
22
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-cnhvhggz.js");
|
|
23
23
|
await serveV2ArchiveReads(port, openConnections);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ serveWorkerJobs(async (input, port) => {
|
|
|
51
51
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
52
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
53
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
54
|
+
const { renderSearchArchive } = await import("./search-archive-f5dzec0e.js");
|
|
55
55
|
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-pgc9gxtn.js");
|
|
56
56
|
const archive = input.searchArchive;
|
|
57
57
|
let raw;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-fbg61b3d.js";
|
|
11
|
+
import"./index-2b7g81z7.js";
|
|
12
12
|
import"./index-qxzk5s30.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
14
|
import"./index-esym6cw4.js";
|
|
@@ -16,11 +16,11 @@ import"./index-e6s2jpr8.js";
|
|
|
16
16
|
import"./index-9emdjcb5.js";
|
|
17
17
|
import"./index-mhdavdd4.js";
|
|
18
18
|
import"./index-qjwpqvnf.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-y33x200y.js";
|
|
20
20
|
import"./index-ab86c21b.js";
|
|
21
21
|
import"./index-jjy4shhy.js";
|
|
22
22
|
import"./index-2amn2s73.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-ke0mkz7g.js";
|
|
24
24
|
import"./index-h1qh9n8b.js";
|
|
25
25
|
import"./index-fqth7850.js";
|
|
26
26
|
import"./index-61a853ky.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
renderVerboseRangeForTool2,
|
|
4
4
|
renderItemByTag2
|
|
5
5
|
} from "./index-rakm1eay.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-y33x200y.js";
|
|
7
7
|
import"./index-ab86c21b.js";
|
|
8
8
|
import"./index-jjy4shhy.js";
|
|
9
9
|
import"./index-2amn2s73.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-ke0mkz7g.js";
|
|
11
11
|
import"./index-kjhgxkdx.js";
|
|
12
12
|
import"./index-rjxg7a7m.js";
|
|
13
13
|
import"./index-1zx87sdm.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
unresolvedLiveTailRefusal2,
|
|
3
3
|
renderSearchArchive2,
|
|
4
4
|
renderSearchArchiveOffThread2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
5
|
+
} from "./index-k4c0majv.js";
|
|
6
|
+
import"./index-sgsaf60r.js";
|
|
7
7
|
import"./index-zg5r2syy.js";
|
|
8
8
|
import"./index-kjhgxkdx.js";
|
|
9
9
|
import"./index-rjxg7a7m.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
readV2RawMessagePagesForConversion2,
|
|
9
9
|
createV2RawMessageReader2,
|
|
10
10
|
createV2RawMessageProvider2
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-4dywj733.js";
|
|
12
|
+
import"./index-ke0mkz7g.js";
|
|
13
13
|
import"./index-8k9qpyjf.js";
|
|
14
14
|
import"./index-58e3y90n.js";
|
|
15
15
|
import"./index-2m3t73wk.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const CTX_MEMORY_TOOL_NAME = "ctx_memory";
|
|
2
2
|
export declare const CTX_MEMORY_LIST_TOOL_NAME = "ctx_memory_list";
|
|
3
|
+
export declare const CTX_MEMORY_CURATE_TOOL_NAME = "ctx_memory_curate";
|
|
4
|
+
export declare const DREAMER_ONLY_MEMORY_TOOL_NAMES: readonly ["ctx_memory_list", "ctx_memory_curate"];
|
|
3
5
|
export declare const CTX_MEMORY_LIST_DESCRIPTION = "Browse active memories, optionally filter by category.";
|
|
4
6
|
export declare const CTX_MEMORY_DESCRIPTION = "Durable facts about this project, shared with every agent working on it and kept for the months this work lasts.\n\nYour active memories are already in <project-memory> as `#id: fact` lines. Write one when you learn something that must not have to be found again \u2014 a project rule, an architectural fact, a hard-won constraint, a config value, a naming convention \u2014 and especially when it cost you turns to find. One standalone fact per memory, phrased to make sense on its own. A pending intention with its evidence (\"do X later, here is what we know\") is ctx_note, not memory.\n\nActions:\n- write: new memory (content + category).\n- update: rewrite one memory whose fact changed (ids: [one], content; category: the current one to keep, a new one to recategorize).\n- archive: retire wrong or obsolete memories (ids: [one or more], optional reason).\n- merge: collapse duplicates into one (ids: [two or more distinct ids of memories in the same category], content).\n- get: fetch by id (ids: 1\u201320), readable in every status.\nThe call form that works on every host sends action, content, category and ids every time: argument-dropping providers only emit required fields. For get and archive pass content=\"\" and any valid category; for write pass ids=[].\nExamples: category=\"CONFIG_VALUES\", content=\"OpenCode source is at ~/Work/OSS/opencode\" \u00B7 category=\"CONSTRAINTS\", content=\"Dashboard Tauri build needs RGBA PNGs, not grayscale\"";
|
|
5
7
|
export declare const DEFAULT_SEARCH_LIMIT = 10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,yBAAyB,oBAAoB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,2DAA2D,CAAC;AACpG,eAAO,MAAM,sBAAsB,+7CAW8I,CAAC;AAClL,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-memory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,yBAAyB,oBAAoB,CAAC;AAC3D,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,mDAGjC,CAAC;AACX,eAAO,MAAM,2BAA2B,2DAA2D,CAAC;AACpG,eAAO,MAAM,sBAAsB,+7CAW8I,CAAC;AAClL,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
|
|
@@ -3,4 +3,5 @@ import { type CtxMemoryToolDeps } from "./types";
|
|
|
3
3
|
export { CTX_MEMORY_LIGHT_DESCRIPTION } from "../light-descriptions";
|
|
4
4
|
export declare function createCtxMemoryTools(deps: CtxMemoryToolDeps): Record<string, ToolDefinition>;
|
|
5
5
|
export declare function createCtxMemoryListTools(deps: CtxMemoryToolDeps): Record<string, ToolDefinition>;
|
|
6
|
+
export declare function createDreamerMemoryTools(deps: CtxMemoryToolDeps): Record<string, ToolDefinition>;
|
|
6
7
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -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;
|
|
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;AA4DhE,OAAO,EAKH,KAAK,iBAAiB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAs9BrE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAI5F;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAIhG;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAehG"}
|
package/dist/{transform-postprocess-phase-2y0st4gk.js → transform-postprocess-phase-fyw30790.js}
RENAMED
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-mx4j316q.js";
|
|
23
23
|
import"./index-63kp05sy.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-2b7g81z7.js";
|
|
25
25
|
import"./index-qxzk5s30.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
27
|
import"./index-esym6cw4.js";
|
|
@@ -29,11 +29,11 @@ import"./index-e6s2jpr8.js";
|
|
|
29
29
|
import"./index-9emdjcb5.js";
|
|
30
30
|
import"./index-mhdavdd4.js";
|
|
31
31
|
import"./index-qjwpqvnf.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-y33x200y.js";
|
|
33
33
|
import"./index-ab86c21b.js";
|
|
34
34
|
import"./index-jjy4shhy.js";
|
|
35
35
|
import"./index-2amn2s73.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-ke0mkz7g.js";
|
|
37
37
|
import"./index-h1qh9n8b.js";
|
|
38
38
|
import"./index-fqth7850.js";
|
|
39
39
|
import"./index-61a853ky.js";
|