@sealant/mend 0.36.0-next.652 → 0.36.0-next.663

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 (92) hide show
  1. package/dist/{chunk-CXW54BC3.js → chunk-VOP6USOZ.js} +103 -77
  2. package/dist/{dashboard-KYXY2JIF.js → dashboard-CEJN6IOO.js} +1 -1
  3. package/dist/main.js +707 -116
  4. package/man/mend-accounts.1 +1 -1
  5. package/man/mend-adopt.1 +1 -1
  6. package/man/mend-attach.1 +1 -1
  7. package/man/mend-codex.1 +1 -1
  8. package/man/mend-completions.1 +1 -1
  9. package/man/mend-connect-pi.1 +1 -1
  10. package/man/mend-connect.1 +1 -1
  11. package/man/mend-continue.1 +1 -1
  12. package/man/mend-doctor.1 +1 -1
  13. package/man/mend-dotfiles-repo.1 +1 -1
  14. package/man/mend-dotfiles-sync.1 +1 -1
  15. package/man/mend-dotfiles.1 +1 -1
  16. package/man/mend-env-cluster.1 +1 -1
  17. package/man/mend-env-load.1 +1 -1
  18. package/man/mend-env-show.1 +1 -1
  19. package/man/mend-folder-create.1 +1 -1
  20. package/man/mend-folder-list.1 +1 -1
  21. package/man/mend-folder-push.1 +1 -1
  22. package/man/mend-folder-rm.1 +1 -1
  23. package/man/mend-git-author.1 +1 -1
  24. package/man/mend-help.1 +1 -1
  25. package/man/mend-invite.1 +1 -1
  26. package/man/mend-keys-init.1 +1 -1
  27. package/man/mend-keys-mode.1 +1 -1
  28. package/man/mend-keys-share.1 +1 -1
  29. package/man/mend-keys-show.1 +1 -1
  30. package/man/mend-land.1 +1 -1
  31. package/man/mend-login.1 +1 -1
  32. package/man/mend-logout.1 +1 -1
  33. package/man/mend-logs.1 +26 -0
  34. package/man/mend-man.1 +1 -1
  35. package/man/mend-members.1 +1 -1
  36. package/man/mend-memory-import.1 +1 -1
  37. package/man/mend-memory-rm.1 +1 -1
  38. package/man/mend-memory-show.1 +1 -1
  39. package/man/mend-memory.1 +1 -1
  40. package/man/mend-models.1 +1 -1
  41. package/man/mend-operator-exposure.1 +1 -1
  42. package/man/mend-operator-gate.1 +1 -1
  43. package/man/mend-operator-grant-owner.1 +1 -1
  44. package/man/mend-operator-org-create.1 +1 -1
  45. package/man/mend-operator-org-invite-owner.1 +1 -1
  46. package/man/mend-operator-org-list.1 +1 -1
  47. package/man/mend-operator-org-rename.1 +1 -1
  48. package/man/mend-operator-reset-link.1 +1 -1
  49. package/man/mend-pair.1 +1 -1
  50. package/man/mend-projects.1 +10 -2
  51. package/man/mend-pull.1 +1 -1
  52. package/man/mend-refresh.1 +1 -1
  53. package/man/mend-rejoin.1 +1 -1
  54. package/man/mend-resume.1 +1 -1
  55. package/man/mend-run.1 +35 -4
  56. package/man/mend-secrets-add.1 +1 -1
  57. package/man/mend-secrets-rm.1 +1 -1
  58. package/man/mend-secrets.1 +1 -1
  59. package/man/mend-server-logs.1 +1 -1
  60. package/man/mend-server-restart.1 +1 -1
  61. package/man/mend-server-setup.1 +1 -1
  62. package/man/mend-server-start.1 +1 -1
  63. package/man/mend-server-status.1 +1 -1
  64. package/man/mend-server-stop.1 +1 -1
  65. package/man/mend-server-upgrade.1 +1 -1
  66. package/man/mend-server.1 +1 -1
  67. package/man/mend-service-add.1 +1 -1
  68. package/man/mend-service-connect.1 +1 -1
  69. package/man/mend-service-init.1 +1 -1
  70. package/man/mend-service-list.1 +1 -1
  71. package/man/mend-service-logs.1 +3 -1
  72. package/man/mend-service-restart.1 +1 -1
  73. package/man/mend-service-run.1 +8 -3
  74. package/man/mend-service-stop.1 +1 -1
  75. package/man/mend-session-share.1 +1 -1
  76. package/man/mend-sessions.1 +1 -1
  77. package/man/mend-shell.1 +1 -1
  78. package/man/mend-skills-push.1 +1 -1
  79. package/man/mend-skills.1 +1 -1
  80. package/man/mend-snake.1 +1 -1
  81. package/man/mend-ssh-setup.1 +1 -1
  82. package/man/mend-ssh.1 +1 -1
  83. package/man/mend-stop.1 +1 -1
  84. package/man/mend-ui.1 +1 -1
  85. package/man/mend-uninstall.1 +1 -1
  86. package/man/mend-version.1 +1 -1
  87. package/man/mend-wait.1 +28 -0
  88. package/man/mend-workspace-replace.1 +1 -1
  89. package/man/mend-worktrees-rm.1 +1 -1
  90. package/man/mend-worktrees.1 +1 -1
  91. package/man/mend.1 +8 -2
  92. package/package.json +2 -2
@@ -27943,6 +27943,83 @@ var FollowUp = class extends Schema_exports.Class("FollowUp")({
27943
27943
  }) {
27944
27944
  };
27945
27945
 
27946
+ // ../../packages/domain/src/workbench/harness-layout.ts
27947
+ var HarnessLayout = Schema_exports.Literals(["person", "shared"]);
27948
+ var HarnessLayoutSource = Schema_exports.Literals([
27949
+ "worktree",
27950
+ "operator",
27951
+ "capability",
27952
+ "flag",
27953
+ "fallback"
27954
+ ]);
27955
+ var LINUX_UID_RANGE = { first: 4e4, last: 49999 };
27956
+ var LINUX_UID_FIRST = LINUX_UID_RANGE.first + 1;
27957
+ var MEND_GROUP = { name: "mend", gid: LINUX_UID_RANGE.first };
27958
+ var LinuxIdentity = class extends Schema_exports.Class("LinuxIdentity")({
27959
+ /** The account, Mend's user id: what names the person's saved directory. */
27960
+ accountId: Schema_exports.String,
27961
+ /** Login name (`linuxLoginNameOf`). */
27962
+ name: Schema_exports.String,
27963
+ uid: Schema_exports.Number
27964
+ }) {
27965
+ };
27966
+ var WorkspaceRetirementStopKind = Schema_exports.Literals([
27967
+ "terminal",
27968
+ "shell",
27969
+ "service",
27970
+ "turn",
27971
+ "process",
27972
+ "container",
27973
+ "unchecked"
27974
+ ]);
27975
+ var WorkspaceRetirementStop = class extends Schema_exports.Class(
27976
+ "WorkspaceRetirementStop"
27977
+ )({
27978
+ kind: WorkspaceRetirementStopKind,
27979
+ /**
27980
+ * What it is, as observed: a session's label, a Service's name, a process's command name and
27981
+ * pid, a container's name, or why something could not be checked. Empty for a process or a
27982
+ * container when the viewer is not the change's owner: they see its kind only.
27983
+ */
27984
+ label: Schema_exports.String
27985
+ }) {
27986
+ };
27987
+ var WorkspaceRetirementState = Schema_exports.Literals(["marked", "retiring"]);
27988
+ var WorkspaceRetirement = class extends Schema_exports.Class("WorkspaceRetirement")({
27989
+ state: WorkspaceRetirementState,
27990
+ /** The executor started before Mend 0.36 (no layout recorded for its launch). */
27991
+ preRelease: Schema_exports.Boolean,
27992
+ /** The account whose launch made the executor: the only one whose joins and turns it takes. */
27993
+ launcher: Schema_exports.NullOr(Schema_exports.String),
27994
+ /** What would stop if it were replaced now; empty when nothing would. */
27995
+ stops: Schema_exports.Array(WorkspaceRetirementStop),
27996
+ /** Why the last automatic replacement did not go ahead, as observed; null when none was tried. */
27997
+ reason: Schema_exports.NullOr(Schema_exports.String),
27998
+ /**
27999
+ * When what runs in the executor was last checked beyond Mend's own records (processes Mend did
28000
+ * not start, the sidecar's containers); null when only Mend's records were read.
28001
+ */
28002
+ checkedAt: Schema_exports.NullOr(Timestamp),
28003
+ /**
28004
+ * What the viewer was shown, as one token: "Replace this workspace now" names it, so Mend ends
28005
+ * nothing that was not listed (the replacement is refused if more would stop now).
28006
+ */
28007
+ fingerprint: Schema_exports.String,
28008
+ /** The viewer may replace it now: they own the change, and no agent turn is in flight. */
28009
+ canReplace: Schema_exports.Boolean
28010
+ }) {
28011
+ };
28012
+ var PreReleaseMemory = class extends Schema_exports.Class("PreReleaseMemory")({
28013
+ /** The capture it read, by its place on the worktree's chain. */
28014
+ captureN: Schema_exports.Number,
28015
+ provisional: Schema_exports.Boolean,
28016
+ creditedTo: Schema_exports.NullOr(Schema_exports.String),
28017
+ decidedBy: Schema_exports.Literals(["home-record", "only-person", "nobody", "nothing"]),
28018
+ /** Memory paths credited to nobody: two or more people's sessions shared the home. */
28019
+ notCredited: Schema_exports.Array(Schema_exports.String)
28020
+ }) {
28021
+ };
28022
+
27946
28023
  // ../../packages/domain/src/workbench/mount.ts
27947
28024
  var ProjectMount = class extends Schema_exports.Class("ProjectMount")({
27948
28025
  id: ProjectMountId,
@@ -28313,6 +28390,13 @@ var HotWorkspace = class extends Schema_exports.Class("HotWorkspace")({
28313
28390
  error: Schema_exports.NullOr(Schema_exports.String),
28314
28391
  /** Hash of every create-time-fixed input; claims require an exact match. */
28315
28392
  fingerprint: Schema_exports.String,
28393
+ /**
28394
+ * The harness layout the standby booted in (docs/adr/0016): `person` booted with its owner's
28395
+ * capture owner map and their logins in their own home, so it serves only that owner's launch
28396
+ * decided `person`; `shared` serves only a launch decided `shared`. Rows from before it are
28397
+ * `shared`.
28398
+ */
28399
+ harnessLayout: HarnessLayout,
28316
28400
  /** Worktree directory name inside the project's store (derived from `id`). */
28317
28401
  worktree: Schema_exports.NullOr(Schema_exports.String),
28318
28402
  /** The pre-created session branch the worktree is on. */
@@ -28386,83 +28470,6 @@ var DEFAULT_NOTIFICATION_SETTINGS = new NotificationSettings({
28386
28470
  });
28387
28471
  var SlackThreadReach = Schema_exports.Literals(["replies", "status", "none"]);
28388
28472
 
28389
- // ../../packages/domain/src/workbench/harness-layout.ts
28390
- var HarnessLayout = Schema_exports.Literals(["person", "shared"]);
28391
- var HarnessLayoutSource = Schema_exports.Literals([
28392
- "worktree",
28393
- "operator",
28394
- "capability",
28395
- "flag",
28396
- "fallback"
28397
- ]);
28398
- var LINUX_UID_RANGE = { first: 4e4, last: 49999 };
28399
- var LINUX_UID_FIRST = LINUX_UID_RANGE.first + 1;
28400
- var MEND_GROUP = { name: "mend", gid: LINUX_UID_RANGE.first };
28401
- var LinuxIdentity = class extends Schema_exports.Class("LinuxIdentity")({
28402
- /** The account, Mend's user id: what names the person's saved directory. */
28403
- accountId: Schema_exports.String,
28404
- /** Login name (`linuxLoginNameOf`). */
28405
- name: Schema_exports.String,
28406
- uid: Schema_exports.Number
28407
- }) {
28408
- };
28409
- var WorkspaceRetirementStopKind = Schema_exports.Literals([
28410
- "terminal",
28411
- "shell",
28412
- "service",
28413
- "turn",
28414
- "process",
28415
- "container",
28416
- "unchecked"
28417
- ]);
28418
- var WorkspaceRetirementStop = class extends Schema_exports.Class(
28419
- "WorkspaceRetirementStop"
28420
- )({
28421
- kind: WorkspaceRetirementStopKind,
28422
- /**
28423
- * What it is, as observed: a session's label, a Service's name, a process's command name and
28424
- * pid, a container's name, or why something could not be checked. Empty for a process or a
28425
- * container when the viewer is not the change's owner: they see its kind only.
28426
- */
28427
- label: Schema_exports.String
28428
- }) {
28429
- };
28430
- var WorkspaceRetirementState = Schema_exports.Literals(["marked", "retiring"]);
28431
- var WorkspaceRetirement = class extends Schema_exports.Class("WorkspaceRetirement")({
28432
- state: WorkspaceRetirementState,
28433
- /** The executor started before Mend 0.36 (no layout recorded for its launch). */
28434
- preRelease: Schema_exports.Boolean,
28435
- /** The account whose launch made the executor: the only one whose joins and turns it takes. */
28436
- launcher: Schema_exports.NullOr(Schema_exports.String),
28437
- /** What would stop if it were replaced now; empty when nothing would. */
28438
- stops: Schema_exports.Array(WorkspaceRetirementStop),
28439
- /** Why the last automatic replacement did not go ahead, as observed; null when none was tried. */
28440
- reason: Schema_exports.NullOr(Schema_exports.String),
28441
- /**
28442
- * When what runs in the executor was last checked beyond Mend's own records (processes Mend did
28443
- * not start, the sidecar's containers); null when only Mend's records were read.
28444
- */
28445
- checkedAt: Schema_exports.NullOr(Timestamp),
28446
- /**
28447
- * What the viewer was shown, as one token: "Replace this workspace now" names it, so Mend ends
28448
- * nothing that was not listed (the replacement is refused if more would stop now).
28449
- */
28450
- fingerprint: Schema_exports.String,
28451
- /** The viewer may replace it now: they own the change, and no agent turn is in flight. */
28452
- canReplace: Schema_exports.Boolean
28453
- }) {
28454
- };
28455
- var PreReleaseMemory = class extends Schema_exports.Class("PreReleaseMemory")({
28456
- /** The capture it read, by its place on the worktree's chain. */
28457
- captureN: Schema_exports.Number,
28458
- provisional: Schema_exports.Boolean,
28459
- creditedTo: Schema_exports.NullOr(Schema_exports.String),
28460
- decidedBy: Schema_exports.Literals(["home-record", "only-person", "nobody", "nothing"]),
28461
- /** Memory paths credited to nobody: two or more people's sessions shared the home. */
28462
- notCredited: Schema_exports.Array(Schema_exports.String)
28463
- }) {
28464
- };
28465
-
28466
28473
  // ../../packages/domain/src/workbench/host-user-namespaces.ts
28467
28474
  var HOST_USER_NAMESPACE_FILES = [
28468
28475
  "/proc/sys/kernel/apparmor_restrict_unprivileged_userns",
@@ -29362,6 +29369,7 @@ var LAUNCH_ERROR = {
29362
29369
  foreground: false,
29363
29370
  noTunnel: false,
29364
29371
  autoLand: null,
29372
+ json: false,
29365
29373
  custom: []
29366
29374
  };
29367
29375
  var parseLaunchArgs = (args2) => {
@@ -29382,6 +29390,7 @@ var parseLaunchArgs = (args2) => {
29382
29390
  let noTunnel = false;
29383
29391
  let land = false;
29384
29392
  let noLand = false;
29393
+ let json2 = false;
29385
29394
  for (let index2 = 0; index2 < flagArgs.length; index2 += 1) {
29386
29395
  const arg = flagArgs[index2] ?? "";
29387
29396
  if (arg === "--ask") {
@@ -29412,6 +29421,10 @@ var parseLaunchArgs = (args2) => {
29412
29421
  noLand = true;
29413
29422
  continue;
29414
29423
  }
29424
+ if (arg === "--json") {
29425
+ json2 = true;
29426
+ continue;
29427
+ }
29415
29428
  if (arg === "--project" || arg === "--model" || arg === "--effort" || arg === "--base" || arg === "--name" || arg === "--worktree") {
29416
29429
  const value3 = flagArgs[index2 + 1];
29417
29430
  if (value3 === void 0) return { ...LAUNCH_ERROR, error: `${arg} needs a value` };
@@ -29467,6 +29480,7 @@ var parseLaunchArgs = (args2) => {
29467
29480
  foreground,
29468
29481
  noTunnel,
29469
29482
  autoLand: land ? true : noLand ? false : null,
29483
+ json: json2,
29470
29484
  custom,
29471
29485
  error: null
29472
29486
  };
@@ -29607,6 +29621,17 @@ var pasteBytes = (text, bracketed) => Buffer.from(bracketed ? `\x1B[200~${text}\
29607
29621
  var firstPositional = (args2, valued) => args2.find(
29608
29622
  (argument, index2) => !argument.startsWith("--") && (index2 === 0 || !valued.includes(args2[index2 - 1] ?? ""))
29609
29623
  );
29624
+ var redactCredentials = (text) => text.replace(
29625
+ // Greedy up to the last `@` before the authority ends: a literal `@` in a password is userinfo.
29626
+ /\b([a-z][a-z0-9+.-]*):\/\/([^/?#"<>`]*)@/giu,
29627
+ (_whole, scheme, userinfo) => {
29628
+ if (/^(git\+)?ssh$/iu.test(scheme)) {
29629
+ const user = userinfo.split(":")[0] ?? "";
29630
+ if (/^[a-z0-9._~-]+$/iu.test(user)) return `${scheme}://${user}@`;
29631
+ }
29632
+ return `${scheme}://`;
29633
+ }
29634
+ );
29610
29635
 
29611
29636
  // src/server-request.ts
29612
29637
  var MendRequestError = class extends Error {
@@ -29895,6 +29920,7 @@ export {
29895
29920
  trackBracketedPaste,
29896
29921
  pasteBytes,
29897
29922
  firstPositional,
29923
+ redactCredentials,
29898
29924
  MendRequestError,
29899
29925
  spoken,
29900
29926
  noAnswerError,
@@ -23,7 +23,7 @@ import {
23
23
  workspaceReadsOf,
24
24
  worktreeJoinLine,
25
25
  wrapWords
26
- } from "./chunk-CXW54BC3.js";
26
+ } from "./chunk-VOP6USOZ.js";
27
27
 
28
28
  // src/dashboard.tsx
29
29
  import { CliRenderEvents, createCliRenderer } from "@opentui/core";