@cortexkit/magic-context 0.31.1 → 0.31.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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -165587,6 +165587,10 @@ var init_magic_context = __esm(() => {
|
|
|
165587
165587
|
}).describe("Embedding provider configuration"),
|
|
165588
165588
|
temporal_awareness: exports_external.boolean().default(true).describe('Inject wall-clock gap markers (<!-- +Xm -->) between user messages where > 5 min elapsed since the previous message, and add start/end date attributes on compartments. Gives the agent a sense of session pacing and "how long ago" across multi-day sessions. Graduated from experimental.temporal_awareness; default: true (set false to opt out).'),
|
|
165589
165589
|
keep_subagents: exports_external.boolean().default(false).describe("Debug: keep the child sessions Magic Context spawns for its own subagents (historian, dreamer, sidekick, memory-migration) instead of deleting them on success. Useful for short-term inspection/data collection — their full transcript (prompt, tool calls, token usage, output) stays in the host session store. Kept sessions accumulate until manually cleared; leave false for normal use. Requires a restart to take effect."),
|
|
165590
|
+
todowrite: exports_external.object({
|
|
165591
|
+
enabled: exports_external.boolean().default(true).describe("Pi only: register Magic Context's todowrite task-list tool. Disable if you use your own todo extension. OpenCode ships its own built-in todowrite; this setting has no effect there."),
|
|
165592
|
+
overlay: exports_external.boolean().default(true).describe("Pi only: show the persistent todo overlay above the editor while tasks are active.")
|
|
165593
|
+
}).default({ enabled: true, overlay: true }).describe("Pi-only todowrite tool and overlay controls. Pi registers tools and widgets at extension boot, so changing this after /cd requires /reload or restart."),
|
|
165590
165594
|
smart_drops: exports_external.boolean().default(false).describe("Content-aware reclaim of provably-superseded tool output, layered on the existing execute-pass auto-drop. When on: superseded todowrite (keep newest 1), spent ctx_reduce (keep newest 5), and zero-value meta (bash_status, bash_kill, ctx_note read/dismiss) outputs are dropped; older edits to a file are compressed to a filePath-preserving marker while the newest edit per file stays full. Only acts on passes already busting the cache, so it never originates a cache bust. Honors the protected-tag reserve. Experimental: opt-in, default off until cache stability is proven; when off the wire is byte-identical to the positional-only reclaim. Requires a restart."),
|
|
165591
165595
|
caveman_text_compression: exports_external.object({
|
|
165592
165596
|
enabled: exports_external.boolean().default(false).describe("Apply deterministic caveman-style text compression to old conversation text. Active for primary sessions when enabled; never for subagents. Compresses user/assistant text in oldest-first tiers: ultra (oldest 20%), full, lite, untouched (newest 40%)."),
|
|
@@ -166777,7 +166781,8 @@ function collectHistorianDumps(recentSessions) {
|
|
|
166777
166781
|
};
|
|
166778
166782
|
}
|
|
166779
166783
|
async function collectRecentSessions() {
|
|
166780
|
-
const
|
|
166784
|
+
const dataHome = process.env.XDG_DATA_HOME || join16(process.env.HOME || homedir11(), ".local", "share");
|
|
166785
|
+
const opencodeDbPath = join16(dataHome, "opencode", "opencode.db");
|
|
166781
166786
|
if (!existsSync20(opencodeDbPath))
|
|
166782
166787
|
return [];
|
|
166783
166788
|
if (typeof globalThis.Bun === "undefined") {
|
|
@@ -168977,7 +168982,7 @@ function reverseSlugToDirectory(slug) {
|
|
|
168977
168982
|
return `/${inner.replace(/-/g, "/")}`;
|
|
168978
168983
|
}
|
|
168979
168984
|
function collectPiRecentSessions() {
|
|
168980
|
-
const sessionsRoot = join20(homedir14(), ".pi", "agent", "sessions");
|
|
168985
|
+
const sessionsRoot = join20(process.env.HOME || homedir14(), ".pi", "agent", "sessions");
|
|
168981
168986
|
if (!existsSync25(sessionsRoot))
|
|
168982
168987
|
return [];
|
|
168983
168988
|
try {
|