@cortexkit/opencode-magic-context 0.49.59 → 0.49.60

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 (28) hide show
  1. package/dist/{context-aexc6pbs.js → context-45fde2p4.js} +5 -5
  2. package/dist/{derive-budgets-heypxqdz.js → derive-budgets-def8genf.js} +1 -1
  3. package/dist/{index-gth4t4ar.js → index-3wq9btxt.js} +1 -1
  4. package/dist/{index-a09sw9fx.js → index-4yjn3er4.js} +1 -1
  5. package/dist/{index-5ps3axh5.js → index-ngwmx6nt.js} +7 -2
  6. package/dist/{index-j4aeh6tx.js → index-qdver0af.js} +1 -1
  7. package/dist/{index-s3t4vk21.js → index-s2qsd3w9.js} +2 -2
  8. package/dist/{index-575njz7q.js → index-zz4k3f65.js} +7 -7
  9. package/dist/index.js +9 -9
  10. package/dist/{recomp-orchestrator-zqn9zwxn.js → recomp-orchestrator-7s8nyzhy.js} +3 -3
  11. package/dist/shared/models-dev-cache.d.ts.map +1 -1
  12. package/dist/shared/window-geometry.d.ts.map +1 -1
  13. package/dist/{transform-postprocess-phase-gxb3sp91.js → transform-postprocess-phase-fxp1atm1.js} +3 -3
  14. package/dist/v2/{context-wszt0gbq.js → context-77g3jhf2.js} +7 -7
  15. package/dist/v2/{derive-budgets-gw030jzt.js → derive-budgets-z93fdnp7.js} +2 -2
  16. package/dist/v2/{recomp-orchestrator-76rv3b89.js → recomp-orchestrator-zc1wdv9q.js} +4 -4
  17. package/dist/v2/{server-kc5kb9ya.js → server-2adwe0be.js} +7 -2
  18. package/dist/v2/{server-9emfsa60.js → server-8hcxmt1w.js} +3 -3
  19. package/dist/v2/{server-v1s0cb4v.js → server-9sf3qp02.js} +1 -1
  20. package/dist/v2/{server-ypaat9rj.js → server-aewxmvnf.js} +1 -1
  21. package/dist/v2/server.js +4 -4
  22. package/dist/v2/{wrapup-orchestrator-ejcx02g2.js → wrapup-orchestrator-fyyb28jf.js} +4 -4
  23. package/dist/{wrapup-orchestrator-e7mczz6e.js → wrapup-orchestrator-560v99mk.js} +4 -4
  24. package/package.json +1 -1
  25. package/src/shared/models-dev-cache.test.ts +11 -0
  26. package/src/shared/models-dev-cache.ts +7 -1
  27. package/src/shared/window-geometry.test.ts +20 -0
  28. package/src/shared/window-geometry.ts +3 -0
@@ -38,7 +38,7 @@ import {
38
38
  rebaseSessionCoordinatesAsync,
39
39
  resolveOpenCodeProtectedTailBoundary,
40
40
  getActiveCompartmentRun
41
- } from "./index-a09sw9fx.js";
41
+ } from "./index-4yjn3er4.js";
42
42
  import"./index-sd3egckz.js";
43
43
  import {
44
44
  getHarness2
@@ -59,7 +59,7 @@ import {
59
59
  deriveHistorianChunkTokens2,
60
60
  resolveKnownHistorianContextLimit2,
61
61
  resolveHistorianContextLimit2
62
- } from "./index-5ps3axh5.js";
62
+ } from "./index-ngwmx6nt.js";
63
63
  import"./index-6nqz8hsz.js";
64
64
  import {
65
65
  CANONICAL_DREAM_TASKS,
@@ -129,7 +129,7 @@ import {
129
129
  applyJsonSchemaParameterDescriptions,
130
130
  MagicContextRpcServer,
131
131
  subagentTemperature
132
- } from "./index-575njz7q.js";
132
+ } from "./index-zz4k3f65.js";
133
133
  import {
134
134
  resolveHistorianModel2
135
135
  } from "./index-5kym00ag.js";
@@ -292,7 +292,7 @@ import {
292
292
  servedHeadChanged,
293
293
  noteHostCheckpointCommit,
294
294
  isSyntheticHeadMessage2
295
- } from "./index-j4aeh6tx.js";
295
+ } from "./index-qdver0af.js";
296
296
  import"./index-832w615x.js";
297
297
  import"./index-qt1qqasc.js";
298
298
  import {
@@ -314,7 +314,7 @@ import {
314
314
  import"./index-e6ncz7a6.js";
315
315
  import"./index-1sq1krqw.js";
316
316
  import"./index-3yyfftqq.js";
317
- import"./index-gth4t4ar.js";
317
+ import"./index-3wq9btxt.js";
318
318
  import"./index-98qy103c.js";
319
319
  import {
320
320
  detectConflicts
@@ -5,7 +5,7 @@ import {
5
5
  resolveHistorianProducerLimits2,
6
6
  resolveHistorianContextLimit2,
7
7
  producerSourceLocalBudget2
8
- } from "./index-5ps3axh5.js";
8
+ } from "./index-ngwmx6nt.js";
9
9
  import"./index-1zx87sdm.js";
10
10
  import"./index-ywrz4wy2.js";
11
11
  import"./index-pavzsdc6.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-ywxvdwmj.js";
11
11
  import {
12
12
  executeContextRecomp
13
- } from "./index-a09sw9fx.js";
13
+ } from "./index-4yjn3er4.js";
14
14
  import {
15
15
  renderUserFacingFailure,
16
16
  userFacingFailureCode
@@ -70,7 +70,7 @@ import {
70
70
  deriveTriggerBudget2,
71
71
  resolveHistorianProducerLimits2,
72
72
  producerSourceLocalBudget2
73
- } from "./index-5ps3axh5.js";
73
+ } from "./index-ngwmx6nt.js";
74
74
  import {
75
75
  withContentLanguageDirective,
76
76
  buildPrimaryLanguageDirective,
@@ -34,7 +34,8 @@ var PROVIDER_GEOMETRY = {
34
34
  anthropic: "shared_truncating",
35
35
  xai: "shared_truncating",
36
36
  google: "separate",
37
- "google-antigravity": "separate"
37
+ "google-antigravity": "separate",
38
+ "antigravity-cli": "separate"
38
39
  };
39
40
  var geometryClampLogSeen = new Set;
40
41
  function isFinitePositive(value) {
@@ -221,7 +222,11 @@ var MAX_SANE_LIMIT = 3000000;
221
222
  function isSaneLimit(limit) {
222
223
  return typeof limit === "number" && limit >= MIN_SANE_LIMIT && limit <= MAX_SANE_LIMIT;
223
224
  }
224
- var SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set(["google", "google-antigravity"]);
225
+ var SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set([
226
+ "google",
227
+ "google-antigravity",
228
+ "antigravity-cli"
229
+ ]);
225
230
  var MIN_PLAUSIBLE_CONTEXT_LIMIT2 = 1024;
226
231
  var OUTPUT_RESERVE_CAP_RATIO2 = 0.25;
227
232
  var outputReserveConfig;
@@ -281,7 +281,7 @@ import {
281
281
  peekNoteNudgeText,
282
282
  markNoteNudgeDelivered,
283
283
  getActiveCompartmentRun
284
- } from "./index-a09sw9fx.js";
284
+ } from "./index-4yjn3er4.js";
285
285
  import {
286
286
  userFacingFailureCode
287
287
  } from "./index-n6aye6ny.js";
@@ -34,14 +34,14 @@ import {
34
34
  getActiveCompartmentRun,
35
35
  markActiveCompartmentRunPublished,
36
36
  registerActiveCompartmentRun
37
- } from "./index-a09sw9fx.js";
37
+ } from "./index-4yjn3er4.js";
38
38
  import {
39
39
  sendStatusNotification2
40
40
  } from "./index-1sq1krqw.js";
41
41
  import {
42
42
  setRecompStarting2,
43
43
  setRecompTerminal2
44
- } from "./index-gth4t4ar.js";
44
+ } from "./index-3wq9btxt.js";
45
45
 
46
46
  // src/hooks/magic-context/wrapup-orchestrator.ts
47
47
  import * as crypto from "node:crypto";
@@ -196,7 +196,7 @@ import {
196
196
  snapRangeToCompartments,
197
197
  getActiveCompartmentRun,
198
198
  startCompartmentAgent
199
- } from "./index-a09sw9fx.js";
199
+ } from "./index-4yjn3er4.js";
200
200
  import {
201
201
  hasTrustedAbsoluteWall,
202
202
  applyProvenInputFloor,
@@ -208,7 +208,7 @@ import {
208
208
  deriveTriggerBudget2,
209
209
  resolveKnownHistorianContextLimit2,
210
210
  resolveHistorianProducerLimits2
211
- } from "./index-5ps3axh5.js";
211
+ } from "./index-ngwmx6nt.js";
212
212
  import {
213
213
  resolveModelCalibration,
214
214
  calibrateBuckets,
@@ -722,7 +722,7 @@ import {
722
722
  import {
723
723
  setRecompStarting2,
724
724
  setRecompTerminal2
725
- } from "./index-gth4t4ar.js";
725
+ } from "./index-3wq9btxt.js";
726
726
  import {
727
727
  makeToolCompositeKey,
728
728
  searchMessageHistoryOffThread,
@@ -807,7 +807,7 @@ import {
807
807
  abortSessionFailClosed2,
808
808
  evaluateEmergencyFailClosed2,
809
809
  runPostTransformPhase2
810
- } from "./index-j4aeh6tx.js";
810
+ } from "./index-qdver0af.js";
811
811
  import {
812
812
  ANNOUNCEMENT_VERSION2,
813
813
  ANNOUNCEMENT_FEATURES2,
@@ -16397,7 +16397,7 @@ function registerRpcHandlers(rpcServer, args) {
16397
16397
  return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
16398
16398
  });
16399
16399
  const buildManagedCtx = async (db) => {
16400
- const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-heypxqdz.js"));
16400
+ const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-def8genf.js"));
16401
16401
  const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
16402
16402
  const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-t6bpyka7.js"));
16403
16403
  const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
@@ -16449,7 +16449,7 @@ function registerRpcHandlers(rpcServer, args) {
16449
16449
  const db = readDatabase();
16450
16450
  if (!db)
16451
16451
  return { ok: false, error: "db unavailable" };
16452
- const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-zqn9zwxn.js"));
16452
+ const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-7s8nyzhy.js"));
16453
16453
  const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
16454
16454
  log2(`[rpc] recomp requested for session ${sessionId}`);
16455
16455
  if (!args.client && !args.hiddenCompletionExecutor) {
@@ -16534,7 +16534,7 @@ function registerRpcHandlers(rpcServer, args) {
16534
16534
  const db = readDatabase();
16535
16535
  if (!db)
16536
16536
  return { ok: false, error: "db unavailable" };
16537
- const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-e7mczz6e.js"));
16537
+ const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-560v99mk.js"));
16538
16538
  const model = liveSessionState.liveModelBySession.get(sessionId);
16539
16539
  const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
16540
16540
  const ctx = {
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import {
58
58
  checkCompactionMarkerConsistency,
59
59
  clearInjectionCache,
60
60
  clearNoteNudgeTriggerOnly
61
- } from "./index-a09sw9fx.js";
61
+ } from "./index-4yjn3er4.js";
62
62
  import"./index-sd3egckz.js";
63
63
  import {
64
64
  hasTrustedAbsoluteWall,
@@ -68,7 +68,7 @@ import {
68
68
  deriveHistorianChunkTokens2,
69
69
  resolveKnownHistorianContextLimit2,
70
70
  resolveHistorianContextLimit2
71
- } from "./index-5ps3axh5.js";
71
+ } from "./index-ngwmx6nt.js";
72
72
  import {
73
73
  buildDreamTaskRuntimeConfigs2,
74
74
  userMemoryCollectionEnabled2,
@@ -143,7 +143,7 @@ import {
143
143
  parameterDescriptionsFor,
144
144
  MagicContextRpcServer,
145
145
  applyHiddenSubagentTemperature
146
- } from "./index-575njz7q.js";
146
+ } from "./index-zz4k3f65.js";
147
147
  import {
148
148
  resolveOpenCodeDbPath,
149
149
  openCodeDbPathExists,
@@ -317,13 +317,13 @@ import {
317
317
  armBindingRecoverySafely,
318
318
  collectForeignTextParts,
319
319
  resetDegradedCacheCount2
320
- } from "./index-j4aeh6tx.js";
320
+ } from "./index-qdver0af.js";
321
321
  import {
322
322
  scheduleClearAndReindex
323
323
  } from "./index-3hk445am.js";
324
324
  import {
325
325
  runManagedRecomp2
326
- } from "./index-gth4t4ar.js";
326
+ } from "./index-3wq9btxt.js";
327
327
  import {
328
328
  isValidSemver,
329
329
  compareSemverCore
@@ -331,7 +331,7 @@ import {
331
331
  import"./index-fmsr7v69.js";
332
332
  import {
333
333
  runManagedWrapup2
334
- } from "./index-s3t4vk21.js";
334
+ } from "./index-s2qsd3w9.js";
335
335
  import"./index-tq20edcs.js";
336
336
  import"./index-52x68mj4.js";
337
337
  import"./index-s2jdky2x.js";
@@ -8203,7 +8203,7 @@ var require_src2 = __commonJS(function(exports, module) {
8203
8203
  // package.json
8204
8204
  var package_default = {
8205
8205
  name: "@cortexkit/opencode-magic-context",
8206
- version: "0.49.59",
8206
+ version: "0.49.60",
8207
8207
  type: "module",
8208
8208
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
8209
8209
  main: "dist/index.js",
@@ -12081,7 +12081,7 @@ async function setup(context) {
12081
12081
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
12082
12082
  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.`);
12083
12083
  }
12084
- const { registerContext } = await import("./context-aexc6pbs.js");
12084
+ const { registerContext } = await import("./context-45fde2p4.js");
12085
12085
  setHarness2("opencode2");
12086
12086
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
12087
12087
  const duties = await registerContext(context);
@@ -12554,7 +12554,7 @@ var server = async (ctx) => {
12554
12554
  rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
12555
12555
  onStorageBusyRefusal: async (sessionId, message) => {
12556
12556
  const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-ykvt5k2s.js"));
12557
- const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-gxb3sp91.js"));
12557
+ const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-fxp1atm1.js"));
12558
12558
  await sendStatusNotification(ctx.client, sessionId, message, {
12559
12559
  toastDurationMs: 15000
12560
12560
  });
@@ -7,8 +7,8 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./index-gth4t4ar.js";
11
- import"./index-a09sw9fx.js";
10
+ } from "./index-3wq9btxt.js";
11
+ import"./index-4yjn3er4.js";
12
12
  import"./index-832w615x.js";
13
13
  import"./index-sd3egckz.js";
14
14
  import"./index-n6aye6ny.js";
@@ -21,7 +21,7 @@ import"./index-tebcx987.js";
21
21
  import"./index-ev2rrjfc.js";
22
22
  import"./index-2amn2s73.js";
23
23
  import"./index-6athgjba.js";
24
- import"./index-5ps3axh5.js";
24
+ import"./index-ngwmx6nt.js";
25
25
  import"./index-1sq1krqw.js";
26
26
  import"./index-qt1qqasc.js";
27
27
  import"./index-d0feqcs5.js";
@@ -1 +1 @@
1
- {"version":3,"file":"models-dev-cache.d.ts","sourceRoot":"","sources":["../../src/shared/models-dev-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEpF,UAAU,kBAAkB;IACxB,MAAM,EAAE;QACJ,SAAS,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE;gBAAE,SAAS,CAAC,EAAE,OAAO,CAAA;aAAE,CAAA;SAAE,CAAC,CAAC;KAChE,CAAC;CACL;AASD,eAAO,MAAM,cAAc,QAAS,CAAC;AACrC,eAAO,MAAM,cAAc,UAAY,CAAC;AAExC;;kFAEkF;AAClF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,IAAI,MAAM,CAEtE;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE3F,MAAM,WAAW,UAAU;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAsID,sEAAsE;AACtE,wBAAgB,oBAAoB,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,mBAAmB,GAAG,SAA+B,GAC9D,MAAM,GAAG,SAAS,CASpB;AAQD,sFAAsF;AACtF,wBAAgB,sBAAsB,CAAC,MAA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UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,UAAU,GAAG,SAAS,EACpC,OAAO,GAAE,2BAAgC,GAC1C,oBAAoB,GAAG,SAAS,CAiKlC;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,OAAO,CAE9E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,QAAQ,EAAE,oBAAoB,EAC9B,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACtC,sBAAsB,CAkDxB;AAED,wBAAgB,0BAA0B,CACtC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,oBAAoB,GAC7B,MAAM,CAcR;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,SAAS,GAAG,MAAM,CAInF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQzD"}
@@ -19,9 +19,9 @@ import {
19
19
  finalizeMessageRepresentation2,
20
20
  runPostTransformPhase2,
21
21
  checkM0MutationDriftAndSignal2
22
- } from "./index-j4aeh6tx.js";
22
+ } from "./index-qdver0af.js";
23
23
  import"./index-3hk445am.js";
24
- import"./index-a09sw9fx.js";
24
+ import"./index-4yjn3er4.js";
25
25
  import"./index-832w615x.js";
26
26
  import"./index-sd3egckz.js";
27
27
  import"./index-n6aye6ny.js";
@@ -34,7 +34,7 @@ import"./index-tebcx987.js";
34
34
  import"./index-ev2rrjfc.js";
35
35
  import"./index-2amn2s73.js";
36
36
  import"./index-6athgjba.js";
37
- import"./index-5ps3axh5.js";
37
+ import"./index-ngwmx6nt.js";
38
38
  import"./index-1sq1krqw.js";
39
39
  import"./index-qt1qqasc.js";
40
40
  import"./index-d0feqcs5.js";
@@ -7,7 +7,7 @@ import {
7
7
  resolveLegacyConfigSources,
8
8
  getProtectedTokensTierOverrides,
9
9
  loadPluginConfigDetailed
10
- } from "./server-v1s0cb4v.js";
10
+ } from "./server-9sf3qp02.js";
11
11
  import {
12
12
  getHarness2,
13
13
  harnessOwnsOpenCodeStore2
@@ -37,7 +37,7 @@ import {
37
37
  getSdkContextLimit,
38
38
  getSdkOutputLimit,
39
39
  getModelsDevCacheState
40
- } from "./server-kc5kb9ya.js";
40
+ } from "./server-2adwe0be.js";
41
41
  import {
42
42
  string,
43
43
  number,
@@ -220,7 +220,7 @@ import {
220
220
  startCompartmentAgent,
221
221
  setRecompStarting2,
222
222
  setRecompTerminal2
223
- } from "./server-9emfsa60.js";
223
+ } from "./server-8hcxmt1w.js";
224
224
  import {
225
225
  resolveHistorianModel2
226
226
  } from "./server-5kym00ag.js";
@@ -865,7 +865,7 @@ import {
865
865
  resolveKnownHistorianContextLimit2,
866
866
  resolveHistorianProducerLimits2,
867
867
  resolveHistorianContextLimit2
868
- } from "./server-ypaat9rj.js";
868
+ } from "./server-aewxmvnf.js";
869
869
  import"./server-at0v0z4t.js";
870
870
  import {
871
871
  isEmbeddingHostBusy2
@@ -26021,7 +26021,7 @@ function registerRpcHandlers(rpcServer, args) {
26021
26021
  return { count: buildCompartmentCount(db, sessionId, moduleStatus) };
26022
26022
  });
26023
26023
  const buildManagedCtx = async (db) => {
26024
- const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-gw030jzt.js"));
26024
+ const { deriveHistorianChunkTokens, resolveHistorianContextLimit } = await importPluginModule(() => import("./derive-budgets-z93fdnp7.js"));
26025
26025
  const { resolveHistorianModel } = await importPluginModule(() => import("./model-resolution-280gmqvd.js"));
26026
26026
  const { userObservationCollectionEnabled, userObservationsRequested } = await importPluginModule(() => import("./task-config-7md27rx8.js"));
26027
26027
  const DEFAULT_HISTORIAN_TIMEOUT_MS = 10 * 60 * 1000;
@@ -26073,7 +26073,7 @@ function registerRpcHandlers(rpcServer, args) {
26073
26073
  const db = readDatabase();
26074
26074
  if (!db)
26075
26075
  return { ok: false, error: "db unavailable" };
26076
- const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-76rv3b89.js"));
26076
+ const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-zc1wdv9q.js"));
26077
26077
  const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-8g4r97bp.js"));
26078
26078
  log2(`[rpc] recomp requested for session ${sessionId}`);
26079
26079
  if (!args.client && !args.hiddenCompletionExecutor) {
@@ -26158,7 +26158,7 @@ function registerRpcHandlers(rpcServer, args) {
26158
26158
  const db = readDatabase();
26159
26159
  if (!db)
26160
26160
  return { ok: false, error: "db unavailable" };
26161
- const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-ejcx02g2.js"));
26161
+ const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-fyyb28jf.js"));
26162
26162
  const model = liveSessionState.liveModelBySession.get(sessionId);
26163
26163
  const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
26164
26164
  const ctx = {
@@ -5,9 +5,9 @@ import {
5
5
  resolveHistorianProducerLimits2,
6
6
  resolveHistorianContextLimit2,
7
7
  producerSourceLocalBudget2
8
- } from "./server-ypaat9rj.js";
8
+ } from "./server-aewxmvnf.js";
9
9
  import"./server-1zx87sdm.js";
10
- import"./server-kc5kb9ya.js";
10
+ import"./server-2adwe0be.js";
11
11
  import"./server-j8376q08.js";
12
12
  import"./server-pavzsdc6.js";
13
13
  import"./server-z4p0ry94.js";
@@ -7,7 +7,7 @@ import {
7
7
  setRecompTerminal2,
8
8
  buildRecompDeps2,
9
9
  runManagedRecomp2
10
- } from "./server-9emfsa60.js";
10
+ } from "./server-8hcxmt1w.js";
11
11
  import"./server-at0v0z4t.js";
12
12
  import"./server-d07yxksx.js";
13
13
  import"./server-d9aayyxk.js";
@@ -19,7 +19,7 @@ import"./server-rbtx6q5v.js";
19
19
  import"./server-svx20ra2.js";
20
20
  import"./server-2amn2s73.js";
21
21
  import"./server-rthnpmbp.js";
22
- import"./server-ypaat9rj.js";
22
+ import"./server-aewxmvnf.js";
23
23
  import"./server-qjff96a6.js";
24
24
  import"./server-qt1qqasc.js";
25
25
  import"./server-8ycacd59.js";
@@ -27,8 +27,8 @@ import"./server-88n85n60.js";
27
27
  import"./server-1zx87sdm.js";
28
28
  import"./server-3ap5dmhc.js";
29
29
  import"./server-npdey91q.js";
30
- import"./server-v1s0cb4v.js";
31
- import"./server-kc5kb9ya.js";
30
+ import"./server-9sf3qp02.js";
31
+ import"./server-2adwe0be.js";
32
32
  import"./server-x8a7jmkh.js";
33
33
  import"./server-d706s5xn.js";
34
34
  import"./server-rz6g5xne.js";
@@ -29,7 +29,8 @@ var PROVIDER_GEOMETRY = {
29
29
  anthropic: "shared_truncating",
30
30
  xai: "shared_truncating",
31
31
  google: "separate",
32
- "google-antigravity": "separate"
32
+ "google-antigravity": "separate",
33
+ "antigravity-cli": "separate"
33
34
  };
34
35
  var geometryClampLogSeen = new Set;
35
36
  function isFinitePositive(value) {
@@ -203,7 +204,11 @@ var MAX_SANE_LIMIT = 3000000;
203
204
  function isSaneLimit(limit) {
204
205
  return typeof limit === "number" && limit >= MIN_SANE_LIMIT && limit <= MAX_SANE_LIMIT;
205
206
  }
206
- var SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set(["google", "google-antigravity"]);
207
+ var SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set([
208
+ "google",
209
+ "google-antigravity",
210
+ "antigravity-cli"
211
+ ]);
207
212
  var MIN_PLAUSIBLE_CONTEXT_LIMIT2 = 1024;
208
213
  var OUTPUT_RESERVE_CAP_RATIO2 = 0.25;
209
214
  var outputReserveConfig;
@@ -19,13 +19,13 @@ import {
19
19
  cortexKitProjectConfigBasePath,
20
20
  resolveLegacyConfigSourcesForHarness,
21
21
  loadPluginConfigDetailed
22
- } from "./server-v1s0cb4v.js";
22
+ } from "./server-9sf3qp02.js";
23
23
  import {
24
24
  catalogOutputReserve,
25
25
  getSdkContextLimit,
26
26
  modelSupportsVision,
27
27
  getSdkOutputLimit
28
- } from "./server-kc5kb9ya.js";
28
+ } from "./server-2adwe0be.js";
29
29
  import {
30
30
  withContentLanguageDirective,
31
31
  buildPrimaryLanguageDirective,
@@ -292,7 +292,7 @@ import {
292
292
  deriveTriggerBudget2,
293
293
  resolveHistorianProducerLimits2,
294
294
  producerSourceLocalBudget2
295
- } from "./server-ypaat9rj.js";
295
+ } from "./server-aewxmvnf.js";
296
296
  import {
297
297
  sendStatusNotification2
298
298
  } from "./server-qjff96a6.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./server-j8376q08.js";
4
4
  import {
5
5
  setOutputReserveConfig
6
- } from "./server-kc5kb9ya.js";
6
+ } from "./server-2adwe0be.js";
7
7
  import {
8
8
  DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
9
9
  PROTECTED_TOKENS_MIN,
@@ -5,7 +5,7 @@ import {
5
5
  getSdkWindowGeometry,
6
6
  getSdkContextLimit,
7
7
  getSdkInputLimit
8
- } from "./server-kc5kb9ya.js";
8
+ } from "./server-2adwe0be.js";
9
9
  import {
10
10
  localBudget,
11
11
  calibrationForModelKey
package/dist/v2/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadPluginConfigDetailed
3
- } from "./server-v1s0cb4v.js";
3
+ } from "./server-9sf3qp02.js";
4
4
  import {
5
5
  setHarness2
6
6
  } from "./server-pavzsdc6.js";
@@ -13,7 +13,7 @@ import {
13
13
  flushLogger2
14
14
  } from "./server-j8376q08.js";
15
15
  import"./server-z4p0ry94.js";
16
- import"./server-kc5kb9ya.js";
16
+ import"./server-2adwe0be.js";
17
17
  import {
18
18
  string,
19
19
  unknown,
@@ -7875,7 +7875,7 @@ var require_src2 = __commonJS(function(exports, module) {
7875
7875
  // package.json
7876
7876
  var package_default = {
7877
7877
  name: "@cortexkit/opencode-magic-context",
7878
- version: "0.49.59",
7878
+ version: "0.49.60",
7879
7879
  type: "module",
7880
7880
  description: "OpenCode plugin for Magic Context — cross-session memory and context management",
7881
7881
  main: "dist/index.js",
@@ -8196,7 +8196,7 @@ async function setup(context) {
8196
8196
  if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
8197
8197
  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.`);
8198
8198
  }
8199
- const { registerContext } = await import("./context-wszt0gbq.js");
8199
+ const { registerContext } = await import("./context-77g3jhf2.js");
8200
8200
  setHarness2("opencode2");
8201
8201
  bindStaleBuildNotice({}, import.meta.url, "opencode2");
8202
8202
  const duties = await registerContext(context);
@@ -63,7 +63,7 @@ import {
63
63
  registerActiveCompartmentRun,
64
64
  setRecompStarting2,
65
65
  setRecompTerminal2
66
- } from "./server-9emfsa60.js";
66
+ } from "./server-8hcxmt1w.js";
67
67
  import"./server-qt1qqasc.js";
68
68
  import"./server-z5255w05.js";
69
69
  import"./server-jtq03rkb.js";
@@ -72,9 +72,9 @@ import"./server-d706s5xn.js";
72
72
  import"./server-d9aayyxk.js";
73
73
  import"./server-jjvbk92s.js";
74
74
  import"./server-d07yxksx.js";
75
- import"./server-v1s0cb4v.js";
76
- import"./server-kc5kb9ya.js";
77
- import"./server-ypaat9rj.js";
75
+ import"./server-9sf3qp02.js";
76
+ import"./server-2adwe0be.js";
77
+ import"./server-aewxmvnf.js";
78
78
  import"./server-npdey91q.js";
79
79
  import {
80
80
  sendStatusNotification2
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runManagedWrapup2
3
- } from "./index-s3t4vk21.js";
4
- import"./index-gth4t4ar.js";
5
- import"./index-a09sw9fx.js";
3
+ } from "./index-s2qsd3w9.js";
4
+ import"./index-3wq9btxt.js";
5
+ import"./index-4yjn3er4.js";
6
6
  import"./index-832w615x.js";
7
7
  import"./index-sd3egckz.js";
8
8
  import"./index-n6aye6ny.js";
@@ -15,7 +15,7 @@ import"./index-tebcx987.js";
15
15
  import"./index-ev2rrjfc.js";
16
16
  import"./index-2amn2s73.js";
17
17
  import"./index-6athgjba.js";
18
- import"./index-5ps3axh5.js";
18
+ import"./index-ngwmx6nt.js";
19
19
  import"./index-1sq1krqw.js";
20
20
  import"./index-qt1qqasc.js";
21
21
  import"./index-d0feqcs5.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.49.59",
3
+ "version": "0.49.60",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -88,6 +88,17 @@ describe("output-token reservation", () => {
88
88
  ).toBe(1_048_576);
89
89
  });
90
90
 
91
+ test("keeps Oh My Pi's antigravity-cli provider at the full window (issue 939)", () => {
92
+ // The agy default model's catalog pair in Oh My Pi 18.22.0.
93
+ expect(
94
+ resolveLimit(
95
+ { context: 1_048_576, output: 262_144 },
96
+ "antigravity-cli",
97
+ "gemini-4-carbon",
98
+ ),
99
+ ).toBe(1_048_576);
100
+ });
101
+
91
102
  test("output_reserve accepts both harness provider spellings with canonical precedence", () => {
92
103
  const limit = { context: 100_000, output: 20_000 };
93
104
  expect(
@@ -81,7 +81,13 @@ interface CachedModelMetadata {
81
81
 
82
82
  // Proven-separate allowlist only. Unknown providers reserve by default because
83
83
  // wasting some input capacity is safer than a shared-window hard rejection.
84
- const SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set(["google", "google-antigravity"]);
84
+ // `antigravity-cli` is Oh My Pi's driver for Google's Antigravity CLI, serving
85
+ // the same models with the same limits as `google-antigravity`.
86
+ const SEPARATE_OUTPUT_QUOTA_PROVIDERS = new Set([
87
+ "google",
88
+ "google-antigravity",
89
+ "antigravity-cli",
90
+ ]);
85
91
  const MIN_PLAUSIBLE_CONTEXT_LIMIT = 1024;
86
92
  const OUTPUT_RESERVE_CAP_RATIO = 0.25;
87
93
  let outputReserveConfig: OutputReserveConfig | undefined;
@@ -79,6 +79,25 @@ describe("window geometry", () => {
79
79
  },
80
80
  },
81
81
  },
82
+ {
83
+ // Oh My Pi's driver for Google's Antigravity CLI (`agy`).
84
+ provider: "antigravity-cli",
85
+ model: "gemini-4-carbon",
86
+ limit: { context: 1_048_576, output: 262_144 },
87
+ expected: {
88
+ usableSoft: 1_048_576,
89
+ usableHard: 1_048_576,
90
+ geometry: "separate",
91
+ derivation: {
92
+ window: 1_048_576,
93
+ reserve: 0,
94
+ reserveSource: "none",
95
+ geometry: "separate",
96
+ windowSource: "catalog",
97
+ absoluteWall: 1_048_576,
98
+ },
99
+ },
100
+ },
82
101
  {
83
102
  provider: "xai",
84
103
  model: "grok-3",
@@ -317,6 +336,7 @@ describe("window geometry", () => {
317
336
  ["openai", "zero", { context: 200_000, output: 0 }],
318
337
  ["xai", "placeholder", { context: 500_000, output: 500_000 }],
319
338
  ["google", "separate", { context: 1_000_000, output: 65_536 }],
339
+ ["antigravity-cli", "gemini-4-carbon", { context: 1_048_576, output: 262_144 }],
320
340
  ["anthropic", "input", { context: 1_000_000, input: 900_000, output: 128_000 }],
321
341
  ] as const;
322
342
  for (const [provider, model, limit] of corpus) {
@@ -61,6 +61,9 @@ const PROVIDER_GEOMETRY: Readonly<Record<string, WindowGeometry>> = {
61
61
  xai: "shared_truncating",
62
62
  google: "separate",
63
63
  "google-antigravity": "separate",
64
+ // Oh My Pi's driver for Google's Antigravity CLI (`agy`): the same account,
65
+ // model roster and window/output pairs as google-antigravity.
66
+ "antigravity-cli": "separate",
64
67
  };
65
68
 
66
69
  const geometryClampLogSeen = new Set<string>();