chatroom-cli 1.101.3 → 1.101.5
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/dist/index.js
CHANGED
|
@@ -28545,6 +28545,7 @@ function prefixCatalogModels(provider, models) {
|
|
|
28545
28545
|
function prefixCatalogModelsWithInfer(infer, models) {
|
|
28546
28546
|
return models.map((model) => prefixModelWithProvider(infer(model), model));
|
|
28547
28547
|
}
|
|
28548
|
+
var init_model_provider = () => {};
|
|
28548
28549
|
|
|
28549
28550
|
// src/daemon/infrastructure/local/harness/services/cursor-sdk/cursor-sdk-package.ts
|
|
28550
28551
|
var exports_cursor_sdk_package = {};
|
|
@@ -28705,6 +28706,7 @@ async function fetchCursorSdkModelCatalog() {
|
|
|
28705
28706
|
}
|
|
28706
28707
|
}
|
|
28707
28708
|
var init_cursor_sdk_model_catalog = __esm(() => {
|
|
28709
|
+
init_model_provider();
|
|
28708
28710
|
init_model_variant();
|
|
28709
28711
|
init_cursor_sdk_package();
|
|
28710
28712
|
});
|
|
@@ -28990,6 +28992,7 @@ function resolveCopilotSpawnModel(model) {
|
|
|
28990
28992
|
}
|
|
28991
28993
|
var COPILOT_COMMAND = "copilot", CopilotAgentService;
|
|
28992
28994
|
var init_copilot_agent_service = __esm(() => {
|
|
28995
|
+
init_model_provider();
|
|
28993
28996
|
init_base_cli_agent_service();
|
|
28994
28997
|
init_copilot_stream_reader();
|
|
28995
28998
|
CopilotAgentService = class CopilotAgentService extends BaseCLIAgentService {
|
|
@@ -29148,6 +29151,7 @@ function decodeClaudeVariant(encoded) {
|
|
|
29148
29151
|
}
|
|
29149
29152
|
var init_claude_models = __esm(() => {
|
|
29150
29153
|
init_claude_model_variants();
|
|
29154
|
+
init_model_provider();
|
|
29151
29155
|
init_model_variant();
|
|
29152
29156
|
});
|
|
29153
29157
|
|
|
@@ -30841,6 +30845,7 @@ function notifyResumableThreadId(threadId, session2, correlationId, callbacks) {
|
|
|
30841
30845
|
var CODEX_SDK_COMMAND = "codex", TURN_TIMEOUT_MS2 = 3600000, _sdkCache2, _sdkLoadError2, cachedSdkPackageVersion2, CodexSdkAgentService;
|
|
30842
30846
|
var init_codex_sdk_agent_service = __esm(() => {
|
|
30843
30847
|
init_codex_sdk_model_variants();
|
|
30848
|
+
init_model_provider();
|
|
30844
30849
|
init_model_variant();
|
|
30845
30850
|
init_esm();
|
|
30846
30851
|
init_codex_sdk_package();
|
|
@@ -31308,6 +31313,7 @@ var init_command_code_stream_reader = () => {};
|
|
|
31308
31313
|
// src/daemon/infrastructure/local/harness/services/commandcode/command-code-agent-service.ts
|
|
31309
31314
|
var COMMANDCODE_COMMAND = "cmd", COMMANDCODE_MODELS, CommandCodeAgentService;
|
|
31310
31315
|
var init_command_code_agent_service = __esm(() => {
|
|
31316
|
+
init_model_provider();
|
|
31311
31317
|
init_base_cli_agent_service();
|
|
31312
31318
|
init_command_code_stream_reader();
|
|
31313
31319
|
COMMANDCODE_MODELS = [
|
|
@@ -100332,14 +100338,14 @@ function explainAgentReadyForNativeDeliveryBlock(task, slot) {
|
|
|
100332
100338
|
return agentConfig.spawnedAgentPid == null ? "spawned_pid_missing" : `slot_missing (expectedPid=${agentConfig.spawnedAgentPid})`;
|
|
100333
100339
|
}
|
|
100334
100340
|
if (!isSlotRunning(slot.state)) {
|
|
100341
|
+
if (agentConfig.spawnedAgentPid != null && slot.pid !== agentConfig.spawnedAgentPid) {
|
|
100342
|
+
return `pid_mismatch (slotPid=${slot.pid ?? "none"}, snapshotPid=${agentConfig.spawnedAgentPid})`;
|
|
100343
|
+
}
|
|
100335
100344
|
return `slot_not_running (slotState=${slot.state}, expectedPid=${agentConfig.spawnedAgentPid ?? "none"})`;
|
|
100336
100345
|
}
|
|
100337
100346
|
if (slot.pid == null) {
|
|
100338
100347
|
return "slot_pid_missing";
|
|
100339
100348
|
}
|
|
100340
|
-
if (agentConfig.spawnedAgentPid != null && slot.pid !== agentConfig.spawnedAgentPid) {
|
|
100341
|
-
return `pid_mismatch (slotPid=${slot.pid ?? "none"}, snapshotPid=${agentConfig.spawnedAgentPid})`;
|
|
100342
|
-
}
|
|
100343
100349
|
if (typeof slot.harnessSessionId !== "string" || slot.harnessSessionId.length === 0) {
|
|
100344
100350
|
return "harness_session_missing";
|
|
100345
100351
|
}
|
|
@@ -101262,7 +101268,7 @@ async function runRestartOrchestrator(deps, event) {
|
|
|
101262
101268
|
model: event.model,
|
|
101263
101269
|
workingDir: event.workingDir,
|
|
101264
101270
|
reason: "user.restart",
|
|
101265
|
-
wantResume: event.wantResume
|
|
101271
|
+
wantResume: event.wantResume
|
|
101266
101272
|
}));
|
|
101267
101273
|
if (!spawnResult.success || !spawnResult.pid) {
|
|
101268
101274
|
await emitPhase(deps, event, "failed", spawnResult.error ?? "spawn failed");
|
|
@@ -104110,7 +104116,9 @@ class AgentProcessManager {
|
|
|
104110
104116
|
}
|
|
104111
104117
|
await this.emitNativeWaiting(opts.chatroomId, opts.role, opts.agentHarness);
|
|
104112
104118
|
if (getHarnessCapabilities(opts.agentHarness).supportsNativeIntegration) {
|
|
104113
|
-
getNativeTaskDeliveryCoordinator()
|
|
104119
|
+
const coordinator2 = getNativeTaskDeliveryCoordinator();
|
|
104120
|
+
coordinator2.tryInjectNextForRole(opts.chatroomId, opts.role);
|
|
104121
|
+
queueMicrotask(() => coordinator2.tryInjectNextForRole(opts.chatroomId, opts.role));
|
|
104114
104122
|
}
|
|
104115
104123
|
}
|
|
104116
104124
|
async emitNativeWaiting(chatroomId, role, harness) {
|
|
@@ -104360,8 +104368,8 @@ class AgentProcessManager {
|
|
|
104360
104368
|
}
|
|
104361
104369
|
var AGENT_EXIT_RETRY_INTERVAL_MS = 1e4, STOPPING_TIMEOUT_MS = 30000;
|
|
104362
104370
|
var init_agent_process_manager = __esm(() => {
|
|
104363
|
-
init_types();
|
|
104364
104371
|
init_agent2();
|
|
104372
|
+
init_types();
|
|
104365
104373
|
init_participant();
|
|
104366
104374
|
init_esm();
|
|
104367
104375
|
init_execute_stop_targets_adapter();
|
|
@@ -105140,6 +105148,7 @@ var claudeModelVariants = () => prefixCatalogModels("anthropic", expandModelVari
|
|
|
105140
105148
|
var init_model_catalog = __esm(() => {
|
|
105141
105149
|
init_claude_model_variants();
|
|
105142
105150
|
init_codex_sdk_model_variants();
|
|
105151
|
+
init_model_provider();
|
|
105143
105152
|
init_model_variant();
|
|
105144
105153
|
CODEX_MODEL_IDS = [
|
|
105145
105154
|
"gpt-5.6-terra",
|
|
@@ -105478,6 +105487,7 @@ var DEFAULT_MODEL = "anthropic/sonnet", _sdkCache5, _sdkLoadError5, _executableP
|
|
|
105478
105487
|
};
|
|
105479
105488
|
var init_claude_harness = __esm(() => {
|
|
105480
105489
|
init_model_catalog();
|
|
105490
|
+
init_model_provider();
|
|
105481
105491
|
init_claude_session();
|
|
105482
105492
|
init_claude_sdk_package();
|
|
105483
105493
|
});
|
|
@@ -109616,7 +109626,7 @@ async function restartAgent(deps, input) {
|
|
|
109616
109626
|
workingDir: input.workingDir,
|
|
109617
109627
|
correlationId: input.correlationId,
|
|
109618
109628
|
wantResume: input.wantResume,
|
|
109619
|
-
lifecycleRevision: input.lifecycleRevision
|
|
109629
|
+
...input.lifecycleRevision !== undefined ? { lifecycleRevision: input.lifecycleRevision } : {}
|
|
109620
109630
|
});
|
|
109621
109631
|
} catch {}
|
|
109622
109632
|
}
|
|
@@ -109661,8 +109671,8 @@ async function startAgent2(deps, input) {
|
|
|
109661
109671
|
model: input.model,
|
|
109662
109672
|
workingDir: input.workingDir,
|
|
109663
109673
|
reason: input.reason,
|
|
109664
|
-
wantResume: input.wantResume
|
|
109665
|
-
lifecycleRevision: input.lifecycleRevision
|
|
109674
|
+
wantResume: input.wantResume,
|
|
109675
|
+
...input.lifecycleRevision !== undefined ? { lifecycleRevision: input.lifecycleRevision } : {}
|
|
109666
109676
|
});
|
|
109667
109677
|
if (!result.success) {
|
|
109668
109678
|
log4(`[daemon] Agent start rejected for role=${input.role}: ${result.error ?? "unknown"}`);
|
|
@@ -135616,4 +135626,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
135616
135626
|
});
|
|
135617
135627
|
program2.parse();
|
|
135618
135628
|
|
|
135619
|
-
//# debugId=
|
|
135629
|
+
//# debugId=2AE77EB9BC17ACF764756E2164756E21
|