@cortexkit/magic-context 0.49.53 → 0.49.54

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.
Files changed (2) hide show
  1. package/dist/index.js +228 -225
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34613,12 +34613,235 @@ var init_ctx_reduce_nudge = __esm(() => {
34613
34613
  init_tail_hygiene_output_count();
34614
34614
  });
34615
34615
 
34616
+ // ../plugin/src/hooks/magic-context/final-wire-completeness.ts
34617
+ var init_final_wire_completeness = __esm(() => {
34618
+ init_logger();
34619
+ });
34620
+
34621
+ // ../plugin/src/features/magic-context/merged-reasoning-decisions.ts
34622
+ var decodedDecisions, MAX_DECODED_DECISION_BYTES;
34623
+ var init_merged_reasoning_decisions = __esm(() => {
34624
+ decodedDecisions = new Map;
34625
+ MAX_DECODED_DECISION_BYTES = 32 * 1024 * 1024;
34626
+ });
34627
+ // ../plugin/src/features/magic-context/session-decision-calibration.ts
34628
+ var init_session_decision_calibration = __esm(() => {
34629
+ init_decision_calibration();
34630
+ init_harness_provider_map();
34631
+ });
34632
+
34633
+ // ../plugin/src/features/magic-context/protection-window.ts
34634
+ var init_protection_window = __esm(async () => {
34635
+ init_session_decision_calibration();
34636
+ await init_storage_tags();
34637
+ });
34638
+
34639
+ // ../plugin/src/features/magic-context/storage-meta-shared.ts
34640
+ var BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, sessionMetaExistsStatements;
34641
+ var init_storage_meta_shared = __esm(async () => {
34642
+ init_harness_provider_map();
34643
+ await init_sqlite();
34644
+ BOOLEAN_META_KEYS = new Set(["isSubagent", "compartmentInProgress", "cacheAlertSent"]);
34645
+ NULL_BIND_META_KEYS = new Set([
34646
+ "cachedM0Bytes",
34647
+ "cachedM0MuralDataUrl",
34648
+ "cachedM0MuralHash",
34649
+ "cachedM1Bytes",
34650
+ "cachedM0ProjectMemoryEpoch",
34651
+ "cachedM0WorkspaceFingerprint",
34652
+ "cachedM0ProjectUserProfileVersion",
34653
+ "cachedM0MaxCompartmentSeq",
34654
+ "cachedM0MaxMemoryId",
34655
+ "cachedM0MaxMutationId",
34656
+ "cachedM0MaxMemoryMutationId",
34657
+ "cachedM0ProjectDocsHash",
34658
+ "cachedM0MaterializedAt",
34659
+ "cachedM0SessionFactsVersion",
34660
+ "cachedM0UpgradeState",
34661
+ "cachedM0ProjectIdentity",
34662
+ "lastObservedModelKey",
34663
+ "upgradeRemindedAt",
34664
+ "upgradeReminderLastSentAt",
34665
+ "piStableIdScheme"
34666
+ ]);
34667
+ sessionMetaExistsStatements = new WeakMap;
34668
+ });
34669
+
34670
+ // ../plugin/src/features/magic-context/storage-replay-document.ts
34671
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
34672
+ var MISSING_REPLAY_DOCUMENT_COLUMN, replaySnapshots, decisionTablePresent, trailingBlankReadCache, TRAILING_BLANK_CACHE_MAX_CHARS, DECISION_CONFLICT;
34673
+ var init_storage_replay_document = __esm(async () => {
34674
+ init_logger();
34675
+ await init_storage_meta_shared();
34676
+ MISSING_REPLAY_DOCUMENT_COLUMN = Symbol("missing replay document column");
34677
+ replaySnapshots = new AsyncLocalStorage2;
34678
+ decisionTablePresent = new WeakMap;
34679
+ trailingBlankReadCache = new WeakMap;
34680
+ TRAILING_BLANK_CACHE_MAX_CHARS = 4 * 1024 * 1024;
34681
+ DECISION_CONFLICT = Symbol("replay decision changed concurrently");
34682
+ });
34683
+
34684
+ // ../plugin/src/features/magic-context/storage-meta-persisted.ts
34685
+ var emergencyRecoveryArmedSessions, emergencyRecoveryArmedAtBySession, providerOverflowReconfirmedSessions, providerOverflowKnownLimitSessions, AUTO_SEARCH_NO_HINT_REASONS, DRAIN_WINDOW_MS, WRAPUP_IN_PROGRESS_TTL_MS, COMPACTION_MODE_RECORD_VALUES, EMERGENCY_DRAIN_MAX_LATCH_MS, pendingAutoSearchRetirements, bindingRecoveriesAwaitingClear, COMPACTION_MARKER_PENDING_BUDGET_MS, preSnapshotSessions, warnedProtectedTokenTierOverrides;
34686
+ var init_storage_meta_persisted = __esm(async () => {
34687
+ init_magic_context();
34688
+ init_harness_provider_map();
34689
+ init_logger();
34690
+ init_write_transaction_timing();
34691
+ init_merged_reasoning_decisions();
34692
+ await __promiseAll([
34693
+ init_protection_window(),
34694
+ init_storage_meta_shared(),
34695
+ init_storage_replay_document()
34696
+ ]);
34697
+ emergencyRecoveryArmedSessions = new Set;
34698
+ emergencyRecoveryArmedAtBySession = new Map;
34699
+ providerOverflowReconfirmedSessions = new Set;
34700
+ providerOverflowKnownLimitSessions = new Set;
34701
+ AUTO_SEARCH_NO_HINT_REASONS = new Set([
34702
+ "below-threshold",
34703
+ "timeout",
34704
+ "empty",
34705
+ "error",
34706
+ "stacked",
34707
+ "too-short"
34708
+ ]);
34709
+ DRAIN_WINDOW_MS = 10 * 60 * 1000;
34710
+ WRAPUP_IN_PROGRESS_TTL_MS = 5 * 60 * 1000;
34711
+ COMPACTION_MODE_RECORD_VALUES = new Set([
34712
+ "on",
34713
+ "off",
34714
+ "on_notice_pending",
34715
+ "off_notice_pending",
34716
+ "off_cleanup_pending"
34717
+ ]);
34718
+ EMERGENCY_DRAIN_MAX_LATCH_MS = 30 * 60 * 1000;
34719
+ pendingAutoSearchRetirements = new WeakMap;
34720
+ bindingRecoveriesAwaitingClear = new Map;
34721
+ COMPACTION_MARKER_PENDING_BUDGET_MS = 5 * 60000;
34722
+ preSnapshotSessions = new Map;
34723
+ warnedProtectedTokenTierOverrides = new WeakSet;
34724
+ });
34725
+
34726
+ // ../plugin/src/features/magic-context/storage-reasoning-removal.ts
34727
+ var init_storage_reasoning_removal = __esm(async () => {
34728
+ await init_storage_replay_document();
34729
+ });
34730
+
34731
+ // ../plugin/src/features/magic-context/overflow-detection.ts
34732
+ var PREFIX_BOUND_THINKING_MODELS, PREFIX_BOUND_THINKING_PATTERN;
34733
+ var init_overflow_detection = __esm(() => {
34734
+ PREFIX_BOUND_THINKING_MODELS = [
34735
+ ["fable", 5, 1],
34736
+ ["fable", 5, 2],
34737
+ ["mythos", 5, 1],
34738
+ ["mythos", 5, 2],
34739
+ ["opus", 5, 5],
34740
+ ["sonnet", 5, 5],
34741
+ ["haiku", 5, 5]
34742
+ ];
34743
+ PREFIX_BOUND_THINKING_PATTERN = new RegExp(`(?:^|[-_.:/])(?:${PREFIX_BOUND_THINKING_MODELS.map(([family, major, minor]) => `${family}[-_.]?${major}[-_.]${minor}`).join("|")})(?:$|[-_.:/@])`, "i");
34744
+ });
34745
+
34746
+ // ../plugin/src/hooks/magic-context/sentinel.ts
34747
+ var REMOVED_REASONING_MARK, NEUTRALIZED_ORIGINALS;
34748
+ var init_sentinel = __esm(() => {
34749
+ init_overflow_detection();
34750
+ init_harness_provider_map();
34751
+ REMOVED_REASONING_MARK = Symbol.for("magic-context.removed-reasoning");
34752
+ NEUTRALIZED_ORIGINALS = new WeakMap;
34753
+ });
34754
+
34755
+ // ../plugin/src/hooks/magic-context/active-anthropic-turn.ts
34756
+ var init_active_anthropic_turn = __esm(() => {
34757
+ init_sentinel();
34758
+ });
34759
+
34760
+ // ../plugin/src/shared/marker-only-text.ts
34761
+ var init_marker_only_text = () => {};
34762
+ // ../plugin/src/hooks/magic-context/served-shape-repair.ts
34763
+ var sources;
34764
+ var init_served_shape_repair = __esm(async () => {
34765
+ init_tag_content_primitives();
34766
+ await init_storage_replay_document();
34767
+ sources = new WeakMap;
34768
+ });
34769
+
34770
+ // ../plugin/src/hooks/magic-context/strip-content.ts
34771
+ var METADATA_PART_TYPES, CLEARED_REASONING_TYPES, REASONING_IGNORED_PART_TYPES, REASONING_PART_TYPES, emptyImageParts;
34772
+ var init_strip_content = __esm(async () => {
34773
+ init_merged_reasoning_decisions();
34774
+ init_marker_only_text();
34775
+ init_sentinel();
34776
+ init_tag_content_primitives();
34777
+ init_marker_only_text();
34778
+ await init_served_shape_repair();
34779
+ METADATA_PART_TYPES = new Set([
34780
+ "step-start",
34781
+ "step-finish",
34782
+ "snapshot",
34783
+ "patch",
34784
+ "agent",
34785
+ "retry",
34786
+ "subtask",
34787
+ "compaction"
34788
+ ]);
34789
+ CLEARED_REASONING_TYPES = new Set(["thinking", "reasoning"]);
34790
+ REASONING_IGNORED_PART_TYPES = new Set([
34791
+ "step-start",
34792
+ "step-finish",
34793
+ "snapshot",
34794
+ "patch",
34795
+ "agent",
34796
+ "retry",
34797
+ "subtask",
34798
+ "compaction"
34799
+ ]);
34800
+ REASONING_PART_TYPES = new Set(["reasoning", "thinking", "redacted_thinking"]);
34801
+ emptyImageParts = new WeakMap;
34802
+ });
34803
+
34804
+ // ../plugin/src/hooks/magic-context/reasoning-budget.ts
34805
+ var init_reasoning_budget = __esm(async () => {
34806
+ init_merged_reasoning_decisions();
34807
+ init_prompt_surface();
34808
+ init_active_anthropic_turn();
34809
+ init_read_session_formatting();
34810
+ init_sentinel();
34811
+ await __promiseAll([
34812
+ init_storage_meta_persisted(),
34813
+ init_storage_reasoning_removal(),
34814
+ init_storage_tags(),
34815
+ init_strip_content()
34816
+ ]);
34817
+ });
34818
+
34819
+ // ../plugin/src/hooks/magic-context/opaque-thinking.ts
34820
+ var init_opaque_thinking = __esm(async () => {
34821
+ await init_reasoning_budget();
34822
+ });
34823
+
34824
+ // ../plugin/src/hooks/magic-context/final-wire-token-estimate.ts
34825
+ var wireTextTokens;
34826
+ var init_final_wire_token_estimate = __esm(async () => {
34827
+ init_tool_definition_tokens();
34828
+ init_decision_calibration();
34829
+ init_final_wire_completeness();
34830
+ init_image_token_estimate();
34831
+ init_read_session_formatting();
34832
+ init_tokenizer_calibration();
34833
+ init_logger();
34834
+ await init_opaque_thinking();
34835
+ wireTextTokens = createTokenCountMemo(1e5, 128 * 1024 * 1024);
34836
+ });
34837
+
34616
34838
  // ../plugin/src/hooks/magic-context/emergency-drop.ts
34617
34839
  var T1_TOOLS, T2_TOOLS;
34618
- var init_emergency_drop = __esm(() => {
34840
+ var init_emergency_drop = __esm(async () => {
34619
34841
  init_reclaim_protection();
34620
34842
  init_ctx_reduce_nudge();
34621
34843
  init_read_session_formatting();
34844
+ await init_final_wire_token_estimate();
34622
34845
  T1_TOOLS = new Set(["read", "todowrite", "task", "aft_outline", "aft_zoom"]);
34623
34846
  T2_TOOLS = new Set(["edit", "write", "apply_patch", "grep", "glob", "aft_search"]);
34624
34847
  });
@@ -34667,12 +34890,14 @@ function pickNearestPriorOwner(candidates, currentMessageId, times) {
34667
34890
  }
34668
34891
  var insertTagStatements, updateTagStatusStatements, updateTagDropModeStatements, updateTagMessageIdStatements, getTagNumbersByMessageIdStatements, deleteTagsByMessageIdStatements, getMaxTagNumberBySessionStatements, getTagNumberByMessageIdStatements, getAssignableTagNumberByMessageIdStatements, hasPiFallbackMessageTagStatements, updateTagByteSizeStatements, updateTagInputByteSizeStatements, recentTagOwnerStatements, RECLAIM_HINT_EXCLUDED_TOOLS, getActiveToolTagsForAgeReclaimStatements, scopedActiveTokenTotalStatements, updateTagTokenCountStatements, updateTagInputTokenCountStatements, tagOwnerSummaries, TAG_OWNER_COLUMNS = "id, type, message_id, tool_owner_message_id, tag_number, reasoning_token_count", TAG_OWNER_APPENDED_WITH_SHAPE_SQL, droppedTagStatements, inertWhitespaceStatements, inertWhitespaceByNumberStatements, foldStatements, getOwnerScopedToolTagNumbersStatements, getMinMessageTagNumberForRawIdStatements, getActiveTagsBySessionStatements, getNullOwnerToolTagsBySessionStatements, getDroppedTagsBySessionStatements, getMaxDroppedTagNumberStatements, newestToolTagNumberStatements, droppedNumberStatements, tagByIdStatements, getToolTagNumberByOwnerStatements, getNullOwnerToolTagStatements, adoptNullOwnerToolTagStatements, getToolOwnerByTagIdStatements, deleteToolTagsByOwnerStatements;
34669
34892
  var init_storage_tags = __esm(async () => {
34670
- init_emergency_drop();
34671
34893
  init_tag_owner_id();
34672
34894
  init_migration_v95_perf_indexes();
34673
34895
  init_storage_ops();
34674
34896
  init_storage_tag_identity_revision();
34675
- await init_sqlite();
34897
+ await __promiseAll([
34898
+ init_emergency_drop(),
34899
+ init_sqlite()
34900
+ ]);
34676
34901
  insertTagStatements = new WeakMap;
34677
34902
  updateTagStatusStatements = new WeakMap;
34678
34903
  updateTagDropModeStatements = new WeakMap;
@@ -35217,228 +35442,6 @@ var init_edit_marker = __esm(() => {
35217
35442
  DIFF_KEYS = new Set(["oldString", "newString", "content", "old_string", "new_string"]);
35218
35443
  });
35219
35444
 
35220
- // ../plugin/src/hooks/magic-context/final-wire-completeness.ts
35221
- var init_final_wire_completeness = __esm(() => {
35222
- init_logger();
35223
- });
35224
-
35225
- // ../plugin/src/features/magic-context/merged-reasoning-decisions.ts
35226
- var decodedDecisions, MAX_DECODED_DECISION_BYTES;
35227
- var init_merged_reasoning_decisions = __esm(() => {
35228
- decodedDecisions = new Map;
35229
- MAX_DECODED_DECISION_BYTES = 32 * 1024 * 1024;
35230
- });
35231
- // ../plugin/src/features/magic-context/session-decision-calibration.ts
35232
- var init_session_decision_calibration = __esm(() => {
35233
- init_decision_calibration();
35234
- init_harness_provider_map();
35235
- });
35236
-
35237
- // ../plugin/src/features/magic-context/protection-window.ts
35238
- var init_protection_window = __esm(async () => {
35239
- init_session_decision_calibration();
35240
- await init_storage_tags();
35241
- });
35242
-
35243
- // ../plugin/src/features/magic-context/storage-meta-shared.ts
35244
- var BOOLEAN_META_KEYS, NULL_BIND_META_KEYS, sessionMetaExistsStatements;
35245
- var init_storage_meta_shared = __esm(async () => {
35246
- init_harness_provider_map();
35247
- await init_sqlite();
35248
- BOOLEAN_META_KEYS = new Set(["isSubagent", "compartmentInProgress", "cacheAlertSent"]);
35249
- NULL_BIND_META_KEYS = new Set([
35250
- "cachedM0Bytes",
35251
- "cachedM0MuralDataUrl",
35252
- "cachedM0MuralHash",
35253
- "cachedM1Bytes",
35254
- "cachedM0ProjectMemoryEpoch",
35255
- "cachedM0WorkspaceFingerprint",
35256
- "cachedM0ProjectUserProfileVersion",
35257
- "cachedM0MaxCompartmentSeq",
35258
- "cachedM0MaxMemoryId",
35259
- "cachedM0MaxMutationId",
35260
- "cachedM0MaxMemoryMutationId",
35261
- "cachedM0ProjectDocsHash",
35262
- "cachedM0MaterializedAt",
35263
- "cachedM0SessionFactsVersion",
35264
- "cachedM0UpgradeState",
35265
- "cachedM0ProjectIdentity",
35266
- "lastObservedModelKey",
35267
- "upgradeRemindedAt",
35268
- "upgradeReminderLastSentAt",
35269
- "piStableIdScheme"
35270
- ]);
35271
- sessionMetaExistsStatements = new WeakMap;
35272
- });
35273
-
35274
- // ../plugin/src/features/magic-context/storage-replay-document.ts
35275
- import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
35276
- var MISSING_REPLAY_DOCUMENT_COLUMN, replaySnapshots, decisionTablePresent, trailingBlankReadCache, TRAILING_BLANK_CACHE_MAX_CHARS, DECISION_CONFLICT;
35277
- var init_storage_replay_document = __esm(async () => {
35278
- init_logger();
35279
- await init_storage_meta_shared();
35280
- MISSING_REPLAY_DOCUMENT_COLUMN = Symbol("missing replay document column");
35281
- replaySnapshots = new AsyncLocalStorage2;
35282
- decisionTablePresent = new WeakMap;
35283
- trailingBlankReadCache = new WeakMap;
35284
- TRAILING_BLANK_CACHE_MAX_CHARS = 4 * 1024 * 1024;
35285
- DECISION_CONFLICT = Symbol("replay decision changed concurrently");
35286
- });
35287
-
35288
- // ../plugin/src/features/magic-context/storage-meta-persisted.ts
35289
- var emergencyRecoveryArmedSessions, emergencyRecoveryArmedAtBySession, providerOverflowReconfirmedSessions, providerOverflowKnownLimitSessions, AUTO_SEARCH_NO_HINT_REASONS, DRAIN_WINDOW_MS, WRAPUP_IN_PROGRESS_TTL_MS, COMPACTION_MODE_RECORD_VALUES, EMERGENCY_DRAIN_MAX_LATCH_MS, pendingAutoSearchRetirements, bindingRecoveriesAwaitingClear, COMPACTION_MARKER_PENDING_BUDGET_MS, preSnapshotSessions, warnedProtectedTokenTierOverrides;
35290
- var init_storage_meta_persisted = __esm(async () => {
35291
- init_magic_context();
35292
- init_harness_provider_map();
35293
- init_logger();
35294
- init_write_transaction_timing();
35295
- init_merged_reasoning_decisions();
35296
- await __promiseAll([
35297
- init_protection_window(),
35298
- init_storage_meta_shared(),
35299
- init_storage_replay_document()
35300
- ]);
35301
- emergencyRecoveryArmedSessions = new Set;
35302
- emergencyRecoveryArmedAtBySession = new Map;
35303
- providerOverflowReconfirmedSessions = new Set;
35304
- providerOverflowKnownLimitSessions = new Set;
35305
- AUTO_SEARCH_NO_HINT_REASONS = new Set([
35306
- "below-threshold",
35307
- "timeout",
35308
- "empty",
35309
- "error",
35310
- "stacked",
35311
- "too-short"
35312
- ]);
35313
- DRAIN_WINDOW_MS = 10 * 60 * 1000;
35314
- WRAPUP_IN_PROGRESS_TTL_MS = 5 * 60 * 1000;
35315
- COMPACTION_MODE_RECORD_VALUES = new Set([
35316
- "on",
35317
- "off",
35318
- "on_notice_pending",
35319
- "off_notice_pending",
35320
- "off_cleanup_pending"
35321
- ]);
35322
- EMERGENCY_DRAIN_MAX_LATCH_MS = 30 * 60 * 1000;
35323
- pendingAutoSearchRetirements = new WeakMap;
35324
- bindingRecoveriesAwaitingClear = new Map;
35325
- COMPACTION_MARKER_PENDING_BUDGET_MS = 5 * 60000;
35326
- preSnapshotSessions = new Map;
35327
- warnedProtectedTokenTierOverrides = new WeakSet;
35328
- });
35329
-
35330
- // ../plugin/src/features/magic-context/storage-reasoning-removal.ts
35331
- var init_storage_reasoning_removal = __esm(async () => {
35332
- await init_storage_replay_document();
35333
- });
35334
-
35335
- // ../plugin/src/features/magic-context/overflow-detection.ts
35336
- var PREFIX_BOUND_THINKING_MODELS, PREFIX_BOUND_THINKING_PATTERN;
35337
- var init_overflow_detection = __esm(() => {
35338
- PREFIX_BOUND_THINKING_MODELS = [
35339
- ["fable", 5, 1],
35340
- ["fable", 5, 2],
35341
- ["mythos", 5, 1],
35342
- ["mythos", 5, 2],
35343
- ["opus", 5, 5],
35344
- ["sonnet", 5, 5],
35345
- ["haiku", 5, 5]
35346
- ];
35347
- PREFIX_BOUND_THINKING_PATTERN = new RegExp(`(?:^|[-_.:/])(?:${PREFIX_BOUND_THINKING_MODELS.map(([family, major, minor]) => `${family}[-_.]?${major}[-_.]${minor}`).join("|")})(?:$|[-_.:/@])`, "i");
35348
- });
35349
-
35350
- // ../plugin/src/hooks/magic-context/sentinel.ts
35351
- var REMOVED_REASONING_MARK, NEUTRALIZED_ORIGINALS;
35352
- var init_sentinel = __esm(() => {
35353
- init_overflow_detection();
35354
- init_harness_provider_map();
35355
- REMOVED_REASONING_MARK = Symbol.for("magic-context.removed-reasoning");
35356
- NEUTRALIZED_ORIGINALS = new WeakMap;
35357
- });
35358
-
35359
- // ../plugin/src/hooks/magic-context/active-anthropic-turn.ts
35360
- var init_active_anthropic_turn = __esm(() => {
35361
- init_sentinel();
35362
- });
35363
-
35364
- // ../plugin/src/shared/marker-only-text.ts
35365
- var init_marker_only_text = () => {};
35366
- // ../plugin/src/hooks/magic-context/served-shape-repair.ts
35367
- var sources;
35368
- var init_served_shape_repair = __esm(async () => {
35369
- init_tag_content_primitives();
35370
- await init_storage_replay_document();
35371
- sources = new WeakMap;
35372
- });
35373
-
35374
- // ../plugin/src/hooks/magic-context/strip-content.ts
35375
- var METADATA_PART_TYPES, CLEARED_REASONING_TYPES, REASONING_IGNORED_PART_TYPES, REASONING_PART_TYPES, emptyImageParts;
35376
- var init_strip_content = __esm(async () => {
35377
- init_merged_reasoning_decisions();
35378
- init_marker_only_text();
35379
- init_sentinel();
35380
- init_tag_content_primitives();
35381
- init_marker_only_text();
35382
- await init_served_shape_repair();
35383
- METADATA_PART_TYPES = new Set([
35384
- "step-start",
35385
- "step-finish",
35386
- "snapshot",
35387
- "patch",
35388
- "agent",
35389
- "retry",
35390
- "subtask",
35391
- "compaction"
35392
- ]);
35393
- CLEARED_REASONING_TYPES = new Set(["thinking", "reasoning"]);
35394
- REASONING_IGNORED_PART_TYPES = new Set([
35395
- "step-start",
35396
- "step-finish",
35397
- "snapshot",
35398
- "patch",
35399
- "agent",
35400
- "retry",
35401
- "subtask",
35402
- "compaction"
35403
- ]);
35404
- REASONING_PART_TYPES = new Set(["reasoning", "thinking", "redacted_thinking"]);
35405
- emptyImageParts = new WeakMap;
35406
- });
35407
-
35408
- // ../plugin/src/hooks/magic-context/reasoning-budget.ts
35409
- var init_reasoning_budget = __esm(async () => {
35410
- init_merged_reasoning_decisions();
35411
- init_prompt_surface();
35412
- init_active_anthropic_turn();
35413
- init_read_session_formatting();
35414
- init_sentinel();
35415
- await __promiseAll([
35416
- init_storage_meta_persisted(),
35417
- init_storage_reasoning_removal(),
35418
- init_storage_tags(),
35419
- init_strip_content()
35420
- ]);
35421
- });
35422
-
35423
- // ../plugin/src/hooks/magic-context/opaque-thinking.ts
35424
- var init_opaque_thinking = __esm(async () => {
35425
- await init_reasoning_budget();
35426
- });
35427
-
35428
- // ../plugin/src/hooks/magic-context/final-wire-token-estimate.ts
35429
- var wireTextTokens;
35430
- var init_final_wire_token_estimate = __esm(async () => {
35431
- init_tool_definition_tokens();
35432
- init_decision_calibration();
35433
- init_final_wire_completeness();
35434
- init_image_token_estimate();
35435
- init_read_session_formatting();
35436
- init_tokenizer_calibration();
35437
- init_logger();
35438
- await init_opaque_thinking();
35439
- wireTextTokens = createTokenCountMemo(1e5, 128 * 1024 * 1024);
35440
- });
35441
-
35442
35445
  // ../plugin/src/hooks/magic-context/tool-input-size.ts
35443
35446
  var encoder2;
35444
35447
  var init_tool_input_size = __esm(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/magic-context",
3
- "version": "0.49.53",
3
+ "version": "0.49.54",
4
4
  "description": "Unified CLI for Magic Context — setup, doctor, and migration across OpenCode, Pi, and OMP",
5
5
  "keywords": [
6
6
  "opencode",