oh-my-copilot 5.29.0 → 5.29.2

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 (127) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +6 -0
  4. package/bridge/claude-md-coordinator.cjs +2 -2
  5. package/bridge/cli.cjs +38838 -38373
  6. package/bridge/mcp-server.cjs +53 -21
  7. package/bridge/runtime-cli.cjs +1414 -784
  8. package/bridge/team-mcp.cjs +154 -97
  9. package/bridge/team.js +946 -314
  10. package/copilot/agents/analyst.md +1 -1
  11. package/copilot/agents/architect.md +1 -1
  12. package/copilot/agents/code-reviewer.md +1 -1
  13. package/copilot/agents/code-simplifier.md +1 -1
  14. package/copilot/agents/critic.md +1 -1
  15. package/copilot/agents/debugger.md +1 -1
  16. package/copilot/agents/designer.md +1 -1
  17. package/copilot/agents/devils-advocate.md +1 -1
  18. package/copilot/agents/document-specialist.md +1 -1
  19. package/copilot/agents/executor.md +1 -1
  20. package/copilot/agents/explore.md +1 -1
  21. package/copilot/agents/git-master.md +1 -1
  22. package/copilot/agents/planner.md +1 -1
  23. package/copilot/agents/qa-tester.md +1 -1
  24. package/copilot/agents/scientist.md +1 -1
  25. package/copilot/agents/security-reviewer.md +1 -1
  26. package/copilot/agents/test-engineer.md +1 -1
  27. package/copilot/agents/tracer.md +1 -1
  28. package/copilot/agents/verifier.md +1 -1
  29. package/copilot/agents/writer.md +1 -1
  30. package/dist/__tests__/copilot-agents-manifest.test.js +7 -4
  31. package/dist/__tests__/copilot-agents-manifest.test.js.map +1 -1
  32. package/dist/__tests__/setup/stub-copilot-catalogue.d.ts +2 -0
  33. package/dist/__tests__/setup/stub-copilot-catalogue.d.ts.map +1 -0
  34. package/dist/__tests__/setup/stub-copilot-catalogue.js +12 -0
  35. package/dist/__tests__/setup/stub-copilot-catalogue.js.map +1 -0
  36. package/dist/cli/index.d.ts.map +1 -1
  37. package/dist/cli/index.js +7 -3
  38. package/dist/cli/index.js.map +1 -1
  39. package/dist/config/copilot-models.json +18 -5
  40. package/dist/copilot-run/__tests__/model-catalogue.test.d.ts +2 -0
  41. package/dist/copilot-run/__tests__/model-catalogue.test.d.ts.map +1 -0
  42. package/dist/copilot-run/__tests__/model-catalogue.test.js +277 -0
  43. package/dist/copilot-run/__tests__/model-catalogue.test.js.map +1 -0
  44. package/dist/copilot-run/job.d.ts.map +1 -1
  45. package/dist/copilot-run/job.js +2 -2
  46. package/dist/copilot-run/job.js.map +1 -1
  47. package/dist/copilot-run/model-catalogue.d.ts +119 -0
  48. package/dist/copilot-run/model-catalogue.d.ts.map +1 -0
  49. package/dist/copilot-run/model-catalogue.js +318 -0
  50. package/dist/copilot-run/model-catalogue.js.map +1 -0
  51. package/dist/factory/bench/model-probe.js +4 -4
  52. package/dist/factory/bench/model-probe.js.map +1 -1
  53. package/dist/factory/run/sandbox-exec.js +4 -4
  54. package/dist/factory/run/sandbox-exec.js.map +1 -1
  55. package/dist/graph/__tests__/runtime/executors/agent.test.js +1 -1
  56. package/dist/graph/__tests__/runtime/executors/agent.test.js.map +1 -1
  57. package/dist/graph/runtime/executors/agent.d.ts +1 -1
  58. package/dist/graph/runtime/executors/agent.js +3 -3
  59. package/dist/graph/runtime/executors/agent.js.map +1 -1
  60. package/dist/installer/__tests__/copilot-agent-models.test.js +79 -9
  61. package/dist/installer/__tests__/copilot-agent-models.test.js.map +1 -1
  62. package/dist/installer/__tests__/setup-copilot-catalogue.test.d.ts +2 -0
  63. package/dist/installer/__tests__/setup-copilot-catalogue.test.d.ts.map +1 -0
  64. package/dist/installer/__tests__/setup-copilot-catalogue.test.js +33 -0
  65. package/dist/installer/__tests__/setup-copilot-catalogue.test.js.map +1 -0
  66. package/dist/installer/copilot-agent-models.d.ts +23 -5
  67. package/dist/installer/copilot-agent-models.d.ts.map +1 -1
  68. package/dist/installer/copilot-agent-models.js +67 -13
  69. package/dist/installer/copilot-agent-models.js.map +1 -1
  70. package/dist/installer/index.d.ts +13 -0
  71. package/dist/installer/index.d.ts.map +1 -1
  72. package/dist/installer/index.js +32 -4
  73. package/dist/installer/index.js.map +1 -1
  74. package/dist/platform/process-utils.d.ts.map +1 -1
  75. package/dist/platform/process-utils.js +3 -1
  76. package/dist/platform/process-utils.js.map +1 -1
  77. package/dist/smoke/__tests__/copilot-sdk-driver.test.js +112 -1
  78. package/dist/smoke/__tests__/copilot-sdk-driver.test.js.map +1 -1
  79. package/dist/smoke/copilot-sandbox-lane-scenario.d.ts +1 -1
  80. package/dist/smoke/copilot-sandbox-lane-scenario.d.ts.map +1 -1
  81. package/dist/smoke/copilot-sandbox-lane-scenario.js +4 -3
  82. package/dist/smoke/copilot-sandbox-lane-scenario.js.map +1 -1
  83. package/dist/smoke/copilot-sdk-driver.d.ts +40 -1
  84. package/dist/smoke/copilot-sdk-driver.d.ts.map +1 -1
  85. package/dist/smoke/copilot-sdk-driver.js +126 -8
  86. package/dist/smoke/copilot-sdk-driver.js.map +1 -1
  87. package/dist/smoke/copilot-sdk-scenarios.d.ts +2 -0
  88. package/dist/smoke/copilot-sdk-scenarios.d.ts.map +1 -1
  89. package/dist/smoke/copilot-sdk-scenarios.js +3 -1
  90. package/dist/smoke/copilot-sdk-scenarios.js.map +1 -1
  91. package/dist/team/__tests__/copilot-model-resolution.test.d.ts +2 -0
  92. package/dist/team/__tests__/copilot-model-resolution.test.d.ts.map +1 -0
  93. package/dist/team/__tests__/copilot-model-resolution.test.js +93 -0
  94. package/dist/team/__tests__/copilot-model-resolution.test.js.map +1 -0
  95. package/dist/team/__tests__/model-contract.test.js +3 -3
  96. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  97. package/dist/team/__tests__/runtime-v2.sdk-defaults.test.js +11 -1
  98. package/dist/team/__tests__/runtime-v2.sdk-defaults.test.js.map +1 -1
  99. package/dist/team/__tests__/scaling-launch-config.test.js +1 -0
  100. package/dist/team/__tests__/scaling-launch-config.test.js.map +1 -1
  101. package/dist/team/__tests__/sdk-transport.runtime.test.js +27 -1
  102. package/dist/team/__tests__/sdk-transport.runtime.test.js.map +1 -1
  103. package/dist/team/model-contract.d.ts +40 -2
  104. package/dist/team/model-contract.d.ts.map +1 -1
  105. package/dist/team/model-contract.js +51 -9
  106. package/dist/team/model-contract.js.map +1 -1
  107. package/dist/team/runtime-v2.d.ts +28 -5
  108. package/dist/team/runtime-v2.d.ts.map +1 -1
  109. package/dist/team/runtime-v2.js +67 -10
  110. package/dist/team/runtime-v2.js.map +1 -1
  111. package/dist/team/scaling.d.ts.map +1 -1
  112. package/dist/team/scaling.js +8 -1
  113. package/dist/team/scaling.js.map +1 -1
  114. package/dist/team/sdk-host.d.ts.map +1 -1
  115. package/dist/team/sdk-host.js +2 -2
  116. package/dist/team/sdk-host.js.map +1 -1
  117. package/docs/CLAUDE.md +1 -1
  118. package/docs/DEVELOPERS.md +1 -1
  119. package/docs/FIELD-TESTING.md +1 -1
  120. package/docs/MIGRATION.md +26 -1
  121. package/docs/REFERENCE.md +25 -4
  122. package/docs/TOOLS.md +1 -1
  123. package/package.json +3 -15
  124. package/plugin.json +1 -1
  125. package/scripts/build-cli.mjs +1 -1
  126. package/skills/statechart/scripts/statechart +21 -10
  127. package/skills/statechart/scripts/test/cli.test.ts +3 -3
@@ -12756,24 +12756,37 @@ var init_copilot_models = __esm({
12756
12756
  "claude-opus-5.5",
12757
12757
  "claude-haiku-5.5",
12758
12758
  "claude-haiku-4.5",
12759
+ "claude-sonnet-5",
12760
+ "claude-fable-5.2",
12759
12761
  "gpt-6.1-sol",
12762
+ "gpt-6.2-astra",
12763
+ "gpt-6.1-terra",
12760
12764
  "gpt-6-astra",
12761
12765
  "gpt-6-luna",
12766
+ "gpt-5.6-luna",
12762
12767
  "gpt-5.3-codex",
12763
- "gemini-3.8-flash"
12768
+ "gemini-3.8-flash",
12769
+ "gemini-4-hydrogen",
12770
+ "mai-code-2",
12771
+ "mai-code-2-flash",
12772
+ "mai-code-1.1-flash",
12773
+ "grok-4.7",
12774
+ "grok-4.6",
12775
+ "kimi-k3"
12764
12776
  ],
12777
+ unconfirmedModels: ["claude-fable-5.2", "gpt-6.2-astra"],
12765
12778
  tiers: {
12766
- opus: ["claude-opus-5.5", "gpt-6.1-sol", "claude-sonnet-5.5"],
12767
- sonnet: ["claude-sonnet-5.5", "gpt-6-astra", "claude-haiku-5.5"],
12768
- haiku: ["claude-haiku-5.5", "gpt-6-luna", "claude-haiku-4.5", "gemini-3.8-flash"],
12769
- fable: ["claude-opus-5.5", "gpt-6.1-sol", "claude-sonnet-5.5"]
12779
+ opus: ["claude-opus-5.5", "gpt-6.1-sol", "claude-sonnet-5.5", "mai-code-2"],
12780
+ sonnet: ["mai-code-2", "claude-sonnet-5.5", "mai-code-2-flash"],
12781
+ haiku: ["mai-code-2-flash", "claude-haiku-5.5", "gpt-6-luna"],
12782
+ fable: ["claude-fable-5.2", "gpt-6.2-astra"]
12770
12783
  }
12771
12784
  };
12772
12785
  }
12773
12786
  });
12774
12787
 
12775
12788
  // src/team/model-contract.ts
12776
- var import_path20, import_os4, COPILOT_TIER_ALIAS_MODELS;
12789
+ var import_path20, import_os4, COPILOT_TIER_MODELS, COPILOT_UNCONFIRMED_MODELS;
12777
12790
  var init_model_contract = __esm({
12778
12791
  "src/team/model-contract.ts"() {
12779
12792
  "use strict";
@@ -12786,9 +12799,8 @@ var init_model_contract = __esm({
12786
12799
  init_host_signal();
12787
12800
  init_executable_resolution();
12788
12801
  init_copilot_models();
12789
- COPILOT_TIER_ALIAS_MODELS = Object.fromEntries(
12790
- Object.entries(copilot_models_default.tiers).map(([tier, ids]) => [tier, ids[0]])
12791
- );
12802
+ COPILOT_TIER_MODELS = copilot_models_default.tiers;
12803
+ COPILOT_UNCONFIRMED_MODELS = new Set(copilot_models_default.unconfirmedModels);
12792
12804
  }
12793
12805
  });
12794
12806
 
@@ -13752,7 +13764,7 @@ var init_process_utils = __esm({
13752
13764
  import_path23 = require("path");
13753
13765
  import_util10 = require("util");
13754
13766
  fsPromises = __toESM(require("fs/promises"), 1);
13755
- execFileAsync2 = (0, import_util10.promisify)(import_child_process6.execFile);
13767
+ execFileAsync2 = ((...args) => (0, import_util10.promisify)(import_child_process6.execFile)(...args));
13756
13768
  }
13757
13769
  });
13758
13770
 
@@ -14295,7 +14307,7 @@ function canon(p, platform = process.platform) {
14295
14307
  const out = (0, import_path27.resolve)(p).split(import_path27.sep).join("/");
14296
14308
  return platform === "win32" ? out.toLowerCase() : out;
14297
14309
  }
14298
- var import_fs24, import_path27, FACTORY_RUN_SCENARIOS, SANDBOX_LANE_SCENARIO, CLI_SCENARIOS, ALL_SCENARIOS, OPT_IN_SCENARIOS, KNOWN_SCENARIOS, DELEGATE_AGENT, SDK_PACKAGE, SDK_MISSING_DETAIL, NO_SHELL_OR_WRITE_TOOLS, NO_WRITE_TOOLS, denyAll, GUARDRAIL_COMMAND, FILETOOLS_DIR, FILETOOLS_FILES, FILETOOLS_MARKER, PROMPT_CONTEXT_PREFIX, EVENTS_MISSING_FILE, EVENTS_SHELL_TOKEN, FACTORY_RUN_FILE, FACTORY_RUN_ISSUE_BODY, SCENARIOS, NO_CASSETTE_SCENARIOS;
14310
+ var import_fs24, import_path27, FACTORY_RUN_SCENARIOS, SANDBOX_LANE_SCENARIO, CLI_SCENARIOS, ALL_SCENARIOS, OPT_IN_SCENARIOS, KNOWN_SCENARIOS, DELEGATE_AGENT, SDK_PACKAGE, SDK_INSTALL_COMMAND, SDK_MISSING_DETAIL, NO_SHELL_OR_WRITE_TOOLS, NO_WRITE_TOOLS, denyAll, GUARDRAIL_COMMAND, FILETOOLS_DIR, FILETOOLS_FILES, FILETOOLS_MARKER, PROMPT_CONTEXT_PREFIX, EVENTS_MISSING_FILE, EVENTS_SHELL_TOKEN, FACTORY_RUN_FILE, FACTORY_RUN_ISSUE_BODY, SCENARIOS, NO_CASSETTE_SCENARIOS;
14299
14311
  var init_copilot_sdk_scenarios = __esm({
14300
14312
  "src/smoke/copilot-sdk-scenarios.ts"() {
14301
14313
  "use strict";
@@ -14312,7 +14324,8 @@ var init_copilot_sdk_scenarios = __esm({
14312
14324
  KNOWN_SCENARIOS = [...ALL_SCENARIOS, ...OPT_IN_SCENARIOS];
14313
14325
  DELEGATE_AGENT = "oh-my-copilot:architect";
14314
14326
  SDK_PACKAGE = "@github/copilot-sdk";
14315
- SDK_MISSING_DETAIL = `${SDK_PACKAGE} not installed \u2014 npm i -g ${SDK_PACKAGE} --omit=optional --ignore-scripts`;
14327
+ SDK_INSTALL_COMMAND = `npm i -g ${SDK_PACKAGE} --omit=optional --ignore-scripts`;
14328
+ SDK_MISSING_DETAIL = `${SDK_PACKAGE} not installed \u2014 ${SDK_INSTALL_COMMAND}`;
14316
14329
  NO_SHELL_OR_WRITE_TOOLS = ["powershell", "shell", "create", "edit"];
14317
14330
  NO_WRITE_TOOLS = ["create", "edit"];
14318
14331
  denyAll = () => false;
@@ -21648,50 +21661,10 @@ var init_merge_orchestrator = __esm({
21648
21661
  }
21649
21662
  });
21650
21663
 
21651
- // src/team/scaling.ts
21652
- var import_path38, import_promises14;
21653
- var init_scaling = __esm({
21654
- "src/team/scaling.ts"() {
21655
- "use strict";
21656
- import_path38 = require("path");
21657
- import_promises14 = require("fs/promises");
21658
- init_model_contract();
21659
- init_loader();
21660
- init_host_detection();
21661
- init_types();
21662
- init_types3();
21663
- init_role_router();
21664
- init_team_ops();
21665
- init_types2();
21666
- init_monitor();
21667
- init_tmux_session();
21668
- init_herdr_session();
21669
- init_state_paths();
21670
- init_worker_bootstrap();
21671
- init_sdk_transport();
21672
- init_git_worktree();
21673
- init_worktree_paths();
21674
- init_team_owner_epoch();
21675
- init_runtime_owner_client();
21676
- init_worker_launch_ack();
21677
- init_team_instance();
21678
- }
21679
- });
21680
-
21681
- // src/team/recovery-saga.ts
21682
- var init_recovery_saga = __esm({
21683
- "src/team/recovery-saga.ts"() {
21664
+ // src/copilot-run/timeout.ts
21665
+ var init_timeout = __esm({
21666
+ "src/copilot-run/timeout.ts"() {
21684
21667
  "use strict";
21685
- init_recovery_request_store();
21686
- }
21687
- });
21688
-
21689
- // src/team/worker-activation-gate.ts
21690
- var init_worker_activation_gate = __esm({
21691
- "src/team/worker-activation-gate.ts"() {
21692
- "use strict";
21693
- init_worker_launch_ack();
21694
- init_process_utils();
21695
21668
  }
21696
21669
  });
21697
21670
 
@@ -21957,13 +21930,13 @@ var init_routes = __esm({
21957
21930
  });
21958
21931
 
21959
21932
  // src/forge/ado/guard.ts
21960
- var import_fs33, import_os8, import_path39, MAX_BODY_BYTES;
21933
+ var import_fs33, import_os8, import_path38, MAX_BODY_BYTES;
21961
21934
  var init_guard = __esm({
21962
21935
  "src/forge/ado/guard.ts"() {
21963
21936
  "use strict";
21964
21937
  import_fs33 = require("fs");
21965
21938
  import_os8 = require("os");
21966
- import_path39 = require("path");
21939
+ import_path38 = require("path");
21967
21940
  init_routes();
21968
21941
  MAX_BODY_BYTES = 1024 * 1024;
21969
21942
  }
@@ -21983,13 +21956,13 @@ var init_exec = __esm({
21983
21956
  });
21984
21957
 
21985
21958
  // src/ship/config.ts
21986
- var import_fs34, import_os9, import_path40, OMG_REPOSITORY_REQUIRED_CHECKS, DEFAULT_SHIP_CONFIG;
21959
+ var import_fs34, import_os9, import_path39, OMG_REPOSITORY_REQUIRED_CHECKS, DEFAULT_SHIP_CONFIG;
21987
21960
  var init_config2 = __esm({
21988
21961
  "src/ship/config.ts"() {
21989
21962
  "use strict";
21990
21963
  import_fs34 = require("fs");
21991
21964
  import_os9 = require("os");
21992
- import_path40 = require("path");
21965
+ import_path39 = require("path");
21993
21966
  init_jsonc();
21994
21967
  init_loader();
21995
21968
  init_project_config_path();
@@ -22126,12 +22099,12 @@ var init_process_utils2 = __esm({
22126
22099
  });
22127
22100
 
22128
22101
  // src/lib/version.ts
22129
- var import_fs35, import_path41, import_url7;
22102
+ var import_fs35, import_path40, import_url7;
22130
22103
  var init_version = __esm({
22131
22104
  "src/lib/version.ts"() {
22132
22105
  "use strict";
22133
22106
  import_fs35 = require("fs");
22134
- import_path41 = require("path");
22107
+ import_path40 = require("path");
22135
22108
  import_url7 = require("url");
22136
22109
  }
22137
22110
  });
@@ -22225,12 +22198,12 @@ var init_redact = __esm({
22225
22198
  });
22226
22199
 
22227
22200
  // src/smoke/replay/cassette.ts
22228
- var import_fs36, import_path42;
22201
+ var import_fs36, import_path41;
22229
22202
  var init_cassette = __esm({
22230
22203
  "src/smoke/replay/cassette.ts"() {
22231
22204
  "use strict";
22232
22205
  import_fs36 = require("fs");
22233
- import_path42 = require("path");
22206
+ import_path41 = require("path");
22234
22207
  init_atomic_write();
22235
22208
  init_redact();
22236
22209
  }
@@ -22246,12 +22219,12 @@ var init_append_no_follow = __esm({
22246
22219
  });
22247
22220
 
22248
22221
  // src/smoke/replay/matcher.ts
22249
- var import_fs37, import_path43;
22222
+ var import_fs37, import_path42;
22250
22223
  var init_matcher = __esm({
22251
22224
  "src/smoke/replay/matcher.ts"() {
22252
22225
  "use strict";
22253
22226
  import_fs37 = require("fs");
22254
- import_path43 = require("path");
22227
+ import_path42 = require("path");
22255
22228
  init_append_no_follow();
22256
22229
  }
22257
22230
  });
@@ -22267,13 +22240,13 @@ var init_normalize = __esm({
22267
22240
  });
22268
22241
 
22269
22242
  // src/smoke/replay/handler.ts
22270
- var import_fs38, import_os10, import_path44;
22243
+ var import_fs38, import_os10, import_path43;
22271
22244
  var init_handler = __esm({
22272
22245
  "src/smoke/replay/handler.ts"() {
22273
22246
  "use strict";
22274
22247
  import_fs38 = require("fs");
22275
22248
  import_os10 = require("os");
22276
- import_path44 = require("path");
22249
+ import_path43 = require("path");
22277
22250
  init_version();
22278
22251
  init_copilot_session_env();
22279
22252
  init_cassette();
@@ -22284,12 +22257,12 @@ var init_handler = __esm({
22284
22257
  });
22285
22258
 
22286
22259
  // src/smoke/replay/run.ts
22287
- var import_fs39, import_path45;
22260
+ var import_fs39, import_path44;
22288
22261
  var init_run = __esm({
22289
22262
  "src/smoke/replay/run.ts"() {
22290
22263
  "use strict";
22291
22264
  import_fs39 = require("fs");
22292
- import_path45 = require("path");
22265
+ import_path44 = require("path");
22293
22266
  init_copilot_session_env();
22294
22267
  init_cassette();
22295
22268
  init_handler();
@@ -22298,7 +22271,7 @@ var init_run = __esm({
22298
22271
  });
22299
22272
 
22300
22273
  // src/smoke/copilot-sdk-driver.ts
22301
- var import_child_process10, import_crypto11, import_fs40, import_module, import_os11, import_path46, import_url8;
22274
+ var import_child_process10, import_crypto11, import_fs40, import_module, import_os11, import_path45, import_url8;
22302
22275
  var init_copilot_sdk_driver = __esm({
22303
22276
  "src/smoke/copilot-sdk-driver.ts"() {
22304
22277
  "use strict";
@@ -22307,17 +22280,100 @@ var init_copilot_sdk_driver = __esm({
22307
22280
  import_fs40 = require("fs");
22308
22281
  import_module = require("module");
22309
22282
  import_os11 = require("os");
22310
- import_path46 = require("path");
22283
+ import_path45 = require("path");
22311
22284
  import_url8 = require("url");
22312
22285
  init_sandbox();
22313
22286
  init_copilot_session_eval();
22314
22287
  init_copilot_sdk_scenarios();
22315
22288
  init_process_utils2();
22289
+ init_copilot_session_env();
22290
+ init_windows_search();
22316
22291
  init_handler();
22317
22292
  init_run();
22318
22293
  }
22319
22294
  });
22320
22295
 
22296
+ // src/smoke/copilot-binary.ts
22297
+ var import_fs41, import_path46;
22298
+ var init_copilot_binary = __esm({
22299
+ "src/smoke/copilot-binary.ts"() {
22300
+ "use strict";
22301
+ import_fs41 = require("fs");
22302
+ import_path46 = require("path");
22303
+ init_executable_resolution();
22304
+ }
22305
+ });
22306
+
22307
+ // src/copilot-run/model-catalogue.ts
22308
+ var CATALOGUE_TTL_MS, CATALOGUE_FAILURE_TTL_MS, STALE_JOB_DIR_MS;
22309
+ var init_model_catalogue = __esm({
22310
+ "src/copilot-run/model-catalogue.ts"() {
22311
+ "use strict";
22312
+ init_atomic_write();
22313
+ init_paths();
22314
+ init_timeout();
22315
+ init_sandbox();
22316
+ init_copilot_sdk_driver();
22317
+ init_copilot_sdk_scenarios();
22318
+ init_copilot_session_env();
22319
+ init_process_utils2();
22320
+ init_windows_search();
22321
+ init_copilot_binary();
22322
+ init_config_dir();
22323
+ CATALOGUE_TTL_MS = 24 * 60 * 60 * 1e3;
22324
+ CATALOGUE_FAILURE_TTL_MS = 60 * 60 * 1e3;
22325
+ STALE_JOB_DIR_MS = 60 * 60 * 1e3;
22326
+ }
22327
+ });
22328
+
22329
+ // src/team/scaling.ts
22330
+ var import_path47, import_promises14;
22331
+ var init_scaling = __esm({
22332
+ "src/team/scaling.ts"() {
22333
+ "use strict";
22334
+ import_path47 = require("path");
22335
+ import_promises14 = require("fs/promises");
22336
+ init_model_contract();
22337
+ init_model_catalogue();
22338
+ init_loader();
22339
+ init_host_detection();
22340
+ init_types();
22341
+ init_types3();
22342
+ init_role_router();
22343
+ init_team_ops();
22344
+ init_types2();
22345
+ init_monitor();
22346
+ init_tmux_session();
22347
+ init_herdr_session();
22348
+ init_state_paths();
22349
+ init_worker_bootstrap();
22350
+ init_sdk_transport();
22351
+ init_git_worktree();
22352
+ init_worktree_paths();
22353
+ init_team_owner_epoch();
22354
+ init_runtime_owner_client();
22355
+ init_worker_launch_ack();
22356
+ init_team_instance();
22357
+ }
22358
+ });
22359
+
22360
+ // src/team/recovery-saga.ts
22361
+ var init_recovery_saga = __esm({
22362
+ "src/team/recovery-saga.ts"() {
22363
+ "use strict";
22364
+ init_recovery_request_store();
22365
+ }
22366
+ });
22367
+
22368
+ // src/team/worker-activation-gate.ts
22369
+ var init_worker_activation_gate = __esm({
22370
+ "src/team/worker-activation-gate.ts"() {
22371
+ "use strict";
22372
+ init_worker_launch_ack();
22373
+ init_process_utils();
22374
+ }
22375
+ });
22376
+
22321
22377
  // src/team/runtime-v2.ts
22322
22378
  function workerInstructionStateRoot(cwd, teamName, platform = process.platform) {
22323
22379
  return platform === "win32" ? teamStateRoot(cwd, teamName) : "$OMC_TEAM_STATE_ROOT";
@@ -22686,7 +22742,7 @@ async function shutdownTeamV2(teamName, cwd, options = {}) {
22686
22742
  };
22687
22743
  if (!config2) {
22688
22744
  const cleanupSafety = inspectTeamWorktreeCleanupSafety(sanitized, cwd);
22689
- if (cleanupSafety.hasEvidence || (0, import_fs41.existsSync)(absPath(cwd, TeamPaths.root(sanitized)))) {
22745
+ if (cleanupSafety.hasEvidence || (0, import_fs42.existsSync)(absPath(cwd, TeamPaths.root(sanitized)))) {
22690
22746
  process.stderr.write(
22691
22747
  "[team/runtime-v2] preserving team state because config is missing and worktree cleanup evidence remains\n"
22692
22748
  );
@@ -23153,12 +23209,12 @@ If you accept, exit your session. If you reject, remain active for task work and
23153
23209
  }
23154
23210
  );
23155
23211
  }
23156
- var import_path47, import_fs41, import_promises15, import_node_crypto8, orchestratorByTeam, cadenceByTeam, TEAM_INSTANCE_FINAL_DISPOSAL_AUTHORIZATION;
23212
+ var import_path48, import_fs42, import_promises15, import_node_crypto8, orchestratorByTeam, cadenceByTeam, TEAM_INSTANCE_FINAL_DISPOSAL_AUTHORIZATION;
23157
23213
  var init_runtime_v2 = __esm({
23158
23214
  "src/team/runtime-v2.ts"() {
23159
23215
  "use strict";
23160
- import_path47 = require("path");
23161
- import_fs41 = require("fs");
23216
+ import_path48 = require("path");
23217
+ import_fs42 = require("fs");
23162
23218
  import_promises15 = require("fs/promises");
23163
23219
  init_state_paths();
23164
23220
  init_worktree_paths();
@@ -23205,6 +23261,7 @@ var init_runtime_v2 = __esm({
23205
23261
  init_worker_launch_ack();
23206
23262
  init_sdk_transport();
23207
23263
  init_model_contract();
23264
+ init_model_catalogue();
23208
23265
  init_copilot_sdk_driver();
23209
23266
  init_host_signal();
23210
23267
  init_copilot_session_env();
@@ -46338,10 +46395,10 @@ var StdioServerTransport = class {
46338
46395
  // src/mcp/team-server.ts
46339
46396
  var import_node_crypto9 = require("node:crypto");
46340
46397
  var import_child_process11 = require("child_process");
46341
- var import_path49 = require("path");
46398
+ var import_path50 = require("path");
46342
46399
  var import_url9 = require("url");
46343
46400
  init_omc_cli_rendering();
46344
- var import_fs43 = require("fs");
46401
+ var import_fs44 = require("fs");
46345
46402
  var import_promises16 = require("fs/promises");
46346
46403
  init_team_name();
46347
46404
  init_runtime_v2();
@@ -46457,16 +46514,16 @@ var NudgeTracker = class {
46457
46514
  };
46458
46515
 
46459
46516
  // src/mcp/team-job-convergence.ts
46460
- var import_fs42 = require("fs");
46461
- var import_path48 = require("path");
46517
+ var import_fs43 = require("fs");
46518
+ var import_path49 = require("path");
46462
46519
  init_types2();
46463
46520
  init_team_name();
46464
46521
  function readResultArtifact(omcJobsDir, jobId) {
46465
- const artifactPath = (0, import_path48.join)(omcJobsDir, `${jobId}-result.json`);
46466
- if (!(0, import_fs42.existsSync)(artifactPath)) return { kind: "none" };
46522
+ const artifactPath = (0, import_path49.join)(omcJobsDir, `${jobId}-result.json`);
46523
+ if (!(0, import_fs43.existsSync)(artifactPath)) return { kind: "none" };
46467
46524
  let raw;
46468
46525
  try {
46469
- raw = (0, import_fs42.readFileSync)(artifactPath, "utf-8");
46526
+ raw = (0, import_fs43.readFileSync)(artifactPath, "utf-8");
46470
46527
  } catch (error62) {
46471
46528
  if (error62.code === "ENOENT") return { kind: "none" };
46472
46529
  const message = `Failed to read result artifact at ${artifactPath}: ${error62 instanceof Error ? error62.message : String(error62)}`;
@@ -46568,10 +46625,10 @@ function convergeJobWithResultArtifact(job, jobId, omcJobsDir) {
46568
46625
  };
46569
46626
  }
46570
46627
  function resultArtifactIdentityError(job, jobId, omcJobsDir) {
46571
- const artifactPath = (0, import_path48.join)(omcJobsDir, `${jobId}-result.json`);
46628
+ const artifactPath = (0, import_path49.join)(omcJobsDir, `${jobId}-result.json`);
46572
46629
  let raw;
46573
46630
  try {
46574
- raw = (0, import_fs42.readFileSync)(artifactPath, "utf-8");
46631
+ raw = (0, import_fs43.readFileSync)(artifactPath, "utf-8");
46575
46632
  } catch (error62) {
46576
46633
  if (error62.code === "ENOENT") return null;
46577
46634
  return `cleanup_result_evidence_unreadable:${error62 instanceof Error ? error62.message : String(error62)}`;
@@ -46586,7 +46643,7 @@ function resultArtifactIdentityError(job, jobId, omcJobsDir) {
46586
46643
  }
46587
46644
  function readMatchingTerminalArtifact(job, jobId, omcJobsDir) {
46588
46645
  try {
46589
- const raw = (0, import_fs42.readFileSync)((0, import_path48.join)(omcJobsDir, `${jobId}-result.json`), "utf-8");
46646
+ const raw = (0, import_fs43.readFileSync)((0, import_path49.join)(omcJobsDir, `${jobId}-result.json`), "utf-8");
46590
46647
  const parsed = JSON.parse(raw);
46591
46648
  if (parsed.status !== "completed" && parsed.status !== "failed" || parsed.instanceId !== job.instanceId || !isValidTeamInstanceId(parsed.instanceId)) return null;
46592
46649
  return { status: parsed.status, raw };
@@ -46734,10 +46791,10 @@ function persistJob(jobId, job) {
46734
46791
  }
46735
46792
  }
46736
46793
  function loadJobFromDisk(jobId) {
46737
- const path5 = (0, import_path49.join)(OMC_JOBS_DIR, `${jobId}.json`);
46794
+ const path5 = (0, import_path50.join)(OMC_JOBS_DIR, `${jobId}.json`);
46738
46795
  let content;
46739
46796
  try {
46740
- content = (0, import_fs43.readFileSync)(path5, "utf-8");
46797
+ content = (0, import_fs44.readFileSync)(path5, "utf-8");
46741
46798
  } catch (error62) {
46742
46799
  if (error62.code === "ENOENT") return void 0;
46743
46800
  throw new Error(`Unreadable job file: ${jobId} (${error62 instanceof Error ? error62.message : String(error62)})`);
@@ -46757,7 +46814,7 @@ function getJob(jobId) {
46757
46814
  return loadJobFromDisk(jobId);
46758
46815
  }
46759
46816
  async function loadPaneIds(jobId, instanceId) {
46760
- const p = (0, import_path49.join)(OMC_JOBS_DIR, `${jobId}-panes.json`);
46817
+ const p = (0, import_path50.join)(OMC_JOBS_DIR, `${jobId}-panes.json`);
46761
46818
  try {
46762
46819
  const parsed = JSON.parse(await (0, import_promises16.readFile)(p, "utf-8"));
46763
46820
  if (!isValidTeamPaneArtifact(parsed, instanceId)) return null;
@@ -46928,18 +46985,18 @@ function validateJobId(job_id) {
46928
46985
  }
46929
46986
  }
46930
46987
  function jobLockPath(jobId) {
46931
- return (0, import_path49.join)(OMC_JOBS_DIR, `.${jobId}.lock`);
46988
+ return (0, import_path50.join)(OMC_JOBS_DIR, `.${jobId}.lock`);
46932
46989
  }
46933
46990
  function persistJobUnlocked(jobId, job) {
46934
- if (!(0, import_fs43.existsSync)(OMC_JOBS_DIR)) (0, import_fs43.mkdirSync)(OMC_JOBS_DIR, { recursive: true });
46935
- const targetPath = (0, import_path49.join)(OMC_JOBS_DIR, `${jobId}.json`);
46991
+ if (!(0, import_fs44.existsSync)(OMC_JOBS_DIR)) (0, import_fs44.mkdirSync)(OMC_JOBS_DIR, { recursive: true });
46992
+ const targetPath = (0, import_path50.join)(OMC_JOBS_DIR, `${jobId}.json`);
46936
46993
  const tempPath = `${targetPath}.tmp.${process.pid}.${(0, import_node_crypto9.randomUUID)()}`;
46937
46994
  try {
46938
- (0, import_fs43.writeFileSync)(tempPath, JSON.stringify(job), { encoding: "utf-8", mode: 384 });
46939
- (0, import_fs43.renameSync)(tempPath, targetPath);
46995
+ (0, import_fs44.writeFileSync)(tempPath, JSON.stringify(job), { encoding: "utf-8", mode: 384 });
46996
+ (0, import_fs44.renameSync)(tempPath, targetPath);
46940
46997
  } finally {
46941
46998
  try {
46942
- (0, import_fs43.unlinkSync)(tempPath);
46999
+ (0, import_fs44.unlinkSync)(tempPath);
46943
47000
  } catch {
46944
47001
  }
46945
47002
  }
@@ -47069,10 +47126,10 @@ async function handleStart(args) {
47069
47126
  "team_start_unsafe_runtime_v1: instance-bound provider cleanup requires runtime v2; set OMC_RUNTIME_V2=1"
47070
47127
  );
47071
47128
  }
47072
- const cwd = (0, import_path49.resolve)(input2.cwd);
47129
+ const cwd = (0, import_path50.resolve)(input2.cwd);
47073
47130
  const jobId = `omc-${Date.now().toString(36)}${(0, import_node_crypto9.randomUUID)().slice(0, 8)}`;
47074
47131
  const instanceId = (0, import_node_crypto9.randomUUID)();
47075
- const runtimeCliPath = (0, import_path49.join)(__ownDir, "runtime-cli.cjs");
47132
+ const runtimeCliPath = (0, import_path50.join)(__ownDir, "runtime-cli.cjs");
47076
47133
  const job = {
47077
47134
  status: "running",
47078
47135
  startedAt: Date.now(),
@@ -47349,7 +47406,7 @@ async function handleCleanup(args) {
47349
47406
  if (resultEvidenceError) return blockCleanup(resultEvidenceError);
47350
47407
  const panes = await loadPaneIds(job_id, job.instanceId);
47351
47408
  if (!panes) {
47352
- const reason = (0, import_fs43.existsSync)((0, import_path49.join)(OMC_JOBS_DIR, `${job_id}-panes.json`)) ? "cleanup_panes_evidence_corrupt" : "cleanup_panes_evidence_missing";
47409
+ const reason = (0, import_fs44.existsSync)((0, import_path50.join)(OMC_JOBS_DIR, `${job_id}-panes.json`)) ? "cleanup_panes_evidence_corrupt" : "cleanup_panes_evidence_missing";
47353
47410
  return blockCleanup(reason);
47354
47411
  }
47355
47412
  try {