@a-company/paradigm 5.9.0 → 5.9.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.
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- AgentSpawner,
4
- extractSymbols
5
- } from "./chunk-LSRABQIY.js";
6
- import {
7
- AuditLogger
8
- } from "./chunk-PBHIFAL4.js";
9
2
  import {
10
3
  suggestAgentsForTask
11
4
  } from "./chunk-6QC3YGB6.js";
5
+ import {
6
+ AgentSpawner,
7
+ extractSymbols
8
+ } from "./chunk-45MUDW6E.js";
12
9
  import {
13
10
  loadAgentsManifest
14
11
  } from "./chunk-PMXRGPRQ.js";
12
+ import {
13
+ AuditLogger
14
+ } from "./chunk-PBHIFAL4.js";
15
15
  import {
16
16
  calculateCost
17
17
  } from "./chunk-5JGJACDU.js";
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  BackgroundOrchestrator
4
- } from "./chunk-WQITYKHM.js";
5
- import "./chunk-LSRABQIY.js";
6
- import "./chunk-PBHIFAL4.js";
7
- import "./chunk-TXESEO7Y.js";
4
+ } from "./chunk-YRZ5RPEB.js";
8
5
  import "./chunk-6QC3YGB6.js";
6
+ import "./chunk-45MUDW6E.js";
9
7
  import "./chunk-PMXRGPRQ.js";
8
+ import "./chunk-PBHIFAL4.js";
9
+ import "./chunk-TXESEO7Y.js";
10
10
  import "./chunk-5JGJACDU.js";
11
11
  import "./chunk-ZGUAAVMA.js";
12
12
  import "./chunk-EDOAWN7J.js";
@@ -17,7 +17,7 @@ async function docsServeCommand(options) {
17
17
  const shouldOpen = options.open !== false;
18
18
  console.log(chalk.cyan("\n Starting Paradigm Docs...\n"));
19
19
  try {
20
- const { startPlatformServer } = await import("./platform-server-U5L2G3EU.js");
20
+ const { startPlatformServer } = await import("./platform-server-H5YO3DQD.js");
21
21
  await startPlatformServer({
22
22
  projectDir,
23
23
  port,
package/dist/index.js CHANGED
@@ -111,7 +111,7 @@ ${chalk2.magenta("\u2569 ")}${chalk2.cyan("\u2534 \u2534\u2534\u2514\u2500\u253
111
111
  program.name("paradigm").description("Unified developer tools ecosystem").version(VERSION).addHelpText("before", banner);
112
112
  program.command("init").description("Initialize Paradigm in the current project").option("-f, --force", "Overwrite existing files").option("--name <name>", "Project name").option("--ide <ide>", "Target IDE: cursor, copilot, windsurf, claude").option("--stack <stack>", "Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--migrate", "Output migration prompt for existing IDE files").option("--quick", "Non-interactive mode with smart defaults").option("--dry-run", "Show what would be created without creating").action(initCommand);
113
113
  program.command("shift").description("Full project setup in one command (init + team init + scan + sync all IDEs + doctor)").option("-f, --force", "Reinitialize even if already setup").option("-q, --quick", "Skip slow operations (scan)").option("--verify", "Run health checks after setup").option("--ide <ide>", "Target specific IDE instead of all").option("--configure-models", "Force model configuration prompts for team agents").option("--stack <stack>", "Stack preset (e.g., nextjs, fastapi, swift-ios). Auto-detected if omitted.").option("--workspace <name>", "Create or join a multi-project workspace with this name (creates ../.paradigm-workspace)").option("--workspace-path <path>", "Custom workspace file location (default: ../.paradigm-workspace)").action(async (options) => {
114
- const { shiftCommand } = await import("./shift-VJUGMADR.js");
114
+ const { shiftCommand } = await import("./shift-D2JOHHBF.js");
115
115
  await shiftCommand(options);
116
116
  });
117
117
  program.command("presets").description("List available stack presets for paradigm init/shift").option("-d, --discipline <discipline>", "Filter by discipline (e.g., fullstack, api, mobile)").action(async (options) => {
@@ -254,7 +254,7 @@ flowCmd.action(() => {
254
254
  });
255
255
  var teamCmd = program.command("team").description("Multi-agent orchestration commands");
256
256
  teamCmd.command("init [path]").description("Initialize team configuration with default agents").option("-f, --force", "Overwrite existing configuration").option("--configure-models", "Force model configuration prompts").option("--no-configure-models", "Skip model configuration").option("--json", "Output as JSON").action(async (path2, options) => {
257
- const { teamInitCommand } = await import("./team-7HG7XK5C.js");
257
+ const { teamInitCommand } = await import("./team-O5MIIFMA.js");
258
258
  await teamInitCommand(path2, {
259
259
  ...options,
260
260
  configureModels: options.configureModels,
@@ -262,47 +262,47 @@ teamCmd.command("init [path]").description("Initialize team configuration with d
262
262
  });
263
263
  });
264
264
  teamCmd.command("status [path]").description("Show current team status").option("--running", "Show only running orchestrations").option("--id <id>", "Show specific orchestration").option("--json", "Output as JSON").action(async (path2, options) => {
265
- const { teamStatusCommand } = await import("./team-7HG7XK5C.js");
265
+ const { teamStatusCommand } = await import("./team-O5MIIFMA.js");
266
266
  await teamStatusCommand(path2, options);
267
267
  });
268
268
  teamCmd.command("handoff [path]").description("Hand off current task to another agent").requiredOption("-t, --to <agent>", "Target agent name").option("-s, --summary <text>", "Summary of what was done").option("--json", "Output as JSON").action(async (path2, options) => {
269
- const { teamHandoffCommand } = await import("./team-7HG7XK5C.js");
269
+ const { teamHandoffCommand } = await import("./team-O5MIIFMA.js");
270
270
  await teamHandoffCommand(path2, options);
271
271
  });
272
272
  teamCmd.command("accept [handoff-id] [path]").description("Accept a pending handoff").option("-n, --note <text>", "Acceptance note").option("--json", "Output as JSON").action(async (handoffId, path2, options) => {
273
- const { teamAcceptCommand } = await import("./team-7HG7XK5C.js");
273
+ const { teamAcceptCommand } = await import("./team-O5MIIFMA.js");
274
274
  await teamAcceptCommand(handoffId, path2, options);
275
275
  });
276
276
  teamCmd.command("check [path]").description("Check for conflicts and team health issues").option("--json", "Output as JSON").action(async (path2, options) => {
277
- const { teamCheckCommand } = await import("./team-7HG7XK5C.js");
277
+ const { teamCheckCommand } = await import("./team-O5MIIFMA.js");
278
278
  await teamCheckCommand(path2, options);
279
279
  });
280
280
  teamCmd.command("history [path]").description("Show full activity log").option("-l, --limit <number>", "Number of entries to show", "50").option("--json", "Output as JSON").action(async (path2, options) => {
281
- const { teamHistoryCommand } = await import("./team-7HG7XK5C.js");
281
+ const { teamHistoryCommand } = await import("./team-O5MIIFMA.js");
282
282
  await teamHistoryCommand(path2, { ...options, limit: parseInt(options.limit) });
283
283
  });
284
284
  teamCmd.command("reset [path]").description("Reset team state for fresh start").option("-f, --force", "Force reset even with pending work").option("--json", "Output as JSON").action(async (path2, options) => {
285
- const { teamResetCommand } = await import("./team-7HG7XK5C.js");
285
+ const { teamResetCommand } = await import("./team-O5MIIFMA.js");
286
286
  await teamResetCommand(path2, options);
287
287
  });
288
288
  teamCmd.command("spawn <agent> [path]").description("Spawn an AI agent to work on a task").requiredOption("-t, --task <task>", "Task for the agent to perform").option("-m, --model <model>", "Model to use: opus, sonnet, haiku").option("-p, --provider <provider>", "Provider: auto, claude, claude-code, claude-cli, manual").option("--budget <budget>", 'Budget limits (e.g., "tokens=100000,cost=2")').option("--timeout <ms>", "Timeout in milliseconds").option("--checkpoint", "Pause for approval before writes/deletes").option("-q, --quiet", "Suppress output").option("--json", "Output as JSON").action(async (agent, path2, options) => {
289
- const { teamSpawnCommand } = await import("./spawn-AW6GDECS.js");
289
+ const { teamSpawnCommand } = await import("./spawn-RCHNXDHE.js");
290
290
  await teamSpawnCommand(agent, path2, options);
291
291
  });
292
292
  teamCmd.command("orchestrate <task> [path]").description("Orchestrate a multi-agent task").option("--solo", "Run in solo mode (single Claude)").option("--faceted", "Run in faceted mode (multi-agent, default)").option("--compare", "Run both modes and compare results").option("--background", "Run in background mode (returns immediately)").option("--notify <methods>", "Notification methods: bell,desktop,file,webhook (default: bell)").option("-m, --model <model>", "Orchestrator model: opus, sonnet, haiku").option("-p, --provider <provider>", "Provider: auto, claude, claude-code, claude-cli, manual").option("--budget <budget>", 'Budget limits (e.g., "tokens=500000,cost=5")').option("--checkpoint", "Pause for approval between agents").option("--live", "Stream agent output live").option("--pm", "Enable PM governance (compliance checks before/after)").option("-q, --quiet", "Suppress output").option("--json", "Output as JSON").action(async (task, path2, options) => {
293
- const { teamOrchestrateCommand } = await import("./orchestrate-XZA33TJC.js");
293
+ const { teamOrchestrateCommand } = await import("./orchestrate-JLILBBJE.js");
294
294
  await teamOrchestrateCommand(task, path2, options);
295
295
  });
296
296
  teamCmd.command("diff <orchestration-id> [path]").description("Show diff of changes from a completed orchestration").option("--full", "Show full file contents").option("--json", "Output as JSON").action(async (orchestrationId, path2, options) => {
297
- const { teamDiffCommand } = await import("./diff-RQLLNAFI.js");
297
+ const { teamDiffCommand } = await import("./diff-D4X53HAC.js");
298
298
  await teamDiffCommand(orchestrationId, path2, options);
299
299
  });
300
300
  teamCmd.command("accept-orch <orchestration-id> [path]").description("Accept orchestration changes").option("-n, --note <text>", "Acceptance note").option("--json", "Output as JSON").action(async (orchestrationId, path2, options) => {
301
- const { teamAcceptOrchestrationCommand } = await import("./accept-orchestration-GX2YRWM4.js");
301
+ const { teamAcceptOrchestrationCommand } = await import("./accept-orchestration-UQLM7PTQ.js");
302
302
  await teamAcceptOrchestrationCommand(orchestrationId, path2, options);
303
303
  });
304
304
  teamCmd.command("reject-orch <orchestration-id> [path]").description("Reject orchestration changes").option("-r, --reason <text>", "Rejection reason").option("--cleanup", "Delete created files").option("--json", "Output as JSON").action(async (orchestrationId, path2, options) => {
305
- const { teamRejectOrchestrationCommand } = await import("./accept-orchestration-GX2YRWM4.js");
305
+ const { teamRejectOrchestrationCommand } = await import("./accept-orchestration-UQLM7PTQ.js");
306
306
  await teamRejectOrchestrationCommand(orchestrationId, path2, options);
307
307
  });
308
308
  teamCmd.command("cost [path]").description("Show cost summary for orchestrations").option("--from <date>", "From date (ISO format)").option("--to <date>", "To date (ISO format)").option("--days <n>", "Last N days").option("-d, --detailed", "Show detailed breakdown").option("--json", "Output as JSON").action(async (path2, options) => {
@@ -318,7 +318,7 @@ teamCmd.command("providers [path]").description("Show available agent providers
318
318
  await teamProvidersCommand(path2, options);
319
319
  });
320
320
  teamCmd.command("models [path]").description("Configure or view agent model assignments").option("--refresh", "Refresh model cache from environment").option("--json", "Output as JSON").action(async (path2, options) => {
321
- const { teamModelsCommand } = await import("./team-7HG7XK5C.js");
321
+ const { teamModelsCommand } = await import("./team-O5MIIFMA.js");
322
322
  await teamModelsCommand(path2, options);
323
323
  });
324
324
  var agentsCmd = teamCmd.command("agents").description("Agent management commands");
@@ -333,7 +333,7 @@ agentsCmd.action(() => {
333
333
  console.log("\nRun `paradigm team agents suggest --help` for options.\n");
334
334
  });
335
335
  teamCmd.action(async () => {
336
- const { teamStatusCommand } = await import("./team-7HG7XK5C.js");
336
+ const { teamStatusCommand } = await import("./team-O5MIIFMA.js");
337
337
  await teamStatusCommand(void 0, {});
338
338
  });
339
339
  var pluginCmd = program.command("plugin").description("Plugin management commands");
@@ -719,7 +719,7 @@ loreCmd.option("-p, --port <port>", "Port to run on", "3840").option("--no-open"
719
719
  await loreServeCommand(void 0, options);
720
720
  });
721
721
  program.command("serve").description("Launch Paradigm Platform \u2014 unified development management UI").option("-p, --port <port>", "Port to run on", "3850").option("--no-open", "Don't open browser automatically").option("--sections <list>", "Comma-separated sections to enable (e.g., lore,graph,git)").action(async (options) => {
722
- const { serveCommand } = await import("./serve-QWWJP2EW.js");
722
+ const { serveCommand } = await import("./serve-CAH3PHE7.js");
723
723
  await serveCommand(options);
724
724
  });
725
725
  var graphCmd = program.command("graph").description("Interactive symbol relationship graph").argument("[path]", "Project directory", void 0).option("-p, --port <port>", "Port to run on", "3841").option("--no-open", "Don't open browser automatically").action(async (path2, options) => {
@@ -857,15 +857,15 @@ universityCmd.option("-p, --port <port>", "Port to run on", "3839").option("--no
857
857
  });
858
858
  var docsCmd = program.command("docs").description("Auto-generated documentation from the symbol graph");
859
859
  docsCmd.command("serve").description("Launch interactive docs viewer in browser").option("-p, --port <port>", "Port number (default: 3850)").option("--no-open", "Do not open browser automatically").action(async (options) => {
860
- const { docsServeCommand } = await import("./docs-AIY6VNF7.js");
860
+ const { docsServeCommand } = await import("./docs-QIYKO3BR.js");
861
861
  await docsServeCommand(options);
862
862
  });
863
863
  docsCmd.command("build").description("Build static documentation site").option("-o, --output <dir>", "Output directory (default: from config or .paradigm/docs-site)").action(async (options) => {
864
- const { docsBuildCommand } = await import("./docs-AIY6VNF7.js");
864
+ const { docsBuildCommand } = await import("./docs-QIYKO3BR.js");
865
865
  await docsBuildCommand(options);
866
866
  });
867
867
  docsCmd.action(async () => {
868
- const { docsServeCommand } = await import("./docs-AIY6VNF7.js");
868
+ const { docsServeCommand } = await import("./docs-QIYKO3BR.js");
869
869
  await docsServeCommand({});
870
870
  });
871
871
  var pipelineCmd = program.command("pipeline").description("Spec pipeline \u2014 structured feature workflow with configurable gates");
package/dist/mcp.js CHANGED
@@ -5717,14 +5717,50 @@ import * as path13 from "path";
5717
5717
  import * as yaml8 from "js-yaml";
5718
5718
  init_agent_loader();
5719
5719
  var SYMBOL_PATTERN = /[@#$%^!?&~][a-zA-Z0-9_-]+/g;
5720
- var DEFAULT_MODELS = {
5721
- architect: "opus",
5722
- security: "opus",
5723
- reviewer: "sonnet",
5724
- builder: "haiku",
5725
- tester: "haiku",
5726
- documentor: "haiku"
5720
+ var AGENT_TIERS = {
5721
+ architect: "tier-1",
5722
+ security: "tier-1",
5723
+ advocate: "tier-1",
5724
+ product: "tier-1",
5725
+ operations: "tier-1",
5726
+ sales: "tier-1",
5727
+ reviewer: "tier-2",
5728
+ designer: "tier-2",
5729
+ copywriter: "tier-2",
5730
+ researcher: "tier-2",
5731
+ analyst: "tier-2",
5732
+ dx: "tier-2",
5733
+ qa: "tier-2",
5734
+ debugger: "tier-2",
5735
+ builder: "tier-3",
5736
+ tester: "tier-3",
5737
+ documentor: "tier-3",
5738
+ sysadmin: "tier-3",
5739
+ archivist: "tier-3",
5740
+ release: "tier-3"
5727
5741
  };
5742
+ var DEFAULT_TIER_MODELS = {
5743
+ "tier-1": "opus",
5744
+ "tier-2": "sonnet",
5745
+ "tier-3": "haiku"
5746
+ };
5747
+ function resolveModelForAgent(agentName, rootDir, agentDef) {
5748
+ try {
5749
+ const configPath = path13.join(rootDir, ".paradigm", "config.yaml");
5750
+ if (fs12.existsSync(configPath)) {
5751
+ const config = yaml8.load(fs12.readFileSync(configPath, "utf8"));
5752
+ const resolution = config?.["model-resolution"];
5753
+ if (resolution) {
5754
+ const tier2 = agentDef?.modelTier || AGENT_TIERS[agentName] || "tier-2";
5755
+ if (resolution[tier2]) return resolution[tier2];
5756
+ }
5757
+ }
5758
+ } catch {
5759
+ }
5760
+ if (agentDef?.defaultModel) return agentDef.defaultModel;
5761
+ const tier = AGENT_TIERS[agentName] || "tier-2";
5762
+ return DEFAULT_TIER_MODELS[tier] || "sonnet";
5763
+ }
5728
5764
  var AGENT_TOKEN_ESTIMATES = {
5729
5765
  architect: { min: 5e3, max: 2e4 },
5730
5766
  security: { min: 3e3, max: 15e3 },
@@ -6117,7 +6153,7 @@ async function handleOrchestrateInline(args, ctx) {
6117
6153
  name: manifestAgent?.name || agentStep.name,
6118
6154
  role: manifestAgent?.role || ROLE_PROMPTS[agentStep.name] || `${agentStep.name} agent`,
6119
6155
  focus: manifestAgent?.focus || { reads: ["**/*"], writes: ["**/*"] },
6120
- defaultModel: manifestAgent?.defaultModel || DEFAULT_MODELS[agentStep.name] || "sonnet",
6156
+ defaultModel: resolveModelForAgent(agentStep.name, ctx.rootDir, manifestAgent),
6121
6157
  triggers: manifestAgent?.triggers,
6122
6158
  handoff_to: manifestAgent?.handoff_to,
6123
6159
  context: manifestAgent?.context,
@@ -6294,7 +6330,7 @@ async function handleAgentPrompt(args, ctx) {
6294
6330
  name: manifestAgent?.name || agentName,
6295
6331
  role: manifestAgent?.role || ROLE_PROMPTS[agentName] || ROLE_PROMPTS.builder,
6296
6332
  focus: manifestAgent?.focus || { reads: ["**/*"], writes: ["**/*"] },
6297
- defaultModel: manifestAgent?.defaultModel || DEFAULT_MODELS[agentName] || "sonnet",
6333
+ defaultModel: resolveModelForAgent(agentName, ctx.rootDir, manifestAgent),
6298
6334
  triggers: manifestAgent?.triggers,
6299
6335
  handoff_to: manifestAgent?.handoff_to,
6300
6336
  context: manifestAgent?.context,
@@ -6578,7 +6614,7 @@ handoff_context: |
6578
6614
 
6579
6615
  This structured output helps track progress and pass context between agents.`);
6580
6616
  const prompt = parts.join("\n");
6581
- const model = agent.defaultModel || DEFAULT_MODELS[agent.name] || "sonnet";
6617
+ const model = agent.defaultModel || DEFAULT_TIER_MODELS[AGENT_TIERS[agent.name] || "tier-2"] || "sonnet";
6582
6618
  const attribution = options.nickname ? `[${options.nickname} (${agent.name})]` : `[${agent.name}]`;
6583
6619
  return {
6584
6620
  agent: agent.name,
@@ -6775,7 +6811,7 @@ function generateCostPreviewLocal(plan, classification) {
6775
6811
  for (const stage of plan.stages) {
6776
6812
  for (const agentStep of stage.agents) {
6777
6813
  const base = AGENT_BASE_TOKENS[agentStep.name] || { input: 5e3, output: 3e3 };
6778
- const model = DEFAULT_MODELS[agentStep.name] || "sonnet";
6814
+ const model = DEFAULT_TIER_MODELS[AGENT_TIERS[agentStep.name] || "tier-2"] || "sonnet";
6779
6815
  const pricing = MODEL_PRICING[model];
6780
6816
  const input = Math.round(base.input * complexityMultiplier);
6781
6817
  const output = Math.round(base.output * complexityMultiplier);
@@ -6793,7 +6829,7 @@ function generateCostPreviewLocal(plan, classification) {
6793
6829
  }
6794
6830
  let baselineCost = 0;
6795
6831
  for (const [agent, base] of Object.entries(AGENT_BASE_TOKENS)) {
6796
- const model = DEFAULT_MODELS[agent] || "sonnet";
6832
+ const model = DEFAULT_TIER_MODELS[AGENT_TIERS[agent] || "tier-2"] || "sonnet";
6797
6833
  const pricing = MODEL_PRICING[model];
6798
6834
  baselineCost += base.input / 1e6 * pricing.input + base.output / 1e6 * pricing.output;
6799
6835
  }
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ ModelDiscovery
4
+ } from "./chunk-5OUOLN6M.js";
5
+ import "./chunk-PDX44BCA.js";
6
+ export {
7
+ ModelDiscovery
8
+ };
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  BackgroundOrchestrator,
4
4
  Orchestrator
5
- } from "./chunk-WQITYKHM.js";
6
- import "./chunk-LSRABQIY.js";
7
- import "./chunk-PBHIFAL4.js";
8
- import "./chunk-TXESEO7Y.js";
5
+ } from "./chunk-YRZ5RPEB.js";
9
6
  import "./chunk-6QC3YGB6.js";
7
+ import "./chunk-45MUDW6E.js";
10
8
  import {
11
9
  loadAgentsManifest
12
10
  } from "./chunk-PMXRGPRQ.js";
11
+ import "./chunk-PBHIFAL4.js";
12
+ import "./chunk-TXESEO7Y.js";
13
13
  import {
14
14
  formatCost,
15
15
  formatTokens
@@ -10,7 +10,7 @@ async function serveCommand(options) {
10
10
  const sections = options.sections ? options.sections.split(",").map((s) => s.trim()) : void 0;
11
11
  console.log(chalk.cyan("\n Starting Paradigm Platform...\n"));
12
12
  try {
13
- const { startPlatformServer } = await import("./platform-server-U5L2G3EU.js");
13
+ const { startPlatformServer } = await import("./platform-server-H5YO3DQD.js");
14
14
  await startPlatformServer({ port, projectDir, open: shouldOpen, sections });
15
15
  console.log(chalk.green(` Platform running at ${chalk.bold(`http://localhost:${port}`)}`));
16
16
  console.log(chalk.gray(" Press Ctrl+C to stop\n"));
@@ -1,15 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  teamInitCommand
4
- } from "./chunk-EI32ZBE6.js";
5
- import "./chunk-WQITYKHM.js";
6
- import "./chunk-LSRABQIY.js";
7
- import "./chunk-PBHIFAL4.js";
8
- import "./chunk-TXESEO7Y.js";
4
+ } from "./chunk-RTHA3XRE.js";
5
+ import "./chunk-YRZ5RPEB.js";
9
6
  import "./chunk-6QC3YGB6.js";
7
+ import "./chunk-45MUDW6E.js";
10
8
  import {
11
9
  agentsConfigured
12
10
  } from "./chunk-PMXRGPRQ.js";
11
+ import "./chunk-PBHIFAL4.js";
12
+ import "./chunk-TXESEO7Y.js";
13
+ import "./chunk-5OUOLN6M.js";
13
14
  import {
14
15
  hooksInstallCommand
15
16
  } from "./chunk-GTR2TBIJ.js";
@@ -442,6 +443,33 @@ workspace: "${relPath}"
442
443
  console.log(chalk.gray(" \u2713 Agent roster exists"));
443
444
  }
444
445
  }
446
+ {
447
+ const configForTiers = path2.join(paradigmDir, "config.yaml");
448
+ if (fs2.existsSync(configForTiers)) {
449
+ try {
450
+ const configContent = fs2.readFileSync(configForTiers, "utf8");
451
+ const config = yaml.load(configContent);
452
+ if (!config["model-resolution"] || options.force) {
453
+ const { ModelDiscovery } = await import("./model-discovery-D2H3VBGC.js");
454
+ const discovery = new ModelDiscovery(cwd);
455
+ const env = discovery.detectEnvironment();
456
+ let tierMap;
457
+ if (env === "claude-code") {
458
+ tierMap = { "tier-1": "opus", "tier-2": "sonnet", "tier-3": "haiku" };
459
+ } else if (env === "cursor") {
460
+ tierMap = { "tier-1": "sonnet", "tier-2": "sonnet", "tier-3": "haiku" };
461
+ } else {
462
+ tierMap = { "tier-1": "sonnet", "tier-2": "sonnet", "tier-3": "sonnet" };
463
+ }
464
+ config["model-resolution"] = tierMap;
465
+ fs2.writeFileSync(configForTiers, yaml.dump(config, { lineWidth: -1, noRefs: true }), "utf8");
466
+ console.log(chalk.green(` \u2713 Model tiers configured for ${chalk.cyan(env)}: tier-1=${tierMap["tier-1"]}, tier-2=${tierMap["tier-2"]}, tier-3=${tierMap["tier-3"]}`));
467
+ }
468
+ } catch (e) {
469
+ log.operation("shift").debug("Model tier config failed", { error: e.message });
470
+ }
471
+ }
472
+ }
445
473
  if (!options.quick) {
446
474
  spinner.start("Step 3/6: Scanning and indexing symbols...");
447
475
  try {
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AgentSpawner
4
- } from "./chunk-LSRABQIY.js";
4
+ } from "./chunk-45MUDW6E.js";
5
+ import {
6
+ loadAgentsManifest
7
+ } from "./chunk-PMXRGPRQ.js";
5
8
  import "./chunk-PBHIFAL4.js";
6
9
  import {
7
10
  getBestProvider
8
11
  } from "./chunk-TXESEO7Y.js";
9
- import {
10
- loadAgentsManifest
11
- } from "./chunk-PMXRGPRQ.js";
12
12
  import {
13
13
  formatTokens
14
14
  } from "./chunk-5JGJACDU.js";
@@ -8,13 +8,14 @@ import {
8
8
  teamModelsCommand,
9
9
  teamResetCommand,
10
10
  teamStatusCommand
11
- } from "./chunk-EI32ZBE6.js";
12
- import "./chunk-WQITYKHM.js";
13
- import "./chunk-LSRABQIY.js";
14
- import "./chunk-PBHIFAL4.js";
15
- import "./chunk-TXESEO7Y.js";
11
+ } from "./chunk-RTHA3XRE.js";
12
+ import "./chunk-YRZ5RPEB.js";
16
13
  import "./chunk-6QC3YGB6.js";
14
+ import "./chunk-45MUDW6E.js";
17
15
  import "./chunk-PMXRGPRQ.js";
16
+ import "./chunk-PBHIFAL4.js";
17
+ import "./chunk-TXESEO7Y.js";
18
+ import "./chunk-5OUOLN6M.js";
18
19
  import "./chunk-5JGJACDU.js";
19
20
  import "./chunk-ZGUAAVMA.js";
20
21
  import "./chunk-EDOAWN7J.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-company/paradigm",
3
- "version": "5.9.0",
3
+ "version": "5.9.1",
4
4
  "description": "Unified CLI for Paradigm developer tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ loadAgentsManifest
4
+ } from "./chunk-PMXRGPRQ.js";
2
5
  import {
3
6
  AuditLogger
4
7
  } from "./chunk-PBHIFAL4.js";
@@ -6,9 +9,6 @@ import {
6
9
  getProvider,
7
10
  initializeProviders
8
11
  } from "./chunk-TXESEO7Y.js";
9
- import {
10
- loadAgentsManifest
11
- } from "./chunk-PMXRGPRQ.js";
12
12
  import {
13
13
  calculateCost,
14
14
  formatCost,