instar 1.3.509 → 1.3.510

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 (45) hide show
  1. package/dist/commands/server.d.ts.map +1 -1
  2. package/dist/commands/server.js +8 -1
  3. package/dist/commands/server.js.map +1 -1
  4. package/dist/core/SessionManager.d.ts +4 -0
  5. package/dist/core/SessionManager.d.ts.map +1 -1
  6. package/dist/core/SessionManager.js +3 -0
  7. package/dist/core/SessionManager.js.map +1 -1
  8. package/dist/core/TopicProfileOrchestrator.d.ts +3 -1
  9. package/dist/core/TopicProfileOrchestrator.d.ts.map +1 -1
  10. package/dist/core/TopicProfileOrchestrator.js +8 -3
  11. package/dist/core/TopicProfileOrchestrator.js.map +1 -1
  12. package/dist/core/TopicProfileResolver.d.ts +9 -1
  13. package/dist/core/TopicProfileResolver.d.ts.map +1 -1
  14. package/dist/core/TopicProfileResolver.js +38 -2
  15. package/dist/core/TopicProfileResolver.js.map +1 -1
  16. package/dist/core/TopicProfileStore.d.ts +8 -1
  17. package/dist/core/TopicProfileStore.d.ts.map +1 -1
  18. package/dist/core/TopicProfileStore.js +2 -2
  19. package/dist/core/TopicProfileStore.js.map +1 -1
  20. package/dist/core/classifyProfileChange.d.ts.map +1 -1
  21. package/dist/core/classifyProfileChange.js +32 -1
  22. package/dist/core/classifyProfileChange.js.map +1 -1
  23. package/dist/core/frameworkSessionLaunch.d.ts +28 -1
  24. package/dist/core/frameworkSessionLaunch.d.ts.map +1 -1
  25. package/dist/core/frameworkSessionLaunch.js +35 -3
  26. package/dist/core/frameworkSessionLaunch.js.map +1 -1
  27. package/dist/core/topicProfileIngress.d.ts.map +1 -1
  28. package/dist/core/topicProfileIngress.js +14 -0
  29. package/dist/core/topicProfileIngress.js.map +1 -1
  30. package/dist/core/topicProfileValidation.d.ts +12 -0
  31. package/dist/core/topicProfileValidation.d.ts.map +1 -1
  32. package/dist/core/topicProfileValidation.js +30 -0
  33. package/dist/core/topicProfileValidation.js.map +1 -1
  34. package/dist/core/topicProfileWriteSurface.d.ts.map +1 -1
  35. package/dist/core/topicProfileWriteSurface.js +3 -2
  36. package/dist/core/topicProfileWriteSurface.js.map +1 -1
  37. package/dist/core/types.d.ts +1 -0
  38. package/dist/core/types.d.ts.map +1 -1
  39. package/dist/server/routes.d.ts.map +1 -1
  40. package/dist/server/routes.js +3 -2
  41. package/dist/server/routes.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/data/builtin-manifest.json +47 -47
  44. package/upgrades/1.3.510.md +54 -0
  45. package/upgrades/side-effects/topic-effort-pin.md +117 -0
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgCH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AAuBjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA0G7D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAsBtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,OAAO,CAUT;AAyID,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAw0CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,WAAW,EACz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CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA80CD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,WAAW,EACzB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,EAGvE,UAAU,CAAC,EAAE,MAAM,OAAO,8BAA8B,EAAE,WAAW,GAAG,IAAI,EAK5E,qBAAqB,CAAC,EAAE,MAAM,OAAO,gCAAgC,EAAE,kBAAkB,GAAG,IAAI,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,GACpD,IAAI,CA8eN;AA2lBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAgyYtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
@@ -805,6 +805,9 @@ spawnOpts) {
805
805
  ? resolvedProfile.model
806
806
  : undefined;
807
807
  const profileThinkingMode = resolvedProfile?.thinkingMode;
808
+ // Topic Profile — per-topic Claude `--effort` pin (already enum-clamped /
809
+ // fail-open in the resolver; undefined = no --effort, today's behavior).
810
+ const profileEffort = resolvedProfile?.effort;
808
811
  const newSessionName = await sessionManager.spawnInteractiveSession(bootstrapMessage, sessionName, {
809
812
  telegramTopicId: topicId,
810
813
  resumeSessionId,
@@ -813,6 +816,7 @@ spawnOpts) {
813
816
  ...(codexLocalModelOverride ? { defaultModel: codexLocalModelOverride } : {}),
814
817
  ...(profileModel ? { defaultModel: profileModel } : {}),
815
818
  ...(profileThinkingMode ? { thinkingMode: profileThinkingMode } : {}),
819
+ ...(profileEffort ? { effort: profileEffort } : {}),
816
820
  // Subscription & Auth Standard P1.3 (additive): account-swap — launch under
817
821
  // this account's config home + record its id. Unset = unchanged.
818
822
  ...(accountSwap?.configHome ? { configHome: accountSwap.configHome } : {}),
@@ -1276,13 +1280,16 @@ function wireTelegramCallbacks(telegram, sessionManager, state, quotaTracker, ac
1276
1280
  else if (head === 'thinking' && parts.length === 2) {
1277
1281
  patch = { thinkingMode: parts[1].toLowerCase() };
1278
1282
  }
1283
+ else if (head === 'effort' && parts.length === 2) {
1284
+ patch = { effort: parts[1].toLowerCase() };
1285
+ }
1279
1286
  else if (head === 'escalation' && parts.length === 2) {
1280
1287
  patch = { escalationOverride: parts[1].toLowerCase() };
1281
1288
  }
1282
1289
  if (!patch) {
1283
1290
  return {
1284
1291
  ok: false,
1285
- message: 'Usage: /topic [status] · /topic <framework> · /topic model <id> · /topic tier <default|escalated> · /topic thinking <off|low|medium|high|max> · /topic escalation <inherit|suppress> · /topic clear · /topic undo · /topic re-apply — or just tell me in plain words.',
1292
+ message: 'Usage: /topic [status] · /topic <framework> · /topic model <id> · /topic tier <default|escalated> · /topic thinking <off|low|medium|high|max> · /topic effort <low|medium|high|xhigh|max> · /topic escalation <inherit|suppress> · /topic clear · /topic undo · /topic re-apply — or just tell me in plain words.',
1286
1293
  };
1287
1294
  }
1288
1295
  const result = await surface.applyWrite({