@cmmd-center/forge 0.13.95 → 0.13.96

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/bin.cjs CHANGED
@@ -6,7 +6,7 @@ const require_Schema$1 = require("./Schema-DxddW8-V.cjs");
6
6
  const require_Path = require("./Path-Dp3btyUm.cjs");
7
7
  const require_NodeTerminal = require("./NodeTerminal-DQESKR0W.cjs");
8
8
  const require_NodeServices = require("./NodeServices-BkfWZHfh.cjs");
9
- const require_HttpServer = require("./HttpServer-DZ6iaxyk.cjs");
9
+ const require_HttpServer = require("./HttpServer-CRBqMWdP.cjs");
10
10
  const require_Config = require("./Config-pbf0GGHJ.cjs");
11
11
  const require_Cache = require("./Cache-D-JaJz5Q.cjs");
12
12
  const require_SqlError = require("./SqlError-BqOsoG0V.cjs");
@@ -14765,7 +14765,7 @@ const isCommand = (u) => require_Schema$1.hasProperty(u, TypeId$10);
14765
14765
  * @since 4.0.0
14766
14766
  * @category constructors
14767
14767
  */
14768
- const make$34 = (name, config, handler) => {
14768
+ const make$33 = (name, config, handler) => {
14769
14769
  return makeCommand({
14770
14770
  name,
14771
14771
  config: parseConfig(config ?? {}),
@@ -15282,7 +15282,7 @@ require_Schema$1.LogToStderr;
15282
15282
  * @since 2.0.0
15283
15283
  * @category constructors
15284
15284
  */
15285
- const make$33 = require_Schema$1.loggerMake;
15285
+ const make$32 = require_Schema$1.loggerMake;
15286
15286
  require_Schema$1.defaultLogger;
15287
15287
  require_Schema$1.formatJson;
15288
15288
  /**
@@ -15580,7 +15580,7 @@ const makeUnsafe$2 = (value) => {
15580
15580
  * @since 2.0.0
15581
15581
  * @category constructors
15582
15582
  */
15583
- const make$32 = (value) => require_Schema$1.sync(() => makeUnsafe$2(value));
15583
+ const make$31 = (value) => require_Schema$1.sync(() => makeUnsafe$2(value));
15584
15584
  /**
15585
15585
  * @since 2.0.0
15586
15586
  * @category getters
@@ -15650,7 +15650,7 @@ const TypeId$8 = "~effect/transactions/TxRef";
15650
15650
  * })
15651
15651
  * ```
15652
15652
  */
15653
- const make$31 = (initial) => require_Schema$1.sync(() => makeUnsafe$1(initial));
15653
+ const make$30 = (initial) => require_Schema$1.sync(() => makeUnsafe$1(initial));
15654
15654
  /**
15655
15655
  * Creates a new `TxRef` with the specified initial value.
15656
15656
  *
@@ -15833,7 +15833,7 @@ const TxChunkProto = {
15833
15833
  * })
15834
15834
  * ```
15835
15835
  */
15836
- const empty = () => require_Schema$1.map(make$31(require_Schema$1.empty()), (ref) => makeUnsafe(ref));
15836
+ const empty = () => require_Schema$1.map(make$30(require_Schema$1.empty()), (ref) => makeUnsafe(ref));
15837
15837
  /**
15838
15838
  * Creates a new `TxChunk` with the specified TxRef.
15839
15839
  *
@@ -16125,7 +16125,7 @@ const TxQueueProto = {
16125
16125
  */
16126
16126
  const unbounded = () => require_Schema$1.gen(function* () {
16127
16127
  const items = yield* empty();
16128
- const stateRef = yield* make$31({ _tag: "Open" });
16128
+ const stateRef = yield* make$30({ _tag: "Open" });
16129
16129
  const txQueue = Object.create(TxQueueProto);
16130
16130
  txQueue.strategy = "unbounded";
16131
16131
  txQueue.capacity = Number.POSITIVE_INFINITY;
@@ -25470,7 +25470,7 @@ const makeProto$1 = (options) => {
25470
25470
  * @since 4.0.0
25471
25471
  * @category constructors
25472
25472
  */
25473
- const make$30 = (tag, options) => {
25473
+ const make$29 = (tag, options) => {
25474
25474
  const successSchema = options?.success ?? require_Schema$1.Void;
25475
25475
  const errorSchema = options?.error ?? require_Schema$1.Never;
25476
25476
  const defectSchema = options?.defect ?? require_Schema$1.Defect;
@@ -25642,7 +25642,7 @@ const makeProto = (options) => Object.assign(function() {}, RpcGroupProto, {
25642
25642
  * @since 4.0.0
25643
25643
  * @category groups
25644
25644
  */
25645
- const make$29 = (...rpcs) => makeProto({
25645
+ const make$28 = (...rpcs) => makeProto({
25646
25646
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
25647
25647
  annotations: require_Schema$1.empty$4()
25648
25648
  });
@@ -26374,319 +26374,319 @@ const WS_METHODS = {
26374
26374
  attachmentsDelete: "attachments.delete",
26375
26375
  providerUploadFeedback: "provider.uploadFeedback"
26376
26376
  };
26377
- const WsServerUpsertKeybindingRpc = make$30(WS_METHODS.serverUpsertKeybinding, {
26377
+ const WsServerUpsertKeybindingRpc = make$29(WS_METHODS.serverUpsertKeybinding, {
26378
26378
  payload: ServerUpsertKeybindingInput,
26379
26379
  success: ServerUpsertKeybindingResult,
26380
26380
  error: KeybindingsConfigError
26381
26381
  });
26382
- const WsServerRemoveKeybindingRpc = make$30(WS_METHODS.serverRemoveKeybinding, {
26382
+ const WsServerRemoveKeybindingRpc = make$29(WS_METHODS.serverRemoveKeybinding, {
26383
26383
  payload: ServerRemoveKeybindingInput,
26384
26384
  success: ServerRemoveKeybindingResult,
26385
26385
  error: KeybindingsConfigError
26386
26386
  });
26387
- const WsServerGetConfigRpc = make$30(WS_METHODS.serverGetConfig, {
26387
+ const WsServerGetConfigRpc = make$29(WS_METHODS.serverGetConfig, {
26388
26388
  payload: require_Schema$1.Struct({}),
26389
26389
  success: ServerConfig$1,
26390
26390
  error: require_Schema$1.Union([KeybindingsConfigError, ServerSettingsError])
26391
26391
  });
26392
- const WsServerRefreshProvidersRpc = make$30(WS_METHODS.serverRefreshProviders, {
26392
+ const WsServerRefreshProvidersRpc = make$29(WS_METHODS.serverRefreshProviders, {
26393
26393
  payload: require_Schema$1.Struct({}),
26394
26394
  success: ServerProviderUpdatedPayload
26395
26395
  });
26396
- const WsServerStartProviderAuthRpc = make$30(WS_METHODS.serverStartProviderAuth, {
26396
+ const WsServerStartProviderAuthRpc = make$29(WS_METHODS.serverStartProviderAuth, {
26397
26397
  payload: ProviderAuthStartInput,
26398
26398
  success: ProviderAuthSession
26399
26399
  });
26400
- const WsServerRepairProviderAuthRuntimeRpc = make$30(WS_METHODS.serverRepairProviderAuthRuntime, {
26400
+ const WsServerRepairProviderAuthRuntimeRpc = make$29(WS_METHODS.serverRepairProviderAuthRuntime, {
26401
26401
  payload: ProviderAuthRuntimeRepairInput,
26402
26402
  success: ProviderAuthRuntimeRepairResult
26403
26403
  });
26404
- const WsServerDisconnectProviderAuthRpc = make$30(WS_METHODS.serverDisconnectProviderAuth, {
26404
+ const WsServerDisconnectProviderAuthRpc = make$29(WS_METHODS.serverDisconnectProviderAuth, {
26405
26405
  payload: ProviderAuthDisconnectInput,
26406
26406
  success: ServerProviderUpdatedPayload
26407
26407
  });
26408
- const WsServerGetProviderAuthSessionRpc = make$30(WS_METHODS.serverGetProviderAuthSession, {
26408
+ const WsServerGetProviderAuthSessionRpc = make$29(WS_METHODS.serverGetProviderAuthSession, {
26409
26409
  payload: ProviderAuthSessionInput,
26410
26410
  success: ProviderAuthSession
26411
26411
  });
26412
- const WsServerCancelProviderAuthRpc = make$30(WS_METHODS.serverCancelProviderAuth, {
26412
+ const WsServerCancelProviderAuthRpc = make$29(WS_METHODS.serverCancelProviderAuth, {
26413
26413
  payload: ProviderAuthSessionInput,
26414
26414
  success: ProviderAuthSession
26415
26415
  });
26416
- const WsServerSubmitProviderAuthCodeRpc = make$30(WS_METHODS.serverSubmitProviderAuthCode, {
26416
+ const WsServerSubmitProviderAuthCodeRpc = make$29(WS_METHODS.serverSubmitProviderAuthCode, {
26417
26417
  payload: ProviderAuthSubmitCodeInput,
26418
26418
  success: ProviderAuthSession
26419
26419
  });
26420
- const WsServerSyncPersonalCodexToCloudRpc = make$30(WS_METHODS.serverSyncPersonalCodexToCloud, {
26420
+ const WsServerSyncPersonalCodexToCloudRpc = make$29(WS_METHODS.serverSyncPersonalCodexToCloud, {
26421
26421
  payload: ProviderCredentialCloudSyncInput,
26422
26422
  success: ProviderCredentialCloudSyncResult
26423
26423
  });
26424
- const WsServerSyncPersonalClaudeToCloudRpc = make$30(WS_METHODS.serverSyncPersonalClaudeToCloud, {
26424
+ const WsServerSyncPersonalClaudeToCloudRpc = make$29(WS_METHODS.serverSyncPersonalClaudeToCloud, {
26425
26425
  payload: ProviderCredentialCloudSyncInput,
26426
26426
  success: ProviderCredentialCloudSyncResult
26427
26427
  });
26428
- const WsServerGetSettingsRpc = make$30(WS_METHODS.serverGetSettings, {
26428
+ const WsServerGetSettingsRpc = make$29(WS_METHODS.serverGetSettings, {
26429
26429
  payload: require_Schema$1.Struct({}),
26430
26430
  success: ServerSettings,
26431
26431
  error: ServerSettingsError
26432
26432
  });
26433
- const WsServerUpdateSettingsRpc = make$30(WS_METHODS.serverUpdateSettings, {
26433
+ const WsServerUpdateSettingsRpc = make$29(WS_METHODS.serverUpdateSettings, {
26434
26434
  payload: require_Schema$1.Struct({ patch: ServerSettingsPatch }),
26435
26435
  success: ServerSettings,
26436
26436
  error: ServerSettingsError
26437
26437
  });
26438
- const WsServerUpdateEnvironmentDisplayNameRpc = make$30(WS_METHODS.serverUpdateEnvironmentDisplayName, {
26438
+ const WsServerUpdateEnvironmentDisplayNameRpc = make$29(WS_METHODS.serverUpdateEnvironmentDisplayName, {
26439
26439
  payload: ServerEnvironmentDisplayNameUpdateInput,
26440
26440
  success: ServerEnvironmentDisplayNameUpdateResult
26441
26441
  });
26442
- const WsServerTraceDiagnosticsRpc = make$30(WS_METHODS.serverGetTraceDiagnostics, {
26442
+ const WsServerTraceDiagnosticsRpc = make$29(WS_METHODS.serverGetTraceDiagnostics, {
26443
26443
  payload: require_Schema$1.Struct({ slowSpanThresholdMs: require_Schema$1.optionalKey(NonNegativeInt) }),
26444
26444
  success: ServerTraceDiagnosticsResult
26445
26445
  });
26446
- const WsServerHeartbeatRpc = make$30(WS_METHODS.serverHeartbeat, {
26446
+ const WsServerHeartbeatRpc = make$29(WS_METHODS.serverHeartbeat, {
26447
26447
  payload: require_Schema$1.Struct({}),
26448
26448
  success: require_Schema$1.Struct({})
26449
26449
  });
26450
26450
  const PullRequestRpcError = require_Schema$1.Union([PullRequestUnavailableError, PullRequestOperationError]);
26451
- const WsPullRequestsListRpc = make$30(WS_METHODS.pullRequestsList, {
26451
+ const WsPullRequestsListRpc = make$29(WS_METHODS.pullRequestsList, {
26452
26452
  payload: PullRequestListInput,
26453
26453
  success: PullRequestListResult,
26454
26454
  error: PullRequestRpcError
26455
26455
  });
26456
- const WsPullRequestsListStatsRpc = make$30(WS_METHODS.pullRequestsListStats, {
26456
+ const WsPullRequestsListStatsRpc = make$29(WS_METHODS.pullRequestsListStats, {
26457
26457
  payload: PullRequestListStatsInput,
26458
26458
  success: PullRequestListStatsResult,
26459
26459
  error: PullRequestRpcError
26460
26460
  });
26461
- const WsPullRequestsDetailRpc = make$30(WS_METHODS.pullRequestsDetail, {
26461
+ const WsPullRequestsDetailRpc = make$29(WS_METHODS.pullRequestsDetail, {
26462
26462
  payload: PullRequestRef,
26463
26463
  success: PullRequestDetail,
26464
26464
  error: PullRequestRpcError
26465
26465
  });
26466
- const WsPullRequestsActivityRpc = make$30(WS_METHODS.pullRequestsActivity, {
26466
+ const WsPullRequestsActivityRpc = make$29(WS_METHODS.pullRequestsActivity, {
26467
26467
  payload: PullRequestRef,
26468
26468
  success: PullRequestActivity,
26469
26469
  error: PullRequestRpcError
26470
26470
  });
26471
- const WsPullRequestsThreadCommentsRpc = make$30(WS_METHODS.pullRequestsThreadComments, {
26471
+ const WsPullRequestsThreadCommentsRpc = make$29(WS_METHODS.pullRequestsThreadComments, {
26472
26472
  payload: PullRequestThreadCommentsInput,
26473
26473
  success: PullRequestThreadCommentsResult,
26474
26474
  error: PullRequestRpcError
26475
26475
  });
26476
- const WsPullRequestsDiffFileContentsRpc = make$30(WS_METHODS.pullRequestsDiffFileContents, {
26476
+ const WsPullRequestsDiffFileContentsRpc = make$29(WS_METHODS.pullRequestsDiffFileContents, {
26477
26477
  payload: PullRequestDiffFileContentsInput,
26478
26478
  success: PullRequestDiffFileContentsResult,
26479
26479
  error: PullRequestRpcError
26480
26480
  });
26481
- const WsPullRequestsRunActionRpc = make$30(WS_METHODS.pullRequestsRunAction, {
26481
+ const WsPullRequestsRunActionRpc = make$29(WS_METHODS.pullRequestsRunAction, {
26482
26482
  payload: PullRequestActionInput,
26483
26483
  success: require_Schema$1.Void,
26484
26484
  error: PullRequestRpcError
26485
26485
  });
26486
- const WsPullRequestsUpdateRpc = make$30(WS_METHODS.pullRequestsUpdate, {
26486
+ const WsPullRequestsUpdateRpc = make$29(WS_METHODS.pullRequestsUpdate, {
26487
26487
  payload: PullRequestUpdateInput,
26488
26488
  success: require_Schema$1.Void,
26489
26489
  error: PullRequestRpcError
26490
26490
  });
26491
- const WsPullRequestsCommentRpc = make$30(WS_METHODS.pullRequestsComment, {
26491
+ const WsPullRequestsCommentRpc = make$29(WS_METHODS.pullRequestsComment, {
26492
26492
  payload: PullRequestCommentInput,
26493
26493
  success: require_Schema$1.Void,
26494
26494
  error: PullRequestRpcError
26495
26495
  });
26496
- const WsPullRequestsUpdateCommentRpc = make$30(WS_METHODS.pullRequestsUpdateComment, {
26496
+ const WsPullRequestsUpdateCommentRpc = make$29(WS_METHODS.pullRequestsUpdateComment, {
26497
26497
  payload: PullRequestCommentUpdateInput,
26498
26498
  success: require_Schema$1.Void,
26499
26499
  error: PullRequestRpcError
26500
26500
  });
26501
- const WsPullRequestsSubmitReviewRpc = make$30(WS_METHODS.pullRequestsSubmitReview, {
26501
+ const WsPullRequestsSubmitReviewRpc = make$29(WS_METHODS.pullRequestsSubmitReview, {
26502
26502
  payload: PullRequestSubmitReviewInput,
26503
26503
  success: require_Schema$1.Void,
26504
26504
  error: PullRequestRpcError
26505
26505
  });
26506
- const WsPullRequestsReplyToThreadRpc = make$30(WS_METHODS.pullRequestsReplyToThread, {
26506
+ const WsPullRequestsReplyToThreadRpc = make$29(WS_METHODS.pullRequestsReplyToThread, {
26507
26507
  payload: PullRequestThreadReplyInput,
26508
26508
  success: require_Schema$1.Void,
26509
26509
  error: PullRequestRpcError
26510
26510
  });
26511
- const WsPullRequestsSetThreadResolutionRpc = make$30(WS_METHODS.pullRequestsSetThreadResolution, {
26511
+ const WsPullRequestsSetThreadResolutionRpc = make$29(WS_METHODS.pullRequestsSetThreadResolution, {
26512
26512
  payload: PullRequestThreadResolutionInput,
26513
26513
  success: require_Schema$1.Void,
26514
26514
  error: PullRequestRpcError
26515
26515
  });
26516
- const WsPullRequestsSetReactionRpc = make$30(WS_METHODS.pullRequestsSetReaction, {
26516
+ const WsPullRequestsSetReactionRpc = make$29(WS_METHODS.pullRequestsSetReaction, {
26517
26517
  payload: PullRequestReactionInput,
26518
26518
  success: require_Schema$1.Void,
26519
26519
  error: PullRequestRpcError
26520
26520
  });
26521
- const WsPullRequestsInvalidateRpc = make$30(WS_METHODS.pullRequestsInvalidate, {
26521
+ const WsPullRequestsInvalidateRpc = make$29(WS_METHODS.pullRequestsInvalidate, {
26522
26522
  payload: PullRequestInvalidateInput,
26523
26523
  success: require_Schema$1.Void,
26524
26524
  error: PullRequestRpcError
26525
26525
  });
26526
- const WsPullRequestsReviewerCandidatesRpc = make$30(WS_METHODS.pullRequestsReviewerCandidates, {
26526
+ const WsPullRequestsReviewerCandidatesRpc = make$29(WS_METHODS.pullRequestsReviewerCandidates, {
26527
26527
  payload: PullRequestRef,
26528
26528
  success: PullRequestReviewerCandidateList,
26529
26529
  error: PullRequestRpcError
26530
26530
  });
26531
- const WsPullRequestsRequestReviewersRpc = make$30(WS_METHODS.pullRequestsRequestReviewers, {
26531
+ const WsPullRequestsRequestReviewersRpc = make$29(WS_METHODS.pullRequestsRequestReviewers, {
26532
26532
  payload: PullRequestReviewerRequestInput,
26533
26533
  success: require_Schema$1.Void,
26534
26534
  error: PullRequestRpcError
26535
26535
  });
26536
- const WsProjectsSearchContentsRpc = make$30(WS_METHODS.projectsSearchContents, {
26536
+ const WsProjectsSearchContentsRpc = make$29(WS_METHODS.projectsSearchContents, {
26537
26537
  payload: ProjectSearchContentsInput,
26538
26538
  success: ProjectSearchContentsResult,
26539
26539
  error: ProjectSearchContentsError
26540
26540
  });
26541
- const WsProjectsSearchEntriesRpc = make$30(WS_METHODS.projectsSearchEntries, {
26541
+ const WsProjectsSearchEntriesRpc = make$29(WS_METHODS.projectsSearchEntries, {
26542
26542
  payload: ProjectSearchEntriesInput,
26543
26543
  success: ProjectSearchEntriesResult,
26544
26544
  error: ProjectSearchEntriesError
26545
26545
  });
26546
- const WsProjectsWriteFileRpc = make$30(WS_METHODS.projectsWriteFile, {
26546
+ const WsProjectsWriteFileRpc = make$29(WS_METHODS.projectsWriteFile, {
26547
26547
  payload: ProjectWriteFileInput,
26548
26548
  success: ProjectWriteFileResult,
26549
26549
  error: ProjectWriteFileError
26550
26550
  });
26551
- const WsProjectCheckoutDeletionPreviewRpc = make$30(WS_METHODS.projectCheckoutDeletionPreview, {
26551
+ const WsProjectCheckoutDeletionPreviewRpc = make$29(WS_METHODS.projectCheckoutDeletionPreview, {
26552
26552
  payload: ProjectCheckoutDeletionPreviewInput,
26553
26553
  success: ProjectCheckoutDeletionPreview
26554
26554
  });
26555
- const WsProjectCheckoutDeletionExecuteRpc = make$30(WS_METHODS.projectCheckoutDeletionExecute, {
26555
+ const WsProjectCheckoutDeletionExecuteRpc = make$29(WS_METHODS.projectCheckoutDeletionExecute, {
26556
26556
  payload: ProjectCheckoutDeletionExecuteInput,
26557
26557
  success: ProjectCheckoutDeletionResult
26558
26558
  });
26559
- const WsWorkspaceReadFileRpc = make$30(WS_METHODS.workspaceReadFile, {
26559
+ const WsWorkspaceReadFileRpc = make$29(WS_METHODS.workspaceReadFile, {
26560
26560
  payload: BulkTransferReadFileInput,
26561
26561
  success: BulkTransferStreamEvent,
26562
26562
  error: BulkTransferError,
26563
26563
  stream: true
26564
26564
  });
26565
- const WsWorkspaceBeginWriteFileRpc = make$30(WS_METHODS.workspaceBeginWriteFile, {
26565
+ const WsWorkspaceBeginWriteFileRpc = make$29(WS_METHODS.workspaceBeginWriteFile, {
26566
26566
  payload: BulkTransferWriteBeginInput,
26567
26567
  success: BulkTransferWriteBeginResult,
26568
26568
  error: BulkTransferError
26569
26569
  });
26570
- const WsWorkspaceWriteFileChunkRpc = make$30(WS_METHODS.workspaceWriteFileChunk, {
26570
+ const WsWorkspaceWriteFileChunkRpc = make$29(WS_METHODS.workspaceWriteFileChunk, {
26571
26571
  payload: BulkTransferWriteChunkInput,
26572
26572
  success: BulkTransferWriteChunkResult,
26573
26573
  error: BulkTransferError
26574
26574
  });
26575
- const WsWorkspaceCommitWriteFileRpc = make$30(WS_METHODS.workspaceCommitWriteFile, {
26575
+ const WsWorkspaceCommitWriteFileRpc = make$29(WS_METHODS.workspaceCommitWriteFile, {
26576
26576
  payload: BulkTransferIdInput,
26577
26577
  success: BulkTransferWriteCommitResult,
26578
26578
  error: BulkTransferError
26579
26579
  });
26580
- const WsWorkspaceCancelWriteFileRpc = make$30(WS_METHODS.workspaceCancelWriteFile, {
26580
+ const WsWorkspaceCancelWriteFileRpc = make$29(WS_METHODS.workspaceCancelWriteFile, {
26581
26581
  payload: BulkTransferIdInput,
26582
26582
  success: BulkTransferCancelResult,
26583
26583
  error: BulkTransferError
26584
26584
  });
26585
- const WsShellOpenInEditorRpc = make$30(WS_METHODS.shellOpenInEditor, {
26585
+ const WsShellOpenInEditorRpc = make$29(WS_METHODS.shellOpenInEditor, {
26586
26586
  payload: OpenInEditorInput,
26587
26587
  error: OpenError$1
26588
26588
  });
26589
- const WsSubscribeGitStatusRpc = make$30(WS_METHODS.subscribeGitStatus, {
26589
+ const WsSubscribeGitStatusRpc = make$29(WS_METHODS.subscribeGitStatus, {
26590
26590
  payload: GitStatusInput,
26591
26591
  success: GitStatusStreamEvent,
26592
26592
  error: GitManagerServiceError,
26593
26593
  stream: true
26594
26594
  });
26595
- const WsGitPullRpc = make$30(WS_METHODS.gitPull, {
26595
+ const WsGitPullRpc = make$29(WS_METHODS.gitPull, {
26596
26596
  payload: GitPullInput,
26597
26597
  success: GitPullResult,
26598
26598
  error: GitCommandError
26599
26599
  });
26600
- const WsGitRefreshStatusRpc = make$30(WS_METHODS.gitRefreshStatus, {
26600
+ const WsGitRefreshStatusRpc = make$29(WS_METHODS.gitRefreshStatus, {
26601
26601
  payload: GitStatusInput,
26602
26602
  success: GitStatusResult,
26603
26603
  error: GitManagerServiceError
26604
26604
  });
26605
- const WsGitRunStackedActionRpc = make$30(WS_METHODS.gitRunStackedAction, {
26605
+ const WsGitRunStackedActionRpc = make$29(WS_METHODS.gitRunStackedAction, {
26606
26606
  payload: GitRunStackedActionInput,
26607
26607
  success: GitActionProgressEvent,
26608
26608
  error: GitManagerServiceError,
26609
26609
  stream: true
26610
26610
  });
26611
- const WsGitResolvePullRequestRpc = make$30(WS_METHODS.gitResolvePullRequest, {
26611
+ const WsGitResolvePullRequestRpc = make$29(WS_METHODS.gitResolvePullRequest, {
26612
26612
  payload: GitPullRequestRefInput,
26613
26613
  success: GitResolvePullRequestResult,
26614
26614
  error: GitManagerServiceError
26615
26615
  });
26616
- const WsGitPreparePullRequestThreadRpc = make$30(WS_METHODS.gitPreparePullRequestThread, {
26616
+ const WsGitPreparePullRequestThreadRpc = make$29(WS_METHODS.gitPreparePullRequestThread, {
26617
26617
  payload: GitPreparePullRequestThreadInput,
26618
26618
  success: GitPreparePullRequestThreadResult,
26619
26619
  error: GitManagerServiceError
26620
26620
  });
26621
- const WsGitListBranchesRpc = make$30(WS_METHODS.gitListBranches, {
26621
+ const WsGitListBranchesRpc = make$29(WS_METHODS.gitListBranches, {
26622
26622
  payload: GitListBranchesInput,
26623
26623
  success: GitListBranchesResult,
26624
26624
  error: GitCommandError
26625
26625
  });
26626
- const WsVcsListRefsRpc = make$30(WS_METHODS.vcsListRefs, {
26626
+ const WsVcsListRefsRpc = make$29(WS_METHODS.vcsListRefs, {
26627
26627
  payload: VcsListRefsInput,
26628
26628
  success: VcsListRefsResult,
26629
26629
  error: GitCommandError
26630
26630
  });
26631
- const WsVcsRefreshStatusRpc = make$30(WS_METHODS.vcsRefreshStatus, {
26631
+ const WsVcsRefreshStatusRpc = make$29(WS_METHODS.vcsRefreshStatus, {
26632
26632
  payload: GitStatusInput,
26633
26633
  success: VcsStatusResult,
26634
26634
  error: GitManagerServiceError
26635
26635
  });
26636
- const WsSubscribeVcsStatusRpc = make$30(WS_METHODS.subscribeVcsStatus, {
26636
+ const WsSubscribeVcsStatusRpc = make$29(WS_METHODS.subscribeVcsStatus, {
26637
26637
  payload: GitStatusInput,
26638
26638
  success: VcsStatusStreamEvent,
26639
26639
  error: GitManagerServiceError,
26640
26640
  stream: true
26641
26641
  });
26642
- const WsVcsPullRpc = make$30(WS_METHODS.vcsPull, {
26642
+ const WsVcsPullRpc = make$29(WS_METHODS.vcsPull, {
26643
26643
  payload: VcsPullInput,
26644
26644
  success: VcsPullResult,
26645
26645
  error: GitCommandError
26646
26646
  });
26647
- const WsVcsCreateWorktreeRpc = make$30(WS_METHODS.vcsCreateWorktree, {
26647
+ const WsVcsCreateWorktreeRpc = make$29(WS_METHODS.vcsCreateWorktree, {
26648
26648
  payload: VcsCreateWorktreeInput,
26649
26649
  success: VcsCreateWorktreeResult,
26650
26650
  error: require_Schema$1.Union([GitCommandError, VcsUnsupportedRequestError])
26651
26651
  });
26652
- const WsVcsRemoveWorktreeRpc = make$30(WS_METHODS.vcsRemoveWorktree, {
26652
+ const WsVcsRemoveWorktreeRpc = make$29(WS_METHODS.vcsRemoveWorktree, {
26653
26653
  payload: GitRemoveWorktreeInput,
26654
26654
  error: GitCommandError
26655
26655
  });
26656
- const WsVcsCreateRefRpc = make$30(WS_METHODS.vcsCreateRef, {
26656
+ const WsVcsCreateRefRpc = make$29(WS_METHODS.vcsCreateRef, {
26657
26657
  payload: VcsCreateRefInput,
26658
26658
  success: VcsCreateRefResult,
26659
26659
  error: GitCommandError
26660
26660
  });
26661
- const WsVcsSwitchRefRpc = make$30(WS_METHODS.vcsSwitchRef, {
26661
+ const WsVcsSwitchRefRpc = make$29(WS_METHODS.vcsSwitchRef, {
26662
26662
  payload: VcsSwitchRefInput,
26663
26663
  success: VcsSwitchRefResult,
26664
26664
  error: GitCommandError
26665
26665
  });
26666
- const WsVcsInitRpc = make$30(WS_METHODS.vcsInit, {
26666
+ const WsVcsInitRpc = make$29(WS_METHODS.vcsInit, {
26667
26667
  payload: VcsInitInput,
26668
26668
  error: require_Schema$1.Union([GitCommandError, VcsUnsupportedRequestError])
26669
26669
  });
26670
- const WsGitCreateWorktreeRpc = make$30(WS_METHODS.gitCreateWorktree, {
26670
+ const WsGitCreateWorktreeRpc = make$29(WS_METHODS.gitCreateWorktree, {
26671
26671
  payload: GitCreateWorktreeInput,
26672
26672
  success: GitCreateWorktreeResult,
26673
26673
  error: GitCommandError
26674
26674
  });
26675
- const WsGitRemoveWorktreeRpc = make$30(WS_METHODS.gitRemoveWorktree, {
26675
+ const WsGitRemoveWorktreeRpc = make$29(WS_METHODS.gitRemoveWorktree, {
26676
26676
  payload: GitRemoveWorktreeInput,
26677
26677
  error: GitCommandError
26678
26678
  });
26679
- const WsGitCreateBranchRpc = make$30(WS_METHODS.gitCreateBranch, {
26679
+ const WsGitCreateBranchRpc = make$29(WS_METHODS.gitCreateBranch, {
26680
26680
  payload: GitCreateBranchInput,
26681
26681
  success: GitCreateBranchResult,
26682
26682
  error: GitCommandError
26683
26683
  });
26684
- const WsGitCheckoutRpc = make$30(WS_METHODS.gitCheckout, {
26684
+ const WsGitCheckoutRpc = make$29(WS_METHODS.gitCheckout, {
26685
26685
  payload: GitCheckoutInput,
26686
26686
  success: GitCheckoutResult,
26687
26687
  error: GitCommandError
26688
26688
  });
26689
- const WsGitInitRpc = make$30(WS_METHODS.gitInit, {
26689
+ const WsGitInitRpc = make$29(WS_METHODS.gitInit, {
26690
26690
  payload: GitInitInput,
26691
26691
  error: GitCommandError
26692
26692
  });
@@ -26694,7 +26694,7 @@ const WsGitInitRpc = make$30(WS_METHODS.gitInit, {
26694
26694
  * The git half of a review: the branch range and the uncommitted work. The
26695
26695
  * per-turn diffs beside it arrive through `orchestration.getTurnDiff`.
26696
26696
  */
26697
- const WsReviewGetDiffPreviewRpc = make$30(WS_METHODS.reviewGetDiffPreview, {
26697
+ const WsReviewGetDiffPreviewRpc = make$29(WS_METHODS.reviewGetDiffPreview, {
26698
26698
  payload: ReviewDiffPreviewInput,
26699
26699
  success: ReviewDiffPreviewResult,
26700
26700
  error: require_Schema$1.Union([ReviewDiffPreviewError])
@@ -26704,12 +26704,12 @@ const WsReviewGetDiffPreviewRpc = make$30(WS_METHODS.reviewGetDiffPreview, {
26704
26704
  * chunked bulk-transfer stream. A viewer wants the text once; a transfer wants
26705
26705
  * offsets and checksums.
26706
26706
  */
26707
- const WsProjectsReadFileRpc = make$30(WS_METHODS.projectsReadFile, {
26707
+ const WsProjectsReadFileRpc = make$29(WS_METHODS.projectsReadFile, {
26708
26708
  payload: ProjectReadFileInput,
26709
26709
  success: ProjectReadFileResult,
26710
26710
  error: require_Schema$1.Union([ProjectReadFileError])
26711
26711
  });
26712
- const WsFilesystemBrowseRpc = make$30(WS_METHODS.filesystemBrowse, {
26712
+ const WsFilesystemBrowseRpc = make$29(WS_METHODS.filesystemBrowse, {
26713
26713
  payload: FilesystemBrowseInput,
26714
26714
  success: FilesystemBrowseResult,
26715
26715
  error: require_Schema$1.Union([FilesystemBrowseError])
@@ -26719,87 +26719,87 @@ const WsFilesystemBrowseRpc = make$30(WS_METHODS.filesystemBrowse, {
26719
26719
  * Routed through the server because the phone keeps only the Forge-minted
26720
26720
  * session token, never a CMMD one.
26721
26721
  */
26722
- const WsCloudListRuntimesRpc = make$30(WS_METHODS.cloudListRuntimes, {
26722
+ const WsCloudListRuntimesRpc = make$29(WS_METHODS.cloudListRuntimes, {
26723
26723
  payload: CloudRuntimeListInput,
26724
26724
  success: CloudRuntimeListResult,
26725
26725
  error: require_Schema$1.Union([CloudRuntimeListError])
26726
26726
  });
26727
- const WsTerminalOpenRpc = make$30(WS_METHODS.terminalOpen, {
26727
+ const WsTerminalOpenRpc = make$29(WS_METHODS.terminalOpen, {
26728
26728
  payload: TerminalOpenInput,
26729
26729
  success: TerminalSessionSnapshot,
26730
26730
  error: TerminalError
26731
26731
  });
26732
- const WsTerminalAttachRpc = make$30(WS_METHODS.terminalAttach, {
26732
+ const WsTerminalAttachRpc = make$29(WS_METHODS.terminalAttach, {
26733
26733
  payload: TerminalAttachInput,
26734
26734
  success: TerminalAttachStreamEvent,
26735
26735
  error: TerminalError,
26736
26736
  stream: true
26737
26737
  });
26738
- const WsTerminalWriteRpc = make$30(WS_METHODS.terminalWrite, {
26738
+ const WsTerminalWriteRpc = make$29(WS_METHODS.terminalWrite, {
26739
26739
  payload: TerminalWriteRequest,
26740
26740
  success: TerminalControlAck,
26741
26741
  error: TerminalError
26742
26742
  });
26743
- const WsTerminalResizeRpc = make$30(WS_METHODS.terminalResize, {
26743
+ const WsTerminalResizeRpc = make$29(WS_METHODS.terminalResize, {
26744
26744
  payload: TerminalResizeRequest,
26745
26745
  success: TerminalControlAck,
26746
26746
  error: TerminalError
26747
26747
  });
26748
- const WsTerminalSignalRpc = make$30(WS_METHODS.terminalSignal, {
26748
+ const WsTerminalSignalRpc = make$29(WS_METHODS.terminalSignal, {
26749
26749
  payload: TerminalSignalRequest,
26750
26750
  success: TerminalControlAck,
26751
26751
  error: TerminalError
26752
26752
  });
26753
- const WsTerminalClearRpc = make$30(WS_METHODS.terminalClear, {
26753
+ const WsTerminalClearRpc = make$29(WS_METHODS.terminalClear, {
26754
26754
  payload: TerminalClearRequest,
26755
26755
  success: TerminalControlAck,
26756
26756
  error: TerminalError
26757
26757
  });
26758
- const WsTerminalRestartRpc = make$30(WS_METHODS.terminalRestart, {
26758
+ const WsTerminalRestartRpc = make$29(WS_METHODS.terminalRestart, {
26759
26759
  payload: TerminalRestartRequest,
26760
26760
  success: TerminalRestartResult,
26761
26761
  error: TerminalError
26762
26762
  });
26763
- const WsTerminalCloseRpc = make$30(WS_METHODS.terminalClose, {
26763
+ const WsTerminalCloseRpc = make$29(WS_METHODS.terminalClose, {
26764
26764
  payload: TerminalCloseRequest,
26765
26765
  success: TerminalControlAck,
26766
26766
  error: TerminalError
26767
26767
  });
26768
- const WsBrowserOpenSessionRpc = make$30(WS_METHODS.browserOpenSession, {
26768
+ const WsBrowserOpenSessionRpc = make$29(WS_METHODS.browserOpenSession, {
26769
26769
  payload: BrowserOpenSessionInput,
26770
26770
  success: BrowserSessionSnapshot,
26771
26771
  error: BrowserError
26772
26772
  });
26773
- const WsBrowserListSessionsRpc = make$30(WS_METHODS.browserListSessions, {
26773
+ const WsBrowserListSessionsRpc = make$29(WS_METHODS.browserListSessions, {
26774
26774
  payload: BrowserListSessionsInput,
26775
26775
  success: require_Schema$1.ArraySchema(BrowserSessionSnapshot),
26776
26776
  error: BrowserError
26777
26777
  });
26778
- const WsBrowserCloseSessionRpc = make$30(WS_METHODS.browserCloseSession, {
26778
+ const WsBrowserCloseSessionRpc = make$29(WS_METHODS.browserCloseSession, {
26779
26779
  payload: BrowserCloseSessionInput,
26780
26780
  error: BrowserError
26781
26781
  });
26782
- const WsBrowserGetSessionRpc = make$30(WS_METHODS.browserGetSession, {
26782
+ const WsBrowserGetSessionRpc = make$29(WS_METHODS.browserGetSession, {
26783
26783
  payload: BrowserGetSessionInput,
26784
26784
  success: require_Schema$1.NullOr(BrowserSessionSnapshot),
26785
26785
  error: BrowserError
26786
26786
  });
26787
- const WsBrowserCommandRpc = make$30(WS_METHODS.browserCommand, {
26787
+ const WsBrowserCommandRpc = make$29(WS_METHODS.browserCommand, {
26788
26788
  payload: BrowserCommandInput,
26789
26789
  success: BrowserCommandResult,
26790
26790
  error: BrowserError
26791
26791
  });
26792
- const WsBrowserClearBrowsingDataRpc = make$30(WS_METHODS.browserClearBrowsingData, {
26792
+ const WsBrowserClearBrowsingDataRpc = make$29(WS_METHODS.browserClearBrowsingData, {
26793
26793
  payload: BrowserClearBrowsingDataInput,
26794
26794
  success: BrowserClearBrowsingDataResult,
26795
26795
  error: BrowserError
26796
26796
  });
26797
- const WsBrowserAttachDisplayRpc = make$30(WS_METHODS.browserAttachDisplay, {
26797
+ const WsBrowserAttachDisplayRpc = make$29(WS_METHODS.browserAttachDisplay, {
26798
26798
  payload: BrowserDisplayAttachInput,
26799
26799
  success: BrowserDisplayAttachResult,
26800
26800
  error: BrowserError
26801
26801
  });
26802
- const WsBrowserAddDisplayIceCandidateRpc = make$30(WS_METHODS.browserAddDisplayIceCandidate, {
26802
+ const WsBrowserAddDisplayIceCandidateRpc = make$29(WS_METHODS.browserAddDisplayIceCandidate, {
26803
26803
  payload: BrowserDisplayIceCandidateInput,
26804
26804
  success: require_Schema$1.Struct({}),
26805
26805
  error: BrowserError
@@ -26811,87 +26811,87 @@ const WsBrowserAddDisplayIceCandidateRpc = make$30(WS_METHODS.browserAddDisplayI
26811
26811
  * page: it can click a DOM element but cannot touch the dock, a file manager,
26812
26812
  * or anything else outside Chromium. This one lands on the display itself.
26813
26813
  */
26814
- const WsComputerInputRpc = make$30(WS_METHODS.computerInput, {
26814
+ const WsComputerInputRpc = make$29(WS_METHODS.computerInput, {
26815
26815
  payload: ComputerInputInput,
26816
26816
  success: ComputerInputResult,
26817
26817
  error: ComputerError
26818
26818
  });
26819
- const WsDevTunnelRegisterRpc = make$30(WS_METHODS.devTunnelRegister, {
26819
+ const WsDevTunnelRegisterRpc = make$29(WS_METHODS.devTunnelRegister, {
26820
26820
  payload: DevTunnelRegisterInput,
26821
26821
  success: DevTunnelRecord,
26822
26822
  error: DevTunnelError
26823
26823
  });
26824
- const WsDevTunnelUnregisterRpc = make$30(WS_METHODS.devTunnelUnregister, {
26824
+ const WsDevTunnelUnregisterRpc = make$29(WS_METHODS.devTunnelUnregister, {
26825
26825
  payload: DevTunnelUnregisterInput,
26826
26826
  error: DevTunnelError
26827
26827
  });
26828
- const WsDevTunnelListRpc = make$30(WS_METHODS.devTunnelList, {
26828
+ const WsDevTunnelListRpc = make$29(WS_METHODS.devTunnelList, {
26829
26829
  payload: DevTunnelListInput,
26830
26830
  success: require_Schema$1.ArraySchema(DevTunnelRecord),
26831
26831
  error: DevTunnelError
26832
26832
  });
26833
- const WsThreadDevRuntimeGetRpc = make$30(WS_METHODS.threadDevRuntimeGet, {
26833
+ const WsThreadDevRuntimeGetRpc = make$29(WS_METHODS.threadDevRuntimeGet, {
26834
26834
  payload: ThreadDevRuntimeGetInput,
26835
26835
  success: require_Schema$1.NullOr(ThreadDevRuntimeRecord),
26836
26836
  error: ThreadDevRuntimeError
26837
26837
  });
26838
- const WsThreadDevRuntimeAllocatePortRpc = make$30(WS_METHODS.threadDevRuntimeAllocatePort, {
26838
+ const WsThreadDevRuntimeAllocatePortRpc = make$29(WS_METHODS.threadDevRuntimeAllocatePort, {
26839
26839
  payload: ThreadDevRuntimeAllocatePortInput,
26840
26840
  success: ThreadDevRuntimeRecord,
26841
26841
  error: ThreadDevRuntimeError
26842
26842
  });
26843
- const WsThreadDevRuntimeReleaseRpc = make$30(WS_METHODS.threadDevRuntimeRelease, {
26843
+ const WsThreadDevRuntimeReleaseRpc = make$29(WS_METHODS.threadDevRuntimeRelease, {
26844
26844
  payload: ThreadDevRuntimeReleaseInput,
26845
26845
  error: ThreadDevRuntimeError
26846
26846
  });
26847
- const WsWorkspaceEnvironmentPreflightRpc = make$30(WS_METHODS.workspaceEnvironmentPreflight, {
26847
+ const WsWorkspaceEnvironmentPreflightRpc = make$29(WS_METHODS.workspaceEnvironmentPreflight, {
26848
26848
  payload: WorkspaceEnvironmentPreflightInput,
26849
26849
  success: WorkspaceEnvironmentPreflightReport,
26850
26850
  error: WorkspaceEnvironmentError
26851
26851
  });
26852
- const WsWorkspaceEnsureScratchRpc = make$30(WS_METHODS.workspaceEnsureScratch, {
26852
+ const WsWorkspaceEnsureScratchRpc = make$29(WS_METHODS.workspaceEnsureScratch, {
26853
26853
  payload: WorkspaceEnsureScratchInput,
26854
26854
  success: WorkspaceEnsureScratchResult,
26855
26855
  error: WorkspaceEnvironmentError
26856
26856
  });
26857
- const WsOrchestrationDispatchCommandRpc = make$30(ORCHESTRATION_WS_METHODS.dispatchCommand, {
26857
+ const WsOrchestrationDispatchCommandRpc = make$29(ORCHESTRATION_WS_METHODS.dispatchCommand, {
26858
26858
  payload: ClientOrchestrationCommand,
26859
26859
  success: OrchestrationRpcSchemas.dispatchCommand.output,
26860
26860
  error: OrchestrationDispatchCommandError
26861
26861
  });
26862
- const WsOrchestrationGetTurnDiffRpc = make$30(ORCHESTRATION_WS_METHODS.getTurnDiff, {
26862
+ const WsOrchestrationGetTurnDiffRpc = make$29(ORCHESTRATION_WS_METHODS.getTurnDiff, {
26863
26863
  payload: OrchestrationGetTurnDiffInput,
26864
26864
  success: OrchestrationRpcSchemas.getTurnDiff.output,
26865
26865
  error: OrchestrationGetTurnDiffError
26866
26866
  });
26867
- const WsOrchestrationGetFullThreadDiffRpc = make$30(ORCHESTRATION_WS_METHODS.getFullThreadDiff, {
26867
+ const WsOrchestrationGetFullThreadDiffRpc = make$29(ORCHESTRATION_WS_METHODS.getFullThreadDiff, {
26868
26868
  payload: OrchestrationGetFullThreadDiffInput,
26869
26869
  success: OrchestrationRpcSchemas.getFullThreadDiff.output,
26870
26870
  error: OrchestrationGetFullThreadDiffError
26871
26871
  });
26872
- const WsOrchestrationStreamTurnDiffRpc = make$30(ORCHESTRATION_WS_METHODS.streamTurnDiff, {
26872
+ const WsOrchestrationStreamTurnDiffRpc = make$29(ORCHESTRATION_WS_METHODS.streamTurnDiff, {
26873
26873
  payload: OrchestrationGetTurnDiffInput,
26874
26874
  success: BulkTransferStreamEvent,
26875
26875
  error: require_Schema$1.Union([OrchestrationGetTurnDiffError, BulkTransferError]),
26876
26876
  stream: true
26877
26877
  });
26878
- const WsOrchestrationStreamFullThreadDiffRpc = make$30(ORCHESTRATION_WS_METHODS.streamFullThreadDiff, {
26878
+ const WsOrchestrationStreamFullThreadDiffRpc = make$29(ORCHESTRATION_WS_METHODS.streamFullThreadDiff, {
26879
26879
  payload: OrchestrationGetFullThreadDiffInput,
26880
26880
  success: BulkTransferStreamEvent,
26881
26881
  error: require_Schema$1.Union([OrchestrationGetFullThreadDiffError, BulkTransferError]),
26882
26882
  stream: true
26883
26883
  });
26884
- const WsOrchestrationReplayEventsRpc = make$30(ORCHESTRATION_WS_METHODS.replayEvents, {
26884
+ const WsOrchestrationReplayEventsRpc = make$29(ORCHESTRATION_WS_METHODS.replayEvents, {
26885
26885
  payload: OrchestrationReplayEventsInput,
26886
26886
  success: OrchestrationRpcSchemas.replayEvents.output,
26887
26887
  error: OrchestrationReplayEventsError
26888
26888
  });
26889
- const WsOrchestrationGetArchivedShellSnapshotRpc = make$30(ORCHESTRATION_WS_METHODS.getArchivedShellSnapshot, {
26889
+ const WsOrchestrationGetArchivedShellSnapshotRpc = make$29(ORCHESTRATION_WS_METHODS.getArchivedShellSnapshot, {
26890
26890
  payload: OrchestrationRpcSchemas.getArchivedShellSnapshot.input,
26891
26891
  success: OrchestrationRpcSchemas.getArchivedShellSnapshot.output,
26892
26892
  error: OrchestrationGetSnapshotError
26893
26893
  });
26894
- const WsOrchestrationSearchThreadsRpc = make$30(ORCHESTRATION_WS_METHODS.searchThreads, {
26894
+ const WsOrchestrationSearchThreadsRpc = make$29(ORCHESTRATION_WS_METHODS.searchThreads, {
26895
26895
  payload: OrchestrationSearchThreadsInput,
26896
26896
  success: OrchestrationRpcSchemas.searchThreads.output,
26897
26897
  error: OrchestrationSearchThreadsError
@@ -26902,7 +26902,7 @@ const WsOrchestrationSearchThreadsRpc = make$30(ORCHESTRATION_WS_METHODS.searchT
26902
26902
  * route and `subscribeThread`'s fallback snapshot serve, over the RPC socket
26903
26903
  * instead.
26904
26904
  */
26905
- const WsOrchestrationGetThreadDetailPageRpc = make$30(ORCHESTRATION_WS_METHODS.getThreadDetailPage, {
26905
+ const WsOrchestrationGetThreadDetailPageRpc = make$29(ORCHESTRATION_WS_METHODS.getThreadDetailPage, {
26906
26906
  payload: OrchestrationRpcSchemas.getThreadDetailPage.input,
26907
26907
  success: OrchestrationRpcSchemas.getThreadDetailPage.output,
26908
26908
  error: OrchestrationGetSnapshotError
@@ -26915,29 +26915,29 @@ const WsOrchestrationGetThreadDetailPageRpc = make$30(ORCHESTRATION_WS_METHODS.g
26915
26915
  * also be authorized, and a repository the caller cannot reach is a failure
26916
26916
  * here rather than a clone that dies half way.
26917
26917
  */
26918
- const WsSourceControlLookupRepositoryRpc = make$30(WS_METHODS.sourceControlLookupRepository, {
26918
+ const WsSourceControlLookupRepositoryRpc = make$29(WS_METHODS.sourceControlLookupRepository, {
26919
26919
  payload: SourceControlRepositoryLookupInput,
26920
26920
  success: SourceControlRepositoryInfo,
26921
26921
  error: SourceControlRepositoryError
26922
26922
  });
26923
- const WsSourceControlCloneRepositoryRpc = make$30(WS_METHODS.sourceControlCloneRepository, {
26923
+ const WsSourceControlCloneRepositoryRpc = make$29(WS_METHODS.sourceControlCloneRepository, {
26924
26924
  payload: SourceControlCloneRepositoryInput,
26925
26925
  success: SourceControlCloneRepositoryResult,
26926
26926
  error: SourceControlRepositoryError
26927
26927
  });
26928
- const WsOrchestrationSubscribeShellRpc = make$30(ORCHESTRATION_WS_METHODS.subscribeShell, {
26928
+ const WsOrchestrationSubscribeShellRpc = make$29(ORCHESTRATION_WS_METHODS.subscribeShell, {
26929
26929
  payload: OrchestrationRpcSchemas.subscribeShell.input,
26930
26930
  success: OrchestrationRpcSchemas.subscribeShell.output,
26931
26931
  error: OrchestrationGetSnapshotError,
26932
26932
  stream: true
26933
26933
  });
26934
- const WsOrchestrationSubscribeThreadRpc = make$30(ORCHESTRATION_WS_METHODS.subscribeThread, {
26934
+ const WsOrchestrationSubscribeThreadRpc = make$29(ORCHESTRATION_WS_METHODS.subscribeThread, {
26935
26935
  payload: OrchestrationRpcSchemas.subscribeThread.input,
26936
26936
  success: OrchestrationRpcSchemas.subscribeThread.output,
26937
26937
  error: OrchestrationGetSnapshotError,
26938
26938
  stream: true
26939
26939
  });
26940
- const WsSubscribeTerminalEventsRpc = make$30(WS_METHODS.subscribeTerminalEvents, {
26940
+ const WsSubscribeTerminalEventsRpc = make$29(WS_METHODS.subscribeTerminalEvents, {
26941
26941
  payload: require_Schema$1.Struct({}),
26942
26942
  success: TerminalEvent,
26943
26943
  stream: true
@@ -26958,65 +26958,65 @@ const WsSubscribeTerminalEventsRpc = make$30(WS_METHODS.subscribeTerminalEvents,
26958
26958
  * The client's activity report, accepted and dropped. See
26959
26959
  * packages/contracts/src/clientActivityCompat.ts for why there is no answer.
26960
26960
  */
26961
- const WsServerReportClientActivityRpc = make$30(WS_METHODS.serverReportClientActivity, { payload: ClientActivityReportInput });
26962
- const WsServerDiscoverSourceControlRpc = make$30(WS_METHODS.serverDiscoverSourceControl, {
26961
+ const WsServerReportClientActivityRpc = make$29(WS_METHODS.serverReportClientActivity, { payload: ClientActivityReportInput });
26962
+ const WsServerDiscoverSourceControlRpc = make$29(WS_METHODS.serverDiscoverSourceControl, {
26963
26963
  payload: require_Schema$1.Struct({}),
26964
26964
  success: SourceControlDiscoveryResult
26965
26965
  });
26966
- const WsProjectsListEntriesRpc = make$30(WS_METHODS.projectsListEntries, {
26966
+ const WsProjectsListEntriesRpc = make$29(WS_METHODS.projectsListEntries, {
26967
26967
  payload: ProjectListEntriesInput,
26968
26968
  success: ProjectListEntriesResult,
26969
26969
  error: ProjectListEntriesError
26970
26970
  });
26971
- const WsSubscribeTerminalMetadataRpc = make$30(WS_METHODS.subscribeTerminalMetadata, {
26971
+ const WsSubscribeTerminalMetadataRpc = make$29(WS_METHODS.subscribeTerminalMetadata, {
26972
26972
  payload: require_Schema$1.Struct({}),
26973
26973
  success: TerminalMetadataStreamEvent,
26974
26974
  stream: true
26975
26975
  });
26976
- const WsSubscribeBrowserEventsRpc = make$30(WS_METHODS.subscribeBrowserEvents, {
26976
+ const WsSubscribeBrowserEventsRpc = make$29(WS_METHODS.subscribeBrowserEvents, {
26977
26977
  payload: BrowserSubscribeInput,
26978
26978
  success: BrowserStreamEvent,
26979
26979
  error: BrowserError,
26980
26980
  stream: true
26981
26981
  });
26982
- const WsSubscribeServerConfigRpc = make$30(WS_METHODS.subscribeServerConfig, {
26982
+ const WsSubscribeServerConfigRpc = make$29(WS_METHODS.subscribeServerConfig, {
26983
26983
  payload: require_Schema$1.Struct({}),
26984
26984
  success: ServerConfigStreamEvent,
26985
26985
  error: require_Schema$1.Union([KeybindingsConfigError, ServerSettingsError]),
26986
26986
  stream: true
26987
26987
  });
26988
- const WsSubscribeServerLifecycleRpc = make$30(WS_METHODS.subscribeServerLifecycle, {
26988
+ const WsSubscribeServerLifecycleRpc = make$29(WS_METHODS.subscribeServerLifecycle, {
26989
26989
  payload: require_Schema$1.Struct({}),
26990
26990
  success: ServerLifecycleStreamEvent,
26991
26991
  stream: true
26992
26992
  });
26993
- const WsSubscribeAuthAccessRpc = make$30(WS_METHODS.subscribeAuthAccess, {
26993
+ const WsSubscribeAuthAccessRpc = make$29(WS_METHODS.subscribeAuthAccess, {
26994
26994
  payload: require_Schema$1.Struct({}),
26995
26995
  success: AuthAccessStreamEvent,
26996
26996
  stream: true
26997
26997
  });
26998
- const WsSubscribeWorkspaceReadinessRpc = make$30(WS_METHODS.subscribeWorkspaceReadiness, {
26998
+ const WsSubscribeWorkspaceReadinessRpc = make$29(WS_METHODS.subscribeWorkspaceReadiness, {
26999
26999
  payload: WorkspaceReadinessSubscribeInput,
27000
27000
  success: PhaseEvent,
27001
27001
  error: WorkspaceReadinessError,
27002
27002
  stream: true
27003
27003
  });
27004
- const WsRpcGroup = make$29(WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsServerStartProviderAuthRpc, WsServerRepairProviderAuthRuntimeRpc, WsServerDisconnectProviderAuthRpc, WsServerGetProviderAuthSessionRpc, WsServerCancelProviderAuthRpc, WsServerSubmitProviderAuthCodeRpc, WsServerSyncPersonalCodexToCloudRpc, WsServerSyncPersonalClaudeToCloudRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerUpdateEnvironmentDisplayNameRpc, WsServerTraceDiagnosticsRpc, WsServerHeartbeatRpc, make$30(WS_METHODS.usageGetSummary, {
27004
+ const WsRpcGroup = make$28(WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsServerStartProviderAuthRpc, WsServerRepairProviderAuthRuntimeRpc, WsServerDisconnectProviderAuthRpc, WsServerGetProviderAuthSessionRpc, WsServerCancelProviderAuthRpc, WsServerSubmitProviderAuthCodeRpc, WsServerSyncPersonalCodexToCloudRpc, WsServerSyncPersonalClaudeToCloudRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerUpdateEnvironmentDisplayNameRpc, WsServerTraceDiagnosticsRpc, WsServerHeartbeatRpc, make$29(WS_METHODS.usageGetSummary, {
27005
27005
  payload: UsageSummaryInput,
27006
27006
  success: UsageSummary,
27007
27007
  error: UsageReadError
27008
- }), WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsDetailRpc, WsPullRequestsActivityRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsWriteFileRpc, WsProjectCheckoutDeletionPreviewRpc, WsProjectCheckoutDeletionExecuteRpc, WsWorkspaceReadFileRpc, WsWorkspaceBeginWriteFileRpc, WsWorkspaceWriteFileChunkRpc, WsWorkspaceCommitWriteFileRpc, WsWorkspaceCancelWriteFileRpc, WsShellOpenInEditorRpc, WsSubscribeGitStatusRpc, WsGitPullRpc, WsGitRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsGitListBranchesRpc, WsVcsListRefsRpc, WsVcsRefreshStatusRpc, WsSubscribeVcsStatusRpc, WsVcsPullRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsGitCreateWorktreeRpc, WsGitRemoveWorktreeRpc, WsGitCreateBranchRpc, WsGitCheckoutRpc, WsGitInitRpc, WsFilesystemBrowseRpc, WsProjectsReadFileRpc, WsReviewGetDiffPreviewRpc, WsCloudListRuntimesRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalSignalRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsBrowserOpenSessionRpc, WsBrowserListSessionsRpc, WsBrowserCloseSessionRpc, WsBrowserGetSessionRpc, WsBrowserCommandRpc, WsBrowserClearBrowsingDataRpc, WsBrowserAttachDisplayRpc, WsBrowserAddDisplayIceCandidateRpc, WsComputerInputRpc, WsDevTunnelRegisterRpc, WsDevTunnelUnregisterRpc, WsDevTunnelListRpc, WsThreadDevRuntimeGetRpc, WsThreadDevRuntimeAllocatePortRpc, WsThreadDevRuntimeReleaseRpc, WsWorkspaceEnvironmentPreflightRpc, WsWorkspaceEnsureScratchRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsProjectsListEntriesRpc, WsServerDiscoverSourceControlRpc, WsServerReportClientActivityRpc, WsSubscribeBrowserEventsRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeWorkspaceReadinessRpc, WsOrchestrationDispatchCommandRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationStreamTurnDiffRpc, WsOrchestrationStreamFullThreadDiffRpc, WsOrchestrationReplayEventsRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc, make$30(WS_METHODS.assetsCreateUrl, {
27008
+ }), WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsDetailRpc, WsPullRequestsActivityRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsWriteFileRpc, WsProjectCheckoutDeletionPreviewRpc, WsProjectCheckoutDeletionExecuteRpc, WsWorkspaceReadFileRpc, WsWorkspaceBeginWriteFileRpc, WsWorkspaceWriteFileChunkRpc, WsWorkspaceCommitWriteFileRpc, WsWorkspaceCancelWriteFileRpc, WsShellOpenInEditorRpc, WsSubscribeGitStatusRpc, WsGitPullRpc, WsGitRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsGitListBranchesRpc, WsVcsListRefsRpc, WsVcsRefreshStatusRpc, WsSubscribeVcsStatusRpc, WsVcsPullRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsGitCreateWorktreeRpc, WsGitRemoveWorktreeRpc, WsGitCreateBranchRpc, WsGitCheckoutRpc, WsGitInitRpc, WsFilesystemBrowseRpc, WsProjectsReadFileRpc, WsReviewGetDiffPreviewRpc, WsCloudListRuntimesRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalSignalRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsBrowserOpenSessionRpc, WsBrowserListSessionsRpc, WsBrowserCloseSessionRpc, WsBrowserGetSessionRpc, WsBrowserCommandRpc, WsBrowserClearBrowsingDataRpc, WsBrowserAttachDisplayRpc, WsBrowserAddDisplayIceCandidateRpc, WsComputerInputRpc, WsDevTunnelRegisterRpc, WsDevTunnelUnregisterRpc, WsDevTunnelListRpc, WsThreadDevRuntimeGetRpc, WsThreadDevRuntimeAllocatePortRpc, WsThreadDevRuntimeReleaseRpc, WsWorkspaceEnvironmentPreflightRpc, WsWorkspaceEnsureScratchRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsProjectsListEntriesRpc, WsServerDiscoverSourceControlRpc, WsServerReportClientActivityRpc, WsSubscribeBrowserEventsRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeWorkspaceReadinessRpc, WsOrchestrationDispatchCommandRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationStreamTurnDiffRpc, WsOrchestrationStreamFullThreadDiffRpc, WsOrchestrationReplayEventsRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc, make$29(WS_METHODS.assetsCreateUrl, {
27009
27009
  payload: AssetsRpcSchemas.createUrl.input,
27010
27010
  success: AssetsRpcSchemas.createUrl.output,
27011
27011
  error: AssetAccessError
27012
- }), make$30(WS_METHODS.attachmentsCreateUploadUrl, {
27012
+ }), make$29(WS_METHODS.attachmentsCreateUploadUrl, {
27013
27013
  payload: AttachmentCreateUploadUrlInput,
27014
27014
  success: AttachmentCreateUploadUrlResult,
27015
27015
  error: AttachmentUploadSigningKeyError
27016
- }), make$30(WS_METHODS.attachmentsDelete, {
27016
+ }), make$29(WS_METHODS.attachmentsDelete, {
27017
27017
  payload: AttachmentDeleteInput,
27018
27018
  success: require_Schema$1.Void
27019
- }), make$30(WS_METHODS.providerUploadFeedback, {
27019
+ }), make$29(WS_METHODS.providerUploadFeedback, {
27020
27020
  payload: ProviderUploadFeedbackInput,
27021
27021
  success: ProviderUploadFeedbackResult,
27022
27022
  error: ProviderUploadFeedbackError
@@ -34652,7 +34652,7 @@ function parse$5(input) {
34652
34652
  const FULL_PATH_REGEXP = /^https?:\/\/.*?\//;
34653
34653
  const OPTIONAL_PARAM_REGEXP = /(\/:[^/()]*?)\?(\/?)/;
34654
34654
  /** @internal */
34655
- const make$28 = (options = {}) => new RouterImpl(options);
34655
+ const make$27 = (options = {}) => new RouterImpl(options);
34656
34656
  var RouterImpl = class {
34657
34657
  constructor(options = {}) {
34658
34658
  this.options = {
@@ -35171,7 +35171,7 @@ const httpMethods = [
35171
35171
  * @since 1.0.0
35172
35172
  * @category constructors
35173
35173
  */
35174
- const make$27 = make$28;
35174
+ const make$26 = make$27;
35175
35175
  //#endregion
35176
35176
  //#region ../../node_modules/.bun/effect@4.0.0-beta.51/node_modules/effect/dist/unstable/http/HttpRouter.js
35177
35177
  /**
@@ -35187,8 +35187,8 @@ const HttpRouter = /* @__PURE__ */ require_Schema$1.Service("effect/http/HttpRou
35187
35187
  * @since 4.0.0
35188
35188
  * @category HttpRouter
35189
35189
  */
35190
- const make$26 = /* @__PURE__ */ require_Schema$1.gen(function* () {
35191
- const router = make$27(yield* RouterConfig);
35190
+ const make$25 = /* @__PURE__ */ require_Schema$1.gen(function* () {
35191
+ const router = make$26(yield* RouterConfig);
35192
35192
  const middleware = /* @__PURE__ */ new Set();
35193
35193
  const addAll = (routes) => require_Schema$1.contextWith((context) => {
35194
35194
  const middleware = getMiddleware(context);
@@ -35318,7 +35318,7 @@ const add$1 = (method, path, handler, options) => use((router) => router.add(met
35318
35318
  * @since 4.0.0
35319
35319
  * @category HttpRouter
35320
35320
  */
35321
- const layer$5 = /* @__PURE__ */ require_Schema$1.effect(HttpRouter)(make$26);
35321
+ const layer$5 = /* @__PURE__ */ require_Schema$1.effect(HttpRouter)(make$25);
35322
35322
  const RouteTypeId = "~effect/http/HttpRouter/Route";
35323
35323
  const makeRoute = (options) => ({
35324
35324
  ...options,
@@ -66332,7 +66332,7 @@ function normalizeNumberish(value) {
66332
66332
  }
66333
66333
  //#endregion
66334
66334
  //#region package.json
66335
- var version$1 = "0.13.95";
66335
+ var version$1 = "0.13.96";
66336
66336
  //#endregion
66337
66337
  //#region src/sentry.ts
66338
66338
  const SERVER_APP_NAME = "forge-server";
@@ -77159,7 +77159,7 @@ let clientIdCounter = 0;
77159
77159
  * @since 4.0.0
77160
77160
  * @category client
77161
77161
  */
77162
- const make$25 = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (group, options) {
77162
+ const make$24 = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (group, options) {
77163
77163
  const clientId = clientIdCounter++;
77164
77164
  const { run, send, supportsAck, supportsTransferables } = yield* Protocol$1;
77165
77165
  const entries = /* @__PURE__ */ new Map();
@@ -77535,7 +77535,7 @@ const applyMiddleware = (context, handler, options) => {
77535
77535
  * @since 4.0.0
77536
77536
  * @category server
77537
77537
  */
77538
- const make$24 = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (group, options) {
77538
+ const make$23 = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (group, options) {
77539
77539
  const { disconnects, end, run, send, supportsAck, supportsSpanPropagation, supportsTransferables } = yield* Protocol;
77540
77540
  const services = yield* require_Schema$1.context();
77541
77541
  const scope = yield* require_Schema$1.make$3();
@@ -77708,7 +77708,7 @@ const makeProtocolWithHttpEffectWebsocket = /* @__PURE__ */ require_Schema$1.gen
77708
77708
  */
77709
77709
  const toHttpEffectWebsocket = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (group, options) {
77710
77710
  const { httpEffect, protocol } = yield* makeProtocolWithHttpEffectWebsocket;
77711
- yield* make$24(group, options).pipe(require_Schema$1.provideService(Protocol, protocol), require_Schema$1.forkScoped);
77711
+ yield* make$23(group, options).pipe(require_Schema$1.provideService(Protocol, protocol), require_Schema$1.forkScoped);
77712
77712
  return httpEffect;
77713
77713
  });
77714
77714
  const makeSocketProtocol = /* @__PURE__ */ require_Schema$1.gen(function* () {
@@ -78745,7 +78745,7 @@ function readTraceFile(fileSystem, path) {
78745
78745
  cause
78746
78746
  })) }));
78747
78747
  }
78748
- const make$23 = require_Schema$1.gen(function* () {
78748
+ const make$22 = require_Schema$1.gen(function* () {
78749
78749
  const fileSystem = yield* require_Path.FileSystem;
78750
78750
  const read = require_Schema$1.fn("TraceDiagnostics.read")(function* (options) {
78751
78751
  const readAtMs = options.readAtMs ?? Date.now();
@@ -78789,7 +78789,7 @@ const make$23 = require_Schema$1.gen(function* () {
78789
78789
  });
78790
78790
  return TraceDiagnostics.of({ read });
78791
78791
  });
78792
- const layer$4 = require_Schema$1.effect(TraceDiagnostics, make$23);
78792
+ const layer$4 = require_Schema$1.effect(TraceDiagnostics, make$22);
78793
78793
  require_Schema$1.succeed$1(TraceDiagnostics, TraceDiagnostics.of({ read: (options) => require_Schema$1.succeed(makeEmptyDiagnostics({
78794
78794
  traceFilePath: options.traceFilePath,
78795
78795
  scannedFilePaths: [],
@@ -86695,7 +86695,7 @@ function toReviewThreadListing(threads, dismissalsByReviewId) {
86695
86695
  viewer: threads.metadata.viewer
86696
86696
  };
86697
86697
  }
86698
- const make$22 = require_Schema$1.gen(function* () {
86698
+ const make$21 = require_Schema$1.gen(function* () {
86699
86699
  const github = yield* GitHubCli$1;
86700
86700
  /**
86701
86701
  * The pull request's own node id, which is what a mutation against the pull request itself is
@@ -87400,9 +87400,9 @@ const make$22 = require_Schema$1.gen(function* () {
87400
87400
  })))
87401
87401
  });
87402
87402
  });
87403
- require_Schema$1.effect(GitHubPullRequestCli, make$22);
87403
+ require_Schema$1.effect(GitHubPullRequestCli, make$21);
87404
87404
  /** Builds a PR CLI for one authenticated session without touching global git or auth state. */
87405
- const makeFromCommandRunner = (runner) => make$22.pipe(require_Schema$1.provideService(GitHubCli$1, runner));
87405
+ const makeFromCommandRunner = (runner) => make$21.pipe(require_Schema$1.provideService(GitHubCli$1, runner));
87406
87406
  //#endregion
87407
87407
  //#region src/pullRequest/GitHubPullRequestProvider.ts
87408
87408
  const CAPABILITIES$3 = {
@@ -87522,7 +87522,7 @@ function loginAvatarUrl(login, host) {
87522
87522
  }
87523
87523
  /** True where markdown would render nothing: whitespace, or only HTML comments. */
87524
87524
  const rendersEmpty = (body) => body.replace(/<!--[\s\S]*?-->/g, "").trim().length === 0;
87525
- const make$21 = require_Schema$1.gen(function* () {
87525
+ const make$20 = require_Schema$1.gen(function* () {
87526
87526
  const cli = yield* GitHubPullRequestCli;
87527
87527
  const fail = (operation) => (error) => new PullRequestProviderError({
87528
87528
  provider: "github",
@@ -87731,7 +87731,7 @@ const make$21 = require_Schema$1.gen(function* () {
87731
87731
  };
87732
87732
  });
87733
87733
  /** Constructs the provider from a session-bound command service supplied by the caller. */
87734
- const makeFromCli = (cli) => make$21.pipe(require_Schema$1.provideService(GitHubPullRequestCli, cli));
87734
+ const makeFromCli = (cli) => make$20.pipe(require_Schema$1.provideService(GitHubPullRequestCli, cli));
87735
87735
  //#endregion
87736
87736
  //#region src/git/AgentAttribution.ts
87737
87737
  /**
@@ -93345,7 +93345,7 @@ function toResolvableLinks(links) {
93345
93345
  * A Forge project id is installation-local; it must never be sent to CMMD as a project id.
93346
93346
  */
93347
93347
  var CmmdProjectIdentityResolver = class extends require_Schema$1.Service()("forge/pullRequest/CmmdProjectIdentityResolver") {};
93348
- const make$20 = require_Schema$1.gen(function* () {
93348
+ const make$19 = require_Schema$1.gen(function* () {
93349
93349
  const environment = yield* ServerEnvironment;
93350
93350
  const repositoryIdentity = yield* RepositoryIdentityResolver;
93351
93351
  const resolve = (forgeProjectId, cmmdJwt) => require_Schema$1.gen(function* () {
@@ -93386,7 +93386,7 @@ function resolveCanonicalKey(repositoryIdentity, forgeProjectId) {
93386
93386
  return (yield* repositoryIdentity.resolve(workspaceRoot))?.canonicalKey ?? null;
93387
93387
  }).pipe(require_Schema$1.orElseSucceed(() => null));
93388
93388
  }
93389
- const cmmdProjectIdentityResolverLive = require_Schema$1.effect(CmmdProjectIdentityResolver, make$20);
93389
+ const cmmdProjectIdentityResolverLive = require_Schema$1.effect(CmmdProjectIdentityResolver, make$19);
93390
93390
  //#endregion
93391
93391
  //#region src/pullRequest/PullRequestServiceFactory.ts
93392
93392
  var PullRequestServiceFactory = class extends require_Schema$1.Service()("forge/pullRequest/PullRequestServiceFactory") {};
@@ -93416,7 +93416,7 @@ function makePrincipalServiceCache(input) {
93416
93416
  return entry.value;
93417
93417
  };
93418
93418
  }
93419
- const make$19 = require_Schema$1.gen(function* () {
93419
+ const make$18 = require_Schema$1.gen(function* () {
93420
93420
  const projections = yield* ProjectionSnapshotQuery;
93421
93421
  const settings = yield* ServerSettingsService;
93422
93422
  const providerRuntimeSource = yield* require_Schema$1.serviceOption(PullRequestProviderRuntimeSource);
@@ -93454,7 +93454,7 @@ const make$19 = require_Schema$1.gen(function* () {
93454
93454
  const forPrincipal = (principal) => require_Schema$1.promise(() => cached(principal));
93455
93455
  return PullRequestServiceFactory.of({ forPrincipal });
93456
93456
  });
93457
- const pullRequestServiceFactoryLayer = require_Schema$1.effect(PullRequestServiceFactory, make$19);
93457
+ const pullRequestServiceFactoryLayer = require_Schema$1.effect(PullRequestServiceFactory, make$18);
93458
93458
  //#endregion
93459
93459
  //#region ../../packages/shared/src/keybindings.ts
93460
93460
  /**
@@ -94319,7 +94319,7 @@ const launchDetached = (launch) => require_Schema$1.gen(function* () {
94319
94319
  }))));
94320
94320
  });
94321
94321
  });
94322
- const make$18 = require_Schema$1.gen(function* () {
94322
+ const make$17 = require_Schema$1.gen(function* () {
94323
94323
  const open = yield* require_Schema$1.tryPromise({
94324
94324
  try: () => Promise.resolve().then(() => require("./open-CghsF25U.cjs")),
94325
94325
  catch: (cause) => new OpenError$1({
@@ -94338,7 +94338,7 @@ const make$18 = require_Schema$1.gen(function* () {
94338
94338
  openInEditor: (input) => require_Schema$1.flatMap(resolveEditorLaunch(input), launchDetached)
94339
94339
  };
94340
94340
  });
94341
- const OpenLive = require_Schema$1.effect(Open, make$18);
94341
+ const OpenLive = require_Schema$1.effect(Open, make$17);
94342
94342
  //#endregion
94343
94343
  //#region src/workspace/Services/WorkspacePaths.ts
94344
94344
  /**
@@ -99331,7 +99331,7 @@ function readFailed(detail) {
99331
99331
  cause: require_Schema$1.squash(cause)
99332
99332
  }));
99333
99333
  }
99334
- const make$17 = require_Schema$1.gen(function* () {
99334
+ const make$16 = require_Schema$1.gen(function* () {
99335
99335
  const config = yield* ServerConfig;
99336
99336
  const snapshots = yield* ProjectionSnapshotQuery;
99337
99337
  const outbox = yield* RuntimeReplicationOutbox;
@@ -99377,7 +99377,7 @@ const make$17 = require_Schema$1.gen(function* () {
99377
99377
  };
99378
99378
  }) };
99379
99379
  });
99380
- const UsageRecordedSourceLive = require_Schema$1.effect(UsageRecordedSource, make$17);
99380
+ const UsageRecordedSourceLive = require_Schema$1.effect(UsageRecordedSource, make$16);
99381
99381
  //#endregion
99382
99382
  //#region src/runtimeReplication/usageSessionLookup.ts
99383
99383
  /**
@@ -99638,7 +99638,7 @@ function askTheLedger(request) {
99638
99638
  return require_Schema$1.logWarning("usage session lookup failed; local lanes keep their records").pipe(require_Schema$1.annotateLogs({ cause: outcome.error }), require_Schema$1.as(UNAVAILABLE.callFailed));
99639
99639
  }));
99640
99640
  }
99641
- const make$16 = (fetchImpl, resolveOwnerCredential) => require_Schema$1.gen(function* () {
99641
+ const make$15 = (fetchImpl, resolveOwnerCredential) => require_Schema$1.gen(function* () {
99642
99642
  const config = yield* ServerConfig;
99643
99643
  const sql = yield* require_SqlError.SqlClient;
99644
99644
  /** The cloud lane: this runtime's own scoped grant. */
@@ -99677,7 +99677,7 @@ const make$16 = (fetchImpl, resolveOwnerCredential) => require_Schema$1.gen(func
99677
99677
  * without a signed-in machine behind it. Both default to the real thing.
99678
99678
  */
99679
99679
  function makeUsageSessionLookupLayer(fetchImpl = fetch, resolveOwnerCredential = resolveOwnerCredentialLive) {
99680
- return require_Schema$1.effect(UsageSessionLookup, make$16(fetchImpl, resolveOwnerCredential));
99680
+ return require_Schema$1.effect(UsageSessionLookup, make$15(fetchImpl, resolveOwnerCredential));
99681
99681
  }
99682
99682
  const UsageSessionLookupLive = makeUsageSessionLookupLayer();
99683
99683
  //#endregion
@@ -100487,7 +100487,7 @@ function failedRecordedSources(hostId, detail) {
100487
100487
  message: detail
100488
100488
  }));
100489
100489
  }
100490
- const make$15 = (hooks) => require_Schema$1.gen(function* () {
100490
+ const make$14 = (hooks) => require_Schema$1.gen(function* () {
100491
100491
  const fileSystem = yield* require_Path.FileSystem;
100492
100492
  const path = yield* require_Path.Path;
100493
100493
  const config = yield* ServerConfig;
@@ -100916,7 +100916,7 @@ const make$15 = (hooks) => require_Schema$1.gen(function* () {
100916
100916
  });
100917
100917
  /** The service with a seam into the scan; tests pass their own hooks. */
100918
100918
  function makeUsageServiceLayer(hooks = NOOP_SCAN_HOOKS) {
100919
- return require_Schema$1.effect(UsageService, make$15(hooks));
100919
+ return require_Schema$1.effect(UsageService, make$14(hooks));
100920
100920
  }
100921
100921
  const UsageServiceLive = makeUsageServiceLayer();
100922
100922
  const DAY_MS = 1440 * 60 * 1e3;
@@ -115410,7 +115410,7 @@ const PgClient = /* @__PURE__ */ require_Schema$1.Service("@effect/sql-pg/PgClie
115410
115410
  * @category constructors
115411
115411
  * @since 1.0.0
115412
115412
  */
115413
- const make$14 = (options) => fromPool({
115413
+ const make$13 = (options) => fromPool({
115414
115414
  ...options,
115415
115415
  acquire: require_Schema$1.gen(function* () {
115416
115416
  const pool = new Pool({
@@ -115689,7 +115689,7 @@ const layerFrom = (acquire) => require_Schema$1.effectContext(require_Schema$1.m
115689
115689
  * @category layers
115690
115690
  * @since 1.0.0
115691
115691
  */
115692
- const layer$3 = (config) => layerFrom(make$14(config));
115692
+ const layer$3 = (config) => layerFrom(make$13(config));
115693
115693
  /**
115694
115694
  * @category constructor
115695
115695
  * @since 1.0.0
@@ -116243,7 +116243,7 @@ var MigrationError = class extends require_Schema$1.TaggedError("MigrationError"
116243
116243
  * @category constructor
116244
116244
  * @since 4.0.0
116245
116245
  */
116246
- const make$13 = ({ dumpSchema = () => require_Schema$1.void_ }) => ({ loader, schemaDirectory, table = "effect_sql_migrations" }) => require_Schema$1.gen(function* () {
116246
+ const make$12 = ({ dumpSchema = () => require_Schema$1.void_ }) => ({ loader, schemaDirectory, table = "effect_sql_migrations" }) => require_Schema$1.gen(function* () {
116247
116247
  const sql = yield* require_SqlError.SqlClient;
116248
116248
  const ensureMigrationsTable = sql.onDialectOrElse({
116249
116249
  mssql: () => sql`IF OBJECT_ID(N'${sql.literal(table)}', N'U') IS NULL
@@ -119322,7 +119322,7 @@ const makeMigrationLoader = (throughId) => fromRecord(Object.fromEntries(migrati
119322
119322
  * Migrator run function - no schema dumping needed
119323
119323
  * Uses the base Migrator.make without platform dependencies
119324
119324
  */
119325
- const run = make$13({});
119325
+ const run = make$12({});
119326
119326
  /**
119327
119327
  * Run all pending migrations.
119328
119328
  *
@@ -150718,7 +150718,7 @@ function formatLoggerMessage(message) {
150718
150718
  return typeof message === "string" ? message : String(message);
150719
150719
  }
150720
150720
  function makeLineLogger(streamLabel) {
150721
- return make$33(({ date, message }) => `[${date.toISOString()}] ${streamLabel}: ${formatLoggerMessage(message)}\n`);
150721
+ return make$32(({ date, message }) => `[${date.toISOString()}] ${streamLabel}: ${formatLoggerMessage(message)}\n`);
150722
150722
  }
150723
150723
  function resolveStreamLabel(stream) {
150724
150724
  switch (stream) {
@@ -150834,7 +150834,7 @@ const makeEventNdjsonLogger = require_Schema$1.fn("makeEventNdjsonLogger")(funct
150834
150834
  });
150835
150835
  return;
150836
150836
  }
150837
- const stateRef = yield* make$32({
150837
+ const stateRef = yield* make$31({
150838
150838
  threadWriters: /* @__PURE__ */ new Map(),
150839
150839
  failedSegments: /* @__PURE__ */ new Set()
150840
150840
  });
@@ -223671,113 +223671,113 @@ function toRpcClientError(error) {
223671
223671
  }
223672
223672
  //#endregion
223673
223673
  //#region ../../packages/effect-acp/src/rpc.ts
223674
- const InitializeRpc = make$30(AGENT_METHODS.initialize, {
223674
+ const InitializeRpc = make$29(AGENT_METHODS.initialize, {
223675
223675
  payload: InitializeRequest,
223676
223676
  success: InitializeResponse,
223677
223677
  error: Error$1
223678
223678
  });
223679
- const AuthenticateRpc = make$30(AGENT_METHODS.authenticate, {
223679
+ const AuthenticateRpc = make$29(AGENT_METHODS.authenticate, {
223680
223680
  payload: AuthenticateRequest,
223681
223681
  success: AuthenticateResponse,
223682
223682
  error: Error$1
223683
223683
  });
223684
- const LogoutRpc = make$30(AGENT_METHODS.logout, {
223684
+ const LogoutRpc = make$29(AGENT_METHODS.logout, {
223685
223685
  payload: LogoutRequest,
223686
223686
  success: LogoutResponse,
223687
223687
  error: Error$1
223688
223688
  });
223689
- const NewSessionRpc = make$30(AGENT_METHODS.session_new, {
223689
+ const NewSessionRpc = make$29(AGENT_METHODS.session_new, {
223690
223690
  payload: NewSessionRequest,
223691
223691
  success: NewSessionResponse,
223692
223692
  error: Error$1
223693
223693
  });
223694
- const LoadSessionRpc = make$30(AGENT_METHODS.session_load, {
223694
+ const LoadSessionRpc = make$29(AGENT_METHODS.session_load, {
223695
223695
  payload: LoadSessionRequest,
223696
223696
  success: LoadSessionResponse,
223697
223697
  error: Error$1
223698
223698
  });
223699
- const ListSessionsRpc = make$30(AGENT_METHODS.session_list, {
223699
+ const ListSessionsRpc = make$29(AGENT_METHODS.session_list, {
223700
223700
  payload: ListSessionsRequest,
223701
223701
  success: ListSessionsResponse,
223702
223702
  error: Error$1
223703
223703
  });
223704
- const ForkSessionRpc = make$30(AGENT_METHODS.session_fork, {
223704
+ const ForkSessionRpc = make$29(AGENT_METHODS.session_fork, {
223705
223705
  payload: ForkSessionRequest,
223706
223706
  success: ForkSessionResponse,
223707
223707
  error: Error$1
223708
223708
  });
223709
- const ResumeSessionRpc = make$30(AGENT_METHODS.session_resume, {
223709
+ const ResumeSessionRpc = make$29(AGENT_METHODS.session_resume, {
223710
223710
  payload: ResumeSessionRequest,
223711
223711
  success: ResumeSessionResponse,
223712
223712
  error: Error$1
223713
223713
  });
223714
- const CloseSessionRpc = make$30(AGENT_METHODS.session_close, {
223714
+ const CloseSessionRpc = make$29(AGENT_METHODS.session_close, {
223715
223715
  payload: CloseSessionRequest,
223716
223716
  success: CloseSessionResponse,
223717
223717
  error: Error$1
223718
223718
  });
223719
- const PromptRpc = make$30(AGENT_METHODS.session_prompt, {
223719
+ const PromptRpc = make$29(AGENT_METHODS.session_prompt, {
223720
223720
  payload: PromptRequest,
223721
223721
  success: PromptResponse,
223722
223722
  error: Error$1
223723
223723
  });
223724
- const SetSessionModelRpc = make$30(AGENT_METHODS.session_set_model, {
223724
+ const SetSessionModelRpc = make$29(AGENT_METHODS.session_set_model, {
223725
223725
  payload: SetSessionModelRequest,
223726
223726
  success: SetSessionModelResponse,
223727
223727
  error: Error$1
223728
223728
  });
223729
- const SetSessionConfigOptionRpc = make$30(AGENT_METHODS.session_set_config_option, {
223729
+ const SetSessionConfigOptionRpc = make$29(AGENT_METHODS.session_set_config_option, {
223730
223730
  payload: SetSessionConfigOptionRequest,
223731
223731
  success: SetSessionConfigOptionResponse,
223732
223732
  error: Error$1
223733
223733
  });
223734
- const ReadTextFileRpc = make$30(CLIENT_METHODS.fs_read_text_file, {
223734
+ const ReadTextFileRpc = make$29(CLIENT_METHODS.fs_read_text_file, {
223735
223735
  payload: ReadTextFileRequest,
223736
223736
  success: ReadTextFileResponse,
223737
223737
  error: Error$1
223738
223738
  });
223739
- const WriteTextFileRpc = make$30(CLIENT_METHODS.fs_write_text_file, {
223739
+ const WriteTextFileRpc = make$29(CLIENT_METHODS.fs_write_text_file, {
223740
223740
  payload: WriteTextFileRequest,
223741
223741
  success: WriteTextFileResponse,
223742
223742
  error: Error$1
223743
223743
  });
223744
- const RequestPermissionRpc = make$30(CLIENT_METHODS.session_request_permission, {
223744
+ const RequestPermissionRpc = make$29(CLIENT_METHODS.session_request_permission, {
223745
223745
  payload: RequestPermissionRequest,
223746
223746
  success: RequestPermissionResponse,
223747
223747
  error: Error$1
223748
223748
  });
223749
- const ElicitationRpc = make$30(CLIENT_METHODS.session_elicitation, {
223749
+ const ElicitationRpc = make$29(CLIENT_METHODS.session_elicitation, {
223750
223750
  payload: ElicitationRequest,
223751
223751
  success: ElicitationResponse,
223752
223752
  error: Error$1
223753
223753
  });
223754
- const CreateTerminalRpc = make$30(CLIENT_METHODS.terminal_create, {
223754
+ const CreateTerminalRpc = make$29(CLIENT_METHODS.terminal_create, {
223755
223755
  payload: CreateTerminalRequest,
223756
223756
  success: CreateTerminalResponse,
223757
223757
  error: Error$1
223758
223758
  });
223759
- const TerminalOutputRpc = make$30(CLIENT_METHODS.terminal_output, {
223759
+ const TerminalOutputRpc = make$29(CLIENT_METHODS.terminal_output, {
223760
223760
  payload: TerminalOutputRequest,
223761
223761
  success: TerminalOutputResponse,
223762
223762
  error: Error$1
223763
223763
  });
223764
- const ReleaseTerminalRpc = make$30(CLIENT_METHODS.terminal_release, {
223764
+ const ReleaseTerminalRpc = make$29(CLIENT_METHODS.terminal_release, {
223765
223765
  payload: ReleaseTerminalRequest,
223766
223766
  success: ReleaseTerminalResponse,
223767
223767
  error: Error$1
223768
223768
  });
223769
- const WaitForTerminalExitRpc = make$30(CLIENT_METHODS.terminal_wait_for_exit, {
223769
+ const WaitForTerminalExitRpc = make$29(CLIENT_METHODS.terminal_wait_for_exit, {
223770
223770
  payload: WaitForTerminalExitRequest,
223771
223771
  success: WaitForTerminalExitResponse,
223772
223772
  error: Error$1
223773
223773
  });
223774
- const KillTerminalRpc = make$30(CLIENT_METHODS.terminal_kill, {
223774
+ const KillTerminalRpc = make$29(CLIENT_METHODS.terminal_kill, {
223775
223775
  payload: KillTerminalRequest,
223776
223776
  success: KillTerminalResponse,
223777
223777
  error: Error$1
223778
223778
  });
223779
- const AgentRpcs = make$29(InitializeRpc, AuthenticateRpc, LogoutRpc, NewSessionRpc, LoadSessionRpc, ListSessionsRpc, ForkSessionRpc, ResumeSessionRpc, CloseSessionRpc, PromptRpc, SetSessionModelRpc, SetSessionConfigOptionRpc);
223780
- const ClientRpcs = make$29(ReadTextFileRpc, WriteTextFileRpc, RequestPermissionRpc, ElicitationRpc, CreateTerminalRpc, TerminalOutputRpc, ReleaseTerminalRpc, WaitForTerminalExitRpc, KillTerminalRpc);
223779
+ const AgentRpcs = make$28(InitializeRpc, AuthenticateRpc, LogoutRpc, NewSessionRpc, LoadSessionRpc, ListSessionsRpc, ForkSessionRpc, ResumeSessionRpc, CloseSessionRpc, PromptRpc, SetSessionModelRpc, SetSessionConfigOptionRpc);
223780
+ const ClientRpcs = make$28(ReadTextFileRpc, WriteTextFileRpc, RequestPermissionRpc, ElicitationRpc, CreateTerminalRpc, TerminalOutputRpc, ReleaseTerminalRpc, WaitForTerminalExitRpc, KillTerminalRpc);
223781
223781
  //#endregion
223782
223782
  //#region ../../packages/effect-acp/src/_internal/shared.ts
223783
223783
  const isError = require_Schema$1.is(Error$1);
@@ -223840,7 +223840,7 @@ function runNotificationHandlers(registration, notification) {
223840
223840
  return require_Schema$1.forEach(registration.handlers, (handler) => handler(notification).pipe(require_Schema$1.catch_(() => require_Schema$1.void_)), { discard: true });
223841
223841
  }
223842
223842
  var AcpClient = class extends require_Schema$1.Service()("effect-acp/AcpClient") {};
223843
- const make$12 = require_Schema$1.fn("effect-acp/AcpClient.make")(function* (stdio, options = {}, terminationError) {
223843
+ const make$11 = require_Schema$1.fn("effect-acp/AcpClient.make")(function* (stdio, options = {}, terminationError) {
223844
223844
  const coreHandlers = {};
223845
223845
  const notificationHandlers = {
223846
223846
  sessionUpdate: {
@@ -223908,9 +223908,9 @@ const make$12 = require_Schema$1.fn("effect-acp/AcpClient.make")(function* (stdi
223908
223908
  [CLIENT_METHODS.terminal_kill]: (payload) => runHandler(coreHandlers.terminalKill, payload, CLIENT_METHODS.terminal_kill).pipe(require_Schema$1.map((result) => result ?? {})),
223909
223909
  [CLIENT_METHODS.terminal_release]: (payload) => runHandler(coreHandlers.terminalRelease, payload, CLIENT_METHODS.terminal_release).pipe(require_Schema$1.map((result) => result ?? {}))
223910
223910
  }));
223911
- yield* make$24(ClientRpcs).pipe(require_Schema$1.provideService(Protocol, transport.serverProtocol), require_Schema$1.provide(clientHandlerLayer), require_Schema$1.forkScoped);
223911
+ yield* make$23(ClientRpcs).pipe(require_Schema$1.provideService(Protocol, transport.serverProtocol), require_Schema$1.provide(clientHandlerLayer), require_Schema$1.forkScoped);
223912
223912
  let nextRpcRequestId = 1n << 32n;
223913
- const rpc = yield* make$25(AgentRpcs, { generateRequestId: () => nextRpcRequestId++ }).pipe(require_Schema$1.provideService(Protocol$1, transport.clientProtocol));
223913
+ const rpc = yield* make$24(AgentRpcs, { generateRequestId: () => nextRpcRequestId++ }).pipe(require_Schema$1.provideService(Protocol$1, transport.clientProtocol));
223914
223914
  return AcpClient.of({
223915
223915
  raw: {
223916
223916
  notifications: transport.incoming,
@@ -223997,7 +223997,7 @@ const make$12 = require_Schema$1.fn("effect-acp/AcpClient.make")(function* (stdi
223997
223997
  const layerChildProcess = (handle, options = {}) => {
223998
223998
  const stdio = makeChildStdio(handle);
223999
223999
  const terminationError = makeTerminationError(handle);
224000
- return require_Schema$1.effect(AcpClient, make$12(stdio, options, terminationError));
224000
+ return require_Schema$1.effect(AcpClient, make$11(stdio, options, terminationError));
224001
224001
  };
224002
224002
  //#endregion
224003
224003
  //#region src/provider/acp/AcpSessionRuntime.ts
@@ -225112,7 +225112,7 @@ function makeCursorAdapter(cursorSettings, options) {
225112
225112
  const nativeEventLogger = options?.nativeEventLogger ?? (options?.nativeEventLogPath !== void 0 ? yield* makeEventNdjsonLogger(options.nativeEventLogPath, { stream: "native" }) : void 0);
225113
225113
  const managedNativeEventLogger = options?.nativeEventLogger === void 0 ? nativeEventLogger : void 0;
225114
225114
  const sessions = /* @__PURE__ */ new Map();
225115
- const threadLocksRef = yield* make$32(/* @__PURE__ */ new Map());
225115
+ const threadLocksRef = yield* make$31(/* @__PURE__ */ new Map());
225116
225116
  const runtimeEventPubSub = yield* require_Path.unbounded$1();
225117
225117
  const nowIso = require_Schema$1.map(require_Schema$1.now, require_Schema$1.formatIso);
225118
225118
  const nextEventId = require_Schema$1.map(nextUUIDv4, (id) => EventId.make(id));
@@ -234827,7 +234827,7 @@ var CheckpointStore = class extends require_Schema$1.Service()("forge/checkpoint
234827
234827
  //#endregion
234828
234828
  //#region src/checkpointing/Layers/CheckpointDiffQuery.ts
234829
234829
  const isTurnDiffResult = require_Schema$1.is(OrchestrationGetTurnDiffResult);
234830
- const make$11 = require_Schema$1.gen(function* () {
234830
+ const make$10 = require_Schema$1.gen(function* () {
234831
234831
  const projectionSnapshotQuery = yield* ProjectionSnapshotQuery;
234832
234832
  const checkpointStore = yield* CheckpointStore;
234833
234833
  const getTurnDiff = require_Schema$1.fn("getTurnDiff")(function* (input) {
@@ -234919,7 +234919,7 @@ const make$11 = require_Schema$1.gen(function* () {
234919
234919
  getFullThreadDiff
234920
234920
  };
234921
234921
  });
234922
- const CheckpointDiffQueryLive = require_Schema$1.effect(CheckpointDiffQuery, make$11);
234922
+ const CheckpointDiffQueryLive = require_Schema$1.effect(CheckpointDiffQuery, make$10);
234923
234923
  //#endregion
234924
234924
  //#region src/checkpointing/Layers/CheckpointStore.ts
234925
234925
  /**
@@ -237214,7 +237214,7 @@ const GitStatusBroadcasterLive = require_Schema$1.effect(GitStatusBroadcaster, r
237214
237214
  const changesPubSub = yield* require_Schema$1.acquireRelease(require_Path.unbounded$1(), (pubsub) => require_Path.shutdown$1(pubsub));
237215
237215
  const broadcasterScope = yield* require_Schema$1.acquireRelease(require_Schema$1.make$3(), (scope) => require_Schema$1.close(scope, require_Schema$1.void_$1));
237216
237216
  const cacheRef = yield* require_HttpServer.make$3(/* @__PURE__ */ new Map());
237217
- const pollersRef = yield* make$32(/* @__PURE__ */ new Map());
237217
+ const pollersRef = yield* make$31(/* @__PURE__ */ new Map());
237218
237218
  const getCachedStatus = require_Schema$1.fn("getCachedStatus")(function* (cwd) {
237219
237219
  return yield* require_HttpServer.get$1(cacheRef).pipe(require_Schema$1.map((cache) => cache.get(cwd) ?? null));
237220
237220
  });
@@ -238786,7 +238786,7 @@ const TextGenerationUsageLive = require_Schema$1.effect(TextGenerationUsage, mak
238786
238786
  //#region ../../packages/shared/src/KeyedCoalescingWorker.ts
238787
238787
  const makeKeyedCoalescingWorker = (options) => require_Schema$1.gen(function* () {
238788
238788
  const queue = yield* require_Schema$1.acquireRelease(unbounded(), shutdown);
238789
- const stateRef = yield* make$31({
238789
+ const stateRef = yield* make$30({
238790
238790
  latestByKey: /* @__PURE__ */ new Map(),
238791
238791
  queuedKeys: /* @__PURE__ */ new Set(),
238792
238792
  activeKeys: /* @__PURE__ */ new Set()
@@ -239347,11 +239347,11 @@ const makeTerminalManagerWithOptions = require_Schema$1.fn("makeTerminalManagerW
239347
239347
  const processKillGraceMs = options.processKillGraceMs ?? DEFAULT_PROCESS_KILL_GRACE_MS;
239348
239348
  const maxRetainedInactiveSessions = options.maxRetainedInactiveSessions ?? DEFAULT_MAX_RETAINED_INACTIVE_SESSIONS;
239349
239349
  yield* fileSystem.makeDirectory(logsDir, { recursive: true }).pipe(require_Schema$1.orDie);
239350
- const managerStateRef = yield* make$32({
239350
+ const managerStateRef = yield* make$31({
239351
239351
  sessions: /* @__PURE__ */ new Map(),
239352
239352
  killFibers: /* @__PURE__ */ new Map()
239353
239353
  });
239354
- const threadLocksRef = yield* make$32(/* @__PURE__ */ new Map());
239354
+ const threadLocksRef = yield* make$31(/* @__PURE__ */ new Map());
239355
239355
  const terminalEventListeners = /* @__PURE__ */ new Set();
239356
239356
  const transitionReceipts = /* @__PURE__ */ new Map();
239357
239357
  const workerScope = yield* require_Schema$1.make$3("sequential");
@@ -242265,6 +242265,18 @@ var SpriteTaskHoldManager = class {
242265
242265
  return [...this.#holds.keys()];
242266
242266
  }
242267
242267
  /**
242268
+ * Every hold key currently associated with one thread: what `releaseThread`
242269
+ * releases. Read-only and synchronous, so a caller can snapshot what is
242270
+ * live right now and decide later, from that snapshot, what it is still
242271
+ * safe to release -- rather than asking this manager what is live AFTER
242272
+ * some delay of its own, by which point a fresh acquire may have replaced
242273
+ * the very hold the caller meant to release (SpriteTaskHoldReactor's
242274
+ * session.exited handling does exactly this, forge#3602).
242275
+ */
242276
+ activeTurnIdsForThread(threadId) {
242277
+ return [...this.#holds.entries()].filter(([, hold]) => hold.threadId === threadId).map(([turnId]) => turnId);
242278
+ }
242279
+ /**
242268
242280
  * `maxRefreshes` bounds a hold that has no terminal event of its own, such as a launch
242269
242281
  * whose turn may never start. When the budget is spent the hold releases itself.
242270
242282
  *
@@ -242540,7 +242552,7 @@ var SpriteTaskHoldManager = class {
242540
242552
  * from silently dropping the holds of the other turns running beside it.
242541
242553
  */
242542
242554
  async releaseThread(threadId) {
242543
- const turnIds = [...this.#holds.entries()].filter(([, hold]) => hold.threadId === threadId).map(([turnId]) => turnId);
242555
+ const turnIds = this.activeTurnIdsForThread(threadId);
242544
242556
  await Promise.all(turnIds.map((turnId) => this.release(turnId)));
242545
242557
  }
242546
242558
  /**
@@ -290342,7 +290354,7 @@ async function applyWorkerRecoveryPlan(recovery, input) {
290342
290354
  if (recovery.kind === "recover") await input.onRecover(recovery);
290343
290355
  return recovery.commandToken;
290344
290356
  }
290345
- const make$10 = require_Schema$1.gen(function* () {
290357
+ const make$9 = require_Schema$1.gen(function* () {
290346
290358
  const orchestration = yield* OrchestrationEngineService;
290347
290359
  const projectionSnapshotQuery = yield* ProjectionSnapshotQuery;
290348
290360
  const projectionTurns = yield* ProjectionTurnRepository;
@@ -290639,7 +290651,7 @@ const make$10 = require_Schema$1.gen(function* () {
290639
290651
  reconcile
290640
290652
  });
290641
290653
  });
290642
- const ApprovedWorkerPlanReactorLive = require_Schema$1.effect(ApprovedWorkerPlanReactor, make$10);
290654
+ const ApprovedWorkerPlanReactorLive = require_Schema$1.effect(ApprovedWorkerPlanReactor, make$9);
290643
290655
  //#endregion
290644
290656
  //#region src/orchestration/Services/RuntimeReceiptBus.ts
290645
290657
  /**
@@ -292229,7 +292241,7 @@ function shouldApplyProviderTurnCompleted(activeTurnId, eventTurnId) {
292229
292241
  if (activeTurnId !== null && eventTurnId === void 0) return false;
292230
292242
  return activeTurnId === null || eventTurnId === void 0 || sameId$1(activeTurnId, eventTurnId);
292231
292243
  }
292232
- const make$9 = require_Schema$1.fn("make")(function* () {
292244
+ const make$8 = require_Schema$1.fn("make")(function* () {
292233
292245
  const orchestrationEngine = yield* OrchestrationEngineService;
292234
292246
  const claudeUsageTelemetry = yield* ClaudeUsageTelemetry;
292235
292247
  const claudeUsageScope = yield* require_Schema$1.make$3("parallel");
@@ -292822,7 +292834,7 @@ const make$9 = require_Schema$1.fn("make")(function* () {
292822
292834
  drain: worker.drain
292823
292835
  };
292824
292836
  });
292825
- const ProviderRuntimeIngestionLive = require_Schema$1.effect(ProviderRuntimeIngestionService, make$9()).pipe(require_Schema$1.provide$1(ProjectionTurnRepositoryLive));
292837
+ const ProviderRuntimeIngestionLive = require_Schema$1.effect(ProviderRuntimeIngestionService, make$8()).pipe(require_Schema$1.provide$1(ProjectionTurnRepositoryLive));
292826
292838
  //#endregion
292827
292839
  //#region src/usage/Layers/ClaudeUsageTelemetry.ts
292828
292840
  /**
@@ -292874,7 +292886,7 @@ const ClaudeUsageTelemetryLive = require_Schema$1.effect(ClaudeUsageTelemetry, r
292874
292886
  */
292875
292887
  const makeDrainableWorker = (process) => require_Schema$1.gen(function* () {
292876
292888
  const queue = yield* require_Schema$1.acquireRelease(unbounded(), shutdown);
292877
- const outstanding = yield* make$31(0);
292889
+ const outstanding = yield* make$30(0);
292878
292890
  yield* take(queue).pipe(require_Schema$1.tap((a) => require_Schema$1.ensuring(process(a), update$1(outstanding, (n) => n - 1))), require_Schema$1.forever, require_Schema$1.forkScoped);
292879
292891
  const drain = get$1(outstanding).pipe(require_Schema$1.tap((n) => n > 0 ? require_Schema$1.txRetry : require_Schema$1.void_), require_Schema$1.tx);
292880
292892
  const enqueue = (element) => offer(queue, element).pipe(require_Schema$1.tap(() => update$1(outstanding, (n) => n + 1)), require_Schema$1.tx);
@@ -293444,7 +293456,7 @@ function buildGeneratedWorktreeBranchName(raw) {
293444
293456
  const branchFragment = (normalized.startsWith(`forge/`) ? normalized.slice(`${WORKTREE_BRANCH_PREFIX}/`.length) : normalized).replace(/[^a-z0-9/_-]+/g, "-").replace(/\/+/g, "/").replace(/-+/g, "-").replace(/^[./_-]+|[./_-]+$/g, "").slice(0, 64).replace(/[./_-]+$/g, "");
293445
293457
  return `${WORKTREE_BRANCH_PREFIX}/${branchFragment.length > 0 ? branchFragment : "update"}`;
293446
293458
  }
293447
- const make$8 = require_Schema$1.gen(function* () {
293459
+ const make$7 = require_Schema$1.gen(function* () {
293448
293460
  const orchestrationEngine = yield* OrchestrationEngineService;
293449
293461
  const providerService = yield* ProviderService;
293450
293462
  const git = yield* GitCore;
@@ -294324,7 +294336,7 @@ const make$8 = require_Schema$1.gen(function* () {
294324
294336
  })
294325
294337
  };
294326
294338
  });
294327
- const ProviderCommandReactorLive = require_Schema$1.effect(ProviderCommandReactor, make$8);
294339
+ const ProviderCommandReactorLive = require_Schema$1.effect(ProviderCommandReactor, make$7);
294328
294340
  function withProviderTurnStartTimeout(operation, onTimeout, timeout = require_Schema$1.seconds(45)) {
294329
294341
  return operation.pipe(require_Schema$1.timeout(timeout), require_Schema$1.catchTag("TimeoutError", () => onTimeout));
294330
294342
  }
@@ -295061,7 +295073,7 @@ function findSessionWithCwd(session) {
295061
295073
  cwd: session.cwd
295062
295074
  }) : require_Schema$1.none();
295063
295075
  }
295064
- const make$7 = require_Schema$1.gen(function* () {
295076
+ const make$6 = require_Schema$1.gen(function* () {
295065
295077
  const orchestrationEngine = yield* OrchestrationEngineService;
295066
295078
  const providerService = yield* ProviderService;
295067
295079
  const checkpointStore = yield* CheckpointStore;
@@ -295552,7 +295564,10 @@ const make$7 = require_Schema$1.gen(function* () {
295552
295564
  drain: worker.drain
295553
295565
  };
295554
295566
  });
295555
- const CheckpointReactorLive = require_Schema$1.effect(CheckpointReactor, make$7);
295567
+ const CheckpointReactorLive = require_Schema$1.effect(CheckpointReactor, make$6);
295568
+ //#endregion
295569
+ //#region src/runtimeReplication/Services/RuntimeReplicationThreadFlush.ts
295570
+ var RuntimeReplicationThreadFlush = class extends require_Schema$1.Service()("forge/runtimeReplication/Services/RuntimeReplicationThreadFlush") {};
295556
295571
  //#endregion
295557
295572
  //#region src/orchestration/Layers/SpriteTaskHoldReactor.ts
295558
295573
  /**
@@ -295569,6 +295584,48 @@ const CheckpointReactorLive = require_Schema$1.effect(CheckpointReactor, make$7)
295569
295584
  * `turn.started` / `turn.completed` through `ProviderService.streamEvents`.
295570
295585
  */
295571
295586
  /**
295587
+ * Bound for how long a terminal turn event (`turn.completed` / `turn.aborted`)
295588
+ * waits on that thread's pending replication before releasing the sprite's
295589
+ * turn hold anyway (forge#3600). The sprite freezes about a second after the
295590
+ * hold goes, so this is also roughly how much longer a finished turn's sprite
295591
+ * stays billed.
295592
+ *
295593
+ * Justified from the numbers already in this codebase, not a guess: the
295594
+ * outbox drain loop claims and posts on a 2 s tick
295595
+ * (`Schedule.spaced("2 seconds")` in RuntimeReplication.ts), each CMMD publish
295596
+ * attempt has its own 10 s deadline (`RUNTIME_REPLICATION_TIMEOUT_MS` in
295597
+ * RuntimeReplicationClient.ts), and `claim()` orders a thread's inventory row
295598
+ * ahead of its thread-events row, so one tick can mean two requests before the
295599
+ * thread's own batch goes out. 15 s covers one drain tick plus one full
295600
+ * publish attempt with headroom for that second request, while still keeping
295601
+ * a completed turn's sprite from staying billed anywhere near CMMD's own
295602
+ * stalled-turn sweep window (production: about 15 minutes, per forge#3600).
295603
+ */
295604
+ const REPLICATION_FLUSH_TIMEOUT_MS = 15e3;
295605
+ /**
295606
+ * How often the flush re-checks the thread's outbox row while waiting. Short
295607
+ * enough that the wait tracks CMMD's actual ack latency (typically well under
295608
+ * a second) rather than the bound, long enough that a 15 s wait costs at most
295609
+ * about 60 reads against the outbox table.
295610
+ */
295611
+ const REPLICATION_FLUSH_POLL_INTERVAL_MS = 250;
295612
+ /**
295613
+ * A single extra wait before trusting a flush's very first "nothing pending"
295614
+ * read (forge#3600 review follow-up). SpriteTaskHoldReactor and
295615
+ * RuntimeReplication's own domain-event-driven enqueue are independent
295616
+ * subscribers of the same ProviderService.streamEvents broadcast: this
295617
+ * reactor can see turn.completed and read the outbox before the OTHER
295618
+ * subscriber has finished projecting the turn's final events into a row. In
295619
+ * both production runs behind forge#3600, the final assistant_message and
295620
+ * turn_usage writes landed about a second apart from each other (00:43:15Z
295621
+ * and 00:43:16Z), so an immediate "nothing pending" read cannot be trusted:
295622
+ * that is exactly the race that stranded both turns. One settle wait,
295623
+ * re-checked once, closes it without turning every genuinely idle turn's
295624
+ * release into a long poll -- a thread that already has nothing to replicate
295625
+ * pays this once, never the full flushTimeoutMs bound.
295626
+ */
295627
+ const REPLICATION_FLUSH_SETTLE_MS = 1e3;
295628
+ /**
295572
295629
  * A launch hold refreshes every 60 s, so this budget is about ten minutes. A launch whose turn
295573
295630
  * never starts, because the provider refused it or the process died first, has no event to
295574
295631
  * release it. The budget is what stops that hold from keeping the sprite billing.
@@ -295586,8 +295643,69 @@ const TURN_START_HOLD_MAX_REFRESHES = 10;
295586
295643
  /** The hold id for `holdTurnStart` / `releaseTurnStart`. Distinct from `launchHoldId` on purpose:
295587
295644
  * see the shape's doc comment on `holdTurnStart`. */
295588
295645
  const turnStartHoldId = (key) => `turn-start-${key}`;
295589
- const make$6 = require_Schema$1.gen(function* () {
295646
+ const makeSpriteTaskHoldReactor = (overrides = {}) => require_Schema$1.gen(function* () {
295590
295647
  const providerService = yield* ProviderService;
295648
+ const replicationOutbox = yield* RuntimeReplicationThreadFlush;
295649
+ const replicationRuntimeId = resolveRuntimeReplicationRuntimeId(yield* ServerConfig);
295650
+ const flushTimeoutMs = overrides.replicationFlushTimeoutMs ?? REPLICATION_FLUSH_TIMEOUT_MS;
295651
+ const flushPollIntervalMs = overrides.replicationFlushPollIntervalMs ?? REPLICATION_FLUSH_POLL_INTERVAL_MS;
295652
+ const flushSettleMs = overrides.replicationFlushSettleMs ?? REPLICATION_FLUSH_SETTLE_MS;
295653
+ /**
295654
+ * Waits for CMMD to acknowledge this thread's outstanding replication -- or
295655
+ * for nothing to have been pending in the first place -- before the caller
295656
+ * releases the turn hold that keeps the sprite awake for the outbox drain
295657
+ * loop to run (forge#3600). Bounded so a wedged publish cannot hold a
295658
+ * finished turn's sprite open indefinitely: the bound firing releases
295659
+ * anyway and logs a warning with however much was still outstanding.
295660
+ *
295661
+ * Never fails: a defect from the outbox read (a SQL error, say) is caught
295662
+ * and treated the same as a timeout -- release the hold rather than let a
295663
+ * replication-read bug strand the sprite awake, or worse, crash the worker
295664
+ * that also has to release every OTHER turn's hold.
295665
+ */
295666
+ const flushThreadReplication = (threadId) => {
295667
+ if (replicationRuntimeId === void 0) return require_Schema$1.void_;
295668
+ const runtimeId = replicationRuntimeId;
295669
+ const streamKey = `thread:${threadId}`;
295670
+ const startedAt = Date.now();
295671
+ const poll = (phase) => replicationOutbox.readPendingCount({
295672
+ runtimeId,
295673
+ streamKey
295674
+ }).pipe(require_Schema$1.flatMap((pending) => {
295675
+ if (pending === 0) {
295676
+ if (phase === "initial") return require_Schema$1.sleep(flushSettleMs).pipe(require_Schema$1.andThen(require_Schema$1.suspend$1(() => poll("settle-recheck"))));
295677
+ return require_Schema$1.succeed({
295678
+ outcome: phase === "settle-recheck" ? "nothing_pending" : "delivered",
295679
+ pending,
295680
+ settled: phase === "settle-recheck"
295681
+ });
295682
+ }
295683
+ if (Date.now() - startedAt >= flushTimeoutMs) return require_Schema$1.succeed({
295684
+ outcome: "timed_out",
295685
+ pending,
295686
+ settled: false
295687
+ });
295688
+ return require_Schema$1.sleep(flushPollIntervalMs).pipe(require_Schema$1.andThen(require_Schema$1.suspend$1(() => poll("steady"))));
295689
+ }));
295690
+ return poll("initial").pipe(require_Schema$1.flatMap(({ outcome, pending, settled }) => {
295691
+ const elapsedMs = Date.now() - startedAt;
295692
+ const logOutcome = require_Schema$1.logInfo("sprite task hold replication flush", {
295693
+ threadId,
295694
+ outcome,
295695
+ pending,
295696
+ elapsedMs,
295697
+ ...settled ? { settledMs: flushSettleMs } : {}
295698
+ });
295699
+ return outcome === "timed_out" ? logOutcome.pipe(require_Schema$1.andThen(require_Schema$1.logWarning("sprite task hold replication flush timed out; releasing the turn hold anyway", {
295700
+ threadId,
295701
+ pending,
295702
+ elapsedMs
295703
+ }))) : logOutcome;
295704
+ }), require_Schema$1.catchCause((cause) => require_Schema$1.logError("sprite task hold replication flush failed; releasing the turn hold anyway", {
295705
+ threadId,
295706
+ cause: require_Schema$1.pretty(cause)
295707
+ })));
295708
+ };
295591
295709
  const manager = makeSpriteTaskHoldManager(process.env, (message, cause) => {
295592
295710
  require_Schema$1.runFork(require_Schema$1.logWarning(message, { cause: cause instanceof Error ? cause.message : cause }));
295593
295711
  }, (event) => {
@@ -295616,61 +295734,112 @@ const make$6 = require_Schema$1.gen(function* () {
295616
295734
  const launchCallers = /* @__PURE__ */ new Map();
295617
295735
  const launchGeneration = /* @__PURE__ */ new Map();
295618
295736
  const turnLaunchGeneration = /* @__PURE__ */ new Map();
295737
+ const turnHoldGeneration = /* @__PURE__ */ new Map();
295738
+ let nextTurnHoldGeneration = 0;
295619
295739
  /**
295620
- * Belt-and-braces cleanup for a turn reaching a terminal state
295621
- * (turn.completed or turn.aborted): a launch hold whose hand-off never
295622
- * confirmed (the turn hold's PUT kept failing) is still up, refreshing on
295623
- * its own budget, and the turn ending either way means the launch phase is
295624
- * over. `manager.release(String(turnId))` above can itself wait on the
295625
- * guest API, so by the time this runs the NEXT stage's own dispatch may
295626
- * already have acquired a fresh launch hold for the same thread; only
295627
- * release it here when no such newer launch has started since this turn's
295628
- * own turn.started was processed (CodeRabbit review, forge#3592). A no-op
295629
- * when this turn's own generation is stale, or when the hold was already
295630
- * released.
295740
+ * Release a launch hold left over from a turn hand-off that never
295741
+ * confirmed, once the turn it was covering has reached a terminal state
295742
+ * one way or another. `capturedGeneration` must be read from
295743
+ * `turnLaunchGeneration` by the caller before this runs -- see that map's
295744
+ * own doc comment for why the read cannot happen in here. A no-op when
295745
+ * nothing was captured, when a newer launch has since superseded it, or
295746
+ * when the hold was already released.
295631
295747
  */
295632
- const releaseLingeringLaunchHold = async (turnId, threadId) => {
295633
- const capturedGeneration = turnLaunchGeneration.get(turnId);
295634
- turnLaunchGeneration.delete(turnId);
295748
+ const releaseLingeringLaunchHoldIfCurrent = async (threadId, capturedGeneration) => {
295635
295749
  if (manager === null || capturedGeneration === void 0) return;
295636
295750
  if (launchGeneration.get(threadId) !== capturedGeneration) return;
295637
295751
  await manager.release(launchHoldId(threadId));
295638
295752
  };
295753
+ /**
295754
+ * Release a completed or aborted turn's hold, once its thread's pending
295755
+ * replication has flushed (forge#3600). Skips the release entirely once
295756
+ * `turnHoldGeneration` has moved past `expectedGeneration`: see that map's
295757
+ * own doc comment for the reused-turnId race this guards against.
295758
+ */
295759
+ const processTerminalItem = (item) => flushThreadReplication(item.threadId).pipe(require_Schema$1.andThen(require_Schema$1.promise(async () => {
295760
+ if (manager === null) return;
295761
+ if (turnHoldGeneration.get(item.turnId) !== item.expectedGeneration) return;
295762
+ await manager.release(item.turnId);
295763
+ await releaseLingeringLaunchHoldIfCurrent(item.threadId, item.capturedLaunchGeneration);
295764
+ if (turnHoldGeneration.get(item.turnId) === item.expectedGeneration) turnHoldGeneration.delete(item.turnId);
295765
+ })));
295766
+ /**
295767
+ * Release every hold a dead session was covering, once its thread's
295768
+ * pending replication has flushed (#3603 item 1: this used to call
295769
+ * `manager.releaseThread` on the spot, with nothing stopping a provider
295770
+ * process that died right after its own turn from stranding that turn's
295771
+ * final events the same way forge#3600 did for a clean completion).
295772
+ * `turns` and `capturedLaunchGeneration` are snapshotted by the caller at
295773
+ * session.exited time, BEFORE the flush runs: a launch or a turn that
295774
+ * starts on this thread WHILE the flush is running must survive. Reading
295775
+ * "what is live for this thread" only AFTER the flush -- the naive
295776
+ * flush-then-releaseThread shape -- would reopen the exact hand-off gap
295777
+ * forge#3589 already closed once, just moved behind a longer wait.
295778
+ */
295779
+ const processSessionExited = (item) => flushThreadReplication(item.threadId).pipe(require_Schema$1.andThen(require_Schema$1.promise(async () => {
295780
+ if (manager === null) return;
295781
+ await Promise.all(item.turns.filter((turn) => turnHoldGeneration.get(turn.turnId) === turn.expectedGeneration).map(async (turn) => {
295782
+ await manager.release(turn.turnId);
295783
+ if (turnHoldGeneration.get(turn.turnId) === turn.expectedGeneration) turnHoldGeneration.delete(turn.turnId);
295784
+ }));
295785
+ await releaseLingeringLaunchHoldIfCurrent(item.threadId, item.capturedLaunchGeneration);
295786
+ })));
295639
295787
  const start = require_Schema$1.fn("start")(function* () {
295640
295788
  if (manager === null) return;
295789
+ const terminalFibers = yield* require_HttpServer.make$4();
295790
+ const onTurnStarted = (turnIdKey, threadId) => {
295791
+ const generation = launchGeneration.get(threadId) ?? 0;
295792
+ turnHoldGeneration.set(turnIdKey, ++nextTurnHoldGeneration);
295793
+ return require_Schema$1.promise(async () => {
295794
+ const outcome = await manager.acquire(turnIdKey, threadId);
295795
+ launchCallers.delete(threadId);
295796
+ turnLaunchGeneration.set(turnIdKey, generation);
295797
+ if (outcome === "succeeded") await manager.release(launchHoldId(threadId));
295798
+ });
295799
+ };
295800
+ /** Shared by turn.completed and turn.aborted: see the dispatch below for why they are distinct wire events but handled identically. */
295801
+ const onTerminalTurnEvent = (turnIdKey, threadIdKey) => {
295802
+ const capturedLaunchGeneration = turnLaunchGeneration.get(turnIdKey);
295803
+ turnLaunchGeneration.delete(turnIdKey);
295804
+ return require_HttpServer.run(terminalFibers, processTerminalItem({
295805
+ turnId: turnIdKey,
295806
+ threadId: threadIdKey,
295807
+ expectedGeneration: turnHoldGeneration.get(turnIdKey) ?? 0,
295808
+ capturedLaunchGeneration
295809
+ })).pipe(require_Schema$1.asVoid);
295810
+ };
295811
+ const onSessionExited = (threadId) => {
295812
+ launchCallers.delete(threadId);
295813
+ const launchKey = launchHoldId(threadId);
295814
+ const turns = manager.activeTurnIdsForThread(threadId).filter((turnId) => turnId !== launchKey).map((turnId) => ({
295815
+ turnId,
295816
+ expectedGeneration: turnHoldGeneration.get(turnId) ?? 0
295817
+ }));
295818
+ for (const turn of turns) turnLaunchGeneration.delete(turn.turnId);
295819
+ const capturedLaunchGeneration = launchGeneration.get(threadId);
295820
+ return require_HttpServer.run(terminalFibers, processSessionExited({
295821
+ threadId,
295822
+ turns,
295823
+ capturedLaunchGeneration
295824
+ })).pipe(require_Schema$1.asVoid);
295825
+ };
295641
295826
  yield* require_Schema$1.forkScoped(require_Path.runForEach(providerService.streamEvents, (event) => {
295642
295827
  if (event.type === "turn.started") {
295643
295828
  const turnId = event.turnId;
295644
295829
  if (turnId === void 0) return require_Schema$1.void_;
295645
- const threadId = String(event.threadId);
295646
- const generation = launchGeneration.get(threadId) ?? 0;
295647
- return require_Schema$1.promise(async () => {
295648
- const outcome = await manager.acquire(String(turnId), threadId);
295649
- launchCallers.delete(threadId);
295650
- turnLaunchGeneration.set(String(turnId), generation);
295651
- if (outcome === "succeeded") await manager.release(launchHoldId(threadId));
295652
- });
295830
+ return onTurnStarted(String(turnId), String(event.threadId));
295653
295831
  }
295654
295832
  if (event.type === "turn.completed") {
295655
295833
  const turnId = event.turnId;
295656
295834
  if (turnId === void 0) return require_Schema$1.void_;
295657
- return require_Schema$1.promise(async () => {
295658
- await manager.release(String(turnId));
295659
- await releaseLingeringLaunchHold(String(turnId), String(event.threadId));
295660
- });
295835
+ return onTerminalTurnEvent(String(turnId), String(event.threadId));
295661
295836
  }
295662
295837
  if (event.type === "turn.aborted") {
295663
295838
  const turnId = event.turnId;
295664
295839
  if (turnId === void 0) return require_Schema$1.void_;
295665
- return require_Schema$1.promise(async () => {
295666
- await manager.release(String(turnId));
295667
- await releaseLingeringLaunchHold(String(turnId), String(event.threadId));
295668
- });
295669
- }
295670
- if (event.type === "session.exited") {
295671
- launchCallers.delete(String(event.threadId));
295672
- return require_Schema$1.promise(() => manager.releaseThread(String(event.threadId)));
295840
+ return onTerminalTurnEvent(String(turnId), String(event.threadId));
295673
295841
  }
295842
+ if (event.type === "session.exited") return onSessionExited(String(event.threadId));
295674
295843
  return require_Schema$1.void_;
295675
295844
  }));
295676
295845
  });
@@ -295708,7 +295877,7 @@ const make$6 = require_Schema$1.gen(function* () {
295708
295877
  releaseAll: onManager((taskHolds) => taskHolds.releaseAll())
295709
295878
  };
295710
295879
  });
295711
- const SpriteTaskHoldReactorLive = require_Schema$1.effect(SpriteTaskHoldReactor, make$6);
295880
+ const SpriteTaskHoldReactorLive = require_Schema$1.effect(SpriteTaskHoldReactor, makeSpriteTaskHoldReactor());
295712
295881
  //#endregion
295713
295882
  //#region src/orchestration/Layers/PlanTaskCreationReactor.ts
295714
295883
  var PlanMaterializationRequestError = class extends require_Schema$1.TaggedError("PlanMaterializationRequestError") {};
@@ -298988,7 +299157,7 @@ const make$3 = /* @__PURE__ */ require_Schema$1.fnUntraced(function* (options) {
298988
299157
  excludeLogSpans: options.excludeLogSpans ?? false,
298989
299158
  clock: yield* require_Schema$1.Clock
298990
299159
  };
298991
- return make$33((options) => {
299160
+ return make$32((options) => {
298992
299161
  exporter.push(makeLogRecord(options, opts));
298993
299162
  });
298994
299163
  });
@@ -299885,7 +300054,7 @@ function resolveBuildCommitFromEnv(env) {
299885
300054
  * environment descriptor down instead of reporting an honest "unknown".
299886
300055
  */
299887
300056
  function readBakedBuildCommit() {
299888
- return "88bc45ce168df8c9acf36ad6734d8a66bcb353ec";
300057
+ return "96780e9bb987ecd23f530709589bda1b4b5791e5";
299889
300058
  }
299890
300059
  async function resolveServerBuildCommit(input) {
299891
300060
  if (isFullCommitSha(input.baked)) return input.baked;
@@ -315551,6 +315720,36 @@ const RuntimeReplicationOutboxLive = require_Schema$1.effect(RuntimeReplicationO
315551
315720
  getDiagnostics
315552
315721
  });
315553
315722
  }));
315723
+ //#endregion
315724
+ //#region src/runtimeReplication/Layers/RuntimeReplicationThreadFlush.ts
315725
+ /**
315726
+ * A thread's outbox row holds its whole unacknowledged batch as one
315727
+ * `{ events: [...] }` payload -- RuntimeReplicationOutbox upserts by
315728
+ * `(runtime_id, stream_key)`, so there is at most one row per thread -- so the
315729
+ * count is that array's length. A row whose payload does not decode that way
315730
+ * (a blocked THREAD_STREAM_LOCAL_HISTORY_CONFLICT placeholder, for instance)
315731
+ * still represents one undelivered publication, so it counts as 1 rather than
315732
+ * 0: a caller bounding a wait on this number must never read a blocked row as
315733
+ * "nothing pending".
315734
+ */
315735
+ function pendingEventCount(payloadJson) {
315736
+ try {
315737
+ const parsed = JSON.parse(payloadJson);
315738
+ if (Array.isArray(parsed.events)) return parsed.events.length;
315739
+ } catch {}
315740
+ return 1;
315741
+ }
315742
+ const RuntimeReplicationThreadFlushLive = require_Schema$1.effect(RuntimeReplicationThreadFlush, require_Schema$1.gen(function* () {
315743
+ const sql = yield* require_SqlError.SqlClient;
315744
+ const readPendingCount = (input) => sql`
315745
+ SELECT payload_json AS "payloadJson" FROM runtime_replication_outbox
315746
+ WHERE runtime_id = ${input.runtimeId} AND stream_key = ${input.streamKey}
315747
+ `.pipe(require_Schema$1.map((rows) => {
315748
+ const row = rows[0];
315749
+ return row === void 0 ? 0 : pendingEventCount(row.payloadJson);
315750
+ }), require_Schema$1.orDie);
315751
+ return RuntimeReplicationThreadFlush.of({ readPendingCount });
315752
+ }));
315554
315753
  /**
315555
315754
  * Gates guest-side Active Hour measurement (FOR-32642). Shadow-only: even
315556
315755
  * with this on, whether a reported interval is also recorded against the
@@ -322860,7 +323059,7 @@ const makeUserSlot = require_Schema$1.gen(function* () {
322860
323059
  };
322861
323060
  });
322862
323061
  const makeWorkspaceReadinessState = require_Schema$1.gen(function* () {
322863
- const slotsRef = yield* make$32(/* @__PURE__ */ new Map());
323062
+ const slotsRef = yield* make$31(/* @__PURE__ */ new Map());
322864
323063
  const pruneScope = yield* require_Schema$1.make$3("sequential");
322865
323064
  yield* require_Schema$1.addFinalizer(() => require_Schema$1.close(pruneScope, require_Schema$1.void_$1));
322866
323065
  /**
@@ -323931,8 +324130,8 @@ const PtyAdapterLive = require_Schema$1.unwrap(require_Schema$1.gen(function* ()
323931
324130
  }));
323932
324131
  const HttpServerLive = require_Schema$1.unwrap(require_Schema$1.gen(function* () {
323933
324132
  const config = yield* ServerConfig;
323934
- if (typeof Bun !== "undefined") return (yield* require_Schema$1.promise(() => Promise.resolve().then(() => require("./BunHttpServer-DTG5XWSi.cjs")))).layer(bunHttpServerOptions(config));
323935
- const [NodeHttpServer, NodeHttp] = yield* require_Schema$1.all([require_Schema$1.promise(() => Promise.resolve().then(() => require("./NodeHttpServer-RV5QsVeb.cjs"))), require_Schema$1.promise(() => import("node:http"))]);
324133
+ if (typeof Bun !== "undefined") return (yield* require_Schema$1.promise(() => Promise.resolve().then(() => require("./BunHttpServer-CtFGbsWr.cjs")))).layer(bunHttpServerOptions(config));
324134
+ const [NodeHttpServer, NodeHttp] = yield* require_Schema$1.all([require_Schema$1.promise(() => Promise.resolve().then(() => require("./NodeHttpServer-DyI6OyMg.cjs"))), require_Schema$1.promise(() => import("node:http"))]);
323936
324135
  return NodeHttpServer.layer(NodeHttp.createServer, {
323937
324136
  host: config.host,
323938
324137
  port: config.port
@@ -323947,7 +324146,7 @@ const PlatformServicesLive = require_Schema$1.unwrap(require_Schema$1.gen(functi
323947
324146
  return layer;
323948
324147
  }
323949
324148
  }));
323950
- const RuntimeReplicationLayerLive = RuntimeReplicationLive.pipe(require_Schema$1.provideMerge(RuntimeReplicationClientLive), require_Schema$1.provideMerge(RuntimeReplicationOutboxLive), require_Schema$1.provideMerge(ActiveHourMeterLive.pipe(require_Schema$1.provide$1(RuntimeReplicationOutboxLive))));
324149
+ const RuntimeReplicationLayerLive = RuntimeReplicationLive.pipe(require_Schema$1.provideMerge(RuntimeReplicationClientLive), require_Schema$1.provideMerge(RuntimeReplicationOutboxLive), require_Schema$1.provideMerge(RuntimeReplicationThreadFlushLive), require_Schema$1.provideMerge(ActiveHourMeterLive.pipe(require_Schema$1.provide$1(RuntimeReplicationOutboxLive))));
323951
324150
  const RuntimeDrainLayerLive = RuntimeDrainReporterLive.pipe(require_Schema$1.provideMerge(RuntimeDrainStateLive));
323952
324151
  const RuntimeAwareProviderReactorsLive = require_Schema$1.mergeAll(ProviderRuntimeIngestionLive, ProviderCommandReactorLive).pipe(require_Schema$1.provide$1(RuntimeDrainLayerLive), require_Schema$1.provideMerge(RuntimeDrainStateLive), require_Schema$1.provide$1(ClaudeUsageTelemetryLive));
323953
324152
  const PipelineWorkerCoordinatorLayerLive = PipelineWorkerCoordinatorLive.pipe(require_Schema$1.provideMerge(PipelineRunClientLive));
@@ -324725,7 +324924,7 @@ const tokenOnlyFlag = boolean$2("token-only").pipe(withDescription$2("Print only
324725
324924
  * it stays least-privilege unless the operator asks otherwise.
324726
324925
  */
324727
324926
  const pairingRoleFlag = choice("role", ["owner", "client"]).pipe(withDescription$2("Role for the issued pairing token."), withDefault("client"));
324728
- const pairingCreateCommand = make$34("create", {
324927
+ const pairingCreateCommand = make$33("create", {
324729
324928
  ...authLocationFlags,
324730
324929
  ttl: ttlFlag,
324731
324930
  role: pairingRoleFlag,
@@ -324743,24 +324942,24 @@ const pairingCreateCommand = make$34("create", {
324743
324942
  ...require_Schema$1.isSome(flags.baseUrl) ? { baseUrl: flags.baseUrl.value } : {}
324744
324943
  }));
324745
324944
  }), { quietLogs: flags.json })));
324746
- const pairingListCommand = make$34("list", {
324945
+ const pairingListCommand = make$33("list", {
324747
324946
  ...authLocationFlags,
324748
324947
  json: jsonFlag
324749
324948
  }).pipe(withDescription$1("List active client pairing tokens without revealing their secrets."), withHandler((flags) => runWithAuthControlPlane(flags, (authControlPlane) => require_Schema$1.gen(function* () {
324750
324949
  yield* log$3(formatPairingCredentialList(yield* authControlPlane.listPairingLinks({ role: "client" }), { json: flags.json }));
324751
324950
  }), { quietLogs: flags.json })));
324752
- const pairingRevokeCommand = make$34("revoke", {
324951
+ const pairingRevokeCommand = make$33("revoke", {
324753
324952
  ...authLocationFlags,
324754
324953
  id: string$4("id").pipe(withDescription$3("Pairing credential id to revoke."))
324755
324954
  }).pipe(withDescription$1("Revoke an active client pairing token."), withHandler((flags) => runWithAuthControlPlane(flags, (authControlPlane) => require_Schema$1.gen(function* () {
324756
324955
  yield* log$3((yield* authControlPlane.revokePairingLink(flags.id)) ? `Revoked pairing credential ${flags.id}.\n` : `No active pairing credential found for ${flags.id}.\n`);
324757
324956
  }))));
324758
- const pairingCommand = make$34("pairing").pipe(withDescription$1("Manage one-time client pairing tokens."), withSubcommands([
324957
+ const pairingCommand = make$33("pairing").pipe(withDescription$1("Manage one-time client pairing tokens."), withSubcommands([
324759
324958
  pairingCreateCommand,
324760
324959
  pairingListCommand,
324761
324960
  pairingRevokeCommand
324762
324961
  ]));
324763
- const sessionIssueCommand = make$34("issue", {
324962
+ const sessionIssueCommand = make$33("issue", {
324764
324963
  ...authLocationFlags,
324765
324964
  ttl: ttlFlag,
324766
324965
  role: sessionRoleFlag,
@@ -324779,25 +324978,25 @@ const sessionIssueCommand = make$34("issue", {
324779
324978
  tokenOnly: flags.tokenOnly
324780
324979
  }));
324781
324980
  }), { quietLogs: flags.json || flags.tokenOnly })));
324782
- const sessionListCommand = make$34("list", {
324981
+ const sessionListCommand = make$33("list", {
324783
324982
  ...authLocationFlags,
324784
324983
  json: jsonFlag
324785
324984
  }).pipe(withDescription$1("List active sessions without revealing bearer tokens."), withHandler((flags) => runWithAuthControlPlane(flags, (authControlPlane) => require_Schema$1.gen(function* () {
324786
324985
  yield* log$3(formatSessionList(yield* authControlPlane.listSessions(), { json: flags.json }));
324787
324986
  }), { quietLogs: flags.json })));
324788
- const sessionRevokeCommand = make$34("revoke", {
324987
+ const sessionRevokeCommand = make$33("revoke", {
324789
324988
  ...authLocationFlags,
324790
324989
  sessionId: string$4("session-id").pipe(withDescription$3("Session id to revoke."), withSchema$1(AuthSessionId))
324791
324990
  }).pipe(withDescription$1("Revoke an active session."), withHandler((flags) => runWithAuthControlPlane(flags, (authControlPlane) => require_Schema$1.gen(function* () {
324792
324991
  yield* log$3((yield* authControlPlane.revokeSession(flags.sessionId)) ? `Revoked session ${flags.sessionId}.\n` : `No active session found for ${flags.sessionId}.\n`);
324793
324992
  }))));
324794
- const sessionCommand = make$34("session").pipe(withDescription$1("Manage bearer sessions."), withSubcommands([
324993
+ const sessionCommand = make$33("session").pipe(withDescription$1("Manage bearer sessions."), withSubcommands([
324795
324994
  sessionIssueCommand,
324796
324995
  sessionListCommand,
324797
324996
  sessionRevokeCommand
324798
324997
  ]));
324799
- const authCommand = make$34("auth").pipe(withDescription$1("Manage the local auth control plane for headless deployments."), withSubcommands([pairingCommand, sessionCommand]));
324800
- const projectAddCommand = make$34("add", {
324998
+ const authCommand = make$33("auth").pipe(withDescription$1("Manage the local auth control plane for headless deployments."), withSubcommands([pairingCommand, sessionCommand]));
324999
+ const projectAddCommand = make$33("add", {
324801
325000
  ...projectLocationFlags,
324802
325001
  workspaceRoot: string$4("path").pipe(withDescription$3("Workspace root to add as a project.")),
324803
325002
  title: string$3("title").pipe(withDescription$2("Optional project title."), optional$1)
@@ -324817,7 +325016,7 @@ const projectAddCommand = make$34("add", {
324817
325016
  });
324818
325017
  return `Added project ${projectId} (${title}) at ${workspaceRoot}.`;
324819
325018
  }))));
324820
- const projectRemoveCommand = make$34("remove", {
325019
+ const projectRemoveCommand = make$33("remove", {
324821
325020
  ...projectLocationFlags,
324822
325021
  project: string$4("project").pipe(withDescription$3("Project id or workspace root to remove."))
324823
325022
  }).pipe(withDescription$1("Remove a project."), withHandler((flags) => runProjectMutation(flags, require_Schema$1.fn("projectRemoveMutation")(function* ({ snapshot, dispatch }) {
@@ -324832,7 +325031,7 @@ const projectRemoveCommand = make$34("remove", {
324832
325031
  });
324833
325032
  return `Removed project ${project.id} (${project.title}).`;
324834
325033
  }))));
324835
- const projectRenameCommand = make$34("rename", {
325034
+ const projectRenameCommand = make$33("rename", {
324836
325035
  ...projectLocationFlags,
324837
325036
  project: string$4("project").pipe(withDescription$3("Project id or workspace root to rename.")),
324838
325037
  title: string$4("title").pipe(withDescription$3("New project title."))
@@ -324855,12 +325054,12 @@ const parseCmmdProjectId = (value) => {
324855
325054
  const projectId = Number(value);
324856
325055
  return Number.isSafeInteger(projectId) && projectId > 0 ? require_Schema$1.succeed(projectId) : require_Schema$1.fail(/* @__PURE__ */ new Error(`Invalid CMMD project id '${value}'. Expected a positive integer.`));
324857
325056
  };
324858
- const projectLeadExplainCommand = make$34("explain", {
325057
+ const projectLeadExplainCommand = make$33("explain", {
324859
325058
  ...projectLocationFlags,
324860
325059
  projectId: string$4("project-id").pipe(withDescription$3("Numeric CMMD project id.")),
324861
325060
  json: jsonFlag
324862
325061
  }).pipe(withDescription$1("Explain canonical Project Lead controller state."), withHandler((flags) => parseCmmdProjectId(flags.projectId).pipe(require_Schema$1.flatMap((projectId) => runProjectLeadQuery(flags, projectId, (explanation) => flags.json ? JSON.stringify(explanation, null, 2) : formatProjectLeadExplanation(projectId, explanation))))));
324863
- const projectLeadDoctorCommand = make$34("doctor", {
325062
+ const projectLeadDoctorCommand = make$33("doctor", {
324864
325063
  ...projectLocationFlags,
324865
325064
  projectId: string$4("project-id").pipe(withDescription$3("Numeric CMMD project id.")),
324866
325065
  json: jsonFlag
@@ -324868,7 +325067,7 @@ const projectLeadDoctorCommand = make$34("doctor", {
324868
325067
  const report = diagnoseProjectLead(projectId, explanation);
324869
325068
  return flags.json ? JSON.stringify(report, null, 2) : formatProjectLeadDoctor(report);
324870
325069
  })))));
324871
- const projectLeadCommand = make$34("lead").pipe(withDescription$1("Inspect the CMMD-owned Project Lead controller."), withSubcommands([projectLeadExplainCommand, projectLeadDoctorCommand]));
325070
+ const projectLeadCommand = make$33("lead").pipe(withDescription$1("Inspect the CMMD-owned Project Lead controller."), withSubcommands([projectLeadExplainCommand, projectLeadDoctorCommand]));
324872
325071
  const connectStatePathFor = require_Schema$1.fn("connectStatePathFor")(function* (flags) {
324873
325072
  const config = yield* resolveCliAuthConfig(flags, yield* LogLevel);
324874
325073
  return (yield* require_Path.Path).join(config.stateDir, "connect.json");
@@ -324881,18 +325080,18 @@ const runConnectCommand = (flags, update) => require_Schema$1.gen(function* () {
324881
325080
  const state = next ?? current;
324882
325081
  yield* log$3(flags.json ? JSON.stringify(state, null, 2) : formatConnectStatus(state));
324883
325082
  });
324884
- const connectStatusCommand = make$34("status", {
325083
+ const connectStatusCommand = make$33("status", {
324885
325084
  ...projectLocationFlags,
324886
325085
  json: jsonFlag
324887
325086
  }).pipe(withDescription$1("Show whether this machine is offered to CMMD over the relay."), withHandler((flags) => runConnectCommand(flags, () => null)));
324888
- const connectLinkCommand = make$34("link", {
325087
+ const connectLinkCommand = make$33("link", {
324889
325088
  ...projectLocationFlags,
324890
325089
  json: jsonFlag
324891
325090
  }).pipe(withDescription$1("Offer this machine to CMMD over the relay on the next start."), withHandler((flags) => runConnectCommand(flags, (current) => ({
324892
325091
  ...current,
324893
325092
  linked: true
324894
325093
  }))));
324895
- const connectUnlinkCommand = make$34("unlink", {
325094
+ const connectUnlinkCommand = make$33("unlink", {
324896
325095
  ...projectLocationFlags,
324897
325096
  json: jsonFlag
324898
325097
  }).pipe(withDescription$1("Stop offering this machine, keeping its runtime identity so relinking is the same device."), withHandler((flags) => runConnectCommand(flags, (current) => ({
@@ -324903,7 +325102,7 @@ const noBrowserLoginFlag = boolean$2("no-browser").pipe(withDescription$2("Print
324903
325102
  const CONNECT_CLI_CLIENT_ID = "cmmd-forge-web";
324904
325103
  const connectSecretsFor = (stateDir) => createFileSecretStorage({ keyPath: node_path.join(stateDir, "connect-secret.key") });
324905
325104
  const loginEmailFlag = string$3("email").pipe(withDescription$2("Sign in with this CMMD email and a password prompt instead of the browser flow."), optional$1);
324906
- const connectLoginCommand = make$34("login", {
325105
+ const connectLoginCommand = make$33("login", {
324907
325106
  ...projectLocationFlags,
324908
325107
  noBrowser: noBrowserLoginFlag,
324909
325108
  email: loginEmailFlag
@@ -324970,7 +325169,7 @@ const connectLoginCommand = make$34("login", {
324970
325169
  });
324971
325170
  yield* log$3("Signed in to CMMD. Run `cmmd-forge connect link` to offer this machine.");
324972
325171
  })));
324973
- const connectLogoutCommand = make$34("logout", { ...projectLocationFlags }).pipe(withDescription$1("Sign this machine out of CMMD and stop offering it."), withHandler((flags) => require_Schema$1.gen(function* () {
325172
+ const connectLogoutCommand = make$33("logout", { ...projectLocationFlags }).pipe(withDescription$1("Sign this machine out of CMMD and stop offering it."), withHandler((flags) => require_Schema$1.gen(function* () {
324974
325173
  const config = yield* resolveCliAuthConfig(flags, yield* LogLevel);
324975
325174
  const statePath = node_path.join(config.stateDir, "connect.json");
324976
325175
  writeConnectState(statePath, {
@@ -324980,14 +325179,14 @@ const connectLogoutCommand = make$34("logout", { ...projectLocationFlags }).pipe
324980
325179
  clearConnectCredential(node_path.join(config.stateDir, "connect-credential.json"));
324981
325180
  yield* log$3("Signed out of CMMD and stopped offering this machine.");
324982
325181
  })));
324983
- const connectCommand = make$34("connect").pipe(withDescription$1("Offer this machine to CMMD so other surfaces can reach it."), withSubcommands([
325182
+ const connectCommand = make$33("connect").pipe(withDescription$1("Offer this machine to CMMD so other surfaces can reach it."), withSubcommands([
324984
325183
  connectStatusCommand,
324985
325184
  connectLoginCommand,
324986
325185
  connectLogoutCommand,
324987
325186
  connectLinkCommand,
324988
325187
  connectUnlinkCommand
324989
325188
  ]));
324990
- const projectCommand = make$34("project").pipe(withDescription$1("Manage projects."), withSubcommands([
325189
+ const projectCommand = make$33("project").pipe(withDescription$1("Manage projects."), withSubcommands([
324991
325190
  projectAddCommand,
324992
325191
  projectRemoveCommand,
324993
325192
  projectRenameCommand,
@@ -325002,12 +325201,12 @@ const runServerCommand = (flags, options) => require_Schema$1.gen(function* () {
325002
325201
  });
325003
325202
  return yield* runServer.pipe(require_Schema$1.provideService(ServerConfig, config));
325004
325203
  });
325005
- const startCommand = make$34("start", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server."), withHandler((flags) => runServerCommand(flags)));
325006
- const serveCommand = make$34("serve", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server without opening a browser and print headless pairing details."), withHandler((flags) => runServerCommand(flags, {
325204
+ const startCommand = make$33("start", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server."), withHandler((flags) => runServerCommand(flags)));
325205
+ const serveCommand = make$33("serve", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server without opening a browser and print headless pairing details."), withHandler((flags) => runServerCommand(flags, {
325007
325206
  startupPresentation: "headless",
325008
325207
  forceAutoBootstrapProjectFromCwd: false
325009
325208
  })));
325010
- const cli = make$34("cmmd-forge", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server."), withHandler((flags) => runServerCommand(flags)), withSubcommands([
325209
+ const cli = make$33("cmmd-forge", { ...sharedServerCommandFlags }).pipe(withDescription$1("Run the Forge server."), withHandler((flags) => runServerCommand(flags)), withSubcommands([
325011
325210
  startCommand,
325012
325211
  serveCommand,
325013
325212
  authCommand,