@cortexkit/magic-context 0.49.44 → 0.49.45

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 +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28328,7 +28328,8 @@ END`;
28328
28328
  "query",
28329
28329
  "symbol",
28330
28330
  "module",
28331
- "action"
28331
+ "action",
28332
+ "command"
28332
28333
  ];
28333
28334
  RAW_SUMMARY_PART_DATA_SQL = `CASE
28334
28335
  WHEN json_extract(data, '$.type') = 'text'
@@ -33450,6 +33451,9 @@ function extractKeyArg(_toolName, input) {
33450
33451
  return input.module;
33451
33452
  if (typeof input.action === "string")
33452
33453
  return input.action;
33454
+ if (typeof input.command === "string") {
33455
+ return truncateArg(normalizeText(input.command), COMMAND_ARG_MAX_CHARS);
33456
+ }
33453
33457
  return null;
33454
33458
  }
33455
33459
  function truncateArg(value, maxLen = 60) {
@@ -33587,7 +33591,7 @@ function mergeCommitHashes(existing, next) {
33587
33591
  }
33588
33592
  return merged;
33589
33593
  }
33590
- var MAX_COMMITS_PER_BLOCK = 5, tokenizer, tokenizerLoadAttempted = false, tokenizerWarningSent = false, tokenizerEncodingPath, tokenizerSerializedTableBytes, promptTokenCounts, PROMPT_TOKEN_COUNT_BYTES;
33594
+ var MAX_COMMITS_PER_BLOCK = 5, COMMAND_ARG_MAX_CHARS = 200, tokenizer, tokenizerLoadAttempted = false, tokenizerWarningSent = false, tokenizerEncodingPath, tokenizerSerializedTableBytes, promptTokenCounts, PROMPT_TOKEN_COUNT_BYTES;
33591
33595
  var init_read_session_formatting = __esm(() => {
33592
33596
  init_commit_detection();
33593
33597
  init_logger();
@@ -35382,6 +35386,9 @@ var PREFIX_BOUND_THINKING_MODELS, PREFIX_BOUND_THINKING_PATTERN;
35382
35386
  var init_overflow_detection = __esm(() => {
35383
35387
  PREFIX_BOUND_THINKING_MODELS = [
35384
35388
  ["fable", 5, 1],
35389
+ ["fable", 5, 2],
35390
+ ["mythos", 5, 1],
35391
+ ["mythos", 5, 2],
35385
35392
  ["opus", 5, 5],
35386
35393
  ["sonnet", 5, 5],
35387
35394
  ["haiku", 5, 5]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/magic-context",
3
- "version": "0.49.44",
3
+ "version": "0.49.45",
4
4
  "description": "Unified CLI for Magic Context — setup, doctor, and migration across OpenCode, Pi, and OMP",
5
5
  "keywords": [
6
6
  "opencode",