@cortexkit/magic-context 0.49.54 → 0.49.56
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 +16 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16132,18 +16132,8 @@ function parseModelListOutput(output) {
|
|
|
16132
16132
|
return [...models];
|
|
16133
16133
|
}
|
|
16134
16134
|
function getAvailableModels(piPath) {
|
|
16135
|
-
const
|
|
16136
|
-
|
|
16137
|
-
runPiCommand(piPath, ["models", "list"])
|
|
16138
|
-
];
|
|
16139
|
-
for (const output of outputs) {
|
|
16140
|
-
if (!output)
|
|
16141
|
-
continue;
|
|
16142
|
-
const models = parseModelListOutput(output);
|
|
16143
|
-
if (models.length > 0)
|
|
16144
|
-
return models;
|
|
16145
|
-
}
|
|
16146
|
-
return [];
|
|
16135
|
+
const output = runPiCommand(piPath, ["--list-models"]);
|
|
16136
|
+
return output ? parseModelListOutput(output) : [];
|
|
16147
16137
|
}
|
|
16148
16138
|
var PI_PACKAGE_SOURCE = "npm:@cortexkit/pi-magic-context", PROVIDER_TOKEN, MODEL_TOKEN, SIZE_TOKEN, CAPABILITY_TOKEN;
|
|
16149
16139
|
var init_pi_helpers = __esm(() => {
|
|
@@ -48327,7 +48317,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48327
48317
|
"transform: unknown provider usage; using provider-proven input for priced pass inputTokens=\x01 percentage=\x01 trusted=\x01 wireTokens=\x01 pressureTokens=\x01 grewPastSavedReading=\x01 sizedPlan=clears_reasoning",
|
|
48328
48318
|
"[magic-context] openai-compatible embedding rate limited (HTTP 429): pausing requests for \x01s (backoff); background embedding resumes after the pause and searches run lexical-only until then",
|
|
48329
48319
|
"transform: unknown provider usage; using provider-proven input for priced pass inputTokens=\x01 percentage=\x01 trusted=\x01 wireTokens=\x01 pressureTokens=\x01 grewPastSavedReading=\x01 sizedPlan=keeps_reasoning",
|
|
48330
|
-
"[magic-context] this OpenCode 2 host does not keep the parent of hidden-run sessions (asked for \x01, read back \x01); they are created as separate sessions and still removed when each run ends",
|
|
48331
48320
|
"[magic-context] storage warning: continuing migration for \x01; the Pi/OMP process-list probe could not run, which commonly means an OS sandbox denied ps. No live Pi harness was confirmed.\x020p",
|
|
48332
48321
|
"native-attachment-cache oversized_core_store session=\x01 stored_byte_charge=\x01 total_budget=\x01 over_budget_by=\x01 consequence=single_session_exceeds_native_cache_budget delta_core_preserved=true\x020s",
|
|
48333
48322
|
"compartment trigger: cheap-skip at \x01% (below proactive floor \x01%) — live-tail upper bound \x01 (persisted=\x01, untagged-memory≤\x01) < triggerBudget \x01; no size trigger possible, skipped full raw read",
|
|
@@ -48501,6 +48490,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48501
48490
|
"auto-search: decision outcome=below-threshold reason=\x01 lanes=\x01 nearMisses=\x01 threshold=\x01 pool=\x01 rows=\x01 workerStarted=\x01 peek=\x01 elapsedMs=\x01",
|
|
48502
48491
|
"[magic-context] registered historian trigger: DISABLED (configure the active harness's historian model in magic-context.jsonc)",
|
|
48503
48492
|
"historian start released after \x01 passes waiting for an exact ordinal read; a later pass starts it again once that read finishes",
|
|
48493
|
+
"tag identity repairs without a stored guard: \x01 duplicated identities served unmerged this pass (guard store full or unreadable)",
|
|
48504
48494
|
'Pi subagent "\x01" is dropping unavailable built-in "\x01". The agent has no remaining built-in file-reading capability for this task.',
|
|
48505
48495
|
"[magic-context] [ERROR] compaction-marker: candidate worker unavailable \x01: file missing; marker unchanged, advancement deferred\x020p",
|
|
48506
48496
|
"[magic-context] [ERROR] compaction-marker: candidate worker unavailable \x01: file missing; marker unchanged, advancement deferred",
|
|
@@ -48564,6 +48554,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48564
48554
|
"auto-search: decision outcome=\x01 reason=exited lanes=\x01 nearMisses=\x01 threshold=\x01 pool=\x01 rows=\x01 workerStarted=\x01 peek=\x01 elapsedMs=\x01",
|
|
48565
48555
|
"event message.updated: provider=\x01 model=\x01 hasUsageTokens=\x01 tokens.input=\x01 cache.read=\x01 cache.write=\x01 message.id=\x01 session.id=\x01\x020m,1m,6i,7s",
|
|
48566
48556
|
"injecting legacy compartments without visible-prefix trimming because latest stored compartment has no end_message_id \x01",
|
|
48557
|
+
"Pi identity fold guards unreadable: tag identity duplicates are served unmerged and the stored row is left untouched: \x01",
|
|
48567
48558
|
"injecting legacy compartments without visible-prefix trimming because latest stored compartment has no end_message_id",
|
|
48568
48559
|
"prefix trim: boundary \x01; pass=priced; no in-pass trim applied (Hidden completion accepts text-only calibrated prompts)",
|
|
48569
48560
|
'Pi subagent "\x01" is dropping unavailable built-in "\x01". This source-inspection task cannot read local files without read.',
|
|
@@ -48616,6 +48607,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48616
48607
|
"Historian previously failed \x01 time(s), so Magic Context is retrying history comparting immediately after restart.",
|
|
48617
48608
|
"[shadow] skipped duplicate commit batch for \x01; the same content was submitted within the one-hour provider budget",
|
|
48618
48609
|
"[shadow] skipped duplicate memory batch for \x01; the same content was submitted within the one-hour provider budget",
|
|
48610
|
+
"tag identity adoption reached the pass budget: session=\x01 \x01 duplicated identities stay unmerged until the next pass\x020s",
|
|
48619
48611
|
"channel2 ceiling nudge sent but claim confirmation was not ours (state=\x01); leaving existing lease state unchanged",
|
|
48620
48612
|
"ERROR: compaction marker disabled: incompatible host binding harness=pi arity=\x01 getEntry=\x01; leaving marker pending",
|
|
48621
48613
|
"signed thinking hold: held=false reason=above_cap heavyStepsBack=\x01 heavyStepTokens=\x01 usage=\x01% cap=\x01% (sized reading)",
|
|
@@ -48723,6 +48715,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48723
48715
|
"[magic-context] buildAllowOnlyPermission: allow-list UNDEFINED for \x01 — registering deny-all (defensive) \x01",
|
|
48724
48716
|
"historian no-op: protectedTailStart=\x01 eligibleEnd=\x01 <= offset=\x01 — nothing to compact; boundaryDiagnostics=\x01",
|
|
48725
48717
|
"historian unanchored promotion skipped: reason=\x01 facts=\x01 user_observations=\x01 primers=\x01 events_publishable=\x01/\x01",
|
|
48718
|
+
"tag identity fold guards could not be written; duplicates that need one are served unmerged this pass: \x01",
|
|
48726
48719
|
"latest-turn thinking recovery: rejection not bound, no pass in this process built the rejected request",
|
|
48727
48720
|
'recomp partial code=\x01 reason="remaining messages \x01-\x01 were too few or all noise to form a historian chunk"',
|
|
48728
48721
|
"[magic-context] buildAllowOnlyPermission: allow-list UNDEFINED for \x01 — registering deny-all (defensive)",
|
|
@@ -48790,7 +48783,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48790
48783
|
"[dreamer] map-memories: committed=\x01 mapped=\x01 independent=\x01 batches=\x01 remaining=\x01 complete=\x01 stop_reason=\x01",
|
|
48791
48784
|
"[magic-context] WARNING: \x01 configured \x01, but OpenCode 2 does not know that model; provider suggests \x01\x021m",
|
|
48792
48785
|
"served check: content changed with the same shape first_index=\x01 seen_by=\x01 kind=pass permitted=\x01 host=\x01",
|
|
48793
|
-
"tag identity decision tag-identity-repair-once could not be written; serving duplicates unmerged: \x01",
|
|
48794
48786
|
"historian deferred: exact ordinals not ready (bounded read refused); a later pass starts it again",
|
|
48795
48787
|
"[dreamer] pruned schedule rows of \x01 idle identity (no memories, no recent sessions, no task input)",
|
|
48796
48788
|
"trailing blank heal: demoted message \x01 from keep to strip because its source has no trailing blank",
|
|
@@ -48816,7 +48808,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
48816
48808
|
"transform: model switch \x01 -> \x01/\x01 reset — percentage=\x01% tokens=\x01 — clearing stale model-specific state\x020s,1m,2m",
|
|
48817
48809
|
"[dreamer] map-memories: splitting batch [\x01] into \x01 after timeout; retrying \x01 uncommitted mapping(s)",
|
|
48818
48810
|
"transform: recovery was cleared during a pass that is not sent; armed again (\x01) for the next turn",
|
|
48819
|
-
"[magic-context] hidden child \x01 could not be removed; it goes when its parent session is deleted: \x01",
|
|
48820
48811
|
"[magic-context] WARNING: \x01 configured \x01, but Oh My Pi does not know that model; provider suggests \x01\x021m",
|
|
48821
48812
|
"[magic-context] WARNING: \x01 configured \x01, but OpenCode does not know that model; provider suggests \x01\x021m",
|
|
48822
48813
|
"historian: native compaction marker waiting; no resolvable firstKeptEntryId at or after ordinal \x01",
|
|
@@ -49263,6 +49254,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49263
49254
|
"heuristics WILL RUN — reason=ride=\x01 (pendingOps=\x01, scheduler=\x01), context=\x01%, turn=\x01",
|
|
49264
49255
|
"historian no-op: chunk empty after filtering (messageCount=\x01, textLen=\x01) range=\x01-\x01",
|
|
49265
49256
|
"historian publish stage: stage=validate status=failed elapsed=\x01ms compartments=\x01",
|
|
49257
|
+
"tag identity fold guard could not be written; serving the duplicate unmerged: \x01",
|
|
49266
49258
|
"transform: \x01; finalEstimate=\x01 estimateTrusted=\x01 contextLimit=\x01 emergencyReclaimed=\x01\x023m",
|
|
49267
49259
|
"transform: \x01; finalEstimate=\x01 estimateTrusted=\x01 contextLimit=\x01 emergencyReclaimed=\x01",
|
|
49268
49260
|
"[magic-context] event message.updated: no assistant info extracted from event",
|
|
@@ -49374,7 +49366,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49374
49366
|
"pending ops WILL APPLY — reason=ride=\x01 (scheduler=\x01), pendingOps=\x01, context=\x01%",
|
|
49375
49367
|
"proactive thinking strip: busting pass froze reasoning of \x01 assistant(s) [\x01]",
|
|
49376
49368
|
"[dreamer] compress-cues: compressed=\x01 skipped=\x01 chunks=\x01 remaining=\x01 complete=\x01",
|
|
49377
|
-
"[magic-context] hidden child \x01 created role=\x01 parent=unknown keep_subagents=\x01\x020s",
|
|
49378
49369
|
"[magic-context] message-index backfill failed (will resume next startup): \x01",
|
|
49379
49370
|
"[magic-context] slow write transaction: site=pi_fallback_adoption held=\x01ms \x01",
|
|
49380
49371
|
"[magic-context] slow write transaction: site=pi_historian_publish held=\x01ms \x01",
|
|
@@ -49407,7 +49398,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49407
49398
|
"[magic-context] slow write transaction: site=workspace_epoch_bump held=\x01ms",
|
|
49408
49399
|
"compartment agent: retrying historian with \x01 (session-model last resort \x01/\x01)\x020m",
|
|
49409
49400
|
"pending ops WILL APPLY — reason=ride=\x01 (scheduler=\x01), pendingOps=\x01 context=\x01%",
|
|
49410
|
-
"[magic-context] could not read back hidden child \x01 to confirm its parent: \x01\x020s",
|
|
49411
49401
|
"[magic-context] dream timer registration failed (continuing without it): \x01",
|
|
49412
49402
|
"[magic-context] host stall profiler: could not start inspector profiler: \x01",
|
|
49413
49403
|
"[magic-context] slow write transaction: site=ctx_memory_mutation held=\x01ms \x01",
|
|
@@ -49481,7 +49471,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49481
49471
|
"[dreamer] map-memories: accepted partial manifest after token budget: \x01/\x01",
|
|
49482
49472
|
"[dreamer] smart notes: compiled/evaluated pending=\x01 surfaced=\x01 remaining=\x01",
|
|
49483
49473
|
"[dreamer] verify: accepted partial manifest after investigation stop: \x01/\x01",
|
|
49484
|
-
"[magic-context] hidden child \x01 created role=\x01 parent=none keep_subagents=\x01",
|
|
49485
49474
|
"[magic-context] slow write transaction: site=historian-publish held=\x01ms \x01",
|
|
49486
49475
|
"[magic-context] slow write transaction: site=smart_note_commit held=\x01ms \x01",
|
|
49487
49476
|
"heuristics WILL RUN — reason=deferred_materialization, context=\x01%, turn=\x01",
|
|
@@ -49619,7 +49608,6 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49619
49608
|
"event message.updated: totalInputTokens=\x01 contextLimit=\x01 percentage=\x01%",
|
|
49620
49609
|
"models-dev-cache: output reserve clamped for \x01/\x01: \x01 → \x01 (usable floor \x01)\x020m,1m",
|
|
49621
49610
|
"[magic-context] compaction-off: fail-closed inert, passing through \x01",
|
|
49622
|
-
"[magic-context] hidden child \x01 created role=\x01 parent=\x01 keep_subagents=\x01\x020s",
|
|
49623
49611
|
"[magic-context] host stall profiler: packet exceeds credit limits: \x01",
|
|
49624
49612
|
"[magic-context] slow write transaction: site=clear-session held=\x01ms \x01",
|
|
49625
49613
|
"compaction-marker drain: stale-skip (ok) for ordinal \x01 endMessageId=\x01\x021i",
|
|
@@ -49895,6 +49883,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49895
49883
|
"note-nudge: suppressing — last delivered \x01s ago (cooldown \x01m)",
|
|
49896
49884
|
"event message.updated: cleared historian failure state at \x01%",
|
|
49897
49885
|
"[magic-context] conflict-warning: failed to read messages: \x01",
|
|
49886
|
+
"[magic-context] hidden child \x01 created role=\x01 keep_subagents=\x01",
|
|
49898
49887
|
"[magic-context] host stall profiler: reader did not start: \x01",
|
|
49899
49888
|
"[magic-context] host stall profiler: watchdog tick failed: \x01",
|
|
49900
49889
|
"[magic-context] proactively embedded \x01 memories for project \x01",
|
|
@@ -49993,6 +49982,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
49993
49982
|
"transform: injected m[0]/m[1] (rematerialized=\x01, reason=\x01)",
|
|
49994
49983
|
"[dreamer] OpenCode 2 parent session lookup failed for \x01: \x01\x020p",
|
|
49995
49984
|
"[dreamer] smart note #\x01: read-only confirmation failed — \x01",
|
|
49985
|
+
"[magic-context] hidden child \x01 deadline update deferred: \x01",
|
|
49996
49986
|
"[magic-context] host stall profiler: disconnect failed: \x01",
|
|
49997
49987
|
"[magic-context] Migrated Magic Context \x01 config from \x01 to \x01\x021p,2p",
|
|
49998
49988
|
"[magic-context] registered embedding config for project \x01",
|
|
@@ -50028,6 +50018,8 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
50028
50018
|
"[magic-context] conflict-warning: DELETE error (url=\x01): \x01\x020s",
|
|
50029
50019
|
"[magic-context] conflict-warning: DELETE error (url=\x01): \x01",
|
|
50030
50020
|
"[magic-context] debug-only RPC server failed to start: \x01",
|
|
50021
|
+
"[magic-context] hidden child \x01 record cleanup deferred: \x01",
|
|
50022
|
+
"[magic-context] hidden child \x01 record failed; removed=\x01: \x01",
|
|
50031
50023
|
"[magic-context] maintenance tick (interval) — projects=\x01",
|
|
50032
50024
|
"[magic-context] storage permission tightening failures=\x01",
|
|
50033
50025
|
"[magic-context] v2 latest-thinking recovery arm failed \x01",
|
|
@@ -50149,6 +50141,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
50149
50141
|
"[auto-update-checker] Update available (latest): \x01 → \x01",
|
|
50150
50142
|
"[dreamer] failed to open OpenCode DB at \x01 (source=\x01): \x01\x020p",
|
|
50151
50143
|
"[dreamer] storage fatal; skipping maintenance tick: \x01",
|
|
50144
|
+
"[magic-context] hidden child \x01 could not be removed: \x01",
|
|
50152
50145
|
"[magic-context] host stall profiler: not-text-user: \x01",
|
|
50153
50146
|
"[magic-context] host stall profiler: unknown frame: \x01",
|
|
50154
50147
|
"[magic-context] notification transport unavailable: \x01",
|
|
@@ -50573,6 +50566,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
50573
50566
|
"[dreamer] verify batch provider failure: \x01 \x01",
|
|
50574
50567
|
"[git-commits] readGitCommits failed for \x01: \x01",
|
|
50575
50568
|
"[git-commits] sweep failed for \x01 after \x01ms: \x01",
|
|
50569
|
+
"[magic-context] hidden-child sweep failed \x01",
|
|
50576
50570
|
"[magic-context] OpenCode 2 keep_subagents=\x01",
|
|
50577
50571
|
"[magic-context] Synapse lane unavailable: \x01",
|
|
50578
50572
|
"[migrations] upstream migration lane now: \x01",
|
|
@@ -50587,6 +50581,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
50587
50581
|
"rust host runner launch failed (ignored): \x01",
|
|
50588
50582
|
"transform failed loading persisted usage: \x01",
|
|
50589
50583
|
"[auto-search] background backfill failed:",
|
|
50584
|
+
"[magic-context] hidden-child sweep failed",
|
|
50590
50585
|
"cleared cached m[0] (tag_identity_repair)",
|
|
50591
50586
|
"DISCARDED CONTEXT RESULT: LKG publication",
|
|
50592
50587
|
"event message.updated persistence failed:",
|
|
@@ -51015,6 +51010,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
51015
51010
|
"ctx-status failed code=\x01 \x01",
|
|
51016
51011
|
"ctx-wrapup failed code=\x01 \x01",
|
|
51017
51012
|
"historian notify failed \x01",
|
|
51013
|
+
"pi_identity_fold_guards:\x01\x020s",
|
|
51018
51014
|
"the request now goes to \x01\x020m",
|
|
51019
51015
|
"cachedBoundaryEarlyTrim",
|
|
51020
51016
|
"default-pressure-parity",
|
|
@@ -51212,6 +51208,7 @@ var init_issue_log_templates_generated = __esm(() => {
|
|
|
51212
51208
|
"retrospective",
|
|
51213
51209
|
"tag.assignTag",
|
|
51214
51210
|
"thinking_hold",
|
|
51211
|
+
"hidden_child:\x01",
|
|
51215
51212
|
"poll failed: \x01",
|
|
51216
51213
|
"tag_revision:\x01\x020s",
|
|
51217
51214
|
"turn refused \x01",
|