maxsimcli 2.3.0 → 2.4.1

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.
@@ -69,8 +69,6 @@ node_tty = __toESM(node_tty);
69
69
  let fs_promises = require("fs/promises");
70
70
  let node_stream = require("node:stream");
71
71
  let os = require("os");
72
- let node_pty = require("node-pty");
73
- node_pty = __toESM(node_pty);
74
72
 
75
73
  //#region ../../node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js
76
74
  var require_depd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -34659,57 +34657,68 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
34659
34657
  "maxsim-planner": {
34660
34658
  quality: "opus",
34661
34659
  balanced: "opus",
34662
- budget: "sonnet"
34660
+ budget: "sonnet",
34661
+ tokenburner: "opus"
34663
34662
  },
34664
34663
  "maxsim-roadmapper": {
34665
34664
  quality: "opus",
34666
34665
  balanced: "sonnet",
34667
- budget: "sonnet"
34666
+ budget: "sonnet",
34667
+ tokenburner: "opus"
34668
34668
  },
34669
34669
  "maxsim-executor": {
34670
34670
  quality: "opus",
34671
34671
  balanced: "sonnet",
34672
- budget: "sonnet"
34672
+ budget: "sonnet",
34673
+ tokenburner: "opus"
34673
34674
  },
34674
34675
  "maxsim-phase-researcher": {
34675
34676
  quality: "opus",
34676
34677
  balanced: "sonnet",
34677
- budget: "haiku"
34678
+ budget: "haiku",
34679
+ tokenburner: "opus"
34678
34680
  },
34679
34681
  "maxsim-project-researcher": {
34680
34682
  quality: "opus",
34681
34683
  balanced: "sonnet",
34682
- budget: "haiku"
34684
+ budget: "haiku",
34685
+ tokenburner: "opus"
34683
34686
  },
34684
34687
  "maxsim-research-synthesizer": {
34685
34688
  quality: "sonnet",
34686
34689
  balanced: "sonnet",
34687
- budget: "haiku"
34690
+ budget: "haiku",
34691
+ tokenburner: "opus"
34688
34692
  },
34689
34693
  "maxsim-debugger": {
34690
34694
  quality: "opus",
34691
34695
  balanced: "sonnet",
34692
- budget: "sonnet"
34696
+ budget: "sonnet",
34697
+ tokenburner: "opus"
34693
34698
  },
34694
34699
  "maxsim-codebase-mapper": {
34695
34700
  quality: "sonnet",
34696
34701
  balanced: "haiku",
34697
- budget: "haiku"
34702
+ budget: "haiku",
34703
+ tokenburner: "opus"
34698
34704
  },
34699
34705
  "maxsim-verifier": {
34700
34706
  quality: "sonnet",
34701
34707
  balanced: "sonnet",
34702
- budget: "haiku"
34708
+ budget: "haiku",
34709
+ tokenburner: "opus"
34703
34710
  },
34704
34711
  "maxsim-plan-checker": {
34705
34712
  quality: "sonnet",
34706
34713
  balanced: "sonnet",
34707
- budget: "haiku"
34714
+ budget: "haiku",
34715
+ tokenburner: "opus"
34708
34716
  },
34709
34717
  "maxsim-integration-checker": {
34710
34718
  quality: "sonnet",
34711
34719
  balanced: "sonnet",
34712
- budget: "haiku"
34720
+ budget: "haiku",
34721
+ tokenburner: "opus"
34713
34722
  }
34714
34723
  };
34715
34724
  function output(result, raw, rawValue) {
@@ -37843,7 +37852,8 @@ var require_verify = /* @__PURE__ */ __commonJSMin(((exports) => {
37843
37852
  const validProfiles = [
37844
37853
  "quality",
37845
37854
  "balanced",
37846
- "budget"
37855
+ "budget",
37856
+ "tokenburner"
37847
37857
  ];
37848
37858
  if (parsed.model_profile && !validProfiles.includes(parsed.model_profile)) addIssue("warning", "W004", `config.json: invalid model_profile "${parsed.model_profile}"`, `Valid values: ${validProfiles.join(", ")}`);
37849
37859
  } catch (thrown) {
@@ -41414,6 +41424,10 @@ var SessionStore = class {
41414
41424
 
41415
41425
  //#endregion
41416
41426
  //#region src/terminal/pty-manager.ts
41427
+ let pty = null;
41428
+ try {
41429
+ pty = require("node-pty");
41430
+ } catch {}
41417
41431
  const DISCONNECT_TIMEOUT_MS = 6e4;
41418
41432
  const STATUS_INTERVAL_MS = 1e3;
41419
41433
  const ACTIVE_THRESHOLD_MS = 2e3;
@@ -41428,11 +41442,18 @@ var PtyManager = class PtyManager {
41428
41442
  return PtyManager.instance;
41429
41443
  }
41430
41444
  spawn(opts) {
41445
+ if (!pty) {
41446
+ this.broadcastToClients({
41447
+ type: "output",
41448
+ data: "\r\n\x1B[31mTerminal unavailable: node-pty is not installed.\r\nRun: npm install node-pty\x1B[0m\r\n"
41449
+ });
41450
+ return;
41451
+ }
41431
41452
  if (this.session) this.kill();
41432
41453
  const shell = process.platform === "win32" ? "claude.cmd" : "claude";
41433
41454
  const args = [];
41434
41455
  if (opts.skipPermissions) args.push("--dangerously-skip-permissions");
41435
- const proc = node_pty.spawn(shell, args, {
41456
+ const proc = pty.spawn(shell, args, {
41436
41457
  name: "xterm-256color",
41437
41458
  cols: opts.cols ?? 120,
41438
41459
  rows: opts.rows ?? 30,
@@ -41529,6 +41550,9 @@ var PtyManager = class PtyManager {
41529
41550
  isAlive() {
41530
41551
  return this.session !== null;
41531
41552
  }
41553
+ isAvailable() {
41554
+ return pty !== null;
41555
+ }
41532
41556
  broadcastToClients(message) {
41533
41557
  const data = JSON.stringify(message);
41534
41558
  for (const client of this.connectedClients) if (client.readyState === import_websocket.default.OPEN) client.send(data);
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: maxsim:set-profile
3
- description: Switch model profile for MAXSIM agents (quality/balanced/budget)
3
+ description: Switch model profile for MAXSIM agents (quality/balanced/budget/tokenburner)
4
4
  argument-hint: <profile>
5
5
  allowed-tools:
6
6
  - Read
@@ -12,7 +12,7 @@ allowed-tools:
12
12
  Switch the model profile used by MAXSIM agents. Controls which Claude model each agent uses, balancing quality vs token spend.
13
13
 
14
14
  Routes to the set-profile workflow which handles:
15
- - Argument validation (quality/balanced/budget)
15
+ - Argument validation (quality/balanced/budget/tokenburner)
16
16
  - Config file creation if missing
17
17
  - Profile update in config.json
18
18
  - Confirmation with model table display
@@ -12,9 +12,9 @@ Read all files referenced by the invoking prompt's execution_context before star
12
12
  Validate argument:
13
13
 
14
14
  ```
15
- if $ARGUMENTS.profile not in ["quality", "balanced", "budget"]:
15
+ if $ARGUMENTS.profile not in ["quality", "balanced", "budget", "tokenburner"]:
16
16
  Error: Invalid profile "$ARGUMENTS.profile"
17
- Valid profiles: quality, balanced, budget
17
+ Valid profiles: quality, balanced, budget, tokenburner
18
18
  EXIT
19
19
  ```
20
20
  </step>
@@ -68,6 +68,7 @@ Map profile names:
68
68
  - quality: use "quality" column from MODEL_PROFILES
69
69
  - balanced: use "balanced" column from MODEL_PROFILES
70
70
  - budget: use "budget" column from MODEL_PROFILES
71
+ - tokenburner: use "tokenburner" column from MODEL_PROFILES (all opus)
71
72
  </step>
72
73
 
73
74
  </process>
package/dist/cli.cjs CHANGED
@@ -146,57 +146,68 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
146
146
  "maxsim-planner": {
147
147
  quality: "opus",
148
148
  balanced: "opus",
149
- budget: "sonnet"
149
+ budget: "sonnet",
150
+ tokenburner: "opus"
150
151
  },
151
152
  "maxsim-roadmapper": {
152
153
  quality: "opus",
153
154
  balanced: "sonnet",
154
- budget: "sonnet"
155
+ budget: "sonnet",
156
+ tokenburner: "opus"
155
157
  },
156
158
  "maxsim-executor": {
157
159
  quality: "opus",
158
160
  balanced: "sonnet",
159
- budget: "sonnet"
161
+ budget: "sonnet",
162
+ tokenburner: "opus"
160
163
  },
161
164
  "maxsim-phase-researcher": {
162
165
  quality: "opus",
163
166
  balanced: "sonnet",
164
- budget: "haiku"
167
+ budget: "haiku",
168
+ tokenburner: "opus"
165
169
  },
166
170
  "maxsim-project-researcher": {
167
171
  quality: "opus",
168
172
  balanced: "sonnet",
169
- budget: "haiku"
173
+ budget: "haiku",
174
+ tokenburner: "opus"
170
175
  },
171
176
  "maxsim-research-synthesizer": {
172
177
  quality: "sonnet",
173
178
  balanced: "sonnet",
174
- budget: "haiku"
179
+ budget: "haiku",
180
+ tokenburner: "opus"
175
181
  },
176
182
  "maxsim-debugger": {
177
183
  quality: "opus",
178
184
  balanced: "sonnet",
179
- budget: "sonnet"
185
+ budget: "sonnet",
186
+ tokenburner: "opus"
180
187
  },
181
188
  "maxsim-codebase-mapper": {
182
189
  quality: "sonnet",
183
190
  balanced: "haiku",
184
- budget: "haiku"
191
+ budget: "haiku",
192
+ tokenburner: "opus"
185
193
  },
186
194
  "maxsim-verifier": {
187
195
  quality: "sonnet",
188
196
  balanced: "sonnet",
189
- budget: "haiku"
197
+ budget: "haiku",
198
+ tokenburner: "opus"
190
199
  },
191
200
  "maxsim-plan-checker": {
192
201
  quality: "sonnet",
193
202
  balanced: "sonnet",
194
- budget: "haiku"
203
+ budget: "haiku",
204
+ tokenburner: "opus"
195
205
  },
196
206
  "maxsim-integration-checker": {
197
207
  quality: "sonnet",
198
208
  balanced: "sonnet",
199
- budget: "haiku"
209
+ budget: "haiku",
210
+ tokenburner: "opus"
200
211
  }
201
212
  };
202
213
  function output(result, raw, rawValue) {
@@ -3330,7 +3341,8 @@ var require_verify = /* @__PURE__ */ __commonJSMin(((exports) => {
3330
3341
  const validProfiles = [
3331
3342
  "quality",
3332
3343
  "balanced",
3333
- "budget"
3344
+ "budget",
3345
+ "tokenburner"
3334
3346
  ];
3335
3347
  if (parsed.model_profile && !validProfiles.includes(parsed.model_profile)) addIssue("warning", "W004", `config.json: invalid model_profile "${parsed.model_profile}"`, `Valid values: ${validProfiles.join(", ")}`);
3336
3348
  } catch (thrown) {