@sealant/mend 0.36.0-next.780 → 0.36.0-next.783
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/main.js +50 -11
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/man/mend-ssh-keys-remove.1 +1 -1
- 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 +1 -1
- package/man/mend-uninstall.1 +1 -1
- 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 +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -2411,7 +2411,7 @@ var COMMANDS = [
|
|
|
2411
2411
|
summary: "the models each harness offers, as the server lists them",
|
|
2412
2412
|
synopsis: ["[--json]"],
|
|
2413
2413
|
description: [
|
|
2414
|
-
"One block per harness: each model's id, the one a launch runs when --model is not given, and the efforts a model takes where they are fewer than the harness's. The list is the server's; the phone, the web app
|
|
2414
|
+
"One block per harness: each model's id, the one a launch runs when --model is not given, and the efforts a model takes where they are fewer than the harness's. The list is the server's; the phone, the web app and VS Code offer the same one, and a session records which model it was started with.",
|
|
2415
2415
|
"Pass an id to mend claude or mend codex with --model. An id the list does not know is passed through as given; the harness decides whether it exists."
|
|
2416
2416
|
],
|
|
2417
2417
|
options: [{ flag: "--json", text: "the catalog as the server answers it" }],
|
|
@@ -2441,7 +2441,7 @@ var COMMANDS = [
|
|
|
2441
2441
|
summary: "check this machine's setup, or bundle it for a bug report",
|
|
2442
2442
|
synopsis: ["", "--bundle [--out <path>] [--tail <n>]"],
|
|
2443
2443
|
description: [
|
|
2444
|
-
"Read-only. One line per fact: the server, the sign-in, the platform connection, the provider accounts, the
|
|
2444
|
+
"Read-only. One line per fact: the server, the sign-in, the platform connection, the provider accounts, the adopted projects, the claude, codex and gh CLIs on this machine, the exposure, the server's clock against this machine's, a Mac that sleeps on its own or when its lid closes, and where docker is on PATH what a stop of its daemon waits for against what systemd allows docker.service. Each unfinished line ends with the command that fixes it.",
|
|
2445
2445
|
"--bundle collects what a maintainer asks for one output at a time into one tar.gz: this CLI and its environment, the doctor lines, the server's health, the local server's configuration (its compose file and the names of its .env keys, never their values), docker version, info, contexts, the Mend and workspace containers with their inspect facts, the local server's container logs, the running workspace containers' logs, every session with its processes, exit codes and argv, the recorded terminal output of each, the connected accounts, and the versions and paths of claude, codex, gh, git and docker on this machine.",
|
|
2446
2446
|
"Each part is collected on its own: one that fails leaves a <name>.error.txt in the bundle instead of stopping it. One redactor runs over every file before it is written: bearer and header values, Slack, OpenAI, GitHub and AWS token shapes, JWTs, passwords in URLs, and any password, secret or token value. The archive is written with mode 0600. It still contains logs and configuration; read it before you share it."
|
|
2447
2447
|
],
|
|
@@ -9819,7 +9819,7 @@ var envValue = (fields, key) => {
|
|
|
9819
9819
|
}
|
|
9820
9820
|
return value;
|
|
9821
9821
|
};
|
|
9822
|
-
var
|
|
9822
|
+
var envFields = (raw) => {
|
|
9823
9823
|
const fields = /* @__PURE__ */ new Map();
|
|
9824
9824
|
for (const line of raw.split("\n")) {
|
|
9825
9825
|
if (line === "") continue;
|
|
@@ -9831,6 +9831,10 @@ var parseSecrets = (raw) => {
|
|
|
9831
9831
|
throw setupError(`Server secrets are corrupt: ${key} appears more than once.`);
|
|
9832
9832
|
fields.set(key, line.slice(separator + 1));
|
|
9833
9833
|
}
|
|
9834
|
+
return fields;
|
|
9835
|
+
};
|
|
9836
|
+
var parseSecrets = (raw) => {
|
|
9837
|
+
const fields = envFields(raw);
|
|
9834
9838
|
const secrets = {
|
|
9835
9839
|
postgresAdminPassword: envValue(fields, "MEND_POSTGRES_ADMIN_PASSWORD"),
|
|
9836
9840
|
mendDatabasePassword: envValue(fields, "MEND_DB_PASSWORD"),
|
|
@@ -10298,16 +10302,15 @@ var edgeImageOf = (overlay) => {
|
|
|
10298
10302
|
throw setupError("Server generation is corrupt: compose.edge.yaml pins no Caddy image.");
|
|
10299
10303
|
return image;
|
|
10300
10304
|
};
|
|
10301
|
-
var validateOverlays = (config, files) => {
|
|
10302
|
-
const posture =
|
|
10303
|
-
if (posture ===
|
|
10305
|
+
var validateOverlays = (config, files, envKeys) => {
|
|
10306
|
+
const posture = postureEnvironment(config).map(([key]) => key).filter((key) => envKeys.has(key));
|
|
10307
|
+
if (posture.length === 0 !== (files.posture === void 0)) {
|
|
10304
10308
|
throw setupError(
|
|
10305
10309
|
"Server generation is corrupt: compose.posture.yaml does not match the persisted server config."
|
|
10306
10310
|
);
|
|
10307
10311
|
}
|
|
10308
|
-
for (const
|
|
10309
|
-
|
|
10310
|
-
if (key !== "MEND_EDGE_HOST" && !key.startsWith("MEND_T3_GATEWAY_") && !(files.posture ?? "").includes(` ${key}: \${${key}`)) {
|
|
10312
|
+
for (const key of posture) {
|
|
10313
|
+
if (!(files.posture ?? "").includes(` ${key}: \${${key}`)) {
|
|
10311
10314
|
throw setupError(
|
|
10312
10315
|
`Server generation is corrupt: compose.posture.yaml does not hand ${key} to Mend.`
|
|
10313
10316
|
);
|
|
@@ -10384,20 +10387,56 @@ var validateMirrors = (config, secrets, files) => {
|
|
|
10384
10387
|
);
|
|
10385
10388
|
return mirrorImagesOf(files.mirrors);
|
|
10386
10389
|
};
|
|
10390
|
+
var FOUNDING_ENV_KEYS = /* @__PURE__ */ new Set([
|
|
10391
|
+
"MEND_VERSION",
|
|
10392
|
+
"MEND_IMAGE_REPOSITORY",
|
|
10393
|
+
"APP_URL",
|
|
10394
|
+
"MEND_ALLOWED_ORIGINS",
|
|
10395
|
+
"MEND_BIND_HOST",
|
|
10396
|
+
"MEND_PORT",
|
|
10397
|
+
"MEND_SSH_PORT",
|
|
10398
|
+
"MEND_REGISTRY_PORT",
|
|
10399
|
+
"SEALANT_SSH_HOST",
|
|
10400
|
+
"MEND_STORE_VOLUME_NAME",
|
|
10401
|
+
"MEND_CONTROL_VOLUME_NAME",
|
|
10402
|
+
"DOCKER_SOCKET_PATH"
|
|
10403
|
+
]);
|
|
10404
|
+
var secretEnvKey = (key) => key.startsWith("MEND_GARAGE_") || key.startsWith("MEND_DOCKER_HUB_");
|
|
10405
|
+
var validateServerEnv = (env, secrets, config) => {
|
|
10406
|
+
const rendered = envFields(renderSecrets(secrets, config));
|
|
10407
|
+
const written = envFields(env);
|
|
10408
|
+
for (const [key, value] of written) {
|
|
10409
|
+
const expected = rendered.get(key);
|
|
10410
|
+
if (expected === void 0)
|
|
10411
|
+
throw setupError(
|
|
10412
|
+
`Server secrets are corrupt: server.env has ${key}, which the persisted server config does not account for.`
|
|
10413
|
+
);
|
|
10414
|
+
if (value !== expected)
|
|
10415
|
+
throw setupError(
|
|
10416
|
+
`Server secrets are corrupt: ${key} in server.env does not match the persisted server config and identity.`
|
|
10417
|
+
);
|
|
10418
|
+
}
|
|
10419
|
+
for (const key of rendered.keys()) {
|
|
10420
|
+
if (!written.has(key) && (FOUNDING_ENV_KEYS.has(key) || secretEnvKey(key)))
|
|
10421
|
+
throw setupError(`Server secrets are corrupt: ${key} is missing from server.env.`);
|
|
10422
|
+
}
|
|
10423
|
+
return new Set(written.keys());
|
|
10424
|
+
};
|
|
10387
10425
|
var readServerInstallation = (store) => {
|
|
10388
10426
|
try {
|
|
10389
10427
|
const generation = storeValue(store.readActive());
|
|
10390
10428
|
if (generation === null) return { _tag: "ok", value: null };
|
|
10391
10429
|
const config = parseServerConfig(generation.files.config);
|
|
10392
10430
|
const secrets = parseSecrets(generation.files.env);
|
|
10393
|
-
if (generation.files.
|
|
10431
|
+
if (generation.files.identity !== renderIdentity(secrets)) {
|
|
10394
10432
|
throw setupError(
|
|
10395
10433
|
"Server secrets are corrupt: server.env does not match the persisted server config and identity."
|
|
10396
10434
|
);
|
|
10397
10435
|
}
|
|
10436
|
+
const envKeys = validateServerEnv(generation.files.env, secrets, config);
|
|
10398
10437
|
validateComposeAsset(generation.files.compose);
|
|
10399
10438
|
validatePostgresAsset(generation.files.postgresInit);
|
|
10400
|
-
const edgeImage = validateOverlays(config, generation.files);
|
|
10439
|
+
const edgeImage = validateOverlays(config, generation.files, envKeys);
|
|
10401
10440
|
const mirrorImages = validateMirrors(config, secrets, generation.files);
|
|
10402
10441
|
return {
|
|
10403
10442
|
_tag: "ok",
|
package/man/mend-accounts.1
CHANGED
package/man/mend-adopt.1
CHANGED
package/man/mend-attach.1
CHANGED
package/man/mend-codex.1
CHANGED
package/man/mend-completions.1
CHANGED
package/man/mend-connect-pi.1
CHANGED
package/man/mend-connect.1
CHANGED
package/man/mend-continue.1
CHANGED
package/man/mend-doctor.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH MEND-DOCTOR 1 "" "mend 0.36.0\-next.
|
|
1
|
+
.TH MEND-DOCTOR 1 "" "mend 0.36.0\-next.783" "mend manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
mend\-doctor \- check this machine's setup, or bundle it for a bug report
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -8,7 +8,7 @@ mend\-doctor \- check this machine's setup, or bundle it for a bug report
|
|
|
8
8
|
.br
|
|
9
9
|
.SH DESCRIPTION
|
|
10
10
|
.PP
|
|
11
|
-
Read\-only. One line per fact: the server, the sign\-in, the platform connection, the provider accounts, the
|
|
11
|
+
Read\-only. One line per fact: the server, the sign\-in, the platform connection, the provider accounts, the adopted projects, the claude, codex and gh CLIs on this machine, the exposure, the server's clock against this machine's, a Mac that sleeps on its own or when its lid closes, and where docker is on PATH what a stop of its daemon waits for against what systemd allows docker.service. Each unfinished line ends with the command that fixes it.
|
|
12
12
|
.PP
|
|
13
13
|
\-\-bundle collects what a maintainer asks for one output at a time into one tar.gz: this CLI and its environment, the doctor lines, the server's health, the local server's configuration (its compose file and the names of its .env keys, never their values), docker version, info, contexts, the Mend and workspace containers with their inspect facts, the local server's container logs, the running workspace containers' logs, every session with its processes, exit codes and argv, the recorded terminal output of each, the connected accounts, and the versions and paths of claude, codex, gh, git and docker on this machine.
|
|
14
14
|
.PP
|
package/man/mend-dotfiles-repo.1
CHANGED
package/man/mend-dotfiles-sync.1
CHANGED
package/man/mend-dotfiles.1
CHANGED
package/man/mend-env-cluster.1
CHANGED
package/man/mend-env-load.1
CHANGED
package/man/mend-env-show.1
CHANGED
package/man/mend-folder-create.1
CHANGED
package/man/mend-folder-list.1
CHANGED
package/man/mend-folder-push.1
CHANGED
package/man/mend-folder-rm.1
CHANGED
package/man/mend-git-author.1
CHANGED
package/man/mend-help.1
CHANGED
package/man/mend-invite.1
CHANGED
package/man/mend-keys-init.1
CHANGED
package/man/mend-keys-mode.1
CHANGED
package/man/mend-keys-share.1
CHANGED
package/man/mend-keys-show.1
CHANGED
package/man/mend-land.1
CHANGED
package/man/mend-login.1
CHANGED
package/man/mend-logout.1
CHANGED
package/man/mend-logs.1
CHANGED
package/man/mend-man.1
CHANGED
package/man/mend-members.1
CHANGED
package/man/mend-memory-import.1
CHANGED
package/man/mend-memory-rm.1
CHANGED
package/man/mend-memory-show.1
CHANGED
package/man/mend-memory.1
CHANGED
package/man/mend-models.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH MEND-MODELS 1 "" "mend 0.36.0\-next.
|
|
1
|
+
.TH MEND-MODELS 1 "" "mend 0.36.0\-next.783" "mend manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
mend\-models \- the models each harness offers, as the server lists them
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -6,7 +6,7 @@ mend\-models \- the models each harness offers, as the server lists them
|
|
|
6
6
|
.br
|
|
7
7
|
.SH DESCRIPTION
|
|
8
8
|
.PP
|
|
9
|
-
One block per harness: each model's id, the one a launch runs when \-\-model is not given, and the efforts a model takes where they are fewer than the harness's. The list is the server's; the phone, the web app
|
|
9
|
+
One block per harness: each model's id, the one a launch runs when \-\-model is not given, and the efforts a model takes where they are fewer than the harness's. The list is the server's; the phone, the web app and VS Code offer the same one, and a session records which model it was started with.
|
|
10
10
|
.PP
|
|
11
11
|
Pass an id to mend claude or mend codex with \-\-model. An id the list does not know is passed through as given; the harness decides whether it exists.
|
|
12
12
|
.SH OPTIONS
|
package/man/mend-operator-gate.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH MEND-OPERATOR-ORG-INVITE-OWNER 1 "" "mend 0.36.0\-next.
|
|
1
|
+
.TH MEND-OPERATOR-ORG-INVITE-OWNER 1 "" "mend 0.36.0\-next.783" "mend manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
mend\-operator\-org\-invite\-owner \- print a one\-time owner invitation for an organization
|
|
4
4
|
.SH SYNOPSIS
|
package/man/mend-pair.1
CHANGED
package/man/mend-projects.1
CHANGED
package/man/mend-pull.1
CHANGED
package/man/mend-refresh.1
CHANGED
package/man/mend-rejoin.1
CHANGED
package/man/mend-resume.1
CHANGED
package/man/mend-run.1
CHANGED
package/man/mend-secrets-add.1
CHANGED
package/man/mend-secrets-rm.1
CHANGED
package/man/mend-secrets.1
CHANGED
package/man/mend-server-logs.1
CHANGED
package/man/mend-server-setup.1
CHANGED
package/man/mend-server-start.1
CHANGED
package/man/mend-server-status.1
CHANGED
package/man/mend-server-stop.1
CHANGED
package/man/mend-server.1
CHANGED
package/man/mend-service-add.1
CHANGED
package/man/mend-service-init.1
CHANGED
package/man/mend-service-list.1
CHANGED
package/man/mend-service-logs.1
CHANGED
package/man/mend-service-run.1
CHANGED
package/man/mend-service-stop.1
CHANGED
package/man/mend-session-share.1
CHANGED
package/man/mend-sessions.1
CHANGED
package/man/mend-shell.1
CHANGED
package/man/mend-skills-push.1
CHANGED
package/man/mend-skills.1
CHANGED
package/man/mend-snake.1
CHANGED
package/man/mend-ssh-keys.1
CHANGED
package/man/mend-ssh-setup.1
CHANGED
package/man/mend-ssh.1
CHANGED
package/man/mend-stop.1
CHANGED
package/man/mend-ui.1
CHANGED
package/man/mend-uninstall.1
CHANGED
package/man/mend-version.1
CHANGED
package/man/mend-wait.1
CHANGED
package/man/mend-worktrees-rm.1
CHANGED
package/man/mend-worktrees.1
CHANGED
package/man/mend.1
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/mend",
|
|
3
|
-
"version": "0.36.0-next.
|
|
3
|
+
"version": "0.36.0-next.783",
|
|
4
4
|
"description": "The mend CLI: adopt a repository into Mend's store, launch your coding agent in a recorded session worktree, detach and reattach from any terminal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": "19.2.3",
|
|
41
41
|
"undici": "^7.28.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d955e18750bb670d0a869f6c01357e080d20da63",
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
}
|