@fabiofiorita/porcelain 0.82.2 → 0.82.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/server/src/cli/main.mjs +145 -71
  4. package/web/dist/assets/_-CjuX8204.js +1 -0
  5. package/web/dist/assets/_paired-CsufHhzG.js +1 -0
  6. package/web/dist/assets/{_paired-CqcR1ikJ.js → _paired-DGwd1y4R.js} +1 -1
  7. package/web/dist/assets/_paired-Uw-2dNDo.js +1 -0
  8. package/web/dist/assets/{_paired--LzhIV8q.js → _paired-dxbWzSKv.js} +1 -1
  9. package/web/dist/assets/{_section-C3rzCQs1.js → _section-BVyF13W-.js} +1 -1
  10. package/web/dist/assets/_worktreeId-CHJpLdGv.js +1 -0
  11. package/web/dist/assets/_worktreeId-CsufHhzG.js +1 -0
  12. package/web/dist/assets/_worktreeId-Uw-2dNDo.js +1 -0
  13. package/web/dist/assets/{_worktreeId-BDJbQ5Cn.js → _worktreeId-jnE7LHzn.js} +1 -1
  14. package/web/dist/assets/{access-WT1uwdZk.js → access-Be5-I3uN.js} +1 -1
  15. package/web/dist/assets/connected-workspace-bG1owcgt.js +1 -0
  16. package/web/dist/assets/{desktop-actions-WJQHB849.js → desktop-actions-BF1FmtLQ.js} +22 -22
  17. package/web/dist/assets/{edit-file-CG3WhqLS.js → edit-file-C2FNFMOI.js} +1 -1
  18. package/web/dist/assets/{file-editor-DGtg0rP2.js → file-editor-oLgfLZbs.js} +1 -1
  19. package/web/dist/assets/index-HBCxqMtr.css +2 -0
  20. package/web/dist/assets/{index-Bk8Ig0Ne.js → index-jwdWY-Oe.js} +3 -3
  21. package/web/dist/assets/{lazyRouteComponent-DpO3HGey.js → lazyRouteComponent-jhdvs2sU.js} +1 -1
  22. package/web/dist/assets/{pair-CqLMCfsc.js → pair-FC2KSEZT.js} +1 -1
  23. package/web/dist/assets/pair-Uw-2dNDo.js +1 -0
  24. package/web/dist/assets/{settings-page-RYnO3e6i.js → settings-page-_25QMUsD.js} +108 -108
  25. package/web/dist/assets/{useMatch-Dht53RCg.js → useMatch-BNfVF2UU.js} +1 -1
  26. package/web/dist/assets/useRouterState-GOqQRnzK.js +1 -0
  27. package/web/dist/assets/{workspace-error-CIsCnenX.js → workspace-error-BtARcbMJ.js} +1 -1
  28. package/web/dist/assets/{workspace-pending-oH5nDvO6.js → workspace-pending-CF3GKXTj.js} +1 -1
  29. package/web/dist/index.html +8 -8
  30. package/web/dist/assets/_-b1prKmSp.js +0 -1
  31. package/web/dist/assets/_paired-B07BAuB3.js +0 -1
  32. package/web/dist/assets/_paired-D-U8zru5.js +0 -1
  33. package/web/dist/assets/_worktreeId-B07BAuB3.js +0 -1
  34. package/web/dist/assets/_worktreeId-D-U8zru5.js +0 -1
  35. package/web/dist/assets/_worktreeId-D1NaqSVx.js +0 -1
  36. package/web/dist/assets/connected-workspace-DcS6e5zB.js +0 -1
  37. package/web/dist/assets/index-BoONRxa4.css +0 -2
  38. package/web/dist/assets/pair-D-U8zru5.js +0 -1
  39. package/web/dist/assets/useRouterState-DCsGUMtp.js +0 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @fabiofiorita/porcelain (0.82.2)
1
+ # @fabiofiorita/porcelain (0.82.3)
2
2
 
3
3
  The Porcelain server and bundled web app for a plain Node installation. A
4
4
  fresh, read-only agent writes a Walkthrough of what your coding agent changed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabiofiorita/porcelain",
3
- "version": "0.82.2",
3
+ "version": "0.82.3",
4
4
  "description": "A fresh, read-only agent explains what your coding agent changed. Read it from a browser, Mac or phone.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -199,6 +199,25 @@ var walkthroughContentSchema = Schema3.Struct({
199
199
  stillUnclear: Schema3.Array(Schema3.String),
200
200
  checks: Schema3.optional(Schema3.String)
201
201
  });
202
+ var walkthroughStageSchema = Schema3.Literals([
203
+ "queued",
204
+ "evidence",
205
+ "transcript",
206
+ "writing",
207
+ "validating",
208
+ "ready",
209
+ "failed"
210
+ ]);
211
+ var walkthroughProgressSchema = Schema3.Struct({
212
+ stage: walkthroughStageSchema,
213
+ at: Schema3.String,
214
+ message: Schema3.String
215
+ });
216
+ var walkthroughFreshnessSchema = Schema3.Literals([
217
+ "current",
218
+ "changed",
219
+ "unknown"
220
+ ]);
202
221
  var walkthroughRunSchema = Schema3.Struct({
203
222
  id: Schema3.String,
204
223
  projectId: Schema3.String,
@@ -219,6 +238,7 @@ var walkthroughRunSchema = Schema3.Struct({
219
238
  writer: writerSchema,
220
239
  sessionId: Schema3.optional(Schema3.String),
221
240
  createdAt: Schema3.String,
241
+ progress: Schema3.optional(Schema3.Array(walkthroughProgressSchema)),
222
242
  state: Schema3.Union([
223
243
  Schema3.Struct({ status: Schema3.Literal("queued") }),
224
244
  Schema3.Struct({ status: Schema3.Literal("running") }),
@@ -3373,7 +3393,7 @@ var LIVE_WORKTREES = 32;
3373
3393
  var LIVE_PATHS_PER_WORKTREE = 64;
3374
3394
  var TUNNEL_HOSTNAME_LENGTH = 253;
3375
3395
  var ENVIRONMENT_NAME_LENGTH = 64;
3376
- var ENVIRONMENT_PROTOCOL = 3;
3396
+ var ENVIRONMENT_PROTOCOL = 4;
3377
3397
  var SERVICE_VERSION_LENGTH = 128;
3378
3398
  var REVIEW_PROOF_FILE_MEBIBYTES = 8;
3379
3399
  var REVIEW_PROOF_FILE_BYTES = REVIEW_PROOF_FILE_MEBIBYTES * MEBIBYTE;
@@ -4046,7 +4066,7 @@ var startWalkthroughRequestSchema = Schema84.Struct({
4046
4066
  var readWalkthroughResponseSchema = Schema84.Struct({
4047
4067
  walkthrough: nullableAsUndefined(walkthroughRunSchema2),
4048
4068
  attempt: Schema84.optional(walkthroughRunSchema2),
4049
- outOfDate: Schema84.Boolean
4069
+ freshness: walkthroughFreshnessSchema
4050
4070
  });
4051
4071
  var walkthroughWriterSettingsSchema = Schema84.Struct({
4052
4072
  writer: writerSchema,
@@ -20109,7 +20129,7 @@ var ReadWalkthroughService = class _ReadWalkthroughService extends Context140.Se
20109
20129
  }).pipe(Effect193.catch(() => Effect193.succeed(void 0)));
20110
20130
  return {
20111
20131
  walkthrough,
20112
- outOfDate: walkthrough !== void 0 && (identity3?.baseOid !== walkthrough.baseOid || identity3?.contentTreeOid !== walkthrough.contentTreeOid),
20132
+ freshness: walkthrough === void 0 || identity3 === void 0 ? "unknown" : identity3.baseOid !== walkthrough.baseOid || identity3.contentTreeOid !== walkthrough.contentTreeOid ? "changed" : "current",
20113
20133
  attempt: ready !== void 0 && latest !== void 0 && latest.state.status !== "ready" && latest.id !== ready.id ? latest : void 0
20114
20134
  };
20115
20135
  })
@@ -20211,6 +20231,13 @@ var StartWalkthroughService = class _StartWalkthroughService extends Context143.
20211
20231
  writer,
20212
20232
  sessionId: void 0,
20213
20233
  createdAt,
20234
+ progress: [
20235
+ {
20236
+ stage: "queued",
20237
+ at: createdAt,
20238
+ message: `Captured ${snapshot.files.length} ${snapshot.files.length === 1 ? "file" : "files"} for ${snapshot.headOid.slice(0, 7)}${snapshot.includesUncommitted ? " and uncommitted work" : ""}. Waiting for the writer.`
20239
+ }
20240
+ ],
20214
20241
  state: { status: "queued" }
20215
20242
  }
20216
20243
  },
@@ -20332,13 +20359,42 @@ var WriteWalkthroughService = class _WriteWalkthroughService extends Context145.
20332
20359
  const transcripts = yield* TranscriptReader;
20333
20360
  const evidenceReader = yield* EvidenceReader;
20334
20361
  return {
20335
- execute: Effect198.fn("WriteWalkthroughService.execute")(function* (job) {
20336
- let run2 = { ...job.run, state: { status: "running" } };
20362
+ execute: Effect198.fn("WriteWalkthroughService.execute")(function* (job, changed) {
20363
+ let run2 = {
20364
+ ...job.run,
20365
+ state: { status: "running" }
20366
+ };
20367
+ const record = Effect198.fn("WriteWalkthroughService.record")(function* (stage, message2) {
20368
+ const at = yield* DateTime15.now.pipe(Effect198.map(DateTime15.formatIso));
20369
+ run2 = {
20370
+ ...run2,
20371
+ progress: [...run2.progress ?? [], { stage, at, message: message2 }]
20372
+ };
20373
+ yield* store.save(run2);
20374
+ yield* changed();
20375
+ });
20337
20376
  yield* Effect198.gen(function* () {
20377
+ yield* record(
20378
+ "evidence",
20379
+ run2.pullRequestNumber === void 0 ? "No pull request is attached. Continuing without pull request evidence." : "Reading existing pull request evidence and checks."
20380
+ );
20338
20381
  const evidence = yield* evidenceReader.read(job);
20339
20382
  run2 = { ...run2, evidenceUnavailable: evidence.unavailable };
20340
20383
  yield* store.saveAssets(run2.id, evidence.assets);
20384
+ const unavailable2 = evidence.unavailable === void 0 ? void 0 : {
20385
+ head_mismatch: "The pull request is at another commit.",
20386
+ github_account: "No GitHub account is selected for this project.",
20387
+ github_unavailable: "GitHub could not be reached."
20388
+ }[evidence.unavailable];
20389
+ yield* record(
20390
+ "transcript",
20391
+ unavailable2 ? `${unavailable2} Continuing without pull request evidence. Reading the coding conversation.` : `Collected ${evidence.assets.length} evidence assets. Reading the coding conversation.`
20392
+ );
20341
20393
  const transcript = yield* transcripts.read(job.worktreePath);
20394
+ yield* record(
20395
+ "writing",
20396
+ `${run2.writer.provider === "codex" ? "Codex" : "Claude"} is writing the walkthrough from the captured change.`
20397
+ );
20342
20398
  const result = yield* writer.write({
20343
20399
  ...job,
20344
20400
  evidence,
@@ -20348,6 +20404,10 @@ var WriteWalkthroughService = class _WriteWalkthroughService extends Context145.
20348
20404
  return store.save(run2);
20349
20405
  }
20350
20406
  });
20407
+ yield* record(
20408
+ "validating",
20409
+ "Checking the written walkthrough against captured files and evidence."
20410
+ );
20351
20411
  const content = qualifyWalkthrough(
20352
20412
  {
20353
20413
  ...result.content,
@@ -20356,7 +20416,7 @@ var WriteWalkthroughService = class _WriteWalkthroughService extends Context145.
20356
20416
  job.files,
20357
20417
  evidence.assets.map((asset) => asset.id)
20358
20418
  );
20359
- yield* store.save({
20419
+ run2 = {
20360
20420
  ...run2,
20361
20421
  sessionId: result.sessionId,
20362
20422
  state: {
@@ -20368,15 +20428,19 @@ var WriteWalkthroughService = class _WriteWalkthroughService extends Context145.
20368
20428
  durationMs: result.durationMs,
20369
20429
  costUsd: result.costUsd
20370
20430
  }
20371
- });
20431
+ };
20432
+ yield* record("ready", "Walkthrough written and saved.");
20372
20433
  }).pipe(
20373
20434
  Effect198.catch(
20374
- (failure3) => store.save({
20375
- ...run2,
20376
- state: {
20377
- status: "failed",
20378
- failure: { kind: failure3.kind, message: failure3.message }
20379
- }
20435
+ Effect198.fn("WriteWalkthroughService.fail")(function* (failure3) {
20436
+ run2 = {
20437
+ ...run2,
20438
+ state: {
20439
+ status: "failed",
20440
+ failure: { kind: failure3.kind, message: failure3.message }
20441
+ }
20442
+ };
20443
+ yield* record("failed", failure3.message);
20380
20444
  })
20381
20445
  )
20382
20446
  );
@@ -21516,6 +21580,7 @@ var AnnounceWalkthroughUseCasePort = Context171.Service("@porcelain/server/Annou
21516
21580
  // apps/server/src/runtime/walkthrough-workflow.ts
21517
21581
  import {
21518
21582
  Context as Context173,
21583
+ DateTime as DateTime20,
21519
21584
  Effect as Effect219,
21520
21585
  Exit as Exit17,
21521
21586
  Layer as Layer124,
@@ -21573,7 +21638,10 @@ var WalkthroughWorkflow = class _WalkthroughWorkflow extends Context173.Service(
21573
21638
  if (!job || job.run.state.status !== "queued") return;
21574
21639
  if (!(yield* begin.execute(id))) return;
21575
21640
  yield* events2.execute({ worktreeId: job.run.worktreeId });
21576
- yield* writer.execute(job).pipe(
21641
+ yield* writer.execute(
21642
+ job,
21643
+ () => events2.execute({ worktreeId: job.run.worktreeId })
21644
+ ).pipe(
21577
21645
  Effect219.ensuring(
21578
21646
  events2.execute({
21579
21647
  worktreeId: job.run.worktreeId
@@ -21622,16 +21690,22 @@ var WalkthroughWorkflow = class _WalkthroughWorkflow extends Context173.Service(
21622
21690
  });
21623
21691
  for (const job of yield* store.listPending()) {
21624
21692
  if (job.run.state.status === "running") {
21693
+ const message2 = "The server stopped while this walkthrough was running. The interrupted writer was not restarted.";
21694
+ const at = yield* DateTime20.now.pipe(Effect219.map(DateTime20.formatIso));
21625
21695
  yield* lanes.run(
21626
21696
  keys.walkthroughs(),
21627
21697
  "write",
21628
21698
  () => store.save({
21629
21699
  ...job.run,
21700
+ progress: [
21701
+ ...job.run.progress ?? [],
21702
+ { stage: "failed", at, message: message2 }
21703
+ ],
21630
21704
  state: {
21631
21705
  status: "failed",
21632
21706
  failure: {
21633
21707
  kind: "other",
21634
- message: "The server stopped while this walkthrough was running. The interrupted writer was not restarted."
21708
+ message: message2
21635
21709
  }
21636
21710
  }
21637
21711
  })
@@ -22730,8 +22804,8 @@ var ReadWalkthroughUseCase = class _ReadWalkthroughUseCase extends Context175.Se
22730
22804
  return yield* access2.read(
22731
22805
  input.worktreeId,
22732
22806
  () => Effect227.gen(function* () {
22733
- const { walkthrough, attempt, outOfDate } = yield* store.execute(input);
22734
- return { walkthrough, attempt, outOfDate };
22807
+ const { walkthrough, attempt, freshness } = yield* store.execute(input);
22808
+ return { walkthrough, attempt, freshness };
22735
22809
  })
22736
22810
  );
22737
22811
  })
@@ -23379,7 +23453,7 @@ import { Effect as Effect390, Layer as Layer276 } from "effect";
23379
23453
  import { Layer as Layer179, Clock as Clock24 } from "effect";
23380
23454
 
23381
23455
  // packages/access/src/services/authenticate-device-service.ts
23382
- import { Effect as Effect239, Context as Context186, Layer as Layer141, Clock as Clock13, DateTime as DateTime20 } from "effect";
23456
+ import { Effect as Effect239, Context as Context186, Layer as Layer141, Clock as Clock13, DateTime as DateTime21 } from "effect";
23383
23457
 
23384
23458
  // packages/access/src/rules/device-activity.ts
23385
23459
  function idleMilliseconds(device, now) {
@@ -23420,8 +23494,8 @@ var AuthenticateDeviceService = class _AuthenticateDeviceService extends Context
23420
23494
  const device = deviceSightings.find({ deviceId: credential2.id }) ?? (yield* devices2.find({ deviceId: credential2.id }));
23421
23495
  if (!device || !secretMatches(device.secretHash, credential2.secret) || device.route !== input.route)
23422
23496
  return { kind: "refused" };
23423
- const now = DateTime20.formatIso(
23424
- DateTime20.makeUnsafe(yield* clock.currentTimeMillis)
23497
+ const now = DateTime21.formatIso(
23498
+ DateTime21.makeUnsafe(yield* clock.currentTimeMillis)
23425
23499
  );
23426
23500
  if (!deviceUsable(device, now, options.unusedLifetimeMs))
23427
23501
  return { kind: "refused" };
@@ -23781,7 +23855,7 @@ var FlushDeviceActivityService = class _FlushDeviceActivityService extends Conte
23781
23855
  };
23782
23856
 
23783
23857
  // packages/access/src/services/issue-pairing-service.ts
23784
- import { Redacted as Redacted4, Effect as Effect242, Context as Context189, Layer as Layer144, Clock as Clock14, DateTime as DateTime21 } from "effect";
23858
+ import { Redacted as Redacted4, Effect as Effect242, Context as Context189, Layer as Layer144, Clock as Clock14, DateTime as DateTime22 } from "effect";
23785
23859
 
23786
23860
  // packages/access/src/rules/device-details.ts
23787
23861
  var CONTROL_CHARACTER = new RegExp("\\p{Cc}", "u");
@@ -23838,8 +23912,8 @@ var IssuePairingService = class _IssuePairingService extends Context189.Service(
23838
23912
  (label) => operationDetail(validLabel(label, options.labelLength))
23839
23913
  );
23840
23914
  const trusted = input.trusted === true;
23841
- const createdAt = DateTime21.formatIso(
23842
- DateTime21.makeUnsafe(yield* clock.currentTimeMillis)
23915
+ const createdAt = DateTime22.formatIso(
23916
+ DateTime22.makeUnsafe(yield* clock.currentTimeMillis)
23843
23917
  );
23844
23918
  const expiresAt = instantAfter(createdAt, options.lifetimeMs);
23845
23919
  const issued = labels.map((label) => {
@@ -23877,7 +23951,7 @@ var IssuePairingService = class _IssuePairingService extends Context189.Service(
23877
23951
  };
23878
23952
 
23879
23953
  // packages/access/src/services/list-access-service.ts
23880
- import { Effect as Effect243, Context as Context190, Layer as Layer145, Clock as Clock15, DateTime as DateTime22 } from "effect";
23954
+ import { Effect as Effect243, Context as Context190, Layer as Layer145, Clock as Clock15, DateTime as DateTime23 } from "effect";
23881
23955
 
23882
23956
  // packages/access/src/rules/pairing-grant.ts
23883
23957
  function pairingGrantRevocable(grant) {
@@ -23900,8 +23974,8 @@ var ListAccessService = class _ListAccessService extends Context190.Service()("@
23900
23974
  const clock = yield* Clock15.Clock;
23901
23975
  return {
23902
23976
  execute: Effect243.fn("ListAccessService.execute")(function* (input) {
23903
- const now = DateTime22.formatIso(
23904
- DateTime22.makeUnsafe(yield* clock.currentTimeMillis)
23977
+ const now = DateTime23.formatIso(
23978
+ DateTime23.makeUnsafe(yield* clock.currentTimeMillis)
23905
23979
  );
23906
23980
  return {
23907
23981
  grants: (yield* pairingGrants.list()).filter((grant) => pairingGrantPending(grant, now)).map(
@@ -24067,7 +24141,7 @@ var ReadOwnerStatusService = class _ReadOwnerStatusService extends Context195.Se
24067
24141
  };
24068
24142
 
24069
24143
  // packages/access/src/services/redeem-pairing-service.ts
24070
- import { Redacted as Redacted5, Effect as Effect249, Context as Context196, Layer as Layer151, Clock as Clock16, DateTime as DateTime23 } from "effect";
24144
+ import { Redacted as Redacted5, Effect as Effect249, Context as Context196, Layer as Layer151, Clock as Clock16, DateTime as DateTime24 } from "effect";
24071
24145
  var RedeemPairingService = class _RedeemPairingService extends Context196.Service()("@porcelain/access/RedeemPairingService") {
24072
24146
  static layer = Layer151.effect(
24073
24147
  _RedeemPairingService,
@@ -24094,8 +24168,8 @@ var RedeemPairingService = class _RedeemPairingService extends Context196.Servic
24094
24168
  const platform = yield* operationDetail(
24095
24169
  validPlatform(input.platform, options.platformLength)
24096
24170
  );
24097
- const now = DateTime23.formatIso(
24098
- DateTime23.makeUnsafe(yield* clock.currentTimeMillis)
24171
+ const now = DateTime24.formatIso(
24172
+ DateTime24.makeUnsafe(yield* clock.currentTimeMillis)
24099
24173
  );
24100
24174
  const grant = yield* pairingGrants.find({ grantId: code.id });
24101
24175
  if (!grant || !secretMatches(grant.secretHash, code.secret) || !pairingGrantRedeemable(grant, now))
@@ -24131,7 +24205,7 @@ var RedeemPairingService = class _RedeemPairingService extends Context196.Servic
24131
24205
  };
24132
24206
 
24133
24207
  // packages/access/src/services/refund-pairing-attempt-service.ts
24134
- import { Effect as Effect250, Context as Context197, Layer as Layer152, Clock as Clock17, DateTime as DateTime24 } from "effect";
24208
+ import { Effect as Effect250, Context as Context197, Layer as Layer152, Clock as Clock17, DateTime as DateTime25 } from "effect";
24135
24209
 
24136
24210
  // packages/access/src/rules/pairing-attempts.ts
24137
24211
  function elapsedMs(since, now) {
@@ -24211,8 +24285,8 @@ var RefundPairingAttemptService = class _RefundPairingAttemptService extends Con
24211
24285
  const options = yield* RefundPairingAttemptOptions;
24212
24286
  return {
24213
24287
  execute: Effect250.fn("RefundPairingAttemptService.execute")(function* (input) {
24214
- const observedAt = DateTime24.formatIso(
24215
- DateTime24.makeUnsafe(yield* clock.currentTimeMillis)
24288
+ const observedAt = DateTime25.formatIso(
24289
+ DateTime25.makeUnsafe(yield* clock.currentTimeMillis)
24216
24290
  );
24217
24291
  return yield* Effect250.sync(() => {
24218
24292
  const budget = input.crossOrigin ? "crossOrigin" : "sameOrigin";
@@ -24233,7 +24307,7 @@ var RefundPairingAttemptService = class _RefundPairingAttemptService extends Con
24233
24307
  };
24234
24308
 
24235
24309
  // packages/access/src/services/revoke-device-service.ts
24236
- import { Effect as Effect251, Context as Context198, Layer as Layer153, Clock as Clock18, DateTime as DateTime25 } from "effect";
24310
+ import { Effect as Effect251, Context as Context198, Layer as Layer153, Clock as Clock18, DateTime as DateTime26 } from "effect";
24237
24311
  var RevokeDeviceService = class _RevokeDeviceService extends Context198.Service()("@porcelain/access/RevokeDeviceService") {
24238
24312
  static layer = Layer153.effect(
24239
24313
  _RevokeDeviceService,
@@ -24248,8 +24322,8 @@ var RevokeDeviceService = class _RevokeDeviceService extends Context198.Service(
24248
24322
  if (!device || deviceRevoked(device)) return { kind: "not-revoked" };
24249
24323
  yield* devices2.markRevoked({
24250
24324
  device,
24251
- revokedAt: DateTime25.formatIso(
24252
- DateTime25.makeUnsafe(yield* clock.currentTimeMillis)
24325
+ revokedAt: DateTime26.formatIso(
24326
+ DateTime26.makeUnsafe(yield* clock.currentTimeMillis)
24253
24327
  )
24254
24328
  });
24255
24329
  deviceSightings.remove({ deviceId: device.id });
@@ -24262,7 +24336,7 @@ var RevokeDeviceService = class _RevokeDeviceService extends Context198.Service(
24262
24336
  };
24263
24337
 
24264
24338
  // packages/access/src/services/revoke-pairing-grant-service.ts
24265
- import { Effect as Effect252, Context as Context199, Layer as Layer154, Clock as Clock19, DateTime as DateTime26 } from "effect";
24339
+ import { Effect as Effect252, Context as Context199, Layer as Layer154, Clock as Clock19, DateTime as DateTime27 } from "effect";
24266
24340
  var RevokePairingGrantService = class _RevokePairingGrantService extends Context199.Service()("@porcelain/access/RevokePairingGrantService") {
24267
24341
  static layer = Layer154.effect(
24268
24342
  _RevokePairingGrantService,
@@ -24276,8 +24350,8 @@ var RevokePairingGrantService = class _RevokePairingGrantService extends Context
24276
24350
  return { kind: "not-revoked" };
24277
24351
  yield* pairingGrants.markRevoked({
24278
24352
  grant,
24279
- revokedAt: DateTime26.formatIso(
24280
- DateTime26.makeUnsafe(yield* clock.currentTimeMillis)
24353
+ revokedAt: DateTime27.formatIso(
24354
+ DateTime27.makeUnsafe(yield* clock.currentTimeMillis)
24281
24355
  )
24282
24356
  });
24283
24357
  return { kind: "revoked" };
@@ -24288,7 +24362,7 @@ var RevokePairingGrantService = class _RevokePairingGrantService extends Context
24288
24362
  };
24289
24363
 
24290
24364
  // packages/access/src/services/take-pairing-attempt-service.ts
24291
- import { Effect as Effect253, Context as Context200, Layer as Layer155, Clock as Clock20, DateTime as DateTime27 } from "effect";
24365
+ import { Effect as Effect253, Context as Context200, Layer as Layer155, Clock as Clock20, DateTime as DateTime28 } from "effect";
24292
24366
  var TakePairingAttemptService = class _TakePairingAttemptService extends Context200.Service()("@porcelain/access/TakePairingAttemptService") {
24293
24367
  static layer = Layer155.effect(
24294
24368
  _TakePairingAttemptService,
@@ -24303,8 +24377,8 @@ var TakePairingAttemptService = class _TakePairingAttemptService extends Context
24303
24377
  const { attempts, taken } = takePairingAttempt2(
24304
24378
  store.read(),
24305
24379
  input.peer,
24306
- DateTime27.formatIso(
24307
- DateTime27.makeUnsafe(yield* clock.currentTimeMillis)
24380
+ DateTime28.formatIso(
24381
+ DateTime28.makeUnsafe(yield* clock.currentTimeMillis)
24308
24382
  ),
24309
24383
  options[budget]
24310
24384
  );
@@ -24798,7 +24872,7 @@ var CheckServiceUpdateService = class _CheckServiceUpdateService extends Context
24798
24872
  };
24799
24873
 
24800
24874
  // packages/access/src/services/plan-service-update-check-service.ts
24801
- import { Effect as Effect262, Context as Context209, Layer as Layer164, Clock as Clock21, DateTime as DateTime28 } from "effect";
24875
+ import { Effect as Effect262, Context as Context209, Layer as Layer164, Clock as Clock21, DateTime as DateTime29 } from "effect";
24802
24876
 
24803
24877
  // packages/access/src/rules/service-update-check.ts
24804
24878
  function serviceUpdateCheck(now, latestVersionTtlMs) {
@@ -24815,8 +24889,8 @@ var PlanServiceUpdateCheckService = class _PlanServiceUpdateCheckService extends
24815
24889
  return {
24816
24890
  execute: Effect262.fn("PlanServiceUpdateCheckService.execute")(
24817
24891
  function* () {
24818
- const observedAt = DateTime28.formatIso(
24819
- DateTime28.makeUnsafe(yield* clock.currentTimeMillis)
24892
+ const observedAt = DateTime29.formatIso(
24893
+ DateTime29.makeUnsafe(yield* clock.currentTimeMillis)
24820
24894
  );
24821
24895
  return yield* Effect262.sync(() => {
24822
24896
  return serviceUpdateCheck(observedAt, options.latestVersionTtlMs);
@@ -24854,7 +24928,7 @@ var AuthenticateDesktopSessionService = class _AuthenticateDesktopSessionService
24854
24928
  };
24855
24929
 
24856
24930
  // packages/access/src/services/issue-live-ticket-service.ts
24857
- import { Redacted as Redacted7, Effect as Effect264, Context as Context211, Layer as Layer166, Clock as Clock22, DateTime as DateTime29 } from "effect";
24931
+ import { Redacted as Redacted7, Effect as Effect264, Context as Context211, Layer as Layer166, Clock as Clock22, DateTime as DateTime30 } from "effect";
24858
24932
 
24859
24933
  // packages/access/src/rules/live-tickets.ts
24860
24934
  function unexpired(ticket, now) {
@@ -24897,8 +24971,8 @@ var IssueLiveTicketService = class _IssueLiveTicketService extends Context211.Se
24897
24971
  const { viewer } = input;
24898
24972
  if (viewer.kind !== "device")
24899
24973
  return yield* Effect264.fail(new DeviceViewerRequiredError());
24900
- const now = DateTime29.formatIso(
24901
- DateTime29.makeUnsafe(yield* clock.currentTimeMillis)
24974
+ const now = DateTime30.formatIso(
24975
+ DateTime30.makeUnsafe(yield* clock.currentTimeMillis)
24902
24976
  );
24903
24977
  const expiresAt = instantAfter(now, options.lifetimeMs);
24904
24978
  const issued = credential(
@@ -24929,7 +25003,7 @@ var IssueLiveTicketService = class _IssueLiveTicketService extends Context211.Se
24929
25003
  };
24930
25004
 
24931
25005
  // packages/access/src/services/redeem-live-ticket-service.ts
24932
- import { Effect as Effect265, Context as Context212, Layer as Layer167, Clock as Clock23, DateTime as DateTime30 } from "effect";
25006
+ import { Effect as Effect265, Context as Context212, Layer as Layer167, Clock as Clock23, DateTime as DateTime31 } from "effect";
24933
25007
  var RedeemLiveTicketService = class _RedeemLiveTicketService extends Context212.Service()("@porcelain/access/RedeemLiveTicketService") {
24934
25008
  static layer = Layer167.effect(
24935
25009
  _RedeemLiveTicketService,
@@ -24943,8 +25017,8 @@ var RedeemLiveTicketService = class _RedeemLiveTicketService extends Context212.
24943
25017
  execute: Effect265.fn("RedeemLiveTicketService.execute")(function* (input) {
24944
25018
  const parts = parseCredential("pct", input.ticket);
24945
25019
  if (!parts) return { kind: "refused" };
24946
- const now = DateTime30.formatIso(
24947
- DateTime30.makeUnsafe(yield* clock.currentTimeMillis)
25020
+ const now = DateTime31.formatIso(
25021
+ DateTime31.makeUnsafe(yield* clock.currentTimeMillis)
24948
25022
  );
24949
25023
  const { tickets, ticket } = liveTicketTaken(
24950
25024
  liveTickets.read(),
@@ -27313,7 +27387,7 @@ var ReadWorktreeSummaryService = class _ReadWorktreeSummaryService extends Conte
27313
27387
  };
27314
27388
 
27315
27389
  // packages/git-actions/src/services/accept-git-action-service.ts
27316
- import { Effect as Effect329, Context as Context285, Layer as Layer232, Clock as Clock25, DateTime as DateTime31 } from "effect";
27390
+ import { Effect as Effect329, Context as Context285, Layer as Layer232, Clock as Clock25, DateTime as DateTime32 } from "effect";
27317
27391
 
27318
27392
  // packages/git-actions/src/rules/git-action-problem.ts
27319
27393
  function hunkRangeIsOrdered(intent) {
@@ -27468,8 +27542,8 @@ var AcceptGitActionService = class _AcceptGitActionService extends Context285.Se
27468
27542
  state: "running",
27469
27543
  progress: [],
27470
27544
  refreshRequired: false,
27471
- acceptedAt: DateTime31.formatIso(
27472
- DateTime31.makeUnsafe(yield* clockCapability.currentTimeMillis)
27545
+ acceptedAt: DateTime32.formatIso(
27546
+ DateTime32.makeUnsafe(yield* clockCapability.currentTimeMillis)
27473
27547
  )
27474
27548
  };
27475
27549
  yield* gitActionReceiptsCapability.insert(receipt);
@@ -27611,7 +27685,7 @@ var CaptureCommitDraftService = class _CaptureCommitDraftService extends Context
27611
27685
  };
27612
27686
 
27613
27687
  // packages/git-actions/src/services/dismiss-interrupted-git-action-service.ts
27614
- import { Effect as Effect331, Context as Context287, Layer as Layer234, Clock as Clock26, DateTime as DateTime32 } from "effect";
27688
+ import { Effect as Effect331, Context as Context287, Layer as Layer234, Clock as Clock26, DateTime as DateTime33 } from "effect";
27615
27689
  var DismissInterruptedGitActionService = class _DismissInterruptedGitActionService extends Context287.Service()("@porcelain/git-actions/DismissInterruptedGitActionService") {
27616
27690
  static layer = Layer234.effect(
27617
27691
  _DismissInterruptedGitActionService,
@@ -27635,8 +27709,8 @@ var DismissInterruptedGitActionService = class _DismissInterruptedGitActionServi
27635
27709
  };
27636
27710
  const dismissed = {
27637
27711
  ...receipt,
27638
- dismissedAt: DateTime32.formatIso(
27639
- DateTime32.makeUnsafe(yield* clockCapability.currentTimeMillis)
27712
+ dismissedAt: DateTime33.formatIso(
27713
+ DateTime33.makeUnsafe(yield* clockCapability.currentTimeMillis)
27640
27714
  )
27641
27715
  };
27642
27716
  yield* gitActionReceiptsCapability.save(dismissed);
@@ -27652,7 +27726,7 @@ var DismissInterruptedGitActionService = class _DismissInterruptedGitActionServi
27652
27726
  };
27653
27727
 
27654
27728
  // packages/git-actions/src/services/expire-git-action-receipts-service.ts
27655
- import { Effect as Effect332, Context as Context288, Layer as Layer235, Clock as Clock27, DateTime as DateTime33 } from "effect";
27729
+ import { Effect as Effect332, Context as Context288, Layer as Layer235, Clock as Clock27, DateTime as DateTime34 } from "effect";
27656
27730
 
27657
27731
  // packages/git-actions/src/rules/expired-receipts.ts
27658
27732
  function expiredReceipts(finished, now, retentionMs) {
@@ -27673,8 +27747,8 @@ var ExpireGitActionReceiptsService = class _ExpireGitActionReceiptsService exten
27673
27747
  execute: Effect332.fn("ExpireGitActionReceiptsService.execute")(function* (input) {
27674
27748
  const expired2 = expiredReceipts(
27675
27749
  yield* gitActionReceiptsCapability.finished(),
27676
- DateTime33.formatIso(
27677
- DateTime33.makeUnsafe(yield* clockCapability.currentTimeMillis)
27750
+ DateTime34.formatIso(
27751
+ DateTime34.makeUnsafe(yield* clockCapability.currentTimeMillis)
27678
27752
  ),
27679
27753
  optionsCapability.retentionMs
27680
27754
  );
@@ -27694,7 +27768,7 @@ var ExpireGitActionReceiptsService = class _ExpireGitActionReceiptsService exten
27694
27768
  };
27695
27769
 
27696
27770
  // packages/git-actions/src/services/finish-git-action-service.ts
27697
- import { Effect as Effect333, Context as Context289, Layer as Layer236, Clock as Clock28, DateTime as DateTime34 } from "effect";
27771
+ import { Effect as Effect333, Context as Context289, Layer as Layer236, Clock as Clock28, DateTime as DateTime35 } from "effect";
27698
27772
  var FinishGitActionService = class _FinishGitActionService extends Context289.Service()("@porcelain/git-actions/FinishGitActionService") {
27699
27773
  static layer = Layer236.effect(
27700
27774
  _FinishGitActionService,
@@ -27715,8 +27789,8 @@ var FinishGitActionService = class _FinishGitActionService extends Context289.Se
27715
27789
  message: outcome.message,
27716
27790
  result: outcome.result,
27717
27791
  refreshRequired: outcome.refreshRequired,
27718
- finishedAt: DateTime34.formatIso(
27719
- DateTime34.makeUnsafe(yield* clockCapability.currentTimeMillis)
27792
+ finishedAt: DateTime35.formatIso(
27793
+ DateTime35.makeUnsafe(yield* clockCapability.currentTimeMillis)
27720
27794
  )
27721
27795
  };
27722
27796
  yield* gitActionReceiptsCapability.save(finished);
@@ -27792,7 +27866,7 @@ var GenerateCommitDraftService = class _GenerateCommitDraftService extends Conte
27792
27866
  };
27793
27867
 
27794
27868
  // packages/git-actions/src/services/interrupt-git-action-service.ts
27795
- import { Effect as Effect335, Context as Context291, Layer as Layer238, Clock as Clock29, DateTime as DateTime35 } from "effect";
27869
+ import { Effect as Effect335, Context as Context291, Layer as Layer238, Clock as Clock29, DateTime as DateTime36 } from "effect";
27796
27870
 
27797
27871
  // packages/git-actions/src/rules/interrupted-receipt.ts
27798
27872
  function interruptedReceipt(receipt, finishedAt) {
@@ -27821,8 +27895,8 @@ var InterruptGitActionService = class _InterruptGitActionService extends Context
27821
27895
  if (current.state !== "running") return gitActionReceiptView(current);
27822
27896
  const interrupted = interruptedReceipt(
27823
27897
  current,
27824
- DateTime35.formatIso(
27825
- DateTime35.makeUnsafe(yield* clockCapability.currentTimeMillis)
27898
+ DateTime36.formatIso(
27899
+ DateTime36.makeUnsafe(yield* clockCapability.currentTimeMillis)
27826
27900
  )
27827
27901
  );
27828
27902
  yield* gitActionReceiptsCapability.save(interrupted);
@@ -27995,7 +28069,7 @@ var RunGitActionService = class _RunGitActionService extends Context296.Service(
27995
28069
  };
27996
28070
 
27997
28071
  // packages/git-actions/src/services/begin-git-action-service.ts
27998
- import { Clock as Clock30, Context as Context297, DateTime as DateTime36, Effect as Effect341, Layer as Layer244 } from "effect";
28072
+ import { Clock as Clock30, Context as Context297, DateTime as DateTime37, Effect as Effect341, Layer as Layer244 } from "effect";
27999
28073
  var BeginGitActionService = class _BeginGitActionService extends Context297.Service()("@porcelain/git-actions/BeginGitActionService") {
28000
28074
  static layer = Layer244.effect(
28001
28075
  _BeginGitActionService,
@@ -28008,8 +28082,8 @@ var BeginGitActionService = class _BeginGitActionService extends Context297.Serv
28008
28082
  if (!receipt || receipt.requestId !== input.requestId || receipt.state !== "running" || receipt.acceptedAt !== input.acceptedAt)
28009
28083
  return { kind: "unavailable" };
28010
28084
  if (!(yield* receipts.claimExecution(input))) {
28011
- const finishedAt = DateTime36.formatIso(
28012
- DateTime36.makeUnsafe(yield* clock.currentTimeMillis)
28085
+ const finishedAt = DateTime37.formatIso(
28086
+ DateTime37.makeUnsafe(yield* clock.currentTimeMillis)
28013
28087
  );
28014
28088
  yield* receipts.save(interruptedReceipt(receipt, finishedAt));
28015
28089
  return { kind: "unavailable" };
@@ -28404,7 +28478,7 @@ var SelectGitHubAccountService = class _SelectGitHubAccountService extends Conte
28404
28478
  };
28405
28479
 
28406
28480
  // packages/reviews/src/services/set-reviewed-files-service.ts
28407
- import { Effect as Effect352, Context as Context308, Layer as Layer255, Clock as Clock31, DateTime as DateTime37 } from "effect";
28481
+ import { Effect as Effect352, Context as Context308, Layer as Layer255, Clock as Clock31, DateTime as DateTime38 } from "effect";
28408
28482
  var SetReviewedFilesService = class _SetReviewedFilesService extends Context308.Service()("@porcelain/reviews/SetReviewedFilesService") {
28409
28483
  static layer = Layer255.effect(
28410
28484
  _SetReviewedFilesService,
@@ -28429,8 +28503,8 @@ var SetReviewedFilesService = class _SetReviewedFilesService extends Context308.
28429
28503
  new Set(input.changes.map((change2) => change2.path))
28430
28504
  );
28431
28505
  yield* reviewedFilesCapability.remove({ ...key, paths: evicted });
28432
- const reviewedAt = DateTime37.formatIso(
28433
- DateTime37.makeUnsafe(yield* clockCapability.currentTimeMillis)
28506
+ const reviewedAt = DateTime38.formatIso(
28507
+ DateTime38.makeUnsafe(yield* clockCapability.currentTimeMillis)
28434
28508
  );
28435
28509
  yield* reviewedFilesCapability.save({
28436
28510
  ...key,
@@ -0,0 +1 @@
1
+ import{Wo as e,ts as t}from"./access-Be5-I3uN.js";import{t as n}from"./connected-workspace-bG1owcgt.js";var r=e(),i=t(),a=()=>{let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{notice:`not-found`}),e[0]=t):t=e[0],t};export{a as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workspace-error-BtARcbMJ.js";var t=e;export{t as errorComponent};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Jo as t,Ms as n,Wo as r,kn as i,ts as a}from"./access-WT1uwdZk.js";import{o}from"./index-Bk8Ig0Ne.js";import{t as s}from"./useRouterState-DCsGUMtp.js";import{b as c,d as l,fn as u,h as d,y as f}from"./settings-page-RYnO3e6i.js";import{t as p,y as m}from"./desktop-actions-WJQHB849.js";var h=e(n(),1),g=r(),_=a();function v(e){let t=(0,g.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(u,{}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)(m,{children:n})]}),t[1]=n,t[2]=i),i}function y(e){let t=(0,g.c)(6),{children:n}=e,[r,a]=(0,h.useState)(!0),o=i(),s;t[0]===o?s=t[1]:(s=o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f,{connection:o}),(0,_.jsx)(l,{connection:o}),(0,_.jsx)(c,{connection:o})]}),t[0]=o,t[1]=s);let u;return t[2]!==n||t[3]!==r||t[4]!==s?(u=(0,_.jsx)(v,{children:(0,_.jsxs)(d,{open:r,onOpenChange:a,children:[n,s]})}),t[2]=n,t[3]=r,t[4]=s,t[5]=u):u=t[5],u}function b(){let e=(0,g.c)(4),n=i(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:x},e[0]=r):r=e[0];let a=s(r),c;return e[1]!==n||e[2]!==a?(c=n?(0,_.jsxs)(y,{children:[(0,_.jsx)(o,{}),(0,_.jsx)(p,{connection:n,empty:a})]}):(0,_.jsx)(t,{to:`/pair`,replace:!0}),e[1]=n,e[2]=a,e[3]=c):c=e[3],c}function x(e){return e.location.pathname===`/`}export{b as component};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Jo as t,Ms as n,Wo as r,kn as i,ts as a}from"./access-Be5-I3uN.js";import{o}from"./index-jwdWY-Oe.js";import{t as s}from"./useRouterState-GOqQRnzK.js";import{b as c,d as l,fn as u,h as d,y as f}from"./settings-page-_25QMUsD.js";import{b as p,t as m}from"./desktop-actions-BF1FmtLQ.js";var h=e(n(),1),g=r(),_=a();function v(e){let t=(0,g.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(u,{}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,_.jsxs)(_.Fragment,{children:[r,(0,_.jsx)(p,{children:n})]}),t[1]=n,t[2]=i),i}function y(e){let t=(0,g.c)(6),{children:n}=e,[r,a]=(0,h.useState)(!0),o=i(),s;t[0]===o?s=t[1]:(s=o&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f,{connection:o}),(0,_.jsx)(l,{connection:o}),(0,_.jsx)(c,{connection:o})]}),t[0]=o,t[1]=s);let u;return t[2]!==n||t[3]!==r||t[4]!==s?(u=(0,_.jsx)(v,{children:(0,_.jsxs)(d,{open:r,onOpenChange:a,children:[n,s]})}),t[2]=n,t[3]=r,t[4]=s,t[5]=u):u=t[5],u}function b(){let e=(0,g.c)(4),n=i(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:x},e[0]=r):r=e[0];let a=s(r),c;return e[1]!==n||e[2]!==a?(c=n?(0,_.jsxs)(y,{children:[(0,_.jsx)(o,{}),(0,_.jsx)(m,{connection:n,empty:a})]}):(0,_.jsx)(t,{to:`/pair`,replace:!0}),e[1]=n,e[2]=a,e[3]=c):c=e[3],c}function x(e){return e.location.pathname===`/`}export{b as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workspace-error-BtARcbMJ.js";var t=e;export{t as errorComponent};
@@ -1 +1 @@
1
- import{Jo as e,On as t,Wo as n,ai as r,ci as i,ts as a}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{t as o}from"./useRouterState-DCsGUMtp.js";import{it as s}from"./settings-page-RYnO3e6i.js";import{t as c}from"./connected-workspace-DcS6e5zB.js";import{i as l}from"./index-Bk8Ig0Ne.js";var u=n(),d=a();function f(){let n=(0,u.c)(18),a=l.useSearch(),f,m;n[0]===a?(f=n[1],m=n[2]):({worktree:m,...f}=a,n[0]=a,n[1]=f,n[2]=m);let h;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(h={select:p},n[3]=h):h=n[3];let g=o(h),{connection:_}=t(),v=s(_),y;n[4]!==v||n[5]!==m?(y=m===void 0?i(v,r(v)?.id):i(v,m),n[4]=v,n[5]=m,n[6]=y):y=n[6];let b=y;if(b&&g){let t;n[7]!==b.projectId||n[8]!==b.worktree.id?(t={projectId:b.projectId,worktreeId:b.worktree.id},n[7]=b.projectId,n[8]=b.worktree.id,n[9]=t):t=n[9];let r;n[10]!==f||n[11]!==m?(r=m===void 0?{}:f,n[10]=f,n[11]=m,n[12]=r):r=n[12];let i;return n[13]!==t||n[14]!==r?(i=(0,d.jsx)(e,{to:`/$projectId/$worktreeId`,params:t,search:r,replace:!0}),n[13]=t,n[14]=r,n[15]=i):i=n[15],i}let x=m!==void 0&&g?`missing-worktree`:void 0,S;return n[16]===x?S=n[17]:(S=(0,d.jsx)(c,{notice:x}),n[16]=x,n[17]=S),S}function p(e){return e.status===`idle`&&e.location.pathname===`/`}export{f as component};
1
+ import{Jo as e,On as t,Wo as n,ai as r,ci as i,ts as a}from"./access-Be5-I3uN.js";import"./edit-file-C2FNFMOI.js";import{t as o}from"./useRouterState-GOqQRnzK.js";import{it as s}from"./settings-page-_25QMUsD.js";import{t as c}from"./connected-workspace-bG1owcgt.js";import{i as l}from"./index-jwdWY-Oe.js";var u=n(),d=a();function f(){let n=(0,u.c)(18),a=l.useSearch(),f,m;n[0]===a?(f=n[1],m=n[2]):({worktree:m,...f}=a,n[0]=a,n[1]=f,n[2]=m);let h;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(h={select:p},n[3]=h):h=n[3];let g=o(h),{connection:_}=t(),v=s(_),y;n[4]!==v||n[5]!==m?(y=m===void 0?i(v,r(v)?.id):i(v,m),n[4]=v,n[5]=m,n[6]=y):y=n[6];let b=y;if(b&&g){let t;n[7]!==b.projectId||n[8]!==b.worktree.id?(t={projectId:b.projectId,worktreeId:b.worktree.id},n[7]=b.projectId,n[8]=b.worktree.id,n[9]=t):t=n[9];let r;n[10]!==f||n[11]!==m?(r=m===void 0?{}:f,n[10]=f,n[11]=m,n[12]=r):r=n[12];let i;return n[13]!==t||n[14]!==r?(i=(0,d.jsx)(e,{to:`/$projectId/$worktreeId`,params:t,search:r,replace:!0}),n[13]=t,n[14]=r,n[15]=i):i=n[15],i}let x=m!==void 0&&g?`missing-worktree`:void 0,S;return n[16]===x?S=n[17]:(S=(0,d.jsx)(c,{notice:x}),n[16]=x,n[17]=S),S}function p(e){return e.status===`idle`&&e.location.pathname===`/`}export{f as component};
@@ -1 +1 @@
1
- import{On as e,Wo as t,ts as n}from"./access-WT1uwdZk.js";import{t as r}from"./useMatch-Dht53RCg.js";import{it as i,r as a,t as o}from"./settings-page-RYnO3e6i.js";import{n as s,t as c}from"./connected-workspace-DcS6e5zB.js";import{n as l}from"./index-Bk8Ig0Ne.js";var u=t(),d=n();function f(){let t=(0,u.c)(5),{section:n}=l.useParams(),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f={from:`/_paired/settings/$section/$environmentId`,shouldThrow:!1},t[0]=f):f=t[0];let p=r(f),m=a.some(e=>e.id===n)&&(p===void 0||n===`computers`),{connection:h}=e(),{environment:g}=i(h);if(s(m?g.custom?`Settings · ${g.name}`:`Settings`:`Porcelain`),!m){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsx)(c,{notice:`not-found`}),t[1]=e):e=t[1],e}let _=p?.params.environmentId,v;return t[2]!==n||t[3]!==_?(v=(0,d.jsx)(c,{settingsOpen:!0,children:(0,d.jsx)(o,{section:n,environmentId:_})}),t[2]=n,t[3]=_,t[4]=v):v=t[4],v}export{f as component};
1
+ import{On as e,Wo as t,ts as n}from"./access-Be5-I3uN.js";import{t as r}from"./useMatch-BNfVF2UU.js";import{it as i,r as a,t as o}from"./settings-page-_25QMUsD.js";import{n as s,t as c}from"./connected-workspace-bG1owcgt.js";import{n as l}from"./index-jwdWY-Oe.js";var u=t(),d=n();function f(){let t=(0,u.c)(5),{section:n}=l.useParams(),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f={from:`/_paired/settings/$section/$environmentId`,shouldThrow:!1},t[0]=f):f=t[0];let p=r(f),m=a.some(e=>e.id===n)&&(p===void 0||n===`computers`),{connection:h}=e(),{environment:g}=i(h);if(s(m?g.custom?`Settings · ${g.name}`:`Settings`:`Porcelain`),!m){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsx)(c,{notice:`not-found`}),t[1]=e):e=t[1],e}let _=p?.params.environmentId,v;return t[2]!==n||t[3]!==_?(v=(0,d.jsx)(c,{settingsOpen:!0,children:(0,d.jsx)(o,{section:n,environmentId:_})}),t[2]=n,t[3]=_,t[4]=v):v=t[4],v}export{f as component};
@@ -0,0 +1 @@
1
+ import{An as e,Jo as t,Wo as n,ts as r}from"./access-Be5-I3uN.js";import"./edit-file-C2FNFMOI.js";import"./settings-page-_25QMUsD.js";import"./connected-workspace-bG1owcgt.js";import"./workspace-pending-CF3GKXTj.js";import{t as i}from"./index-jwdWY-Oe.js";var a=n(),o=r();function s(){let n=(0,a.c)(9),{environmentId:r,projectId:s,worktreeId:c}=i.useParams(),l=i.useSearch();e(r);{let e;return n[0]!==l||n[1]!==c?(e=(0,o.jsx)(t,{to:`/`,search:{...l,worktree:c},replace:!0}),n[0]=l,n[1]=c,n[2]=e):e=n[2],e}}export{s as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workspace-error-BtARcbMJ.js";var t=e;export{t as errorComponent};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workspace-error-BtARcbMJ.js";var t=e;export{t as errorComponent};
@@ -1 +1 @@
1
- import{Jo as e,On as t,Wo as n,ci as r,ts as i}from"./access-WT1uwdZk.js";import"./edit-file-CG3WhqLS.js";import{it as a}from"./settings-page-RYnO3e6i.js";import{t as o}from"./connected-workspace-DcS6e5zB.js";import{r as s}from"./index-Bk8Ig0Ne.js";var c=n(),l=i();function u(){let n=(0,c.c)(10),{projectId:i,worktreeId:u}=s.useParams(),d=s.useSearch(),{connection:f}=t(),p=a(f),m;n[0]!==p||n[1]!==u?(m=r(p,u),n[0]=p,n[1]=u,n[2]=m):m=n[2];let h=m;if(h?.projectId!==i){let t;return n[3]!==d||n[4]!==u?(t=(0,l.jsx)(e,{to:`/`,search:{...d,worktree:u},replace:!0}),n[3]=d,n[4]=u,n[5]=t):t=n[5],t}let g;return n[6]!==p||n[7]!==d||n[8]!==h?(g=(0,l.jsx)(o,{review:{selection:h,search:d,inventory:p}}),n[6]=p,n[7]=d,n[8]=h,n[9]=g):g=n[9],g}export{u as component};
1
+ import{Jo as e,On as t,Wo as n,ci as r,ts as i}from"./access-Be5-I3uN.js";import"./edit-file-C2FNFMOI.js";import{it as a}from"./settings-page-_25QMUsD.js";import{t as o}from"./connected-workspace-bG1owcgt.js";import{r as s}from"./index-jwdWY-Oe.js";var c=n(),l=i();function u(){let n=(0,c.c)(10),{projectId:i,worktreeId:u}=s.useParams(),d=s.useSearch(),{connection:f}=t(),p=a(f),m;n[0]!==p||n[1]!==u?(m=r(p,u),n[0]=p,n[1]=u,n[2]=m):m=n[2];let h=m;if(h?.projectId!==i){let t;return n[3]!==d||n[4]!==u?(t=(0,l.jsx)(e,{to:`/`,search:{...d,worktree:u},replace:!0}),n[3]=d,n[4]=u,n[5]=t):t=n[5],t}let g;return n[6]!==p||n[7]!==d||n[8]!==h?(g=(0,l.jsx)(o,{review:{selection:h,search:d,inventory:p}}),n[6]=p,n[7]=d,n[8]=h,n[9]=g):g=n[9],g}export{u as component};