@agimon-ai/po-team 0.0.0-alpha.162 → 0.0.0-alpha.164

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/README.md CHANGED
@@ -6,7 +6,7 @@ Team owns agents and runs, not Task's graph. With both selected, Team fulfills d
6
6
 
7
7
  ## Enable
8
8
 
9
- Define a layer in `.po/modes.yaml` and select it in a major mode, then run `po sync`:
9
+ Define a layer in `.po/presets.yaml` and select it in a preset, then run `po sync`:
10
10
 
11
11
  ```yaml
12
12
  layers:
@@ -19,7 +19,7 @@ layers:
19
19
  - model: provider/model-id
20
20
  thinking: high
21
21
  excludeTools: [ask_user_question]
22
- majorMode:
22
+ preset:
23
23
  development:
24
24
  description: Tasks and delegated agents.
25
25
  layers: [coordination]
@@ -28,7 +28,7 @@ let _agimon_ai_po_core_telemetry = require("@agimon-ai/po-core/telemetry");
28
28
  let node_crypto = require("node:crypto");
29
29
  let typebox_value = require("typebox/value");
30
30
  let _agimon_ai_po_core_headless = require("@agimon-ai/po-core/headless");
31
- let _agimon_ai_po_config_majorModes = require("@agimon-ai/po-config/majorModes");
31
+ let _agimon_ai_po_config_presets = require("@agimon-ai/po-config/presets");
32
32
  require("@agimon-ai/po-core/cordisHost");
33
33
  //#region src/constants/awaitedInlineRun.ts
34
34
  const AWAITED_INLINE_CHILD_GUIDANCE = "You are an inline agent owned by the parent workflow step. Write the requested artifacts and evidence. Never record workflow complete, fix, or fail decisions. Do not launch or delegate agents. The parent owns all step decisions and bookkeeping.";
@@ -2478,7 +2478,7 @@ var SpawnPlanner = class {
2478
2478
  const tasks = this.resolveTaskList(request);
2479
2479
  if (request.awaitedInline && tasks.some((task) => !task.inlineAgent)) throw new Error("Awaited Team runs require inline agents.");
2480
2480
  const workflowPreferences = readWorkflowPreferences(request.environment?.WORKFLOW_RUN_CONFIG ?? this.environment.WORKFLOW_RUN_CONFIG);
2481
- const planningConfig = request.parentSelection?.state?.["minor-mode"]?.includes("plan") ? team.planningSubagents : void 0;
2481
+ const planningConfig = request.parentSelection?.state?.["mode"]?.includes("plan") ? team.planningSubagents : void 0;
2482
2482
  const planningPreferences = {
2483
2483
  subagentModel: planningConfig?.model,
2484
2484
  subagentThinking: planningConfig?.thinking
@@ -5250,7 +5250,7 @@ function mergeTeamPackageConfigurations(entries) {
5250
5250
  const excludeTools = /* @__PURE__ */ new Set();
5251
5251
  let hasExcludeTools = false;
5252
5252
  for (const entry of entries) {
5253
- const location = `Package "${entry.specifier}" config in layer "${entry.layer}" of .po/modes.yaml`;
5253
+ const location = `Package "${entry.specifier}" config in layer "${entry.layer}" of .po/presets.yaml`;
5254
5254
  const next = parseTeamPackageConfig(entry.config, location);
5255
5255
  if (next.models) models = next.models.map((model) => ({ ...model }));
5256
5256
  if (next.excludeTools) {
@@ -5304,11 +5304,11 @@ var TeamAgentConfigService = class {
5304
5304
  const { fs, homeDirectory, environment } = this.io;
5305
5305
  const defaults = snapshot.settings.subagents;
5306
5306
  const root = snapshot.harness.root;
5307
- const modes = root ? await (0, _agimon_ai_po_config_majorModes.readMajorModesConfig)(fs, root, _agimon_ai_po_core_platform.BACKGROUND_CONTEXT, {
5307
+ const presetsConfig = root ? await (0, _agimon_ai_po_config_presets.readPresetsConfig)(fs, root, _agimon_ai_po_core_platform.BACKGROUND_CONTEXT, {
5308
5308
  homeDirectory,
5309
5309
  environment
5310
5310
  }) : void 0;
5311
- const configurations = modes ? await (0, _agimon_ai_po_config_majorModes.readPackageConfigurations)(fs, modes, [...snapshot.harness.layers], PO_TEAM_PACKAGE, _agimon_ai_po_core_platform.BACKGROUND_CONTEXT) : [];
5311
+ const configurations = presetsConfig ? await (0, _agimon_ai_po_config_presets.readPackageConfigurations)(fs, presetsConfig, [...snapshot.harness.layers], PO_TEAM_PACKAGE, _agimon_ai_po_core_platform.BACKGROUND_CONTEXT) : [];
5312
5312
  const config = mergeTeamPackageConfigurations(configurations);
5313
5313
  const legacyModels = teamModelSpecs(config);
5314
5314
  const configuredModels = defaults?.model !== void 0 || defaults?.fallbackModels !== void 0;
@@ -5319,7 +5319,7 @@ var TeamAgentConfigService = class {
5319
5319
  excludeTools: defaults?.excludeTools ? [.../* @__PURE__ */ new Set([...config?.excludeTools ?? [], ...defaults.excludeTools])] : config?.excludeTools,
5320
5320
  planningSubagents: snapshot.settings.modes?.planning?.subagents,
5321
5321
  ...defaults ? { defaults } : {},
5322
- ...configuredModels ? { path: "config.yaml" } : config ? { path: configurations.at(-1)?.filePath ?? node_path.join(root, ".po", "modes.yaml") } : {}
5322
+ ...configuredModels ? { path: "config.yaml" } : config ? { path: configurations.at(-1)?.filePath ?? node_path.join(root, ".po", "presets.yaml") } : {}
5323
5323
  };
5324
5324
  }
5325
5325
  };