@a-company/paradigm 5.9.0 → 5.10.0

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.
Files changed (29) hide show
  1. package/dist/{accept-orchestration-GX2YRWM4.js → accept-orchestration-UQLM7PTQ.js} +4 -4
  2. package/dist/{agent-loader-X7TDYLFL.js → agent-loader-TFIANSF4.js} +1 -1
  3. package/dist/agent-state-S5DAWPTF.js +24 -0
  4. package/dist/{chunk-3UCH56D5.js → chunk-4BLYIB7J.js} +270 -928
  5. package/dist/chunk-4L3UTYQX.js +677 -0
  6. package/dist/chunk-54LTTQBH.js +138 -0
  7. package/dist/chunk-5OUOLN6M.js +659 -0
  8. package/dist/{chunk-SDDCVUCV.js → chunk-CL7JSK52.js} +23 -0
  9. package/dist/{chunk-MA7G4CTI.js → chunk-RJE5G7WO.js} +27 -1
  10. package/dist/{chunk-EI32ZBE6.js → chunk-RTHA3XRE.js} +19 -672
  11. package/dist/{chunk-V7BZBBI6.js → chunk-VPPK3SY4.js} +1 -1
  12. package/dist/{chunk-WQITYKHM.js → chunk-YRZ5RPEB.js} +7 -7
  13. package/dist/{diff-RQLLNAFI.js → diff-D4X53HAC.js} +4 -4
  14. package/dist/{docs-AIY6VNF7.js → docs-QIYKO3BR.js} +1 -1
  15. package/dist/index.js +19 -19
  16. package/dist/mcp.js +140 -66
  17. package/dist/model-discovery-D2H3VBGC.js +8 -0
  18. package/dist/{nomination-engine-LLREC5BZ.js → nomination-engine-RV5CNO5B.js} +2 -2
  19. package/dist/{orchestrate-XZA33TJC.js → orchestrate-JLILBBJE.js} +4 -4
  20. package/dist/{reindex-U2HEB6GW.js → reindex-5LTD53ZC.js} +3 -2
  21. package/dist/{serve-QWWJP2EW.js → serve-CAH3PHE7.js} +1 -1
  22. package/dist/session-tracker-C4BMD5WG.js +13 -0
  23. package/dist/{session-work-log-KDOH4GER.js → session-work-log-MZ47OAPB.js} +1 -1
  24. package/dist/{shift-VJUGMADR.js → shift-D2JOHHBF.js} +33 -5
  25. package/dist/{spawn-AW6GDECS.js → spawn-RCHNXDHE.js} +4 -4
  26. package/dist/{team-7HG7XK5C.js → team-O5MIIFMA.js} +6 -5
  27. package/package.json +1 -1
  28. package/dist/{chunk-LSRABQIY.js → chunk-45MUDW6E.js} +3 -3
  29. /package/dist/{platform-server-U5L2G3EU.js → platform-server-H5YO3DQD.js} +0 -0
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ MODEL_PRICING,
4
+ getSessionTracker,
5
+ resetSessionTracker
6
+ } from "./chunk-4L3UTYQX.js";
7
+ import "./chunk-CL7JSK52.js";
8
+ import "./chunk-7N7GSU6K.js";
9
+ export {
10
+ MODEL_PRICING,
11
+ getSessionTracker,
12
+ resetSessionTracker
13
+ };
@@ -7,7 +7,7 @@ import {
7
7
  getContributingAgents,
8
8
  init_session_work_log,
9
9
  readSessionWorkLog
10
- } from "./chunk-SDDCVUCV.js";
10
+ } from "./chunk-CL7JSK52.js";
11
11
  import "./chunk-7N7GSU6K.js";
12
12
  init_session_work_log();
13
13
  export {
@@ -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.10.0",
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,