unfazed 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/generated/gql.d.ts +5 -1
- package/dist/generated/gql.js +2 -1
- package/dist/generated/gql.js.map +1 -1
- package/dist/generated/graphql.d.ts +158 -0
- package/dist/generated/graphql.js +150 -0
- package/dist/generated/graphql.js.map +1 -1
- package/dist/operations.d.ts +3 -0
- package/dist/operations.js +30 -0
- package/dist/operations.js.map +1 -1
- package/dist/unfazed.d.ts +53 -1
- package/dist/unfazed.js +14 -1
- package/dist/unfazed.js.map +1 -1
- package/package.json +1 -1
- package/schema/SOURCE.json +4 -4
- package/schema/schema.graphqls +51 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AAogBA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAGd,SAAS,CAAyE;IAC1E,KAAK,CAAS;IACf,QAAQ,CAAmC;IAElD,YAAY,KAAa,EAAE,QAA0C;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,QAAQ;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;KA0B9D,EAAE,EAAC,cAAc,EAAC,kBAAkB,EAAC,CAAsE,CAAC;AACjH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsCvD,EAAE,EAAC,cAAc,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AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C1D,CAAwF,CAAC;AAC3F,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;KAYvD,CAAkF,CAAC;AACxF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;KAQxD,CAAoF,CAAC;AAC1F,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;KAU3D,CAA0F,CAAC;AAChG,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C1D,CAAwF,CAAC;AAC3F,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C5D,CAA4F,CAAC","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CreateRunInput = {\n /** \"human\" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */\n approval?: string | null | undefined;\n command?: string | null | undefined;\n harness?: string | null | undefined;\n includeFiles?: boolean | null | undefined;\n maxSeconds?: number | null | undefined;\n memoryMiB?: number | null | undefined;\n metadata?: unknown;\n /** \"plan\" asks the harness to write a plan without acting; empty does the task. */\n mode?: string | null | undefined;\n /** The run this one continues; usually set through followUpRun. */\n parentRunID?: string | number | null | undefined;\n prompt?: string | null | undefined;\n /** Shell commands run in /work before the harness; the first failure fails the run. */\n setup?: Array<string> | null | undefined;\n /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */\n skills?: Array<string> | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type FollowUpRunInput = {\n approval?: string | null | undefined;\n maxSeconds?: number | null | undefined;\n metadata?: unknown;\n mode?: string | null | undefined;\n prompt: string;\n runID: string | number;\n};\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListRunsInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n status?: RunStatus | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type RunStatus =\n /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */\n | 'BLOCKED'\n | 'CANCELLED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING'\n | 'SUCCEEDED';\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type RunFieldsFragment = { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } };\n\nexport type SdkCreateRunMutationVariables = Exact<{\n input: CreateRunInput;\n}>;\n\n\nexport type SdkCreateRunMutation = { createRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkGetRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetRunQuery = { run: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkPollRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollRunQuery = { run: { id: string, status: RunStatus, error: string | null, exitCode: number | null } };\n\nexport type SdkListRunsQueryVariables = Exact<{\n input?: ListRunsInput | null | undefined;\n}>;\n\n\nexport type SdkListRunsQuery = { runs: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } }> } };\n\nexport type SdkCancelRunMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkCancelRunMutation = { cancelRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunEventsQueryVariables = Exact<{\n runID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkRunEventsQuery = { runEvents: Array<{ id: string, runID: string, type: string, severity: DeploymentEventSeverity, message: string, metadata: unknown, createdAt: string }> };\n\nexport type SdkRunConsoleQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunConsoleQuery = { runConsole: { runID: string, running: boolean, text: string } };\n\nexport type SdkRunTranscriptQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunTranscriptQuery = { runTranscript: { runID: string, available: boolean, text: string, totalBytes: number, truncated: boolean } };\n\nexport type SdkAnswerRunMutationVariables = Exact<{\n id: string | number;\n answer: string;\n}>;\n\n\nexport type SdkAnswerRunMutation = { answerRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkFollowUpRunMutationVariables = Exact<{\n input: FollowUpRunInput;\n}>;\n\n\nexport type SdkFollowUpRunMutation = { followUpRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, approval: string, mode: string, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const RunFieldsFragmentDoc = new TypedDocumentString(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}\n `, {\"fragmentName\":\"RunFields\"}) as unknown as TypedDocumentString<RunFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;\nexport const SdkCreateRunDocument = new TypedDocumentString(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;\nexport const SdkGetRunDocument = new TypedDocumentString(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;\nexport const SdkPollRunDocument = new TypedDocumentString(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n}\n `) as unknown as TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;\nexport const SdkListRunsDocument = new TypedDocumentString(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;\nexport const SdkCancelRunDocument = new TypedDocumentString(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;\nexport const SdkRunEventsDocument = new TypedDocumentString(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;\nexport const SdkRunConsoleDocument = new TypedDocumentString(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n}\n `) as unknown as TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;\nexport const SdkRunTranscriptDocument = new TypedDocumentString(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n}\n `) as unknown as TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;\nexport const SdkAnswerRunDocument = new TypedDocumentString(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;\nexport const SdkFollowUpRunDocument = new TypedDocumentString(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;"]}
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/generated/graphql.ts"],"names":[],"mappings":"AA+gBA,MAAM,OAAO,mBACX,SAAQ,MAAM;IAGd,SAAS,CAAyE;IAC1E,KAAK,CAAS;IACf,QAAQ,CAAmC;IAElD,YAAY,KAAa,EAAE,QAA0C;QACnE,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,QAAQ;QACf,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AACD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;KA0B9D,EAAE,EAAC,cAAc,EAAC,kBAAkB,EAAC,CAAsE,CAAC;AACjH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0DvD,EAAE,EAAC,cAAc,EAAC,WAAW,EAAC,CAA+D,CAAC;AACnG,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;KAyBpD,CAA4E,CAAC;AAClF,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;KAa7D,CAAoG,CAAC;AAC1G,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;KAW5D,CAA4F,CAAC;AAClG,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;KAQ7D,CAAoG,CAAC;AAC1G,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAA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B,CAAC;;;;;;;;;;KAU3D,CAA0F,CAAC;AAChG,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D1D,CAAwF,CAAC;AAC3F,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8D5D,CAA4F,CAAC;AAC/F,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,mBAAmB,CAAC;;;;;;;;;KAS1D,CAAwF,CAAC","sourcesContent":["/* eslint-disable */\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/**\n * Inlined from @graphql-typed-document-node/core by scripts/postcodegen.ts so\n * this package ships with zero dependencies, type-only ones included.\n * Structurally identical to the upstream interface.\n */\ninterface DocumentTypeDecoration<TResult, TVariables> {\n __apiType?: (variables: TVariables) => TResult;\n}\n/** A box's requested VM size. Omitted fields use the platform default. */\nexport type BoxResourcesInput = {\n /** Persistent disk in GiB (default 8, max 64). Applies only when the disk is first created; an existing disk keeps its size. */\n diskGiB?: number | null | undefined;\n /** RAM in MiB (default 2048, min 512, max 16384). */\n memMiB?: number | null | undefined;\n /** vCPU count (default 2, max 8). */\n vcpus?: number | null | undefined;\n};\n\n/**\n * Creates a deployment from the workspace's current files. The build is driven by\n * an optional root unfazed.json: STATIC serves the files as-is unless unfazed.json\n * sets build (a command run in the build VM) + output (publish dir, default \"dist\"\n * when build is set; output with no build republishes a committed dir like dist/ as\n * is); SERVICE bundles server.ts by default, or the entry set in unfazed.json.\n * install defaults to \"bun install\" (--frozen-lockfile when a bun lockfile exists).\n */\nexport type CreateDeploymentInput = {\n alias?: string | null | undefined;\n /** BOX only: optional VM size. Omit for the platform defaults. */\n boxResources?: BoxResourcesInput | null | undefined;\n /** Absolute HTTP path the cron tick POSTs to; defaults to /cron when cronSchedule is set. */\n cronPath?: string | null | undefined;\n /**\n * Standard 5-field cron spec (minute hour day-of-month month day-of-week). When\n * set, the platform wakes the SERVICE on each tick with a POST to cronPath\n * (default /cron) carrying header X-Unfz-Trigger: cron and a signed\n * X-Unfz-Cron-Token equal to the service's UNFZ_STATE_TOKEN.\n */\n cronSchedule?: string | null | undefined;\n healthPath?: string | null | undefined;\n /** STATIC (serve files) or SERVICE (run an HTTP server). Classify it yourself: SERVICE if the workspace has server.ts, a go.mod+main.go, or an unfazed.json entry, else STATIC. */\n kind: DeploymentKind;\n /** SERVICE runtime. Omit to auto-detect (a go.mod+main.go is GO, otherwise BUN). Ignored for STATIC. */\n runtime?: ServiceRuntime | null | undefined;\n /** SERVICE only. Omit for ON_DEMAND (the default — sleeps and cold-starts on first request, right for most services). Set ALWAYS_ON only to keep the VM warm. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only: when true, missing paths serve index.html (single-page apps). Ignored for SERVICE. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CreateRunInput = {\n /** read-only (default) or read-write: which integration credentials and tools the run gets and whether its platform token may deploy. */\n access?: string | null | undefined;\n /** The app whose integrations the run gets; required when the workspace has several apps. */\n alias?: string | null | undefined;\n /** \"human\" routes the harness's permission prompts to you (the run BLOCKS until you answer); empty keeps the harness's own defaults. */\n approval?: string | null | undefined;\n command?: string | null | undefined;\n harness?: string | null | undefined;\n includeFiles?: boolean | null | undefined;\n maxSeconds?: number | null | undefined;\n memoryMiB?: number | null | undefined;\n metadata?: unknown;\n /** \"plan\" asks the harness to write a plan without acting; empty does the task. */\n mode?: string | null | undefined;\n /** The run this one continues; usually set through followUpRun. */\n parentRunID?: string | number | null | undefined;\n prompt?: string | null | undefined;\n /** Shell commands run in /work before the harness; the first failure fails the run. */\n setup?: Array<string> | null | undefined;\n /** Skills fetched into .claude/skills before the harness, as owner/repo:path. */\n skills?: Array<string> | null | undefined;\n /** Shell commands run after the harness exited 0 (tests, a build, a file check); the first failure FAILS the run. Skipped in plan mode. */\n verify?: Array<string> | null | undefined;\n workspaceID: string | number;\n};\n\nexport type CurrentActorKind =\n /** An automated caller using a self-registered bearer token. Subject to free-tier usage/resource limits; a user can claim it to link it to their account. */\n | 'AGENT'\n /** The operator of this Unfazed instance, authenticated with the owner token. Full access, no free-tier limits. */\n | 'OWNER'\n /** A human signed in via GitHub OAuth, who manages their linked agents and apps. */\n | 'USER';\n\nexport type DeployWorkspaceInput = {\n /** Optional public alias; defaults to the workspace's git deploy alias when it was imported. */\n alias?: string | null | undefined;\n /** SERVICE only; defaults to the git source's mode, otherwise ON_DEMAND. */\n serviceMode?: ServiceMode | null | undefined;\n /** STATIC only; overrides the detected SPA fallback. */\n spaMode?: boolean | null | undefined;\n workspaceID: string | number;\n};\n\nexport type DeploymentEventSeverity =\n | 'ERROR'\n | 'INFO'\n | 'WARN';\n\nexport type DeploymentEventType =\n | 'DEPLOYMENT_CREATED'\n | 'DEPLOYMENT_PROMOTION_REJECTED'\n | 'DEPLOYMENT_ROLLED_BACK'\n | 'SERVICE_BOOT_FAILED'\n | 'SERVICE_BUILD_FAILED'\n | 'SERVICE_BUILD_SUCCEEDED'\n | 'SERVICE_CRON_TRIGGERED'\n | 'SERVICE_HEALTH_PROBE_FAILED'\n | 'SERVICE_PROXY_ERROR'\n | 'SERVICE_RESTART_REQUESTED'\n | 'SERVICE_STOP_REQUESTED'\n | 'SERVICE_SUPERVISOR_STARTED'\n | 'SERVICE_SUPERVISOR_STOPPED'\n | 'SERVICE_VM_STARTED'\n | 'SERVICE_VM_START_FAILED'\n | 'SERVICE_VM_STOPPED'\n | 'SERVICE_WATCHDOG_PROBE_FAILED'\n | 'SERVICE_WATCHDOG_RESTART'\n | 'UNKNOWN';\n\nexport type DeploymentKind =\n /** A persistent always-on Linux VM with a per-workspace data disk (docs/agent-box.md). */\n | 'BOX'\n | 'SERVICE'\n | 'STATIC';\n\nexport type DeploymentStatus =\n | 'BUILDING'\n | 'FAILED'\n | 'READY';\n\nexport type FollowUpRunInput = {\n approval?: string | null | undefined;\n maxSeconds?: number | null | undefined;\n metadata?: unknown;\n mode?: string | null | undefined;\n prompt: string;\n runID: string | number;\n};\n\nexport type ListDeploymentsInput = {\n alias?: string | null | undefined;\n kind?: DeploymentKind | null | undefined;\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListRunsInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n status?: RunStatus | null | undefined;\n workspaceID?: string | number | null | undefined;\n};\n\nexport type ListWorkspaceFilesInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n order?: string | null | undefined;\n workspaceID: string | number;\n};\n\nexport type ReadWorkspaceFileInput = {\n limit?: number | null | undefined;\n offset?: number | null | undefined;\n path: string;\n workspaceID: string | number;\n};\n\nexport type RunStatus =\n /** Waiting for a human's answer (see Run.question); the VM stays up and the wall clock keeps running. */\n | 'BLOCKED'\n | 'CANCELLED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING'\n | 'SUCCEEDED';\n\nexport type ServiceMode =\n /** Keeps a supervised VM running 24/7 (resource-expensive). Reserve for services that must stay warm (low first-request latency), do background work between requests, or run a frequent cron. */\n | 'ALWAYS_ON'\n /** Default. Sleeps and cold-starts a VM on the first request, then parks it after a short idle period — cheap and right for most services. Use on_demand + cronSchedule for periodic work. */\n | 'ON_DEMAND';\n\nexport type ServiceRuntime =\n /** Default. Bundles a TypeScript/JavaScript entry (server.ts) into a Bun HTTP server. */\n | 'BUN'\n /** Compiles a Go module (go.mod) into a static binary that starts its own HTTP server on $PORT. */\n | 'GO';\n\nexport type DeploymentFieldsFragment = { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string };\n\nexport type SdkWhoamiQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkWhoamiQuery = { whoami: { kind: CurrentActorKind, userID: string, name: string, agentID: string | null, agentName: string | null, claimed: boolean, claimedBy: string | null, scopes: Array<string>, expiresAt: string | null, usage: { month: string, requests: number, limit: number } | null, resources: { workspaces: number, workspaceLimit: number, services: number, serviceLimit: number } | null } };\n\nexport type SdkCreateWorkspaceMutationVariables = Exact<{\n name: string;\n}>;\n\n\nexport type SdkCreateWorkspaceMutation = { createWorkspace: { workspace: { id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string } } };\n\nexport type SdkListWorkspacesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkListWorkspacesQuery = { workspaces: Array<{ id: string, name: string, ownerId: string, projectId: string | null, createdAt: string, updatedAt: string }> };\n\nexport type SdkDeleteWorkspaceMutationVariables = Exact<{\n workspaceID: string | number;\n withDeployments?: boolean | null | undefined;\n}>;\n\n\nexport type SdkDeleteWorkspaceMutation = { deleteWorkspace: { ok: boolean } };\n\nexport type SdkWriteTextFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n text: string;\n}>;\n\n\nexport type SdkWriteTextFileMutation = { writeWorkspaceTextFile: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkWriteBase64FileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n contentBase64: string;\n}>;\n\n\nexport type SdkWriteBase64FileMutation = { writeWorkspaceBase64File: { file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } };\n\nexport type SdkListFilesQueryVariables = Exact<{\n input: ListWorkspaceFilesInput;\n}>;\n\n\nexport type SdkListFilesQuery = { workspaceFilesPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string }> } };\n\nexport type SdkReadFileQueryVariables = Exact<{\n input: ReadWorkspaceFileInput;\n}>;\n\n\nexport type SdkReadFileQuery = { readWorkspaceFile: { text: string, offset: number, limit: number, totalBytes: number, truncated: boolean, nextOffset: number | null, file: { path: string, sizeBytes: number, size: string, sha256: string, updatedAt: string } } | null };\n\nexport type SdkDeleteFileMutationVariables = Exact<{\n workspaceID: string | number;\n path: string;\n}>;\n\n\nexport type SdkDeleteFileMutation = { deleteWorkspaceFile: { ok: boolean } };\n\nexport type SdkCreateDeploymentMutationVariables = Exact<{\n input: CreateDeploymentInput;\n}>;\n\n\nexport type SdkCreateDeploymentMutation = { createDeployment: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkDeployWorkspaceMutationVariables = Exact<{\n input: DeployWorkspaceInput;\n}>;\n\n\nexport type SdkDeployWorkspaceMutation = { deployWorkspace: { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } } };\n\nexport type SdkGetDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetDeploymentQuery = { deployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkPollDeploymentQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollDeploymentQuery = { deployment: { id: string, status: DeploymentStatus, error: string | null, aliasHeld: boolean, url: string, previewUrl: string } | null };\n\nexport type SdkGetDeploymentByAliasQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkGetDeploymentByAliasQuery = { deploymentByAlias: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } | null };\n\nexport type SdkListDeploymentsQueryVariables = Exact<{\n input?: ListDeploymentsInput | null | undefined;\n}>;\n\n\nexport type SdkListDeploymentsQuery = { deploymentsPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> } };\n\nexport type SdkListReleasesQueryVariables = Exact<{\n alias: string;\n}>;\n\n\nexport type SdkListReleasesQuery = { deploymentReleases: Array<{ id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string }> };\n\nexport type SdkRollbackMutationVariables = Exact<{\n deploymentID: string | number;\n expectedCurrentDeploymentID: string | number;\n expectedCurrentAliasRevision: string;\n}>;\n\n\nexport type SdkRollbackMutation = { rollbackDeployment: { id: string, workspaceID: string, kind: DeploymentKind, runtime: ServiceRuntime | null, alias: string | null, serviceMode: ServiceMode, healthPath: string | null, cronSchedule: string | null, cronPath: string | null, url: string, previewUrl: string, sshCommand: string | null, aliasHeld: boolean, aliasRevision: string, status: DeploymentStatus, error: string | null, filesCount: number, sizeBytes: number, size: string, spaMode: boolean, gitRepo: string | null, gitCommit: string | null, createdAt: string } };\n\nexport type SdkServiceStatusQueryVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkServiceStatusQuery = { serviceStatus: { deploymentID: string, alias: string | null, serviceMode: ServiceMode, running: boolean, health: string, vmID: string | null, inFlight: number, alwaysOn: boolean, memSizeMiB: number, startedAt: string | null, lastUsedAt: string | null, lastStoppedAt: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkServiceLogsQueryVariables = Exact<{\n deploymentID: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkServiceLogsQuery = { serviceLogs: { deploymentID: string, stdout: string, stderr: string, truncated: boolean, stdoutBytes: number, stderrBytes: number, tailBytes: number } };\n\nexport type SdkDeploymentEventsQueryVariables = Exact<{\n deploymentID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkDeploymentEventsQuery = { deploymentEvents: Array<{ id: string, deploymentID: string, type: DeploymentEventType, rawType: string, severity: DeploymentEventSeverity, message: string, vmID: string | null, createdAt: string }> };\n\nexport type SdkRestartServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkRestartServiceMutation = { restartService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkStopServiceMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkStopServiceMutation = { stopService: { deploymentID: string, running: boolean, health: string, vmID: string | null, restartCount: number, lastError: string | null } };\n\nexport type SdkDeleteDeploymentMutationVariables = Exact<{\n deploymentID: string | number;\n}>;\n\n\nexport type SdkDeleteDeploymentMutation = { deleteDeployment: { ok: boolean } };\n\nexport type SdkSetWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceEnvMutation = { setWorkspaceEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetWorkspaceSecretMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetWorkspaceSecretMutation = { setWorkspaceSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkDeleteWorkspaceEnvMutationVariables = Exact<{\n workspaceID: string | number;\n name: string;\n}>;\n\n\nexport type SdkDeleteWorkspaceEnvMutation = { deleteWorkspaceEnv: { ok: boolean } };\n\nexport type SdkListWorkspaceEnvQueryVariables = Exact<{\n workspaceID: string | number;\n}>;\n\n\nexport type SdkListWorkspaceEnvQuery = { workspaceEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type SdkSetAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppEnvMutation = { setAppEnv: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkSetAppSecretMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n value: string;\n}>;\n\n\nexport type SdkSetAppSecretMutation = { setAppSecret: { env: { name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string } } };\n\nexport type SdkRemoveAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkRemoveAppEnvMutation = { removeAppEnv: { ok: boolean } };\n\nexport type SdkInheritAppEnvMutationVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n name: string;\n}>;\n\n\nexport type SdkInheritAppEnvMutation = { inheritAppEnv: { ok: boolean } };\n\nexport type SdkListAppEnvQueryVariables = Exact<{\n workspaceID: string | number;\n alias: string;\n}>;\n\n\nexport type SdkListAppEnvQuery = { appEnv: Array<{ name: string, value: string | null, secret: boolean, alias: string | null, inherited: boolean, masked: boolean, updatedAt: string }> };\n\nexport type RunFieldsFragment = { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } };\n\nexport type SdkCreateRunMutationVariables = Exact<{\n input: CreateRunInput;\n}>;\n\n\nexport type SdkCreateRunMutation = { createRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkGetRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkGetRunQuery = { run: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkPollRunQueryVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkPollRunQuery = { run: { id: string, status: RunStatus, error: string | null, exitCode: number | null } };\n\nexport type SdkListRunsQueryVariables = Exact<{\n input?: ListRunsInput | null | undefined;\n}>;\n\n\nexport type SdkListRunsQuery = { runs: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } }> } };\n\nexport type SdkCancelRunMutationVariables = Exact<{\n id: string | number;\n}>;\n\n\nexport type SdkCancelRunMutation = { cancelRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunEventsQueryVariables = Exact<{\n runID: string | number;\n limit?: number | null | undefined;\n}>;\n\n\nexport type SdkRunEventsQuery = { runEvents: Array<{ id: string, runID: string, type: string, severity: DeploymentEventSeverity, message: string, metadata: unknown, createdAt: string }> };\n\nexport type SdkRunConsoleQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunConsoleQuery = { runConsole: { runID: string, running: boolean, text: string } };\n\nexport type SdkRunTranscriptQueryVariables = Exact<{\n id: string | number;\n tailBytes?: number | null | undefined;\n}>;\n\n\nexport type SdkRunTranscriptQuery = { runTranscript: { runID: string, available: boolean, text: string, totalBytes: number, truncated: boolean } };\n\nexport type SdkAnswerRunMutationVariables = Exact<{\n id: string | number;\n answer: string;\n}>;\n\n\nexport type SdkAnswerRunMutation = { answerRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkFollowUpRunMutationVariables = Exact<{\n input: FollowUpRunInput;\n}>;\n\n\nexport type SdkFollowUpRunMutation = { followUpRun: { id: string, workspaceID: string, ownerId: string, status: RunStatus, rawStatus: string, command: string | null, harness: string | null, prompt: string | null, setup: Array<string>, skills: Array<string>, verify: Array<string>, approval: string, mode: string, access: string, alias: string | null, parentRunID: string | null, depth: number, memoryMiB: number, maxSeconds: number, metadata: unknown, error: string | null, exitCode: number | null, verifyExitCode: number | null, vmID: string | null, transcriptAvailable: boolean, createdAt: string, startedAt: string | null, settledAt: string | null, integrations: Array<{ kind: string, bindingID: string, env: string, skills: Array<string>, mcpServers: Array<{ name: string, transport: string, readOnly: boolean }> }>, question: { id: string, text: string, options: Array<string>, askedAt: string } | null, result: { status: string, detail: string | null, text: string | null } | null, usage: { vmSeconds: number, memoryMiB: number, mibSeconds: number } } };\n\nexport type SdkRunHarnessesQueryVariables = Exact<{ [key: string]: never; }>;\n\n\nexport type SdkRunHarnessesQuery = { runHarnesses: Array<{ name: string, title: string, summary: string | null, requires: Array<string> }> };\n\nexport class TypedDocumentString<TResult, TVariables>\n extends String\n implements DocumentTypeDecoration<TResult, TVariables>\n{\n __apiType?: NonNullable<DocumentTypeDecoration<TResult, TVariables>['__apiType']>;\n private value: string;\n public __meta__?: Record<string, any> | undefined;\n\n constructor(value: string, __meta__?: Record<string, any> | undefined) {\n super(value);\n this.value = value;\n this.__meta__ = __meta__;\n }\n\n override toString(): string & DocumentTypeDecoration<TResult, TVariables> {\n return this.value;\n }\n}\nexport const DeploymentFieldsFragmentDoc = new TypedDocumentString(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}\n `, {\"fragmentName\":\"DeploymentFields\"}) as unknown as TypedDocumentString<DeploymentFieldsFragment, unknown>;\nexport const RunFieldsFragmentDoc = new TypedDocumentString(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}\n `, {\"fragmentName\":\"RunFields\"}) as unknown as TypedDocumentString<RunFieldsFragment, unknown>;\nexport const SdkWhoamiDocument = new TypedDocumentString(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWhoamiQuery, SdkWhoamiQueryVariables>;\nexport const SdkCreateWorkspaceDocument = new TypedDocumentString(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: {name: $name}) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkCreateWorkspaceMutation, SdkCreateWorkspaceMutationVariables>;\nexport const SdkListWorkspacesDocument = new TypedDocumentString(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspacesQuery, SdkListWorkspacesQueryVariables>;\nexport const SdkDeleteWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(\n input: {workspaceID: $workspaceID, withDeployments: $withDeployments}\n ) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceMutation, SdkDeleteWorkspaceMutationVariables>;\nexport const SdkWriteTextFileDocument = new TypedDocumentString(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(\n input: {workspaceID: $workspaceID, path: $path, text: $text}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteTextFileMutation, SdkWriteTextFileMutationVariables>;\nexport const SdkWriteBase64FileDocument = new TypedDocumentString(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: {workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64}\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkWriteBase64FileMutation, SdkWriteBase64FileMutationVariables>;\nexport const SdkListFilesDocument = new TypedDocumentString(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n `) as unknown as TypedDocumentString<SdkListFilesQuery, SdkListFilesQueryVariables>;\nexport const SdkReadFileDocument = new TypedDocumentString(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkReadFileQuery, SdkReadFileQueryVariables>;\nexport const SdkDeleteFileDocument = new TypedDocumentString(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: {workspaceID: $workspaceID, path: $path}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteFileMutation, SdkDeleteFileMutationVariables>;\nexport const SdkCreateDeploymentDocument = new TypedDocumentString(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkCreateDeploymentMutation, SdkCreateDeploymentMutationVariables>;\nexport const SdkDeployWorkspaceDocument = new TypedDocumentString(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkDeployWorkspaceMutation, SdkDeployWorkspaceMutationVariables>;\nexport const SdkGetDeploymentDocument = new TypedDocumentString(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentQuery, SdkGetDeploymentQueryVariables>;\nexport const SdkPollDeploymentDocument = new TypedDocumentString(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n}\n `) as unknown as TypedDocumentString<SdkPollDeploymentQuery, SdkPollDeploymentQueryVariables>;\nexport const SdkGetDeploymentByAliasDocument = new TypedDocumentString(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkGetDeploymentByAliasQuery, SdkGetDeploymentByAliasQueryVariables>;\nexport const SdkListDeploymentsDocument = new TypedDocumentString(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListDeploymentsQuery, SdkListDeploymentsQueryVariables>;\nexport const SdkListReleasesDocument = new TypedDocumentString(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkListReleasesQuery, SdkListReleasesQueryVariables>;\nexport const SdkRollbackDocument = new TypedDocumentString(`\n mutation SdkRollback($deploymentID: ID!, $expectedCurrentDeploymentID: ID!, $expectedCurrentAliasRevision: String!) {\n rollbackDeployment(\n input: {deploymentID: $deploymentID, expectedCurrentDeploymentID: $expectedCurrentDeploymentID, expectedCurrentAliasRevision: $expectedCurrentAliasRevision}\n ) {\n ...DeploymentFields\n }\n}\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n}`) as unknown as TypedDocumentString<SdkRollbackMutation, SdkRollbackMutationVariables>;\nexport const SdkServiceStatusDocument = new TypedDocumentString(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceStatusQuery, SdkServiceStatusQueryVariables>;\nexport const SdkServiceLogsDocument = new TypedDocumentString(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n}\n `) as unknown as TypedDocumentString<SdkServiceLogsQuery, SdkServiceLogsQueryVariables>;\nexport const SdkDeploymentEventsDocument = new TypedDocumentString(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkDeploymentEventsQuery, SdkDeploymentEventsQueryVariables>;\nexport const SdkRestartServiceDocument = new TypedDocumentString(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkRestartServiceMutation, SdkRestartServiceMutationVariables>;\nexport const SdkStopServiceDocument = new TypedDocumentString(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: {deploymentID: $deploymentID}) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n}\n `) as unknown as TypedDocumentString<SdkStopServiceMutation, SdkStopServiceMutationVariables>;\nexport const SdkDeleteDeploymentDocument = new TypedDocumentString(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: {deploymentID: $deploymentID}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteDeploymentMutation, SdkDeleteDeploymentMutationVariables>;\nexport const SdkSetWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name, value: $value}) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceEnvMutation, SdkSetWorkspaceEnvMutationVariables>;\nexport const SdkSetWorkspaceSecretDocument = new TypedDocumentString(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(\n input: {workspaceID: $workspaceID, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetWorkspaceSecretMutation, SdkSetWorkspaceSecretMutationVariables>;\nexport const SdkDeleteWorkspaceEnvDocument = new TypedDocumentString(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: {workspaceID: $workspaceID, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkDeleteWorkspaceEnvMutation, SdkDeleteWorkspaceEnvMutationVariables>;\nexport const SdkListWorkspaceEnvDocument = new TypedDocumentString(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListWorkspaceEnvQuery, SdkListWorkspaceEnvQueryVariables>;\nexport const SdkSetAppEnvDocument = new TypedDocumentString(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppEnvMutation, SdkSetAppEnvMutationVariables>;\nexport const SdkSetAppSecretDocument = new TypedDocumentString(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(\n input: {workspaceID: $workspaceID, alias: $alias, name: $name, value: $value}\n ) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n}\n `) as unknown as TypedDocumentString<SdkSetAppSecretMutation, SdkSetAppSecretMutationVariables>;\nexport const SdkRemoveAppEnvDocument = new TypedDocumentString(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkRemoveAppEnvMutation, SdkRemoveAppEnvMutationVariables>;\nexport const SdkInheritAppEnvDocument = new TypedDocumentString(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: {workspaceID: $workspaceID, alias: $alias, name: $name}) {\n ok\n }\n}\n `) as unknown as TypedDocumentString<SdkInheritAppEnvMutation, SdkInheritAppEnvMutationVariables>;\nexport const SdkListAppEnvDocument = new TypedDocumentString(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n}\n `) as unknown as TypedDocumentString<SdkListAppEnvQuery, SdkListAppEnvQueryVariables>;\nexport const SdkCreateRunDocument = new TypedDocumentString(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCreateRunMutation, SdkCreateRunMutationVariables>;\nexport const SdkGetRunDocument = new TypedDocumentString(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkGetRunQuery, SdkGetRunQueryVariables>;\nexport const SdkPollRunDocument = new TypedDocumentString(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n}\n `) as unknown as TypedDocumentString<SdkPollRunQuery, SdkPollRunQueryVariables>;\nexport const SdkListRunsDocument = new TypedDocumentString(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkListRunsQuery, SdkListRunsQueryVariables>;\nexport const SdkCancelRunDocument = new TypedDocumentString(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkCancelRunMutation, SdkCancelRunMutationVariables>;\nexport const SdkRunEventsDocument = new TypedDocumentString(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n}\n `) as unknown as TypedDocumentString<SdkRunEventsQuery, SdkRunEventsQueryVariables>;\nexport const SdkRunConsoleDocument = new TypedDocumentString(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n}\n `) as unknown as TypedDocumentString<SdkRunConsoleQuery, SdkRunConsoleQueryVariables>;\nexport const SdkRunTranscriptDocument = new TypedDocumentString(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n}\n `) as unknown as TypedDocumentString<SdkRunTranscriptQuery, SdkRunTranscriptQueryVariables>;\nexport const SdkAnswerRunDocument = new TypedDocumentString(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkAnswerRunMutation, SdkAnswerRunMutationVariables>;\nexport const SdkFollowUpRunDocument = new TypedDocumentString(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n}\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n}`) as unknown as TypedDocumentString<SdkFollowUpRunMutation, SdkFollowUpRunMutationVariables>;\nexport const SdkRunHarnessesDocument = new TypedDocumentString(`\n query SdkRunHarnesses {\n runHarnesses {\n name\n title\n summary\n requires\n }\n}\n `) as unknown as TypedDocumentString<SdkRunHarnessesQuery, SdkRunHarnessesQueryVariables>;"]}
|
package/dist/operations.d.ts
CHANGED
|
@@ -186,3 +186,6 @@ export declare const AnswerRunDocument: import("./index.js").TypedDocumentString
|
|
|
186
186
|
export declare const FollowUpRunDocument: import("./index.js").TypedDocumentString<import("./index.js").SdkFollowUpRunMutation, {
|
|
187
187
|
input: import("./index.js").FollowUpRunInput;
|
|
188
188
|
}>;
|
|
189
|
+
export declare const ListRunHarnessesDocument: import("./index.js").TypedDocumentString<import("./index.js").SdkRunHarnessesQuery, {
|
|
190
|
+
[x: string]: never;
|
|
191
|
+
}>;
|
package/dist/operations.js
CHANGED
|
@@ -490,8 +490,22 @@ export const RunFieldsFragment = graphql(`
|
|
|
490
490
|
prompt
|
|
491
491
|
setup
|
|
492
492
|
skills
|
|
493
|
+
verify
|
|
493
494
|
approval
|
|
494
495
|
mode
|
|
496
|
+
access
|
|
497
|
+
alias
|
|
498
|
+
integrations {
|
|
499
|
+
kind
|
|
500
|
+
bindingID
|
|
501
|
+
env
|
|
502
|
+
skills
|
|
503
|
+
mcpServers {
|
|
504
|
+
name
|
|
505
|
+
transport
|
|
506
|
+
readOnly
|
|
507
|
+
}
|
|
508
|
+
}
|
|
495
509
|
parentRunID
|
|
496
510
|
depth
|
|
497
511
|
question {
|
|
@@ -505,6 +519,12 @@ export const RunFieldsFragment = graphql(`
|
|
|
505
519
|
metadata
|
|
506
520
|
error
|
|
507
521
|
exitCode
|
|
522
|
+
result {
|
|
523
|
+
status
|
|
524
|
+
detail
|
|
525
|
+
text
|
|
526
|
+
}
|
|
527
|
+
verifyExitCode
|
|
508
528
|
vmID
|
|
509
529
|
transcriptAvailable
|
|
510
530
|
usage {
|
|
@@ -615,4 +635,14 @@ export const FollowUpRunDocument = graphql(`
|
|
|
615
635
|
}
|
|
616
636
|
}
|
|
617
637
|
`);
|
|
638
|
+
export const ListRunHarnessesDocument = graphql(`
|
|
639
|
+
query SdkRunHarnesses {
|
|
640
|
+
runHarnesses {
|
|
641
|
+
name
|
|
642
|
+
title
|
|
643
|
+
summary
|
|
644
|
+
requires
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
`);
|
|
618
648
|
//# sourceMappingURL=operations.js.map
|
package/dist/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B/C,CAAC,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n * Every GraphQL document the workflow layer sends.\n *\n * These are wrapped in `graphql(...)` so graphql-codegen validates them\n * against the vendored schema at codegen time and emits exact result/variable\n * types. A field that stops existing server-side turns into a compile error\n * here rather than a runtime surprise in an agent's script.\n *\n * The one document NOT defined here is the batched file write: it has a\n * variable number of aliased root fields, so it is assembled at runtime in\n * `unfazed.ts`. See the comment there.\n */\nimport { graphql } from \"./generated/gql.js\";\n\n/**\n * Deployment fields the SDK returns everywhere.\n *\n * `id` + `aliasRevision` + `aliasHeld` are the rollback compare-and-swap\n * triple; `previewUrl` is the immutable by-id URL you can verify BEFORE the\n * alias moves; `error` carries the build failure text when status is FAILED.\n */\nexport const DeploymentFieldsFragment = graphql(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n }\n`);\n\nexport const WhoamiDocument = graphql(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n }\n`);\n\nexport const CreateWorkspaceDocument = graphql(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: { name: $name }) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n }\n`);\n\nexport const ListWorkspacesDocument = graphql(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n`);\n\n/**\n * Deleting a workspace, with the deployment cascade made explicit.\n *\n * `withDeployments` is not decoration: without it the server REFUSES while the\n * workspace has any deployment history at all — including FAILED records —\n * with `workspace %q still has deployments; delete them first`. A workspace\n * that was ever deployed is therefore undeletable through the bare mutation,\n * so the SDK always sends the flag and lets the caller choose the value.\n */\nexport const DeleteWorkspaceDocument = graphql(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(input: { workspaceID: $workspaceID, withDeployments: $withDeployments }) {\n ok\n }\n }\n`);\n\nexport const WriteTextFileDocument = graphql(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const WriteBase64FileDocument = graphql(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: { workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64 }\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const ListFilesDocument = graphql(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const ReadFileDocument = graphql(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const DeleteFileDocument = graphql(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\n ok\n }\n }\n`);\n\nexport const CreateDeploymentDocument = graphql(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n }\n`);\n\nexport const DeployWorkspaceDocument = graphql(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n }\n`);\n\nexport const GetDeploymentDocument = graphql(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n }\n`);\n\n/**\n * The poll document, deliberately narrow.\n *\n * Waiting can run for minutes at a few seconds per tick; selecting the full\n * fragment every time would cost the server (and an agent's rate limit) far\n * more than the four fields the state machine actually reads.\n */\nexport const PollDeploymentDocument = graphql(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n }\n`);\n\nexport const GetDeploymentByAliasDocument = graphql(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const ListDeploymentsDocument = graphql(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const ListReleasesDocument = graphql(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const RollbackDocument = graphql(`\n mutation SdkRollback(\n $deploymentID: ID!\n $expectedCurrentDeploymentID: ID!\n $expectedCurrentAliasRevision: String!\n ) {\n rollbackDeployment(\n input: {\n deploymentID: $deploymentID\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\n }\n ) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const ServiceStatusDocument = graphql(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n }\n`);\n\nexport const ServiceLogsDocument = graphql(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n }\n`);\n\nexport const DeploymentEventsDocument = graphql(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n }\n`);\n\nexport const RestartServiceDocument = graphql(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: { deploymentID: $deploymentID }) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n }\n`);\n\nexport const StopServiceDocument = graphql(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: { deploymentID: $deploymentID }) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n }\n`);\n\nexport const DeleteDeploymentDocument = graphql(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: { deploymentID: $deploymentID }) {\n ok\n }\n }\n`);\n\n/* -------------------------------------------------------------------------\n * Env & secrets\n *\n * Workspace-scoped values are SERVICE defaults for every app in the source;\n * app-scoped values override them for one alias. Both are snapshotted into a\n * release at deploy time, so a change only reaches a running app after a\n * redeploy — the workflow layer's doc comments repeat this where it matters.\n * ---------------------------------------------------------------------- */\n\nexport const SetWorkspaceEnvDocument = graphql(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const SetWorkspaceSecretDocument = graphql(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(input: { workspaceID: $workspaceID, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const DeleteWorkspaceEnvDocument = graphql(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\n ok\n }\n }\n`);\n\nexport const ListWorkspaceEnvDocument = graphql(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n`);\n\nexport const SetAppEnvDocument = graphql(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const SetAppSecretDocument = graphql(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const RemoveAppEnvDocument = graphql(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\n ok\n }\n }\n`);\n\nexport const InheritAppEnvDocument = graphql(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\n ok\n }\n }\n`);\n\nexport const ListAppEnvDocument = graphql(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n`);\n\n/* -------------------------------------------------------------------------\n * Agent runs\n *\n * A run is the past-tense counterpart to a deployment: \"boot a fresh VM,\n * hand it a prompt, let a harness work, keep the transcript, record what it\n * cost, reap the VM\". `createRun` returns once the VM has started\n * (RUNNING) or FAILED with `error` when it could not boot — unlike\n * `createDeployment`, a FAILED run is a normal return value, not something\n * that only shows up later in a poll.\n * ---------------------------------------------------------------------- */\n\n/** Run fields the SDK returns everywhere. */\nexport const RunFieldsFragment = graphql(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n approval\n mode\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n }\n`);\n\nexport const CreateRunDocument = graphql(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n }\n`);\n\nexport const GetRunDocument = graphql(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n }\n`);\n\n/**\n * The poll document, deliberately narrow — see {@link PollDeploymentDocument}\n * for why: this runs every few seconds for potentially up to an hour.\n */\nexport const PollRunDocument = graphql(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n }\n`);\n\nexport const ListRunsDocument = graphql(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const CancelRunDocument = graphql(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n }\n`);\n\nexport const RunEventsDocument = graphql(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n }\n`);\n\n/** The live console tail of a RUNNING run. Empty with `running: false` once settled. */\nexport const RunConsoleDocument = graphql(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n }\n`);\n\n/** The bounded end of a finished run's stored transcript. */\nexport const RunTranscriptDocument = graphql(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n }\n`);\n\nexport const AnswerRunDocument = graphql(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n }\n`);\n\nexport const FollowUpRunDocument = graphql(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n }\n`);\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAyBrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;;;;;;;;;;;;;CAa9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC;;;;;;;;;;;CAW7C,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;;;;;;CAM9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;;;;;;;;;;;;CAY5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;CAc9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;CAiBxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,g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CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;;;;;;;;;;;;;CAavC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;;;;;;CAMxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;;;;;;;;;;;;CAYxC,CAAC,CAAC;AAEH,wFAAwF;AACxF,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC;;;;;;;;CAQzC,CAAC,CAAC;AAEH,6DAA6D;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;;;;;;;;;;CAU5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;;;;;;CAMxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC;;;;;;CAM1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;;;;;;;;;CAS/C,CAAC,CAAC","sourcesContent":["/**\n * Every GraphQL document the workflow layer sends.\n *\n * These are wrapped in `graphql(...)` so graphql-codegen validates them\n * against the vendored schema at codegen time and emits exact result/variable\n * types. A field that stops existing server-side turns into a compile error\n * here rather than a runtime surprise in an agent's script.\n *\n * The one document NOT defined here is the batched file write: it has a\n * variable number of aliased root fields, so it is assembled at runtime in\n * `unfazed.ts`. See the comment there.\n */\nimport { graphql } from \"./generated/gql.js\";\n\n/**\n * Deployment fields the SDK returns everywhere.\n *\n * `id` + `aliasRevision` + `aliasHeld` are the rollback compare-and-swap\n * triple; `previewUrl` is the immutable by-id URL you can verify BEFORE the\n * alias moves; `error` carries the build failure text when status is FAILED.\n */\nexport const DeploymentFieldsFragment = graphql(`\n fragment DeploymentFields on Deployment {\n id\n workspaceID\n kind\n runtime\n alias\n serviceMode\n healthPath\n cronSchedule\n cronPath\n url\n previewUrl\n sshCommand\n aliasHeld\n aliasRevision\n status\n error\n filesCount\n sizeBytes\n size\n spaMode\n gitRepo\n gitCommit\n createdAt\n }\n`);\n\nexport const WhoamiDocument = graphql(`\n query SdkWhoami {\n whoami {\n kind\n userID\n name\n agentID\n agentName\n claimed\n claimedBy\n scopes\n expiresAt\n usage {\n month\n requests\n limit\n }\n resources {\n workspaces\n workspaceLimit\n services\n serviceLimit\n }\n }\n }\n`);\n\nexport const CreateWorkspaceDocument = graphql(`\n mutation SdkCreateWorkspace($name: String!) {\n createWorkspace(input: { name: $name }) {\n workspace {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n }\n`);\n\nexport const ListWorkspacesDocument = graphql(`\n query SdkListWorkspaces {\n workspaces {\n id\n name\n ownerId\n projectId\n createdAt\n updatedAt\n }\n }\n`);\n\n/**\n * Deleting a workspace, with the deployment cascade made explicit.\n *\n * `withDeployments` is not decoration: without it the server REFUSES while the\n * workspace has any deployment history at all — including FAILED records —\n * with `workspace %q still has deployments; delete them first`. A workspace\n * that was ever deployed is therefore undeletable through the bare mutation,\n * so the SDK always sends the flag and lets the caller choose the value.\n */\nexport const DeleteWorkspaceDocument = graphql(`\n mutation SdkDeleteWorkspace($workspaceID: ID!, $withDeployments: Boolean) {\n deleteWorkspace(input: { workspaceID: $workspaceID, withDeployments: $withDeployments }) {\n ok\n }\n }\n`);\n\nexport const WriteTextFileDocument = graphql(`\n mutation SdkWriteTextFile($workspaceID: ID!, $path: String!, $text: String!) {\n writeWorkspaceTextFile(input: { workspaceID: $workspaceID, path: $path, text: $text }) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const WriteBase64FileDocument = graphql(`\n mutation SdkWriteBase64File($workspaceID: ID!, $path: String!, $contentBase64: String!) {\n writeWorkspaceBase64File(\n input: { workspaceID: $workspaceID, path: $path, contentBase64: $contentBase64 }\n ) {\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const ListFilesDocument = graphql(`\n query SdkListFiles($input: ListWorkspaceFilesInput!) {\n workspaceFilesPage(input: $input) {\n items {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const ReadFileDocument = graphql(`\n query SdkReadFile($input: ReadWorkspaceFileInput!) {\n readWorkspaceFile(input: $input) {\n text\n offset\n limit\n totalBytes\n truncated\n nextOffset\n file {\n path\n sizeBytes\n size\n sha256\n updatedAt\n }\n }\n }\n`);\n\nexport const DeleteFileDocument = graphql(`\n mutation SdkDeleteFile($workspaceID: ID!, $path: String!) {\n deleteWorkspaceFile(input: { workspaceID: $workspaceID, path: $path }) {\n ok\n }\n }\n`);\n\nexport const CreateDeploymentDocument = graphql(`\n mutation SdkCreateDeployment($input: CreateDeploymentInput!) {\n createDeployment(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n }\n`);\n\nexport const DeployWorkspaceDocument = graphql(`\n mutation SdkDeployWorkspace($input: DeployWorkspaceInput!) {\n deployWorkspace(input: $input) {\n deployment {\n ...DeploymentFields\n }\n }\n }\n`);\n\nexport const GetDeploymentDocument = graphql(`\n query SdkGetDeployment($id: ID!) {\n deployment(id: $id) {\n ...DeploymentFields\n }\n }\n`);\n\n/**\n * The poll document, deliberately narrow.\n *\n * Waiting can run for minutes at a few seconds per tick; selecting the full\n * fragment every time would cost the server (and an agent's rate limit) far\n * more than the four fields the state machine actually reads.\n */\nexport const PollDeploymentDocument = graphql(`\n query SdkPollDeployment($id: ID!) {\n deployment(id: $id) {\n id\n status\n error\n aliasHeld\n url\n previewUrl\n }\n }\n`);\n\nexport const GetDeploymentByAliasDocument = graphql(`\n query SdkGetDeploymentByAlias($alias: String!) {\n deploymentByAlias(alias: $alias) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const ListDeploymentsDocument = graphql(`\n query SdkListDeployments($input: ListDeploymentsInput) {\n deploymentsPage(input: $input) {\n items {\n ...DeploymentFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const ListReleasesDocument = graphql(`\n query SdkListReleases($alias: String!) {\n deploymentReleases(alias: $alias) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const RollbackDocument = graphql(`\n mutation SdkRollback(\n $deploymentID: ID!\n $expectedCurrentDeploymentID: ID!\n $expectedCurrentAliasRevision: String!\n ) {\n rollbackDeployment(\n input: {\n deploymentID: $deploymentID\n expectedCurrentDeploymentID: $expectedCurrentDeploymentID\n expectedCurrentAliasRevision: $expectedCurrentAliasRevision\n }\n ) {\n ...DeploymentFields\n }\n }\n`);\n\nexport const ServiceStatusDocument = graphql(`\n query SdkServiceStatus($deploymentID: ID!) {\n serviceStatus(deploymentID: $deploymentID) {\n deploymentID\n alias\n serviceMode\n running\n health\n vmID\n inFlight\n alwaysOn\n memSizeMiB\n startedAt\n lastUsedAt\n lastStoppedAt\n restartCount\n lastError\n }\n }\n`);\n\nexport const ServiceLogsDocument = graphql(`\n query SdkServiceLogs($deploymentID: ID!, $tailBytes: Int) {\n serviceLogs(deploymentID: $deploymentID, tailBytes: $tailBytes) {\n deploymentID\n stdout\n stderr\n truncated\n stdoutBytes\n stderrBytes\n tailBytes\n }\n }\n`);\n\nexport const DeploymentEventsDocument = graphql(`\n query SdkDeploymentEvents($deploymentID: ID!, $limit: Int) {\n deploymentEvents(deploymentID: $deploymentID, limit: $limit) {\n id\n deploymentID\n type\n rawType\n severity\n message\n vmID\n createdAt\n }\n }\n`);\n\nexport const RestartServiceDocument = graphql(`\n mutation SdkRestartService($deploymentID: ID!) {\n restartService(input: { deploymentID: $deploymentID }) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n }\n`);\n\nexport const StopServiceDocument = graphql(`\n mutation SdkStopService($deploymentID: ID!) {\n stopService(input: { deploymentID: $deploymentID }) {\n deploymentID\n running\n health\n vmID\n restartCount\n lastError\n }\n }\n`);\n\nexport const DeleteDeploymentDocument = graphql(`\n mutation SdkDeleteDeployment($deploymentID: ID!) {\n deleteDeployment(input: { deploymentID: $deploymentID }) {\n ok\n }\n }\n`);\n\n/* -------------------------------------------------------------------------\n * Env & secrets\n *\n * Workspace-scoped values are SERVICE defaults for every app in the source;\n * app-scoped values override them for one alias. Both are snapshotted into a\n * release at deploy time, so a change only reaches a running app after a\n * redeploy — the workflow layer's doc comments repeat this where it matters.\n * ---------------------------------------------------------------------- */\n\nexport const SetWorkspaceEnvDocument = graphql(`\n mutation SdkSetWorkspaceEnv($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const SetWorkspaceSecretDocument = graphql(`\n mutation SdkSetWorkspaceSecret($workspaceID: ID!, $name: String!, $value: String!) {\n setWorkspaceSecret(input: { workspaceID: $workspaceID, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const DeleteWorkspaceEnvDocument = graphql(`\n mutation SdkDeleteWorkspaceEnv($workspaceID: ID!, $name: String!) {\n deleteWorkspaceEnv(input: { workspaceID: $workspaceID, name: $name }) {\n ok\n }\n }\n`);\n\nexport const ListWorkspaceEnvDocument = graphql(`\n query SdkListWorkspaceEnv($workspaceID: ID!) {\n workspaceEnv(workspaceID: $workspaceID) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n`);\n\nexport const SetAppEnvDocument = graphql(`\n mutation SdkSetAppEnv($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const SetAppSecretDocument = graphql(`\n mutation SdkSetAppSecret($workspaceID: ID!, $alias: String!, $name: String!, $value: String!) {\n setAppSecret(input: { workspaceID: $workspaceID, alias: $alias, name: $name, value: $value }) {\n env {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n }\n`);\n\nexport const RemoveAppEnvDocument = graphql(`\n mutation SdkRemoveAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n removeAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\n ok\n }\n }\n`);\n\nexport const InheritAppEnvDocument = graphql(`\n mutation SdkInheritAppEnv($workspaceID: ID!, $alias: String!, $name: String!) {\n inheritAppEnv(input: { workspaceID: $workspaceID, alias: $alias, name: $name }) {\n ok\n }\n }\n`);\n\nexport const ListAppEnvDocument = graphql(`\n query SdkListAppEnv($workspaceID: ID!, $alias: String!) {\n appEnv(workspaceID: $workspaceID, alias: $alias) {\n name\n value\n secret\n alias\n inherited\n masked\n updatedAt\n }\n }\n`);\n\n/* -------------------------------------------------------------------------\n * Agent runs\n *\n * A run is the past-tense counterpart to a deployment: \"boot a fresh VM,\n * hand it a prompt, let a harness work, keep the transcript, record what it\n * cost, reap the VM\". `createRun` returns once the VM has started\n * (RUNNING) or FAILED with `error` when it could not boot — unlike\n * `createDeployment`, a FAILED run is a normal return value, not something\n * that only shows up later in a poll.\n * ---------------------------------------------------------------------- */\n\n/** Run fields the SDK returns everywhere. */\nexport const RunFieldsFragment = graphql(`\n fragment RunFields on Run {\n id\n workspaceID\n ownerId\n status\n rawStatus\n command\n harness\n prompt\n setup\n skills\n verify\n approval\n mode\n access\n alias\n integrations {\n kind\n bindingID\n env\n skills\n mcpServers {\n name\n transport\n readOnly\n }\n }\n parentRunID\n depth\n question {\n id\n text\n options\n askedAt\n }\n memoryMiB\n maxSeconds\n metadata\n error\n exitCode\n result {\n status\n detail\n text\n }\n verifyExitCode\n vmID\n transcriptAvailable\n usage {\n vmSeconds\n memoryMiB\n mibSeconds\n }\n createdAt\n startedAt\n settledAt\n }\n`);\n\nexport const CreateRunDocument = graphql(`\n mutation SdkCreateRun($input: CreateRunInput!) {\n createRun(input: $input) {\n ...RunFields\n }\n }\n`);\n\nexport const GetRunDocument = graphql(`\n query SdkGetRun($id: ID!) {\n run(id: $id) {\n ...RunFields\n }\n }\n`);\n\n/**\n * The poll document, deliberately narrow — see {@link PollDeploymentDocument}\n * for why: this runs every few seconds for potentially up to an hour.\n */\nexport const PollRunDocument = graphql(`\n query SdkPollRun($id: ID!) {\n run(id: $id) {\n id\n status\n error\n exitCode\n }\n }\n`);\n\nexport const ListRunsDocument = graphql(`\n query SdkListRuns($input: ListRunsInput) {\n runs(input: $input) {\n items {\n ...RunFields\n }\n total\n limit\n offset\n hasMore\n nextOffset\n }\n }\n`);\n\nexport const CancelRunDocument = graphql(`\n mutation SdkCancelRun($id: ID!) {\n cancelRun(id: $id) {\n ...RunFields\n }\n }\n`);\n\nexport const RunEventsDocument = graphql(`\n query SdkRunEvents($runID: ID!, $limit: Int) {\n runEvents(runID: $runID, limit: $limit) {\n id\n runID\n type\n severity\n message\n metadata\n createdAt\n }\n }\n`);\n\n/** The live console tail of a RUNNING run. Empty with `running: false` once settled. */\nexport const RunConsoleDocument = graphql(`\n query SdkRunConsole($id: ID!, $tailBytes: Int) {\n runConsole(id: $id, tailBytes: $tailBytes) {\n runID\n running\n text\n }\n }\n`);\n\n/** The bounded end of a finished run's stored transcript. */\nexport const RunTranscriptDocument = graphql(`\n query SdkRunTranscript($id: ID!, $tailBytes: Int) {\n runTranscript(id: $id, tailBytes: $tailBytes) {\n runID\n available\n text\n totalBytes\n truncated\n }\n }\n`);\n\nexport const AnswerRunDocument = graphql(`\n mutation SdkAnswerRun($id: ID!, $answer: String!) {\n answerRun(id: $id, answer: $answer) {\n ...RunFields\n }\n }\n`);\n\nexport const FollowUpRunDocument = graphql(`\n mutation SdkFollowUpRun($input: FollowUpRunInput!) {\n followUpRun(input: $input) {\n ...RunFields\n }\n }\n`);\n\nexport const ListRunHarnessesDocument = graphql(`\n query SdkRunHarnesses {\n runHarnesses {\n name\n title\n summary\n requires\n }\n }\n`);\n"]}
|
package/dist/unfazed.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { UnfazedClient, type ClientOptions, type RequestOptions } from "./client.js";
|
|
2
|
-
import type { CreateDeploymentInput, DeploymentFieldsFragment, ListDeploymentsInput, RunFieldsFragment, RunStatus, ServiceMode, ServiceRuntime, SdkCreateWorkspaceMutation } from "./generated/graphql.js";
|
|
2
|
+
import type { CreateDeploymentInput, DeploymentFieldsFragment, ListDeploymentsInput, RunFieldsFragment, RunStatus, ServiceMode, ServiceRuntime, SdkCreateWorkspaceMutation, SdkRunHarnessesQuery } from "./generated/graphql.js";
|
|
3
3
|
import { type WaitOptions } from "./wait.js";
|
|
4
4
|
/** A deployment as the workflow layer returns it. */
|
|
5
5
|
export type Deployment = DeploymentFieldsFragment;
|
|
6
6
|
/** An agent run as the workflow layer returns it. */
|
|
7
7
|
export type Run = RunFieldsFragment;
|
|
8
|
+
/** One harness preset of the box image, from {@link Unfazed.listRunHarnesses}. */
|
|
9
|
+
export type RunHarness = SdkRunHarnessesQuery["runHarnesses"][number];
|
|
8
10
|
/**
|
|
9
11
|
* A workspace as {@link Unfazed.createWorkspace} and
|
|
10
12
|
* {@link Unfazed.ensureWorkspace} return it.
|
|
@@ -167,6 +169,15 @@ export interface CreateRunOptions {
|
|
|
167
169
|
setup?: string[];
|
|
168
170
|
/** Up to 10 `owner/repo:path` GitHub references, cloned into `/work/.claude/skills/<name>` first. */
|
|
169
171
|
skills?: string[];
|
|
172
|
+
/**
|
|
173
|
+
* Up to 20 shell commands run in `/work` AFTER the harness exited 0 —
|
|
174
|
+
* tests, a build, `test -f out.txt`. The first failure FAILS the run
|
|
175
|
+
* (`error` "verification failed", `verifyExitCode`). Without `verify`,
|
|
176
|
+
* SUCCEEDED only means the harness exited cleanly: an agent that answered
|
|
177
|
+
* "I could not do this" still succeeds — read `run.result.text` in that
|
|
178
|
+
* case. Skipped in plan mode.
|
|
179
|
+
*/
|
|
180
|
+
verify?: string[];
|
|
170
181
|
/** VM memory. Omit for the platform default. */
|
|
171
182
|
memoryMiB?: number;
|
|
172
183
|
/** Wall-clock cap in seconds. Omit for the platform default; capped at 3600. */
|
|
@@ -188,6 +199,20 @@ export interface CreateRunOptions {
|
|
|
188
199
|
* transcript. Approve it with {@link Unfazed.followUpRun}. Omit to do the task.
|
|
189
200
|
*/
|
|
190
201
|
mode?: "plan";
|
|
202
|
+
/**
|
|
203
|
+
* `"read-only"` (the default) or `"read-write"`. A read-only run gets the
|
|
204
|
+
* app's integrations' read-only credentials (none where the product has no
|
|
205
|
+
* read-only key), only their read MCP tools, and a platform token that
|
|
206
|
+
* cannot deploy or write env; read-write gets the app's own credentials,
|
|
207
|
+
* read+write tools and a deploy-capable token. Ask for read-write only
|
|
208
|
+
* when the run must change things.
|
|
209
|
+
*/
|
|
210
|
+
access?: "read-only" | "read-write";
|
|
211
|
+
/**
|
|
212
|
+
* The app (alias) whose integrations the run gets. Implicit when the
|
|
213
|
+
* workspace has one app; required when it has several.
|
|
214
|
+
*/
|
|
215
|
+
alias?: string;
|
|
191
216
|
/** The run this one continues. Usually set for you by {@link Unfazed.followUpRun}. */
|
|
192
217
|
parentRunId?: string;
|
|
193
218
|
/**
|
|
@@ -761,6 +786,13 @@ export declare class Unfazed {
|
|
|
761
786
|
waitForRun(runId: string, waitOptions?: WaitOptions): Promise<Run>;
|
|
762
787
|
/** Reads one run by id. Throws if it does not exist or is not visible to you. */
|
|
763
788
|
getRun(runId: string, options?: RequestOptions): Promise<Run>;
|
|
789
|
+
/**
|
|
790
|
+
* The harness presets a run may name (`createRun({ harness })`): name,
|
|
791
|
+
* title, what it is, and the workspace secrets it requires (set them with
|
|
792
|
+
* {@link Unfazed.setSecret} before the run). Empty when the node's box
|
|
793
|
+
* image carries no catalogue.
|
|
794
|
+
*/
|
|
795
|
+
listRunHarnesses(options?: RequestOptions): Promise<RunHarness[]>;
|
|
764
796
|
/** Your agent runs, newest first, optionally filtered by workspace/status. */
|
|
765
797
|
listRuns(filter?: ListRunsFilter, options?: RequestOptions): Promise<{
|
|
766
798
|
total: number;
|
|
@@ -779,8 +811,11 @@ export declare class Unfazed {
|
|
|
779
811
|
prompt: string | null;
|
|
780
812
|
setup: Array<string>;
|
|
781
813
|
skills: Array<string>;
|
|
814
|
+
verify: Array<string>;
|
|
782
815
|
approval: string;
|
|
783
816
|
mode: string;
|
|
817
|
+
access: string;
|
|
818
|
+
alias: string | null;
|
|
784
819
|
parentRunID: string | null;
|
|
785
820
|
depth: number;
|
|
786
821
|
memoryMiB: number;
|
|
@@ -788,17 +823,34 @@ export declare class Unfazed {
|
|
|
788
823
|
metadata: unknown;
|
|
789
824
|
error: string | null;
|
|
790
825
|
exitCode: number | null;
|
|
826
|
+
verifyExitCode: number | null;
|
|
791
827
|
vmID: string | null;
|
|
792
828
|
transcriptAvailable: boolean;
|
|
793
829
|
createdAt: string;
|
|
794
830
|
startedAt: string | null;
|
|
795
831
|
settledAt: string | null;
|
|
832
|
+
integrations: Array<{
|
|
833
|
+
kind: string;
|
|
834
|
+
bindingID: string;
|
|
835
|
+
env: string;
|
|
836
|
+
skills: Array<string>;
|
|
837
|
+
mcpServers: Array<{
|
|
838
|
+
name: string;
|
|
839
|
+
transport: string;
|
|
840
|
+
readOnly: boolean;
|
|
841
|
+
}>;
|
|
842
|
+
}>;
|
|
796
843
|
question: {
|
|
797
844
|
id: string;
|
|
798
845
|
text: string;
|
|
799
846
|
options: Array<string>;
|
|
800
847
|
askedAt: string;
|
|
801
848
|
} | null;
|
|
849
|
+
result: {
|
|
850
|
+
status: string;
|
|
851
|
+
detail: string | null;
|
|
852
|
+
text: string | null;
|
|
853
|
+
} | null;
|
|
802
854
|
usage: {
|
|
803
855
|
vmSeconds: number;
|
|
804
856
|
memoryMiB: number;
|
package/dist/unfazed.js
CHANGED
|
@@ -667,7 +667,7 @@ export class Unfazed {
|
|
|
667
667
|
* means and how a timeout is reported.
|
|
668
668
|
*/
|
|
669
669
|
async createRun(options) {
|
|
670
|
-
const { workspaceId, prompt, harness, command, setup, skills, memoryMiB, maxSeconds, metadata, includeFiles, approval, mode, parentRunId, wait, waitOptions, signal, } = options;
|
|
670
|
+
const { workspaceId, prompt, harness, command, setup, skills, verify, memoryMiB, maxSeconds, metadata, includeFiles, approval, mode, access, alias, parentRunId, wait, waitOptions, signal, } = options;
|
|
671
671
|
const requestOptions = signal ? { signal } : {};
|
|
672
672
|
const data = await this.client.mutate(ops.CreateRunDocument, {
|
|
673
673
|
input: {
|
|
@@ -677,12 +677,15 @@ export class Unfazed {
|
|
|
677
677
|
...(command === undefined ? {} : { command }),
|
|
678
678
|
...(setup === undefined ? {} : { setup }),
|
|
679
679
|
...(skills === undefined ? {} : { skills }),
|
|
680
|
+
...(verify === undefined ? {} : { verify }),
|
|
680
681
|
...(memoryMiB === undefined ? {} : { memoryMiB }),
|
|
681
682
|
...(maxSeconds === undefined ? {} : { maxSeconds }),
|
|
682
683
|
...(metadata === undefined ? {} : { metadata }),
|
|
683
684
|
...(includeFiles === undefined ? {} : { includeFiles }),
|
|
684
685
|
...(approval === undefined ? {} : { approval }),
|
|
685
686
|
...(mode === undefined ? {} : { mode }),
|
|
687
|
+
...(access === undefined ? {} : { access }),
|
|
688
|
+
...(alias === undefined ? {} : { alias }),
|
|
686
689
|
...(parentRunId === undefined ? {} : { parentRunID: parentRunId }),
|
|
687
690
|
},
|
|
688
691
|
}, requestOptions);
|
|
@@ -727,6 +730,16 @@ export class Unfazed {
|
|
|
727
730
|
const data = await this.client.query(ops.GetRunDocument, { id: runId }, options);
|
|
728
731
|
return data.run;
|
|
729
732
|
}
|
|
733
|
+
/**
|
|
734
|
+
* The harness presets a run may name (`createRun({ harness })`): name,
|
|
735
|
+
* title, what it is, and the workspace secrets it requires (set them with
|
|
736
|
+
* {@link Unfazed.setSecret} before the run). Empty when the node's box
|
|
737
|
+
* image carries no catalogue.
|
|
738
|
+
*/
|
|
739
|
+
async listRunHarnesses(options) {
|
|
740
|
+
const data = await this.client.query(ops.ListRunHarnessesDocument, {}, options);
|
|
741
|
+
return data.runHarnesses;
|
|
742
|
+
}
|
|
730
743
|
/** Your agent runs, newest first, optionally filtered by workspace/status. */
|
|
731
744
|
async listRuns(filter = {}, options) {
|
|
732
745
|
const { workspaceId, status, limit, offset } = filter;
|