amalgm 0.1.65 → 0.1.66

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amalgm",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "Amalgm local computer runtime: login, MCP, chat, events, previews, and tunnels.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -72,7 +72,7 @@ function sanitizeRunModelSettings(settings, harness) {
72
72
  : new Set();
73
73
  return {
74
74
  ...(effort && allowedEfforts.has(effort) ? { effort } : {}),
75
- ...(harness === 'claude_code' && settings.fastMode === true ? { fastMode: true } : {}),
75
+ ...((harness === 'claude_code' || harness === 'codex') && settings.fastMode === true ? { fastMode: true } : {}),
76
76
  };
77
77
  }
78
78
 
@@ -173,6 +173,10 @@ function modelWindowConfigLines(contract) {
173
173
  ];
174
174
  }
175
175
 
176
+ function serviceTierForContract(contract) {
177
+ return contract.fastMode ? 'fast' : null;
178
+ }
179
+
176
180
  function isCompactCommand(text) {
177
181
  return String(text || '').trim().toLowerCase() === '/compact';
178
182
  }
@@ -378,6 +382,7 @@ class CodexAdapter {
378
382
  approvalPolicy: 'never',
379
383
  sandbox: 'danger-full-access',
380
384
  modelProvider: contract.authMethod === 'amalgm' ? 'amalgm' : 'openai',
385
+ serviceTier: serviceTierForContract(contract),
381
386
  developerInstructions: composeSystemPrompt(contract) || null,
382
387
  persistExtendedHistory: true,
383
388
  };
@@ -460,6 +465,7 @@ class CodexAdapter {
460
465
  cwd: contract.cwd,
461
466
  model: contract.cliModel.replace(/\/(?:low|medium|high|xhigh)$/i, ''),
462
467
  effort: contract.reasoningEffort || undefined,
468
+ serviceTier: serviceTierForContract(contract),
463
469
  approvalPolicy: 'never',
464
470
  });
465
471
  startRequest.then((result) => {
@@ -504,6 +510,7 @@ module.exports = {
504
510
  modelWindowConfigLines,
505
511
  removeTomlSections,
506
512
  removeTopLevelKeys,
513
+ serviceTierForContract,
507
514
  writeConfig,
508
515
  },
509
516
  };