@sealant/mend 0.37.0-next.1532 → 0.37.0-next.1545
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/{chunk-DNXRNKWK.js → chunk-Y5NB6XZQ.js} +28 -28
- package/dist/{dashboard-BHCOTUI4.js → dashboard-UTFONB6B.js} +1 -1
- package/dist/main.js +130 -9
- package/man/mend-access-keys-create.1 +1 -1
- package/man/mend-access-keys-list.1 +1 -1
- package/man/mend-access-keys-revoke.1 +1 -1
- package/man/mend-accounts.1 +1 -1
- package/man/mend-adopt.1 +1 -1
- package/man/mend-agent-install.1 +1 -1
- package/man/mend-agent-logins.1 +1 -1
- package/man/mend-attach.1 +1 -1
- package/man/mend-boat-check.1 +1 -1
- package/man/mend-boat-connect.1 +1 -1
- package/man/mend-boat-disconnect.1 +1 -1
- package/man/mend-boat-status.1 +1 -1
- package/man/mend-boat-wallet.1 +1 -1
- package/man/mend-change.1 +1 -1
- package/man/mend-codex.1 +1 -1
- package/man/mend-comment-add.1 +1 -1
- package/man/mend-comment-send.1 +1 -1
- package/man/mend-completions.1 +1 -1
- package/man/mend-connect-executor.1 +1 -1
- package/man/mend-connect-pi.1 +1 -1
- package/man/mend-connect-status.1 +1 -1
- package/man/mend-connect.1 +1 -1
- package/man/mend-continue.1 +1 -1
- package/man/mend-diff.1 +1 -1
- package/man/mend-doctor.1 +1 -1
- package/man/mend-doppler-connect.1 +1 -1
- package/man/mend-doppler-disconnect.1 +1 -1
- package/man/mend-doppler-status.1 +1 -1
- package/man/mend-doppler-use.1 +1 -1
- package/man/mend-doppler.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-git-check.1 +1 -1
- package/man/mend-handoff.1 +1 -1
- package/man/mend-help.1 +1 -1
- package/man/mend-history.1 +1 -1
- package/man/mend-interrupt.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-mcp-add.1 +1 -1
- package/man/mend-mcp-forget.1 +1 -1
- package/man/mend-mcp-off.1 +1 -1
- package/man/mend-mcp-on.1 +1 -1
- package/man/mend-mcp-remove.1 +1 -1
- package/man/mend-mcp.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-message.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-add-member.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-org-leave.1 +1 -1
- package/man/mend-org-switch.1 +1 -1
- package/man/mend-org.1 +1 -1
- package/man/mend-pair.1 +1 -1
- package/man/mend-preview.1 +1 -1
- package/man/mend-projects-image.1 +1 -1
- package/man/mend-projects-purge.1 +1 -1
- package/man/mend-projects-removed.1 +1 -1
- package/man/mend-projects-restore.1 +1 -1
- package/man/mend-projects-rm.1 +1 -1
- package/man/mend-projects.1 +1 -1
- package/man/mend-proof-get.1 +1 -1
- package/man/mend-proof-list.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-resource-add.1 +1 -1
- package/man/mend-resource-env.1 +1 -1
- package/man/mend-resource-list.1 +1 -1
- package/man/mend-resource-load.1 +1 -1
- package/man/mend-resource-remove.1 +1 -1
- package/man/mend-resource-reset.1 +1 -1
- package/man/mend-resource-start.1 +1 -1
- package/man/mend-resource-stop.1 +1 -1
- package/man/mend-resource-use.1 +1 -1
- package/man/mend-respond.1 +1 -1
- package/man/mend-resume.1 +1 -1
- package/man/mend-run.1 +1 -1
- package/man/mend-screen-look.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 +8 -2
- 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-settings.1 +1 -1
- package/man/mend-setup-session.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
|
@@ -26591,17 +26591,17 @@ var make32 = (identifier2, options2) => makeProto4({
|
|
|
26591
26591
|
annotations: empty3()
|
|
26592
26592
|
});
|
|
26593
26593
|
|
|
26594
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26594
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/refusal-words.js
|
|
26595
26595
|
var REFUSAL_WORDS = "@sealant/api-contracts/refusalWords";
|
|
26596
26596
|
var refusalWords = (...words) => ({ [REFUSAL_WORDS]: words });
|
|
26597
26597
|
|
|
26598
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26598
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/person-id.js
|
|
26599
26599
|
var RESOURCE_DOMAIN_ID_PREFIX = "rdm:";
|
|
26600
26600
|
var isResourceDomainId = (id2) => id2.startsWith(RESOURCE_DOMAIN_ID_PREFIX);
|
|
26601
26601
|
var NOT_A_PERSON = "names a resource domain, which never holds a login or a provider credential and never runs a harness";
|
|
26602
26602
|
var PersonId = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed(), Schema_exports.makeFilter((id2) => isResourceDomainId(id2) ? NOT_A_PERSON : void 0, refusalWords(NOT_A_PERSON)));
|
|
26603
26603
|
|
|
26604
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26604
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/connected-accounts.js
|
|
26605
26605
|
var NonEmptyString2 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26606
26606
|
var connectedAccountProviderSchema = Schema_exports.Literals(["claude", "codex", "github"]);
|
|
26607
26607
|
var connectedAccountStatusSchema = Schema_exports.Literals(["active", "invalid", "archived"]);
|
|
@@ -26786,7 +26786,7 @@ var ConnectedAccountsGroup = HttpApiGroup_exports.make("connectedAccounts").add(
|
|
|
26786
26786
|
]
|
|
26787
26787
|
})).annotate(OpenApi_exports.Description, "Connected provider accounts (Claude / Codex / GitHub credentials). Secret material is never returned by any endpoint.");
|
|
26788
26788
|
|
|
26789
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26789
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/access-tokens.js
|
|
26790
26790
|
var NonEmptyString3 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26791
26791
|
var accessTokenScopeSchema = Schema_exports.Literals([
|
|
26792
26792
|
"session:read",
|
|
@@ -26845,7 +26845,7 @@ var AccessTokensGroup = HttpApiGroup_exports.make("accessTokens").add(HttpApiEnd
|
|
|
26845
26845
|
error: [AccessTokenBadRequestError, AccessTokenNotFoundError, AccessTokenInternalServerError]
|
|
26846
26846
|
})).annotate(OpenApi_exports.Description, "Scoped bearer tokens for the session surface.");
|
|
26847
26847
|
|
|
26848
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26848
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-failures.js
|
|
26849
26849
|
var BOAT_FAILURE_KINDS = [
|
|
26850
26850
|
"key-refused",
|
|
26851
26851
|
"key-expired",
|
|
@@ -26888,7 +26888,7 @@ var boatFailureSchema = Schema_exports.Struct({
|
|
|
26888
26888
|
billingUrl: Schema_exports.optional(Schema_exports.String)
|
|
26889
26889
|
});
|
|
26890
26890
|
|
|
26891
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26891
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-accounts.js
|
|
26892
26892
|
var NonEmptyString4 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26893
26893
|
var SecretString = Schema_exports.String.check(Schema_exports.isNonEmpty());
|
|
26894
26894
|
var BoatAccountId = Schema_exports.String.check(Schema_exports.isPattern(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/));
|
|
@@ -27206,7 +27206,7 @@ var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEnd
|
|
|
27206
27206
|
})
|
|
27207
27207
|
).annotate(OpenApi_exports.Description, "The Boat keys an install keeps beside its default one: one Boat account each, for the workspaces that name it.");
|
|
27208
27208
|
|
|
27209
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27209
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/budgets.js
|
|
27210
27210
|
var requestBudgetRefusalSchema = Schema_exports.Struct({
|
|
27211
27211
|
phase: Schema_exports.Literal("before-work"),
|
|
27212
27212
|
bucket: Schema_exports.Literals(["owner", "unowned", "key", "principal"])
|
|
@@ -27223,7 +27223,7 @@ var BudgetExceededError = class extends Schema_exports.TaggedError()("BudgetExce
|
|
|
27223
27223
|
var RequestBudget = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestBudget", { error: BudgetExceededError }) {
|
|
27224
27224
|
};
|
|
27225
27225
|
|
|
27226
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27226
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/github.js
|
|
27227
27227
|
var GitHubInstallationAccountTypeSchema = Schema_exports.Literals(["organization", "user"]);
|
|
27228
27228
|
var GitHubInstallationStatusSchema = Schema_exports.Literals(["active", "suspended", "deleted"]);
|
|
27229
27229
|
var GitHubInstallationRepositorySelectionSchema = Schema_exports.Literals(["all", "selected"]);
|
|
@@ -27364,7 +27364,7 @@ var GitHubGroup = HttpApiGroup_exports.make("github").add(HttpApiEndpoint_export
|
|
|
27364
27364
|
})).annotate(OpenApi_exports.Description, "GitHub App installation and webhook control-plane operations.");
|
|
27365
27365
|
var GitHubApi = HttpApi_exports.make("sealantGitHubApi").add(GitHubGroup).annotate(OpenApi_exports.Title, "Sealant Control Plane API - GitHub").annotate(OpenApi_exports.Version, "0.0.0");
|
|
27366
27366
|
|
|
27367
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27367
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/inference.js
|
|
27368
27368
|
var NonEmptyString6 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27369
27369
|
var inferenceCredentialsSchema = Schema_exports.Struct({
|
|
27370
27370
|
profileId: Schema_exports.optional(NonEmptyString6),
|
|
@@ -27478,7 +27478,7 @@ var InferenceGroup = HttpApiGroup_exports.make("inference").add(HttpApiEndpoint_
|
|
|
27478
27478
|
]
|
|
27479
27479
|
})).annotate(OpenApi_exports.Description, "Inference on connected accounts, via the official agent SDKs \u2014 never raw model-API calls.");
|
|
27480
27480
|
|
|
27481
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27481
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/packages.js
|
|
27482
27482
|
var NonEmptyString7 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27483
27483
|
var packageTargetOsSchema = Schema_exports.Literals(["arch", "fedora", "nix", "ubuntu"]);
|
|
27484
27484
|
var packageResolutionStatusSchema = Schema_exports.Literals([
|
|
@@ -27536,7 +27536,7 @@ var PackagesGroup = HttpApiGroup_exports.make("packages").add(HttpApiEndpoint_ex
|
|
|
27536
27536
|
error: [PackagesBadGatewayError, PackagesInternalServerError]
|
|
27537
27537
|
})).annotate(OpenApi_exports.Description, "Package normalization and distro resolution operations.");
|
|
27538
27538
|
|
|
27539
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27539
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/profiles.js
|
|
27540
27540
|
var NonEmptyString8 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27541
27541
|
var profileStatusSchema = Schema_exports.Literals(["active", "archived"]);
|
|
27542
27542
|
var profileSummarySchema = Schema_exports.Struct({
|
|
@@ -27619,7 +27619,7 @@ var ProfilesGroup = HttpApiGroup_exports.make("profiles").add(HttpApiEndpoint_ex
|
|
|
27619
27619
|
})
|
|
27620
27620
|
).annotate(OpenApi_exports.Description, "Profiles and their per-provider connected-account credential bindings.");
|
|
27621
27621
|
|
|
27622
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27622
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/oci-names.js
|
|
27623
27623
|
var REPOSITORY_COMPONENT = "[a-z0-9]+(?:(?:\\.|_|__|-+)[a-z0-9]+)*";
|
|
27624
27624
|
var REPOSITORY = new RegExp(`^${REPOSITORY_COMPONENT}(?:/${REPOSITORY_COMPONENT})*$`);
|
|
27625
27625
|
var REPOSITORY_MAX_LENGTH = 255;
|
|
@@ -27643,7 +27643,7 @@ var isOciReference = (value3) => isOciDigest(value3) || isOciTag(value3);
|
|
|
27643
27643
|
var OCI_REPOSITORY_MESSAGE = "must be an OCI repository name: lowercase path components of [a-z0-9] joined by '.', '_', '__' or '-', separated by '/'";
|
|
27644
27644
|
var OCI_REFERENCE_MESSAGE = "must be an OCI tag ([A-Za-z0-9_][A-Za-z0-9._-]{0,127}) or a digest (algorithm:encoded)";
|
|
27645
27645
|
|
|
27646
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27646
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/registries.js
|
|
27647
27647
|
var NonEmptyString9 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27648
27648
|
var OciRepository = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciRepository(value3) ? void 0 : `repository ${OCI_REPOSITORY_MESSAGE}`, refusalWords(`repository ${OCI_REPOSITORY_MESSAGE}`)));
|
|
27649
27649
|
var OciReference = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciReference(value3) ? void 0 : `reference ${OCI_REFERENCE_MESSAGE}`, refusalWords(`reference ${OCI_REFERENCE_MESSAGE}`)));
|
|
@@ -27720,7 +27720,7 @@ var RegistriesGroup = HttpApiGroup_exports.make("registries").add(HttpApiEndpoin
|
|
|
27720
27720
|
error: [RegistriesNotFoundError, RegistriesBadGatewayError]
|
|
27721
27721
|
})).annotate(OpenApi_exports.Description, "Registry metadata and OCI read operations.");
|
|
27722
27722
|
|
|
27723
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27723
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/request-refusal.js
|
|
27724
27724
|
var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRefusedError", {
|
|
27725
27725
|
/** Where the request is wrong and what was expected; never a value it held. */
|
|
27726
27726
|
message: Schema_exports.String
|
|
@@ -27729,7 +27729,7 @@ var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRef
|
|
|
27729
27729
|
var RequestRefusal = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestRefusal", { error: RequestRefusedError }) {
|
|
27730
27730
|
};
|
|
27731
27731
|
|
|
27732
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27732
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-domains.js
|
|
27733
27733
|
var RESOURCE_DOMAIN_ID_PATTERN = new RegExp(`^${RESOURCE_DOMAIN_ID_PREFIX}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`);
|
|
27734
27734
|
var RESOURCE_DOMAIN_KEY_PATTERN = /^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._:/@+=-]{1,223}$/;
|
|
27735
27735
|
var NOT_A_DOMAIN_ID = "must be a resource domain id (rdm:<uuid>)";
|
|
@@ -27907,7 +27907,7 @@ var ResourceDomainsGroup = HttpApiGroup_exports.make("resourceDomains").add(Http
|
|
|
27907
27907
|
]
|
|
27908
27908
|
})).annotate(HttpApi_exports.PayloadParseOptions, { onExcessProperty: "error" }).annotate(OpenApi_exports.Description, "Owners that are projects, not people: they never hold a login or a provider credential.");
|
|
27909
27909
|
|
|
27910
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27910
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-instances.js
|
|
27911
27911
|
var RESOURCE_INSTANCE_ID_PREFIX = "rin:";
|
|
27912
27912
|
var RESOURCE_INSTANCE_ID_PATTERN = new RegExp(`^${RESOURCE_INSTANCE_ID_PREFIX}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`);
|
|
27913
27913
|
var matching = (pattern, message) => Schema_exports.makeFilter((value3) => pattern.test(value3) ? void 0 : message, refusalWords(message));
|
|
@@ -28203,7 +28203,7 @@ var resourceInstanceExecResultSchema = Schema_exports.Struct({
|
|
|
28203
28203
|
timedOut: Schema_exports.Boolean
|
|
28204
28204
|
});
|
|
28205
28205
|
|
|
28206
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28206
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/runs.js
|
|
28207
28207
|
var NonEmptyString10 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28208
28208
|
var runStatusSchema = Schema_exports.Literals([
|
|
28209
28209
|
"queued",
|
|
@@ -28457,7 +28457,7 @@ var RunsGroup = HttpApiGroup_exports.make("runs").add(HttpApiEndpoint_exports.po
|
|
|
28457
28457
|
error: [RunNotFoundError, RunInternalServerError]
|
|
28458
28458
|
})).annotate(OpenApi_exports.Description, "Runs (harness executions) and their execution record.");
|
|
28459
28459
|
|
|
28460
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28460
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/sessions.js
|
|
28461
28461
|
var NonEmptyString11 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28462
28462
|
var sessionStatusSchema = Schema_exports.Literals(["starting", "running", "exited", "failed"]);
|
|
28463
28463
|
var sessionAuthorizationHeadersSchema = Schema_exports.Struct({
|
|
@@ -28776,7 +28776,7 @@ var SessionsGroup = HttpApiGroup_exports.make("sessions").add(
|
|
|
28776
28776
|
})
|
|
28777
28777
|
).annotate(OpenApi_exports.Description, "Interactive PTY sessions: durable, reattachable, sequence-keyed output.");
|
|
28778
28778
|
|
|
28779
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28779
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/ssh-keys.js
|
|
28780
28780
|
var NonEmptyString12 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28781
28781
|
var sshKeyGatewayHeadersSchema = Schema_exports.Struct({
|
|
28782
28782
|
// Authenticates the gateway as a trusted caller of the internal resolve endpoint.
|
|
@@ -28873,7 +28873,7 @@ var SshKeysGroup = HttpApiGroup_exports.make("sshKeys").add(HttpApiEndpoint_expo
|
|
|
28873
28873
|
})
|
|
28874
28874
|
).annotate(OpenApi_exports.Description, "User SSH public keys and gateway principal resolution.");
|
|
28875
28875
|
|
|
28876
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28876
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/system.js
|
|
28877
28877
|
var NonEmptyString13 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28878
28878
|
var systemIndexResponseSchema = Schema_exports.Struct({
|
|
28879
28879
|
name: NonEmptyString13,
|
|
@@ -28990,7 +28990,7 @@ var SystemGroup = HttpApiGroup_exports.make("system").add(HttpApiEndpoint_export
|
|
|
28990
28990
|
})
|
|
28991
28991
|
).annotate(OpenApi_exports.Description, "System metadata, health probes, and first-run setup state.");
|
|
28992
28992
|
|
|
28993
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28993
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/users.js
|
|
28994
28994
|
var NonEmptyString14 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28995
28995
|
var userSchema = Schema_exports.Struct({
|
|
28996
28996
|
userId: PersonId,
|
|
@@ -29053,7 +29053,7 @@ var UsersGroup = HttpApiGroup_exports.make("users").add(HttpApiEndpoint_exports.
|
|
|
29053
29053
|
error: [UserNotFoundError, UserInternalServerError]
|
|
29054
29054
|
})).annotate(OpenApi_exports.Description, "Identity rows for products that own their own login and act on behalf of their users.");
|
|
29055
29055
|
|
|
29056
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
29056
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/endpoint-url.js
|
|
29057
29057
|
var parsed = (value3) => {
|
|
29058
29058
|
try {
|
|
29059
29059
|
return new URL(value3);
|
|
@@ -29097,7 +29097,7 @@ var parseEndpointUrl = (raw2) => {
|
|
|
29097
29097
|
return problem === void 0 ? { valid: true, url: decodeEndpointUrl(raw2) } : { valid: false, reason: `The endpoint ${problem}.` };
|
|
29098
29098
|
};
|
|
29099
29099
|
|
|
29100
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
29100
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspaces.js
|
|
29101
29101
|
var NonEmptyString15 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
29102
29102
|
var workspaceStatusSchema = Schema_exports.Literals([
|
|
29103
29103
|
"queued",
|
|
@@ -30550,10 +30550,10 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
|
|
|
30550
30550
|
]
|
|
30551
30551
|
})).annotate(OpenApi_exports.Description, "Workspace lifecycle, attempts, events, and runtime routing endpoints.");
|
|
30552
30552
|
|
|
30553
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30553
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/control-plane.js
|
|
30554
30554
|
var ControlPlaneAPI = HttpApi_exports.make("sealantControlPlaneApi").add(SystemGroup).add(PackagesGroup.prefix("/v1/packages")).add(WorkspacesGroup.prefix("/v1/workspaces")).add(SshKeysGroup.prefix("/v1/ssh-keys")).add(ConnectedAccountsGroup.prefix("/v1/connected-accounts")).add(ProfilesGroup.prefix("/v1/profiles")).add(InferenceGroup.prefix("/v1/inference")).add(RunsGroup.prefix("/v1/runs")).add(SessionsGroup.prefix("/v1/sessions")).add(AccessTokensGroup.prefix("/v1/access-tokens")).add(RegistriesGroup.prefix("/v1/registries")).add(GitHubGroup.prefix("/v1/github")).add(UsersGroup.prefix("/v1/users")).add(BoatAccountsGroup.prefix("/v1/boat-accounts")).add(ResourceDomainsGroup.prefix("/v1/resource-domains")).add(ResourceInstancesGroup.prefix("/v1/resource-domains")).middleware(RequestRefusal).middleware(RequestBudget).annotate(OpenApi_exports.Title, "Sealant Control Plane API").annotate(OpenApi_exports.Version, "0.0.0").annotate(OpenApi_exports.Description, "Sealant control-plane HTTP API.");
|
|
30555
30555
|
|
|
30556
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30556
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/record-events.js
|
|
30557
30557
|
var recordEventKindValues = [
|
|
30558
30558
|
"runtimeStateChanged",
|
|
30559
30559
|
"runtimeHeartbeat",
|
|
@@ -30695,7 +30695,7 @@ var decoders = {
|
|
|
30695
30695
|
networkSourceObserved: eventCase("networkSourceObserved", networkSourceObservedEventSchema)
|
|
30696
30696
|
};
|
|
30697
30697
|
|
|
30698
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30698
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspace-forward.js
|
|
30699
30699
|
var FORWARD_V2_MAX_FRAME_BYTES = 64 * 1024;
|
|
30700
30700
|
var forwardRefusalReasonSchema = Schema_exports.Literals([
|
|
30701
30701
|
"workspace-not-ready",
|
|
@@ -30773,7 +30773,7 @@ var forwardFlowFrameSchema = Schema_exports.Union([
|
|
|
30773
30773
|
]);
|
|
30774
30774
|
var decodeFlowFrame = Schema_exports.decodeUnknownOption(Schema_exports.fromJsonString(forwardFlowFrameSchema));
|
|
30775
30775
|
|
|
30776
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30776
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
|
|
30777
30777
|
var WORKSPACE_ENV_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/u;
|
|
30778
30778
|
var WORKSPACE_ENV_MAX_NAME_LENGTH = 128;
|
|
30779
30779
|
var RESERVED_PREFIXES = [
|
|
@@ -30876,7 +30876,7 @@ var providerLoginEnvNames = {
|
|
|
30876
30876
|
codex: ["OPENAI_API_KEY", "CODEX_API_KEY"]
|
|
30877
30877
|
};
|
|
30878
30878
|
|
|
30879
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30879
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.923_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/capture-owner-map.js
|
|
30880
30880
|
var CAPTURE_OWNER_MAP_UID_RANGE = { first: 40001, last: 49999 };
|
|
30881
30881
|
var UID_RANGE_TEXT = `${CAPTURE_OWNER_MAP_UID_RANGE.first}\u2013${CAPTURE_OWNER_MAP_UID_RANGE.last}`;
|
|
30882
30882
|
|
package/dist/main.js
CHANGED
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
workspaceRetirementLine,
|
|
132
132
|
worktreeJoinLine,
|
|
133
133
|
worktreeListsPeople
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-Y5NB6XZQ.js";
|
|
135
135
|
|
|
136
136
|
// ../../node_modules/.pnpm/tldts@7.4.6/node_modules/tldts/dist/cjs/index.js
|
|
137
137
|
var require_cjs = __commonJS({
|
|
@@ -3151,8 +3151,8 @@ var durationLine = (ms) => {
|
|
|
3151
3151
|
const minutes2 = Math.floor(seconds / 60);
|
|
3152
3152
|
const rest = seconds % 60;
|
|
3153
3153
|
if (minutes2 < 60) return rest === 0 ? `${minutes2} min` : `${minutes2} min ${rest} s`;
|
|
3154
|
-
const
|
|
3155
|
-
return minutes2 % 60 === 0 ? `${
|
|
3154
|
+
const hours2 = Math.floor(minutes2 / 60);
|
|
3155
|
+
return minutes2 % 60 === 0 ? `${hours2} h` : `${hours2} h ${minutes2 % 60} min`;
|
|
3156
3156
|
};
|
|
3157
3157
|
|
|
3158
3158
|
// ../../packages/domain/src/workbench/git-author.ts
|
|
@@ -9960,7 +9960,7 @@ var COMMANDS = [
|
|
|
9960
9960
|
summary: "install or change the local Mend server, guided",
|
|
9961
9961
|
synopsis: [
|
|
9962
9962
|
"",
|
|
9963
|
-
"[--yes] [--context <name>] [--version <version|latest>] [--bind <ip>] [--ssh-bind <ip>] [--url <origin>] [--origin <origin>...] [--port <n>] [--ssh-port <n>] [--edge <host> | --no-edge] [--exposure <loopback|private|public>] [--tenancy <single|multi>] [--declare <item>...] [--undeclare <item>...] [--t3-gateway [--t3-gateway-port <n>] [--t3-gateway-origin <host> | --no-t3-gateway-origin] | --no-t3-gateway] [--preview-domain <domain> --preview-certificate <file> --preview-key <file> | --no-preview-domain] [--preview-tailnet [--preview-tailnet-ports <list>] | --no-preview-tailnet] [--npm-mirror | --no-npm-mirror] [--npm-mirror-max-size <size>] [--docker-mirror | --no-docker-mirror] [--docker-mirror-max-size <size>] [--docker-hub-username <name> --docker-hub-token-stdin --docker-hub-public-only | --no-docker-hub-login] [--docker-socket <path>] [--assets-dir <dir>] [--offline] [--allow-userns | --no-allow-userns]"
|
|
9963
|
+
"[--yes] [--context <name>] [--version <version|latest>] [--bind <ip>] [--ssh-bind <ip>] [--url <origin>] [--origin <origin>...] [--port <n>] [--ssh-port <n>] [--edge <host> | --no-edge] [--exposure <loopback|private|public>] [--tenancy <single|multi>] [--declare <item>...] [--undeclare <item>...] [--t3-gateway [--t3-gateway-port <n>] [--t3-gateway-origin <host> | --no-t3-gateway-origin] | --no-t3-gateway] [--preview-domain <domain> --preview-certificate <file> --preview-key <file> | --no-preview-domain] [--preview-tailnet [--preview-tailnet-ports <list>] | --no-preview-tailnet] [--npm-mirror | --no-npm-mirror] [--npm-mirror-max-size <size>] [--docker-mirror | --no-docker-mirror] [--docker-mirror-max-size <size>] [--docker-hub-username <name> --docker-hub-token-stdin --docker-hub-public-only | --no-docker-hub-login] [--workspace-image-keep <n|default>] [--workspace-image-min-age <hours|default>] [--docker-socket <path>] [--assets-dir <dir>] [--offline] [--allow-userns | --no-allow-userns]"
|
|
9964
9964
|
],
|
|
9965
9965
|
description: [
|
|
9966
9966
|
"On a terminal with no flags, setup asks its questions in plain words, one at a time: on a fresh install with more than one Docker engine answering here (Docker Desktop beside OrbStack, colima, Rancher Desktop, a rootless Docker), which one Mend runs in, the current context in brackets; then how people reach this Mend (just this machine, your private network or Tailscale, or the public internet with HTTPS), whether VS Code Remote-SSH reaches it from other machines, the T3 Code gateway, the mirrors, and one organization or several. It looks before it asks and says what it observed: Tailscale's name and address and what Tailscale Serve forwards, where your domain resolves, and whether ports 80 and 443 are taken. It never asks for an address to bind: that follows from the answers. On an existing install it shows what is saved and lets you keep it, change one thing, or go through every question. It ends with what changes, in words, and the same command with flags; nothing applies until you say yes.",
|
|
@@ -10172,6 +10172,14 @@ var COMMANDS = [
|
|
|
10172
10172
|
text: "required with a login: you state the token is scoped Public Repo Read-only, since every session can pull what it can read"
|
|
10173
10173
|
},
|
|
10174
10174
|
{ flag: "--no-docker-hub-login", text: "the Docker mirror pulls anonymously again" },
|
|
10175
|
+
{
|
|
10176
|
+
flag: "--workspace-image-keep <n|default>",
|
|
10177
|
+
text: "how many of the most recently built workspace images, one per image definition, the bundled worker keeps with no workspace on them; kept across reruns and upgrades. Default: 10"
|
|
10178
|
+
},
|
|
10179
|
+
{
|
|
10180
|
+
flag: "--workspace-image-min-age <hours|default>",
|
|
10181
|
+
text: "the worker never removes a workspace image built within this many hours. Default: 168"
|
|
10182
|
+
},
|
|
10175
10183
|
{
|
|
10176
10184
|
flag: "--assets-dir <dir>",
|
|
10177
10185
|
text: "copy compose.v2.yaml and postgres-init.sh from a release directory; fresh setup requires --version"
|
|
@@ -16350,6 +16358,7 @@ var optionalFileKeys = [
|
|
|
16350
16358
|
"edge",
|
|
16351
16359
|
"caddyfile",
|
|
16352
16360
|
"mirrors",
|
|
16361
|
+
"workspaceImages",
|
|
16353
16362
|
"npmMirrorConf",
|
|
16354
16363
|
"dockerMirrorGuard",
|
|
16355
16364
|
"t3Gateway",
|
|
@@ -16372,6 +16381,7 @@ var fileNames = {
|
|
|
16372
16381
|
edge: "compose.edge.yaml",
|
|
16373
16382
|
caddyfile: "Caddyfile",
|
|
16374
16383
|
mirrors: "compose.mirrors.yaml",
|
|
16384
|
+
workspaceImages: "compose.workspace-images.yaml",
|
|
16375
16385
|
npmMirrorConf: "npm-mirror.conf",
|
|
16376
16386
|
dockerMirrorGuard: "docker-mirror-guard.sh",
|
|
16377
16387
|
t3Gateway: "compose.t3.yaml",
|
|
@@ -16396,6 +16406,7 @@ var fileModes = {
|
|
|
16396
16406
|
edge: 384,
|
|
16397
16407
|
caddyfile: 420,
|
|
16398
16408
|
mirrors: 384,
|
|
16409
|
+
workspaceImages: 384,
|
|
16399
16410
|
npmMirrorConf: 420,
|
|
16400
16411
|
dockerMirrorGuard: 420,
|
|
16401
16412
|
t3Gateway: 384,
|
|
@@ -16536,6 +16547,7 @@ var readActive = (paths) => {
|
|
|
16536
16547
|
const edge = optional("edge");
|
|
16537
16548
|
const caddyfile = optional("caddyfile");
|
|
16538
16549
|
const mirrors = optional("mirrors");
|
|
16550
|
+
const workspaceImages = optional("workspaceImages");
|
|
16539
16551
|
const npmMirrorConf = optional("npmMirrorConf");
|
|
16540
16552
|
const dockerMirrorGuard = optional("dockerMirrorGuard");
|
|
16541
16553
|
const t3Gateway = optional("t3Gateway");
|
|
@@ -16557,6 +16569,7 @@ var readActive = (paths) => {
|
|
|
16557
16569
|
...edge === void 0 ? {} : { edge },
|
|
16558
16570
|
...caddyfile === void 0 ? {} : { caddyfile },
|
|
16559
16571
|
...mirrors === void 0 ? {} : { mirrors },
|
|
16572
|
+
...workspaceImages === void 0 ? {} : { workspaceImages },
|
|
16560
16573
|
...npmMirrorConf === void 0 ? {} : { npmMirrorConf },
|
|
16561
16574
|
...dockerMirrorGuard === void 0 ? {} : { dockerMirrorGuard },
|
|
16562
16575
|
...t3Gateway === void 0 ? {} : { t3Gateway },
|
|
@@ -17840,6 +17853,74 @@ var renderRemoteEndpointsOverlay = (remote, edgeHost) => remote === void 0 ? voi
|
|
|
17840
17853
|
""
|
|
17841
17854
|
].join("\n");
|
|
17842
17855
|
|
|
17856
|
+
// src/server-workspace-images.ts
|
|
17857
|
+
var WORKSPACE_IMAGES_COMPOSE_FILE = "compose.workspace-images.yaml";
|
|
17858
|
+
var SEALANT_WORKSPACE_IMAGE_KEEP = 10;
|
|
17859
|
+
var SEALANT_WORKSPACE_IMAGE_MIN_AGE_HOURS = 168;
|
|
17860
|
+
var MAX_KEEP = 1e3;
|
|
17861
|
+
var MAX_MIN_AGE_HOURS = 87600;
|
|
17862
|
+
var wholeNumber = (value, max) => {
|
|
17863
|
+
if (!/^\d{1,6}$/.test(value)) return null;
|
|
17864
|
+
const parsed = Number(value);
|
|
17865
|
+
return parsed <= max ? parsed : null;
|
|
17866
|
+
};
|
|
17867
|
+
var parseWorkspaceImageKeep = (value) => value === "default" ? "default" : wholeNumber(value, MAX_KEEP);
|
|
17868
|
+
var parseWorkspaceImageMinAge = (value) => value === "default" ? "default" : wholeNumber(value, MAX_MIN_AGE_HOURS);
|
|
17869
|
+
var WORKSPACE_IMAGE_KEEP_RULE = `a whole number from 0 to ${MAX_KEEP}, or default`;
|
|
17870
|
+
var WORKSPACE_IMAGE_MIN_AGE_RULE = `a whole number of hours from 0 to ${MAX_MIN_AGE_HOURS}, or default`;
|
|
17871
|
+
var pick = (flag, kept) => flag === "default" ? void 0 : flag ?? kept;
|
|
17872
|
+
var resolveWorkspaceImages = (saved, options) => {
|
|
17873
|
+
const keep = pick(options.workspaceImageKeep, saved?.keep);
|
|
17874
|
+
const minAgeHours = pick(options.workspaceImageMinAge, saved?.minAgeHours);
|
|
17875
|
+
if (keep === void 0 && minAgeHours === void 0) return void 0;
|
|
17876
|
+
return {
|
|
17877
|
+
...keep === void 0 ? {} : { keep },
|
|
17878
|
+
...minAgeHours === void 0 ? {} : { minAgeHours }
|
|
17879
|
+
};
|
|
17880
|
+
};
|
|
17881
|
+
var parseWorkspaceImagesField = (raw) => {
|
|
17882
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return null;
|
|
17883
|
+
const fields = new Map(Object.entries(raw));
|
|
17884
|
+
if ([...fields.keys()].some((key) => key !== "keep" && key !== "minAgeHours")) return null;
|
|
17885
|
+
const read = (key, max) => {
|
|
17886
|
+
const value = fields.get(key);
|
|
17887
|
+
if (value === void 0) return void 0;
|
|
17888
|
+
return typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= max ? value : null;
|
|
17889
|
+
};
|
|
17890
|
+
const keep = read("keep", MAX_KEEP);
|
|
17891
|
+
const minAgeHours = read("minAgeHours", MAX_MIN_AGE_HOURS);
|
|
17892
|
+
if (keep === null || minAgeHours === null || keep === void 0 && minAgeHours === void 0)
|
|
17893
|
+
return null;
|
|
17894
|
+
return {
|
|
17895
|
+
...keep === void 0 ? {} : { keep },
|
|
17896
|
+
...minAgeHours === void 0 ? {} : { minAgeHours }
|
|
17897
|
+
};
|
|
17898
|
+
};
|
|
17899
|
+
var renderWorkspaceImagesOverlay = (images) => {
|
|
17900
|
+
if (images === void 0) return void 0;
|
|
17901
|
+
return [
|
|
17902
|
+
"# Written by mend server setup from server.json: how many workspace images the bundled",
|
|
17903
|
+
"# sealant worker keeps (--workspace-image-keep) and for how long (--workspace-image-min-age).",
|
|
17904
|
+
"# A value not named here is sealant's default.",
|
|
17905
|
+
"services:",
|
|
17906
|
+
" mend:",
|
|
17907
|
+
" environment:",
|
|
17908
|
+
...images.keep === void 0 ? [] : [` WORKSPACE_IMAGE_RETAINED_PLANS: "${images.keep}"`],
|
|
17909
|
+
...images.minAgeHours === void 0 ? [] : [` WORKSPACE_IMAGE_MIN_AGE_HOURS: "${images.minAgeHours}"`],
|
|
17910
|
+
""
|
|
17911
|
+
].join("\n");
|
|
17912
|
+
};
|
|
17913
|
+
var hours = (value) => value === 1 ? "1 hour" : `${value} hours`;
|
|
17914
|
+
var workspaceImagesLine = (images) => {
|
|
17915
|
+
const keep = images?.keep ?? SEALANT_WORKSPACE_IMAGE_KEEP;
|
|
17916
|
+
const minAge = images?.minAgeHours ?? SEALANT_WORKSPACE_IMAGE_MIN_AGE_HOURS;
|
|
17917
|
+
const source = images === void 0 ? "sealant's defaults, not set on this install" : images.keep === void 0 ? "the count is sealant's default" : images.minAgeHours === void 0 ? "the age is sealant's default" : "set on this install";
|
|
17918
|
+
return `workspace images \xB7 the worker keeps the newest ${keep} with no workspace on them, and any built in the last ${hours(minAge)} \xB7 ${source}`;
|
|
17919
|
+
};
|
|
17920
|
+
var workspaceImagesChangedLines = (before, after) => before?.keep === after?.keep && before?.minAgeHours === after?.minAgeHours ? [] : [
|
|
17921
|
+
`${workspaceImagesLine(after)}. The worker sweeps half a minute after Mend starts, then hourly.`
|
|
17922
|
+
];
|
|
17923
|
+
|
|
17843
17924
|
// src/server-edge.ts
|
|
17844
17925
|
var EXPOSURES = ["loopback", "private", "public"];
|
|
17845
17926
|
var TENANCIES = ["single", "multi"];
|
|
@@ -18094,6 +18175,7 @@ var composeOverlays = (posture) => [
|
|
|
18094
18175
|
...posture.edgeHost === void 0 ? [] : [EDGE_COMPOSE_FILE],
|
|
18095
18176
|
...renderPostureOverlay(posture) === void 0 ? [] : [POSTURE_COMPOSE_FILE],
|
|
18096
18177
|
...runsMirrors(posture.mirrors) ? [MIRRORS_COMPOSE_FILE] : [],
|
|
18178
|
+
...posture.workspaceImages === void 0 ? [] : [WORKSPACE_IMAGES_COMPOSE_FILE],
|
|
18097
18179
|
...posture.t3GatewayPort === void 0 ? [] : [T3_GATEWAY_COMPOSE_FILE],
|
|
18098
18180
|
...posture.preview === void 0 ? [] : [PREVIEW_COMPOSE_FILE],
|
|
18099
18181
|
...posture.remoteEndpoints === void 0 ? [] : [REMOTE_ENDPOINTS_COMPOSE_FILE],
|
|
@@ -25345,6 +25427,8 @@ var SETUP_FLAGS = /* @__PURE__ */ new Set([
|
|
|
25345
25427
|
"--docker-mirror",
|
|
25346
25428
|
"--no-docker-mirror",
|
|
25347
25429
|
"--docker-mirror-max-size",
|
|
25430
|
+
"--workspace-image-keep",
|
|
25431
|
+
"--workspace-image-min-age",
|
|
25348
25432
|
"--docker-hub-username",
|
|
25349
25433
|
"--docker-hub-token-stdin",
|
|
25350
25434
|
"--docker-hub-public-only",
|
|
@@ -25529,6 +25613,18 @@ var parseSetupOptions = (args) => {
|
|
|
25529
25613
|
);
|
|
25530
25614
|
if (dockerMirrorMaxSize !== void 0 && dockerMirror === false)
|
|
25531
25615
|
throw setupError("--docker-mirror-max-size and --no-docker-mirror contradict each other.");
|
|
25616
|
+
const keepFlag = flagValue("--workspace-image-keep");
|
|
25617
|
+
const workspaceImageKeep = keepFlag === void 0 ? void 0 : parseWorkspaceImageKeep(keepFlag);
|
|
25618
|
+
if (workspaceImageKeep === null)
|
|
25619
|
+
throw setupError(
|
|
25620
|
+
`--workspace-image-keep must be ${WORKSPACE_IMAGE_KEEP_RULE}, not "${keepFlag ?? ""}".`
|
|
25621
|
+
);
|
|
25622
|
+
const minAgeFlag = flagValue("--workspace-image-min-age");
|
|
25623
|
+
const workspaceImageMinAge = minAgeFlag === void 0 ? void 0 : parseWorkspaceImageMinAge(minAgeFlag);
|
|
25624
|
+
if (workspaceImageMinAge === null)
|
|
25625
|
+
throw setupError(
|
|
25626
|
+
`--workspace-image-min-age must be ${WORKSPACE_IMAGE_MIN_AGE_RULE}, not "${minAgeFlag ?? ""}".`
|
|
25627
|
+
);
|
|
25532
25628
|
const dockerHubUsername = flagValue("--docker-hub-username");
|
|
25533
25629
|
const dockerHubTokenStdin = values.has("--docker-hub-token-stdin");
|
|
25534
25630
|
const noDockerHubLogin = values.has("--no-docker-hub-login");
|
|
@@ -25656,6 +25752,8 @@ var parseSetupOptions = (args) => {
|
|
|
25656
25752
|
npmMirrorMaxSize,
|
|
25657
25753
|
dockerMirror,
|
|
25658
25754
|
dockerMirrorMaxSize,
|
|
25755
|
+
workspaceImageKeep,
|
|
25756
|
+
workspaceImageMinAge,
|
|
25659
25757
|
dockerHubUsername,
|
|
25660
25758
|
dockerHubTokenStdin,
|
|
25661
25759
|
noDockerHubLogin,
|
|
@@ -26048,6 +26146,11 @@ var parseServerConfig = (raw) => {
|
|
|
26048
26146
|
const remoteEndpoints = fields.has("remoteEndpoints") ? remoteEndpointsOf(fields.get("remoteEndpoints")) : void 0;
|
|
26049
26147
|
const boat = fields.has("boat") ? parseBoatField(fields.get("boat")) : void 0;
|
|
26050
26148
|
if (boat !== void 0 && remoteEndpoints === void 0) throw setupError(BOAT_NEEDS_ENDPOINTS);
|
|
26149
|
+
const workspaceImages = fields.has("workspaceImages") ? parseWorkspaceImagesField(fields.get("workspaceImages")) : void 0;
|
|
26150
|
+
if (workspaceImages === null)
|
|
26151
|
+
throw setupError(
|
|
26152
|
+
"Server config is corrupt: workspaceImages must hold keep and minAgeHours, each a whole number. Run mend server setup with --workspace-image-keep and --workspace-image-min-age."
|
|
26153
|
+
);
|
|
26051
26154
|
const config = {
|
|
26052
26155
|
...fields.has("sessionRuntime") ? { sessionRuntime: sessionRuntimeOf(fields.get("sessionRuntime")) } : {},
|
|
26053
26156
|
...fields.has("sessionRuntimes") ? { sessionRuntimes: savedSessionRuntimesOf(fields.get("sessionRuntimes")) } : {},
|
|
@@ -26075,6 +26178,7 @@ var parseServerConfig = (raw) => {
|
|
|
26075
26178
|
...tenancy === void 0 ? {} : { tenancy },
|
|
26076
26179
|
...declared.length === 0 ? {} : { declared },
|
|
26077
26180
|
...fields.has("mirrors") ? { mirrors: parseMirrorsField(fields.get("mirrors")) } : {},
|
|
26181
|
+
...workspaceImages === void 0 ? {} : { workspaceImages },
|
|
26078
26182
|
...t3GatewayPort === void 0 ? {} : { t3GatewayPort },
|
|
26079
26183
|
...t3GatewayOrigin === void 0 ? {} : { t3GatewayOrigin },
|
|
26080
26184
|
...preview === void 0 ? {} : { preview }
|
|
@@ -26115,6 +26219,8 @@ var parseServerConfig = (raw) => {
|
|
|
26115
26219
|
npmMirrorMaxSize: void 0,
|
|
26116
26220
|
dockerMirror: void 0,
|
|
26117
26221
|
dockerMirrorMaxSize: void 0,
|
|
26222
|
+
workspaceImageKeep: void 0,
|
|
26223
|
+
workspaceImageMinAge: void 0,
|
|
26118
26224
|
dockerHubUsername: void 0,
|
|
26119
26225
|
dockerHubTokenStdin: false,
|
|
26120
26226
|
noDockerHubLogin: false,
|
|
@@ -26684,6 +26790,10 @@ var validateOverlays = (config, files, envKeys) => {
|
|
|
26684
26790
|
"Server generation is corrupt: remote workspace endpoints do not match the saved settings."
|
|
26685
26791
|
);
|
|
26686
26792
|
checkRemoteEndpointsAsset(config, config.bucket);
|
|
26793
|
+
if (files.workspaceImages !== renderWorkspaceImagesOverlay(config.workspaceImages))
|
|
26794
|
+
throw setupError(
|
|
26795
|
+
`Server generation is corrupt: ${WORKSPACE_IMAGES_COMPOSE_FILE} does not match the saved workspace image settings.`
|
|
26796
|
+
);
|
|
26687
26797
|
if (!isBoatOverlayOf(files.boat, config.boat))
|
|
26688
26798
|
throw setupError(
|
|
26689
26799
|
"Server generation is corrupt: compose.boat.yaml does not match the saved Boat settings."
|
|
@@ -26902,6 +27012,7 @@ var readServerInstallationFacts = async (configDir) => {
|
|
|
26902
27012
|
...generation.files.caddyfile === void 0 ? [] : [{ name: "Caddyfile", content: generation.files.caddyfile }],
|
|
26903
27013
|
...generation.files.posture === void 0 ? [] : [{ name: "compose.posture.yaml", content: generation.files.posture }],
|
|
26904
27014
|
...generation.files.mirrors === void 0 ? [] : [{ name: MIRRORS_COMPOSE_FILE, content: generation.files.mirrors }],
|
|
27015
|
+
...generation.files.workspaceImages === void 0 ? [] : [{ name: WORKSPACE_IMAGES_COMPOSE_FILE, content: generation.files.workspaceImages }],
|
|
26905
27016
|
...generation.files.npmMirrorConf === void 0 ? [] : [{ name: NPM_MIRROR_CONF_NAME, content: generation.files.npmMirrorConf }],
|
|
26906
27017
|
...generation.files.dockerMirrorGuard === void 0 ? [] : [{ name: DOCKER_MIRROR_GUARD_NAME, content: generation.files.dockerMirrorGuard }],
|
|
26907
27018
|
...generation.files.t3Gateway === void 0 ? [] : [{ name: "compose.t3.yaml", content: generation.files.t3Gateway }],
|
|
@@ -26955,6 +27066,7 @@ var renderPreviewFiles = (config, pem) => {
|
|
|
26955
27066
|
var generationFiles = (config, secrets, assets, previewPem, identity = renderIdentity(secrets)) => {
|
|
26956
27067
|
const posture = renderPostureOverlay(config);
|
|
26957
27068
|
const mirrors = renderMirrorsOverlay(config.mirrors);
|
|
27069
|
+
const workspaceImages = renderWorkspaceImagesOverlay(config.workspaceImages);
|
|
26958
27070
|
const t3Gateway = renderT3GatewayOverlay(config);
|
|
26959
27071
|
const remoteEndpoints = renderRemoteEndpointsOverlay(config.remoteEndpoints, config.edgeHost);
|
|
26960
27072
|
const remoteEndpointsCaddyfile = edgeServedEndpoints(config.remoteEndpoints, config.edgeHost) === void 0 ? void 0 : REMOTE_ENDPOINTS_CADDYFILE;
|
|
@@ -26975,6 +27087,7 @@ var generationFiles = (config, secrets, assets, previewPem, identity = renderIde
|
|
|
26975
27087
|
...renderPreviewFiles(config, previewPem),
|
|
26976
27088
|
...config.edgeHost === void 0 ? {} : { edge: EDGE_COMPOSE_OVERLAY, caddyfile: EDGE_CADDYFILE },
|
|
26977
27089
|
...mirrors === void 0 ? {} : { mirrors },
|
|
27090
|
+
...workspaceImages === void 0 ? {} : { workspaceImages },
|
|
26978
27091
|
...config.mirrors === void 0 || config.mirrors.npm === null ? {} : { npmMirrorConf: NPM_MIRROR_CONF },
|
|
26979
27092
|
...config.mirrors === void 0 || config.mirrors.docker === null ? {} : { dockerMirrorGuard: DOCKER_MIRROR_GUARD }
|
|
26980
27093
|
};
|
|
@@ -27965,6 +28078,7 @@ var setupServer = async (args, runtime, store, run2 = {}) => {
|
|
|
27965
28078
|
const userNamespaces = run2.userNamespaces !== void 0 ? run2.userNamespaces.reminder : noDockerSessions(options, existing2?.config ?? null) ? null : await settleHostUserNamespaces(runtime, options, selectedContext.name);
|
|
27966
28079
|
const serverVersion = await resolveServerVersion(runtime, options, existing2?.config ?? null);
|
|
27967
28080
|
const mirrors = resolveMirrors(existing2?.config.mirrors, options);
|
|
28081
|
+
const workspaceImages = resolveWorkspaceImages(existing2?.config.workspaceImages, options);
|
|
27968
28082
|
const configWithoutBucket = {
|
|
27969
28083
|
schemaVersion: CONFIG_SCHEMA_VERSION,
|
|
27970
28084
|
assetContract: ASSET_CONTRACT,
|
|
@@ -27976,7 +28090,8 @@ var setupServer = async (args, runtime, store, run2 = {}) => {
|
|
|
27976
28090
|
operatingSystem
|
|
27977
28091
|
}),
|
|
27978
28092
|
...validateExposure(existing2?.config ?? null, options, tailnet),
|
|
27979
|
-
mirrors
|
|
28093
|
+
mirrors,
|
|
28094
|
+
...workspaceImages === void 0 ? {} : { workspaceImages }
|
|
27980
28095
|
};
|
|
27981
28096
|
const dockerHubToken = await resolveDockerHubToken(runtime, options, mirrors, store);
|
|
27982
28097
|
const boatKey = await resolveServerBoatKey(runtime, options, configWithoutBucket.boat, store);
|
|
@@ -28108,6 +28223,11 @@ var setupServer = async (args, runtime, store, run2 = {}) => {
|
|
|
28108
28223
|
);
|
|
28109
28224
|
}
|
|
28110
28225
|
for (const line of mirrorsChangedLines(existing2?.config.mirrors, config)) runtime.writeLine(line);
|
|
28226
|
+
for (const line of workspaceImagesChangedLines(
|
|
28227
|
+
existing2?.config.workspaceImages,
|
|
28228
|
+
config.workspaceImages
|
|
28229
|
+
))
|
|
28230
|
+
runtime.writeLine(line);
|
|
28111
28231
|
const urlChanged = existing2 !== null && existing2.config.appUrl !== config.appUrl;
|
|
28112
28232
|
const cliHere = urlChanged ? await followUrlChange(runtime, options, existing2.config, config, instance) : await offerCliHere(runtime, options, existing2?.config ?? null, config, instance);
|
|
28113
28233
|
const users = await instanceUsers(runtime, healthOrigin(config));
|
|
@@ -28838,6 +28958,7 @@ var serverStatus = async (runtime, installation) => {
|
|
|
28838
28958
|
runtime.writeLine(`Pinned Mend ${config.serverVersion} at ${config.appUrl}`);
|
|
28839
28959
|
runtime.writeLine(`Active generation: ${installation.directory}`);
|
|
28840
28960
|
for (const line of declaredPostureLines(config)) runtime.writeLine(line);
|
|
28961
|
+
runtime.writeLine(workspaceImagesLine(config.workspaceImages));
|
|
28841
28962
|
const state = await composeCommand(runtime, installation, ["ps", "--all"]);
|
|
28842
28963
|
runtime.writeLine(state.stdout.trim() || "No Compose containers found. Run mend server start.");
|
|
28843
28964
|
const running = await composeCommand(runtime, installation, [
|
|
@@ -34719,10 +34840,10 @@ var localCredential = (provider) => {
|
|
|
34719
34840
|
var isKeyAccount = (account) => account.login?.kind === "api-key";
|
|
34720
34841
|
var accountFacts = (account, classes = isKeyAccount(account)) => {
|
|
34721
34842
|
const meta = account.metadata;
|
|
34722
|
-
const
|
|
34723
|
-
const identity =
|
|
34843
|
+
const pick2 = (key2) => typeof meta[key2] === "string" ? meta[key2] : null;
|
|
34844
|
+
const identity = pick2("login") ?? pick2("email") ?? pick2("accountEmail") ?? pick2("accountId");
|
|
34724
34845
|
const key = isKeyAccount(account);
|
|
34725
|
-
const suffix = key ? null :
|
|
34846
|
+
const suffix = key ? null : pick2("tokenSuffix");
|
|
34726
34847
|
const facts = [
|
|
34727
34848
|
account.status === "active" ? "connected" : account.status === "invalid" ? key && account.provider !== "github" ? `reconnect needed \xB7 ${keyRefusedWords(account.provider)}` : "reconnect needed \xB7 the provider refused the login" : account.status,
|
|
34728
34849
|
classes && account.login !== void 0 ? loginWords(account.provider, account.login, "added-it") : null,
|
|
@@ -36779,7 +36900,7 @@ var dashboard = async (config, options = {}) => {
|
|
|
36779
36900
|
);
|
|
36780
36901
|
process.exit(rerun.status ?? 0);
|
|
36781
36902
|
}
|
|
36782
|
-
const { runDashboard } = await import("./dashboard-
|
|
36903
|
+
const { runDashboard } = await import("./dashboard-UTFONB6B.js");
|
|
36783
36904
|
const gitAccessMode = await readGitAccessMode(config);
|
|
36784
36905
|
const agentShare = await startShareIfBridge(config, gitAccessMode);
|
|
36785
36906
|
const tunnels = options.noTunnel === true || serverIsLocal(config) ? null : createServiceTunnels({
|
package/man/mend-accounts.1
CHANGED
package/man/mend-adopt.1
CHANGED
package/man/mend-agent-install.1
CHANGED
package/man/mend-agent-logins.1
CHANGED