@iinm/plain-agent 1.10.18 → 1.10.20

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.
@@ -257,7 +257,7 @@
257
257
  }
258
258
  },
259
259
  {
260
- "name": "claude-opus-4-7",
260
+ "name": "claude-opus-4-8",
261
261
  "variant": "thinking-high",
262
262
  "platform": {
263
263
  "name": "anthropic",
@@ -267,7 +267,7 @@
267
267
  "model": {
268
268
  "format": "anthropic",
269
269
  "config": {
270
- "model": "claude-opus-4-7",
270
+ "model": "claude-opus-4-8",
271
271
  "max_tokens": 32768,
272
272
  "thinking": { "type": "adaptive" },
273
273
  "output_config": { "effort": "high" }
@@ -285,7 +285,7 @@
285
285
  }
286
286
  },
287
287
  {
288
- "name": "claude-opus-4-7",
288
+ "name": "claude-opus-4-8",
289
289
  "variant": "thinking-max",
290
290
  "platform": {
291
291
  "name": "anthropic",
@@ -295,7 +295,7 @@
295
295
  "model": {
296
296
  "format": "anthropic",
297
297
  "config": {
298
- "model": "claude-opus-4-7",
298
+ "model": "claude-opus-4-8",
299
299
  "max_tokens": 64000,
300
300
  "thinking": { "type": "adaptive" },
301
301
  "output_config": { "effort": "max" }
@@ -420,7 +420,7 @@
420
420
  }
421
421
  },
422
422
  {
423
- "name": "claude-opus-4-7",
423
+ "name": "claude-opus-4-8",
424
424
  "variant": "thinking-high-bedrock",
425
425
  "platform": {
426
426
  "name": "bedrock",
@@ -429,7 +429,7 @@
429
429
  "model": {
430
430
  "format": "anthropic",
431
431
  "config": {
432
- "model": "global.anthropic.claude-opus-4-7",
432
+ "model": "global.anthropic.claude-opus-4-8",
433
433
  "max_tokens": 32768,
434
434
  "thinking": { "type": "adaptive" },
435
435
  "output_config": { "effort": "high" }
@@ -447,7 +447,7 @@
447
447
  }
448
448
  },
449
449
  {
450
- "name": "claude-opus-4-7",
450
+ "name": "claude-opus-4-8",
451
451
  "variant": "thinking-max-bedrock",
452
452
  "platform": {
453
453
  "name": "bedrock",
@@ -456,7 +456,7 @@
456
456
  "model": {
457
457
  "format": "anthropic",
458
458
  "config": {
459
- "model": "global.anthropic.claude-opus-4-7",
459
+ "model": "global.anthropic.claude-opus-4-8",
460
460
  "max_tokens": 64000,
461
461
  "thinking": { "type": "adaptive" },
462
462
  "output_config": { "effort": "max" }
@@ -7,4 +7,4 @@ Create a commit.
7
7
  - Check the commit message format: git ["log", "--no-merges", "--oneline", "-n", "10"]
8
8
  - Create a concise and descriptive commit message that follows the project's commit convention.
9
9
  - Create a commit:
10
- exec_command: git ["commit", "-m", "<commit message>", "-m", "", "-m", "Co-authored-by: Plain Agent <plain-agent+<model-name>@localhost>"]
10
+ exec_command: git ["commit", "-m", "<commit message>", "-m", "", "-m", "Co-authored-by: <model-name> <<model-name>@localhost>"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iinm/plain-agent",
3
- "version": "1.10.18",
3
+ "version": "1.10.20",
4
4
  "description": "A lightweight coding agent for the terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -890,8 +890,6 @@ test -L ~/.zsh_history || (touch /persistent/home/.zsh_history; ln -s /persisten
890
890
  test -L ~/.config || (mkdir -p /persistent/home/.config; ln -s /persistent/home/.config ~/ 2> /dev/null)
891
891
  test -L ~/.gitconfig || (touch /persistent/home/.gitconfig; ln -s /persistent/home/.gitconfig ~/ 2> /dev/null)
892
892
  test -L ~/.local || (mkdir -p /persistent/home/.local/share; ln -s /persistent/home/.local ~/ 2> /dev/null)
893
- test -L ~/.gemini || (mkdir -p /persistent/home/.gemini; ln -s /persistent/home/.gemini ~/ 2> /dev/null)
894
- test -L ~/.codex || (mkdir -p /persistent/home/.codex; ln -s /persistent/home/.codex ~/ 2> /dev/null)
895
893
 
896
894
  eval "$(mise activate bash)"
897
895
  exec "$@"
package/src/main.mjs CHANGED
@@ -261,6 +261,27 @@ export async function main(argv = process.argv) {
261
261
  modelNameWithVariant = resumedState.modelName;
262
262
  }
263
263
 
264
+ const [modelName, modelVariant] = modelNameWithVariant.split("+");
265
+ const modelDef = (appConfig.models ?? []).find(
266
+ (entry) => entry.name === modelName && entry.variant === modelVariant,
267
+ );
268
+ if (!modelDef) {
269
+ throw new Error(
270
+ `Model "${modelNameWithVariant}" not found in configuration.`,
271
+ );
272
+ }
273
+
274
+ const platform = (appConfig.platforms ?? []).find(
275
+ (entry) =>
276
+ entry.name === modelDef.platform.name &&
277
+ entry.variant === modelDef.platform.variant,
278
+ );
279
+ if (!platform) {
280
+ throw new Error(
281
+ `Platform ${modelDef.platform.name} variant=${modelDef.platform.variant} not found in configuration.`,
282
+ );
283
+ }
284
+
264
285
  const pluginPaths = resolvePluginPaths(appConfig.claudeCodePlugins ?? []);
265
286
  const [prompts, agentRoles] = await Promise.all([
266
287
  loadPrompts(pluginPaths),
@@ -269,7 +290,7 @@ export async function main(argv = process.argv) {
269
290
 
270
291
  const prompt = createPrompt({
271
292
  username: USER_NAME,
272
- modelName: modelNameWithVariant,
293
+ modelName,
273
294
  workingDir: process.cwd(),
274
295
  today: new Date().toISOString().split("T")[0],
275
296
  sessionId,
@@ -290,27 +311,6 @@ export async function main(argv = process.argv) {
290
311
  createSwitchToMainAgentTool(),
291
312
  ];
292
313
 
293
- const [modelName, modelVariant] = modelNameWithVariant.split("+");
294
- const modelDef = (appConfig.models ?? []).find(
295
- (entry) => entry.name === modelName && entry.variant === modelVariant,
296
- );
297
- if (!modelDef) {
298
- throw new Error(
299
- `Model "${modelNameWithVariant}" not found in configuration.`,
300
- );
301
- }
302
-
303
- const platform = (appConfig.platforms ?? []).find(
304
- (entry) =>
305
- entry.name === modelDef.platform.name &&
306
- entry.variant === modelDef.platform.variant,
307
- );
308
- if (!platform) {
309
- throw new Error(
310
- `Platform ${modelDef.platform.name} variant=${modelDef.platform.variant} not found in configuration.`,
311
- );
312
- }
313
-
314
314
  if (appConfig.tools?.webSearch) {
315
315
  const webSearchConfig = appConfig.tools.webSearch;
316
316
  if (webSearchConfig.provider === "command") {