@esso0428/pi-subagents 0.17.32 → 0.17.33

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.17.33] - 2026-10-05
11
+
12
+ ### Fixed
13
+ - **Nested children now honour `subagents.agentOverrides`**: the overrides were applied only to the global registry at load time, so a nested dispatch resolved the stock definition for a type whose top-level counterpart is overridden — most visibly, `Explore` kept its `anthropic/claude-haiku-4-5` pin and failed with `model_not_supported` no matter what `settings.json` said. The same overrides are now re-applied to the config-derived registry nested resolves against, which also lets an override introduce a type that did not exist as an agent file.
14
+
10
15
  ## [0.17.32] - 2026-10-04
11
16
 
12
17
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esso0428/pi-subagents",
3
- "version": "0.17.32",
3
+ "version": "0.17.33",
4
4
  "description": "A pi extension that brings smart Claude Code-style autonomous sub-agents to pi, with npm:pi-subagents-style JSON agent overrides.",
5
5
  "author": "ESSO0428",
6
6
  "repository": {
@@ -22,6 +22,7 @@ import { loadCustomAgents } from "./custom-agents.js";
22
22
  import { resolveAgentInvocationConfig } from "./invocation-config.js";
23
23
  import { resolveModel } from "./model-resolver.js";
24
24
  import { checkModelScope } from "./model-scope.js";
25
+ import { applyNicoOverridesToMap, readNicoAgentOverrides } from "./nico-overrides.js";
25
26
  import { createOutputFilePath, streamToOutputFile, writeInitialEntry } from "./output-file.js";
26
27
  import { getStatusNote } from "./status-note.js";
27
28
  import type { AgentConfig, AgentInvocation, AgentRecord, IsolationMode, ThinkingLevel } from "./types.js";
@@ -119,6 +120,12 @@ export function createNestedSubagentTools(context: NestedToolContext): ToolDefin
119
120
  const config = getAgentConfig(name);
120
121
  if (config) registry.set(name, config);
121
122
  }
123
+ // `applyNicoOverrides()` runs against the global registry at load, so
124
+ // `subagents.agentOverrides` in settings.json is not visible here. Apply the
125
+ // same overrides to this map or a nested child would ignore configuration
126
+ // that governs the very same agent type one level up.
127
+ const { overrides, defaultModel } = readNicoAgentOverrides(context.configCwd);
128
+ applyNicoOverridesToMap(registry, overrides, defaultModel);
122
129
  return registry;
123
130
  };
124
131
  const allowedTypesIn = (registry: Map<string, AgentConfig>): Set<string> | undefined =>