@sealant/mend 0.37.0-next.1397 → 0.37.0-next.1401
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-ACIZ2XQQ.js → chunk-G457OZFS.js} +434 -342
- package/dist/{dashboard-7YGTCNL2.js → dashboard-N7U2GC2B.js} +1 -1
- package/dist/main.js +2 -2
- 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-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 +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-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
|
@@ -26442,13 +26442,13 @@ var make32 = (identifier2, options2) => makeProto4({
|
|
|
26442
26442
|
annotations: empty3()
|
|
26443
26443
|
});
|
|
26444
26444
|
|
|
26445
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26445
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/person-id.js
|
|
26446
26446
|
var RESOURCE_DOMAIN_ID_PREFIX = "rdm:";
|
|
26447
26447
|
var isResourceDomainId = (id2) => id2.startsWith(RESOURCE_DOMAIN_ID_PREFIX);
|
|
26448
26448
|
var NOT_A_PERSON = "names a resource domain, which never holds a login or a provider credential and never runs a harness";
|
|
26449
26449
|
var PersonId = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed(), Schema_exports.makeFilter((id2) => isResourceDomainId(id2) ? NOT_A_PERSON : void 0));
|
|
26450
26450
|
|
|
26451
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26451
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/connected-accounts.js
|
|
26452
26452
|
var NonEmptyString2 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26453
26453
|
var connectedAccountProviderSchema = Schema_exports.Literals(["claude", "codex", "github"]);
|
|
26454
26454
|
var connectedAccountStatusSchema = Schema_exports.Literals(["active", "invalid", "archived"]);
|
|
@@ -26633,7 +26633,7 @@ var ConnectedAccountsGroup = HttpApiGroup_exports.make("connectedAccounts").add(
|
|
|
26633
26633
|
]
|
|
26634
26634
|
})).annotate(OpenApi_exports.Description, "Connected provider accounts (Claude / Codex / GitHub credentials). Secret material is never returned by any endpoint.");
|
|
26635
26635
|
|
|
26636
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26636
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/access-tokens.js
|
|
26637
26637
|
var NonEmptyString3 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26638
26638
|
var accessTokenScopeSchema = Schema_exports.Literals([
|
|
26639
26639
|
"session:read",
|
|
@@ -26692,7 +26692,99 @@ var AccessTokensGroup = HttpApiGroup_exports.make("accessTokens").add(HttpApiEnd
|
|
|
26692
26692
|
error: [AccessTokenBadRequestError, AccessTokenNotFoundError, AccessTokenInternalServerError]
|
|
26693
26693
|
})).annotate(OpenApi_exports.Description, "Scoped bearer tokens for the session surface.");
|
|
26694
26694
|
|
|
26695
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26695
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/boat-accounts.js
|
|
26696
|
+
var NonEmptyString4 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26697
|
+
var SecretString = Schema_exports.String.check(Schema_exports.isNonEmpty());
|
|
26698
|
+
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}$/));
|
|
26699
|
+
var boatAccountSchema = Schema_exports.Struct({
|
|
26700
|
+
boatAccountId: BoatAccountId,
|
|
26701
|
+
label: NonEmptyString4,
|
|
26702
|
+
/** `active`: workspaces may run in it. `removing`: its removal was asked; none may. */
|
|
26703
|
+
state: Schema_exports.Literals(["active", "removing"]),
|
|
26704
|
+
createdAt: Schema_exports.String,
|
|
26705
|
+
/** When its key was last replaced; null when it still has the key it was created with. */
|
|
26706
|
+
keyRotatedAt: Schema_exports.NullOr(Schema_exports.String)
|
|
26707
|
+
});
|
|
26708
|
+
var createBoatAccountRequestSchema = Schema_exports.Struct({
|
|
26709
|
+
/** The caller's name for the account (an organization's name, say). At most 200 characters. */
|
|
26710
|
+
label: NonEmptyString4,
|
|
26711
|
+
/** The Boat API key. Checked with Boat by one read-only call before it is stored. */
|
|
26712
|
+
apiKey: SecretString
|
|
26713
|
+
});
|
|
26714
|
+
var rotateBoatAccountKeyRequestSchema = Schema_exports.Struct({
|
|
26715
|
+
/** The new Boat API key, for the same Boat account: it must see every VM the account runs. */
|
|
26716
|
+
apiKey: SecretString
|
|
26717
|
+
});
|
|
26718
|
+
var listBoatAccountsResponseSchema = Schema_exports.Struct({
|
|
26719
|
+
items: Schema_exports.Array(boatAccountSchema)
|
|
26720
|
+
});
|
|
26721
|
+
var BoatAccountBadRequestError = class extends Schema_exports.TaggedError()("BoatAccountBadRequestError", { message: Schema_exports.String }, { httpApiStatus: 400 }) {
|
|
26722
|
+
};
|
|
26723
|
+
var BoatAccountKeyRefusedError = class extends Schema_exports.TaggedError()("BoatAccountKeyRefusedError", {
|
|
26724
|
+
message: Schema_exports.String,
|
|
26725
|
+
code: Schema_exports.Literals(["boat-key-refused", "boat-key-unverified"])
|
|
26726
|
+
}, { httpApiStatus: 422 }) {
|
|
26727
|
+
};
|
|
26728
|
+
var BoatAccountNotFoundError = class extends Schema_exports.TaggedError()("BoatAccountNotFoundError", { message: Schema_exports.String }, { httpApiStatus: 404 }) {
|
|
26729
|
+
};
|
|
26730
|
+
var BoatAccountConflictError = class extends Schema_exports.TaggedError()("BoatAccountConflictError", {
|
|
26731
|
+
message: Schema_exports.String,
|
|
26732
|
+
code: Schema_exports.Literals([
|
|
26733
|
+
"boat-account-in-use",
|
|
26734
|
+
"boat-key-cannot-see",
|
|
26735
|
+
"boat-account-removing",
|
|
26736
|
+
"boat-account-changed"
|
|
26737
|
+
]),
|
|
26738
|
+
liveRuns: Schema_exports.optional(Schema_exports.Int),
|
|
26739
|
+
buildsInFlight: Schema_exports.optional(Schema_exports.Int),
|
|
26740
|
+
unseen: Schema_exports.optional(Schema_exports.Int)
|
|
26741
|
+
}, { httpApiStatus: 409 }) {
|
|
26742
|
+
};
|
|
26743
|
+
var BoatAccountServiceUnavailableError = class extends Schema_exports.TaggedError()("BoatAccountServiceUnavailableError", { message: Schema_exports.String }, { httpApiStatus: 503 }) {
|
|
26744
|
+
};
|
|
26745
|
+
var BoatAccountInternalServerError = class extends Schema_exports.TaggedError()("BoatAccountInternalServerError", { message: Schema_exports.String }, { httpApiStatus: 500 }) {
|
|
26746
|
+
};
|
|
26747
|
+
var boatAccountIdParams = Schema_exports.Struct({ boatAccountId: BoatAccountId });
|
|
26748
|
+
var BoatAccountsGroup = HttpApiGroup_exports.make("boatAccounts").add(HttpApiEndpoint_exports.post("createBoatAccount", "/", {
|
|
26749
|
+
payload: createBoatAccountRequestSchema,
|
|
26750
|
+
success: boatAccountSchema.pipe(HttpApiSchema_exports.status(201)),
|
|
26751
|
+
error: [
|
|
26752
|
+
BoatAccountBadRequestError,
|
|
26753
|
+
BoatAccountKeyRefusedError,
|
|
26754
|
+
BoatAccountServiceUnavailableError,
|
|
26755
|
+
BoatAccountInternalServerError
|
|
26756
|
+
]
|
|
26757
|
+
})).add(HttpApiEndpoint_exports.get("listBoatAccounts", "/", {
|
|
26758
|
+
success: listBoatAccountsResponseSchema,
|
|
26759
|
+
error: [BoatAccountServiceUnavailableError, BoatAccountInternalServerError]
|
|
26760
|
+
})).add(HttpApiEndpoint_exports.put("rotateBoatAccountKey", "/:boatAccountId/key", {
|
|
26761
|
+
params: boatAccountIdParams,
|
|
26762
|
+
payload: rotateBoatAccountKeyRequestSchema,
|
|
26763
|
+
success: boatAccountSchema,
|
|
26764
|
+
error: [
|
|
26765
|
+
BoatAccountBadRequestError,
|
|
26766
|
+
BoatAccountKeyRefusedError,
|
|
26767
|
+
BoatAccountNotFoundError,
|
|
26768
|
+
BoatAccountConflictError,
|
|
26769
|
+
BoatAccountServiceUnavailableError,
|
|
26770
|
+
BoatAccountInternalServerError
|
|
26771
|
+
]
|
|
26772
|
+
})).add(
|
|
26773
|
+
// The removal's first step: the account takes no new workspace at once, and its saved images
|
|
26774
|
+
// are deleted from Boat by the worker before it is gone from the list.
|
|
26775
|
+
HttpApiEndpoint_exports.delete("removeBoatAccount", "/:boatAccountId", {
|
|
26776
|
+
params: boatAccountIdParams,
|
|
26777
|
+
success: boatAccountSchema,
|
|
26778
|
+
error: [
|
|
26779
|
+
BoatAccountNotFoundError,
|
|
26780
|
+
BoatAccountConflictError,
|
|
26781
|
+
BoatAccountServiceUnavailableError,
|
|
26782
|
+
BoatAccountInternalServerError
|
|
26783
|
+
]
|
|
26784
|
+
})
|
|
26785
|
+
).annotate(OpenApi_exports.Description, "The Boat API keys an install keeps beside its default one: one Boat account each, for the workspaces that name it.");
|
|
26786
|
+
|
|
26787
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/budgets.js
|
|
26696
26788
|
var requestBudgetRefusalSchema = Schema_exports.Struct({
|
|
26697
26789
|
phase: Schema_exports.Literal("before-work"),
|
|
26698
26790
|
bucket: Schema_exports.Literals(["owner", "unowned", "key", "principal"])
|
|
@@ -26709,7 +26801,7 @@ var BudgetExceededError = class extends Schema_exports.TaggedError()("BudgetExce
|
|
|
26709
26801
|
var RequestBudget = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestBudget", { error: BudgetExceededError }) {
|
|
26710
26802
|
};
|
|
26711
26803
|
|
|
26712
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26804
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/github.js
|
|
26713
26805
|
var GitHubInstallationAccountTypeSchema = Schema_exports.Literals(["organization", "user"]);
|
|
26714
26806
|
var GitHubInstallationStatusSchema = Schema_exports.Literals(["active", "suspended", "deleted"]);
|
|
26715
26807
|
var GitHubInstallationRepositorySelectionSchema = Schema_exports.Literals(["all", "selected"]);
|
|
@@ -26719,7 +26811,7 @@ var GitHubWebhookDeliveryStatusSchema = Schema_exports.Literals([
|
|
|
26719
26811
|
"failed",
|
|
26720
26812
|
"ignored"
|
|
26721
26813
|
]);
|
|
26722
|
-
var
|
|
26814
|
+
var NonEmptyString5 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26723
26815
|
var messageResponseSchema = Schema_exports.Struct({
|
|
26724
26816
|
message: Schema_exports.String
|
|
26725
26817
|
});
|
|
@@ -26728,38 +26820,38 @@ var githubInstallationsQuerySchema = Schema_exports.Struct({
|
|
|
26728
26820
|
});
|
|
26729
26821
|
var githubInstallationRepositoriesQuerySchema = Schema_exports.Struct({
|
|
26730
26822
|
userId: PersonId,
|
|
26731
|
-
search: Schema_exports.optional(
|
|
26823
|
+
search: Schema_exports.optional(NonEmptyString5)
|
|
26732
26824
|
});
|
|
26733
26825
|
var syncGitHubInstallationQuerySchema = Schema_exports.Struct({
|
|
26734
26826
|
userId: PersonId
|
|
26735
26827
|
});
|
|
26736
26828
|
var importGitHubInstallationRequestSchema = Schema_exports.Struct({
|
|
26737
26829
|
userId: PersonId,
|
|
26738
|
-
externalInstallationId:
|
|
26830
|
+
externalInstallationId: NonEmptyString5
|
|
26739
26831
|
});
|
|
26740
26832
|
var githubWebhookHeadersSchema = Schema_exports.Struct({
|
|
26741
|
-
"x-github-delivery": Schema_exports.optional(
|
|
26742
|
-
"x-github-event": Schema_exports.optional(
|
|
26743
|
-
"x-hub-signature-256": Schema_exports.optional(
|
|
26833
|
+
"x-github-delivery": Schema_exports.optional(NonEmptyString5),
|
|
26834
|
+
"x-github-event": Schema_exports.optional(NonEmptyString5),
|
|
26835
|
+
"x-hub-signature-256": Schema_exports.optional(NonEmptyString5)
|
|
26744
26836
|
});
|
|
26745
26837
|
var githubInstallationSummarySchema = Schema_exports.Struct({
|
|
26746
|
-
installationId:
|
|
26747
|
-
externalInstallationId:
|
|
26748
|
-
accountLogin:
|
|
26838
|
+
installationId: NonEmptyString5,
|
|
26839
|
+
externalInstallationId: NonEmptyString5,
|
|
26840
|
+
accountLogin: NonEmptyString5,
|
|
26749
26841
|
accountType: GitHubInstallationAccountTypeSchema,
|
|
26750
26842
|
status: GitHubInstallationStatusSchema,
|
|
26751
26843
|
repositorySelection: GitHubInstallationRepositorySelectionSchema,
|
|
26752
26844
|
lastSyncedAt: Schema_exports.optional(Schema_exports.String)
|
|
26753
26845
|
});
|
|
26754
26846
|
var githubInstallationRepositorySummarySchema = Schema_exports.Struct({
|
|
26755
|
-
installationRepositoryId:
|
|
26756
|
-
installationId:
|
|
26757
|
-
repositoryId:
|
|
26758
|
-
externalRepositoryId:
|
|
26759
|
-
owner:
|
|
26760
|
-
name:
|
|
26761
|
-
fullName:
|
|
26762
|
-
defaultBranch:
|
|
26847
|
+
installationRepositoryId: NonEmptyString5,
|
|
26848
|
+
installationId: NonEmptyString5,
|
|
26849
|
+
repositoryId: NonEmptyString5,
|
|
26850
|
+
externalRepositoryId: NonEmptyString5,
|
|
26851
|
+
owner: NonEmptyString5,
|
|
26852
|
+
name: NonEmptyString5,
|
|
26853
|
+
fullName: NonEmptyString5,
|
|
26854
|
+
defaultBranch: NonEmptyString5,
|
|
26763
26855
|
isPrivate: Schema_exports.Boolean,
|
|
26764
26856
|
isArchived: Schema_exports.Boolean,
|
|
26765
26857
|
lastSyncedAt: Schema_exports.optional(Schema_exports.String)
|
|
@@ -26771,7 +26863,7 @@ var listGitHubInstallationRepositoriesResponseSchema = Schema_exports.Struct({
|
|
|
26771
26863
|
items: Schema_exports.Array(githubInstallationRepositorySummarySchema)
|
|
26772
26864
|
});
|
|
26773
26865
|
var syncGitHubInstallationResponseSchema = Schema_exports.Struct({
|
|
26774
|
-
installationId:
|
|
26866
|
+
installationId: NonEmptyString5,
|
|
26775
26867
|
syncedRepositoryCount: Schema_exports.Number.check(Schema_exports.isGreaterThanOrEqualTo(0)),
|
|
26776
26868
|
syncedAt: Schema_exports.String
|
|
26777
26869
|
});
|
|
@@ -26781,7 +26873,7 @@ var importGitHubInstallationResponseSchema = Schema_exports.Struct({
|
|
|
26781
26873
|
syncedAt: Schema_exports.String
|
|
26782
26874
|
});
|
|
26783
26875
|
var githubWebhookResponseSchema = Schema_exports.Struct({
|
|
26784
|
-
deliveryId:
|
|
26876
|
+
deliveryId: NonEmptyString5,
|
|
26785
26877
|
status: GitHubWebhookDeliveryStatusSchema
|
|
26786
26878
|
});
|
|
26787
26879
|
var GitHubBadRequestError = class extends Schema_exports.TaggedError()("GitHubBadRequestError", {
|
|
@@ -26808,7 +26900,7 @@ var GitHubInternalServerError = class extends Schema_exports.TaggedError()("GitH
|
|
|
26808
26900
|
message: Schema_exports.String
|
|
26809
26901
|
}, { httpApiStatus: 500 }) {
|
|
26810
26902
|
};
|
|
26811
|
-
var installationIdParams = Schema_exports.Struct({ installationId:
|
|
26903
|
+
var installationIdParams = Schema_exports.Struct({ installationId: NonEmptyString5 });
|
|
26812
26904
|
var GitHubGroup = HttpApiGroup_exports.make("github").add(HttpApiEndpoint_exports.get("listInstallations", "/installations", {
|
|
26813
26905
|
query: githubInstallationsQuerySchema,
|
|
26814
26906
|
success: listGitHubInstallationsResponseSchema,
|
|
@@ -26850,20 +26942,20 @@ var GitHubGroup = HttpApiGroup_exports.make("github").add(HttpApiEndpoint_export
|
|
|
26850
26942
|
})).annotate(OpenApi_exports.Description, "GitHub App installation and webhook control-plane operations.");
|
|
26851
26943
|
var GitHubApi = HttpApi_exports.make("sealantGitHubApi").add(GitHubGroup).annotate(OpenApi_exports.Title, "Sealant Control Plane API - GitHub").annotate(OpenApi_exports.Version, "0.0.0");
|
|
26852
26944
|
|
|
26853
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26854
|
-
var
|
|
26945
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/inference.js
|
|
26946
|
+
var NonEmptyString6 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26855
26947
|
var inferenceCredentialsSchema = Schema_exports.Struct({
|
|
26856
|
-
profileId: Schema_exports.optional(
|
|
26857
|
-
claude: Schema_exports.optional(
|
|
26858
|
-
codex: Schema_exports.optional(
|
|
26948
|
+
profileId: Schema_exports.optional(NonEmptyString6),
|
|
26949
|
+
claude: Schema_exports.optional(NonEmptyString6),
|
|
26950
|
+
codex: Schema_exports.optional(NonEmptyString6)
|
|
26859
26951
|
});
|
|
26860
26952
|
var inferenceToolSchema = Schema_exports.Struct({
|
|
26861
|
-
name:
|
|
26953
|
+
name: NonEmptyString6,
|
|
26862
26954
|
description: Schema_exports.optional(Schema_exports.String),
|
|
26863
26955
|
inputSchema: Schema_exports.Unknown
|
|
26864
26956
|
});
|
|
26865
26957
|
var inferenceToolResultSchema = Schema_exports.Struct({
|
|
26866
|
-
toolCallId:
|
|
26958
|
+
toolCallId: NonEmptyString6,
|
|
26867
26959
|
content: Schema_exports.String,
|
|
26868
26960
|
isError: Schema_exports.optional(Schema_exports.Boolean)
|
|
26869
26961
|
});
|
|
@@ -26873,7 +26965,7 @@ var inferenceRespondRequestSchema = Schema_exports.Struct({
|
|
|
26873
26965
|
prompt: Schema_exports.optional(Schema_exports.String.check(Schema_exports.isNonEmpty())),
|
|
26874
26966
|
system: Schema_exports.optional(Schema_exports.String),
|
|
26875
26967
|
/** Model override passed to the official runtime verbatim (defaults to the runtime's default). */
|
|
26876
|
-
model: Schema_exports.optional(
|
|
26968
|
+
model: Schema_exports.optional(NonEmptyString6),
|
|
26877
26969
|
/** Upper bound on agentic turns within one exchange (default 16). Claude-only; ignored by codex. */
|
|
26878
26970
|
maxTurns: Schema_exports.optional(Schema_exports.Number.check(Schema_exports.isInt(), Schema_exports.isBetween({ minimum: 1, maximum: 64 }))),
|
|
26879
26971
|
tools: Schema_exports.optional(Schema_exports.Array(inferenceToolSchema).check(Schema_exports.isMaxLength(32))),
|
|
@@ -26893,12 +26985,12 @@ var inferenceRespondRequestSchema = Schema_exports.Struct({
|
|
|
26893
26985
|
* Checked against the account the selection resolved to.
|
|
26894
26986
|
*/
|
|
26895
26987
|
allowedLogin: Schema_exports.optional(Schema_exports.Literals(["subscription", "any"])),
|
|
26896
|
-
sessionId: Schema_exports.optional(
|
|
26988
|
+
sessionId: Schema_exports.optional(NonEmptyString6),
|
|
26897
26989
|
toolResults: Schema_exports.optional(Schema_exports.Array(inferenceToolResultSchema).check(Schema_exports.isNonEmpty()))
|
|
26898
26990
|
});
|
|
26899
26991
|
var inferenceToolCallSchema = Schema_exports.Struct({
|
|
26900
|
-
toolCallId:
|
|
26901
|
-
name:
|
|
26992
|
+
toolCallId: NonEmptyString6,
|
|
26993
|
+
name: NonEmptyString6,
|
|
26902
26994
|
input: Schema_exports.Unknown
|
|
26903
26995
|
});
|
|
26904
26996
|
var inferenceTurnSchema = Schema_exports.Union([
|
|
@@ -26917,12 +27009,12 @@ var inferenceUsageSchema = Schema_exports.Struct({
|
|
|
26917
27009
|
outputTokens: Schema_exports.Number
|
|
26918
27010
|
});
|
|
26919
27011
|
var inferenceReceiptSchema = Schema_exports.Struct({
|
|
26920
|
-
accountId:
|
|
27012
|
+
accountId: NonEmptyString6,
|
|
26921
27013
|
revision: Schema_exports.Number.check(Schema_exports.isInt()),
|
|
26922
27014
|
login: connectedAccountLoginClassSchema
|
|
26923
27015
|
});
|
|
26924
27016
|
var inferenceRespondResponseSchema = Schema_exports.Struct({
|
|
26925
|
-
sessionId:
|
|
27017
|
+
sessionId: NonEmptyString6,
|
|
26926
27018
|
turn: inferenceTurnSchema,
|
|
26927
27019
|
/** Usage for the exchange so far; present on the final (text) turn. */
|
|
26928
27020
|
usage: Schema_exports.optional(inferenceUsageSchema),
|
|
@@ -26964,8 +27056,8 @@ var InferenceGroup = HttpApiGroup_exports.make("inference").add(HttpApiEndpoint_
|
|
|
26964
27056
|
]
|
|
26965
27057
|
})).annotate(OpenApi_exports.Description, "Inference on connected accounts, via the official agent SDKs \u2014 never raw model-API calls.");
|
|
26966
27058
|
|
|
26967
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
26968
|
-
var
|
|
27059
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/packages.js
|
|
27060
|
+
var NonEmptyString7 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
26969
27061
|
var packageTargetOsSchema = Schema_exports.Literals(["arch", "fedora", "nix", "ubuntu"]);
|
|
26970
27062
|
var packageResolutionStatusSchema = Schema_exports.Literals([
|
|
26971
27063
|
"resolved",
|
|
@@ -26977,22 +27069,22 @@ var packageResolutionStatusSchema = Schema_exports.Literals([
|
|
|
26977
27069
|
var packageResolutionSourceSchema = Schema_exports.Literals(["cache", "repology", "override"]);
|
|
26978
27070
|
var packageOsSupportSchema = Schema_exports.Struct({
|
|
26979
27071
|
supported: Schema_exports.Boolean,
|
|
26980
|
-
repo: Schema_exports.optional(
|
|
26981
|
-
packageName: Schema_exports.optional(
|
|
26982
|
-
projectName: Schema_exports.optional(
|
|
26983
|
-
version: Schema_exports.optional(
|
|
26984
|
-
status: Schema_exports.optional(
|
|
27072
|
+
repo: Schema_exports.optional(NonEmptyString7),
|
|
27073
|
+
packageName: Schema_exports.optional(NonEmptyString7),
|
|
27074
|
+
projectName: Schema_exports.optional(NonEmptyString7),
|
|
27075
|
+
version: Schema_exports.optional(NonEmptyString7),
|
|
27076
|
+
status: Schema_exports.optional(NonEmptyString7)
|
|
26985
27077
|
});
|
|
26986
27078
|
var packageResolutionAlternativeSchema = Schema_exports.Struct({
|
|
26987
|
-
projectName:
|
|
27079
|
+
projectName: NonEmptyString7
|
|
26988
27080
|
});
|
|
26989
27081
|
var packageResolutionSchema = Schema_exports.Struct({
|
|
26990
|
-
requested:
|
|
26991
|
-
normalized:
|
|
27082
|
+
requested: NonEmptyString7,
|
|
27083
|
+
normalized: NonEmptyString7,
|
|
26992
27084
|
status: packageResolutionStatusSchema,
|
|
26993
27085
|
source: packageResolutionSourceSchema,
|
|
26994
|
-
canonicalId: Schema_exports.optional(
|
|
26995
|
-
selectedProject: Schema_exports.optional(
|
|
27086
|
+
canonicalId: Schema_exports.optional(NonEmptyString7),
|
|
27087
|
+
selectedProject: Schema_exports.optional(NonEmptyString7),
|
|
26996
27088
|
osSupport: Schema_exports.Struct({
|
|
26997
27089
|
arch: packageOsSupportSchema,
|
|
26998
27090
|
fedora: packageOsSupportSchema,
|
|
@@ -27004,7 +27096,7 @@ var packageResolutionSchema = Schema_exports.Struct({
|
|
|
27004
27096
|
expiresAt: Schema_exports.String
|
|
27005
27097
|
});
|
|
27006
27098
|
var resolvePackageQuerySchema = Schema_exports.Struct({
|
|
27007
|
-
query:
|
|
27099
|
+
query: NonEmptyString7,
|
|
27008
27100
|
targetOs: Schema_exports.optional(packageTargetOsSchema)
|
|
27009
27101
|
});
|
|
27010
27102
|
var resolvePackageResponseSchema = packageResolutionSchema;
|
|
@@ -27022,14 +27114,14 @@ var PackagesGroup = HttpApiGroup_exports.make("packages").add(HttpApiEndpoint_ex
|
|
|
27022
27114
|
error: [PackagesBadGatewayError, PackagesInternalServerError]
|
|
27023
27115
|
})).annotate(OpenApi_exports.Description, "Package normalization and distro resolution operations.");
|
|
27024
27116
|
|
|
27025
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27026
|
-
var
|
|
27117
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/profiles.js
|
|
27118
|
+
var NonEmptyString8 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27027
27119
|
var profileStatusSchema = Schema_exports.Literals(["active", "archived"]);
|
|
27028
27120
|
var profileSummarySchema = Schema_exports.Struct({
|
|
27029
|
-
profileId:
|
|
27121
|
+
profileId: NonEmptyString8,
|
|
27030
27122
|
ownerUserId: PersonId,
|
|
27031
|
-
slug:
|
|
27032
|
-
name:
|
|
27123
|
+
slug: NonEmptyString8,
|
|
27124
|
+
name: NonEmptyString8,
|
|
27033
27125
|
description: Schema_exports.NullOr(Schema_exports.String),
|
|
27034
27126
|
status: profileStatusSchema,
|
|
27035
27127
|
activeRevisionId: Schema_exports.NullOr(Schema_exports.String),
|
|
@@ -27043,9 +27135,9 @@ var listProfilesResponseSchema = Schema_exports.Struct({
|
|
|
27043
27135
|
items: Schema_exports.Array(profileSummarySchema)
|
|
27044
27136
|
});
|
|
27045
27137
|
var profileCredentialBindingWithAccountSchema = Schema_exports.Struct({
|
|
27046
|
-
profileId:
|
|
27138
|
+
profileId: NonEmptyString8,
|
|
27047
27139
|
provider: connectedAccountProviderSchema,
|
|
27048
|
-
connectedAccountId:
|
|
27140
|
+
connectedAccountId: NonEmptyString8,
|
|
27049
27141
|
account: connectedAccountSummarySchema
|
|
27050
27142
|
});
|
|
27051
27143
|
var listProfileCredentialBindingsResponseSchema = Schema_exports.Struct({
|
|
@@ -27059,7 +27151,7 @@ var setProfileCredentialBindingRequestSchema = Schema_exports.Struct({
|
|
|
27059
27151
|
* account name is accepted too). null clears the binding for that provider; the profile id
|
|
27060
27152
|
* travels in the URL.
|
|
27061
27153
|
*/
|
|
27062
|
-
connectedAccountId: Schema_exports.NullOr(
|
|
27154
|
+
connectedAccountId: Schema_exports.NullOr(NonEmptyString8)
|
|
27063
27155
|
});
|
|
27064
27156
|
var ProfileBadRequestError = class extends Schema_exports.TaggedError()("ProfileBadRequestError", {
|
|
27065
27157
|
message: Schema_exports.String
|
|
@@ -27077,7 +27169,7 @@ var ProfileInternalServerError = class extends Schema_exports.TaggedError()("Pro
|
|
|
27077
27169
|
message: Schema_exports.String
|
|
27078
27170
|
}, { httpApiStatus: 500 }) {
|
|
27079
27171
|
};
|
|
27080
|
-
var profileIdParams = Schema_exports.Struct({ profileId:
|
|
27172
|
+
var profileIdParams = Schema_exports.Struct({ profileId: NonEmptyString8 });
|
|
27081
27173
|
var ProfilesGroup = HttpApiGroup_exports.make("profiles").add(HttpApiEndpoint_exports.get("listProfiles", "/", {
|
|
27082
27174
|
query: listProfilesQuerySchema,
|
|
27083
27175
|
success: listProfilesResponseSchema,
|
|
@@ -27105,7 +27197,7 @@ var ProfilesGroup = HttpApiGroup_exports.make("profiles").add(HttpApiEndpoint_ex
|
|
|
27105
27197
|
})
|
|
27106
27198
|
).annotate(OpenApi_exports.Description, "Profiles and their per-provider connected-account credential bindings.");
|
|
27107
27199
|
|
|
27108
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27200
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/oci-names.js
|
|
27109
27201
|
var REPOSITORY_COMPONENT = "[a-z0-9]+(?:(?:\\.|_|__|-+)[a-z0-9]+)*";
|
|
27110
27202
|
var REPOSITORY = new RegExp(`^${REPOSITORY_COMPONENT}(?:/${REPOSITORY_COMPONENT})*$`);
|
|
27111
27203
|
var REPOSITORY_MAX_LENGTH = 255;
|
|
@@ -27129,25 +27221,25 @@ var isOciReference = (value3) => isOciDigest(value3) || isOciTag(value3);
|
|
|
27129
27221
|
var OCI_REPOSITORY_MESSAGE = "must be an OCI repository name: lowercase path components of [a-z0-9] joined by '.', '_', '__' or '-', separated by '/'";
|
|
27130
27222
|
var OCI_REFERENCE_MESSAGE = "must be an OCI tag ([A-Za-z0-9_][A-Za-z0-9._-]{0,127}) or a digest (algorithm:encoded)";
|
|
27131
27223
|
|
|
27132
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27133
|
-
var
|
|
27134
|
-
var OciRepository =
|
|
27135
|
-
var OciReference =
|
|
27224
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/registries.js
|
|
27225
|
+
var NonEmptyString9 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27226
|
+
var OciRepository = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciRepository(value3) ? void 0 : `repository ${OCI_REPOSITORY_MESSAGE}`));
|
|
27227
|
+
var OciReference = NonEmptyString9.check(Schema_exports.makeFilter((value3) => isOciReference(value3) ? void 0 : `reference ${OCI_REFERENCE_MESSAGE}`));
|
|
27136
27228
|
var registryIdParamsSchema = Schema_exports.Struct({
|
|
27137
|
-
registryId:
|
|
27229
|
+
registryId: NonEmptyString9
|
|
27138
27230
|
});
|
|
27139
27231
|
var registrySummarySchema = Schema_exports.Struct({
|
|
27140
|
-
name:
|
|
27232
|
+
name: NonEmptyString9,
|
|
27141
27233
|
baseUrl: Schema_exports.String,
|
|
27142
|
-
pushRegistry:
|
|
27234
|
+
pushRegistry: NonEmptyString9,
|
|
27143
27235
|
hasBasicAuth: Schema_exports.Boolean
|
|
27144
27236
|
});
|
|
27145
27237
|
var registryPingSchema = Schema_exports.Struct({
|
|
27146
|
-
name:
|
|
27238
|
+
name: NonEmptyString9,
|
|
27147
27239
|
reachable: Schema_exports.Literal(true)
|
|
27148
27240
|
});
|
|
27149
27241
|
var registryExtensionSchema = Schema_exports.Struct({
|
|
27150
|
-
name:
|
|
27242
|
+
name: NonEmptyString9,
|
|
27151
27243
|
url: Schema_exports.optional(Schema_exports.String),
|
|
27152
27244
|
description: Schema_exports.optional(Schema_exports.String),
|
|
27153
27245
|
endpoints: Schema_exports.Array(Schema_exports.String)
|
|
@@ -27159,7 +27251,7 @@ var registryTagsQuerySchema = Schema_exports.Struct({
|
|
|
27159
27251
|
repository: OciRepository
|
|
27160
27252
|
});
|
|
27161
27253
|
var registryTagsResponseSchema = Schema_exports.Struct({
|
|
27162
|
-
repository:
|
|
27254
|
+
repository: NonEmptyString9,
|
|
27163
27255
|
tags: Schema_exports.Array(Schema_exports.String)
|
|
27164
27256
|
});
|
|
27165
27257
|
var registryManifestQuerySchema = Schema_exports.Struct({
|
|
@@ -27167,8 +27259,8 @@ var registryManifestQuerySchema = Schema_exports.Struct({
|
|
|
27167
27259
|
reference: OciReference
|
|
27168
27260
|
});
|
|
27169
27261
|
var registryManifestResponseSchema = Schema_exports.Struct({
|
|
27170
|
-
repository:
|
|
27171
|
-
reference:
|
|
27262
|
+
repository: NonEmptyString9,
|
|
27263
|
+
reference: NonEmptyString9,
|
|
27172
27264
|
digest: Schema_exports.optional(Schema_exports.String),
|
|
27173
27265
|
contentType: Schema_exports.Union([Schema_exports.String, Schema_exports.Null]),
|
|
27174
27266
|
manifest: Schema_exports.Unknown
|
|
@@ -27181,7 +27273,7 @@ var RegistriesBadGatewayError = class extends Schema_exports.TaggedError()("Regi
|
|
|
27181
27273
|
message: Schema_exports.String
|
|
27182
27274
|
}, { httpApiStatus: 502 }) {
|
|
27183
27275
|
};
|
|
27184
|
-
var registryIdParams = Schema_exports.Struct({ registryId:
|
|
27276
|
+
var registryIdParams = Schema_exports.Struct({ registryId: NonEmptyString9 });
|
|
27185
27277
|
var RegistriesGroup = HttpApiGroup_exports.make("registries").add(HttpApiEndpoint_exports.get("getRegistry", "/:registryId", {
|
|
27186
27278
|
params: registryIdParams,
|
|
27187
27279
|
success: registrySummarySchema,
|
|
@@ -27206,7 +27298,7 @@ var RegistriesGroup = HttpApiGroup_exports.make("registries").add(HttpApiEndpoin
|
|
|
27206
27298
|
error: [RegistriesNotFoundError, RegistriesBadGatewayError]
|
|
27207
27299
|
})).annotate(OpenApi_exports.Description, "Registry metadata and OCI read operations.");
|
|
27208
27300
|
|
|
27209
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27301
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/request-refusal.js
|
|
27210
27302
|
var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRefusedError", {
|
|
27211
27303
|
/** Where the request is wrong and what was expected; never a value it held. */
|
|
27212
27304
|
message: Schema_exports.String
|
|
@@ -27215,7 +27307,7 @@ var RequestRefusedError = class extends Schema_exports.TaggedError()("RequestRef
|
|
|
27215
27307
|
var RequestRefusal = class extends HttpApiMiddleware_exports.Service()("@sealant/api-contracts/RequestRefusal", { error: RequestRefusedError }) {
|
|
27216
27308
|
};
|
|
27217
27309
|
|
|
27218
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27310
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-domains.js
|
|
27219
27311
|
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}$`);
|
|
27220
27312
|
var RESOURCE_DOMAIN_KEY_PATTERN = /^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._:/@+=-]{1,223}$/;
|
|
27221
27313
|
var ResourceDomainId = Schema_exports.String.check(Schema_exports.makeFilter((id2) => RESOURCE_DOMAIN_ID_PATTERN.test(id2) ? void 0 : "must be a resource domain id (rdm:<uuid>)"));
|
|
@@ -27391,7 +27483,7 @@ var ResourceDomainsGroup = HttpApiGroup_exports.make("resourceDomains").add(Http
|
|
|
27391
27483
|
]
|
|
27392
27484
|
})).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.");
|
|
27393
27485
|
|
|
27394
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27486
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/resource-instances.js
|
|
27395
27487
|
var RESOURCE_INSTANCE_ID_PREFIX = "rin:";
|
|
27396
27488
|
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}$`);
|
|
27397
27489
|
var matching = (pattern, message) => Schema_exports.makeFilter((value3) => pattern.test(value3) ? void 0 : message);
|
|
@@ -27681,8 +27773,8 @@ var resourceInstanceExecResultSchema = Schema_exports.Struct({
|
|
|
27681
27773
|
timedOut: Schema_exports.Boolean
|
|
27682
27774
|
});
|
|
27683
27775
|
|
|
27684
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27685
|
-
var
|
|
27776
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/runs.js
|
|
27777
|
+
var NonEmptyString10 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27686
27778
|
var runStatusSchema = Schema_exports.Literals([
|
|
27687
27779
|
"queued",
|
|
27688
27780
|
"running",
|
|
@@ -27693,9 +27785,9 @@ var runStatusSchema = Schema_exports.Literals([
|
|
|
27693
27785
|
var runModeSchema = Schema_exports.Literals(["one-shot", "interactive"]);
|
|
27694
27786
|
var ioStreamSchema = Schema_exports.Literals(["stdout", "stderr", "pty"]);
|
|
27695
27787
|
var runCommandSchema = Schema_exports.Struct({
|
|
27696
|
-
executable:
|
|
27788
|
+
executable: NonEmptyString10,
|
|
27697
27789
|
args: Schema_exports.Array(Schema_exports.String),
|
|
27698
|
-
cwd: Schema_exports.optional(
|
|
27790
|
+
cwd: Schema_exports.optional(NonEmptyString10)
|
|
27699
27791
|
});
|
|
27700
27792
|
var recordedRunCommandSchema = Schema_exports.Struct({
|
|
27701
27793
|
...runCommandSchema.fields,
|
|
@@ -27703,11 +27795,11 @@ var recordedRunCommandSchema = Schema_exports.Struct({
|
|
|
27703
27795
|
argLengths: Schema_exports.optional(Schema_exports.Array(Schema_exports.Number))
|
|
27704
27796
|
});
|
|
27705
27797
|
var runSchema = Schema_exports.Struct({
|
|
27706
|
-
runId:
|
|
27707
|
-
workspaceId:
|
|
27708
|
-
attemptId: Schema_exports.optional(
|
|
27798
|
+
runId: NonEmptyString10,
|
|
27799
|
+
workspaceId: NonEmptyString10,
|
|
27800
|
+
attemptId: Schema_exports.optional(NonEmptyString10),
|
|
27709
27801
|
ownerUserId: PersonId,
|
|
27710
|
-
harnessId:
|
|
27802
|
+
harnessId: NonEmptyString10,
|
|
27711
27803
|
mode: runModeSchema,
|
|
27712
27804
|
status: runStatusSchema,
|
|
27713
27805
|
prompt: Schema_exports.optional(Schema_exports.String),
|
|
@@ -27719,7 +27811,7 @@ var runSchema = Schema_exports.Struct({
|
|
|
27719
27811
|
* The Linux user the run's processes were started as (`user` on an exec or a session): the login
|
|
27720
27812
|
* name or uid the caller named, and nothing else of the process. Absent: the workspace's own user.
|
|
27721
27813
|
*/
|
|
27722
|
-
user: Schema_exports.optional(
|
|
27814
|
+
user: Schema_exports.optional(NonEmptyString10),
|
|
27723
27815
|
exitCode: Schema_exports.optional(Schema_exports.Number),
|
|
27724
27816
|
errorMessage: Schema_exports.optional(Schema_exports.String),
|
|
27725
27817
|
startedAt: Schema_exports.optional(Schema_exports.String),
|
|
@@ -27733,17 +27825,17 @@ var runSchema = Schema_exports.Struct({
|
|
|
27733
27825
|
updatedAt: Schema_exports.String
|
|
27734
27826
|
});
|
|
27735
27827
|
var runFileChangeSchema = Schema_exports.Struct({
|
|
27736
|
-
path:
|
|
27828
|
+
path: NonEmptyString10,
|
|
27737
27829
|
change: Schema_exports.Literals(["added", "modified", "deleted", "renamed"]),
|
|
27738
|
-
oldPath: Schema_exports.optional(
|
|
27830
|
+
oldPath: Schema_exports.optional(NonEmptyString10)
|
|
27739
27831
|
});
|
|
27740
27832
|
var createRunRequestSchema = Schema_exports.Struct({
|
|
27741
|
-
workspaceId:
|
|
27742
|
-
harnessId:
|
|
27833
|
+
workspaceId: NonEmptyString10,
|
|
27834
|
+
harnessId: NonEmptyString10,
|
|
27743
27835
|
ownerUserId: PersonId,
|
|
27744
27836
|
mode: Schema_exports.optional(runModeSchema),
|
|
27745
27837
|
prompt: Schema_exports.optional(Schema_exports.String),
|
|
27746
|
-
attemptId: Schema_exports.optional(
|
|
27838
|
+
attemptId: Schema_exports.optional(NonEmptyString10),
|
|
27747
27839
|
// When present, the control plane EXECUTES the run SERVER-SIDE: the worker docker-execs this command
|
|
27748
27840
|
// in the workspace, ingests telemetry, and captures the diff. When absent AND `prompt` is present
|
|
27749
27841
|
// for a built-in harness, the control plane CONSTRUCTS the command itself (server-side invoke
|
|
@@ -27768,23 +27860,23 @@ var updateRunRequestSchema = Schema_exports.Struct({
|
|
|
27768
27860
|
changesReadFailed: Schema_exports.optional(Schema_exports.Boolean)
|
|
27769
27861
|
});
|
|
27770
27862
|
var listRunsQuerySchema = Schema_exports.Struct({
|
|
27771
|
-
workspaceId: Schema_exports.optional(
|
|
27863
|
+
workspaceId: Schema_exports.optional(NonEmptyString10),
|
|
27772
27864
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
27773
27865
|
status: Schema_exports.optional(runStatusSchema),
|
|
27774
|
-
limit: Schema_exports.optional(
|
|
27866
|
+
limit: Schema_exports.optional(NonEmptyString10)
|
|
27775
27867
|
});
|
|
27776
27868
|
var listRunsResponseSchema = Schema_exports.Struct({ items: Schema_exports.Array(runSchema) });
|
|
27777
27869
|
var timelineEntrySchema = Schema_exports.Struct({
|
|
27778
|
-
eventId:
|
|
27779
|
-
sequence:
|
|
27870
|
+
eventId: NonEmptyString10,
|
|
27871
|
+
sequence: NonEmptyString10,
|
|
27780
27872
|
// decimal-string uint64
|
|
27781
|
-
kind:
|
|
27782
|
-
occurredAt:
|
|
27873
|
+
kind: NonEmptyString10,
|
|
27874
|
+
occurredAt: NonEmptyString10,
|
|
27783
27875
|
// decimal-string monotonic timestamp
|
|
27784
27876
|
summary: Schema_exports.String,
|
|
27785
27877
|
ref: Schema_exports.optional(Schema_exports.Unknown),
|
|
27786
27878
|
/** Correlation id of the producing process (attribution key for record views). */
|
|
27787
|
-
processId: Schema_exports.optional(
|
|
27879
|
+
processId: Schema_exports.optional(NonEmptyString10),
|
|
27788
27880
|
/** Numeric CaptureMethod / Confidence enums — how the fact was captured, per envelope. */
|
|
27789
27881
|
captureMethod: Schema_exports.Number,
|
|
27790
27882
|
confidence: Schema_exports.Number
|
|
@@ -27794,52 +27886,52 @@ var runOwnerQuerySchema = Schema_exports.Struct({
|
|
|
27794
27886
|
});
|
|
27795
27887
|
var getRunTimelineQuerySchema = Schema_exports.Struct({
|
|
27796
27888
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
27797
|
-
fromSequence: Schema_exports.optional(
|
|
27798
|
-
toSequence: Schema_exports.optional(
|
|
27799
|
-
limit: Schema_exports.optional(
|
|
27889
|
+
fromSequence: Schema_exports.optional(NonEmptyString10),
|
|
27890
|
+
toSequence: Schema_exports.optional(NonEmptyString10),
|
|
27891
|
+
limit: Schema_exports.optional(NonEmptyString10),
|
|
27800
27892
|
/**
|
|
27801
27893
|
* Comma-separated payload cases (e.g. `processStarted,processExited,fileChange`). Filters the
|
|
27802
27894
|
* timeline to those event kinds server-side — the read path for record views that must not pay
|
|
27803
27895
|
* for the ioChunk-dominated full log.
|
|
27804
27896
|
*/
|
|
27805
|
-
kinds: Schema_exports.optional(
|
|
27897
|
+
kinds: Schema_exports.optional(NonEmptyString10)
|
|
27806
27898
|
});
|
|
27807
27899
|
var runTimelineResponseSchema = Schema_exports.Struct({
|
|
27808
27900
|
items: Schema_exports.Array(timelineEntrySchema)
|
|
27809
27901
|
});
|
|
27810
27902
|
var runEventSchema = Schema_exports.Struct({
|
|
27811
|
-
eventId:
|
|
27812
|
-
runId:
|
|
27813
|
-
runtimeId:
|
|
27814
|
-
executionId: Schema_exports.optional(
|
|
27815
|
-
sessionId: Schema_exports.optional(
|
|
27816
|
-
processId: Schema_exports.optional(
|
|
27817
|
-
requestId: Schema_exports.optional(
|
|
27903
|
+
eventId: NonEmptyString10,
|
|
27904
|
+
runId: NonEmptyString10,
|
|
27905
|
+
runtimeId: NonEmptyString10,
|
|
27906
|
+
executionId: Schema_exports.optional(NonEmptyString10),
|
|
27907
|
+
sessionId: Schema_exports.optional(NonEmptyString10),
|
|
27908
|
+
processId: Schema_exports.optional(NonEmptyString10),
|
|
27909
|
+
requestId: Schema_exports.optional(NonEmptyString10),
|
|
27818
27910
|
schemaVersion: Schema_exports.Number,
|
|
27819
|
-
sequence:
|
|
27911
|
+
sequence: NonEmptyString10,
|
|
27820
27912
|
// decimal-string uint64
|
|
27821
|
-
observedAt:
|
|
27913
|
+
observedAt: NonEmptyString10,
|
|
27822
27914
|
// decimal-string int64 wall clock
|
|
27823
|
-
monotonicTimestamp:
|
|
27915
|
+
monotonicTimestamp: NonEmptyString10,
|
|
27824
27916
|
// decimal-string uint64 ordering clock
|
|
27825
27917
|
captureMethod: Schema_exports.Number,
|
|
27826
27918
|
confidence: Schema_exports.Number,
|
|
27827
|
-
payloadCase:
|
|
27919
|
+
payloadCase: NonEmptyString10,
|
|
27828
27920
|
payload: Schema_exports.Unknown,
|
|
27829
27921
|
ingestedAt: Schema_exports.String
|
|
27830
27922
|
});
|
|
27831
27923
|
var getRunScrollbackQuerySchema = Schema_exports.Struct({
|
|
27832
27924
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
27833
|
-
processId:
|
|
27925
|
+
processId: NonEmptyString10,
|
|
27834
27926
|
stream: ioStreamSchema,
|
|
27835
|
-
atSequence: Schema_exports.optional(
|
|
27927
|
+
atSequence: Schema_exports.optional(NonEmptyString10),
|
|
27836
27928
|
/** Inclusive lower sequence bound — with `atSequence` this selects a sequence RANGE. */
|
|
27837
|
-
fromSequence: Schema_exports.optional(
|
|
27929
|
+
fromSequence: Schema_exports.optional(NonEmptyString10),
|
|
27838
27930
|
/** Maximum chunks to reconstruct (server default 5000). */
|
|
27839
|
-
limit: Schema_exports.optional(
|
|
27931
|
+
limit: Schema_exports.optional(NonEmptyString10)
|
|
27840
27932
|
});
|
|
27841
27933
|
var runScrollbackResponseSchema = Schema_exports.Struct({
|
|
27842
|
-
processId:
|
|
27934
|
+
processId: NonEmptyString10,
|
|
27843
27935
|
stream: ioStreamSchema,
|
|
27844
27936
|
byteCount: Schema_exports.Number,
|
|
27845
27937
|
/** Base64-encoded reconstructed bytes (byte-exact as recorded; redaction happens upstream). */
|
|
@@ -27847,15 +27939,15 @@ var runScrollbackResponseSchema = Schema_exports.Struct({
|
|
|
27847
27939
|
});
|
|
27848
27940
|
var lossSpanSchema = Schema_exports.Struct({
|
|
27849
27941
|
kind: Schema_exports.Literals(["dropped_event", "sequence_gap", "watch_overflow", "early_close"]),
|
|
27850
|
-
fromSequence: Schema_exports.optional(
|
|
27851
|
-
toSequence: Schema_exports.optional(
|
|
27852
|
-
droppedCount: Schema_exports.optional(
|
|
27942
|
+
fromSequence: Schema_exports.optional(NonEmptyString10),
|
|
27943
|
+
toSequence: Schema_exports.optional(NonEmptyString10),
|
|
27944
|
+
droppedCount: Schema_exports.optional(NonEmptyString10),
|
|
27853
27945
|
detectedVia: Schema_exports.Literals(["marker", "gap"]),
|
|
27854
27946
|
reason: Schema_exports.optional(Schema_exports.String)
|
|
27855
27947
|
});
|
|
27856
27948
|
var runLossReportSchema = Schema_exports.Struct({
|
|
27857
|
-
runId:
|
|
27858
|
-
droppedEventCount:
|
|
27949
|
+
runId: NonEmptyString10,
|
|
27950
|
+
droppedEventCount: NonEmptyString10,
|
|
27859
27951
|
// decimal-string uint64
|
|
27860
27952
|
sequenceGapCount: Schema_exports.Number,
|
|
27861
27953
|
watchOverflowCount: Schema_exports.Number,
|
|
@@ -27881,8 +27973,8 @@ var RunNotFoundError = class extends Schema_exports.TaggedError()("RunNotFoundEr
|
|
|
27881
27973
|
};
|
|
27882
27974
|
var RunInternalServerError = class extends Schema_exports.TaggedError()("RunInternalServerError", { message: Schema_exports.String }, { httpApiStatus: 500 }) {
|
|
27883
27975
|
};
|
|
27884
|
-
var runIdParams = Schema_exports.Struct({ runId:
|
|
27885
|
-
var runEventParams = Schema_exports.Struct({ runId:
|
|
27976
|
+
var runIdParams = Schema_exports.Struct({ runId: NonEmptyString10 });
|
|
27977
|
+
var runEventParams = Schema_exports.Struct({ runId: NonEmptyString10, sequence: NonEmptyString10 });
|
|
27886
27978
|
var RunsGroup = HttpApiGroup_exports.make("runs").add(HttpApiEndpoint_exports.post("createRun", "/", {
|
|
27887
27979
|
payload: createRunRequestSchema,
|
|
27888
27980
|
success: runSchema.pipe(HttpApiSchema_exports.status(201)),
|
|
@@ -27929,8 +28021,8 @@ var RunsGroup = HttpApiGroup_exports.make("runs").add(HttpApiEndpoint_exports.po
|
|
|
27929
28021
|
error: [RunNotFoundError, RunInternalServerError]
|
|
27930
28022
|
})).annotate(OpenApi_exports.Description, "Runs (harness executions) and their execution record.");
|
|
27931
28023
|
|
|
27932
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
27933
|
-
var
|
|
28024
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/sessions.js
|
|
28025
|
+
var NonEmptyString11 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
27934
28026
|
var sessionStatusSchema = Schema_exports.Literals(["starting", "running", "exited", "failed"]);
|
|
27935
28027
|
var sessionAuthorizationHeadersSchema = Schema_exports.Struct({
|
|
27936
28028
|
authorization: Schema_exports.optional(Schema_exports.String)
|
|
@@ -27974,7 +28066,7 @@ var sessionArgvIssue = (argv) => {
|
|
|
27974
28066
|
};
|
|
27975
28067
|
var sessionArgvSchema = Schema_exports.Array(Schema_exports.String).check(Schema_exports.makeFilter(sessionArgvIssue));
|
|
27976
28068
|
var createSessionRequestSchema = Schema_exports.Struct({
|
|
27977
|
-
workspaceId:
|
|
28069
|
+
workspaceId: NonEmptyString11,
|
|
27978
28070
|
ownerUserId: PersonId,
|
|
27979
28071
|
/**
|
|
27980
28072
|
* argv[0] is the program the session runs; the rest its arguments, passed to it as an argv array,
|
|
@@ -27982,12 +28074,12 @@ var createSessionRequestSchema = Schema_exports.Struct({
|
|
|
27982
28074
|
*/
|
|
27983
28075
|
argv: sessionArgvSchema,
|
|
27984
28076
|
/** Working directory inside the workspace (defaults to the workspace working directory). */
|
|
27985
|
-
cwd: Schema_exports.optional(
|
|
28077
|
+
cwd: Schema_exports.optional(NonEmptyString11),
|
|
27986
28078
|
/** Extra environment for the PTY process (values are NOT secrets — use credentials for those). */
|
|
27987
28079
|
env: Schema_exports.optional(Schema_exports.Record(Schema_exports.String, Schema_exports.String)),
|
|
27988
28080
|
cols: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThan(0))),
|
|
27989
28081
|
rows: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThan(0))),
|
|
27990
|
-
term: Schema_exports.optional(
|
|
28082
|
+
term: Schema_exports.optional(NonEmptyString11),
|
|
27991
28083
|
/** Leader wiring; defaults to `pty`. `cols`/`rows`/`term` are ignored for `pipe`. */
|
|
27992
28084
|
mode: Schema_exports.optional(sessionModeSchema),
|
|
27993
28085
|
/** Opaque caller correlation bag: stored verbatim, echoed on reads, no platform semantics. */
|
|
@@ -28004,10 +28096,10 @@ var createSessionAsUserRequestSchema = Schema_exports.Struct({
|
|
|
28004
28096
|
user: workspaceProcessUserSchema
|
|
28005
28097
|
});
|
|
28006
28098
|
var sessionSchema = Schema_exports.Struct({
|
|
28007
|
-
sessionId:
|
|
28008
|
-
workspaceId:
|
|
28099
|
+
sessionId: NonEmptyString11,
|
|
28100
|
+
workspaceId: NonEmptyString11,
|
|
28009
28101
|
/** The interactive run recording this session; its record is the durable evidence. */
|
|
28010
|
-
runId:
|
|
28102
|
+
runId: NonEmptyString11,
|
|
28011
28103
|
ownerUserId: PersonId,
|
|
28012
28104
|
status: sessionStatusSchema,
|
|
28013
28105
|
/**
|
|
@@ -28019,7 +28111,7 @@ var sessionSchema = Schema_exports.Struct({
|
|
|
28019
28111
|
argCount: Schema_exports.optional(Schema_exports.Number),
|
|
28020
28112
|
/** Each argument's length in UTF-8 bytes, in order. Absent when there were none. */
|
|
28021
28113
|
argLengths: Schema_exports.optional(Schema_exports.Array(Schema_exports.Number)),
|
|
28022
|
-
cwd: Schema_exports.optional(
|
|
28114
|
+
cwd: Schema_exports.optional(NonEmptyString11),
|
|
28023
28115
|
cols: Schema_exports.Number,
|
|
28024
28116
|
rows: Schema_exports.Number,
|
|
28025
28117
|
/** Leader wiring. Absent on servers from before pipe mode shipped, which means `pty`. */
|
|
@@ -28033,15 +28125,15 @@ var sessionSchema = Schema_exports.Struct({
|
|
|
28033
28125
|
* has been ingested yet — the resume cursor: `output?from=<highWater + 1>` continues exactly
|
|
28034
28126
|
* where a previous reader stopped.
|
|
28035
28127
|
*/
|
|
28036
|
-
outputHighWater:
|
|
28128
|
+
outputHighWater: NonEmptyString11,
|
|
28037
28129
|
createdAt: Schema_exports.String,
|
|
28038
28130
|
endedAt: Schema_exports.optional(Schema_exports.String)
|
|
28039
28131
|
});
|
|
28040
28132
|
var listSessionsQuerySchema = Schema_exports.Struct({
|
|
28041
28133
|
ownerUserId: PersonId,
|
|
28042
|
-
workspaceId: Schema_exports.optional(
|
|
28134
|
+
workspaceId: Schema_exports.optional(NonEmptyString11),
|
|
28043
28135
|
status: Schema_exports.optional(sessionStatusSchema),
|
|
28044
|
-
limit: Schema_exports.optional(
|
|
28136
|
+
limit: Schema_exports.optional(NonEmptyString11)
|
|
28045
28137
|
});
|
|
28046
28138
|
var listSessionsResponseSchema = Schema_exports.Struct({
|
|
28047
28139
|
items: Schema_exports.Array(sessionSchema)
|
|
@@ -28049,7 +28141,7 @@ var listSessionsResponseSchema = Schema_exports.Struct({
|
|
|
28049
28141
|
var sessionInputRequestSchema = Schema_exports.Struct({
|
|
28050
28142
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
28051
28143
|
/** Base64-encoded keystrokes (bytes, not text — binary-safe). */
|
|
28052
|
-
dataBase64:
|
|
28144
|
+
dataBase64: NonEmptyString11
|
|
28053
28145
|
});
|
|
28054
28146
|
var sessionResizeRequestSchema = Schema_exports.Struct({
|
|
28055
28147
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
@@ -28066,20 +28158,20 @@ var closeSessionRequestSchema = Schema_exports.Struct({
|
|
|
28066
28158
|
});
|
|
28067
28159
|
var getSessionOutputQuerySchema = Schema_exports.Struct({
|
|
28068
28160
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
28069
|
-
from: Schema_exports.optional(
|
|
28070
|
-
limit: Schema_exports.optional(
|
|
28161
|
+
from: Schema_exports.optional(NonEmptyString11),
|
|
28162
|
+
limit: Schema_exports.optional(NonEmptyString11)
|
|
28071
28163
|
});
|
|
28072
28164
|
var sessionOutputChunkSchema = Schema_exports.Struct({
|
|
28073
|
-
sequence:
|
|
28165
|
+
sequence: NonEmptyString11,
|
|
28074
28166
|
// decimal-string uint64
|
|
28075
28167
|
/** Base64-encoded PTY output bytes, exactly as recorded. */
|
|
28076
28168
|
dataBase64: Schema_exports.String
|
|
28077
28169
|
});
|
|
28078
28170
|
var sessionOutputResponseSchema = Schema_exports.Struct({
|
|
28079
|
-
sessionId:
|
|
28171
|
+
sessionId: NonEmptyString11,
|
|
28080
28172
|
chunks: Schema_exports.Array(sessionOutputChunkSchema),
|
|
28081
28173
|
/** The cursor to pass as `from` to continue after this page. */
|
|
28082
|
-
nextFrom:
|
|
28174
|
+
nextFrom: NonEmptyString11,
|
|
28083
28175
|
/** Session status at read time, so pollers can stop when the session settles. */
|
|
28084
28176
|
status: sessionStatusSchema
|
|
28085
28177
|
});
|
|
@@ -28094,14 +28186,14 @@ var SessionNotFoundError = class extends Schema_exports.TaggedError()("SessionNo
|
|
|
28094
28186
|
var SessionConflictError = class extends Schema_exports.TaggedError()("SessionConflictError", {
|
|
28095
28187
|
message: Schema_exports.String,
|
|
28096
28188
|
/** A stable reason, where one applies (`user-unsupported`). */
|
|
28097
|
-
code: Schema_exports.optional(
|
|
28189
|
+
code: Schema_exports.optional(NonEmptyString11)
|
|
28098
28190
|
}, { httpApiStatus: 409 }) {
|
|
28099
28191
|
};
|
|
28100
28192
|
var SessionBadGatewayError = class extends Schema_exports.TaggedError()("SessionBadGatewayError", { message: Schema_exports.String }, { httpApiStatus: 502 }) {
|
|
28101
28193
|
};
|
|
28102
28194
|
var SessionInternalServerError = class extends Schema_exports.TaggedError()("SessionInternalServerError", { message: Schema_exports.String }, { httpApiStatus: 500 }) {
|
|
28103
28195
|
};
|
|
28104
|
-
var sessionIdParams = Schema_exports.Struct({ sessionId:
|
|
28196
|
+
var sessionIdParams = Schema_exports.Struct({ sessionId: NonEmptyString11 });
|
|
28105
28197
|
var SessionsGroup = HttpApiGroup_exports.make("sessions").add(
|
|
28106
28198
|
// Scope: workspace:exec. Opens the daemon PTY, creates the interactive run + session rows.
|
|
28107
28199
|
HttpApiEndpoint_exports.post("createSession", "/", {
|
|
@@ -28244,26 +28336,26 @@ var SessionsGroup = HttpApiGroup_exports.make("sessions").add(
|
|
|
28244
28336
|
})
|
|
28245
28337
|
).annotate(OpenApi_exports.Description, "Interactive PTY sessions: durable, reattachable, sequence-keyed output.");
|
|
28246
28338
|
|
|
28247
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28248
|
-
var
|
|
28339
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/ssh-keys.js
|
|
28340
|
+
var NonEmptyString12 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28249
28341
|
var sshKeyGatewayHeadersSchema = Schema_exports.Struct({
|
|
28250
28342
|
// Authenticates the gateway as a trusted caller of the internal resolve endpoint.
|
|
28251
|
-
"x-sealant-gateway-token": Schema_exports.optional(
|
|
28343
|
+
"x-sealant-gateway-token": Schema_exports.optional(NonEmptyString12)
|
|
28252
28344
|
});
|
|
28253
28345
|
var createSshKeyRequestSchema = Schema_exports.Struct({
|
|
28254
28346
|
// Same trust model as createWorkspace: the internal API trusts the caller-supplied owner; the web
|
|
28255
28347
|
// server injects the session user id.
|
|
28256
28348
|
ownerUserId: PersonId,
|
|
28257
|
-
name: Schema_exports.optional(
|
|
28349
|
+
name: Schema_exports.optional(NonEmptyString12),
|
|
28258
28350
|
// Raw `<algorithm> <base64> [comment]` line; the API normalizes and fingerprints it.
|
|
28259
|
-
publicKey:
|
|
28351
|
+
publicKey: NonEmptyString12
|
|
28260
28352
|
});
|
|
28261
28353
|
var sshKeySummarySchema = Schema_exports.Struct({
|
|
28262
|
-
sshKeyId:
|
|
28354
|
+
sshKeyId: NonEmptyString12,
|
|
28263
28355
|
ownerUserId: PersonId,
|
|
28264
|
-
name:
|
|
28265
|
-
algorithm:
|
|
28266
|
-
fingerprint:
|
|
28356
|
+
name: NonEmptyString12,
|
|
28357
|
+
algorithm: NonEmptyString12,
|
|
28358
|
+
fingerprint: NonEmptyString12,
|
|
28267
28359
|
createdAt: Schema_exports.String
|
|
28268
28360
|
});
|
|
28269
28361
|
var listSshKeysQuerySchema = Schema_exports.Struct({
|
|
@@ -28275,13 +28367,13 @@ var listSshKeysResponseSchema = Schema_exports.Struct({
|
|
|
28275
28367
|
var resolveSshPrincipalRequestSchema = Schema_exports.Struct({
|
|
28276
28368
|
// ctx.key.algo / base64(ctx.key.data) from the gateway's ssh2 auth context. The API recomputes
|
|
28277
28369
|
// the fingerprint server-side; callers never supply one.
|
|
28278
|
-
algo:
|
|
28279
|
-
publicKeyBase64:
|
|
28370
|
+
algo: NonEmptyString12,
|
|
28371
|
+
publicKeyBase64: NonEmptyString12
|
|
28280
28372
|
});
|
|
28281
28373
|
var resolveSshPrincipalResponseSchema = Schema_exports.Struct({
|
|
28282
28374
|
principalId: PersonId,
|
|
28283
|
-
sshKeyId:
|
|
28284
|
-
fingerprint:
|
|
28375
|
+
sshKeyId: NonEmptyString12,
|
|
28376
|
+
fingerprint: NonEmptyString12
|
|
28285
28377
|
});
|
|
28286
28378
|
var SshKeyBadRequestError = class extends Schema_exports.TaggedError()("SshKeyBadRequestError", {
|
|
28287
28379
|
message: Schema_exports.String
|
|
@@ -28307,7 +28399,7 @@ var SshKeyInternalServerError = class extends Schema_exports.TaggedError()("SshK
|
|
|
28307
28399
|
message: Schema_exports.String
|
|
28308
28400
|
}, { httpApiStatus: 500 }) {
|
|
28309
28401
|
};
|
|
28310
|
-
var sshKeyIdParams = Schema_exports.Struct({ sshKeyId:
|
|
28402
|
+
var sshKeyIdParams = Schema_exports.Struct({ sshKeyId: NonEmptyString12 });
|
|
28311
28403
|
var SshKeysGroup = HttpApiGroup_exports.make("sshKeys").add(HttpApiEndpoint_exports.post("createSshKey", "/", {
|
|
28312
28404
|
payload: createSshKeyRequestSchema,
|
|
28313
28405
|
success: sshKeySummarySchema.pipe(HttpApiSchema_exports.status(201)),
|
|
@@ -28341,13 +28433,13 @@ var SshKeysGroup = HttpApiGroup_exports.make("sshKeys").add(HttpApiEndpoint_expo
|
|
|
28341
28433
|
})
|
|
28342
28434
|
).annotate(OpenApi_exports.Description, "User SSH public keys and gateway principal resolution.");
|
|
28343
28435
|
|
|
28344
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28345
|
-
var
|
|
28436
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/system.js
|
|
28437
|
+
var NonEmptyString13 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28346
28438
|
var systemIndexResponseSchema = Schema_exports.Struct({
|
|
28347
|
-
name:
|
|
28348
|
-
version:
|
|
28349
|
-
docsPath:
|
|
28350
|
-
openApiPath:
|
|
28439
|
+
name: NonEmptyString13,
|
|
28440
|
+
version: NonEmptyString13,
|
|
28441
|
+
docsPath: NonEmptyString13,
|
|
28442
|
+
openApiPath: NonEmptyString13,
|
|
28351
28443
|
/**
|
|
28352
28444
|
* What this control plane can do that an older one cannot, so a client refuses a request it would
|
|
28353
28445
|
* otherwise send to a server that ignores part of it, and feature-detects instead of reading a
|
|
@@ -28433,10 +28525,10 @@ var systemHealthResponseSchema = Schema_exports.Struct({
|
|
|
28433
28525
|
status: Schema_exports.Literal("ok")
|
|
28434
28526
|
});
|
|
28435
28527
|
var setupStateSshGatewaySchema = Schema_exports.Struct({
|
|
28436
|
-
host:
|
|
28528
|
+
host: NonEmptyString13,
|
|
28437
28529
|
// Defaults (22 / "ws") are applied server-side so clients never hardcode them.
|
|
28438
28530
|
port: Schema_exports.Number,
|
|
28439
|
-
usernamePrefix:
|
|
28531
|
+
usernamePrefix: NonEmptyString13
|
|
28440
28532
|
});
|
|
28441
28533
|
var setupStateResponseSchema = Schema_exports.Struct({
|
|
28442
28534
|
// True while nobody can sign in (zero better-auth accounts); drives the first-run wizard. The
|
|
@@ -28458,18 +28550,18 @@ var SystemGroup = HttpApiGroup_exports.make("system").add(HttpApiEndpoint_export
|
|
|
28458
28550
|
})
|
|
28459
28551
|
).annotate(OpenApi_exports.Description, "System metadata, health probes, and first-run setup state.");
|
|
28460
28552
|
|
|
28461
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28462
|
-
var
|
|
28553
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/users.js
|
|
28554
|
+
var NonEmptyString14 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28463
28555
|
var userSchema = Schema_exports.Struct({
|
|
28464
28556
|
userId: PersonId,
|
|
28465
|
-
email:
|
|
28466
|
-
name:
|
|
28557
|
+
email: NonEmptyString14,
|
|
28558
|
+
name: NonEmptyString14,
|
|
28467
28559
|
createdAt: Schema_exports.String
|
|
28468
28560
|
});
|
|
28469
28561
|
var ensureUserRequestSchema = Schema_exports.Struct({
|
|
28470
28562
|
/** Matched case-insensitively; the stored form is lower-cased. */
|
|
28471
|
-
email:
|
|
28472
|
-
name:
|
|
28563
|
+
email: NonEmptyString14,
|
|
28564
|
+
name: NonEmptyString14,
|
|
28473
28565
|
/** Caller-chosen id for a NEW user (`usr_…`); ignored when the email already exists. */
|
|
28474
28566
|
userId: Schema_exports.optional(PersonId)
|
|
28475
28567
|
});
|
|
@@ -28479,9 +28571,9 @@ var ensureUserResponseSchema = Schema_exports.Struct({
|
|
|
28479
28571
|
created: Schema_exports.Boolean
|
|
28480
28572
|
});
|
|
28481
28573
|
var personBindingSchema = Schema_exports.Struct({
|
|
28482
|
-
id:
|
|
28574
|
+
id: NonEmptyString14,
|
|
28483
28575
|
uid: Schema_exports.Int,
|
|
28484
|
-
home:
|
|
28576
|
+
home: NonEmptyString14
|
|
28485
28577
|
});
|
|
28486
28578
|
var bindUserPersonResponseSchema = Schema_exports.Struct({
|
|
28487
28579
|
userId: PersonId,
|
|
@@ -28521,7 +28613,7 @@ var UsersGroup = HttpApiGroup_exports.make("users").add(HttpApiEndpoint_exports.
|
|
|
28521
28613
|
error: [UserNotFoundError, UserInternalServerError]
|
|
28522
28614
|
})).annotate(OpenApi_exports.Description, "Identity rows for products that own their own login and act on behalf of their users.");
|
|
28523
28615
|
|
|
28524
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28616
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/endpoint-url.js
|
|
28525
28617
|
var parsed = (value3) => {
|
|
28526
28618
|
try {
|
|
28527
28619
|
return new URL(value3);
|
|
@@ -28559,8 +28651,8 @@ var parseEndpointUrl = (raw2) => {
|
|
|
28559
28651
|
return problem === void 0 ? { valid: true, url: decodeEndpointUrl(raw2) } : { valid: false, reason: `The endpoint ${problem}.` };
|
|
28560
28652
|
};
|
|
28561
28653
|
|
|
28562
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
28563
|
-
var
|
|
28654
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspaces.js
|
|
28655
|
+
var NonEmptyString15 = Schema_exports.String.check(Schema_exports.isNonEmpty(), Schema_exports.isTrimmed());
|
|
28564
28656
|
var workspaceStatusSchema = Schema_exports.Literals([
|
|
28565
28657
|
"queued",
|
|
28566
28658
|
"running",
|
|
@@ -28577,8 +28669,8 @@ var workspaceRuntimeSchema = Schema_exports.Struct({
|
|
|
28577
28669
|
* The executor's identity on its runtime: the Docker container id, the Pod name, the MicroVM
|
|
28578
28670
|
* id. This is the id a caller records at launch and names in a stop's `completion`.
|
|
28579
28671
|
*/
|
|
28580
|
-
resourceId:
|
|
28581
|
-
reference:
|
|
28672
|
+
resourceId: NonEmptyString15,
|
|
28673
|
+
reference: NonEmptyString15,
|
|
28582
28674
|
/** `retained`: the executor is kept with its disk for recovery (see `workspaceStatusSchema`). */
|
|
28583
28675
|
status: Schema_exports.Literals(["pending", "running", "ready", "failed", "stopped", "retained"]),
|
|
28584
28676
|
endpoint: Schema_exports.optional(Schema_exports.String),
|
|
@@ -28590,17 +28682,17 @@ var workspaceRuntimeSchema = Schema_exports.Struct({
|
|
|
28590
28682
|
*/
|
|
28591
28683
|
deadline: Schema_exports.optional(Schema_exports.NullOr(Schema_exports.String)),
|
|
28592
28684
|
/** The run (launch attempt) this executor belongs to. Absent from older control planes. */
|
|
28593
|
-
runId: Schema_exports.optional(
|
|
28685
|
+
runId: Schema_exports.optional(NonEmptyString15),
|
|
28594
28686
|
/** The launch identity the create named for this executor (`launchId`), when it named one. */
|
|
28595
|
-
launchId: Schema_exports.optional(
|
|
28687
|
+
launchId: Schema_exports.optional(NonEmptyString15)
|
|
28596
28688
|
});
|
|
28597
28689
|
var workspaceSshTargetSchema = Schema_exports.Struct({
|
|
28598
|
-
workspaceId:
|
|
28599
|
-
attemptId:
|
|
28690
|
+
workspaceId: NonEmptyString15,
|
|
28691
|
+
attemptId: NonEmptyString15,
|
|
28600
28692
|
runtime: Schema_exports.Struct({
|
|
28601
28693
|
adapter: Schema_exports.Literals(runtimeAdapterIds),
|
|
28602
|
-
resourceId:
|
|
28603
|
-
reference:
|
|
28694
|
+
resourceId: NonEmptyString15,
|
|
28695
|
+
reference: NonEmptyString15,
|
|
28604
28696
|
status: Schema_exports.Literals(["pending", "running", "ready", "failed", "stopped"]),
|
|
28605
28697
|
endpoint: Schema_exports.String
|
|
28606
28698
|
}),
|
|
@@ -28611,13 +28703,13 @@ var workspaceSshTargetSchema = Schema_exports.Struct({
|
|
|
28611
28703
|
* the silence as root. Sent only to a gateway that says it runs sessions as a user
|
|
28612
28704
|
* (`x-sealant-gateway-ssh-user: 1`); a workspace with a user refuses any other gateway.
|
|
28613
28705
|
*/
|
|
28614
|
-
sessionUser: Schema_exports.NullOr(
|
|
28706
|
+
sessionUser: Schema_exports.NullOr(NonEmptyString15),
|
|
28615
28707
|
/**
|
|
28616
28708
|
* The key fingerprint the gateway named in `x-sealant-ssh-key-fingerprint`, echoed once the API
|
|
28617
28709
|
* found it still registered to the principal. Absent when the gateway named none. A gateway that
|
|
28618
28710
|
* named one refuses a target without it (an older API, which never checked the key).
|
|
28619
28711
|
*/
|
|
28620
|
-
sshKeyFingerprint: Schema_exports.optional(
|
|
28712
|
+
sshKeyFingerprint: Schema_exports.optional(NonEmptyString15)
|
|
28621
28713
|
});
|
|
28622
28714
|
var workspaceImagePersonLayoutSchema = Schema_exports.Struct({
|
|
28623
28715
|
status: Schema_exports.Literals(["supported", "unsupported", "unknown"]),
|
|
@@ -28633,7 +28725,7 @@ var workspaceImagePersonLayoutSchema = Schema_exports.Struct({
|
|
|
28633
28725
|
*/
|
|
28634
28726
|
unknown: Schema_exports.Array(Schema_exports.String),
|
|
28635
28727
|
/** The runtime the answer is for: the workspace's, or the deployment's default before create. */
|
|
28636
|
-
runtime:
|
|
28728
|
+
runtime: NonEmptyString15,
|
|
28637
28729
|
/** ACLs on that runtime's `/workspace`, as the operator declared them. */
|
|
28638
28730
|
acl: Schema_exports.Literals(["supported", "unsupported", "unknown"])
|
|
28639
28731
|
});
|
|
@@ -28643,59 +28735,59 @@ var workspaceProcessUserCapabilitySchema = Schema_exports.Literals([
|
|
|
28643
28735
|
"unknown"
|
|
28644
28736
|
]);
|
|
28645
28737
|
var workspacePublishedImageSchema = Schema_exports.Struct({
|
|
28646
|
-
reference:
|
|
28647
|
-
digestReference:
|
|
28648
|
-
digest:
|
|
28738
|
+
reference: NonEmptyString15,
|
|
28739
|
+
digestReference: NonEmptyString15,
|
|
28740
|
+
digest: NonEmptyString15,
|
|
28649
28741
|
/** Absent from control planes before the per-person capability. */
|
|
28650
28742
|
personLayout: Schema_exports.optional(workspaceImagePersonLayoutSchema)
|
|
28651
28743
|
});
|
|
28652
28744
|
var workspacePublicationSchema = Schema_exports.Union([
|
|
28653
28745
|
Schema_exports.Struct({
|
|
28654
28746
|
kind: Schema_exports.Literal("oci"),
|
|
28655
|
-
publicationId:
|
|
28747
|
+
publicationId: NonEmptyString15,
|
|
28656
28748
|
image: Schema_exports.Struct({
|
|
28657
|
-
repository:
|
|
28658
|
-
tag:
|
|
28659
|
-
reference:
|
|
28660
|
-
digestReference:
|
|
28661
|
-
digest:
|
|
28749
|
+
repository: NonEmptyString15,
|
|
28750
|
+
tag: NonEmptyString15,
|
|
28751
|
+
reference: NonEmptyString15,
|
|
28752
|
+
digestReference: NonEmptyString15,
|
|
28753
|
+
digest: NonEmptyString15
|
|
28662
28754
|
})
|
|
28663
28755
|
}),
|
|
28664
28756
|
Schema_exports.Struct({
|
|
28665
28757
|
kind: Schema_exports.Literal("microvm"),
|
|
28666
|
-
publicationId:
|
|
28758
|
+
publicationId: NonEmptyString15,
|
|
28667
28759
|
image: Schema_exports.Struct({
|
|
28668
|
-
imageArn:
|
|
28669
|
-
imageVersion:
|
|
28670
|
-
planHash:
|
|
28760
|
+
imageArn: NonEmptyString15,
|
|
28761
|
+
imageVersion: NonEmptyString15,
|
|
28762
|
+
planHash: NonEmptyString15
|
|
28671
28763
|
})
|
|
28672
28764
|
}),
|
|
28673
28765
|
Schema_exports.Struct({
|
|
28674
28766
|
kind: Schema_exports.Literal("boat-native"),
|
|
28675
|
-
publicationId:
|
|
28767
|
+
publicationId: NonEmptyString15,
|
|
28676
28768
|
snapshot: Schema_exports.Struct({
|
|
28677
28769
|
kind: Schema_exports.Literal("boat-saved-snapshot"),
|
|
28678
|
-
owner:
|
|
28679
|
-
build:
|
|
28680
|
-
recipeHash:
|
|
28681
|
-
receiptHash:
|
|
28770
|
+
owner: NonEmptyString15,
|
|
28771
|
+
build: NonEmptyString15,
|
|
28772
|
+
recipeHash: NonEmptyString15,
|
|
28773
|
+
receiptHash: NonEmptyString15,
|
|
28682
28774
|
identity: Schema_exports.Struct({
|
|
28683
|
-
name:
|
|
28684
|
-
sourceSandboxId:
|
|
28685
|
-
createdAt:
|
|
28686
|
-
snapshotId: Schema_exports.optional(
|
|
28775
|
+
name: NonEmptyString15,
|
|
28776
|
+
sourceSandboxId: NonEmptyString15,
|
|
28777
|
+
createdAt: NonEmptyString15,
|
|
28778
|
+
snapshotId: Schema_exports.optional(NonEmptyString15)
|
|
28687
28779
|
})
|
|
28688
28780
|
}),
|
|
28689
28781
|
evidence: Schema_exports.Struct({
|
|
28690
|
-
recipeHash:
|
|
28691
|
-
receiptHash:
|
|
28692
|
-
assetsHash:
|
|
28782
|
+
recipeHash: NonEmptyString15,
|
|
28783
|
+
receiptHash: NonEmptyString15,
|
|
28784
|
+
assetsHash: NonEmptyString15,
|
|
28693
28785
|
runtime: Schema_exports.Struct({
|
|
28694
|
-
source:
|
|
28786
|
+
source: NonEmptyString15,
|
|
28695
28787
|
platform: Schema_exports.Literal("linux/amd64"),
|
|
28696
|
-
manifest:
|
|
28697
|
-
sealantd:
|
|
28698
|
-
sealantctl:
|
|
28788
|
+
manifest: NonEmptyString15,
|
|
28789
|
+
sealantd: NonEmptyString15,
|
|
28790
|
+
sealantctl: NonEmptyString15
|
|
28699
28791
|
}),
|
|
28700
28792
|
daemonRecovery: Schema_exports.Literals(["supported", "unsupported", "unknown"]),
|
|
28701
28793
|
executorRecovery: Schema_exports.Literal("unverified")
|
|
@@ -28704,28 +28796,28 @@ var workspacePublicationSchema = Schema_exports.Union([
|
|
|
28704
28796
|
]);
|
|
28705
28797
|
var workspaceErrorSchema = Schema_exports.Struct({
|
|
28706
28798
|
message: Schema_exports.String,
|
|
28707
|
-
code: Schema_exports.optional(
|
|
28799
|
+
code: Schema_exports.optional(NonEmptyString15)
|
|
28708
28800
|
});
|
|
28709
28801
|
var githubWorkspaceSourceSelectionSchema = Schema_exports.Struct({
|
|
28710
28802
|
provider: Schema_exports.Literal("github"),
|
|
28711
|
-
installationId:
|
|
28712
|
-
installationRepositoryId:
|
|
28713
|
-
ref: Schema_exports.optional(
|
|
28803
|
+
installationId: NonEmptyString15,
|
|
28804
|
+
installationRepositoryId: NonEmptyString15,
|
|
28805
|
+
ref: Schema_exports.optional(NonEmptyString15)
|
|
28714
28806
|
});
|
|
28715
28807
|
var createWorkspaceCredentialsSchema = Schema_exports.Struct({
|
|
28716
|
-
profileId: Schema_exports.optional(
|
|
28717
|
-
claude: Schema_exports.optional(
|
|
28718
|
-
codex: Schema_exports.optional(
|
|
28719
|
-
github: Schema_exports.optional(
|
|
28808
|
+
profileId: Schema_exports.optional(NonEmptyString15),
|
|
28809
|
+
claude: Schema_exports.optional(NonEmptyString15),
|
|
28810
|
+
codex: Schema_exports.optional(NonEmptyString15),
|
|
28811
|
+
github: Schema_exports.optional(NonEmptyString15)
|
|
28720
28812
|
});
|
|
28721
28813
|
var createWorkspaceRequestSchema = Schema_exports.Struct({
|
|
28722
28814
|
/** Existing resource domain for image reuse only. Omitted selects the authenticated owner. */
|
|
28723
|
-
imageScopeId: Schema_exports.optional(
|
|
28815
|
+
imageScopeId: Schema_exports.optional(NonEmptyString15),
|
|
28724
28816
|
ownerUserId: PersonId,
|
|
28725
|
-
registryId:
|
|
28726
|
-
repository:
|
|
28727
|
-
tag:
|
|
28728
|
-
name: Schema_exports.optional(
|
|
28817
|
+
registryId: NonEmptyString15,
|
|
28818
|
+
repository: NonEmptyString15,
|
|
28819
|
+
tag: NonEmptyString15,
|
|
28820
|
+
name: Schema_exports.optional(NonEmptyString15),
|
|
28729
28821
|
sourceSelection: Schema_exports.optional(githubWorkspaceSourceSelectionSchema),
|
|
28730
28822
|
dotfilesSelection: Schema_exports.optional(githubWorkspaceSourceSelectionSchema),
|
|
28731
28823
|
credentials: Schema_exports.optional(createWorkspaceCredentialsSchema),
|
|
@@ -28744,7 +28836,7 @@ var createWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
28744
28836
|
// workspace source and refused with any other. Sealed and delivered exactly like `secretEnv`,
|
|
28745
28837
|
// reaching the daemon's boot secret file as `SEALANT_CAPTURE_TOKEN`; never the spec, the attempt
|
|
28746
28838
|
// snapshot, or any read response. Not retained: a capture workspace cannot be restarted in place.
|
|
28747
|
-
captureToken: Schema_exports.optional(
|
|
28839
|
+
captureToken: Schema_exports.optional(NonEmptyString15),
|
|
28748
28840
|
// Per-create TTL override in seconds; when omitted the server default TTL (if configured)
|
|
28749
28841
|
// applies. The reaper stops the workspace once the TTL elapses.
|
|
28750
28842
|
ttlSeconds: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThan(0))),
|
|
@@ -28755,14 +28847,14 @@ var createWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
28755
28847
|
* (`GET /v1/workspaces?idempotencyKey=`). Scoped to `ownerUserId`. The `idempotency-key` header
|
|
28756
28848
|
* means the same; this field wins when both are sent.
|
|
28757
28849
|
*/
|
|
28758
|
-
idempotencyKey: Schema_exports.optional(
|
|
28850
|
+
idempotencyKey: Schema_exports.optional(NonEmptyString15),
|
|
28759
28851
|
/**
|
|
28760
28852
|
* The caller's immutable identity for the ONE physical executor this create launches, minted
|
|
28761
28853
|
* before create (a caller that makes the create idempotent can reuse its idempotency key). It is
|
|
28762
28854
|
* recorded on the launch attempt and reported with the executor (`runtime.launchId`); a stop's
|
|
28763
28855
|
* completion attestation that names a launch must name this one.
|
|
28764
28856
|
*/
|
|
28765
|
-
launchId: Schema_exports.optional(
|
|
28857
|
+
launchId: Schema_exports.optional(NonEmptyString15),
|
|
28766
28858
|
/**
|
|
28767
28859
|
* The SSH gateway runs this workspace's SSH sessions as its owner's own Linux user: the person
|
|
28768
28860
|
* the owner is bound to (`POST /v1/users/:id/person`). The create must carry a capture owner map
|
|
@@ -28774,7 +28866,7 @@ var createWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
28774
28866
|
sshAsOwner: Schema_exports.optional(Schema_exports.Boolean)
|
|
28775
28867
|
});
|
|
28776
28868
|
var createWorkspaceHeadersSchema = Schema_exports.Struct({
|
|
28777
|
-
"idempotency-key": Schema_exports.optional(
|
|
28869
|
+
"idempotency-key": Schema_exports.optional(NonEmptyString15)
|
|
28778
28870
|
});
|
|
28779
28871
|
var execWorkspaceRequestSchema = Schema_exports.Struct({
|
|
28780
28872
|
ownerUserId: PersonId,
|
|
@@ -28794,14 +28886,14 @@ var execWorkspaceAsUserRequestSchema = Schema_exports.Struct({
|
|
|
28794
28886
|
var workspaceDotfilesManagerSchema = Schema_exports.Literals(["auto", "chezmoi", "stow", "copy"]);
|
|
28795
28887
|
var applyWorkspaceDotfilesRepositorySchema = Schema_exports.Struct({
|
|
28796
28888
|
/** An `https://` clone URL with no credential in it (no `user:token@`). */
|
|
28797
|
-
url:
|
|
28889
|
+
url: NonEmptyString15.check(Schema_exports.isPattern(/^https:\/\/[^\s'"\\]+$/)),
|
|
28798
28890
|
/** Branch or tag; omitted clones the remote's default branch. */
|
|
28799
|
-
ref: Schema_exports.optional(
|
|
28891
|
+
ref: Schema_exports.optional(NonEmptyString15),
|
|
28800
28892
|
manager: Schema_exports.optional(workspaceDotfilesManagerSchema),
|
|
28801
28893
|
/** Run the bootstrap command after applying (when the checkout has it). Default true. */
|
|
28802
28894
|
bootstrap: Schema_exports.optional(Schema_exports.Boolean),
|
|
28803
28895
|
/** Relative to the checkout; default `./install.sh`. */
|
|
28804
|
-
bootstrapCommand: Schema_exports.optional(
|
|
28896
|
+
bootstrapCommand: Schema_exports.optional(NonEmptyString15)
|
|
28805
28897
|
});
|
|
28806
28898
|
var applyWorkspaceDotfilesArchiveSchema = Schema_exports.Struct({
|
|
28807
28899
|
/** base64 of a `.tar.gz`; at most 6 MiB of base64 (about 4 MiB decoded). */
|
|
@@ -28811,7 +28903,7 @@ var applyWorkspaceDotfilesArchiveSchema = Schema_exports.Struct({
|
|
|
28811
28903
|
target: Schema_exports.optional(Schema_exports.Literals(["home", "config"])),
|
|
28812
28904
|
/** Run `./install.sh` (or `bootstrapCommand`) after applying when present. Default true. */
|
|
28813
28905
|
bootstrap: Schema_exports.optional(Schema_exports.Boolean),
|
|
28814
|
-
bootstrapCommand: Schema_exports.optional(
|
|
28906
|
+
bootstrapCommand: Schema_exports.optional(NonEmptyString15)
|
|
28815
28907
|
});
|
|
28816
28908
|
var applyWorkspaceDotfilesRequestSchema = Schema_exports.Struct({
|
|
28817
28909
|
/** The workspace's owner (owner scope; uniform 404 otherwise). */
|
|
@@ -28821,18 +28913,18 @@ var applyWorkspaceDotfilesRequestSchema = Schema_exports.Struct({
|
|
|
28821
28913
|
/** The Linux user to apply as (a login name or a uid); never root. */
|
|
28822
28914
|
user: workspaceProcessUserSchema,
|
|
28823
28915
|
/** The user's passwd home: absolute, normalised, never under `/workspace`. */
|
|
28824
|
-
home:
|
|
28916
|
+
home: NonEmptyString15,
|
|
28825
28917
|
repository: Schema_exports.optional(applyWorkspaceDotfilesRepositorySchema),
|
|
28826
28918
|
archives: Schema_exports.optional(Schema_exports.Array(applyWorkspaceDotfilesArchiveSchema).check(Schema_exports.isMaxLength(4)))
|
|
28827
28919
|
});
|
|
28828
28920
|
var bindWorkspaceRequestSchema = Schema_exports.Struct({
|
|
28829
28921
|
ownerUserId: PersonId,
|
|
28830
|
-
mountPath: Schema_exports.optional(
|
|
28922
|
+
mountPath: Schema_exports.optional(NonEmptyString15),
|
|
28831
28923
|
subpath: Schema_exports.String
|
|
28832
28924
|
});
|
|
28833
28925
|
var workspaceBindSchema = Schema_exports.Struct({
|
|
28834
|
-
mountPath:
|
|
28835
|
-
subpath:
|
|
28926
|
+
mountPath: NonEmptyString15,
|
|
28927
|
+
subpath: NonEmptyString15
|
|
28836
28928
|
});
|
|
28837
28929
|
var workspaceBindsSchema = Schema_exports.Struct({
|
|
28838
28930
|
binds: Schema_exports.Array(workspaceBindSchema)
|
|
@@ -28865,21 +28957,21 @@ var captureClassSnapsSchema = Schema_exports.Struct({
|
|
|
28865
28957
|
});
|
|
28866
28958
|
var captureExecutorOriginSchema = Schema_exports.Struct({
|
|
28867
28959
|
epoch: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)),
|
|
28868
|
-
launch:
|
|
28869
|
-
bootId:
|
|
28960
|
+
launch: NonEmptyString15,
|
|
28961
|
+
bootId: NonEmptyString15,
|
|
28870
28962
|
bootGeneration: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)),
|
|
28871
28963
|
observation: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)),
|
|
28872
28964
|
headN: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)))
|
|
28873
28965
|
});
|
|
28874
28966
|
var captureOverdueSchema = Schema_exports.Struct({
|
|
28875
|
-
step:
|
|
28967
|
+
step: NonEmptyString15,
|
|
28876
28968
|
startedUnixMs: Schema_exports.Number,
|
|
28877
28969
|
runningMs: Schema_exports.Number,
|
|
28878
28970
|
boundMs: Schema_exports.Number
|
|
28879
28971
|
});
|
|
28880
28972
|
var workspaceCaptureStatusSchema = Schema_exports.Struct({
|
|
28881
28973
|
epoch: Schema_exports.Number,
|
|
28882
|
-
worktreeId:
|
|
28974
|
+
worktreeId: NonEmptyString15,
|
|
28883
28975
|
/** The newest capture the session channel has registered for this worktree. */
|
|
28884
28976
|
headN: Schema_exports.optional(Schema_exports.Number),
|
|
28885
28977
|
/** Captures staged on the executor and not yet registered: the unsaved queue. */
|
|
@@ -28999,10 +29091,10 @@ var replanWorkspaceCaptureRequestSchema = Schema_exports.Struct({
|
|
|
28999
29091
|
})))
|
|
29000
29092
|
});
|
|
29001
29093
|
var workspaceCaptureReplannedSchema = Schema_exports.Struct({
|
|
29002
|
-
worktreeId:
|
|
29094
|
+
worktreeId: NonEmptyString15,
|
|
29003
29095
|
epoch: Schema_exports.Number,
|
|
29004
29096
|
headN: Schema_exports.optional(Schema_exports.Number),
|
|
29005
|
-
headCaptureId: Schema_exports.optional(
|
|
29097
|
+
headCaptureId: Schema_exports.optional(NonEmptyString15),
|
|
29006
29098
|
filesWritten: Schema_exports.Number,
|
|
29007
29099
|
bytesWritten: Schema_exports.Number,
|
|
29008
29100
|
filesSkipped: Schema_exports.Number,
|
|
@@ -29011,7 +29103,7 @@ var workspaceCaptureReplannedSchema = Schema_exports.Struct({
|
|
|
29011
29103
|
unchanged: Schema_exports.Boolean
|
|
29012
29104
|
});
|
|
29013
29105
|
var renameWorkspaceRequestSchema = Schema_exports.Struct({
|
|
29014
|
-
name:
|
|
29106
|
+
name: NonEmptyString15,
|
|
29015
29107
|
/** The workspace's owner. Required by the control plane: a rename that names none finds nothing. */
|
|
29016
29108
|
ownerUserId: Schema_exports.optional(PersonId)
|
|
29017
29109
|
});
|
|
@@ -29054,18 +29146,18 @@ var stopWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
29054
29146
|
/** The capture lease epoch the seal was made under. */
|
|
29055
29147
|
epoch: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0)),
|
|
29056
29148
|
/** The executor the seal names: run id, or runtime `resourceId` / `reference`. */
|
|
29057
|
-
executorId:
|
|
29149
|
+
executorId: NonEmptyString15,
|
|
29058
29150
|
/**
|
|
29059
29151
|
* The launch identity the seal names (`final_seal.executor`). Required when the create named
|
|
29060
29152
|
* a `launchId`, and then it must be that one; an attestation without it, or naming another
|
|
29061
29153
|
* launch, is ignored (a seal never transfers between executors).
|
|
29062
29154
|
*/
|
|
29063
|
-
launchId: Schema_exports.optional(
|
|
29155
|
+
launchId: Schema_exports.optional(NonEmptyString15),
|
|
29064
29156
|
/**
|
|
29065
29157
|
* When the store recorded the seal (ISO 8601). Kept for display: clocks order nothing. It
|
|
29066
29158
|
* must still read as a time.
|
|
29067
29159
|
*/
|
|
29068
|
-
sealedAt: Schema_exports.optional(
|
|
29160
|
+
sealedAt: Schema_exports.optional(NonEmptyString15),
|
|
29069
29161
|
/**
|
|
29070
29162
|
* Where in the executor's own history the seal was made (sealantd stamps it on the
|
|
29071
29163
|
* `final_seal`): the one thing that orders the seal against a report of the same capture
|
|
@@ -29076,7 +29168,7 @@ var stopWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
29076
29168
|
}))
|
|
29077
29169
|
});
|
|
29078
29170
|
var stopWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29079
|
-
workspaceId:
|
|
29171
|
+
workspaceId: NonEmptyString15,
|
|
29080
29172
|
status: workspaceStatusSchema,
|
|
29081
29173
|
/**
|
|
29082
29174
|
* What became of a `completion` attestation on the request: `accepted` (recorded; it lets the
|
|
@@ -29092,7 +29184,7 @@ var recoverWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
29092
29184
|
ownerUserId: PersonId
|
|
29093
29185
|
});
|
|
29094
29186
|
var recoverWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29095
|
-
workspaceId:
|
|
29187
|
+
workspaceId: NonEmptyString15,
|
|
29096
29188
|
state: Schema_exports.Literals(["requested", "not-retained"]),
|
|
29097
29189
|
recoverable: Schema_exports.optional(Schema_exports.Boolean)
|
|
29098
29190
|
});
|
|
@@ -29100,21 +29192,21 @@ var restartWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
29100
29192
|
ownerUserId: PersonId
|
|
29101
29193
|
});
|
|
29102
29194
|
var restartWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29103
|
-
workspaceId:
|
|
29195
|
+
workspaceId: NonEmptyString15,
|
|
29104
29196
|
/** The new attempt driving the fresh launch. */
|
|
29105
|
-
runId:
|
|
29197
|
+
runId: NonEmptyString15,
|
|
29106
29198
|
status: workspaceStatusSchema
|
|
29107
29199
|
});
|
|
29108
29200
|
var inspectWorkspaceImageRequestSchema = Schema_exports.Struct({
|
|
29109
|
-
imageScopeId: Schema_exports.optional(
|
|
29201
|
+
imageScopeId: Schema_exports.optional(NonEmptyString15),
|
|
29110
29202
|
ownerUserId: PersonId,
|
|
29111
|
-
registryId:
|
|
29203
|
+
registryId: NonEmptyString15,
|
|
29112
29204
|
/** The spec a create would send (`CreateWorkspaceRequest.spec`). */
|
|
29113
29205
|
spec: Schema_exports.Unknown
|
|
29114
29206
|
});
|
|
29115
29207
|
var inspectWorkspaceImageResponseSchema = Schema_exports.Struct({
|
|
29116
29208
|
/** The hash of the image plan the spec renders: one per distinct build input. */
|
|
29117
|
-
planHash:
|
|
29209
|
+
planHash: NonEmptyString15,
|
|
29118
29210
|
/** The latest image published for the plan; absent when none has been built yet. */
|
|
29119
29211
|
publishedImage: Schema_exports.optional(workspacePublishedImageSchema),
|
|
29120
29212
|
publication: Schema_exports.optional(workspacePublicationSchema),
|
|
@@ -29143,7 +29235,7 @@ var putWorkspaceCredentialsRequestSchema = Schema_exports.Struct({
|
|
|
29143
29235
|
* `/root`. Normalised, never under `/workspace`, and reached without a symbolic link. It must
|
|
29144
29236
|
* exist; its owner owns the files.
|
|
29145
29237
|
*/
|
|
29146
|
-
home:
|
|
29238
|
+
home: NonEmptyString15,
|
|
29147
29239
|
/**
|
|
29148
29240
|
* The home's owner, given together: a home that does not exist yet is made for them (mode 0700,
|
|
29149
29241
|
* seeded from `/etc/skel`), so a put can run beside the `useradd` that makes its user. Without
|
|
@@ -29151,21 +29243,21 @@ var putWorkspaceCredentialsRequestSchema = Schema_exports.Struct({
|
|
|
29151
29243
|
*/
|
|
29152
29244
|
uid: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0))),
|
|
29153
29245
|
gid: Schema_exports.optional(Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0))),
|
|
29154
|
-
claude: Schema_exports.optional(Schema_exports.NullOr(
|
|
29155
|
-
codex: Schema_exports.optional(Schema_exports.NullOr(
|
|
29156
|
-
github: Schema_exports.optional(Schema_exports.NullOr(
|
|
29246
|
+
claude: Schema_exports.optional(Schema_exports.NullOr(NonEmptyString15)),
|
|
29247
|
+
codex: Schema_exports.optional(Schema_exports.NullOr(NonEmptyString15)),
|
|
29248
|
+
github: Schema_exports.optional(Schema_exports.NullOr(NonEmptyString15)),
|
|
29157
29249
|
/**
|
|
29158
29250
|
* pi's ChatGPT login, made from a Codex account of `onBehalfOfUserId` (an id or a Codex account
|
|
29159
29251
|
* name), as the `openai-codex` entry of `<home>/.pi/agent/auth.json`. The file is merged: its
|
|
29160
29252
|
* other entries stay, and an `openai-codex` login the person made in pi is never replaced.
|
|
29161
29253
|
*/
|
|
29162
|
-
pi: Schema_exports.optional(Schema_exports.NullOr(
|
|
29254
|
+
pi: Schema_exports.optional(Schema_exports.NullOr(NonEmptyString15)),
|
|
29163
29255
|
/**
|
|
29164
29256
|
* opencode's ChatGPT login, made the same way, as the `openai` entry of opencode's `auth.json`
|
|
29165
29257
|
* (`<home>/.local/share/opencode/auth.json`, followed through links to where it really is, which
|
|
29166
29258
|
* must be inside the home). A login the person made in opencode is never replaced or removed.
|
|
29167
29259
|
*/
|
|
29168
|
-
opencode: Schema_exports.optional(Schema_exports.NullOr(
|
|
29260
|
+
opencode: Schema_exports.optional(Schema_exports.NullOr(NonEmptyString15)),
|
|
29169
29261
|
/**
|
|
29170
29262
|
* Write what the person has connected and leave out the rest: a provider whose account is refused
|
|
29171
29263
|
* (`connected-account-missing`, `-invalid` or `-unsupported`) is not written, its login is removed
|
|
@@ -29177,20 +29269,20 @@ var putWorkspaceCredentialsRequestSchema = Schema_exports.Struct({
|
|
|
29177
29269
|
* The placements the person's running processes hold in this home: a provider whose slot one of
|
|
29178
29270
|
* them holds is not written over with another login. Absent, nothing is held.
|
|
29179
29271
|
*/
|
|
29180
|
-
live: Schema_exports.optional(Schema_exports.Array(
|
|
29272
|
+
live: Schema_exports.optional(Schema_exports.Array(NonEmptyString15))
|
|
29181
29273
|
});
|
|
29182
29274
|
var credentialPlacementLoginSchema = Schema_exports.Union([
|
|
29183
29275
|
Schema_exports.Struct({ kind: Schema_exports.Literal("subscription") }),
|
|
29184
29276
|
Schema_exports.Struct({
|
|
29185
29277
|
kind: Schema_exports.Literal("api-key"),
|
|
29186
|
-
suffix:
|
|
29187
|
-
keyPath: Schema_exports.optional(
|
|
29278
|
+
suffix: NonEmptyString15,
|
|
29279
|
+
keyPath: Schema_exports.optional(NonEmptyString15),
|
|
29188
29280
|
baseUrl: Schema_exports.optional(EndpointUrl)
|
|
29189
29281
|
})
|
|
29190
29282
|
]);
|
|
29191
29283
|
var credentialPlacementReceiptSchema = Schema_exports.Struct({
|
|
29192
|
-
placementId:
|
|
29193
|
-
accountId:
|
|
29284
|
+
placementId: NonEmptyString15,
|
|
29285
|
+
accountId: NonEmptyString15,
|
|
29194
29286
|
revision: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
29195
29287
|
login: credentialPlacementLoginSchema,
|
|
29196
29288
|
pinned: Schema_exports.Boolean
|
|
@@ -29200,12 +29292,12 @@ var workspaceCredentialPlacementReceiptSchema = Schema_exports.Struct({
|
|
|
29200
29292
|
...credentialPlacementReceiptSchema.fields
|
|
29201
29293
|
});
|
|
29202
29294
|
var workspaceHomeAccountSchema = Schema_exports.Struct({
|
|
29203
|
-
connectedAccountId:
|
|
29295
|
+
connectedAccountId: NonEmptyString15,
|
|
29204
29296
|
/** The account's name under its provider, as it is now. */
|
|
29205
|
-
name:
|
|
29297
|
+
name: NonEmptyString15
|
|
29206
29298
|
});
|
|
29207
29299
|
var workspaceCredentialHomeSchema = Schema_exports.Struct({
|
|
29208
|
-
home:
|
|
29300
|
+
home: NonEmptyString15,
|
|
29209
29301
|
/** The one person whose logins the home holds. */
|
|
29210
29302
|
onBehalfOfUserId: PersonId,
|
|
29211
29303
|
/** The logins written there, one receipt each. Absent from a server without placements. */
|
|
@@ -29237,9 +29329,9 @@ var workspaceCredentialSkipSchema = Schema_exports.Struct({
|
|
|
29237
29329
|
message: Schema_exports.String
|
|
29238
29330
|
});
|
|
29239
29331
|
var putWorkspaceCredentialsResponseSchema = Schema_exports.Struct({
|
|
29240
|
-
workspaceId:
|
|
29332
|
+
workspaceId: NonEmptyString15,
|
|
29241
29333
|
/** The launch attempt whose executor was written. */
|
|
29242
|
-
runId:
|
|
29334
|
+
runId: NonEmptyString15,
|
|
29243
29335
|
/** The home as it is after the put. */
|
|
29244
29336
|
home: workspaceCredentialHomeSchema,
|
|
29245
29337
|
/** A partial put's left-out providers, in the order named (empty when all were written). */
|
|
@@ -29247,23 +29339,23 @@ var putWorkspaceCredentialsResponseSchema = Schema_exports.Struct({
|
|
|
29247
29339
|
});
|
|
29248
29340
|
var pruneWorkspaceCredentialsRequestSchema = Schema_exports.Struct({
|
|
29249
29341
|
ownerUserId: PersonId,
|
|
29250
|
-
home:
|
|
29251
|
-
live: Schema_exports.Array(
|
|
29342
|
+
home: NonEmptyString15,
|
|
29343
|
+
live: Schema_exports.Array(NonEmptyString15)
|
|
29252
29344
|
});
|
|
29253
29345
|
var pruneWorkspaceCredentialsResponseSchema = Schema_exports.Struct({
|
|
29254
|
-
workspaceId:
|
|
29255
|
-
runId:
|
|
29346
|
+
workspaceId: NonEmptyString15,
|
|
29347
|
+
runId: NonEmptyString15,
|
|
29256
29348
|
/** Absent when the home holds nothing (any more). */
|
|
29257
29349
|
home: Schema_exports.optional(workspaceCredentialHomeSchema)
|
|
29258
29350
|
});
|
|
29259
29351
|
var releaseWorkspaceCredentialsQuerySchema = Schema_exports.Struct({
|
|
29260
29352
|
ownerUserId: PersonId,
|
|
29261
|
-
home:
|
|
29353
|
+
home: NonEmptyString15
|
|
29262
29354
|
});
|
|
29263
29355
|
var releaseWorkspaceCredentialsResponseSchema = Schema_exports.Struct({
|
|
29264
|
-
workspaceId:
|
|
29265
|
-
runId:
|
|
29266
|
-
home:
|
|
29356
|
+
workspaceId: NonEmptyString15,
|
|
29357
|
+
runId: NonEmptyString15,
|
|
29358
|
+
home: NonEmptyString15,
|
|
29267
29359
|
/** `false`: the home held nothing (already released); its login files were removed anyway. */
|
|
29268
29360
|
released: Schema_exports.Boolean
|
|
29269
29361
|
});
|
|
@@ -29271,8 +29363,8 @@ var listWorkspaceCredentialsQuerySchema = Schema_exports.Struct({
|
|
|
29271
29363
|
ownerUserId: PersonId
|
|
29272
29364
|
});
|
|
29273
29365
|
var listWorkspaceCredentialsResponseSchema = Schema_exports.Struct({
|
|
29274
|
-
workspaceId:
|
|
29275
|
-
runId:
|
|
29366
|
+
workspaceId: NonEmptyString15,
|
|
29367
|
+
runId: NonEmptyString15,
|
|
29276
29368
|
homes: Schema_exports.Array(workspaceCredentialHomeSchema)
|
|
29277
29369
|
});
|
|
29278
29370
|
var expireWorkspaceRequestSchema = Schema_exports.Struct({
|
|
@@ -29282,28 +29374,28 @@ var expireWorkspaceRequestSchema = Schema_exports.Struct({
|
|
|
29282
29374
|
ttlSeconds: Schema_exports.optional(Schema_exports.NullOr(Schema_exports.Int.check(Schema_exports.isGreaterThan(0))))
|
|
29283
29375
|
});
|
|
29284
29376
|
var expireWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29285
|
-
workspaceId:
|
|
29377
|
+
workspaceId: NonEmptyString15,
|
|
29286
29378
|
expiresAt: Schema_exports.NullOr(Schema_exports.String)
|
|
29287
29379
|
});
|
|
29288
29380
|
var renameWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29289
|
-
workspaceId:
|
|
29290
|
-
name:
|
|
29381
|
+
workspaceId: NonEmptyString15,
|
|
29382
|
+
name: NonEmptyString15,
|
|
29291
29383
|
updatedAt: Schema_exports.String
|
|
29292
29384
|
});
|
|
29293
29385
|
var clearWorkspaceSshUserResponseSchema = Schema_exports.Struct({
|
|
29294
|
-
workspaceId:
|
|
29386
|
+
workspaceId: NonEmptyString15,
|
|
29295
29387
|
/** Always `null` (root) after the call. */
|
|
29296
29388
|
sshUser: Schema_exports.Null
|
|
29297
29389
|
});
|
|
29298
29390
|
var createWorkspaceResponseSchema = Schema_exports.Struct({
|
|
29299
|
-
workspaceId:
|
|
29300
|
-
name:
|
|
29391
|
+
workspaceId: NonEmptyString15,
|
|
29392
|
+
name: NonEmptyString15,
|
|
29301
29393
|
status: workspaceStatusSchema,
|
|
29302
|
-
registryId:
|
|
29303
|
-
repository:
|
|
29304
|
-
tag:
|
|
29394
|
+
registryId: NonEmptyString15,
|
|
29395
|
+
repository: NonEmptyString15,
|
|
29396
|
+
tag: NonEmptyString15,
|
|
29305
29397
|
/** The launch attempt this create started (or, replayed, the workspace's latest). */
|
|
29306
|
-
runId: Schema_exports.optional(
|
|
29398
|
+
runId: Schema_exports.optional(NonEmptyString15),
|
|
29307
29399
|
/**
|
|
29308
29400
|
* The executor, once one exists: on a fresh create there is none yet (the launch is
|
|
29309
29401
|
* asynchronous); a replayed create carries the workspace's current one.
|
|
@@ -29312,14 +29404,14 @@ var createWorkspaceResponseSchema = Schema_exports.Struct({
|
|
|
29312
29404
|
/** `true` when an earlier create with the same `idempotencyKey` made this workspace. */
|
|
29313
29405
|
replayed: Schema_exports.optional(Schema_exports.Boolean),
|
|
29314
29406
|
/** The launch identity the create named (`launchId`), recorded on its attempt. */
|
|
29315
|
-
launchId: Schema_exports.optional(
|
|
29407
|
+
launchId: Schema_exports.optional(NonEmptyString15)
|
|
29316
29408
|
});
|
|
29317
29409
|
var workspaceCreateStateSchema = Schema_exports.Struct({
|
|
29318
|
-
idempotencyKey:
|
|
29410
|
+
idempotencyKey: NonEmptyString15,
|
|
29319
29411
|
state: Schema_exports.Literals(["pending", "found", "cancelled", "none"]),
|
|
29320
|
-
workspaceId: Schema_exports.optional(
|
|
29321
|
-
runId: Schema_exports.optional(
|
|
29322
|
-
launchId: Schema_exports.optional(
|
|
29412
|
+
workspaceId: Schema_exports.optional(NonEmptyString15),
|
|
29413
|
+
runId: Schema_exports.optional(NonEmptyString15),
|
|
29414
|
+
launchId: Schema_exports.optional(NonEmptyString15)
|
|
29323
29415
|
});
|
|
29324
29416
|
var getWorkspaceCreateQuerySchema = Schema_exports.Struct({
|
|
29325
29417
|
ownerUserId: PersonId
|
|
@@ -29344,13 +29436,13 @@ var workspacePhaseSchema = Schema_exports.Struct({
|
|
|
29344
29436
|
}))
|
|
29345
29437
|
});
|
|
29346
29438
|
var workspaceSummarySchema = Schema_exports.Struct({
|
|
29347
|
-
workspaceId:
|
|
29348
|
-
name:
|
|
29439
|
+
workspaceId: NonEmptyString15,
|
|
29440
|
+
name: NonEmptyString15,
|
|
29349
29441
|
ownerUserId: PersonId,
|
|
29350
29442
|
status: workspaceStatusSchema,
|
|
29351
|
-
registryId: Schema_exports.optional(
|
|
29352
|
-
repository: Schema_exports.optional(
|
|
29353
|
-
tag: Schema_exports.optional(
|
|
29443
|
+
registryId: Schema_exports.optional(NonEmptyString15),
|
|
29444
|
+
repository: Schema_exports.optional(NonEmptyString15),
|
|
29445
|
+
tag: Schema_exports.optional(NonEmptyString15),
|
|
29354
29446
|
runtime: Schema_exports.optional(workspaceRuntimeSchema),
|
|
29355
29447
|
publishedImage: Schema_exports.optional(workspacePublishedImageSchema),
|
|
29356
29448
|
publication: Schema_exports.optional(workspacePublicationSchema),
|
|
@@ -29381,7 +29473,7 @@ var workspaceCaptureDrainSchema = Schema_exports.Struct({
|
|
|
29381
29473
|
/** ISO-8601: when the deadline sweep starts (or started) the final drain. */
|
|
29382
29474
|
preservationStartsAt: Schema_exports.optional(Schema_exports.String),
|
|
29383
29475
|
/** The owner's request to discard the unsaved captures: who asked, and when (ISO-8601). */
|
|
29384
|
-
discard: Schema_exports.optional(Schema_exports.Struct({ requestedBy:
|
|
29476
|
+
discard: Schema_exports.optional(Schema_exports.Struct({ requestedBy: NonEmptyString15, requestedAt: Schema_exports.String })),
|
|
29385
29477
|
/**
|
|
29386
29478
|
* The executor is RETAINED: kept because its disk holds work not confirmed saved. `since` and
|
|
29387
29479
|
* `reason` say when and why; recovery is attempted on a backoff (`recoveryAttempts`,
|
|
@@ -29402,20 +29494,20 @@ var workspaceCaptureDrainSchema = Schema_exports.Struct({
|
|
|
29402
29494
|
* the id a stop's `completion` names).
|
|
29403
29495
|
*/
|
|
29404
29496
|
executor: Schema_exports.optional(Schema_exports.Struct({
|
|
29405
|
-
runId:
|
|
29406
|
-
adapter:
|
|
29407
|
-
resourceId:
|
|
29408
|
-
reference: Schema_exports.optional(
|
|
29497
|
+
runId: NonEmptyString15,
|
|
29498
|
+
adapter: NonEmptyString15,
|
|
29499
|
+
resourceId: NonEmptyString15,
|
|
29500
|
+
reference: Schema_exports.optional(NonEmptyString15),
|
|
29409
29501
|
/** The launch identity the create named for this executor (`launchId`), when it named one. */
|
|
29410
|
-
launchId: Schema_exports.optional(
|
|
29502
|
+
launchId: Schema_exports.optional(NonEmptyString15)
|
|
29411
29503
|
})),
|
|
29412
29504
|
/** The latest `completion` attestation accepted for this executor (see `stop`). */
|
|
29413
29505
|
completion: Schema_exports.optional(Schema_exports.Struct({
|
|
29414
|
-
executorId:
|
|
29506
|
+
executorId: NonEmptyString15,
|
|
29415
29507
|
epoch: Schema_exports.Int,
|
|
29416
29508
|
captureN: Schema_exports.Int,
|
|
29417
29509
|
attestedAt: Schema_exports.String,
|
|
29418
|
-
launchId: Schema_exports.optional(
|
|
29510
|
+
launchId: Schema_exports.optional(NonEmptyString15),
|
|
29419
29511
|
/** When the store recorded the seal, when the attestation said. */
|
|
29420
29512
|
sealedAt: Schema_exports.optional(Schema_exports.String),
|
|
29421
29513
|
/** Where in the executor's own history the seal was made, when the attestation said. */
|
|
@@ -29423,13 +29515,13 @@ var workspaceCaptureDrainSchema = Schema_exports.Struct({
|
|
|
29423
29515
|
}))
|
|
29424
29516
|
});
|
|
29425
29517
|
var workspaceDetailsSchema = Schema_exports.Struct({
|
|
29426
|
-
workspaceId:
|
|
29427
|
-
name:
|
|
29518
|
+
workspaceId: NonEmptyString15,
|
|
29519
|
+
name: NonEmptyString15,
|
|
29428
29520
|
ownerUserId: PersonId,
|
|
29429
29521
|
status: workspaceStatusSchema,
|
|
29430
|
-
registryId: Schema_exports.optional(
|
|
29431
|
-
repository: Schema_exports.optional(
|
|
29432
|
-
tag: Schema_exports.optional(
|
|
29522
|
+
registryId: Schema_exports.optional(NonEmptyString15),
|
|
29523
|
+
repository: Schema_exports.optional(NonEmptyString15),
|
|
29524
|
+
tag: Schema_exports.optional(NonEmptyString15),
|
|
29433
29525
|
runtime: Schema_exports.optional(workspaceRuntimeSchema),
|
|
29434
29526
|
publishedImage: Schema_exports.optional(workspacePublishedImageSchema),
|
|
29435
29527
|
publication: Schema_exports.optional(workspacePublicationSchema),
|
|
@@ -29456,23 +29548,23 @@ var getWorkspaceQuerySchema = Schema_exports.Struct({
|
|
|
29456
29548
|
var listWorkspacesQuerySchema = Schema_exports.Struct({
|
|
29457
29549
|
ownerUserId: PersonId,
|
|
29458
29550
|
status: Schema_exports.optional(workspaceStatusSchema),
|
|
29459
|
-
limit: Schema_exports.optional(
|
|
29551
|
+
limit: Schema_exports.optional(NonEmptyString15),
|
|
29460
29552
|
/** Only the owner's workspace created with this `idempotencyKey` (none or one item). */
|
|
29461
|
-
idempotencyKey: Schema_exports.optional(
|
|
29553
|
+
idempotencyKey: Schema_exports.optional(NonEmptyString15)
|
|
29462
29554
|
});
|
|
29463
29555
|
var listWorkspacesResponseSchema = Schema_exports.Struct({
|
|
29464
29556
|
items: Schema_exports.Array(workspaceSummarySchema)
|
|
29465
29557
|
});
|
|
29466
29558
|
var listWorkspaceAttemptsQuerySchema = Schema_exports.Struct({
|
|
29467
29559
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
29468
|
-
limit: Schema_exports.optional(
|
|
29560
|
+
limit: Schema_exports.optional(NonEmptyString15)
|
|
29469
29561
|
});
|
|
29470
29562
|
var workspaceAttemptSummarySchema = Schema_exports.Struct({
|
|
29471
|
-
attemptId:
|
|
29563
|
+
attemptId: NonEmptyString15,
|
|
29472
29564
|
relation: Schema_exports.Literals(["launch", "rebuild", "retry", "resume"]),
|
|
29473
29565
|
status: workspaceStatusSchema,
|
|
29474
29566
|
triggerType: Schema_exports.Literals(["manual", "schedule", "api", "retry"]),
|
|
29475
|
-
triggerRef: Schema_exports.optional(
|
|
29567
|
+
triggerRef: Schema_exports.optional(NonEmptyString15),
|
|
29476
29568
|
runtime: Schema_exports.optional(workspaceRuntimeSchema),
|
|
29477
29569
|
publishedImage: Schema_exports.optional(workspacePublishedImageSchema),
|
|
29478
29570
|
publication: Schema_exports.optional(workspacePublicationSchema),
|
|
@@ -29491,7 +29583,7 @@ var listWorkspaceAttemptsResponseSchema = Schema_exports.Struct({
|
|
|
29491
29583
|
});
|
|
29492
29584
|
var listWorkspaceEventsQuerySchema = Schema_exports.Struct({
|
|
29493
29585
|
ownerUserId: Schema_exports.optional(PersonId),
|
|
29494
|
-
limit: Schema_exports.optional(
|
|
29586
|
+
limit: Schema_exports.optional(NonEmptyString15)
|
|
29495
29587
|
});
|
|
29496
29588
|
var workspaceEventTypeSchema = Schema_exports.Literals([
|
|
29497
29589
|
"workspace.created",
|
|
@@ -29508,9 +29600,9 @@ var workspaceEventTypeSchema = Schema_exports.Literals([
|
|
|
29508
29600
|
"runtime.stopped"
|
|
29509
29601
|
]);
|
|
29510
29602
|
var workspaceEventSchema = Schema_exports.Struct({
|
|
29511
|
-
eventId:
|
|
29512
|
-
workspaceId:
|
|
29513
|
-
attemptId: Schema_exports.optional(
|
|
29603
|
+
eventId: NonEmptyString15,
|
|
29604
|
+
workspaceId: NonEmptyString15,
|
|
29605
|
+
attemptId: Schema_exports.optional(NonEmptyString15),
|
|
29514
29606
|
type: workspaceEventTypeSchema,
|
|
29515
29607
|
occurredAt: Schema_exports.String,
|
|
29516
29608
|
message: Schema_exports.optional(Schema_exports.String),
|
|
@@ -29521,17 +29613,17 @@ var listWorkspaceEventsResponseSchema = Schema_exports.Struct({
|
|
|
29521
29613
|
});
|
|
29522
29614
|
var workspaceGatewayHeadersSchema = Schema_exports.Struct({
|
|
29523
29615
|
// Authenticates the gateway as a trusted caller of this internal endpoint.
|
|
29524
|
-
"x-sealant-gateway-token": Schema_exports.optional(
|
|
29616
|
+
"x-sealant-gateway-token": Schema_exports.optional(NonEmptyString15),
|
|
29525
29617
|
// Identifies the client principal (the SSH key's owner). The API authorizes principal x workspace
|
|
29526
29618
|
// before returning a control target (gateway-spec §3.4).
|
|
29527
29619
|
"x-sealant-principal-id": Schema_exports.optional(PersonId),
|
|
29528
29620
|
// `1` from a gateway that runs a workspace's SSH sessions as its `sshUser`. A workspace with a
|
|
29529
29621
|
// user answers no target to a gateway without it, which would run the session as root.
|
|
29530
|
-
"x-sealant-gateway-ssh-user": Schema_exports.optional(
|
|
29622
|
+
"x-sealant-gateway-ssh-user": Schema_exports.optional(NonEmptyString15),
|
|
29531
29623
|
// The fingerprint (`SHA256:…`) of the registered key the client logged in with. When it is
|
|
29532
29624
|
// named, the API answers a target only while that key is still registered to the principal, so
|
|
29533
29625
|
// removing a key ends what connections opened with it can still open.
|
|
29534
|
-
"x-sealant-ssh-key-fingerprint": Schema_exports.optional(
|
|
29626
|
+
"x-sealant-ssh-key-fingerprint": Schema_exports.optional(NonEmptyString15)
|
|
29535
29627
|
});
|
|
29536
29628
|
var WorkspaceBadRequestError = class extends Schema_exports.TaggedError()("WorkspaceBadRequestError", {
|
|
29537
29629
|
message: Schema_exports.String
|
|
@@ -29576,7 +29668,7 @@ var WorkspaceForbiddenError = class extends Schema_exports.TaggedError()("Worksp
|
|
|
29576
29668
|
var WorkspaceNotFoundError = class extends Schema_exports.TaggedError()("WorkspaceNotFoundError", {
|
|
29577
29669
|
message: Schema_exports.String,
|
|
29578
29670
|
/** A stable reason, where one applies (`connected-account-missing`). */
|
|
29579
|
-
code: Schema_exports.optional(
|
|
29671
|
+
code: Schema_exports.optional(NonEmptyString15),
|
|
29580
29672
|
/** The provider of the connected account the reason is about. */
|
|
29581
29673
|
provider: Schema_exports.optional(connectedAccountProviderSchema)
|
|
29582
29674
|
}, { httpApiStatus: 404 }) {
|
|
@@ -29584,7 +29676,7 @@ var WorkspaceNotFoundError = class extends Schema_exports.TaggedError()("Workspa
|
|
|
29584
29676
|
var WorkspaceConflictError = class extends Schema_exports.TaggedError()("WorkspaceConflictError", {
|
|
29585
29677
|
message: Schema_exports.String,
|
|
29586
29678
|
/** A stable reason, where one applies (`create-cancelled`: the create's key was cancelled). */
|
|
29587
|
-
code: Schema_exports.optional(
|
|
29679
|
+
code: Schema_exports.optional(NonEmptyString15),
|
|
29588
29680
|
/** The provider of the connected account the reason is about (`connected-account-invalid`). */
|
|
29589
29681
|
provider: Schema_exports.optional(connectedAccountProviderSchema)
|
|
29590
29682
|
}, { httpApiStatus: 409 }) {
|
|
@@ -29595,15 +29687,15 @@ var WorkspaceBadGatewayError = class extends Schema_exports.TaggedError()("Works
|
|
|
29595
29687
|
};
|
|
29596
29688
|
var WorkspaceServiceUnavailableError = class extends Schema_exports.TaggedError()("WorkspaceServiceUnavailableError", {
|
|
29597
29689
|
message: Schema_exports.String,
|
|
29598
|
-
code: Schema_exports.optional(
|
|
29690
|
+
code: Schema_exports.optional(NonEmptyString15)
|
|
29599
29691
|
}, { httpApiStatus: 503 }) {
|
|
29600
29692
|
};
|
|
29601
29693
|
var WorkspaceInternalServerError = class extends Schema_exports.TaggedError()("WorkspaceInternalServerError", {
|
|
29602
29694
|
message: Schema_exports.String
|
|
29603
29695
|
}, { httpApiStatus: 500 }) {
|
|
29604
29696
|
};
|
|
29605
|
-
var workspaceIdParams = Schema_exports.Struct({ workspaceId:
|
|
29606
|
-
var idempotencyKeyParams = Schema_exports.Struct({ idempotencyKey:
|
|
29697
|
+
var workspaceIdParams = Schema_exports.Struct({ workspaceId: NonEmptyString15 });
|
|
29698
|
+
var idempotencyKeyParams = Schema_exports.Struct({ idempotencyKey: NonEmptyString15 });
|
|
29607
29699
|
var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoint_exports.post("createWorkspace", "/", {
|
|
29608
29700
|
headers: createWorkspaceHeadersSchema,
|
|
29609
29701
|
payload: createWorkspaceRequestSchema,
|
|
@@ -29937,10 +30029,10 @@ var WorkspacesGroup = HttpApiGroup_exports.make("workspaces").add(HttpApiEndpoin
|
|
|
29937
30029
|
]
|
|
29938
30030
|
})).annotate(OpenApi_exports.Description, "Workspace lifecycle, attempts, events, and runtime routing endpoints.");
|
|
29939
30031
|
|
|
29940
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
29941
|
-
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(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.");
|
|
30032
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/control-plane.js
|
|
30033
|
+
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.");
|
|
29942
30034
|
|
|
29943
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30035
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/record-events.js
|
|
29944
30036
|
var recordEventKindValues = [
|
|
29945
30037
|
"runtimeStateChanged",
|
|
29946
30038
|
"runtimeHeartbeat",
|
|
@@ -30082,7 +30174,7 @@ var decoders = {
|
|
|
30082
30174
|
networkSourceObserved: eventCase("networkSourceObserved", networkSourceObservedEventSchema)
|
|
30083
30175
|
};
|
|
30084
30176
|
|
|
30085
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30177
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/core-api/workspace-forward.js
|
|
30086
30178
|
var FORWARD_V2_MAX_FRAME_BYTES = 64 * 1024;
|
|
30087
30179
|
var forwardRefusalReasonSchema = Schema_exports.Literals([
|
|
30088
30180
|
"workspace-not-ready",
|
|
@@ -30160,7 +30252,7 @@ var forwardFlowFrameSchema = Schema_exports.Union([
|
|
|
30160
30252
|
]);
|
|
30161
30253
|
var decodeFlowFrame = Schema_exports.decodeUnknownOption(Schema_exports.fromJsonString(forwardFlowFrameSchema));
|
|
30162
30254
|
|
|
30163
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30255
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/workspace-environment.js
|
|
30164
30256
|
var WORKSPACE_ENV_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/u;
|
|
30165
30257
|
var WORKSPACE_ENV_MAX_NAME_LENGTH = 128;
|
|
30166
30258
|
var RESERVED_PREFIXES = [
|
|
@@ -30263,7 +30355,7 @@ var providerLoginEnvNames = {
|
|
|
30263
30355
|
codex: ["OPENAI_API_KEY", "CODEX_API_KEY"]
|
|
30264
30356
|
};
|
|
30265
30357
|
|
|
30266
|
-
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.
|
|
30358
|
+
// ../../node_modules/.pnpm/@sealant+api-contracts-next@0.40.0-next.868_effect@4.0.5/node_modules/@sealant/api-contracts-next/dist/capture-owner-map.js
|
|
30267
30359
|
var CAPTURE_OWNER_MAP_UID_RANGE = { first: 40001, last: 49999 };
|
|
30268
30360
|
var UID_RANGE_TEXT = `${CAPTURE_OWNER_MAP_UID_RANGE.first}\u2013${CAPTURE_OWNER_MAP_UID_RANGE.last}`;
|
|
30269
30361
|
|