@tangle-network/agent-app 0.63.27 → 0.63.29

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.
Files changed (72) hide show
  1. package/dist/{DesignCanvas-CFNV5JGQ.js → DesignCanvas-3DGZQOD7.js} +2 -2
  2. package/dist/{DesignCanvasEditor-KH4BDUE3.js → DesignCanvasEditor-OG4QY5WJ.js} +2 -2
  3. package/dist/{TimelineEditor-VB2UJ34D.js → TimelineEditor-MUY35ULL.js} +3 -3
  4. package/dist/app-auth/index.js +4 -4
  5. package/dist/assistant/index.js +9 -9
  6. package/dist/chat-react/index.js +3 -3
  7. package/dist/chat-routes/index.js +2 -2
  8. package/dist/chunk-53ZX7XZY.js +371 -0
  9. package/dist/chunk-53ZX7XZY.js.map +1 -0
  10. package/dist/{chunk-IVBREL7A.js → chunk-5HBIN366.js} +10 -10
  11. package/dist/{chunk-BQGJ5IDP.js → chunk-6UMIOEDR.js} +1046 -885
  12. package/dist/chunk-6UMIOEDR.js.map +1 -0
  13. package/dist/{chunk-ZNE4NYU7.js → chunk-DPTNKH22.js} +121 -2
  14. package/dist/chunk-DPTNKH22.js.map +1 -0
  15. package/dist/{chunk-Y3GO6SG3.js → chunk-F6J5J4H6.js} +22 -3
  16. package/dist/chunk-F6J5J4H6.js.map +1 -0
  17. package/dist/chunk-N425HGJW.js +261 -0
  18. package/dist/chunk-N425HGJW.js.map +1 -0
  19. package/dist/{chunk-ZZTPTCMY.js → chunk-XJXAULNI.js} +7 -7
  20. package/dist/{chunk-WTNW4NFS.js → chunk-ZD2AUFIT.js} +3 -3
  21. package/dist/conformance/cli.d.ts +2 -0
  22. package/dist/conformance/cli.js +67 -0
  23. package/dist/conformance/cli.js.map +1 -0
  24. package/dist/conformance/index.d.ts +3 -0
  25. package/dist/conformance/index.js +9 -0
  26. package/dist/conformance/index.js.map +1 -0
  27. package/dist/conformance/revision.d.ts +13 -0
  28. package/dist/conformance/run.d.ts +48 -0
  29. package/dist/conformance/session.d.ts +24 -0
  30. package/dist/conformance/turns.d.ts +37 -0
  31. package/dist/design-canvas/index.js +7 -7
  32. package/dist/design-canvas-react/engine.js +1 -1
  33. package/dist/design-canvas-react/index.js +5 -5
  34. package/dist/design-canvas-react/lazy.js +1 -1
  35. package/dist/operator/index.js +24 -252
  36. package/dist/operator/index.js.map +1 -1
  37. package/dist/platform/index.js +9 -9
  38. package/dist/public-consultation/index.d.ts +2 -2
  39. package/dist/public-consultation/index.js +2 -2
  40. package/dist/sequences/index.js +1 -1
  41. package/dist/sequences-react/index.js +3 -3
  42. package/dist/settings-react/index.js +1 -1
  43. package/dist/teams/invitations-api.js +1 -1
  44. package/dist/teams/members-api.d.ts +16 -1
  45. package/dist/teams/members-api.js +1 -1
  46. package/dist/teams-react/components/InviteTokenPage.d.ts +24 -0
  47. package/dist/teams-react/components/index.d.ts +1 -0
  48. package/dist/teams-react/index.js +40 -0
  49. package/dist/teams-react/index.js.map +1 -1
  50. package/dist/web/chat-stream-error.d.ts +63 -0
  51. package/dist/web/index.d.ts +1 -0
  52. package/dist/web/index.js +11 -1
  53. package/dist/web-react/durable-plan-flow-card.d.ts +25 -0
  54. package/dist/web-react/index.d.ts +3 -0
  55. package/dist/web-react/index.js +34 -28
  56. package/dist/web-react/sandbox-terminal-panel.d.ts +27 -0
  57. package/dist/web-react/terminal.d.ts +1 -0
  58. package/dist/web-react/terminal.js +109 -0
  59. package/dist/web-react/terminal.js.map +1 -1
  60. package/dist/web-react/use-models.d.ts +24 -0
  61. package/dist/web-react/use-plan-mode-selection.d.ts +17 -0
  62. package/dist/workspace-react/index.js +5 -5
  63. package/package.json +8 -2
  64. package/dist/chunk-BQGJ5IDP.js.map +0 -1
  65. package/dist/chunk-Y3GO6SG3.js.map +0 -1
  66. package/dist/chunk-ZNE4NYU7.js.map +0 -1
  67. /package/dist/{DesignCanvas-CFNV5JGQ.js.map → DesignCanvas-3DGZQOD7.js.map} +0 -0
  68. /package/dist/{DesignCanvasEditor-KH4BDUE3.js.map → DesignCanvasEditor-OG4QY5WJ.js.map} +0 -0
  69. /package/dist/{TimelineEditor-VB2UJ34D.js.map → TimelineEditor-MUY35ULL.js.map} +0 -0
  70. /package/dist/{chunk-IVBREL7A.js.map → chunk-5HBIN366.js.map} +0 -0
  71. /package/dist/{chunk-ZZTPTCMY.js.map → chunk-XJXAULNI.js.map} +0 -0
  72. /package/dist/{chunk-WTNW4NFS.js.map → chunk-ZD2AUFIT.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/operator/contract.ts","../src/operator/client.ts"],"sourcesContent":["/**\n * The standard operator API contract every agent app mounts at\n * `/api/operator/v1`. An outside agent (a Claude Code or Codex session, or\n * another app's agent) holds one scoped key per app and drives workspaces\n * through these routes; the app supplies only storage and execution.\n */\n\nimport type { ChatAttachmentInput } from '../chat-routes/wire.js'\n\nexport const OPERATOR_API_VERSION = 'v1'\nexport const OPERATOR_API_BASE_PATH = '/api/operator/v1'\n\n/** Key permissions, with the labels an app's API access page shows. */\nexport const OPERATOR_ACCESS = [\n {\n scope: 'operator:read',\n label: 'Read workspaces',\n description: 'Read workspaces, conversations, files, approvals, scorecards, and run status.',\n },\n {\n scope: 'operator:write',\n label: 'Create and edit',\n description: 'Create workspaces and conversations, and write files.',\n },\n {\n scope: 'operator:run',\n requires: ['operator:read'],\n label: 'Run agents',\n description: 'Requires read access. Start, continue, and interrupt agent turns, and answer their questions and tool-permission requests. Agents can modify workspace files. Uses your plan and budget.',\n },\n] as const\n\nexport type OperatorScope = typeof OPERATOR_ACCESS[number]['scope']\n\nexport const OPERATOR_API_SCOPES: readonly OperatorScope[] = OPERATOR_ACCESS.map(({ scope }) => scope)\n\nexport const OPERATOR_SCOPE_DEPENDENCIES: Readonly<Record<string, readonly string[]>> = Object.fromEntries(\n OPERATOR_ACCESS.flatMap((option) => 'requires' in option ? [[option.scope, option.requires]] : []),\n)\n\n/**\n * A key carrying one or more of these scopes reaches only the named\n * workspaces and cannot create workspaces. Keys without one keep the owner's\n * ordinary workspace access.\n */\nexport const OPERATOR_WORKSPACE_SCOPE_PREFIX = 'operator:workspace:'\n\nconst WORKSPACE_ID = /^[A-Za-z0-9_-]{1,128}$/\n\nexport function operatorWorkspaceScope(workspaceId: string): string {\n if (!WORKSPACE_ID.test(workspaceId)) throw new TypeError('Workspace ids contain only letters, digits, - and _')\n return `${OPERATOR_WORKSPACE_SCOPE_PREFIX}${workspaceId}`\n}\n\n/** The workspaces a key is restricted to, or null when it is unrestricted. A malformed restriction restricts to nothing. */\nexport function operatorKeyWorkspaces(scopes: readonly string[]): readonly string[] | null {\n const restricted = scopes.filter((scope) => scope.startsWith(OPERATOR_WORKSPACE_SCOPE_PREFIX))\n if (restricted.length === 0) return null\n return restricted\n .map((scope) => scope.slice(OPERATOR_WORKSPACE_SCOPE_PREFIX.length))\n .filter((id) => WORKSPACE_ID.test(id))\n}\n\nexport type OperatorRole = 'owner' | 'admin' | 'editor' | 'viewer'\n\nexport interface OperatorAppInfo {\n /** Stable app identifier, such as `gtm` or `tax`. */\n app: string\n name: string\n apiVersion: typeof OPERATOR_API_VERSION\n /** Optional operations this app implements; absent ones answer 501. */\n capabilities: OperatorCapability[]\n}\n\nexport type OperatorCapability =\n | 'turns.attachments'\n | 'turns.cancel'\n | 'workspaces.create'\n | 'threads.read'\n | 'files.read'\n | 'journal.read'\n | 'assets.read'\n | 'scorecard.read'\n\nexport interface OperatorPrincipalInfo {\n keyId: string\n scopes: string[]\n /** Workspaces the key is restricted to, or null for the owner's ordinary access. */\n workspaces: string[] | null\n}\n\nexport interface OperatorWorkspace {\n id: string\n name: string\n role?: OperatorRole\n /** Browser link for a person to open the workspace. */\n url?: string\n createdAt?: string\n}\n\nexport interface OperatorThread {\n id: string\n title: string\n updatedAt?: string\n url?: string\n}\n\n/**\n * `succeeded` and `failed` are settled. `input-required` waits on a person or\n * an operator decision listed in `approvals`. `unknown` means the app cannot\n * establish the state; it is never evidence of success.\n */\nexport type OperatorTurnState = 'queued' | 'working' | 'input-required' | 'succeeded' | 'failed' | 'unknown'\n\nexport const OPERATOR_SETTLED_STATES: readonly OperatorTurnState[] = ['succeeded', 'failed']\n\n/** `failure.code` of a turn that settled because it was cancelled before it finished. */\nexport const OPERATOR_TURN_CANCELLED_CODE = 'turn.cancelled'\n\nexport interface OperatorAssetRef {\n id: string\n /** Root-relative operator route that returns the bytes. */\n path: string\n mediaType?: string\n name?: string\n}\n\nexport interface OperatorFileChange {\n path: string\n action: 'created' | 'updated' | 'deleted' | 'changed'\n}\n\nexport type OperatorApprovalKind = 'question' | 'permission' | 'plan' | 'hub' | 'asset' | 'review'\n\nexport interface OperatorApproval {\n id: string\n kind: OperatorApprovalKind\n title: string\n detail?: string\n threadId?: string\n /** Browser link where an authorized person decides it. */\n url?: string\n createdAt?: string\n expiresAt?: string\n /** Who can decide: an operator key with run access, an editor, or the workspace owner. */\n decidedBy: 'operator' | 'editor' | 'owner'\n}\n\nexport interface OperatorTurn {\n workspaceId: string\n threadId: string\n turnId: string\n state: OperatorTurnState\n url?: string\n executionId?: string\n model?: string\n costUsd?: number\n /** Producer-recorded basis for costUsd; catalog is an estimate, ledger is settlement evidence. */\n costSource?: 'ledger' | 'catalog' | 'reported' | 'unreported' | 'subscription'\n /** Producer-recorded billing path, not the identity of a payer. */\n billingOwner?: 'router' | 'sandbox-router' | 'subscription'\n /** Producer-recorded credential path; never inferred from costUsd or billingOwner. */\n credentialSource?: 'router' | 'subscription'\n /** Opaque producer settlement reference; its presence alone does not prove a charge or zero provider cost. */\n settlementRecord?: string\n /**\n * Token usage the app stored on the turn's reply; `operatorTurnUsage` maps\n * a chat-store row to it.\n * - `inputTokens`: prompt tokens NOT read from the provider's cache. Unlike\n * the turn trace's summary, it never includes cache reads; it is omitted\n * when the row's split is ambiguous, including when the row records no\n * cache count (see `operatorTurnUsage`).\n * - `cachedInputTokens`: prompt tokens read from the provider's cache (the\n * row's `cacheReadTokens`); with both present the whole prompt is\n * `inputTokens + cachedInputTokens`. When absent the cache share is unknown.\n * - `outputTokens`: completion tokens.\n * Each field is present only when known; never a guessed zero.\n */\n usage?: { inputTokens?: number; cachedInputTokens?: number; outputTokens?: number }\n completedAt?: string\n /** The settled answer; null until the turn settles. */\n reply: { content: string; mediaType: string } | null\n failure: { code?: string; message: string } | null\n assets: OperatorAssetRef[]\n files: OperatorFileChange[]\n /** Decisions open on this turn's conversation. */\n approvals: OperatorApproval[]\n}\n\nexport interface OperatorJournalEntry {\n path: string\n /** `YYYY-MM-DD` the entry belongs to. */\n date: string\n title?: string\n updatedAt?: string\n}\n\nexport interface OperatorFileEntry {\n path: string\n updatedAt?: string\n bytes?: number\n}\n\nexport interface OperatorFile {\n path: string\n content: string\n mediaType: string\n revision?: string\n}\n\nexport interface OperatorMetric {\n key: string\n label: string\n /** Null when the app has no measurement; never a guessed zero. */\n value: number | null\n unit: 'count' | 'usd' | 'ratio' | 'ms'\n note?: string\n}\n\nexport interface OperatorScorecard {\n workspaceId: string\n generatedAt: string\n window: { start: string; end: string; days: number }\n /** Work the agent did in the window. */\n metrics: OperatorMetric[]\n /** Business results recorded in the window, such as clicks, signups, or replies. */\n outcomes: OperatorMetric[]\n /** How the numbers are measured and what they exclude. */\n measurement: string\n}\n\nexport interface OperatorErrorBody {\n error: string\n code: string\n retryable?: boolean\n}\n\nexport interface StartTurnInput {\n /** Client-generated UUID. Reuse it to retry the same turn; it never starts twice. */\n turnId: string\n content: string\n /** Continue this conversation; omitted starts a new one. */\n threadId?: string\n /** Title for a new conversation. */\n title?: string\n model?: string\n /**\n * Files uploaded to this workspace ahead of the turn, as the app's\n * attachment upload route returned them in `{ files }`. They reach the\n * agent exactly as browser-composer attachments do; the app re-checks each\n * path against the workspace's own store. At most the app's\n * `maxAttachments` entries, `ATTACHMENT_MAX_COUNT` (`/chat-routes`) unless\n * the app sets one. Apps without the `turns.attachments` capability refuse\n * them.\n */\n attachments?: ChatAttachmentInput[]\n}\n\n/** Route table: method, path pattern under the base path, and required scopes. */\nexport const OPERATOR_ROUTES = [\n { id: 'describe', method: 'GET', path: '', scopes: ['operator:read'] },\n { id: 'workspaces.list', method: 'GET', path: '/workspaces', scopes: ['operator:read'] },\n { id: 'workspaces.create', method: 'POST', path: '/workspaces', scopes: ['operator:write'] },\n { id: 'workspaces.get', method: 'GET', path: '/workspaces/:workspaceId', scopes: ['operator:read'] },\n { id: 'turns.start', method: 'POST', path: '/workspaces/:workspaceId/turns', scopes: ['operator:read', 'operator:run'] },\n { id: 'threads.list', method: 'GET', path: '/workspaces/:workspaceId/threads', scopes: ['operator:read'] },\n { id: 'threads.get', method: 'GET', path: '/workspaces/:workspaceId/threads/:threadId', scopes: ['operator:read'] },\n { id: 'turns.get', method: 'GET', path: '/workspaces/:workspaceId/threads/:threadId/turns/:turnId', scopes: ['operator:read'] },\n { id: 'turns.cancel', method: 'POST', path: '/workspaces/:workspaceId/threads/:threadId/turns/:turnId/cancel', scopes: ['operator:read', 'operator:run'] },\n { id: 'approvals.list', method: 'GET', path: '/workspaces/:workspaceId/approvals', scopes: ['operator:read'] },\n { id: 'journal.list', method: 'GET', path: '/workspaces/:workspaceId/journal', scopes: ['operator:read'] },\n { id: 'files.list', method: 'GET', path: '/workspaces/:workspaceId/files', scopes: ['operator:read'] },\n { id: 'files.read', method: 'GET', path: '/workspaces/:workspaceId/file', scopes: ['operator:read'] },\n { id: 'assets.read', method: 'GET', path: '/workspaces/:workspaceId/assets/:assetId', scopes: ['operator:read'] },\n { id: 'scorecard.get', method: 'GET', path: '/workspaces/:workspaceId/scorecard', scopes: ['operator:read'] },\n] as const satisfies ReadonlyArray<{ id: string; method: 'GET' | 'POST'; path: string; scopes: readonly OperatorScope[] }>\n\nexport type OperatorRouteId = typeof OPERATOR_ROUTES[number]['id']\n\nconst SEGMENT = /^[A-Za-z0-9_:.%-]{1,256}$/\n\n/** Match a pathname under the base path to its route and decoded parameters. */\nexport function matchOperatorRoute(\n method: string,\n pathname: string,\n basePath: string = OPERATOR_API_BASE_PATH,\n): { route: typeof OPERATOR_ROUTES[number]; params: Record<string, string> } | null {\n if (pathname !== basePath && !pathname.startsWith(`${basePath}/`)) return null\n const rest = pathname.slice(basePath.length).replace(/\\/$/, '')\n const actual = rest ? rest.split('/').slice(1) : []\n for (const route of OPERATOR_ROUTES) {\n if (route.method !== method) continue\n const pattern = route.path ? route.path.split('/').slice(1) : []\n if (pattern.length !== actual.length) continue\n const params: Record<string, string> = {}\n let matched = true\n for (let index = 0; index < pattern.length; index++) {\n const expected = pattern[index]!\n const segment = actual[index]!\n if (expected.startsWith(':')) {\n if (!SEGMENT.test(segment)) { matched = false; break }\n let decoded: string\n try { decoded = decodeURIComponent(segment) } catch { matched = false; break }\n if (!decoded || decoded.includes('/')) { matched = false; break }\n params[expected.slice(1)] = decoded\n } else if (expected !== segment) {\n matched = false\n break\n }\n }\n if (matched) return { route, params }\n }\n return null\n}\n","import { createApiKeyFetch } from '../web/api-key-fetch.js'\nimport {\n OPERATOR_API_BASE_PATH,\n type OperatorApproval,\n type OperatorAppInfo,\n type OperatorErrorBody,\n type OperatorFile,\n type OperatorFileEntry,\n type OperatorJournalEntry,\n type OperatorPrincipalInfo,\n type OperatorScorecard,\n type OperatorThread,\n type OperatorTurn,\n type OperatorWorkspace,\n type StartTurnInput,\n} from './contract.js'\n\nexport type OperatorResult<T> =\n | { succeeded: true; value: T }\n | { succeeded: false; status: number; code: string; error: string; retryable: boolean }\n\nexport interface OperatorClientOptions {\n /** The app's origin, such as `https://gtm.tangle.tools`. */\n origin: string\n /** Resolve the key from trusted secret storage on each request; never from model output. */\n getApiKey(): string | Promise<string>\n fetchImpl?: typeof fetch\n allowHttpLoopback?: boolean\n basePath?: string\n}\n\nexport interface WaitForTurnOptions {\n /** Total time to follow the turn. */\n timeoutMs: number\n /** Server hold per request, in seconds; the server caps it. */\n waitSeconds?: number\n signal?: AbortSignal\n}\n\nexport interface OperatorClient {\n describe(): Promise<OperatorResult<{ app: OperatorAppInfo; principal: OperatorPrincipalInfo }>>\n listWorkspaces(): Promise<OperatorResult<OperatorWorkspace[]>>\n createWorkspace(input: { name: string }): Promise<OperatorResult<OperatorWorkspace>>\n getWorkspace(workspaceId: string): Promise<OperatorResult<OperatorWorkspace>>\n /** Omitting turnId generates one; retry with the returned turn's id. */\n startTurn(workspaceId: string, input: Omit<StartTurnInput, 'turnId'> & { turnId?: string }): Promise<OperatorResult<OperatorTurn>>\n getTurn(workspaceId: string, threadId: string, turnId: string, options?: { waitSeconds?: number; signal?: AbortSignal }): Promise<OperatorResult<OperatorTurn>>\n /**\n * Stop a turn. A settled turn comes back as it settled; otherwise the app\n * has been asked to stop it, and the server holds up to `waitSeconds` for\n * the turn to settle `failed` with `OPERATOR_TURN_CANCELLED_CODE`. Read it\n * with `getTurn` or `waitForTurn` until it settles.\n */\n cancelTurn(workspaceId: string, threadId: string, turnId: string, options?: { waitSeconds?: number; signal?: AbortSignal }): Promise<OperatorResult<OperatorTurn>>\n /** Follow until the turn settles, waits on a decision, or the timeout passes; the last read is returned. */\n waitForTurn(workspaceId: string, threadId: string, turnId: string, options: WaitForTurnOptions): Promise<OperatorResult<OperatorTurn>>\n listThreads(workspaceId: string, query?: { cursor?: string; limit?: number }): Promise<OperatorResult<{ threads: OperatorThread[]; nextCursor: string | null }>>\n getThread(workspaceId: string, threadId: string): Promise<OperatorResult<{ thread: OperatorThread; latestTurn: OperatorTurn | null }>>\n listApprovals(workspaceId: string): Promise<OperatorResult<OperatorApproval[]>>\n listJournal(workspaceId: string, query?: { days?: number }): Promise<OperatorResult<OperatorJournalEntry[]>>\n listFiles(workspaceId: string, query?: { prefix?: string }): Promise<OperatorResult<OperatorFileEntry[]>>\n readFile(workspaceId: string, path: string): Promise<OperatorResult<OperatorFile>>\n /** The raw asset response; the caller reads and bounds its body. */\n readAsset(workspaceId: string, assetId: string, init?: { signal?: AbortSignal }): Promise<OperatorResult<Response>>\n getScorecard(workspaceId: string, query?: { days?: number }): Promise<OperatorResult<OperatorScorecard>>\n}\n\nfunction segment(value: string): string {\n return encodeURIComponent(value)\n}\n\nasync function failure(response: Response): Promise<OperatorResult<never>> {\n let body: Partial<OperatorErrorBody> = {}\n try { body = await response.json() as Partial<OperatorErrorBody> } catch { /* A non-JSON refusal keeps its status. */ }\n return {\n succeeded: false,\n status: response.status,\n code: typeof body.code === 'string' ? body.code : `http_${response.status}`,\n error: typeof body.error === 'string' ? body.error : `HTTP ${response.status}`,\n retryable: body.retryable === true || response.status === 429 || response.status >= 500,\n }\n}\n\nfunction transportFailure(error: unknown): OperatorResult<never> {\n const aborted = error instanceof Error && error.name === 'AbortError'\n return {\n succeeded: false,\n status: 0,\n code: aborted ? 'operator.aborted' : 'operator.transport_failed',\n // createApiKeyFetch never forwards transport diagnostics, which could carry the key.\n error: error instanceof Error ? error.message : 'Operator transport failed',\n retryable: !aborted,\n }\n}\n\nconst SETTLED = new Set(['succeeded', 'failed', 'input-required'])\n\n/** A typed client for one app's operator API. */\nexport function createOperatorClient(options: OperatorClientOptions): OperatorClient {\n const basePath = (options.basePath ?? OPERATOR_API_BASE_PATH).replace(/\\/$/, '')\n const request = createApiKeyFetch({\n origin: options.origin,\n getApiKey: options.getApiKey,\n ...(options.fetchImpl ? { fetchImpl: options.fetchImpl } : {}),\n ...(options.allowHttpLoopback ? { allowHttpLoopback: true } : {}),\n })\n\n async function call<T>(\n path: string,\n pick: (body: Record<string, unknown>) => T,\n init: RequestInit = {},\n ): Promise<OperatorResult<T>> {\n let response: Response\n try {\n response = await request(`${basePath}${path}`, {\n ...init,\n headers: { accept: 'application/json', ...(init.body ? { 'content-type': 'application/json' } : {}) },\n })\n } catch (error) {\n return transportFailure(error)\n }\n if (!response.ok) return failure(response)\n try {\n return { succeeded: true, value: pick(await response.json() as Record<string, unknown>) }\n } catch {\n return { succeeded: false, status: response.status, code: 'operator.invalid_response', error: 'The response was not the expected JSON', retryable: true }\n }\n }\n\n const query = (params: Record<string, string | number | undefined>) => {\n const search = new URLSearchParams()\n for (const [name, value] of Object.entries(params)) if (value !== undefined && value !== '') search.set(name, String(value))\n const text = search.toString()\n return text ? `?${text}` : ''\n }\n\n const client: OperatorClient = {\n describe: () => call('', (body) => body as unknown as { app: OperatorAppInfo; principal: OperatorPrincipalInfo }),\n listWorkspaces: () => call('/workspaces', (body) => body.workspaces as OperatorWorkspace[]),\n createWorkspace: (input) => call('/workspaces', (body) => body.workspace as OperatorWorkspace, {\n method: 'POST', body: JSON.stringify({ name: input.name }),\n }),\n getWorkspace: (workspaceId) => call(`/workspaces/${segment(workspaceId)}`, (body) => body.workspace as OperatorWorkspace),\n startTurn: (workspaceId, input) => call(`/workspaces/${segment(workspaceId)}/turns`, (body) => body.turn as OperatorTurn, {\n method: 'POST', body: JSON.stringify({ ...input, turnId: input.turnId ?? crypto.randomUUID() }),\n }),\n getTurn: (workspaceId, threadId, turnId, opts = {}) => call(\n `/workspaces/${segment(workspaceId)}/threads/${segment(threadId)}/turns/${segment(turnId)}${query({ wait: opts.waitSeconds })}`,\n (body) => body.turn as OperatorTurn,\n opts.signal ? { signal: opts.signal } : {},\n ),\n cancelTurn: (workspaceId, threadId, turnId, opts = {}) => call(\n `/workspaces/${segment(workspaceId)}/threads/${segment(threadId)}/turns/${segment(turnId)}/cancel${query({ wait: opts.waitSeconds })}`,\n (body) => body.turn as OperatorTurn,\n { method: 'POST', ...(opts.signal ? { signal: opts.signal } : {}) },\n ),\n async waitForTurn(workspaceId, threadId, turnId, opts) {\n const deadline = Date.now() + opts.timeoutMs\n const waitSeconds = opts.waitSeconds ?? 25\n let last: OperatorResult<OperatorTurn> | null = null\n while (true) {\n const remaining = Math.floor((deadline - Date.now()) / 1000)\n const started = Date.now()\n last = await client.getTurn(workspaceId, threadId, turnId, {\n waitSeconds: Math.max(0, Math.min(waitSeconds, remaining)),\n ...(opts.signal ? { signal: opts.signal } : {}),\n })\n if (!last.succeeded) {\n if (!last.retryable || Date.now() >= deadline || opts.signal?.aborted) return last\n await new Promise((resolve) => setTimeout(resolve, Math.min(5_000, Math.max(0, deadline - Date.now()))))\n continue\n }\n if (SETTLED.has(last.value.state) || last.value.approvals.length > 0) return last\n if (Date.now() >= deadline || opts.signal?.aborted) return last\n // A server that does not hold the read still gets a bounded request rate.\n if (Date.now() - started < 1_000) {\n await new Promise((resolve) => setTimeout(resolve, Math.min(2_000, Math.max(0, deadline - Date.now()))))\n }\n }\n },\n listThreads: (workspaceId, q = {}) => call(\n `/workspaces/${segment(workspaceId)}/threads${query({ cursor: q.cursor, limit: q.limit })}`,\n (body) => ({ threads: body.threads as OperatorThread[], nextCursor: (body.nextCursor as string | null) ?? null }),\n ),\n getThread: (workspaceId, threadId) => call(\n `/workspaces/${segment(workspaceId)}/threads/${segment(threadId)}`,\n (body) => ({ thread: body.thread as OperatorThread, latestTurn: (body.latestTurn as OperatorTurn | null) ?? null }),\n ),\n listApprovals: (workspaceId) => call(`/workspaces/${segment(workspaceId)}/approvals`, (body) => body.approvals as OperatorApproval[]),\n listJournal: (workspaceId, q = {}) => call(\n `/workspaces/${segment(workspaceId)}/journal${query({ days: q.days })}`,\n (body) => body.entries as OperatorJournalEntry[],\n ),\n listFiles: (workspaceId, q = {}) => call(\n `/workspaces/${segment(workspaceId)}/files${query({ prefix: q.prefix })}`,\n (body) => body.files as OperatorFileEntry[],\n ),\n readFile: (workspaceId, path) => call(\n `/workspaces/${segment(workspaceId)}/file${query({ path })}`,\n (body) => body.file as OperatorFile,\n ),\n async readAsset(workspaceId, assetId, init = {}) {\n let response: Response\n try {\n response = await request(`${basePath}/workspaces/${segment(workspaceId)}/assets/${segment(assetId)}`, init.signal ? { signal: init.signal } : {})\n } catch (error) {\n return transportFailure(error)\n }\n if (!response.ok) return failure(response)\n return { succeeded: true, value: response }\n },\n getScorecard: (workspaceId, q = {}) => call(\n `/workspaces/${segment(workspaceId)}/scorecard${query({ days: q.days })}`,\n (body) => body.scorecard as OperatorScorecard,\n ),\n }\n return client\n}\n"],"mappings":";;;;;AASO,IAAM,uBAAuB;AAC7B,IAAM,yBAAyB;AAG/B,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AAQ,WAAW,CAAC,QAAQ,MAAM,EAAE,KAAK,CAAC,CAAC;AAAA,MAC1D,CAAC,SAAS,KAAK;AAAA,IACjB;AAAA,IACA,MAAM,UAAU,aAAa,SAAS,OAAO,CAAC,GAAG;AAC/C,UAAI;AACJ,UAAI;AACF,mBAAW,MAAM,QAAQ,GAAG,QAAQ,eAAe,QAAQ,WAAW,CAAC,WAAW,QAAQ,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC,CAAC;AAAA,MAClJ,SAAS,OAAO;AACd,eAAO,iBAAiB,KAAK;AAAA,MAC/B;AACA,UAAI,CAAC,SAAS,GAAI,QAAO,QAAQ,QAAQ;AACzC,aAAO,EAAE,WAAW,MAAM,OAAO,SAAS;AAAA,IAC5C;AAAA,IACA,cAAc,CAAC,aAAa,IAAI,CAAC,MAAM;AAAA,MACrC,eAAe,QAAQ,WAAW,CAAC,aAAa,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAAA,MACvE,CAAC,SAAS,KAAK;AAAA,IACjB;AAAA,EACF;AACA,SAAO;AACT;","names":["segment"]}
@@ -1,12 +1,6 @@
1
1
  import {
2
2
  joinClasses
3
3
  } from "./chunk-L7MB2LLM.js";
4
- import {
5
- useWorkspacePrewarmHandle
6
- } from "./chunk-2HQP2CTA.js";
7
- import {
8
- filterCommandPaletteItems
9
- } from "./chunk-SJWIZT7B.js";
10
4
  import {
11
5
  AgentSessionControls,
12
6
  acceptRejectionReason,
@@ -14,11 +8,17 @@ import {
14
8
  isAcceptedFileType,
15
9
  renamePastedImages
16
10
  } from "./chunk-KHJE7JAG.js";
11
+ import {
12
+ useWorkspacePrewarmHandle
13
+ } from "./chunk-2HQP2CTA.js";
17
14
  import {
18
15
  OVERLAY_SHADOW,
19
16
  POPOVER_OPTION_FOCUS,
20
17
  PopoverSurface
21
18
  } from "./chunk-RO25WIVS.js";
19
+ import {
20
+ filterCommandPaletteItems
21
+ } from "./chunk-SJWIZT7B.js";
22
22
  import {
23
23
  ALLOWED_ATTACHMENT_SNIFFED_MIMES,
24
24
  ATTACHMENT_ACCEPT,
@@ -1853,4 +1853,4 @@ export {
1853
1853
  ComposerModeControls,
1854
1854
  EntryComposer
1855
1855
  };
1856
- //# sourceMappingURL=chunk-ZZTPTCMY.js.map
1856
+ //# sourceMappingURL=chunk-XJXAULNI.js.map
@@ -1,14 +1,14 @@
1
1
  // src/design-canvas-react/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var DesignCanvasLazy = lazy(
4
- () => import("./DesignCanvasEditor-KH4BDUE3.js").then((m) => ({ default: m.DesignCanvasEditor }))
4
+ () => import("./DesignCanvasEditor-OG4QY5WJ.js").then((m) => ({ default: m.DesignCanvasEditor }))
5
5
  );
6
6
  var DesignCanvasChromeLazy = lazy(
7
- () => import("./DesignCanvas-CFNV5JGQ.js").then((m) => ({ default: m.DesignCanvas }))
7
+ () => import("./DesignCanvas-3DGZQOD7.js").then((m) => ({ default: m.DesignCanvas }))
8
8
  );
9
9
 
10
10
  export {
11
11
  DesignCanvasLazy,
12
12
  DesignCanvasChromeLazy
13
13
  };
14
- //# sourceMappingURL=chunk-WTNW4NFS.js.map
14
+ //# sourceMappingURL=chunk-ZD2AUFIT.js.map
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ checkDeployedApp
4
+ } from "../chunk-53ZX7XZY.js";
5
+ import "../chunk-N425HGJW.js";
6
+ import {
7
+ invokedAsScript
8
+ } from "../chunk-C3CAYGGQ.js";
9
+ import "../chunk-RN4WPTBH.js";
10
+
11
+ // src/conformance/cli.ts
12
+ var VALUE_FLAGS = /* @__PURE__ */ new Set(["--app-url", "--app", "--auth", "--email", "--password", "--workspace", "--computer", "--file-dir", "--turn-ms", "--expect-revision"]);
13
+ function parseConformanceArgs(argv, env = process.env) {
14
+ const flags = /* @__PURE__ */ new Map();
15
+ for (let index = 0; index < argv.length; index += 1) {
16
+ const [flag = "", inline] = argv[index].split(/=(.*)/s, 2);
17
+ if (!VALUE_FLAGS.has(flag)) throw new Error(`unknown option ${argv[index]}`);
18
+ const value = inline ?? argv[++index];
19
+ if (value === void 0 || value === "") throw new Error(`${flag} needs a value`);
20
+ flags.set(flag, value);
21
+ }
22
+ const url = flags.get("--app-url");
23
+ if (!url) throw new Error("--app-url is required");
24
+ let origin;
25
+ try {
26
+ origin = new URL(url);
27
+ } catch {
28
+ throw new Error(`--app-url is not a URL: ${url}`);
29
+ }
30
+ if (origin.protocol !== "https:") throw new Error("--app-url must be an https origin");
31
+ const mode = flags.get("--auth") ?? "password";
32
+ if (mode !== "password" && mode !== "sso") throw new Error("--auth is password or sso");
33
+ const computer = flags.get("--computer") ?? "digest";
34
+ if (computer !== "digest" && computer !== "file") throw new Error("--computer is digest or file");
35
+ const turnMs = Number(flags.get("--turn-ms") ?? 3e5);
36
+ if (!Number.isFinite(turnMs) || turnMs < 1e3) throw new Error("--turn-ms is a number of milliseconds, at least 1000");
37
+ const email = flags.get("--email") ?? env.CONFORMANCE_EMAIL?.trim();
38
+ const password = flags.get("--password") ?? env.CONFORMANCE_PASSWORD;
39
+ const operatorKey = env.CONFORMANCE_OPERATOR_KEY?.trim();
40
+ return {
41
+ app: flags.get("--app") ?? origin.hostname.split(".")[0],
42
+ origin: origin.origin,
43
+ ...email && password ? { member: { mode, email, password } } : {},
44
+ ...operatorKey ? { operatorKey } : {},
45
+ ...flags.has("--workspace") ? { workspace: flags.get("--workspace") } : {},
46
+ computer,
47
+ ...flags.has("--file-dir") ? { fileDir: flags.get("--file-dir") } : {},
48
+ turnMs,
49
+ ...flags.has("--expect-revision") ? { expectRevision: flags.get("--expect-revision") } : {}
50
+ };
51
+ }
52
+ async function main() {
53
+ let options;
54
+ try {
55
+ options = parseConformanceArgs(process.argv.slice(2));
56
+ } catch (error) {
57
+ console.error(`agent-app-conformance: ${error instanceof Error ? error.message : String(error)}`);
58
+ return 2;
59
+ }
60
+ const results = await checkDeployedApp({ ...options, onResult: (result) => process.stdout.write(`${JSON.stringify(result)}
61
+ `) });
62
+ return results.every((result) => result.status === "pass") ? 0 : 1;
63
+ }
64
+ if (invokedAsScript(import.meta.url, process.argv[1])) {
65
+ main().then((code) => process.stdout.write("", () => process.exit(code)));
66
+ }
67
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/conformance/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * `agent-app-conformance` — the basics every deployed agent app must do, checked against its production origin:\n * sign in, read the served revision, answer a plain turn, and answer a turn only the workspace computer can.\n * It prints one JSON line per check as the check ends: app, url, check, status, ms, and the cause of a failure.\n *\n * agent-app-conformance --app-url https://gtm.tangle.tools --auth password --workspace \"GTM release canary\"\n *\n * The member comes from the environment so it never reaches a process listing:\n * CONFORMANCE_EMAIL, CONFORMANCE_PASSWORD the canary member (--email / --password are accepted but visible to `ps`)\n * CONFORMANCE_OPERATOR_KEY optional: an operator key with operator:read and operator:run;\n * without one the signed-in member mints an hour-long key and revokes it\n *\n * Options:\n * --app-url <origin> required\n * --app <label> names the app in each line (default: the origin's first host label)\n * --auth password|sso how the member signs in (default password); sso goes through Tangle Platform\n * --workspace <id|name> the canary or smoke workspace the turns run in (default: the key's only workspace)\n * --computer digest|file digest: hash a fresh nonce on the computer; file: the computer saves a file the app serves back\n * --file-dir <dir> where the file proof is saved (default proof)\n * --turn-ms <ms> the budget of each turn, a cold box included (default 300000)\n * --expect-revision <sha> fail unless the served revision matches\n *\n * Exits 0 when every check passes, 1 when any fails or is blocked, 2 on a usage error.\n */\nimport { invokedAsScript } from '../signoff/invoked-as-script.js'\nimport { checkDeployedApp, type ConformanceOptions } from './run.js'\nimport type { ComputerProof } from './turns.js'\nimport type { SignInMode } from './session.js'\n\nconst VALUE_FLAGS = new Set(['--app-url', '--app', '--auth', '--email', '--password', '--workspace', '--computer', '--file-dir', '--turn-ms', '--expect-revision'])\n\nfunction parseConformanceArgs(argv: readonly string[], env: NodeJS.ProcessEnv = process.env): ConformanceOptions {\n const flags = new Map<string, string>()\n for (let index = 0; index < argv.length; index += 1) {\n const [flag = '', inline] = argv[index]!.split(/=(.*)/s, 2)\n if (!VALUE_FLAGS.has(flag)) throw new Error(`unknown option ${argv[index]}`)\n const value = inline ?? argv[++index]\n if (value === undefined || value === '') throw new Error(`${flag} needs a value`)\n flags.set(flag, value)\n }\n const url = flags.get('--app-url')\n if (!url) throw new Error('--app-url is required')\n let origin: URL\n try { origin = new URL(url) } catch { throw new Error(`--app-url is not a URL: ${url}`) }\n if (origin.protocol !== 'https:') throw new Error('--app-url must be an https origin')\n const mode = flags.get('--auth') ?? 'password'\n if (mode !== 'password' && mode !== 'sso') throw new Error('--auth is password or sso')\n const computer = flags.get('--computer') ?? 'digest'\n if (computer !== 'digest' && computer !== 'file') throw new Error('--computer is digest or file')\n const turnMs = Number(flags.get('--turn-ms') ?? 300_000)\n if (!Number.isFinite(turnMs) || turnMs < 1_000) throw new Error('--turn-ms is a number of milliseconds, at least 1000')\n const email = flags.get('--email') ?? env.CONFORMANCE_EMAIL?.trim()\n const password = flags.get('--password') ?? env.CONFORMANCE_PASSWORD\n const operatorKey = env.CONFORMANCE_OPERATOR_KEY?.trim()\n return {\n app: flags.get('--app') ?? origin.hostname.split('.')[0]!,\n origin: origin.origin,\n ...(email && password ? { member: { mode: mode as SignInMode, email, password } } : {}),\n ...(operatorKey ? { operatorKey } : {}),\n ...(flags.has('--workspace') ? { workspace: flags.get('--workspace')! } : {}),\n computer: computer as ComputerProof,\n ...(flags.has('--file-dir') ? { fileDir: flags.get('--file-dir')! } : {}),\n turnMs,\n ...(flags.has('--expect-revision') ? { expectRevision: flags.get('--expect-revision')! } : {}),\n }\n}\n\nasync function main(): Promise<number> {\n let options: ConformanceOptions\n try {\n options = parseConformanceArgs(process.argv.slice(2))\n } catch (error) {\n console.error(`agent-app-conformance: ${error instanceof Error ? error.message : String(error)}`)\n return 2\n }\n const results = await checkDeployedApp({ ...options, onResult: result => process.stdout.write(`${JSON.stringify(result)}\\n`) })\n return results.every(result => result.status === 'pass') ? 0 : 1\n}\n\nif (invokedAsScript(import.meta.url, process.argv[1])) {\n main().then(code => process.stdout.write('', () => process.exit(code)))\n}\n"],"mappings":";;;;;;;;;;;AA8BA,IAAM,cAAc,oBAAI,IAAI,CAAC,aAAa,SAAS,UAAU,WAAW,cAAc,eAAe,cAAc,cAAc,aAAa,mBAAmB,CAAC;AAElK,SAAS,qBAAqB,MAAyB,MAAyB,QAAQ,KAAyB;AAC/G,QAAM,QAAQ,oBAAI,IAAoB;AACtC,WAAS,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS,GAAG;AACnD,UAAM,CAAC,OAAO,IAAI,MAAM,IAAI,KAAK,KAAK,EAAG,MAAM,UAAU,CAAC;AAC1D,QAAI,CAAC,YAAY,IAAI,IAAI,EAAG,OAAM,IAAI,MAAM,kBAAkB,KAAK,KAAK,CAAC,EAAE;AAC3E,UAAM,QAAQ,UAAU,KAAK,EAAE,KAAK;AACpC,QAAI,UAAU,UAAa,UAAU,GAAI,OAAM,IAAI,MAAM,GAAG,IAAI,gBAAgB;AAChF,UAAM,IAAI,MAAM,KAAK;AAAA,EACvB;AACA,QAAM,MAAM,MAAM,IAAI,WAAW;AACjC,MAAI,CAAC,IAAK,OAAM,IAAI,MAAM,uBAAuB;AACjD,MAAI;AACJ,MAAI;AAAE,aAAS,IAAI,IAAI,GAAG;AAAA,EAAE,QAAQ;AAAE,UAAM,IAAI,MAAM,2BAA2B,GAAG,EAAE;AAAA,EAAE;AACxF,MAAI,OAAO,aAAa,SAAU,OAAM,IAAI,MAAM,mCAAmC;AACrF,QAAM,OAAO,MAAM,IAAI,QAAQ,KAAK;AACpC,MAAI,SAAS,cAAc,SAAS,MAAO,OAAM,IAAI,MAAM,2BAA2B;AACtF,QAAM,WAAW,MAAM,IAAI,YAAY,KAAK;AAC5C,MAAI,aAAa,YAAY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I,EAAE,CAAC;AAC9H,SAAO,QAAQ,MAAM,YAAU,OAAO,WAAW,MAAM,IAAI,IAAI;AACjE;AAEA,IAAI,gBAAgB,YAAY,KAAK,QAAQ,KAAK,CAAC,CAAC,GAAG;AACrD,OAAK,EAAE,KAAK,UAAQ,QAAQ,OAAO,MAAM,IAAI,MAAM,QAAQ,KAAK,IAAI,CAAC,CAAC;AACxE;","names":[]}
@@ -0,0 +1,3 @@
1
+ export { checkDeployedApp, type CheckName, type CheckResult, type ConformanceOptions } from './run.js';
2
+ export type { SignInMode } from './session.js';
3
+ export type { ComputerProof } from './turns.js';
@@ -0,0 +1,9 @@
1
+ import {
2
+ checkDeployedApp
3
+ } from "../chunk-53ZX7XZY.js";
4
+ import "../chunk-N425HGJW.js";
5
+ import "../chunk-RN4WPTBH.js";
6
+ export {
7
+ checkDeployedApp
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The served revision, read the way an operator reads it: from the app's own `GET /api/health` body, or from the
3
+ * `x-<app>-revision` / `x-<app>-version` header the app puts on its responses. An app that serves neither cannot
4
+ * say what it is running, so a release cannot be told from the one before it.
5
+ */
6
+ /**
7
+ * Reads the revision, or throws a Failure naming every place it looked. `source` says where it was read, e.g.
8
+ * `GET /api/health` or `GET / x-creative-revision`.
9
+ */
10
+ export declare function readRevision(origin: string, expect?: string): Promise<{
11
+ revision: string;
12
+ source: string;
13
+ }>;
@@ -0,0 +1,48 @@
1
+ import { type SignInMode } from './session.js';
2
+ import { type ComputerProof } from './turns.js';
3
+ export type CheckName = 'sign-in' | 'revision' | 'operator-access' | 'plain-turn' | 'computer-turn' | 'key-revoke';
4
+ /**
5
+ * One check's verdict. `blocked` means an earlier check it depends on failed, so nothing was measured; a blocked
6
+ * check fails the run like a failed one, and its cause names the check that blocked it.
7
+ */
8
+ export interface CheckResult {
9
+ /** When the check started, ISO 8601. */
10
+ at: string;
11
+ app: string;
12
+ url: string;
13
+ check: CheckName;
14
+ status: 'pass' | 'fail' | 'blocked';
15
+ ms: number;
16
+ /** Why a failed or blocked check is not a pass. */
17
+ cause?: string;
18
+ /** What a passing check observed: the revision read, the thread a turn ran in. */
19
+ detail?: string;
20
+ }
21
+ export interface ConformanceOptions {
22
+ /** A label for the result lines, e.g. `gtm`. */
23
+ app: string;
24
+ /** The deployed origin, e.g. `https://gtm.tangle.tools`. */
25
+ origin: string;
26
+ /** The member that signs in. Required: sign-in is the first thing a customer does. */
27
+ member?: {
28
+ mode: SignInMode;
29
+ email: string;
30
+ password: string;
31
+ };
32
+ /** A key that already has `operator:read` and `operator:run`; without one, the signed-in member mints a one-hour key. */
33
+ operatorKey?: string;
34
+ /** Id or exact name of the workspace the turns run in: the app's canary or smoke workspace, never a customer's. */
35
+ workspace?: string;
36
+ /** `digest` hashes a fresh nonce on the workspace computer; `file` has the computer save a file the app serves back. */
37
+ computer?: ComputerProof;
38
+ /** Where the `file` proof is saved, relative to the workspace root. */
39
+ fileDir?: string;
40
+ /** The budget of each turn, a cold box included. */
41
+ turnMs?: number;
42
+ /** Fail unless the served revision starts with, or is a prefix of, this. */
43
+ expectRevision?: string;
44
+ /** Called with each result as it lands. */
45
+ onResult?(result: CheckResult): void;
46
+ }
47
+ /** Runs the checks against one deployed app and returns every result, in the order they ran. */
48
+ export declare function checkDeployedApp(options: ConformanceOptions): Promise<CheckResult[]>;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Sign-in for the conformance runner: the two ways a member reaches an agent app, and one question both answer,
3
+ * "does the app accept this session?". Nothing here is specific to an app; a product whose sign-in differs
4
+ * fails the check with the status it answered.
5
+ */
6
+ export type SignInMode = 'password' | 'sso';
7
+ /** A check failed for a reason worth reporting; its message is the cause. */
8
+ export declare class Failure extends Error {
9
+ }
10
+ export interface MemberSession {
11
+ origin: string;
12
+ /** A request to the app as the signed-in member; `path` is root-relative. */
13
+ fetch(path: string, init?: RequestInit): Promise<Response>;
14
+ }
15
+ /** Signs in and proves the app accepts the session; the detail names the proof. */
16
+ export declare function signIn(input: {
17
+ origin: string;
18
+ mode: SignInMode;
19
+ email: string;
20
+ password: string;
21
+ }): Promise<{
22
+ session: MemberSession;
23
+ detail: string;
24
+ }>;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The conformance turns, run through the operator API every agent app mounts the same way
3
+ * (docs/operator-api.md), so one runner drives every product. The verdict is the settled turn the app stored.
4
+ *
5
+ * plain a reply with text;
6
+ * computer a turn only the workspace computer can answer: either the digest of a fresh nonce, which the model
7
+ * cannot know without running the command, or a file the computer saves that the app then serves back.
8
+ */
9
+ import { type OperatorClient } from '../operator/client.js';
10
+ import type { OperatorWorkspace } from '../operator/contract.js';
11
+ import { type MemberSession } from './session.js';
12
+ export type ComputerProof = 'digest' | 'file';
13
+ export interface OperatorAccess {
14
+ client: OperatorClient;
15
+ workspace: OperatorWorkspace;
16
+ /** The app's own account of what the key may do. */
17
+ scopes: readonly string[];
18
+ }
19
+ /** An expiring key for the signed-in member, through the route every app's API access page uses. */
20
+ export declare function mintKey(session: MemberSession): Promise<{
21
+ id: string;
22
+ key: string;
23
+ }>;
24
+ /** Revokes a key this run created. Apps accept the id in the path, or in the body of the collection route. */
25
+ export declare function revokeKey(session: MemberSession, id: string): Promise<void>;
26
+ /**
27
+ * Opens the operator API with `key` and picks the workspace the turns run in: `workspace` is its id or exact name,
28
+ * and omitted, the key must reach exactly one. `requestMs` bounds any one request, a held turn read included.
29
+ */
30
+ export declare function openOperatorAccess({ origin, key, workspace, requestMs }: {
31
+ origin: string;
32
+ key: string;
33
+ workspace: string | undefined;
34
+ requestMs: number;
35
+ }): Promise<OperatorAccess>;
36
+ export declare function plainTurn(access: OperatorAccess, turnMs: number): Promise<string>;
37
+ export declare function computerTurn(access: OperatorAccess, turnMs: number, proof: ComputerProof, fileDir: string): Promise<string>;
@@ -1,3 +1,9 @@
1
+ import {
2
+ isRecord,
3
+ objectSchema,
4
+ requireEnum,
5
+ requireMcpString
6
+ } from "../chunk-PEJ5OP5B.js";
1
7
  import {
2
8
  CHANNEL_PRESETS,
3
9
  EXPORT_PRESETS,
@@ -31,13 +37,7 @@ import {
31
37
  validateSceneOperations,
32
38
  validateSlotValue
33
39
  } from "../chunk-VCG4DQC4.js";
34
- import {
35
- isRecord,
36
- objectSchema,
37
- requireEnum,
38
- requireMcpString
39
- } from "../chunk-PEJ5OP5B.js";
40
- import "../chunk-ZNE4NYU7.js";
40
+ import "../chunk-DPTNKH22.js";
41
41
  import "../chunk-RN4WPTBH.js";
42
42
  import "../chunk-ALIWB2P3.js";
43
43
  import {
@@ -44,7 +44,7 @@ import {
44
44
  bleedAwareExportBounds,
45
45
  scaleForPreset
46
46
  } from "../chunk-VCG4DQC4.js";
47
- import "../chunk-ZNE4NYU7.js";
47
+ import "../chunk-DPTNKH22.js";
48
48
  import "../chunk-RN4WPTBH.js";
49
49
  import "../chunk-ALIWB2P3.js";
50
50
  import "../chunk-TXD5HXLE.js";
@@ -40,6 +40,10 @@ import {
40
40
  formatRulerLabel,
41
41
  selectTickStep
42
42
  } from "../chunk-I4CFBLSJ.js";
43
+ import {
44
+ DesignCanvasChromeLazy,
45
+ DesignCanvasLazy
46
+ } from "../chunk-ZD2AUFIT.js";
43
47
  import {
44
48
  LockGlyph
45
49
  } from "../chunk-P4RRC4AO.js";
@@ -90,11 +94,7 @@ import {
90
94
  bleedAwareExportBounds,
91
95
  scaleForPreset
92
96
  } from "../chunk-VCG4DQC4.js";
93
- import {
94
- DesignCanvasChromeLazy,
95
- DesignCanvasLazy
96
- } from "../chunk-WTNW4NFS.js";
97
- import "../chunk-ZNE4NYU7.js";
97
+ import "../chunk-DPTNKH22.js";
98
98
  import "../chunk-RN4WPTBH.js";
99
99
  import "../chunk-ALIWB2P3.js";
100
100
  import "../chunk-TXD5HXLE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-WTNW4NFS.js";
4
+ } from "../chunk-ZD2AUFIT.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy