@sealant/mend 0.36.0-next.708 → 0.36.0-next.754
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/README.md +3 -2
- package/dist/{chunk-DHM7VXTR.js → chunk-ARGA4E7A.js} +39 -2
- package/dist/{dashboard-OBFWHSPD.js → dashboard-JGR77HVG.js} +823 -176
- package/dist/main.js +3092 -873
- package/man/mend-accounts.1 +1 -1
- package/man/mend-adopt.1 +1 -1
- package/man/mend-attach.1 +1 -1
- package/man/mend-codex.1 +1 -1
- package/man/mend-completions.1 +1 -1
- package/man/mend-connect-pi.1 +1 -1
- package/man/mend-connect.1 +1 -1
- package/man/mend-continue.1 +1 -1
- package/man/mend-doctor.1 +1 -1
- package/man/mend-dotfiles-repo.1 +1 -1
- package/man/mend-dotfiles-sync.1 +1 -1
- package/man/mend-dotfiles.1 +1 -1
- package/man/mend-env-cluster.1 +1 -1
- package/man/mend-env-load.1 +1 -1
- package/man/mend-env-show.1 +1 -1
- package/man/mend-folder-create.1 +1 -1
- package/man/mend-folder-list.1 +1 -1
- package/man/mend-folder-push.1 +1 -1
- package/man/mend-folder-rm.1 +1 -1
- package/man/mend-git-author.1 +1 -1
- package/man/mend-help.1 +1 -1
- package/man/mend-invite.1 +1 -1
- package/man/mend-keys-init.1 +1 -1
- package/man/mend-keys-mode.1 +1 -1
- package/man/mend-keys-share.1 +1 -1
- package/man/mend-keys-show.1 +1 -1
- package/man/mend-land.1 +1 -1
- package/man/mend-login.1 +1 -1
- package/man/mend-logout.1 +1 -1
- package/man/mend-logs.1 +1 -1
- package/man/mend-man.1 +1 -1
- package/man/mend-members.1 +1 -1
- package/man/mend-memory-import.1 +1 -1
- package/man/mend-memory-rm.1 +1 -1
- package/man/mend-memory-show.1 +1 -1
- package/man/mend-memory.1 +1 -1
- package/man/mend-models.1 +1 -1
- package/man/mend-operator-exposure.1 +1 -1
- package/man/mend-operator-gate.1 +1 -1
- package/man/mend-operator-grant-owner.1 +1 -1
- package/man/mend-operator-org-create.1 +1 -1
- package/man/mend-operator-org-invite-owner.1 +1 -1
- package/man/mend-operator-org-list.1 +1 -1
- package/man/mend-operator-org-rename.1 +1 -1
- package/man/mend-operator-reset-link.1 +1 -1
- package/man/mend-pair.1 +1 -1
- package/man/mend-projects.1 +1 -1
- package/man/mend-pull.1 +6 -3
- package/man/mend-refresh.1 +1 -1
- package/man/mend-rejoin.1 +1 -1
- package/man/mend-resume.1 +1 -1
- package/man/mend-run.1 +4 -2
- package/man/mend-secrets-add.1 +1 -1
- package/man/mend-secrets-rm.1 +1 -1
- package/man/mend-secrets.1 +1 -1
- package/man/mend-server-logs.1 +1 -1
- package/man/mend-server-restart.1 +1 -1
- package/man/mend-server-setup.1 +37 -7
- package/man/mend-server-start.1 +1 -1
- package/man/mend-server-status.1 +1 -1
- package/man/mend-server-stop.1 +1 -1
- package/man/mend-server-upgrade.1 +1 -1
- package/man/mend-server.1 +1 -1
- package/man/mend-service-add.1 +1 -1
- package/man/mend-service-connect.1 +1 -1
- package/man/mend-service-init.1 +1 -1
- package/man/mend-service-list.1 +1 -1
- package/man/mend-service-logs.1 +1 -1
- package/man/mend-service-restart.1 +1 -1
- package/man/mend-service-run.1 +1 -1
- package/man/mend-service-stop.1 +1 -1
- package/man/mend-session-share.1 +1 -1
- package/man/mend-sessions.1 +1 -1
- package/man/mend-shell.1 +1 -1
- package/man/mend-skills-push.1 +1 -1
- package/man/mend-skills.1 +1 -1
- package/man/mend-snake.1 +2 -2
- package/man/mend-ssh-keys-remove.1 +2 -2
- package/man/mend-ssh-keys.1 +1 -1
- package/man/mend-ssh-setup.1 +1 -1
- package/man/mend-ssh.1 +1 -1
- package/man/mend-stop.1 +1 -1
- package/man/mend-ui.1 +3 -1
- package/man/mend-uninstall.1 +9 -3
- package/man/mend-version.1 +1 -1
- package/man/mend-wait.1 +1 -1
- package/man/mend-workspace-replace.1 +1 -1
- package/man/mend-worktrees-rm.1 +1 -1
- package/man/mend-worktrees.1 +1 -1
- package/man/mend.1 +5 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ terminal.
|
|
|
9
9
|
npm install -g @sealant/mend
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
Requires Node 22+ and a running Mend server.
|
|
12
|
+
Requires Node 22.13+ and a running Mend server.
|
|
13
13
|
|
|
14
14
|
Run bare `mend` for the interactive dashboard. The session pane takes three quarters of the screen
|
|
15
15
|
and previews the recorded conversation without taking terminal control. The remaining quarter is a
|
|
@@ -170,7 +170,8 @@ mend projects adopted projects and their live sessions
|
|
|
170
170
|
mend refresh [project] fetch origin's branches into the store
|
|
171
171
|
mend land <session> [--branch b] [--no-pr] [--title t] | --check
|
|
172
172
|
push the change to origin, open or update its pull request
|
|
173
|
-
mend pull <session> [--force]
|
|
173
|
+
mend pull <session> [--branch b] [--force]
|
|
174
|
+
fetch the change into this clone as mend/<name>
|
|
174
175
|
mend workspace replace <session> [--yes]
|
|
175
176
|
replace a workspace that started before Mend 0.36
|
|
176
177
|
|
|
@@ -26534,6 +26534,7 @@ var offByDefault = Schema_exports.Boolean.pipe(Schema_exports.withDecodingDefaul
|
|
|
26534
26534
|
var WorkspaceImageOs = Schema_exports.Literals(["fedora", "arch", "nix", "ubuntu"]);
|
|
26535
26535
|
var DEFAULT_WORKSPACE_PACKAGES = [
|
|
26536
26536
|
"pnpm",
|
|
26537
|
+
"bun",
|
|
26537
26538
|
"python",
|
|
26538
26539
|
"uv",
|
|
26539
26540
|
"mise",
|
|
@@ -26541,6 +26542,7 @@ var DEFAULT_WORKSPACE_PACKAGES = [
|
|
|
26541
26542
|
"lazygit",
|
|
26542
26543
|
"bat",
|
|
26543
26544
|
"curl",
|
|
26545
|
+
"unzip",
|
|
26544
26546
|
"jq",
|
|
26545
26547
|
"ripgrep",
|
|
26546
26548
|
"fd",
|
|
@@ -28585,6 +28587,20 @@ var HOST_USER_NAMESPACE_FILES = [
|
|
|
28585
28587
|
"/proc/sys/kernel/unprivileged_userns_clone"
|
|
28586
28588
|
];
|
|
28587
28589
|
var HOST_USER_NAMESPACE_SYSCTL_FILE = "/etc/sysctl.d/60-mend-rootless-docker.conf";
|
|
28590
|
+
var HOST_USER_NAMESPACE_SYSCTL_MARKER = "# written by mend server setup; mend uninstall removes it";
|
|
28591
|
+
var PREVIOUS_SETTINGS = {
|
|
28592
|
+
"kernel.apparmor_restrict_unprivileged_userns = 0": "kernel.apparmor_restrict_unprivileged_userns = 1",
|
|
28593
|
+
"kernel.unprivileged_userns_clone = 1": "kernel.unprivileged_userns_clone = 0"
|
|
28594
|
+
};
|
|
28595
|
+
var HOST_USER_NAMESPACE_SYSCTL_PREVIOUS = "# previous: ";
|
|
28596
|
+
var hostUserNamespacesSysctlLines = (setting) => {
|
|
28597
|
+
const previous = PREVIOUS_SETTINGS[setting];
|
|
28598
|
+
return [
|
|
28599
|
+
HOST_USER_NAMESPACE_SYSCTL_MARKER,
|
|
28600
|
+
...previous === void 0 ? [] : [`${HOST_USER_NAMESPACE_SYSCTL_PREVIOUS}${previous}`],
|
|
28601
|
+
setting
|
|
28602
|
+
];
|
|
28603
|
+
};
|
|
28588
28604
|
var hostUserNamespacesOf = (readings) => {
|
|
28589
28605
|
const restrict = readings.apparmorRestrictUnprivilegedUserns?.trim();
|
|
28590
28606
|
const apparmorOff = readings.apparmorEnabled?.trim() === "N";
|
|
@@ -28597,6 +28613,9 @@ var hostUserNamespacesOf = (readings) => {
|
|
|
28597
28613
|
return { allowed: true };
|
|
28598
28614
|
};
|
|
28599
28615
|
var hostUserNamespacesFix = (setting) => `echo '${setting}' | sudo tee ${HOST_USER_NAMESPACE_SYSCTL_FILE} && sudo sysctl --system`;
|
|
28616
|
+
var HOST_USER_NAMESPACES_REFUSED = "the server's host refuses user namespaces \xB7 no workspace can start";
|
|
28617
|
+
var HOST_USER_NAMESPACES_FIX_LEAD = "on the server's host: ";
|
|
28618
|
+
var hostUserNamespacesFixLine = (setting) => `${HOST_USER_NAMESPACES_FIX_LEAD}${hostUserNamespacesFix(setting)}`;
|
|
28600
28619
|
|
|
28601
28620
|
// ../../packages/domain/src/workbench/link.ts
|
|
28602
28621
|
var ProjectLink = class extends Schema_exports.Class("ProjectLink")({
|
|
@@ -28652,7 +28671,7 @@ var ProjectClusterBindingsSnapshot = class extends Schema_exports.Class(
|
|
|
28652
28671
|
}) {
|
|
28653
28672
|
};
|
|
28654
28673
|
|
|
28655
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.39.0-next.
|
|
28674
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.39.0-next.720_effect@4.0.0-beta.93/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
|
|
28656
28675
|
var RESERVED_NAMES = new Map([
|
|
28657
28676
|
// Identity/process roots the daemon and shells own.
|
|
28658
28677
|
...[
|
|
@@ -29747,16 +29766,25 @@ var jsonWithoutCredentials = (value3) => {
|
|
|
29747
29766
|
);
|
|
29748
29767
|
return printed ?? "null";
|
|
29749
29768
|
};
|
|
29769
|
+
var serviceViewAttempt = (view) => view.service.currentAttemptId === null ? null : view.attempts.find((candidate) => candidate.id === view.service.currentAttemptId) ?? null;
|
|
29770
|
+
var serviceViewStatus = (view) => {
|
|
29771
|
+
const observation = view.currentForward !== null && view.latestObservation?.forwardId === view.currentForward.id ? view.latestObservation : null;
|
|
29772
|
+
return observation?.state ?? view.currentForward?.state ?? serviceViewAttempt(view)?.status ?? "stopped";
|
|
29773
|
+
};
|
|
29774
|
+
var serviceViewHostPort = (view) => (view.endpoints.find((candidate) => candidate.scope === "private") ?? view.endpoints[0] ?? null)?.hostPort ?? null;
|
|
29750
29775
|
|
|
29751
29776
|
// src/server-request.ts
|
|
29752
29777
|
var MendRequestError = class extends Error {
|
|
29753
29778
|
kind;
|
|
29754
29779
|
status;
|
|
29755
|
-
|
|
29780
|
+
/** The refused call and its tag, for code and diagnostics (`MEND_DEBUG`); never in the words. */
|
|
29781
|
+
refused;
|
|
29782
|
+
constructor(kind, message, status = null, refused = null) {
|
|
29756
29783
|
super(message);
|
|
29757
29784
|
this.name = "MendRequestError";
|
|
29758
29785
|
this.kind = kind;
|
|
29759
29786
|
this.status = status;
|
|
29787
|
+
this.refused = refused;
|
|
29760
29788
|
}
|
|
29761
29789
|
};
|
|
29762
29790
|
var TIMEOUT_CODES = /* @__PURE__ */ new Set([
|
|
@@ -29999,8 +30027,14 @@ export {
|
|
|
29999
30027
|
withoutLaunchPhase,
|
|
30000
30028
|
launchPhaseOf,
|
|
30001
30029
|
HOST_USER_NAMESPACE_FILES,
|
|
30030
|
+
HOST_USER_NAMESPACE_SYSCTL_FILE,
|
|
30031
|
+
HOST_USER_NAMESPACE_SYSCTL_MARKER,
|
|
30032
|
+
HOST_USER_NAMESPACE_SYSCTL_PREVIOUS,
|
|
30033
|
+
hostUserNamespacesSysctlLines,
|
|
30002
30034
|
hostUserNamespacesOf,
|
|
30003
30035
|
hostUserNamespacesFix,
|
|
30036
|
+
HOST_USER_NAMESPACES_REFUSED,
|
|
30037
|
+
hostUserNamespacesFixLine,
|
|
30004
30038
|
PI_PROFILE_AGENT_PATH,
|
|
30005
30039
|
PI_PROFILE_LOCAL_PACKAGES,
|
|
30006
30040
|
PI_PROFILE_MAX_FILE_BYTES,
|
|
@@ -30039,6 +30073,9 @@ export {
|
|
|
30039
30073
|
firstPositional,
|
|
30040
30074
|
redactCredentials,
|
|
30041
30075
|
jsonWithoutCredentials,
|
|
30076
|
+
serviceViewAttempt,
|
|
30077
|
+
serviceViewStatus,
|
|
30078
|
+
serviceViewHostPort,
|
|
30042
30079
|
MendRequestError,
|
|
30043
30080
|
spoken,
|
|
30044
30081
|
noAnswerError,
|