@cmdop/sdk 1.1.0 → 3.0.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.
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/errors.ts","../src/config.ts","../src/locate.ts","../src/_proto/cmdop/core/v1/common_pb.ts","../src/_proto/cmdop/core/v1/fleets_pb.ts","../src/_proto/cmdop/core/v1/keys_pb.ts","../src/_proto/cmdop/core/v1/machines_pb.ts","../src/_proto/cmdop/core/v1/schedules_pb.ts","../src/_proto/cmdop/core/v1/skills_pb.ts","../src/_proto/cmdop/core/v1/tunnels_pb.ts","../src/_proto/cmdop/core/v1/envelope_pb.ts","../src/resources/base.ts","../src/resources/fleets.ts","../src/resources/keys.ts","../src/resources/machines.ts","../src/resources/schedules.ts","../src/resources/skills.ts","../src/resources/tunnels.ts","../src/transport.ts","../src/streaming.ts","../src/client.ts","../src/index.ts","../src/types.ts"],"names":["AgentStreamError","AuthError","CmdopError","ConflictError","ConnectionError","NotFoundError","PermissionError","RateLimitError","ServerError","ValidationError","dirname","fileURLToPath","resolve","join","existsSync","chmodSync","messageDesc","fileDesc","create","spawn","sizeDelimitedDecodeStream","sizeDelimitedEncode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,cAAA,GAAA,EAAA;AAAA,QAAA,CAAA,cAAA,EAAA;AAAA,EAAA,gBAAA,EAAA,MAAAA,wBAAA;AAAA,EAAA,SAAA,EAAA,MAAAC,iBAAA;AAAA,EAAA,UAAA,EAAA,MAAAC,kBAAA;AAAA,EAAA,aAAA,EAAA,MAAAC,qBAAA;AAAA,EAAA,eAAA,EAAA,MAAAC,uBAAA;AAAA,EAAA,aAAA,EAAA,MAAAC,qBAAA;AAAA,EAAA,eAAA,EAAA,MAAAC,uBAAA;AAAA,EAAA,cAAA,EAAA,MAAAC,sBAAA;AAAA,EAAA,WAAA,EAAA,MAAAC,mBAAA;AAAA,EAAA,eAAA,EAAA,MAAAC,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AA,EACA,IAAI,SAAA,GAA+B;AACjC,IAAA,OAAQ,IAAA,CAAK,UAAA,KAAe,IAAI,iBAAA,CAAkB,IAAI,CAAA;AAAA,EACxD;AAAA,EAEA,KAAA;AAAA,EACA,IAAI,IAAA,GAAqB;AACvB,IAAA,OAAQ,IAAA,CAAK,KAAA,KAAU,IAAI,YAAA,CAAa,IAAI,CAAA;AAAA,EAC9C;AAAA,EAEA,OAAA;AAAA,EACA,IAAI,MAAA,GAAyB;AAC3B,IAAA,OAAQ,IAAA,CAAK,OAAA,KAAY,IAAI,cAAA,CAAe,IAAI,CAAA;AAAA,EAClD;AAAA;AAAA,EAGA,MAAM,KAAA,GAAuB;AAC3B,IAAA,MAAM,IAAA,CAAK,GAAG,KAAA,EAAM;AAAA,EACtB;AAAA,EAEA,OAAO,MAAA,CAAO,YAAY,CAAA,GAAmB;AAC3C,IAAA,MAAM,KAAK,KAAA,EAAM;AAAA,EACnB;AACF;;;AC5DA,WAAA,EAAA;;;ACzBA,IAAA,aAAA,GAAA","file":"index.cjs","sourcesContent":["/**\n * Error hierarchy + `ErrorInfo.code` -> typed error mapper.\n *\n * Mirror of the Python `CmdopError` tree. The Go core emits a terminal `ERROR`\n * frame carrying an `ErrorInfo{code, message}`; {@link mapCoreError} maps that\n * `code` to the right typed exception. Codes are owned by the core\n * (`internal/core/errmap.go`): `auth / permission / not_found / conflict /\n * validation / rate_limit / server / connection` (+ catch-alls).\n */\n\nexport class CmdopError extends Error {\n readonly status?: number;\n readonly code?: string;\n readonly body?: unknown;\n\n constructor(message: string, status?: number, code?: string, body?: unknown) {\n super(message);\n this.name = new.target.name;\n this.status = status;\n this.code = code;\n this.body = body;\n // Restore prototype chain for instanceof across transpile targets.\n Object.setPrototypeOf(this, new.target.prototype);\n }\n}\n\nexport class AuthError extends CmdopError {}\nexport class PermissionError extends CmdopError {}\nexport class NotFoundError extends CmdopError {}\nexport class ConflictError extends CmdopError {}\nexport class ValidationError extends CmdopError {}\n\nexport class RateLimitError extends CmdopError {\n readonly retryAfter?: number;\n constructor(message: string, code?: string, retryAfter?: number, body?: unknown) {\n super(message, undefined, code, body);\n this.retryAfter = retryAfter;\n }\n}\n\nexport class ServerError extends CmdopError {}\nexport class ConnectionError extends CmdopError {}\n\n/** An `error` outcome from `machines.ask` (machine_offline/timeout/internal). */\nexport class AgentStreamError extends CmdopError {\n constructor(code: string, message: string) {\n super(message, undefined, code);\n }\n}\n\ntype CmdopErrorCtor = new (\n message: string,\n status?: number,\n code?: string,\n body?: unknown,\n) => CmdopError;\n\nconst CODE_MAP: Record<string, CmdopErrorCtor> = {\n auth: AuthError,\n permission: PermissionError,\n not_found: NotFoundError,\n conflict: ConflictError,\n validation: ValidationError,\n server: ServerError,\n connection: ConnectionError,\n};\n\n/** Map a core `ErrorInfo{code, message}` to a typed {@link CmdopError}. */\nexport function mapCoreError(code: string, message: string): CmdopError {\n if (code === \"rate_limit\") {\n return new RateLimitError(message, code);\n }\n const Ctor = CODE_MAP[code];\n if (Ctor) {\n return new Ctor(message, undefined, code);\n }\n // internal / unknown_op / unsupported / anything new -> base error.\n return new CmdopError(message, undefined, code);\n}\n","/**\n * Client configuration + env-var resolution.\n *\n * Precedence for every field: explicit > env > default — the exact mirror of the\n * Python `ClientConfig.resolve()`. The resolved credentials + base URLs are passed\n * to the spawned `cmdop-core` over env (never a port):\n * - relay plane: `CMDOP_TOKEN` / `CMDOP_BASE_URL` (machines, fleets, …)\n * - Django platform plane: `CMDOP_API_KEY` / `CMDOP_API_BASE_URL` (skills)\n * The two credentials are SEPARATE and must not be conflated.\n */\n\nexport const DEFAULT_BASE_URL = \"https://cloud.cmdop.com\";\nexport const DEFAULT_API_BASE_URL = \"https://api.cmdop.com\";\nexport const DEFAULT_TIMEOUT_MS = 30_000;\n\nexport interface ClientConfig {\n token: string;\n baseUrl: string;\n fleetId?: string;\n timeoutMs: number;\n /** Django platform plane (skills) — UserAPIKey / X-Api-Key. Separate credential. */\n apiKey?: string;\n /** Django platform plane base URL — separate from the relay `baseUrl`. */\n apiBaseUrl: string;\n}\n\n/**\n * Resolve a {@link ClientConfig} from explicit options, environment, then defaults.\n *\n * Relay token sources (token wins if both set): `CMDOP_TOKEN`, then `CMDOP_API_KEY`.\n * Throws if no token can be resolved. The skills plane reads `apiKey` from\n * `CMDOP_API_KEY` independently.\n */\nexport function resolveConfig(opts: Partial<ClientConfig> = {}): ClientConfig {\n const env = typeof process !== \"undefined\" && process.env ? process.env : {};\n\n const token = opts.token ?? env.CMDOP_TOKEN ?? env.CMDOP_API_KEY;\n if (!token) {\n throw new Error(\n \"No token. Pass token or set CMDOP_TOKEN (or CMDOP_API_KEY).\",\n );\n }\n\n const baseUrl = stripTrailingSlash(\n opts.baseUrl ?? env.CMDOP_BASE_URL ?? DEFAULT_BASE_URL,\n );\n\n const fleetId = opts.fleetId ?? env.CMDOP_FLEET_ID ?? undefined;\n\n const timeoutMs =\n opts.timeoutMs ??\n (env.CMDOP_TIMEOUT_MS ? Number(env.CMDOP_TIMEOUT_MS) : DEFAULT_TIMEOUT_MS);\n\n const apiKey = opts.apiKey ?? env.CMDOP_API_KEY ?? undefined;\n\n const apiBaseUrl = stripTrailingSlash(\n opts.apiBaseUrl ?? env.CMDOP_API_BASE_URL ?? DEFAULT_API_BASE_URL,\n );\n\n return { token, baseUrl, fleetId, timeoutMs, apiKey, apiBaseUrl };\n}\n\nfunction stripTrailingSlash(url: string): string {\n return url.endsWith(\"/\") ? url.slice(0, -1) : url;\n}\n","/**\n * Locate the `cmdop-core` binary the client spawns.\n *\n * Single fat-package model (report 01 §5): all 5 prebuilt binaries are baked\n * into `@cmdop/sdk/bin/cmdop-core-<os>-<arch>[.exe]`. There are no per-platform\n * sub-packages and no `optionalDependencies` — the runtime resolver below picks\n * the host's binary from the local `bin/` dir, so we are structurally immune to\n * npm's optionalDependencies lockfile-pruning bug class (#4828).\n *\n * Resolution order:\n * 1. `CMDOP_CORE_BINARY` env override (dev / local tests / offline escape\n * hatch — point it at a `go build`'d binary).\n * 2. `bin/cmdop-core-${process.platform}-${process.arch}${.exe}` resolved\n * relative to THIS package's root (found robustly for ESM + CJS).\n *\n * The binary is `chmod`'d +x defensively (npm/pnpm/umask or a CI artifact\n * upload can strip the exec bit) and the Windows `.exe` suffix is honoured.\n */\n\nimport { chmodSync, existsSync } from \"node:fs\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\n/**\n * Supported `${process.platform}-${process.arch}` keys, kept in lockstep with\n * `core/scripts/stage_packages.py` TARGETS. process.arch is already x64/arm64\n * and process.platform is already darwin/linux/win32, so the key maps 1:1 to a\n * baked binary name (`cmdop-core-<key>`).\n */\nconst SUPPORTED_PLATFORMS = new Set([\n \"darwin-arm64\",\n \"darwin-x64\",\n \"linux-x64\",\n \"linux-arm64\",\n \"win32-x64\",\n]);\n\nfunction binaryName(): string {\n const key = `${process.platform}-${process.arch}`;\n const exe = process.platform === \"win32\" ? \".exe\" : \"\";\n return `cmdop-core-${key}${exe}`;\n}\n\n/**\n * The directory of THIS module, resolved for both ESM (`import.meta.url`) and\n * CJS (`__dirname`). Anchoring to the module file — never `process.cwd()` —\n * means the binary is found wherever the package is installed, including\n * workspaces and symlinked installs.\n */\nfunction moduleDir(): string {\n // CJS bundle: tsup emits `__dirname`. ESM bundle: reconstruct from the URL.\n // Guard `import.meta` access so the CJS build (where it is undefined) does\n // not throw — tsup rewrites one branch per format, but be defensive.\n try {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const metaUrl = (import.meta as any)?.url as string | undefined;\n if (metaUrl) return dirname(fileURLToPath(metaUrl));\n } catch {\n /* not ESM — fall through to __dirname */\n }\n if (typeof __dirname !== \"undefined\") return __dirname;\n // Last resort: resolve relative to cwd (should never be reached in practice).\n return resolve(\".\");\n}\n\n/**\n * Find the package root (the dir containing `bin/`). The built bundle lives in\n * `dist/`, so the package root is one level up; but be robust to either layout\n * by checking `./bin` and `../bin` relative to the module dir.\n */\nfunction packageBinDir(): string {\n const here = moduleDir();\n const candidates = [\n join(here, \"bin\"), // module sits at package root (unbundled / tests)\n join(here, \"..\", \"bin\"), // module sits in dist/ (the published bundle)\n join(here, \"..\", \"..\", \"bin\"),\n ];\n for (const c of candidates) {\n if (existsSync(c)) return c;\n }\n // Default to the dist/.. layout even if the dir does not yet exist, so the\n // error below names a sensible path.\n return join(here, \"..\", \"bin\");\n}\n\nexport function locateBinary(): string {\n const override = process.env.CMDOP_CORE_BINARY;\n if (override) {\n if (!existsSync(override)) {\n throw new Error(`CMDOP_CORE_BINARY points at a missing file: ${override}`);\n }\n makeExecutable(override);\n return override;\n }\n\n const key = `${process.platform}-${process.arch}`;\n if (!SUPPORTED_PLATFORMS.has(key)) {\n throw new Error(\n `cmdop-core has no prebuilt binary for ${key}. ` +\n \"Set CMDOP_CORE_BINARY to a `go build -o /path/cmdop-core ./cmd/cmdop-core` output.\",\n );\n }\n\n const binPath = join(packageBinDir(), binaryName());\n if (!existsSync(binPath)) {\n throw new Error(\n `cmdop-core binary not found at ${binPath}. ` +\n \"Reinstall @cmdop/sdk (the 5 baked binaries ship in its bin/ dir), \" +\n \"or set CMDOP_CORE_BINARY to a local `go build` output.\",\n );\n }\n makeExecutable(binPath);\n return binPath;\n}\n\nfunction makeExecutable(path: string): void {\n if (process.platform === \"win32\") return;\n try {\n chmodSync(path, 0o755);\n } catch {\n /* read-only store; the bit may already be set */\n }\n}\n","// Shared scalars + enums for the cmdop-core stdio contract.\n//\n// RFC3339 datetimes are carried as `string` (the relay stamps `...Z`,\n// report 01 §2). UUIDs are carried as `string`. Nullable fields become\n// `optional`.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/common.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/common.proto.\n */\nexport const file_cmdop_core_v1_common: GenFile = /*@__PURE__*/\n fileDesc(\"ChpjbWRvcC9jb3JlL3YxL2NvbW1vbi5wcm90bxINY21kb3AuY29yZS52MSIHCgVFbXB0eSIuCgpPZmZzZXRQYWdlEg4KBm9mZnNldBgBIAEoBRIQCghwZXJfcGFnZRgCIAEoBSqHAQoOTWZhUmVxdWlyZW1lbnQSHwobTUZBX1JFUVVJUkVNRU5UX1VOU1BFQ0lGSUVEEAASGAoUTUZBX1JFUVVJUkVNRU5UX05PTkUQARIcChhNRkFfUkVRVUlSRU1FTlRfT1BUSU9OQUwQAhIcChhNRkFfUkVRVUlSRU1FTlRfUkVRVUlSRUQQAyqTAQoSU2NoZWR1bGVUYXJnZXRLaW5kEiQKIFNDSEVEVUxFX1RBUkdFVF9LSU5EX1VOU1BFQ0lGSUVEEAASKwonU0NIRURVTEVfVEFSR0VUX0tJTkRfQUxMX0ZMRUVUX01BQ0hJTkVTEAESKgomU0NIRURVTEVfVEFSR0VUX0tJTkRfU1BFQ0lGSUNfTUFDSElORVMQAiq7AQoRU2NoZWR1bGVSdW5TdGF0dXMSIwofU0NIRURVTEVfUlVOX1NUQVRVU19VTlNQRUNJRklFRBAAEh8KG1NDSEVEVUxFX1JVTl9TVEFUVVNfUEVORElORxABEh8KG1NDSEVEVUxFX1JVTl9TVEFUVVNfUlVOTklORxACEh8KG1NDSEVEVUxFX1JVTl9TVEFUVVNfU1VDQ0VTUxADEh4KGlNDSEVEVUxFX1JVTl9TVEFUVVNfRkFJTEVEEARCtAEKEWNvbS5jbWRvcC5jb3JlLnYxQgtDb21tb25Qcm90b1ABWjxnaXRodWIuY29tL2NtZG9wL2NtZG9wL2dvL3BrZy9jb3JlcHJvdG8vY21kb3AvY29yZS92MTtjb3JldjGiAgNDQ1iqAg1DbWRvcC5Db3JlLlYxygINQ21kb3BcQ29yZVxWMeICGUNtZG9wXENvcmVcVjFcR1BCTWV0YWRhdGHqAg9DbWRvcDo6Q29yZTo6VjFiBnByb3RvMw\");\n\n/**\n * Empty is the body for every REST op that returns 204 No Content\n * (report 01: machines.disable, fleets.disable, fleet-machines.detach,\n * members.remove, tunnels.close, schedules.delete, keys.revoke).\n *\n * @generated from message cmdop.core.v1.Empty\n */\nexport type Empty = Message<\"cmdop.core.v1.Empty\"> & {\n};\n\n/**\n * Describes the message cmdop.core.v1.Empty.\n * Use `create(EmptySchema)` to create a new message.\n */\nexport const EmptySchema: GenMessage<Empty> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_common, 0);\n\n/**\n * OffsetPage carries the offset-pagination query fields used by\n * fleets / members / tunnels / keys / schedules-list (report 01 §11).\n *\n * @generated from message cmdop.core.v1.OffsetPage\n */\nexport type OffsetPage = Message<\"cmdop.core.v1.OffsetPage\"> & {\n /**\n * @generated from field: int32 offset = 1;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 2;\n */\n perPage: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.OffsetPage.\n * Use `create(OffsetPageSchema)` to create a new message.\n */\nexport const OffsetPageSchema: GenMessage<OffsetPage> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_common, 1);\n\n/**\n * MfaRequirement mirrors FleetSummary.mfa_required (report 01 §4).\n *\n * @generated from enum cmdop.core.v1.MfaRequirement\n */\nexport enum MfaRequirement {\n /**\n * @generated from enum value: MFA_REQUIREMENT_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: MFA_REQUIREMENT_NONE = 1;\n */\n NONE = 1,\n\n /**\n * @generated from enum value: MFA_REQUIREMENT_OPTIONAL = 2;\n */\n OPTIONAL = 2,\n\n /**\n * @generated from enum value: MFA_REQUIREMENT_REQUIRED = 3;\n */\n REQUIRED = 3,\n}\n\n/**\n * Describes the enum cmdop.core.v1.MfaRequirement.\n */\nexport const MfaRequirementSchema: GenEnum<MfaRequirement> = /*@__PURE__*/\n enumDesc(file_cmdop_core_v1_common, 0);\n\n/**\n * ScheduleTargetKind mirrors ScheduleView.target_kind (report 01 §8).\n *\n * @generated from enum cmdop.core.v1.ScheduleTargetKind\n */\nexport enum ScheduleTargetKind {\n /**\n * @generated from enum value: SCHEDULE_TARGET_KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: SCHEDULE_TARGET_KIND_ALL_FLEET_MACHINES = 1;\n */\n ALL_FLEET_MACHINES = 1,\n\n /**\n * @generated from enum value: SCHEDULE_TARGET_KIND_SPECIFIC_MACHINES = 2;\n */\n SPECIFIC_MACHINES = 2,\n}\n\n/**\n * Describes the enum cmdop.core.v1.ScheduleTargetKind.\n */\nexport const ScheduleTargetKindSchema: GenEnum<ScheduleTargetKind> = /*@__PURE__*/\n enumDesc(file_cmdop_core_v1_common, 1);\n\n/**\n * ScheduleRunStatus mirrors ScheduleRunView.status / ScheduleView.last_status\n * (report 01 §8).\n *\n * @generated from enum cmdop.core.v1.ScheduleRunStatus\n */\nexport enum ScheduleRunStatus {\n /**\n * @generated from enum value: SCHEDULE_RUN_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: SCHEDULE_RUN_STATUS_PENDING = 1;\n */\n PENDING = 1,\n\n /**\n * @generated from enum value: SCHEDULE_RUN_STATUS_RUNNING = 2;\n */\n RUNNING = 2,\n\n /**\n * @generated from enum value: SCHEDULE_RUN_STATUS_SUCCESS = 3;\n */\n SUCCESS = 3,\n\n /**\n * @generated from enum value: SCHEDULE_RUN_STATUS_FAILED = 4;\n */\n FAILED = 4,\n}\n\n/**\n * Describes the enum cmdop.core.v1.ScheduleRunStatus.\n */\nexport const ScheduleRunStatusSchema: GenEnum<ScheduleRunStatus> = /*@__PURE__*/\n enumDesc(file_cmdop_core_v1_common, 2);\n\n","// fleets.* + members.* + fleet-machines.* request/response messages.\n// Mirrors report 01 §3 (fleet_machines), §4 (fleets), §5 (fleet_members)\n// field-for-field.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/fleets.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { MfaRequirement, OffsetPage } from \"./common_pb\";\nimport { file_cmdop_core_v1_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/fleets.proto.\n */\nexport const file_cmdop_core_v1_fleets: GenFile = /*@__PURE__*/\n fileDesc(\"ChpjbWRvcC9jb3JlL3YxL2ZsZWV0cy5wcm90bxINY21kb3AuY29yZS52MSLFAQoMRmxlZXRTdW1tYXJ5EgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSDAoEc2x1ZxgDIAEoCRIzCgxtZmFfcmVxdWlyZWQYBCABKA4yHS5jbWRvcC5jb3JlLnYxLk1mYVJlcXVpcmVtZW50EhEKBHJvbGUYBSABKAlIAIgBARISCgpjcmVhdGVkX2F0GAYgASgJEhgKC2Rpc2FibGVkX2F0GAcgASgJSAGIAQFCBwoFX3JvbGVCDgoMX2Rpc2FibGVkX2F0IjwKEUxpc3RGbGVldHNSZXF1ZXN0EicKBHBhZ2UYASABKAsyGS5jbWRvcC5jb3JlLnYxLk9mZnNldFBhZ2UiaAoJRmxlZXRMaXN0EioKBWl0ZW1zGAEgAygLMhsuY21kb3AuY29yZS52MS5GbGVldFN1bW1hcnkSDgoGb2Zmc2V0GAIgASgFEhAKCHBlcl9wYWdlGAMgASgFEg0KBXRvdGFsGAQgASgFIiMKD0dldEZsZWV0UmVxdWVzdBIQCghmbGVldF9pZBgBIAEoCSJlChJDcmVhdGVGbGVldFJlcXVlc3QSDAoEbmFtZRgBIAEoCRIMCgRzbHVnGAIgASgJEjMKDG1mYV9yZXF1aXJlZBgDIAEoDjIdLmNtZG9wLmNvcmUudjEuTWZhUmVx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ASgJSACIAQESDQoFbGltaXQYBCABKAUSEwoGY3Vyc29yGAUgASgJSAGIAQFCBAoCX3FCCQoHX2N1cnNvciI8ChRBdHRhY2hNYWNoaW5lUmVxdWVzdBIQCghmbGVldF9pZBgBIAEoCRISCgptYWNoaW5lX2lkGAIgASgJIjwKFERldGFjaE1hY2hpbmVSZXF1ZXN0EhAKCGZsZWV0X2lkGAEgASgJEhIKCm1hY2hpbmVfaWQYAiABKAkidQoQTWFjaGluZUZsZWV0TGluaxISCgptYWNoaW5lX2lkGAEgASgJEhAKCGZsZWV0X2lkGAIgASgJEhEKCWpvaW5lZF9hdBgDIAEoCRIYCgthZGRlZF9ieV9pZBgEIAEoCUgAiAEBQg4KDF9hZGRlZF9ieV9pZEK0AQoRY29tLmNtZG9wLmNvcmUudjFCC0ZsZWV0c1Byb3RvUAFaPGdpdGh1Yi5jb20vY21kb3AvY21kb3AvZ28vcGtnL2NvcmVwcm90by9jbWRvcC9jb3JlL3YxO2NvcmV2MaICA0NDWKoCDUNtZG9wLkNvcmUuVjHKAg1DbWRvcFxDb3JlXFYx4gIZQ21kb3BcQ29yZVxWMVxHUEJNZXRhZGF0YeoCD0NtZG9wOjpDb3JlOjpWMWIGcHJvdG8z\", [file_cmdop_core_v1_common]);\n\n/**\n * FleetSummary — report 01 §4 (fleets.py:56).\n *\n * @generated from message cmdop.core.v1.FleetSummary\n */\nexport type FleetSummary = Message<\"cmdop.core.v1.FleetSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n\n /**\n * @generated from field: cmdop.core.v1.MfaRequirement mfa_required = 4;\n */\n mfaRequired: MfaRequirement;\n\n /**\n * @generated from field: optional string role = 5;\n */\n role?: string | undefined;\n\n /**\n * @generated from field: string created_at = 6;\n */\n createdAt: string;\n\n /**\n * @generated from field: optional string disabled_at = 7;\n */\n disabledAt?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.FleetSummary.\n * Use `create(FleetSummarySchema)` to create a new message.\n */\nexport const FleetSummarySchema: GenMessage<FleetSummary> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 0);\n\n/**\n * ListFleetsRequest — GET /api/fleets (offset).\n *\n * @generated from message cmdop.core.v1.ListFleetsRequest\n */\nexport type ListFleetsRequest = Message<\"cmdop.core.v1.ListFleetsRequest\"> & {\n /**\n * @generated from field: cmdop.core.v1.OffsetPage page = 1;\n */\n page?: OffsetPage | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListFleetsRequest.\n * Use `create(ListFleetsRequestSchema)` to create a new message.\n */\nexport const ListFleetsRequestSchema: GenMessage<ListFleetsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 1);\n\n/**\n * FleetList — GET /api/fleets response (OffsetPage[FleetSummary]).\n *\n * @generated from message cmdop.core.v1.FleetList\n */\nexport type FleetList = Message<\"cmdop.core.v1.FleetList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.FleetSummary items = 1;\n */\n items: FleetSummary[];\n\n /**\n * @generated from field: int32 offset = 2;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 3;\n */\n perPage: number;\n\n /**\n * @generated from field: int32 total = 4;\n */\n total: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.FleetList.\n * Use `create(FleetListSchema)` to create a new message.\n */\nexport const FleetListSchema: GenMessage<FleetList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 2);\n\n/**\n * GetFleetRequest — no REST endpoint; client-side scan of list (report 03 §3.1).\n *\n * @generated from message cmdop.core.v1.GetFleetRequest\n */\nexport type GetFleetRequest = Message<\"cmdop.core.v1.GetFleetRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.GetFleetRequest.\n * Use `create(GetFleetRequestSchema)` to create a new message.\n */\nexport const GetFleetRequestSchema: GenMessage<GetFleetRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 3);\n\n/**\n * CreateFleetRequest — POST /api/fleets (report 01 §4, fleets.py:68).\n *\n * @generated from message cmdop.core.v1.CreateFleetRequest\n */\nexport type CreateFleetRequest = Message<\"cmdop.core.v1.CreateFleetRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: cmdop.core.v1.MfaRequirement mfa_required = 3;\n */\n mfaRequired: MfaRequirement;\n};\n\n/**\n * Describes the message cmdop.core.v1.CreateFleetRequest.\n * Use `create(CreateFleetRequestSchema)` to create a new message.\n */\nexport const CreateFleetRequestSchema: GenMessage<CreateFleetRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 4);\n\n/**\n * UpdateFleetRequest — PATCH /api/fleets/{fleet_id} (report 01 §4, fleets.py:74).\n *\n * @generated from message cmdop.core.v1.UpdateFleetRequest\n */\nexport type UpdateFleetRequest = Message<\"cmdop.core.v1.UpdateFleetRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.MfaRequirement mfa_required = 3;\n */\n mfaRequired?: MfaRequirement | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.UpdateFleetRequest.\n * Use `create(UpdateFleetRequestSchema)` to create a new message.\n */\nexport const UpdateFleetRequestSchema: GenMessage<UpdateFleetRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 5);\n\n/**\n * DisableFleetRequest — DELETE /api/fleets/{fleet_id} → 204.\n *\n * @generated from message cmdop.core.v1.DisableFleetRequest\n */\nexport type DisableFleetRequest = Message<\"cmdop.core.v1.DisableFleetRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.DisableFleetRequest.\n * Use `create(DisableFleetRequestSchema)` to create a new message.\n */\nexport const DisableFleetRequestSchema: GenMessage<DisableFleetRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 6);\n\n/**\n * MemberInfo — report 01 §5 (fleet_members.py:55).\n *\n * @generated from message cmdop.core.v1.MemberInfo\n */\nexport type MemberInfo = Message<\"cmdop.core.v1.MemberInfo\"> & {\n /**\n * @generated from field: string user_id = 1;\n */\n userId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: string display_name = 3;\n */\n displayName: string;\n\n /**\n * @generated from field: string role = 4;\n */\n role: string;\n\n /**\n * @generated from field: string joined_at = 5;\n */\n joinedAt: string;\n\n /**\n * @generated from field: optional string invited_by_id = 6;\n */\n invitedById?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MemberInfo.\n * Use `create(MemberInfoSchema)` to create a new message.\n */\nexport const MemberInfoSchema: GenMessage<MemberInfo> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 7);\n\n/**\n * ListMembersRequest — GET /api/fleets/{fleet_id}/members (offset).\n *\n * @generated from message cmdop.core.v1.ListMembersRequest\n */\nexport type ListMembersRequest = Message<\"cmdop.core.v1.ListMembersRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: cmdop.core.v1.OffsetPage page = 2;\n */\n page?: OffsetPage | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListMembersRequest.\n * Use `create(ListMembersRequestSchema)` to create a new message.\n */\nexport const ListMembersRequestSchema: GenMessage<ListMembersRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 8);\n\n/**\n * MemberList — GET members response (OffsetPage[MemberInfo]).\n *\n * @generated from message cmdop.core.v1.MemberList\n */\nexport type MemberList = Message<\"cmdop.core.v1.MemberList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.MemberInfo items = 1;\n */\n items: MemberInfo[];\n\n /**\n * @generated from field: int32 offset = 2;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 3;\n */\n perPage: number;\n\n /**\n * @generated from field: int32 total = 4;\n */\n total: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.MemberList.\n * Use `create(MemberListSchema)` to create a new message.\n */\nexport const MemberListSchema: GenMessage<MemberList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 9);\n\n/**\n * AddMemberRequest — POST /api/fleets/{fleet_id}/members (report 01 §5:66).\n *\n * @generated from message cmdop.core.v1.AddMemberRequest\n */\nexport type AddMemberRequest = Message<\"cmdop.core.v1.AddMemberRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: string role = 3;\n */\n role: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.AddMemberRequest.\n * Use `create(AddMemberRequestSchema)` to create a new message.\n */\nexport const AddMemberRequestSchema: GenMessage<AddMemberRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 10);\n\n/**\n * SetMemberRoleRequest — PATCH /api/fleets/{fleet_id}/members/{user_id}\n * (report 01 §5, UpdateRoleRequest:71).\n *\n * @generated from message cmdop.core.v1.SetMemberRoleRequest\n */\nexport type SetMemberRoleRequest = Message<\"cmdop.core.v1.SetMemberRoleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: string role = 3;\n */\n role: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SetMemberRoleRequest.\n * Use `create(SetMemberRoleRequestSchema)` to create a new message.\n */\nexport const SetMemberRoleRequestSchema: GenMessage<SetMemberRoleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 11);\n\n/**\n * RemoveMemberRequest — DELETE /api/fleets/{fleet_id}/members/{user_id} → 204.\n *\n * @generated from message cmdop.core.v1.RemoveMemberRequest\n */\nexport type RemoveMemberRequest = Message<\"cmdop.core.v1.RemoveMemberRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.RemoveMemberRequest.\n * Use `create(RemoveMemberRequestSchema)` to create a new message.\n */\nexport const RemoveMemberRequestSchema: GenMessage<RemoveMemberRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 12);\n\n/**\n * ListFleetMachinesRequest — GET /api/fleets/{fleet_id}/machines → MachineList\n * (cursor pagination, same query as GET /api/machines).\n *\n * @generated from message cmdop.core.v1.ListFleetMachinesRequest\n */\nexport type ListFleetMachinesRequest = Message<\"cmdop.core.v1.ListFleetMachinesRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string presence = 2;\n */\n presence: string;\n\n /**\n * @generated from field: optional string q = 3;\n */\n q?: string | undefined;\n\n /**\n * @generated from field: int32 limit = 4;\n */\n limit: number;\n\n /**\n * @generated from field: optional string cursor = 5;\n */\n cursor?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListFleetMachinesRequest.\n * Use `create(ListFleetMachinesRequestSchema)` to create a new message.\n */\nexport const ListFleetMachinesRequestSchema: GenMessage<ListFleetMachinesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 13);\n\n/**\n * AttachMachineRequest — POST /api/fleets/{fleet_id}/machines (report 01 §3:52).\n *\n * @generated from message cmdop.core.v1.AttachMachineRequest\n */\nexport type AttachMachineRequest = Message<\"cmdop.core.v1.AttachMachineRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string machine_id = 2;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.AttachMachineRequest.\n * Use `create(AttachMachineRequestSchema)` to create a new message.\n */\nexport const AttachMachineRequestSchema: GenMessage<AttachMachineRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 14);\n\n/**\n * DetachMachineRequest — DELETE /api/fleets/{fleet_id}/machines/{machine_id} → 204.\n *\n * @generated from message cmdop.core.v1.DetachMachineRequest\n */\nexport type DetachMachineRequest = Message<\"cmdop.core.v1.DetachMachineRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string machine_id = 2;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.DetachMachineRequest.\n * Use `create(DetachMachineRequestSchema)` to create a new message.\n */\nexport const DetachMachineRequestSchema: GenMessage<DetachMachineRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 15);\n\n/**\n * MachineFleetLink — report 01 §3 (fleet_machines.py:56).\n *\n * @generated from message cmdop.core.v1.MachineFleetLink\n */\nexport type MachineFleetLink = Message<\"cmdop.core.v1.MachineFleetLink\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n\n /**\n * @generated from field: string fleet_id = 2;\n */\n fleetId: string;\n\n /**\n * @generated from field: string joined_at = 3;\n */\n joinedAt: string;\n\n /**\n * @generated from field: optional string added_by_id = 4;\n */\n addedById?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineFleetLink.\n * Use `create(MachineFleetLinkSchema)` to create a new message.\n */\nexport const MachineFleetLinkSchema: GenMessage<MachineFleetLink> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_fleets, 16);\n\n","// keys.* (api-keys) request/response messages. Mirrors report 01 §9\n// (api_keys.py) field-for-field. Offset pagination.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/keys.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { OffsetPage } from \"./common_pb\";\nimport { file_cmdop_core_v1_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/keys.proto.\n */\nexport const file_cmdop_core_v1_keys: GenFile = /*@__PURE__*/\n fileDesc(\"ChhjbWRvcC9jb3JlL3YxL2tleXMucHJvdG8SDWNtZG9wLmNvcmUudjEijQIKDUFwaUtleVN1bW1hcnkSCgoCaWQYASABKAkSEAoIZmxlZXRfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRISCgprZXlfcHJlZml4GAQgASgJEhIKCmNyZWF0ZWRfYXQYBSABKAkSFwoKZXhwaXJlc19hdBgGIAEoCUgAiAEBEhkKDGxhc3RfdXNlZF9hdBgHIAEoCUgBiAEBEhcKCnJldm9rZWRfYXQYCCABKAlIAogBARIaCg1jcmVhdGVkX2J5X2lkGAkgASgJSAOIAQFCDQoLX2V4cGlyZXNfYXRCDwoNX2xhc3RfdXNlZF9hdEINCgtfcmV2b2tlZF9hdEIQCg5fY3JlYXRlZF9ieV9pZCJMCg9MaXN0S2V5c1JlcXVlc3QSEAoIZmxlZXRfaWQYASABKAkSJwoEcGFnZRgCIAEoCzIZLmNtZG9wLmNvcmUudjEuT2Zmc2V0UGFnZSJqCgpBcGlLZXlMaXN0EisKBWl0ZW1zGAEgAygLMhwuY21kb3AuY29yZS52MS5BcGlLZXlTdW1tYXJ5Eg4KBm9mZnNldBgCIAEoBRIQCghwZXJfcGFnZRgDIAEoBRINCgV0b3RhbBgEIAEoBSJjCg9Jc3N1ZUtleVJlcXVlc3QSEAoIZmxlZXRfaWQYASABKAkSDAoEbmFtZRgCIAEoCRIcCg9leHBpcmVzX2luX2RheXMYAyABKAVIAIgBAUISChBfZXhwaXJlc19pbl9kYXlzInkKEElzc3VlS2V5UmVzcG9uc2USCgoCaWQYASABKAkSEAoIZmxlZXRfaWQYAiABKAkSDAoEbmFtZRgDIAEoCRIRCglyYXdfdG9rZW4YBCABKAkSFwoKZXhwaXJlc19hdBgFIAEoCUgAiAEBQg0KC19leHBpcmVzX2F0IjQKEFJldm9rZUtleVJlcXVlc3QSEAoIZmxlZXRfaWQYASABKAkSDgoGa2V5X2lkGAIgASgJQrIBChFjb20uY21kb3AuY29yZS52MUIJS2V5c1Byb3RvUAFaPGdpdGh1Yi5jb20vY21kb3AvY21kb3AvZ28vcGtnL2NvcmVwcm90by9jbWRvcC9jb3JlL3YxO2NvcmV2MaICA0NDWKoCDUNtZG9wLkNvcmUuVjHKAg1DbWRvcFxDb3JlXFYx4gIZQ21kb3BcQ29yZVxWMVxHUEJNZXRhZGF0YeoCD0NtZG9wOjpDb3JlOjpWMWIGcHJvdG8z\", [file_cmdop_core_v1_common]);\n\n/**\n * ApiKeySummary — report 01 §9 (api_keys.py:60). Never carries the raw token.\n *\n * @generated from message cmdop.core.v1.ApiKeySummary\n */\nexport type ApiKeySummary = Message<\"cmdop.core.v1.ApiKeySummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string fleet_id = 2;\n */\n fleetId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string key_prefix = 4;\n */\n keyPrefix: string;\n\n /**\n * @generated from field: string created_at = 5;\n */\n createdAt: string;\n\n /**\n * @generated from field: optional string expires_at = 6;\n */\n expiresAt?: string | undefined;\n\n /**\n * @generated from field: optional string last_used_at = 7;\n */\n lastUsedAt?: string | undefined;\n\n /**\n * @generated from field: optional string revoked_at = 8;\n */\n revokedAt?: string | undefined;\n\n /**\n * @generated from field: optional string created_by_id = 9;\n */\n createdById?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ApiKeySummary.\n * Use `create(ApiKeySummarySchema)` to create a new message.\n */\nexport const ApiKeySummarySchema: GenMessage<ApiKeySummary> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 0);\n\n/**\n * ListKeysRequest — GET /api/fleets/{fleet_id}/api-keys (offset).\n *\n * @generated from message cmdop.core.v1.ListKeysRequest\n */\nexport type ListKeysRequest = Message<\"cmdop.core.v1.ListKeysRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: cmdop.core.v1.OffsetPage page = 2;\n */\n page?: OffsetPage | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListKeysRequest.\n * Use `create(ListKeysRequestSchema)` to create a new message.\n */\nexport const ListKeysRequestSchema: GenMessage<ListKeysRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 1);\n\n/**\n * ApiKeyList — list response (OffsetPage[ApiKeySummary]).\n *\n * @generated from message cmdop.core.v1.ApiKeyList\n */\nexport type ApiKeyList = Message<\"cmdop.core.v1.ApiKeyList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.ApiKeySummary items = 1;\n */\n items: ApiKeySummary[];\n\n /**\n * @generated from field: int32 offset = 2;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 3;\n */\n perPage: number;\n\n /**\n * @generated from field: int32 total = 4;\n */\n total: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.ApiKeyList.\n * Use `create(ApiKeyListSchema)` to create a new message.\n */\nexport const ApiKeyListSchema: GenMessage<ApiKeyList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 2);\n\n/**\n * IssueKeyRequest — POST /api/fleets/{fleet_id}/api-keys\n * (report 01 §9, IssueApiKeyRequest:47).\n *\n * @generated from message cmdop.core.v1.IssueKeyRequest\n */\nexport type IssueKeyRequest = Message<\"cmdop.core.v1.IssueKeyRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional int32 expires_in_days = 3;\n */\n expiresInDays?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.IssueKeyRequest.\n * Use `create(IssueKeyRequestSchema)` to create a new message.\n */\nexport const IssueKeyRequestSchema: GenMessage<IssueKeyRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 3);\n\n/**\n * IssueKeyResponse — report 01 §9 (IssueApiKeyResponse:52).\n * raw_token is returned only here, once.\n *\n * @generated from message cmdop.core.v1.IssueKeyResponse\n */\nexport type IssueKeyResponse = Message<\"cmdop.core.v1.IssueKeyResponse\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string fleet_id = 2;\n */\n fleetId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string raw_token = 4;\n */\n rawToken: string;\n\n /**\n * @generated from field: optional string expires_at = 5;\n */\n expiresAt?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.IssueKeyResponse.\n * Use `create(IssueKeyResponseSchema)` to create a new message.\n */\nexport const IssueKeyResponseSchema: GenMessage<IssueKeyResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 4);\n\n/**\n * RevokeKeyRequest — DELETE /api/fleets/{fleet_id}/api-keys/{key_id} → 204.\n *\n * @generated from message cmdop.core.v1.RevokeKeyRequest\n */\nexport type RevokeKeyRequest = Message<\"cmdop.core.v1.RevokeKeyRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string key_id = 2;\n */\n keyId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.RevokeKeyRequest.\n * Use `create(RevokeKeyRequestSchema)` to create a new message.\n */\nexport const RevokeKeyRequestSchema: GenMessage<RevokeKeyRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_keys, 5);\n\n","// machines.* request/response messages + the Ask SSE frame union + chat\n// history. Mirrors report 01 §2 (machines.py) and §6 (admin_machine_chat)\n// field-for-field.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/machines.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/machines.proto.\n */\nexport const file_cmdop_core_v1_machines: GenFile = /*@__PURE__*/\n fileDesc(\"ChxjbWRvcC9jb3JlL3YxL21hY2hpbmVzLnByb3RvEg1jbWRvcC5jb3JlLnYxIvQDCg5NYWNoaW5lU3VtbWFyeRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhAKCGhvc3RuYW1lGAMgASgJEgoKAm9zGAQgASgJEhIKCm9zX3ZlcnNpb24YBSABKAkSFAoMYXJjaGl0ZWN0dXJlGAYgASgJEhUKDWFnZW50X3ZlcnNpb24YByABKAkSHgoRbGFzdF9oZWFydGJlYXRfYXQYCCABKAlIAIgBARIQCghwcmVzZW5jZRgJIAEoCRIjChZwdWJsaWNfa2V5X2ZpbmdlcnByaW50GAogASgJSAGIAQESHgoRcHVibGljX2tleV9zdGF0dXMYCyABKAlIAogBARIYCgtkaXNhYmxlZF9hdBgMIAEoCUgDiAEBEhIKCmNyZWF0ZWRfYXQYDSABKAkSLgoGZmxlZXRzGA4gAygLMh4uY21kb3AuY29yZS52MS5NYWNoaW5lRmxlZXRSZWYSKgoFc3BlY3MYDyABKAsyGy5jbWRvcC5jb3JlLnYxLk1hY2hpbmVTcGVjcxIRCglpc19qYXJ2aXMYECABKAhCFAoSX2xhc3RfaGVhcnRiZWF0X2F0QhkKF19wdWJsaWNfa2V5X2ZpbmdlcnByaW50QhQKEl9wdWJsaWNfa2V5X3N0YXR1c0IOCgxfZGlzYWJsZWRfYXQiWwoPTWFjaGluZUZsZWV0UmVmEhAKCGZsZWV0X2lkGAEgASgJEgwKBHNsdWcYAiABKAkSDAoEbmFtZRgDIAEoCRIRCgRyb2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Zwcm90bzM\");\n\n/**\n * MachineSummary — report 01 §2 (machines.py:114).\n *\n * @generated from message cmdop.core.v1.MachineSummary\n */\nexport type MachineSummary = Message<\"cmdop.core.v1.MachineSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string hostname = 3;\n */\n hostname: string;\n\n /**\n * @generated from field: string os = 4;\n */\n os: string;\n\n /**\n * @generated from field: string os_version = 5;\n */\n osVersion: string;\n\n /**\n * @generated from field: string architecture = 6;\n */\n architecture: string;\n\n /**\n * @generated from field: string agent_version = 7;\n */\n agentVersion: string;\n\n /**\n * @generated from field: optional string last_heartbeat_at = 8;\n */\n lastHeartbeatAt?: string | undefined;\n\n /**\n * @generated from field: string presence = 9;\n */\n presence: string;\n\n /**\n * @generated from field: optional string public_key_fingerprint = 10;\n */\n publicKeyFingerprint?: string | undefined;\n\n /**\n * @generated from field: optional string public_key_status = 11;\n */\n publicKeyStatus?: string | undefined;\n\n /**\n * @generated from field: optional string disabled_at = 12;\n */\n disabledAt?: string | undefined;\n\n /**\n * @generated from field: string created_at = 13;\n */\n createdAt: string;\n\n /**\n * @generated from field: repeated cmdop.core.v1.MachineFleetRef fleets = 14;\n */\n fleets: MachineFleetRef[];\n\n /**\n * @generated from field: cmdop.core.v1.MachineSpecs specs = 15;\n */\n specs?: MachineSpecs | undefined;\n\n /**\n * @generated from field: bool is_jarvis = 16;\n */\n isJarvis: boolean;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineSummary.\n * Use `create(MachineSummarySchema)` to create a new message.\n */\nexport const MachineSummarySchema: GenMessage<MachineSummary> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 0);\n\n/**\n * MachineFleetRef — report 01 §2 (machines.py:76).\n *\n * @generated from message cmdop.core.v1.MachineFleetRef\n */\nexport type MachineFleetRef = Message<\"cmdop.core.v1.MachineFleetRef\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: optional string role = 4;\n */\n role?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineFleetRef.\n * Use `create(MachineFleetRefSchema)` to create a new message.\n */\nexport const MachineFleetRefSchema: GenMessage<MachineFleetRef> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 1);\n\n/**\n * MachineSpecs — report 01 §2 (machines.py:83).\n *\n * @generated from message cmdop.core.v1.MachineSpecs\n */\nexport type MachineSpecs = Message<\"cmdop.core.v1.MachineSpecs\"> & {\n /**\n * @generated from field: string cpu_model = 1;\n */\n cpuModel: string;\n\n /**\n * @generated from field: int32 cpu_count = 2;\n */\n cpuCount: number;\n\n /**\n * @generated from field: int64 total_ram_bytes = 3;\n */\n totalRamBytes: bigint;\n\n /**\n * @generated from field: string home_dir = 4;\n */\n homeDir: string;\n\n /**\n * @generated from field: int32 uid = 5;\n */\n uid: number;\n\n /**\n * @generated from field: string device_type = 6;\n */\n deviceType: string;\n\n /**\n * @generated from field: string device_model = 7;\n */\n deviceModel: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineSpecs.\n * Use `create(MachineSpecsSchema)` to create a new message.\n */\nexport const MachineSpecsSchema: GenMessage<MachineSpecs> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 2);\n\n/**\n * MachineDetail — report 01 §2 (machines.py:142) = MachineSummary + extras.\n *\n * @generated from message cmdop.core.v1.MachineDetail\n */\nexport type MachineDetail = Message<\"cmdop.core.v1.MachineDetail\"> & {\n /**\n * @generated from field: cmdop.core.v1.MachineSummary summary = 1;\n */\n summary?: MachineSummary | undefined;\n\n /**\n * @generated from field: bool is_root = 2;\n */\n isRoot: boolean;\n\n /**\n * @generated from field: string username = 3;\n */\n username: string;\n\n /**\n * @generated from field: optional string device_id = 4;\n */\n deviceId?: string | undefined;\n\n /**\n * @generated from field: optional string public_key = 5;\n */\n publicKey?: string | undefined;\n\n /**\n * @generated from field: int32 public_key_version = 6;\n */\n publicKeyVersion: number;\n\n /**\n * @generated from field: optional string public_key_registered_at = 7;\n */\n publicKeyRegisteredAt?: string | undefined;\n\n /**\n * @generated from field: optional string created_by_id = 8;\n */\n createdById?: string | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.LiveMetrics live_metrics = 9;\n */\n liveMetrics?: LiveMetrics | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineDetail.\n * Use `create(MachineDetailSchema)` to create a new message.\n */\nexport const MachineDetailSchema: GenMessage<MachineDetail> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 3);\n\n/**\n * LiveMetrics — report 01 §2 (machines.py:96, LiveMetricsDTO).\n *\n * @generated from message cmdop.core.v1.LiveMetrics\n */\nexport type LiveMetrics = Message<\"cmdop.core.v1.LiveMetrics\"> & {\n /**\n * @generated from field: double cpu_usage = 1;\n */\n cpuUsage: number;\n\n /**\n * @generated from field: double memory_usage = 2;\n */\n memoryUsage: number;\n\n /**\n * @generated from field: double memory_total_gb = 3;\n */\n memoryTotalGb: number;\n\n /**\n * @generated from field: double disk_usage = 4;\n */\n diskUsage: number;\n\n /**\n * @generated from field: double disk_total_gb = 5;\n */\n diskTotalGb: number;\n\n /**\n * @generated from field: double battery_level = 6;\n */\n batteryLevel: number;\n\n /**\n * @generated from field: bool is_charging = 7;\n */\n isCharging: boolean;\n\n /**\n * @generated from field: bool is_on_ac_power = 8;\n */\n isOnAcPower: boolean;\n\n /**\n * @generated from field: int64 uptime_seconds = 9;\n */\n uptimeSeconds: bigint;\n\n /**\n * @generated from field: int32 process_count = 10;\n */\n processCount: number;\n\n /**\n * @generated from field: string recorded_at = 11;\n */\n recordedAt: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.LiveMetrics.\n * Use `create(LiveMetricsSchema)` to create a new message.\n */\nexport const LiveMetricsSchema: GenMessage<LiveMetrics> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 4);\n\n/**\n * ListMachinesRequest — GET /api/machines query (report 01 §2).\n *\n * @generated from message cmdop.core.v1.ListMachinesRequest\n */\nexport type ListMachinesRequest = Message<\"cmdop.core.v1.ListMachinesRequest\"> & {\n /**\n * @generated from field: string presence = 1;\n */\n presence: string;\n\n /**\n * @generated from field: optional string q = 2;\n */\n q?: string | undefined;\n\n /**\n * @generated from field: int32 limit = 3;\n */\n limit: number;\n\n /**\n * @generated from field: optional string cursor = 4;\n */\n cursor?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListMachinesRequest.\n * Use `create(ListMachinesRequestSchema)` to create a new message.\n */\nexport const ListMachinesRequestSchema: GenMessage<ListMachinesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 5);\n\n/**\n * MachineList — GET /api/machines response, cursor pagination (report 01 §2).\n *\n * @generated from message cmdop.core.v1.MachineList\n */\nexport type MachineList = Message<\"cmdop.core.v1.MachineList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.MachineSummary items = 1;\n */\n items: MachineSummary[];\n\n /**\n * @generated from field: optional string next_cursor = 2;\n */\n nextCursor?: string | undefined;\n\n /**\n * @generated from field: bool has_more = 3;\n */\n hasMore: boolean;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineList.\n * Use `create(MachineListSchema)` to create a new message.\n */\nexport const MachineListSchema: GenMessage<MachineList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 6);\n\n/**\n * GetMachineRequest — GET /api/machines/{machine_id}.\n *\n * @generated from message cmdop.core.v1.GetMachineRequest\n */\nexport type GetMachineRequest = Message<\"cmdop.core.v1.GetMachineRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.GetMachineRequest.\n * Use `create(GetMachineRequestSchema)` to create a new message.\n */\nexport const GetMachineRequestSchema: GenMessage<GetMachineRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 7);\n\n/**\n * MachineInfoRequest — GET /api/admin/machines/{machine_id}/info.\n *\n * @generated from message cmdop.core.v1.MachineInfoRequest\n */\nexport type MachineInfoRequest = Message<\"cmdop.core.v1.MachineInfoRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineInfoRequest.\n * Use `create(MachineInfoRequestSchema)` to create a new message.\n */\nexport const MachineInfoRequestSchema: GenMessage<MachineInfoRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 8);\n\n/**\n * MachineIdentity — admin_machines.py IdentityDTO.\n *\n * @generated from message cmdop.core.v1.MachineIdentity\n */\nexport type MachineIdentity = Message<\"cmdop.core.v1.MachineIdentity\"> & {\n /**\n * @generated from field: string hostname = 1;\n */\n hostname: string;\n\n /**\n * @generated from field: string os = 2;\n */\n os: string;\n\n /**\n * @generated from field: string os_version = 3;\n */\n osVersion: string;\n\n /**\n * @generated from field: string kernel_version = 4;\n */\n kernelVersion: string;\n\n /**\n * @generated from field: string agent_version = 5;\n */\n agentVersion: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineIdentity.\n * Use `create(MachineIdentitySchema)` to create a new message.\n */\nexport const MachineIdentitySchema: GenMessage<MachineIdentity> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 9);\n\n/**\n * MachineHardware — admin_machines.py HardwareDTO.\n *\n * @generated from message cmdop.core.v1.MachineHardware\n */\nexport type MachineHardware = Message<\"cmdop.core.v1.MachineHardware\"> & {\n /**\n * @generated from field: string cpu = 1;\n */\n cpu: string;\n\n /**\n * @generated from field: int32 cpu_cores = 2;\n */\n cpuCores: number;\n\n /**\n * @generated from field: double memory_total_gb = 3;\n */\n memoryTotalGb: number;\n\n /**\n * @generated from field: double disk_total_gb = 4;\n */\n diskTotalGb: number;\n\n /**\n * @generated from field: string gpu = 5;\n */\n gpu: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineHardware.\n * Use `create(MachineHardwareSchema)` to create a new message.\n */\nexport const MachineHardwareSchema: GenMessage<MachineHardware> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 10);\n\n/**\n * MachineLiveState — admin_machines.py LiveStateDTO.\n *\n * @generated from message cmdop.core.v1.MachineLiveState\n */\nexport type MachineLiveState = Message<\"cmdop.core.v1.MachineLiveState\"> & {\n /**\n * @generated from field: double cpu_usage = 1;\n */\n cpuUsage: number;\n\n /**\n * @generated from field: double memory_usage = 2;\n */\n memoryUsage: number;\n\n /**\n * @generated from field: double memory_total_gb = 3;\n */\n memoryTotalGb: number;\n\n /**\n * @generated from field: double memory_free_gb = 4;\n */\n memoryFreeGb: number;\n\n /**\n * @generated from field: double disk_usage = 5;\n */\n diskUsage: number;\n\n /**\n * @generated from field: double disk_total_gb = 6;\n */\n diskTotalGb: number;\n\n /**\n * @generated from field: double disk_free_gb = 7;\n */\n diskFreeGb: number;\n\n /**\n * @generated from field: double battery_level = 8;\n */\n batteryLevel: number;\n\n /**\n * @generated from field: bool is_charging = 9;\n */\n isCharging: boolean;\n\n /**\n * @generated from field: bool is_on_ac_power = 10;\n */\n isOnAcPower: boolean;\n\n /**\n * @generated from field: int64 uptime_seconds = 11;\n */\n uptimeSeconds: bigint;\n\n /**\n * @generated from field: int32 process_count = 12;\n */\n processCount: number;\n\n /**\n * @generated from field: string recorded_at = 13;\n */\n recordedAt: string;\n\n /**\n * @generated from field: bool stale = 14;\n */\n stale: boolean;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineLiveState.\n * Use `create(MachineLiveStateSchema)` to create a new message.\n */\nexport const MachineLiveStateSchema: GenMessage<MachineLiveState> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 11);\n\n/**\n * MachineSessionInfo — admin_machines.py SessionDTO.\n *\n * @generated from message cmdop.core.v1.MachineSessionInfo\n */\nexport type MachineSessionInfo = Message<\"cmdop.core.v1.MachineSessionInfo\"> & {\n /**\n * @generated from field: optional string connected_at = 1;\n */\n connectedAt?: string | undefined;\n\n /**\n * @generated from field: optional string last_heartbeat_at = 2;\n */\n lastHeartbeatAt?: string | undefined;\n\n /**\n * @generated from field: int32 reconnect_count_24h = 3;\n */\n reconnectCount24h: number;\n\n /**\n * @generated from field: optional string token_expires_at = 4;\n */\n tokenExpiresAt?: string | undefined;\n\n /**\n * @generated from field: int32 tunnel_count_active = 5;\n */\n tunnelCountActive: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineSessionInfo.\n * Use `create(MachineSessionInfoSchema)` to create a new message.\n */\nexport const MachineSessionInfoSchema: GenMessage<MachineSessionInfo> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 12);\n\n/**\n * MachinePresence — admin_machines.py PresenceDTO.\n *\n * @generated from message cmdop.core.v1.MachinePresence\n */\nexport type MachinePresence = Message<\"cmdop.core.v1.MachinePresence\"> & {\n /**\n * healthy | stale | expired | never\n *\n * @generated from field: string status = 1;\n */\n status: string;\n\n /**\n * @generated from field: optional string last_seen_at = 2;\n */\n lastSeenAt?: string | undefined;\n\n /**\n * @generated from field: optional int32 freshness_seconds = 3;\n */\n freshnessSeconds?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachinePresence.\n * Use `create(MachinePresenceSchema)` to create a new message.\n */\nexport const MachinePresenceSchema: GenMessage<MachinePresence> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 13);\n\n/**\n * MachineFingerprint — admin_machines.py FingerprintDTO.\n *\n * @generated from message cmdop.core.v1.MachineFingerprint\n */\nexport type MachineFingerprint = Message<\"cmdop.core.v1.MachineFingerprint\"> & {\n /**\n * @generated from field: optional string public_key_fingerprint = 1;\n */\n publicKeyFingerprint?: string | undefined;\n\n /**\n * @generated from field: optional string public_key_status = 2;\n */\n publicKeyStatus?: string | undefined;\n\n /**\n * @generated from field: int32 public_key_version = 3;\n */\n publicKeyVersion: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineFingerprint.\n * Use `create(MachineFingerprintSchema)` to create a new message.\n */\nexport const MachineFingerprintSchema: GenMessage<MachineFingerprint> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 14);\n\n/**\n * MachineInfoResponse — GET /api/admin/machines/{machine_id}/info response.\n *\n * @generated from message cmdop.core.v1.MachineInfoResponse\n */\nexport type MachineInfoResponse = Message<\"cmdop.core.v1.MachineInfoResponse\"> & {\n /**\n * @generated from field: cmdop.core.v1.MachineIdentity identity = 1;\n */\n identity?: MachineIdentity | undefined;\n\n /**\n * @generated from field: cmdop.core.v1.MachineHardware hardware = 2;\n */\n hardware?: MachineHardware | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.MachineLiveState live_state = 3;\n */\n liveState?: MachineLiveState | undefined;\n\n /**\n * @generated from field: cmdop.core.v1.MachineSessionInfo session = 4;\n */\n session?: MachineSessionInfo | undefined;\n\n /**\n * @generated from field: cmdop.core.v1.MachinePresence presence = 5;\n */\n presence?: MachinePresence | undefined;\n\n /**\n * @generated from field: cmdop.core.v1.MachineFingerprint fingerprint = 6;\n */\n fingerprint?: MachineFingerprint | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineInfoResponse.\n * Use `create(MachineInfoResponseSchema)` to create a new message.\n */\nexport const MachineInfoResponseSchema: GenMessage<MachineInfoResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 15);\n\n/**\n * UpdateMachineRequest — PATCH /api/machines/{machine_id} (report 01 §2:172).\n *\n * @generated from message cmdop.core.v1.UpdateMachineRequest\n */\nexport type UpdateMachineRequest = Message<\"cmdop.core.v1.UpdateMachineRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.UpdateMachineRequest.\n * Use `create(UpdateMachineRequestSchema)` to create a new message.\n */\nexport const UpdateMachineRequestSchema: GenMessage<UpdateMachineRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 16);\n\n/**\n * DisableMachineRequest — DELETE /api/machines/{machine_id} → 204.\n *\n * @generated from message cmdop.core.v1.DisableMachineRequest\n */\nexport type DisableMachineRequest = Message<\"cmdop.core.v1.DisableMachineRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.DisableMachineRequest.\n * Use `create(DisableMachineRequestSchema)` to create a new message.\n */\nexport const DisableMachineRequestSchema: GenMessage<DisableMachineRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 17);\n\n/**\n * MachineSpendRequest — .spend(window) (report 03 §3.1), window-scoped query.\n *\n * @generated from message cmdop.core.v1.MachineSpendRequest\n */\nexport type MachineSpendRequest = Message<\"cmdop.core.v1.MachineSpendRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n\n /**\n * @generated from field: string window = 2;\n */\n window: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineSpendRequest.\n * Use `create(MachineSpendRequestSchema)` to create a new message.\n */\nexport const MachineSpendRequestSchema: GenMessage<MachineSpendRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 18);\n\n/**\n * TopModel — admin_machines.py TopModel (per-model spend breakdown).\n *\n * @generated from message cmdop.core.v1.TopModel\n */\nexport type TopModel = Message<\"cmdop.core.v1.TopModel\"> & {\n /**\n * @generated from field: string model = 1;\n */\n model: string;\n\n /**\n * @generated from field: double usd = 2;\n */\n usd: number;\n\n /**\n * @generated from field: double pct = 3;\n */\n pct: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.TopModel.\n * Use `create(TopModelSchema)` to create a new message.\n */\nexport const TopModelSchema: GenMessage<TopModel> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 19);\n\n/**\n * MachineSpend — GET /api/admin/machines/{machine_id}/spend response.\n * Field-for-field mirror of the server's pydantic MachineSpendResponse.\n *\n * @generated from message cmdop.core.v1.MachineSpend\n */\nexport type MachineSpend = Message<\"cmdop.core.v1.MachineSpend\"> & {\n /**\n * @generated from field: string window = 1;\n */\n window: string;\n\n /**\n * @generated from field: double total_usd = 2;\n */\n totalUsd: number;\n\n /**\n * @generated from field: double delta_usd = 3;\n */\n deltaUsd: number;\n\n /**\n * @generated from field: double delta_pct = 4;\n */\n deltaPct: number;\n\n /**\n * @generated from field: int64 tokens_in = 5;\n */\n tokensIn: bigint;\n\n /**\n * @generated from field: int64 tokens_out = 6;\n */\n tokensOut: bigint;\n\n /**\n * @generated from field: int64 calls = 7;\n */\n calls: bigint;\n\n /**\n * @generated from field: int64 ocr_pages = 8;\n */\n ocrPages: bigint;\n\n /**\n * @generated from field: repeated cmdop.core.v1.TopModel top_models = 9;\n */\n topModels: TopModel[];\n};\n\n/**\n * Describes the message cmdop.core.v1.MachineSpend.\n * Use `create(MachineSpendSchema)` to create a new message.\n */\nexport const MachineSpendSchema: GenMessage<MachineSpend> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 20);\n\n/**\n * AskRequest — POST /api/admin/machines/{machine_id}/ask body\n * (report 01 §6, _schemas.py:15).\n *\n * @generated from message cmdop.core.v1.AskRequest\n */\nexport type AskRequest = Message<\"cmdop.core.v1.AskRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n\n /**\n * @generated from field: string session_id = 2;\n */\n sessionId: string;\n\n /**\n * @generated from field: string prompt = 3;\n */\n prompt: string;\n\n /**\n * @generated from field: optional string agent_type = 4;\n */\n agentType?: string | undefined;\n\n /**\n * @generated from field: optional int32 timeout_seconds = 5;\n */\n timeoutSeconds?: number | undefined;\n\n /**\n * @generated from field: map<string, string> options = 6;\n */\n options: { [key: string]: string };\n};\n\n/**\n * Describes the message cmdop.core.v1.AskRequest.\n * Use `create(AskRequestSchema)` to create a new message.\n */\nexport const AskRequestSchema: GenMessage<AskRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 21);\n\n/**\n * AskFrame mirrors the report 01 §6 SseFrame union — discriminate on `frame`.\n *\n * @generated from message cmdop.core.v1.AskFrame\n */\nexport type AskFrame = Message<\"cmdop.core.v1.AskFrame\"> & {\n /**\n * @generated from oneof cmdop.core.v1.AskFrame.frame\n */\n frame: {\n /**\n * @generated from field: cmdop.core.v1.StreamEvent event = 1;\n */\n value: StreamEvent;\n case: \"event\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.StreamConfirm confirm_required = 2;\n */\n value: StreamConfirm;\n case: \"confirmRequired\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.PinRequired pin_required = 3;\n */\n value: PinRequired;\n case: \"pinRequired\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.PinDenied pin_denied = 4;\n */\n value: PinDenied;\n case: \"pinDenied\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message cmdop.core.v1.AskFrame.\n * Use `create(AskFrameSchema)` to create a new message.\n */\nexport const AskFrameSchema: GenMessage<AskFrame> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 22);\n\n/**\n * StreamEvent — type=\"event\" (report 01 §6). payload is opaque JSON passthrough.\n *\n * @generated from message cmdop.core.v1.StreamEvent\n */\nexport type StreamEvent = Message<\"cmdop.core.v1.StreamEvent\"> & {\n /**\n * @generated from field: int32 event_type = 1;\n */\n eventType: number;\n\n /**\n * @generated from field: string payload_json = 2;\n */\n payloadJson: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.StreamEvent.\n * Use `create(StreamEventSchema)` to create a new message.\n */\nexport const StreamEventSchema: GenMessage<StreamEvent> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 23);\n\n/**\n * DoneInfo — type=\"done\" (report 01 §6, StreamDoneFrame).\n *\n * @generated from message cmdop.core.v1.DoneInfo\n */\nexport type DoneInfo = Message<\"cmdop.core.v1.DoneInfo\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: string text = 2;\n */\n text: string;\n\n /**\n * @generated from field: string error = 3;\n */\n error: string;\n\n /**\n * @generated from field: int32 duration_ms = 4;\n */\n durationMs: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.DoneInfo.\n * Use `create(DoneInfoSchema)` to create a new message.\n */\nexport const DoneInfoSchema: GenMessage<DoneInfo> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 24);\n\n/**\n * ErrorInfo — type=\"error\" (report 01 §6) AND the Envelope kind=ERROR body.\n *\n * @generated from message cmdop.core.v1.ErrorInfo\n */\nexport type ErrorInfo = Message<\"cmdop.core.v1.ErrorInfo\"> & {\n /**\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * @generated from field: string message = 2;\n */\n message: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ErrorInfo.\n * Use `create(ErrorInfoSchema)` to create a new message.\n */\nexport const ErrorInfoSchema: GenMessage<ErrorInfo> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 25);\n\n/**\n * StreamConfirm — type=\"confirm_required\" (report 01 §6, StreamConfirmFrame).\n *\n * @generated from message cmdop.core.v1.StreamConfirm\n */\nexport type StreamConfirm = Message<\"cmdop.core.v1.StreamConfirm\"> & {\n /**\n * @generated from field: string token = 1;\n */\n token: string;\n\n /**\n * @generated from field: string plan = 2;\n */\n plan: string;\n\n /**\n * @generated from field: string danger_level = 3;\n */\n dangerLevel: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.StreamConfirm.\n * Use `create(StreamConfirmSchema)` to create a new message.\n */\nexport const StreamConfirmSchema: GenMessage<StreamConfirm> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 26);\n\n/**\n * PinRequired — type=\"pin_required\" (report 01 §6, PinRequiredFrame).\n *\n * @generated from message cmdop.core.v1.PinRequired\n */\nexport type PinRequired = Message<\"cmdop.core.v1.PinRequired\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: string label = 2;\n */\n label: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.PinRequired.\n * Use `create(PinRequiredSchema)` to create a new message.\n */\nexport const PinRequiredSchema: GenMessage<PinRequired> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 27);\n\n/**\n * PinDenied — type=\"pin_denied\" (report 01 §6, PinDeniedFrame).\n *\n * @generated from message cmdop.core.v1.PinDenied\n */\nexport type PinDenied = Message<\"cmdop.core.v1.PinDenied\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: string reason = 2;\n */\n reason: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.PinDenied.\n * Use `create(PinDeniedSchema)` to create a new message.\n */\nexport const PinDeniedSchema: GenMessage<PinDenied> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 28);\n\n/**\n * ConfirmRequired — mid-stream CALLBACK surface of confirm_required.\n *\n * @generated from message cmdop.core.v1.ConfirmRequired\n */\nexport type ConfirmRequired = Message<\"cmdop.core.v1.ConfirmRequired\"> & {\n /**\n * @generated from field: string token = 1;\n */\n token: string;\n\n /**\n * @generated from field: string plan = 2;\n */\n plan: string;\n\n /**\n * @generated from field: string danger_level = 3;\n */\n dangerLevel: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ConfirmRequired.\n * Use `create(ConfirmRequiredSchema)` to create a new message.\n */\nexport const ConfirmRequiredSchema: GenMessage<ConfirmRequired> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 29);\n\n/**\n * PinAnswer — client reply to a pin_required CALLBACK.\n * POST /api/admin/machines/{machine_id}/pin (report 01 §6, PinSubmitRequest).\n *\n * @generated from message cmdop.core.v1.PinAnswer\n */\nexport type PinAnswer = Message<\"cmdop.core.v1.PinAnswer\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: string pin = 2;\n */\n pin: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.PinAnswer.\n * Use `create(PinAnswerSchema)` to create a new message.\n */\nexport const PinAnswerSchema: GenMessage<PinAnswer> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 30);\n\n/**\n * ConfirmAnswer — client reply to a confirm_required CALLBACK.\n * POST /api/admin/machines/{machine_id}/confirm (report 01 §6, ConfirmRequest).\n *\n * @generated from message cmdop.core.v1.ConfirmAnswer\n */\nexport type ConfirmAnswer = Message<\"cmdop.core.v1.ConfirmAnswer\"> & {\n /**\n * @generated from field: string token = 1;\n */\n token: string;\n\n /**\n * @generated from field: bool accept = 2;\n */\n accept: boolean;\n};\n\n/**\n * Describes the message cmdop.core.v1.ConfirmAnswer.\n * Use `create(ConfirmAnswerSchema)` to create a new message.\n */\nexport const ConfirmAnswerSchema: GenMessage<ConfirmAnswer> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 31);\n\n/**\n * MessagesRequest — GET /api/admin/machines/{machine_id}/messages?limit.\n *\n * @generated from message cmdop.core.v1.MessagesRequest\n */\nexport type MessagesRequest = Message<\"cmdop.core.v1.MessagesRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n\n /**\n * @generated from field: int32 limit = 2;\n */\n limit: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.MessagesRequest.\n * Use `create(MessagesRequestSchema)` to create a new message.\n */\nexport const MessagesRequestSchema: GenMessage<MessagesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 32);\n\n/**\n * MessagesResponse — report 01 §6 (_schemas.py:47).\n *\n * @generated from message cmdop.core.v1.MessagesResponse\n */\nexport type MessagesResponse = Message<\"cmdop.core.v1.MessagesResponse\"> & {\n /**\n * @generated from field: optional string agent_session_id = 1;\n */\n agentSessionId?: string | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.HistoryMessage messages = 2;\n */\n messages: HistoryMessage[];\n};\n\n/**\n * Describes the message cmdop.core.v1.MessagesResponse.\n * Use `create(MessagesResponseSchema)` to create a new message.\n */\nexport const MessagesResponseSchema: GenMessage<MessagesResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 33);\n\n/**\n * HistoryMessage — report 01 §6. ai rows carry success/error/duration_ms (5-7).\n *\n * @generated from message cmdop.core.v1.HistoryMessage\n */\nexport type HistoryMessage = Message<\"cmdop.core.v1.HistoryMessage\"> & {\n /**\n * @generated from field: string role = 1;\n */\n role: string;\n\n /**\n * @generated from field: string text = 2;\n */\n text: string;\n\n /**\n * @generated from field: optional string created_at = 3;\n */\n createdAt?: string | undefined;\n\n /**\n * @generated from field: string request_id = 4;\n */\n requestId: string;\n\n /**\n * @generated from field: optional bool success = 5;\n */\n success?: boolean | undefined;\n\n /**\n * @generated from field: optional string error = 6;\n */\n error?: string | undefined;\n\n /**\n * @generated from field: optional int32 duration_ms = 7;\n */\n durationMs?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.HistoryMessage.\n * Use `create(HistoryMessageSchema)` to create a new message.\n */\nexport const HistoryMessageSchema: GenMessage<HistoryMessage> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 34);\n\n/**\n * ClearMessagesRequest — DELETE /api/admin/machines/{machine_id}/messages.\n *\n * @generated from message cmdop.core.v1.ClearMessagesRequest\n */\nexport type ClearMessagesRequest = Message<\"cmdop.core.v1.ClearMessagesRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ClearMessagesRequest.\n * Use `create(ClearMessagesRequestSchema)` to create a new message.\n */\nexport const ClearMessagesRequestSchema: GenMessage<ClearMessagesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 35);\n\n/**\n * ClearMessagesResponse — report 01 §6 (_schemas.py:52).\n *\n * @generated from message cmdop.core.v1.ClearMessagesResponse\n */\nexport type ClearMessagesResponse = Message<\"cmdop.core.v1.ClearMessagesResponse\"> & {\n /**\n * @generated from field: optional string agent_session_id = 1;\n */\n agentSessionId?: string | undefined;\n\n /**\n * @generated from field: int32 deleted = 2;\n */\n deleted: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.ClearMessagesResponse.\n * Use `create(ClearMessagesResponseSchema)` to create a new message.\n */\nexport const ClearMessagesResponseSchema: GenMessage<ClearMessagesResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 36);\n\n/**\n * ActiveSessionRequest — GET /api/admin/machines/{machine_id}/active_session.\n *\n * @generated from message cmdop.core.v1.ActiveSessionRequest\n */\nexport type ActiveSessionRequest = Message<\"cmdop.core.v1.ActiveSessionRequest\"> & {\n /**\n * @generated from field: string machine_id = 1;\n */\n machineId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ActiveSessionRequest.\n * Use `create(ActiveSessionRequestSchema)` to create a new message.\n */\nexport const ActiveSessionRequestSchema: GenMessage<ActiveSessionRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 37);\n\n/**\n * ActiveSessionResponse — report 01 §6 (_schemas.py:23).\n *\n * @generated from message cmdop.core.v1.ActiveSessionResponse\n */\nexport type ActiveSessionResponse = Message<\"cmdop.core.v1.ActiveSessionResponse\"> & {\n /**\n * @generated from field: optional string agent_session_id = 1;\n */\n agentSessionId?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ActiveSessionResponse.\n * Use `create(ActiveSessionResponseSchema)` to create a new message.\n */\nexport const ActiveSessionResponseSchema: GenMessage<ActiveSessionResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_machines, 38);\n\n","// schedules.* request/response messages + run history. Mirrors report 01 §8\n// (schedules.py + _schedules_schemas.py) field-for-field. Offset pagination\n// for list; cursor pagination for runs.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/schedules.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { OffsetPage, ScheduleRunStatus, ScheduleTargetKind } from \"./common_pb\";\nimport { file_cmdop_core_v1_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/schedules.proto.\n */\nexport const file_cmdop_core_v1_schedules: GenFile = /*@__PURE__*/\n fileDesc(\"Ch1jbWRvcC9jb3JlL3YxL3NjaGVkdWxlcy5wcm90bxINY21kb3AuY29yZS52MSKuAwoMU2NoZWR1bGVWaWV3EgoKAmlkGAEgASgJEhAKCGZsZWV0X2lkGAIgASgJEgwKBG5hbWUYAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkSEQoJY3Jvbl9leHByGAUgASgJEhAKCHRpbWV6b25lGAYgASgJEg8KB2NvbW1hbmQYByABKAkSNgoLdGFyZ2V0X2tpbmQYCCABKA4yIS5jbWRvcC5jb3JlLnYxLlNjaGVkdWxlVGFyZ2V0S2luZBISCgppc19lbmFibGVkGAkgASgIEhMKC21hY2hpbmVfaWRzGAogAygJEhIKCmNyZWF0ZWRfYXQYCyABKAkSEgoKdXBkYXRlZF9hdBgMIAEoCRIYCgtsYXN0X3J1bl9hdBgNIAEoCUgAiAEBEhgKC25leHRfcnVuX2F0GA4gASgJSAGIAQESOgoLbGFzdF9zdGF0dXMYDyABKA4yIC5jbWRvcC5jb3JlLnYxLlNjaGVkdWxlUnVuU3RhdHVzSAKIAQFCDgoMX2xhc3RfcnVuX2F0Qg4KDF9uZXh0X3J1bl9hdEIOCgxfbGFzdF9zdGF0dXMijgIKD1NjaGVkdWxlUnVuVmlldxIKCgJpZBgBIAEoCRITCgtzY2hlZHVsZV9pZBgCIAEoCRIQCghmbGVldF9pZBgDIAEoCRIwCgZzdGF0dXMYBCABKA4yIC5jbWRvcC5jb3JlLnYxLlNjaGVkdWxlUnVuU3RhdHVzEhIKCnN0YXJ0ZWRfY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mdop_core_v1_common]);\n\n/**\n * ScheduleView — report 01 §8 (_schedules_schemas.py:31).\n *\n * @generated from message cmdop.core.v1.ScheduleView\n */\nexport type ScheduleView = Message<\"cmdop.core.v1.ScheduleView\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string fleet_id = 2;\n */\n fleetId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string description = 4;\n */\n description: string;\n\n /**\n * @generated from field: string cron_expr = 5;\n */\n cronExpr: string;\n\n /**\n * @generated from field: string timezone = 6;\n */\n timezone: string;\n\n /**\n * @generated from field: string command = 7;\n */\n command: string;\n\n /**\n * @generated from field: cmdop.core.v1.ScheduleTargetKind target_kind = 8;\n */\n targetKind: ScheduleTargetKind;\n\n /**\n * @generated from field: bool is_enabled = 9;\n */\n isEnabled: boolean;\n\n /**\n * @generated from field: repeated string machine_ids = 10;\n */\n machineIds: string[];\n\n /**\n * @generated from field: string created_at = 11;\n */\n createdAt: string;\n\n /**\n * @generated from field: string updated_at = 12;\n */\n updatedAt: string;\n\n /**\n * @generated from field: optional string last_run_at = 13;\n */\n lastRunAt?: string | undefined;\n\n /**\n * @generated from field: optional string next_run_at = 14;\n */\n nextRunAt?: string | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.ScheduleRunStatus last_status = 15;\n */\n lastStatus?: ScheduleRunStatus | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ScheduleView.\n * Use `create(ScheduleViewSchema)` to create a new message.\n */\nexport const ScheduleViewSchema: GenMessage<ScheduleView> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 0);\n\n/**\n * ScheduleRunView — report 01 §8 (_schedules_schemas.py:55).\n *\n * @generated from message cmdop.core.v1.ScheduleRunView\n */\nexport type ScheduleRunView = Message<\"cmdop.core.v1.ScheduleRunView\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n\n /**\n * @generated from field: string fleet_id = 3;\n */\n fleetId: string;\n\n /**\n * @generated from field: cmdop.core.v1.ScheduleRunStatus status = 4;\n */\n status: ScheduleRunStatus;\n\n /**\n * @generated from field: string started_at = 5;\n */\n startedAt: string;\n\n /**\n * @generated from field: optional string finished_at = 6;\n */\n finishedAt?: string | undefined;\n\n /**\n * @generated from field: optional double duration_seconds = 7;\n */\n durationSeconds?: number | undefined;\n\n /**\n * @generated from field: string error = 8;\n */\n error: string;\n\n /**\n * @generated from field: int32 command_count = 9;\n */\n commandCount: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.ScheduleRunView.\n * Use `create(ScheduleRunViewSchema)` to create a new message.\n */\nexport const ScheduleRunViewSchema: GenMessage<ScheduleRunView> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 1);\n\n/**\n * ListSchedulesRequest — GET /api/fleets/{fleet_id}/schedules (offset).\n *\n * @generated from message cmdop.core.v1.ListSchedulesRequest\n */\nexport type ListSchedulesRequest = Message<\"cmdop.core.v1.ListSchedulesRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: cmdop.core.v1.OffsetPage page = 2;\n */\n page?: OffsetPage | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListSchedulesRequest.\n * Use `create(ListSchedulesRequestSchema)` to create a new message.\n */\nexport const ListSchedulesRequestSchema: GenMessage<ListSchedulesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 2);\n\n/**\n * ScheduleList — list response (OffsetPage[ScheduleView]).\n *\n * @generated from message cmdop.core.v1.ScheduleList\n */\nexport type ScheduleList = Message<\"cmdop.core.v1.ScheduleList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.ScheduleView items = 1;\n */\n items: ScheduleView[];\n\n /**\n * @generated from field: int32 offset = 2;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 3;\n */\n perPage: number;\n\n /**\n * @generated from field: int32 total = 4;\n */\n total: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.ScheduleList.\n * Use `create(ScheduleListSchema)` to create a new message.\n */\nexport const ScheduleListSchema: GenMessage<ScheduleList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 3);\n\n/**\n * GetScheduleRequest — GET /api/fleets/{fleet_id}/schedules/{schedule_id}.\n *\n * @generated from message cmdop.core.v1.GetScheduleRequest\n */\nexport type GetScheduleRequest = Message<\"cmdop.core.v1.GetScheduleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.GetScheduleRequest.\n * Use `create(GetScheduleRequestSchema)` to create a new message.\n */\nexport const GetScheduleRequestSchema: GenMessage<GetScheduleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 4);\n\n/**\n * CreateScheduleRequest — POST /api/fleets/{fleet_id}/schedules\n * (report 01 §8, _schedules_schemas.py:91).\n *\n * @generated from message cmdop.core.v1.CreateScheduleRequest\n */\nexport type CreateScheduleRequest = Message<\"cmdop.core.v1.CreateScheduleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string description = 3;\n */\n description: string;\n\n /**\n * @generated from field: string cron_expr = 4;\n */\n cronExpr: string;\n\n /**\n * @generated from field: string timezone = 5;\n */\n timezone: string;\n\n /**\n * @generated from field: string command = 6;\n */\n command: string;\n\n /**\n * @generated from field: cmdop.core.v1.ScheduleTargetKind target_kind = 7;\n */\n targetKind: ScheduleTargetKind;\n\n /**\n * @generated from field: bool is_enabled = 8;\n */\n isEnabled: boolean;\n\n /**\n * @generated from field: repeated string machine_ids = 9;\n */\n machineIds: string[];\n};\n\n/**\n * Describes the message cmdop.core.v1.CreateScheduleRequest.\n * Use `create(CreateScheduleRequestSchema)` to create a new message.\n */\nexport const CreateScheduleRequestSchema: GenMessage<CreateScheduleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 5);\n\n/**\n * UpdateScheduleRequest — PATCH /api/fleets/{fleet_id}/schedules/{schedule_id}\n * (report 01 §8, _schedules_schemas.py:102). All fields optional/nullable.\n *\n * @generated from message cmdop.core.v1.UpdateScheduleRequest\n */\nexport type UpdateScheduleRequest = Message<\"cmdop.core.v1.UpdateScheduleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n\n /**\n * @generated from field: optional string name = 3;\n */\n name?: string | undefined;\n\n /**\n * @generated from field: optional string description = 4;\n */\n description?: string | undefined;\n\n /**\n * @generated from field: optional string cron_expr = 5;\n */\n cronExpr?: string | undefined;\n\n /**\n * @generated from field: optional string timezone = 6;\n */\n timezone?: string | undefined;\n\n /**\n * @generated from field: optional string command = 7;\n */\n command?: string | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.ScheduleTargetKind target_kind = 8;\n */\n targetKind?: ScheduleTargetKind | undefined;\n\n /**\n * @generated from field: optional bool is_enabled = 9;\n */\n isEnabled?: boolean | undefined;\n\n /**\n * @generated from field: repeated string machine_ids = 10;\n */\n machineIds: string[];\n};\n\n/**\n * Describes the message cmdop.core.v1.UpdateScheduleRequest.\n * Use `create(UpdateScheduleRequestSchema)` to create a new message.\n */\nexport const UpdateScheduleRequestSchema: GenMessage<UpdateScheduleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 6);\n\n/**\n * DeleteScheduleRequest — DELETE /api/fleets/{fleet_id}/schedules/{schedule_id} → 204.\n *\n * @generated from message cmdop.core.v1.DeleteScheduleRequest\n */\nexport type DeleteScheduleRequest = Message<\"cmdop.core.v1.DeleteScheduleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.DeleteScheduleRequest.\n * Use `create(DeleteScheduleRequestSchema)` to create a new message.\n */\nexport const DeleteScheduleRequestSchema: GenMessage<DeleteScheduleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 7);\n\n/**\n * TriggerScheduleRequest — POST /api/fleets/{fleet_id}/schedules/{schedule_id}/run.\n *\n * @generated from message cmdop.core.v1.TriggerScheduleRequest\n */\nexport type TriggerScheduleRequest = Message<\"cmdop.core.v1.TriggerScheduleRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.TriggerScheduleRequest.\n * Use `create(TriggerScheduleRequestSchema)` to create a new message.\n */\nexport const TriggerScheduleRequestSchema: GenMessage<TriggerScheduleRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 8);\n\n/**\n * ManualTriggerResponse — report 01 §8 (_schedules_schemas.py:78).\n *\n * @generated from message cmdop.core.v1.ManualTriggerResponse\n */\nexport type ManualTriggerResponse = Message<\"cmdop.core.v1.ManualTriggerResponse\"> & {\n /**\n * @generated from field: bool queued = 1;\n */\n queued: boolean;\n\n /**\n * @generated from field: string job_id = 2;\n */\n jobId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ManualTriggerResponse.\n * Use `create(ManualTriggerResponseSchema)` to create a new message.\n */\nexport const ManualTriggerResponseSchema: GenMessage<ManualTriggerResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 9);\n\n/**\n * ScheduleRunsRequest — GET /api/fleets/{fleet_id}/schedules/{schedule_id}/runs\n * (cursor pagination).\n *\n * @generated from message cmdop.core.v1.ScheduleRunsRequest\n */\nexport type ScheduleRunsRequest = Message<\"cmdop.core.v1.ScheduleRunsRequest\"> & {\n /**\n * @generated from field: string fleet_id = 1;\n */\n fleetId: string;\n\n /**\n * @generated from field: string schedule_id = 2;\n */\n scheduleId: string;\n\n /**\n * @generated from field: int32 limit = 3;\n */\n limit: number;\n\n /**\n * @generated from field: optional string cursor = 4;\n */\n cursor?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ScheduleRunsRequest.\n * Use `create(ScheduleRunsRequestSchema)` to create a new message.\n */\nexport const ScheduleRunsRequestSchema: GenMessage<ScheduleRunsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 10);\n\n/**\n * ScheduleRunList — runs response, cursor pagination\n * (report 01 §8, _schedules_schemas.py:71).\n *\n * @generated from message cmdop.core.v1.ScheduleRunList\n */\nexport type ScheduleRunList = Message<\"cmdop.core.v1.ScheduleRunList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.ScheduleRunView items = 1;\n */\n items: ScheduleRunView[];\n\n /**\n * @generated from field: optional string next_cursor = 2;\n */\n nextCursor?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ScheduleRunList.\n * Use `create(ScheduleRunListSchema)` to create a new message.\n */\nexport const ScheduleRunListSchema: GenMessage<ScheduleRunList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_schedules, 11);\n\n","// skills.* (marketplace) request/response messages.\n//\n// Skills live on the Django PLATFORM plane (UserAPIKey / X-Api-Key), NOT the\n// relay. These messages mirror the Django skills OpenAPI (the ogen client at\n// cmdop_go/go/pkg/api/django, ops SkillsSkills* / SkillsCategories* /\n// SkillsTags*) field-for-field. RFC3339 datetimes and UUIDs are carried as\n// `string`. Nullable fields become `optional`. Page-number pagination (the\n// Django PaginatedSkill*List shape), distinct from the relay's offset/cursor.\n//\n// See @plans/skills-bots-in-go/reports/01 (op semantics) + 05 (codegen facts).\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/skills.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/skills.proto.\n */\nexport const file_cmdop_core_v1_skills: GenFile = /*@__PURE__*/\n fileDesc(\"ChpjbWRvcC9jb3JlL3YxL3NraWxscy5wcm90bxINY21kb3AuY29yZS52MSIyCghTa2lsbFRhZxIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEgwKBHNsdWcYAyABKAkitgEKDVNraWxsQ2F0ZWdvcnkSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIMCgRzbHVnGAMgASgJEhgKC2Rlc2NyaXB0aW9uGAQgASgJSACIAQESEQoEaWNvbhgFIAEoCUgBiAEBEhUKCG9yZGVyaW5nGAYgASgFSAKIAQESEwoLc2tpbGxfY291bnQYByABKAVCDgoMX2Rlc2NyaXB0aW9uQgcKBV9pY29uQgsKCV9vcmRlcmluZyK2AQoMU2tpbGxWZXJzaW9uEgoKAmlkGAEgASgJEg0KBXNraWxsGAIgASgJEg8KB3ZlcnNpb24YAyABKAkSFQoIc2tpbGxfbWQYBCABKAlIAIgBARIWCgljaGFuZ2Vsb2cYBSABKAlIAYgBARISCgVtb2RlbBgGIAEoCUgCiAEBEhIKCmNyZWF0ZWRfYXQYByABKAlCCwoJX3NraWxsX21kQgwKCl9jaGFuZ2Vsb2dCCAoGX21vZGVsItYBCgtTa2lsbFJldmlldxIKCgJpZBgBIAEoCRIVCg1hdXRob3JfaGFuZGxlGAIgASgJEhsKE2F1dGhvcl9kaXNwbGF5X25hbWUYAyABKAkSGQoRYXV0aG9yX2F2YXRhcl91cmwYBCABKAkSDAoEYm9keRgFIAEoCRIUCgxpc19yZXdyaXR0ZW4YBiABKAgSDgoGc291cmNlGAcgASgJEiAKE3Vwc3RyZWFtX2NyZWF0ZWRfYXQYCCABKAlIAIgBAUIWChRfdXBzdHJlYW1fY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XN0EgwKBHNsdWcYASABKAkiLQobU2tpbGxzUHVibGlzaFN0YXR1c1Jlc3BvbnNlEg4KBnN0YXR1cxgBIAEoCSJdChdTa2lsbHNDYXRlZ29yaWVzUmVxdWVzdBITCgZzZWFyY2gYASABKAlIAIgBARIVCghvcmRlcmluZxgCIAEoCUgBiAEBQgkKB19zZWFyY2hCCwoJX29yZGVyaW5nIkAKEVNraWxsQ2F0ZWdvcnlMaXN0EisKBWl0ZW1zGAEgAygLMhwuY21kb3AuY29yZS52MS5Ta2lsbENhdGVnb3J5IlcKEVNraWxsc1RhZ3NSZXF1ZXN0EhMKBnNlYXJjaBgBIAEoCUgAiAEBEhUKCG9yZGVyaW5nGAIgASgJSAGIAQFCCQoHX3NlYXJjaEILCglfb3JkZXJpbmciNgoMU2tpbGxUYWdMaXN0EiYKBWl0ZW1zGAEgAygLMhcuY21kb3AuY29yZS52MS5Ta2lsbFRhZ0K0AQoRY29tLmNtZG9wLmNvcmUudjFCC1NraWxsc1Byb3RvUAFaPGdpdGh1Yi5jb20vY21kb3AvY21kb3AvZ28vcGtnL2NvcmVwcm90by9jbWRvcC9jb3JlL3YxO2NvcmV2MaICA0NDWKoCDUNtZG9wLkNvcmUuVjHKAg1DbWRvcFxDb3JlXFYx4gIZQ21kb3BcQ29yZVxWMVxHUEJNZXRhZGF0YeoCD0NtZG9wOjpDb3JlOjpWMWIGcHJvdG8z\");\n\n/**\n * SkillTag — SkillsTags* (read-only taxonomy).\n *\n * @generated from message cmdop.core.v1.SkillTag\n */\nexport type SkillTag = Message<\"cmdop.core.v1.SkillTag\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillTag.\n * Use `create(SkillTagSchema)` to create a new message.\n */\nexport const SkillTagSchema: GenMessage<SkillTag> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 0);\n\n/**\n * SkillCategory — SkillsCategories* (read-only taxonomy, annotated skill_count).\n *\n * @generated from message cmdop.core.v1.SkillCategory\n */\nexport type SkillCategory = Message<\"cmdop.core.v1.SkillCategory\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n\n /**\n * @generated from field: optional string description = 4;\n */\n description?: string | undefined;\n\n /**\n * @generated from field: optional string icon = 5;\n */\n icon?: string | undefined;\n\n /**\n * @generated from field: optional int32 ordering = 6;\n */\n ordering?: number | undefined;\n\n /**\n * @generated from field: int32 skill_count = 7;\n */\n skillCount: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillCategory.\n * Use `create(SkillCategorySchema)` to create a new message.\n */\nexport const SkillCategorySchema: GenMessage<SkillCategory> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 1);\n\n/**\n * SkillVersion — a published version record (SkillsSkillsVersionsList items).\n *\n * @generated from message cmdop.core.v1.SkillVersion\n */\nexport type SkillVersion = Message<\"cmdop.core.v1.SkillVersion\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * owning skill UUID\n *\n * @generated from field: string skill = 2;\n */\n skill: string;\n\n /**\n * @generated from field: string version = 3;\n */\n version: string;\n\n /**\n * system-prompt markdown\n *\n * @generated from field: optional string skill_md = 4;\n */\n skillMd?: string | undefined;\n\n /**\n * @generated from field: optional string changelog = 5;\n */\n changelog?: string | undefined;\n\n /**\n * model parsed from skill.md frontmatter\n *\n * @generated from field: optional string model = 6;\n */\n model?: string | undefined;\n\n /**\n * @generated from field: string created_at = 7;\n */\n createdAt: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillVersion.\n * Use `create(SkillVersionSchema)` to create a new message.\n */\nexport const SkillVersionSchema: GenMessage<SkillVersion> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 2);\n\n/**\n * SkillReview — a marketplace review (SkillsSkillsReviewsList items).\n *\n * @generated from message cmdop.core.v1.SkillReview\n */\nexport type SkillReview = Message<\"cmdop.core.v1.SkillReview\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string author_handle = 2;\n */\n authorHandle: string;\n\n /**\n * @generated from field: string author_display_name = 3;\n */\n authorDisplayName: string;\n\n /**\n * @generated from field: string author_avatar_url = 4;\n */\n authorAvatarUrl: string;\n\n /**\n * @generated from field: string body = 5;\n */\n body: string;\n\n /**\n * @generated from field: bool is_rewritten = 6;\n */\n isRewritten: boolean;\n\n /**\n * @generated from field: string source = 7;\n */\n source: string;\n\n /**\n * @generated from field: optional string upstream_created_at = 8;\n */\n upstreamCreatedAt?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillReview.\n * Use `create(SkillReviewSchema)` to create a new message.\n */\nexport const SkillReviewSchema: GenMessage<SkillReview> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 3);\n\n/**\n * SkillSummary — the marketplace card shape (PaginatedSkillListList.results /\n * SkillList serializer). The browse / my-skills list item.\n *\n * @generated from message cmdop.core.v1.SkillSummary\n */\nexport type SkillSummary = Message<\"cmdop.core.v1.SkillSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string short_description = 4;\n */\n shortDescription: string;\n\n /**\n * @generated from field: int32 author = 5;\n */\n author: number;\n\n /**\n * @generated from field: string author_username = 6;\n */\n authorUsername: string;\n\n /**\n * category UUID (nullable)\n *\n * @generated from field: optional string category = 7;\n */\n category?: string | undefined;\n\n /**\n * @generated from field: optional string category_name = 8;\n */\n categoryName?: string | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillTag tags = 9;\n */\n tags: SkillTag[];\n\n /**\n * visibility enum string\n *\n * @generated from field: optional string visibility = 10;\n */\n visibility?: string | undefined;\n\n /**\n * skill status enum string\n *\n * @generated from field: optional string status = 11;\n */\n status?: string | undefined;\n\n /**\n * @generated from field: bool is_verified = 12;\n */\n isVerified: boolean;\n\n /**\n * @generated from field: optional string icon = 13;\n */\n icon?: string | undefined;\n\n /**\n * @generated from field: optional string cover = 14;\n */\n cover?: string | undefined;\n\n /**\n * @generated from field: int32 install_count = 15;\n */\n installCount: number;\n\n /**\n * @generated from field: int32 star_count = 16;\n */\n starCount: number;\n\n /**\n * @generated from field: int32 download_count = 17;\n */\n downloadCount: number;\n\n /**\n * @generated from field: int32 review_count = 18;\n */\n reviewCount: number;\n\n /**\n * @generated from field: optional bool is_starred = 19;\n */\n isStarred?: boolean | undefined;\n\n /**\n * @generated from field: string created_at = 20;\n */\n createdAt: string;\n\n /**\n * @generated from field: string updated_at = 21;\n */\n updatedAt: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillSummary.\n * Use `create(SkillSummarySchema)` to create a new message.\n */\nexport const SkillSummarySchema: GenMessage<SkillSummary> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 4);\n\n/**\n * SkillDetail — the detail-page shape (SkillsSkillsRetrieve / SkillDetail).\n *\n * @generated from message cmdop.core.v1.SkillDetail\n */\nexport type SkillDetail = Message<\"cmdop.core.v1.SkillDetail\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string short_description = 4;\n */\n shortDescription: string;\n\n /**\n * @generated from field: string description = 5;\n */\n description: string;\n\n /**\n * @generated from field: optional string readme = 6;\n */\n readme?: string | undefined;\n\n /**\n * @generated from field: int32 author = 7;\n */\n author: number;\n\n /**\n * @generated from field: string author_username = 8;\n */\n authorUsername: string;\n\n /**\n * @generated from field: optional cmdop.core.v1.SkillCategory category = 9;\n */\n category?: SkillCategory | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillTag tags = 10;\n */\n tags: SkillTag[];\n\n /**\n * @generated from field: optional string visibility = 11;\n */\n visibility?: string | undefined;\n\n /**\n * @generated from field: optional string status = 12;\n */\n status?: string | undefined;\n\n /**\n * @generated from field: bool is_verified = 13;\n */\n isVerified: boolean;\n\n /**\n * @generated from field: optional string icon = 14;\n */\n icon?: string | undefined;\n\n /**\n * @generated from field: optional string cover = 15;\n */\n cover?: string | undefined;\n\n /**\n * @generated from field: int32 install_count = 16;\n */\n installCount: number;\n\n /**\n * @generated from field: int32 star_count = 17;\n */\n starCount: number;\n\n /**\n * @generated from field: int32 download_count = 18;\n */\n downloadCount: number;\n\n /**\n * @generated from field: optional string repository_url = 19;\n */\n repositoryUrl?: string | undefined;\n\n /**\n * @generated from field: optional cmdop.core.v1.SkillVersion latest_version = 20;\n */\n latestVersion?: SkillVersion | undefined;\n\n /**\n * @generated from field: optional bool is_starred = 21;\n */\n isStarred?: boolean | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillReview reviews = 22;\n */\n reviews: SkillReview[];\n\n /**\n * @generated from field: int32 review_count = 23;\n */\n reviewCount: number;\n\n /**\n * @generated from field: string created_at = 24;\n */\n createdAt: string;\n\n /**\n * @generated from field: string updated_at = 25;\n */\n updatedAt: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillDetail.\n * Use `create(SkillDetailSchema)` to create a new message.\n */\nexport const SkillDetailSchema: GenMessage<SkillDetail> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 5);\n\n/**\n * SkillFile — one file in an install payload.\n *\n * @generated from message cmdop.core.v1.SkillFile\n */\nexport type SkillFile = Message<\"cmdop.core.v1.SkillFile\"> & {\n /**\n * @generated from field: string path = 1;\n */\n path: string;\n\n /**\n * @generated from field: string content = 2;\n */\n content: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillFile.\n * Use `create(SkillFileSchema)` to create a new message.\n */\nexport const SkillFileSchema: GenMessage<SkillFile> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 6);\n\n/**\n * SkillPackages — pip/npm deps in an install payload.\n *\n * @generated from message cmdop.core.v1.SkillPackages\n */\nexport type SkillPackages = Message<\"cmdop.core.v1.SkillPackages\"> & {\n /**\n * @generated from field: repeated string pip = 1;\n */\n pip: string[];\n\n /**\n * @generated from field: repeated string npm = 2;\n */\n npm: string[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillPackages.\n * Use `create(SkillPackagesSchema)` to create a new message.\n */\nexport const SkillPackagesSchema: GenMessage<SkillPackages> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 7);\n\n/**\n * SkillMeta — install metadata (meta.json).\n *\n * @generated from message cmdop.core.v1.SkillMeta\n */\nexport type SkillMeta = Message<\"cmdop.core.v1.SkillMeta\"> & {\n /**\n * @generated from field: string installed_at = 1;\n */\n installedAt: string;\n\n /**\n * @generated from field: string installed_from = 2;\n */\n installedFrom: string;\n\n /**\n * @generated from field: string installed_version = 3;\n */\n installedVersion: string;\n\n /**\n * @generated from field: optional string updated_at = 4;\n */\n updatedAt?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillMeta.\n * Use `create(SkillMetaSchema)` to create a new message.\n */\nexport const SkillMetaSchema: GenMessage<SkillMeta> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 8);\n\n/**\n * SkillInstall — the install payload (SkillsSkillsInstallCreate / SkillInstall).\n *\n * @generated from message cmdop.core.v1.SkillInstall\n */\nexport type SkillInstall = Message<\"cmdop.core.v1.SkillInstall\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string version = 2;\n */\n version: string;\n\n /**\n * @generated from field: string model = 3;\n */\n model: string;\n\n /**\n * @generated from field: string install_command = 4;\n */\n installCommand: string;\n\n /**\n * @generated from field: string readme = 5;\n */\n readme: string;\n\n /**\n * @generated from field: string skill_md = 6;\n */\n skillMd: string;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillFile files = 7;\n */\n files: SkillFile[];\n\n /**\n * @generated from field: cmdop.core.v1.SkillPackages packages = 8;\n */\n packages?: SkillPackages | undefined;\n\n /**\n * @generated from field: string run_check = 9;\n */\n runCheck: string;\n\n /**\n * @generated from field: cmdop.core.v1.SkillMeta meta = 10;\n */\n meta?: SkillMeta | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillInstall.\n * Use `create(SkillInstallSchema)` to create a new message.\n */\nexport const SkillInstallSchema: GenMessage<SkillInstall> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 9);\n\n/**\n * SkillStar — star toggle result (SkillsSkillsStarCreate / SkillStar).\n *\n * @generated from message cmdop.core.v1.SkillStar\n */\nexport type SkillStar = Message<\"cmdop.core.v1.SkillStar\"> & {\n /**\n * @generated from field: bool starred = 1;\n */\n starred: boolean;\n\n /**\n * @generated from field: int32 star_count = 2;\n */\n starCount: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillStar.\n * Use `create(SkillStarSchema)` to create a new message.\n */\nexport const SkillStarSchema: GenMessage<SkillStar> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 10);\n\n/**\n * SkillsListRequest — GET /skills/ (SkillsSkillsList). Page-number pagination.\n *\n * @generated from message cmdop.core.v1.SkillsListRequest\n */\nexport type SkillsListRequest = Message<\"cmdop.core.v1.SkillsListRequest\"> & {\n /**\n * category slug filter\n *\n * @generated from field: optional string category = 1;\n */\n category?: string | undefined;\n\n /**\n * tag slug filter\n *\n * @generated from field: optional string tag = 2;\n */\n tag?: string | undefined;\n\n /**\n * @generated from field: optional string search = 3;\n */\n search?: string | undefined;\n\n /**\n * locale code for translations\n *\n * @generated from field: optional string lang = 4;\n */\n lang?: string | undefined;\n\n /**\n * @generated from field: optional string ordering = 5;\n */\n ordering?: string | undefined;\n\n /**\n * @generated from field: optional int32 page = 6;\n */\n page?: number | undefined;\n\n /**\n * @generated from field: optional int32 page_size = 7;\n */\n pageSize?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsListRequest.\n * Use `create(SkillsListRequestSchema)` to create a new message.\n */\nexport const SkillsListRequestSchema: GenMessage<SkillsListRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 11);\n\n/**\n * SkillsMyRequest — GET /skills/my/ (SkillsSkillsMyList). Author's own skills.\n *\n * @generated from message cmdop.core.v1.SkillsMyRequest\n */\nexport type SkillsMyRequest = Message<\"cmdop.core.v1.SkillsMyRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string | undefined;\n\n /**\n * @generated from field: optional string ordering = 2;\n */\n ordering?: string | undefined;\n\n /**\n * @generated from field: optional int32 page = 3;\n */\n page?: number | undefined;\n\n /**\n * @generated from field: optional int32 page_size = 4;\n */\n pageSize?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsMyRequest.\n * Use `create(SkillsMyRequestSchema)` to create a new message.\n */\nexport const SkillsMyRequestSchema: GenMessage<SkillsMyRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 12);\n\n/**\n * SkillListPage — the Django page-number list response (shared by list + my).\n *\n * @generated from message cmdop.core.v1.SkillListPage\n */\nexport type SkillListPage = Message<\"cmdop.core.v1.SkillListPage\"> & {\n /**\n * @generated from field: int32 count = 1;\n */\n count: number;\n\n /**\n * @generated from field: int32 page = 2;\n */\n page: number;\n\n /**\n * @generated from field: int32 pages = 3;\n */\n pages: number;\n\n /**\n * @generated from field: int32 page_size = 4;\n */\n pageSize: number;\n\n /**\n * @generated from field: bool has_next = 5;\n */\n hasNext: boolean;\n\n /**\n * @generated from field: bool has_previous = 6;\n */\n hasPrevious: boolean;\n\n /**\n * @generated from field: optional int32 next_page = 7;\n */\n nextPage?: number | undefined;\n\n /**\n * @generated from field: optional int32 previous_page = 8;\n */\n previousPage?: number | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillSummary results = 9;\n */\n results: SkillSummary[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillListPage.\n * Use `create(SkillListPageSchema)` to create a new message.\n */\nexport const SkillListPageSchema: GenMessage<SkillListPage> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 13);\n\n/**\n * SkillsGetRequest — GET /skills/{slug}/ (SkillsSkillsRetrieve).\n *\n * @generated from message cmdop.core.v1.SkillsGetRequest\n */\nexport type SkillsGetRequest = Message<\"cmdop.core.v1.SkillsGetRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: optional string lang = 2;\n */\n lang?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsGetRequest.\n * Use `create(SkillsGetRequestSchema)` to create a new message.\n */\nexport const SkillsGetRequestSchema: GenMessage<SkillsGetRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 14);\n\n/**\n * SkillsInstallRequest — POST /skills/{slug}/install/.\n *\n * @generated from message cmdop.core.v1.SkillsInstallRequest\n */\nexport type SkillsInstallRequest = Message<\"cmdop.core.v1.SkillsInstallRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsInstallRequest.\n * Use `create(SkillsInstallRequestSchema)` to create a new message.\n */\nexport const SkillsInstallRequestSchema: GenMessage<SkillsInstallRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 15);\n\n/**\n * SkillsStarRequest — POST /skills/{slug}/star/.\n *\n * @generated from message cmdop.core.v1.SkillsStarRequest\n */\nexport type SkillsStarRequest = Message<\"cmdop.core.v1.SkillsStarRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsStarRequest.\n * Use `create(SkillsStarRequestSchema)` to create a new message.\n */\nexport const SkillsStarRequestSchema: GenMessage<SkillsStarRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 16);\n\n/**\n * SkillsVersionsRequest — GET /skills/{slug}/versions/ (unpaginated).\n *\n * @generated from message cmdop.core.v1.SkillsVersionsRequest\n */\nexport type SkillsVersionsRequest = Message<\"cmdop.core.v1.SkillsVersionsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsVersionsRequest.\n * Use `create(SkillsVersionsRequestSchema)` to create a new message.\n */\nexport const SkillsVersionsRequestSchema: GenMessage<SkillsVersionsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 17);\n\n/**\n * SkillVersionList — the versions response.\n *\n * @generated from message cmdop.core.v1.SkillVersionList\n */\nexport type SkillVersionList = Message<\"cmdop.core.v1.SkillVersionList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.SkillVersion items = 1;\n */\n items: SkillVersion[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillVersionList.\n * Use `create(SkillVersionListSchema)` to create a new message.\n */\nexport const SkillVersionListSchema: GenMessage<SkillVersionList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 18);\n\n/**\n * SkillsReviewsRequest — GET /skills/{slug}/reviews/ (paginated).\n *\n * @generated from message cmdop.core.v1.SkillsReviewsRequest\n */\nexport type SkillsReviewsRequest = Message<\"cmdop.core.v1.SkillsReviewsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string | undefined;\n\n /**\n * @generated from field: optional string ordering = 3;\n */\n ordering?: string | undefined;\n\n /**\n * @generated from field: optional int32 page = 4;\n */\n page?: number | undefined;\n\n /**\n * @generated from field: optional int32 page_size = 5;\n */\n pageSize?: number | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsReviewsRequest.\n * Use `create(SkillsReviewsRequestSchema)` to create a new message.\n */\nexport const SkillsReviewsRequestSchema: GenMessage<SkillsReviewsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 19);\n\n/**\n * SkillReviewPage — the reviews page-number list response.\n *\n * @generated from message cmdop.core.v1.SkillReviewPage\n */\nexport type SkillReviewPage = Message<\"cmdop.core.v1.SkillReviewPage\"> & {\n /**\n * @generated from field: int32 count = 1;\n */\n count: number;\n\n /**\n * @generated from field: int32 page = 2;\n */\n page: number;\n\n /**\n * @generated from field: int32 pages = 3;\n */\n pages: number;\n\n /**\n * @generated from field: int32 page_size = 4;\n */\n pageSize: number;\n\n /**\n * @generated from field: bool has_next = 5;\n */\n hasNext: boolean;\n\n /**\n * @generated from field: bool has_previous = 6;\n */\n hasPrevious: boolean;\n\n /**\n * @generated from field: optional int32 next_page = 7;\n */\n nextPage?: number | undefined;\n\n /**\n * @generated from field: optional int32 previous_page = 8;\n */\n previousPage?: number | undefined;\n\n /**\n * @generated from field: repeated cmdop.core.v1.SkillReview results = 9;\n */\n results: SkillReview[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillReviewPage.\n * Use `create(SkillReviewPageSchema)` to create a new message.\n */\nexport const SkillReviewPageSchema: GenMessage<SkillReviewPage> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 20);\n\n/**\n * SkillsCreateRequest — POST /skills/ (SkillsSkillsCreate). Name only; the\n * server fills the rest (category/visibility resolved on publish).\n *\n * @generated from message cmdop.core.v1.SkillsCreateRequest\n */\nexport type SkillsCreateRequest = Message<\"cmdop.core.v1.SkillsCreateRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsCreateRequest.\n * Use `create(SkillsCreateRequestSchema)` to create a new message.\n */\nexport const SkillsCreateRequestSchema: GenMessage<SkillsCreateRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 21);\n\n/**\n * SkillCreated — SkillsSkillsCreate response (SkillCreate{name}).\n *\n * @generated from message cmdop.core.v1.SkillCreated\n */\nexport type SkillCreated = Message<\"cmdop.core.v1.SkillCreated\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillCreated.\n * Use `create(SkillCreatedSchema)` to create a new message.\n */\nexport const SkillCreatedSchema: GenMessage<SkillCreated> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 22);\n\n/**\n * SkillsUpdateRequest — PATCH /skills/{slug}/ (SkillsSkillsPartialUpdate). All\n * fields optional (a partial update); category is a category SLUG.\n *\n * @generated from message cmdop.core.v1.SkillsUpdateRequest\n */\nexport type SkillsUpdateRequest = Message<\"cmdop.core.v1.SkillsUpdateRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: optional string name = 2;\n */\n name?: string | undefined;\n\n /**\n * category slug (e.g. \"development\")\n *\n * @generated from field: optional string category = 3;\n */\n category?: string | undefined;\n\n /**\n * visibility enum string\n *\n * @generated from field: optional string visibility = 4;\n */\n visibility?: string | undefined;\n\n /**\n * skill status enum string\n *\n * @generated from field: optional string status = 5;\n */\n status?: string | undefined;\n\n /**\n * @generated from field: optional string icon = 6;\n */\n icon?: string | undefined;\n\n /**\n * @generated from field: optional string cover = 7;\n */\n cover?: string | undefined;\n\n /**\n * @generated from field: optional string repository_url = 8;\n */\n repositoryUrl?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsUpdateRequest.\n * Use `create(SkillsUpdateRequestSchema)` to create a new message.\n */\nexport const SkillsUpdateRequestSchema: GenMessage<SkillsUpdateRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 23);\n\n/**\n * SkillUpdated — SkillsSkillsPartialUpdate response (SkillUpdate).\n *\n * @generated from message cmdop.core.v1.SkillUpdated\n */\nexport type SkillUpdated = Message<\"cmdop.core.v1.SkillUpdated\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: optional string category = 2;\n */\n category?: string | undefined;\n\n /**\n * @generated from field: optional string visibility = 3;\n */\n visibility?: string | undefined;\n\n /**\n * @generated from field: optional string status = 4;\n */\n status?: string | undefined;\n\n /**\n * @generated from field: optional string icon = 5;\n */\n icon?: string | undefined;\n\n /**\n * @generated from field: optional string cover = 6;\n */\n cover?: string | undefined;\n\n /**\n * @generated from field: optional string repository_url = 7;\n */\n repositoryUrl?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillUpdated.\n * Use `create(SkillUpdatedSchema)` to create a new message.\n */\nexport const SkillUpdatedSchema: GenMessage<SkillUpdated> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 24);\n\n/**\n * SkillsDeleteRequest — DELETE /skills/{slug}/ → 204 (Empty).\n *\n * @generated from message cmdop.core.v1.SkillsDeleteRequest\n */\nexport type SkillsDeleteRequest = Message<\"cmdop.core.v1.SkillsDeleteRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsDeleteRequest.\n * Use `create(SkillsDeleteRequestSchema)` to create a new message.\n */\nexport const SkillsDeleteRequestSchema: GenMessage<SkillsDeleteRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 25);\n\n/**\n * SkillsPublishRequest — POST /skills/{slug}/publish/ → 202 (server LLM-parses\n * raw_manifest+skill_md async; poll publish_status afterwards).\n *\n * @generated from message cmdop.core.v1.SkillsPublishRequest\n */\nexport type SkillsPublishRequest = Message<\"cmdop.core.v1.SkillsPublishRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * literal pyproject.toml / package.json contents\n *\n * @generated from field: string raw_manifest = 2;\n */\n rawManifest: string;\n\n /**\n * @generated from field: optional string skill_md = 3;\n */\n skillMd?: string | undefined;\n\n /**\n * @generated from field: optional string readme = 4;\n */\n readme?: string | undefined;\n\n /**\n * @generated from field: optional string changelog = 5;\n */\n changelog?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsPublishRequest.\n * Use `create(SkillsPublishRequestSchema)` to create a new message.\n */\nexport const SkillsPublishRequestSchema: GenMessage<SkillsPublishRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 26);\n\n/**\n * SkillsPublishResponse — the publish ack. The Django endpoint returns an empty\n * 202 body, so `status` is derived from the HTTP status (\"accepted\"), not a\n * JSON field. Poll skills.publish_status for the parse result.\n *\n * @generated from message cmdop.core.v1.SkillsPublishResponse\n */\nexport type SkillsPublishResponse = Message<\"cmdop.core.v1.SkillsPublishResponse\"> & {\n /**\n * @generated from field: string status = 1;\n */\n status: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsPublishResponse.\n * Use `create(SkillsPublishResponseSchema)` to create a new message.\n */\nexport const SkillsPublishResponseSchema: GenMessage<SkillsPublishResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 27);\n\n/**\n * SkillsPublishStatusRequest — GET /skills/{slug}/publish-status/.\n *\n * @generated from message cmdop.core.v1.SkillsPublishStatusRequest\n */\nexport type SkillsPublishStatusRequest = Message<\"cmdop.core.v1.SkillsPublishStatusRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsPublishStatusRequest.\n * Use `create(SkillsPublishStatusRequestSchema)` to create a new message.\n */\nexport const SkillsPublishStatusRequestSchema: GenMessage<SkillsPublishStatusRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 28);\n\n/**\n * SkillsPublishStatusResponse — the poll result. The Django endpoint's response\n * body is not modeled in the OpenAPI (the ogen op discards it), so `status` is\n * derived from the HTTP status (\"ok\"); a richer body can be added when the\n * server schema is modeled. Flagged in PLAN-skills.md caveats.\n *\n * @generated from message cmdop.core.v1.SkillsPublishStatusResponse\n */\nexport type SkillsPublishStatusResponse = Message<\"cmdop.core.v1.SkillsPublishStatusResponse\"> & {\n /**\n * @generated from field: string status = 1;\n */\n status: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsPublishStatusResponse.\n * Use `create(SkillsPublishStatusResponseSchema)` to create a new message.\n */\nexport const SkillsPublishStatusResponseSchema: GenMessage<SkillsPublishStatusResponse> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 29);\n\n/**\n * SkillsCategoriesRequest — GET /categories/ (unpaginated, public).\n *\n * @generated from message cmdop.core.v1.SkillsCategoriesRequest\n */\nexport type SkillsCategoriesRequest = Message<\"cmdop.core.v1.SkillsCategoriesRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string | undefined;\n\n /**\n * @generated from field: optional string ordering = 2;\n */\n ordering?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsCategoriesRequest.\n * Use `create(SkillsCategoriesRequestSchema)` to create a new message.\n */\nexport const SkillsCategoriesRequestSchema: GenMessage<SkillsCategoriesRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 30);\n\n/**\n * SkillCategoryList — categories response.\n *\n * @generated from message cmdop.core.v1.SkillCategoryList\n */\nexport type SkillCategoryList = Message<\"cmdop.core.v1.SkillCategoryList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.SkillCategory items = 1;\n */\n items: SkillCategory[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillCategoryList.\n * Use `create(SkillCategoryListSchema)` to create a new message.\n */\nexport const SkillCategoryListSchema: GenMessage<SkillCategoryList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 31);\n\n/**\n * SkillsTagsRequest — GET /tags/ (unpaginated, public).\n *\n * @generated from message cmdop.core.v1.SkillsTagsRequest\n */\nexport type SkillsTagsRequest = Message<\"cmdop.core.v1.SkillsTagsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string | undefined;\n\n /**\n * @generated from field: optional string ordering = 2;\n */\n ordering?: string | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillsTagsRequest.\n * Use `create(SkillsTagsRequestSchema)` to create a new message.\n */\nexport const SkillsTagsRequestSchema: GenMessage<SkillsTagsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 32);\n\n/**\n * SkillTagList — tags response.\n *\n * @generated from message cmdop.core.v1.SkillTagList\n */\nexport type SkillTagList = Message<\"cmdop.core.v1.SkillTagList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.SkillTag items = 1;\n */\n items: SkillTag[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SkillTagList.\n * Use `create(SkillTagListSchema)` to create a new message.\n */\nexport const SkillTagListSchema: GenMessage<SkillTagList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_skills, 33);\n\n","// tunnels.* request/response messages. Mirrors report 01 §7 (tunnels.py)\n// field-for-field. Offset pagination.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/tunnels.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { OffsetPage } from \"./common_pb\";\nimport { file_cmdop_core_v1_common } from \"./common_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/tunnels.proto.\n */\nexport const file_cmdop_core_v1_tunnels: GenFile = /*@__PURE__*/\n fileDesc(\"ChtjbWRvcC9jb3JlL3YxL3R1bm5lbHMucHJvdG8SDWNtZG9wLmNvcmUudjEiugEKClR1bm5lbFZpZXcSEQoJdHVubmVsX2lkGAEgASgJEhAKCGZsZWV0X2lkGAIgASgJEhIKCnNlc3Npb25faWQYAyABKAkSEQoJc3ViZG9tYWluGAQgASgJEhIKCmxvY2FsX2hvc3QYBSABKAkSEgoKbG9jYWxfcG9ydBgGIAEoBRIQCghwcm90b2NvbBgHIAEoCRISCgpjcmVhdGVkX2F0GAggASgJEhIKCnB1YmxpY191cmwYCSAB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9wL2NvcmUvdjE7Y29yZXYxogIDQ0NYqgINQ21kb3AuQ29yZS5WMcoCDUNtZG9wXENvcmVcVjHiAhlDbWRvcFxDb3JlXFYxXEdQQk1ldGFkYXRh6gIPQ21kb3A6OkNvcmU6OlYxYgZwcm90bzM\", [file_cmdop_core_v1_common]);\n\n/**\n * TunnelView — report 01 §7 (tunnels.py:90). public_url is composed server-side.\n *\n * @generated from message cmdop.core.v1.TunnelView\n */\nexport type TunnelView = Message<\"cmdop.core.v1.TunnelView\"> & {\n /**\n * @generated from field: string tunnel_id = 1;\n */\n tunnelId: string;\n\n /**\n * @generated from field: string fleet_id = 2;\n */\n fleetId: string;\n\n /**\n * @generated from field: string session_id = 3;\n */\n sessionId: string;\n\n /**\n * @generated from field: string subdomain = 4;\n */\n subdomain: string;\n\n /**\n * @generated from field: string local_host = 5;\n */\n localHost: string;\n\n /**\n * @generated from field: int32 local_port = 6;\n */\n localPort: number;\n\n /**\n * @generated from field: string protocol = 7;\n */\n protocol: string;\n\n /**\n * @generated from field: string created_at = 8;\n */\n createdAt: string;\n\n /**\n * @generated from field: string public_url = 9;\n */\n publicUrl: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.TunnelView.\n * Use `create(TunnelViewSchema)` to create a new message.\n */\nexport const TunnelViewSchema: GenMessage<TunnelView> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 0);\n\n/**\n * ConnectedSessionOption — report 01 §7 (tunnels.py:72), the session picker.\n *\n * @generated from message cmdop.core.v1.ConnectedSessionOption\n */\nexport type ConnectedSessionOption = Message<\"cmdop.core.v1.ConnectedSessionOption\"> & {\n /**\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * @generated from field: optional string machine_id = 2;\n */\n machineId?: string | undefined;\n\n /**\n * @generated from field: string hostname = 3;\n */\n hostname: string;\n\n /**\n * @generated from field: string label = 4;\n */\n label: string;\n\n /**\n * @generated from field: string status = 5;\n */\n status: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.ConnectedSessionOption.\n * Use `create(ConnectedSessionOptionSchema)` to create a new message.\n */\nexport const ConnectedSessionOptionSchema: GenMessage<ConnectedSessionOption> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 1);\n\n/**\n * OpenTunnelRequest — POST /api/tunnels (report 01 §7, tunnels.py:63).\n *\n * @generated from message cmdop.core.v1.OpenTunnelRequest\n */\nexport type OpenTunnelRequest = Message<\"cmdop.core.v1.OpenTunnelRequest\"> & {\n /**\n * @generated from field: string session_id = 1;\n */\n sessionId: string;\n\n /**\n * @generated from field: string protocol = 2;\n */\n protocol: string;\n\n /**\n * @generated from field: string local_host = 3;\n */\n localHost: string;\n\n /**\n * @generated from field: int32 local_port = 4;\n */\n localPort: number;\n\n /**\n * @generated from field: optional string subdomain = 5;\n */\n subdomain?: string | undefined;\n\n /**\n * @generated from field: map<string, string> options = 6;\n */\n options: { [key: string]: string };\n};\n\n/**\n * Describes the message cmdop.core.v1.OpenTunnelRequest.\n * Use `create(OpenTunnelRequestSchema)` to create a new message.\n */\nexport const OpenTunnelRequestSchema: GenMessage<OpenTunnelRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 2);\n\n/**\n * CloseTunnelRequest — DELETE /api/tunnels/{tunnel_id} → 204.\n *\n * @generated from message cmdop.core.v1.CloseTunnelRequest\n */\nexport type CloseTunnelRequest = Message<\"cmdop.core.v1.CloseTunnelRequest\"> & {\n /**\n * @generated from field: string tunnel_id = 1;\n */\n tunnelId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.CloseTunnelRequest.\n * Use `create(CloseTunnelRequestSchema)` to create a new message.\n */\nexport const CloseTunnelRequestSchema: GenMessage<CloseTunnelRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 3);\n\n/**\n * ListTunnelsRequest — GET /api/tunnels (offset).\n *\n * @generated from message cmdop.core.v1.ListTunnelsRequest\n */\nexport type ListTunnelsRequest = Message<\"cmdop.core.v1.ListTunnelsRequest\"> & {\n /**\n * @generated from field: cmdop.core.v1.OffsetPage page = 1;\n */\n page?: OffsetPage | undefined;\n};\n\n/**\n * Describes the message cmdop.core.v1.ListTunnelsRequest.\n * Use `create(ListTunnelsRequestSchema)` to create a new message.\n */\nexport const ListTunnelsRequestSchema: GenMessage<ListTunnelsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 4);\n\n/**\n * GetTunnelRequest — GET /api/tunnels/{tunnel_id}.\n *\n * @generated from message cmdop.core.v1.GetTunnelRequest\n */\nexport type GetTunnelRequest = Message<\"cmdop.core.v1.GetTunnelRequest\"> & {\n /**\n * @generated from field: string tunnel_id = 1;\n */\n tunnelId: string;\n};\n\n/**\n * Describes the message cmdop.core.v1.GetTunnelRequest.\n * Use `create(GetTunnelRequestSchema)` to create a new message.\n */\nexport const GetTunnelRequestSchema: GenMessage<GetTunnelRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 5);\n\n/**\n * ListSessionsRequest — GET /api/tunnels/connected-sessions.\n *\n * @generated from message cmdop.core.v1.ListSessionsRequest\n */\nexport type ListSessionsRequest = Message<\"cmdop.core.v1.ListSessionsRequest\"> & {\n};\n\n/**\n * Describes the message cmdop.core.v1.ListSessionsRequest.\n * Use `create(ListSessionsRequestSchema)` to create a new message.\n */\nexport const ListSessionsRequestSchema: GenMessage<ListSessionsRequest> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 6);\n\n/**\n * TunnelList — GET /api/tunnels response (OffsetPage[TunnelView]).\n *\n * @generated from message cmdop.core.v1.TunnelList\n */\nexport type TunnelList = Message<\"cmdop.core.v1.TunnelList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.TunnelView items = 1;\n */\n items: TunnelView[];\n\n /**\n * @generated from field: int32 offset = 2;\n */\n offset: number;\n\n /**\n * @generated from field: int32 per_page = 3;\n */\n perPage: number;\n\n /**\n * @generated from field: int32 total = 4;\n */\n total: number;\n};\n\n/**\n * Describes the message cmdop.core.v1.TunnelList.\n * Use `create(TunnelListSchema)` to create a new message.\n */\nexport const TunnelListSchema: GenMessage<TunnelList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 7);\n\n/**\n * SessionList — GET /api/tunnels/connected-sessions response\n * (list[ConnectedSessionOption]).\n *\n * @generated from message cmdop.core.v1.SessionList\n */\nexport type SessionList = Message<\"cmdop.core.v1.SessionList\"> & {\n /**\n * @generated from field: repeated cmdop.core.v1.ConnectedSessionOption items = 1;\n */\n items: ConnectedSessionOption[];\n};\n\n/**\n * Describes the message cmdop.core.v1.SessionList.\n * Use `create(SessionListSchema)` to create a new message.\n */\nexport const SessionListSchema: GenMessage<SessionList> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_tunnels, 8);\n\n","// Envelope — the id-mux frame for the cmdop-core stdio protocol.\n//\n// One Envelope == one delimited frame on the pipe (protodelim / sizeDelimited).\n// `id` correlates all frames of one logical call; `kind` is the role\n// discriminator; `oneof payload` carries the typed body. Verbatim from\n// report 13 §4.1, expanded to every op.\n\n// @generated by protoc-gen-es v2.12.0 with parameter \"target=ts\"\n// @generated from file cmdop/core/v1/envelope.proto (package cmdop.core.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty } from \"./common_pb\";\nimport { file_cmdop_core_v1_common } from \"./common_pb\";\nimport type { AddMemberRequest, AttachMachineRequest, CreateFleetRequest, DetachMachineRequest, DisableFleetRequest, FleetList, FleetSummary, GetFleetRequest, ListFleetMachinesRequest, ListFleetsRequest, ListMembersRequest, MachineFleetLink, MemberInfo, MemberList, RemoveMemberRequest, SetMemberRoleRequest, UpdateFleetRequest } from \"./fleets_pb\";\nimport { file_cmdop_core_v1_fleets } from \"./fleets_pb\";\nimport type { ApiKeyList, IssueKeyRequest, IssueKeyResponse, ListKeysRequest, RevokeKeyRequest } from \"./keys_pb\";\nimport { file_cmdop_core_v1_keys } from \"./keys_pb\";\nimport type { ActiveSessionRequest, ActiveSessionResponse, AskFrame, AskRequest, ClearMessagesRequest, ClearMessagesResponse, ConfirmAnswer, ConfirmRequired, DisableMachineRequest, DoneInfo, ErrorInfo, GetMachineRequest, ListMachinesRequest, MachineDetail, MachineInfoRequest, MachineInfoResponse, MachineList, MachineSpend, MachineSpendRequest, MachineSummary, MessagesRequest, MessagesResponse, PinAnswer, PinRequired, UpdateMachineRequest } from \"./machines_pb\";\nimport { file_cmdop_core_v1_machines } from \"./machines_pb\";\nimport type { CreateScheduleRequest, DeleteScheduleRequest, GetScheduleRequest, ListSchedulesRequest, ManualTriggerResponse, ScheduleList, ScheduleRunList, ScheduleRunsRequest, ScheduleView, TriggerScheduleRequest, UpdateScheduleRequest } from \"./schedules_pb\";\nimport { file_cmdop_core_v1_schedules } from \"./schedules_pb\";\nimport type { SkillCategoryList, SkillCreated, SkillDetail, SkillInstall, SkillListPage, SkillReviewPage, SkillsCategoriesRequest, SkillsCreateRequest, SkillsDeleteRequest, SkillsGetRequest, SkillsInstallRequest, SkillsListRequest, SkillsMyRequest, SkillsPublishRequest, SkillsPublishResponse, SkillsPublishStatusRequest, SkillsPublishStatusResponse, SkillsReviewsRequest, SkillsStarRequest, SkillsTagsRequest, SkillStar, SkillsUpdateRequest, SkillsVersionsRequest, SkillTagList, SkillUpdated, SkillVersionList } from \"./skills_pb\";\nimport { file_cmdop_core_v1_skills } from \"./skills_pb\";\nimport type { CloseTunnelRequest, GetTunnelRequest, ListSessionsRequest, ListTunnelsRequest, OpenTunnelRequest, SessionList, TunnelList, TunnelView } from \"./tunnels_pb\";\nimport { file_cmdop_core_v1_tunnels } from \"./tunnels_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file cmdop/core/v1/envelope.proto.\n */\nexport const file_cmdop_core_v1_envelope: GenFile = /*@__PURE__*/\n fileDesc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FnX2xpc3QYhwEgASgLMhsuY21kb3AuY29yZS52MS5Ta2lsbFRhZ0xpc3RIABIqCgVlcnJvchjIASABKAsyGC5jbWRvcC5jb3JlLnYxLkVycm9ySW5mb0gAEiYKBWVtcHR5GMkBIAEoCzIULmNtZG9wLmNvcmUudjEuRW1wdHlIACKUAQoES2luZBIUChBLSU5EX1VOU1BFQ0lGSUVEEAASEAoMS0lORF9SRVFVRVNUEAESEQoNS0lORF9SRVNQT05TRRACEg4KCktJTkRfRVZFTlQQAxINCglLSU5EX0RPTkUQBBIOCgpLSU5EX0VSUk9SEAUSEQoNS0lORF9DQUxMQkFDSxAGEg8KC0tJTkRfQU5TV0VSEAdCCQoHcGF5bG9hZEK2AQoRY29tLmNtZG9wLmNvcmUudjFCDUVudmVsb3BlUHJvdG9QAVo8Z2l0aHViLmNvbS9jbWRvcC9jbWRvcC9nby9wa2cvY29yZXByb3RvL2NtZG9wL2NvcmUvdjE7Y29yZXYxogIDQ0NYqgINQ21kb3AuQ29yZS5WMcoCDUNtZG9wXENvcmVcVjHiAhlDbWRvcFxDb3JlXFYxXEdQQk1ldGFkYXRh6gIPQ21kb3A6OkNvcmU6OlYxYgZwcm90bzM\", [file_cmdop_core_v1_common, file_cmdop_core_v1_fleets, file_cmdop_core_v1_keys, file_cmdop_core_v1_machines, file_cmdop_core_v1_schedules, file_cmdop_core_v1_skills, file_cmdop_core_v1_tunnels]);\n\n/**\n * @generated from message cmdop.core.v1.Envelope\n */\nexport type Envelope = Message<\"cmdop.core.v1.Envelope\"> & {\n /**\n * correlation id; uint32 is plenty for one process\n *\n * @generated from field: uint32 id = 1;\n */\n id: number;\n\n /**\n * @generated from field: cmdop.core.v1.Envelope.Kind kind = 2;\n */\n kind: Envelope_Kind;\n\n /**\n * @generated from oneof cmdop.core.v1.Envelope.payload\n */\n payload: {\n /**\n * ── machines (unary) ──\n *\n * @generated from field: cmdop.core.v1.ListMachinesRequest list_machines_req = 10;\n */\n value: ListMachinesRequest;\n case: \"listMachinesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineList machine_list = 11;\n */\n value: MachineList;\n case: \"machineList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.GetMachineRequest get_machine_req = 12;\n */\n value: GetMachineRequest;\n case: \"getMachineReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineDetail machine_detail = 13;\n */\n value: MachineDetail;\n case: \"machineDetail\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.UpdateMachineRequest update_machine_req = 14;\n */\n value: UpdateMachineRequest;\n case: \"updateMachineReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineSummary machine_summary = 15;\n */\n value: MachineSummary;\n case: \"machineSummary\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.DisableMachineRequest disable_machine_req = 16;\n */\n value: DisableMachineRequest;\n case: \"disableMachineReq\";\n } | {\n /**\n * GET /info\n *\n * @generated from field: cmdop.core.v1.MachineInfoRequest machine_info_req = 17;\n */\n value: MachineInfoRequest;\n case: \"machineInfoReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineSpendRequest machine_spend_req = 18;\n */\n value: MachineSpendRequest;\n case: \"machineSpendReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineSpend machine_spend = 19;\n */\n value: MachineSpend;\n case: \"machineSpend\";\n } | {\n /**\n * GET /info response\n *\n * @generated from field: cmdop.core.v1.MachineInfoResponse machine_info_resp = 20;\n */\n value: MachineInfoResponse;\n case: \"machineInfoResp\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MessagesRequest messages_req = 30;\n */\n value: MessagesRequest;\n case: \"messagesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MessagesResponse messages_resp = 31;\n */\n value: MessagesResponse;\n case: \"messagesResp\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ClearMessagesRequest clear_messages_req = 32;\n */\n value: ClearMessagesRequest;\n case: \"clearMessagesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ClearMessagesResponse clear_messages_resp = 33;\n */\n value: ClearMessagesResponse;\n case: \"clearMessagesResp\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ActiveSessionRequest active_session_req = 34;\n */\n value: ActiveSessionRequest;\n case: \"activeSessionReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ActiveSessionResponse active_session_resp = 35;\n */\n value: ActiveSessionResponse;\n case: \"activeSessionResp\";\n } | {\n /**\n * ── machines.ask (streaming) ──\n *\n * kind=REQUEST\n *\n * @generated from field: cmdop.core.v1.AskRequest ask_req = 40;\n */\n value: AskRequest;\n case: \"askReq\";\n } | {\n /**\n * kind=EVENT (the SSE frame union)\n *\n * @generated from field: cmdop.core.v1.AskFrame ask_frame = 41;\n */\n value: AskFrame;\n case: \"askFrame\";\n } | {\n /**\n * kind=DONE\n *\n * @generated from field: cmdop.core.v1.DoneInfo done = 42;\n */\n value: DoneInfo;\n case: \"done\";\n } | {\n /**\n * kind=CALLBACK\n *\n * @generated from field: cmdop.core.v1.PinRequired pin_required = 43;\n */\n value: PinRequired;\n case: \"pinRequired\";\n } | {\n /**\n * kind=CALLBACK\n *\n * @generated from field: cmdop.core.v1.ConfirmRequired confirm_required = 44;\n */\n value: ConfirmRequired;\n case: \"confirmRequired\";\n } | {\n /**\n * kind=ANSWER\n *\n * @generated from field: cmdop.core.v1.PinAnswer pin_answer = 45;\n */\n value: PinAnswer;\n case: \"pinAnswer\";\n } | {\n /**\n * kind=ANSWER\n *\n * @generated from field: cmdop.core.v1.ConfirmAnswer confirm_answer = 46;\n */\n value: ConfirmAnswer;\n case: \"confirmAnswer\";\n } | {\n /**\n * ── fleets / members / fleet-machines ──\n *\n * @generated from field: cmdop.core.v1.ListFleetsRequest list_fleets_req = 50;\n */\n value: ListFleetsRequest;\n case: \"listFleetsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.FleetList fleet_list = 51;\n */\n value: FleetList;\n case: \"fleetList\";\n } | {\n /**\n * client-side scan-of-list (report 03 §3.1)\n *\n * @generated from field: cmdop.core.v1.GetFleetRequest get_fleet_req = 52;\n */\n value: GetFleetRequest;\n case: \"getFleetReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.CreateFleetRequest create_fleet_req = 53;\n */\n value: CreateFleetRequest;\n case: \"createFleetReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.UpdateFleetRequest update_fleet_req = 54;\n */\n value: UpdateFleetRequest;\n case: \"updateFleetReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.DisableFleetRequest disable_fleet_req = 55;\n */\n value: DisableFleetRequest;\n case: \"disableFleetReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.FleetSummary fleet_summary = 56;\n */\n value: FleetSummary;\n case: \"fleetSummary\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ListMembersRequest list_members_req = 57;\n */\n value: ListMembersRequest;\n case: \"listMembersReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MemberList member_list = 58;\n */\n value: MemberList;\n case: \"memberList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.AddMemberRequest add_member_req = 59;\n */\n value: AddMemberRequest;\n case: \"addMemberReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SetMemberRoleRequest set_member_role_req = 60;\n */\n value: SetMemberRoleRequest;\n case: \"setMemberRoleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.RemoveMemberRequest remove_member_req = 61;\n */\n value: RemoveMemberRequest;\n case: \"removeMemberReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MemberInfo member_info = 62;\n */\n value: MemberInfo;\n case: \"memberInfo\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ListFleetMachinesRequest list_fleet_machines_req = 63;\n */\n value: ListFleetMachinesRequest;\n case: \"listFleetMachinesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.AttachMachineRequest attach_machine_req = 64;\n */\n value: AttachMachineRequest;\n case: \"attachMachineReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.DetachMachineRequest detach_machine_req = 65;\n */\n value: DetachMachineRequest;\n case: \"detachMachineReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.MachineFleetLink machine_fleet_link = 66;\n */\n value: MachineFleetLink;\n case: \"machineFleetLink\";\n } | {\n /**\n * ── tunnels ──\n *\n * @generated from field: cmdop.core.v1.OpenTunnelRequest open_tunnel_req = 70;\n */\n value: OpenTunnelRequest;\n case: \"openTunnelReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.CloseTunnelRequest close_tunnel_req = 71;\n */\n value: CloseTunnelRequest;\n case: \"closeTunnelReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ListTunnelsRequest list_tunnels_req = 72;\n */\n value: ListTunnelsRequest;\n case: \"listTunnelsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.GetTunnelRequest get_tunnel_req = 73;\n */\n value: GetTunnelRequest;\n case: \"getTunnelReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ListSessionsRequest list_sessions_req = 74;\n */\n value: ListSessionsRequest;\n case: \"listSessionsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.TunnelView tunnel_view = 75;\n */\n value: TunnelView;\n case: \"tunnelView\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.TunnelList tunnel_list = 76;\n */\n value: TunnelList;\n case: \"tunnelList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SessionList session_list = 77;\n */\n value: SessionList;\n case: \"sessionList\";\n } | {\n /**\n * ── schedules ──\n *\n * @generated from field: cmdop.core.v1.ListSchedulesRequest list_schedules_req = 80;\n */\n value: ListSchedulesRequest;\n case: \"listSchedulesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.GetScheduleRequest get_schedule_req = 81;\n */\n value: GetScheduleRequest;\n case: \"getScheduleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.CreateScheduleRequest create_schedule_req = 82;\n */\n value: CreateScheduleRequest;\n case: \"createScheduleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.UpdateScheduleRequest update_schedule_req = 83;\n */\n value: UpdateScheduleRequest;\n case: \"updateScheduleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.DeleteScheduleRequest delete_schedule_req = 84;\n */\n value: DeleteScheduleRequest;\n case: \"deleteScheduleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.TriggerScheduleRequest trigger_schedule_req = 85;\n */\n value: TriggerScheduleRequest;\n case: \"triggerScheduleReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ScheduleRunsRequest schedule_runs_req = 86;\n */\n value: ScheduleRunsRequest;\n case: \"scheduleRunsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ScheduleView schedule_view = 87;\n */\n value: ScheduleView;\n case: \"scheduleView\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ScheduleList schedule_list = 88;\n */\n value: ScheduleList;\n case: \"scheduleList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ScheduleRunList schedule_run_list = 89;\n */\n value: ScheduleRunList;\n case: \"scheduleRunList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ManualTriggerResponse manual_trigger_resp = 90;\n */\n value: ManualTriggerResponse;\n case: \"manualTriggerResp\";\n } | {\n /**\n * ── keys ──\n *\n * @generated from field: cmdop.core.v1.ListKeysRequest list_keys_req = 100;\n */\n value: ListKeysRequest;\n case: \"listKeysReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.IssueKeyRequest issue_key_req = 101;\n */\n value: IssueKeyRequest;\n case: \"issueKeyReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.RevokeKeyRequest revoke_key_req = 102;\n */\n value: RevokeKeyRequest;\n case: \"revokeKeyReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.ApiKeyList api_key_list = 103;\n */\n value: ApiKeyList;\n case: \"apiKeyList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.IssueKeyResponse issue_key_resp = 104;\n */\n value: IssueKeyResponse;\n case: \"issueKeyResp\";\n } | {\n /**\n * ── skills (Django platform plane, X-Api-Key) ──\n *\n * @generated from field: cmdop.core.v1.SkillsListRequest skills_list_req = 110;\n */\n value: SkillsListRequest;\n case: \"skillsListReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsMyRequest skills_my_req = 111;\n */\n value: SkillsMyRequest;\n case: \"skillsMyReq\";\n } | {\n /**\n * list + my response\n *\n * @generated from field: cmdop.core.v1.SkillListPage skill_list_page = 112;\n */\n value: SkillListPage;\n case: \"skillListPage\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsGetRequest skills_get_req = 113;\n */\n value: SkillsGetRequest;\n case: \"skillsGetReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillDetail skill_detail = 114;\n */\n value: SkillDetail;\n case: \"skillDetail\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsInstallRequest skills_install_req = 115;\n */\n value: SkillsInstallRequest;\n case: \"skillsInstallReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillInstall skill_install = 116;\n */\n value: SkillInstall;\n case: \"skillInstall\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsCreateRequest skills_create_req = 117;\n */\n value: SkillsCreateRequest;\n case: \"skillsCreateReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillCreated skill_created = 118;\n */\n value: SkillCreated;\n case: \"skillCreated\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsUpdateRequest skills_update_req = 119;\n */\n value: SkillsUpdateRequest;\n case: \"skillsUpdateReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillUpdated skill_updated = 120;\n */\n value: SkillUpdated;\n case: \"skillUpdated\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsDeleteRequest skills_delete_req = 121;\n */\n value: SkillsDeleteRequest;\n case: \"skillsDeleteReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsVersionsRequest skills_versions_req = 122;\n */\n value: SkillsVersionsRequest;\n case: \"skillsVersionsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillVersionList skill_version_list = 123;\n */\n value: SkillVersionList;\n case: \"skillVersionList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsReviewsRequest skills_reviews_req = 124;\n */\n value: SkillsReviewsRequest;\n case: \"skillsReviewsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillReviewPage skill_review_page = 125;\n */\n value: SkillReviewPage;\n case: \"skillReviewPage\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsStarRequest skills_star_req = 126;\n */\n value: SkillsStarRequest;\n case: \"skillsStarReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillStar skill_star = 127;\n */\n value: SkillStar;\n case: \"skillStar\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsPublishRequest skills_publish_req = 128;\n */\n value: SkillsPublishRequest;\n case: \"skillsPublishReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsPublishResponse skills_publish_resp = 129;\n */\n value: SkillsPublishResponse;\n case: \"skillsPublishResp\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsPublishStatusRequest skills_publish_status_req = 130;\n */\n value: SkillsPublishStatusRequest;\n case: \"skillsPublishStatusReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsPublishStatusResponse skills_publish_status_resp = 131;\n */\n value: SkillsPublishStatusResponse;\n case: \"skillsPublishStatusResp\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsCategoriesRequest skills_categories_req = 132;\n */\n value: SkillsCategoriesRequest;\n case: \"skillsCategoriesReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillCategoryList skill_category_list = 133;\n */\n value: SkillCategoryList;\n case: \"skillCategoryList\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillsTagsRequest skills_tags_req = 134;\n */\n value: SkillsTagsRequest;\n case: \"skillsTagsReq\";\n } | {\n /**\n * @generated from field: cmdop.core.v1.SkillTagList skill_tag_list = 135;\n */\n value: SkillTagList;\n case: \"skillTagList\";\n } | {\n /**\n * ── universal ──\n *\n * kind=ERROR\n *\n * @generated from field: cmdop.core.v1.ErrorInfo error = 200;\n */\n value: ErrorInfo;\n case: \"error\";\n } | {\n /**\n * for 204/void ops\n *\n * @generated from field: cmdop.core.v1.Empty empty = 201;\n */\n value: Empty;\n case: \"empty\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message cmdop.core.v1.Envelope.\n * Use `create(EnvelopeSchema)` to create a new message.\n */\nexport const EnvelopeSchema: GenMessage<Envelope> = /*@__PURE__*/\n messageDesc(file_cmdop_core_v1_envelope, 0);\n\n/**\n * @generated from enum cmdop.core.v1.Envelope.Kind\n */\nexport enum Envelope_Kind {\n /**\n * @generated from enum value: KIND_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * client -> core : start a call\n *\n * @generated from enum value: KIND_REQUEST = 1;\n */\n REQUEST = 1,\n\n /**\n * core -> client : unary result\n *\n * @generated from enum value: KIND_RESPONSE = 2;\n */\n RESPONSE = 2,\n\n /**\n * core -> client : one streamed frame (an AskFrame)\n *\n * @generated from enum value: KIND_EVENT = 3;\n */\n EVENT = 3,\n\n /**\n * core -> client : stream complete\n *\n * @generated from enum value: KIND_DONE = 4;\n */\n DONE = 4,\n\n /**\n * core -> client : call failed (ErrorInfo)\n *\n * @generated from enum value: KIND_ERROR = 5;\n */\n ERROR = 5,\n\n /**\n * core -> client : mid-stream request (pin/confirm)\n *\n * @generated from enum value: KIND_CALLBACK = 6;\n */\n CALLBACK = 6,\n\n /**\n * client -> core : reply to a CALLBACK\n *\n * @generated from enum value: KIND_ANSWER = 7;\n */\n ANSWER = 7,\n}\n\n/**\n * Describes the enum cmdop.core.v1.Envelope.Kind.\n */\nexport const Envelope_KindSchema: GenEnum<Envelope_Kind> = /*@__PURE__*/\n enumDesc(file_cmdop_core_v1_envelope, 0, 0);\n\n","/**\n * Shared resource plumbing: the transport handle, fleet-default fallback, the\n * `OffsetPage{offset, per_page}` request helper, and the two pagination helpers.\n *\n * Every resource method builds a request `Envelope` (one oneof arm), calls the\n * transport, and reads the typed response arm back out.\n */\n\nimport { create, type MessageInitShape } from \"@bufbuild/protobuf\";\nimport type { Client } from \"../client\";\nimport type { Transport } from \"../transport\";\nimport {\n type Envelope,\n EnvelopeSchema,\n} from \"../_proto/cmdop/core/v1/envelope_pb\";\nimport {\n type OffsetPage,\n OffsetPageSchema,\n} from \"../_proto/cmdop/core/v1/common_pb\";\n\n/** The `{ case, value }` init form of the Envelope's `payload` oneof. */\ntype PayloadInit = MessageInitShape<typeof EnvelopeSchema>[\"payload\"];\n\n/** A cursor-paginated list (`MachineList`, `ScheduleRunList`). */\ninterface CursorList<T> {\n items: T[];\n nextCursor?: string;\n hasMore?: boolean;\n}\n\n/** An offset-paginated list (`FleetList`/`MemberList`/`TunnelList`/...). */\ninterface OffsetList<T> {\n items: T[];\n offset: number;\n perPage: number;\n total: number;\n}\n\nexport interface ListPageOptions {\n page?: number;\n perPage?: number;\n}\n\nexport abstract class BaseResource {\n protected readonly t: Transport;\n protected readonly client: Client;\n\n constructor(client: Client) {\n this.client = client;\n this.t = client._t;\n }\n\n /** Resolve the effective fleet id (explicit arg, else the client default). */\n protected fleet(fleetId?: string): string {\n const fid = fleetId ?? this.client.fleetId;\n if (!fid) {\n throw new Error(\n \"No fleetId; pass one or set a default on the client (CMDOP_FLEET_ID).\",\n );\n }\n return fid;\n }\n\n /** Build the proto `OffsetPage{offset, per_page}` from a 1-based page number. */\n protected offsetPage(page = 1, perPage?: number): OffsetPage {\n const pp = perPage ?? 0;\n const offset = pp ? (Math.max(page, 1) - 1) * pp : 0;\n return create(OffsetPageSchema, { offset, perPage: pp });\n }\n\n /** Send a unary REQUEST envelope; the typed arm is read by the caller. */\n protected unary(req: Envelope): Promise<Envelope> {\n return this.t.callUnary(req);\n }\n\n /** Convenience: construct a REQUEST envelope from a oneof payload init. */\n protected req(payload: PayloadInit): Envelope {\n return create(EnvelopeSchema, { payload });\n }\n\n // -- pagination helpers ------------------------------------------------\n\n protected async *paginateCursor<T, P extends CursorList<T>>(\n fetchPage: (cursor: string | undefined) => Promise<P>,\n ): AsyncGenerator<T> {\n let cursor: string | undefined;\n for (;;) {\n const page = await fetchPage(cursor);\n for (const item of page.items) yield item;\n const next = page.nextCursor || undefined;\n if (!next) return;\n if (page.hasMore === false) return;\n cursor = next;\n }\n }\n\n protected async *pagesCursor<T, P extends CursorList<T>>(\n fetchPage: (cursor: string | undefined) => Promise<P>,\n ): AsyncGenerator<P> {\n let cursor: string | undefined;\n for (;;) {\n const page = await fetchPage(cursor);\n yield page;\n const next = page.nextCursor || undefined;\n if (!next) return;\n if (page.hasMore === false) return;\n cursor = next;\n }\n }\n\n protected async *paginateOffset<T, P extends OffsetList<T>>(\n fetchPage: (page: number) => Promise<P>,\n ): AsyncGenerator<T> {\n let page = 1;\n for (;;) {\n const p = await fetchPage(page);\n for (const item of p.items) yield item;\n if (p.items.length === 0) return;\n if (p.total > 0 && p.offset + p.items.length >= p.total) return;\n if (p.total === 0) return;\n page += 1;\n }\n }\n\n protected async *pagesOffset<T, P extends OffsetList<T>>(\n fetchPage: (page: number) => Promise<P>,\n ): AsyncGenerator<P> {\n let page = 1;\n for (;;) {\n const p = await fetchPage(page);\n yield p;\n if (p.items.length === 0) return;\n if (p.total > 0 && p.offset + p.items.length >= p.total) return;\n if (p.total === 0) return;\n page += 1;\n }\n }\n}\n","/**\n * `client.fleets` — list / get / create / update / disable, plus `members` and\n * `machines` sub-resources (lazy getters). `get` scans `list` client-side;\n * `disable` is soft-disable.\n */\n\nimport { MfaRequirement } from \"../_proto/cmdop/core/v1/common_pb\";\nimport type {\n FleetList,\n FleetSummary,\n MachineFleetLink,\n MemberInfo,\n MemberList,\n} from \"../_proto/cmdop/core/v1/fleets_pb\";\nimport type { MachineList, MachineSummary } from \"../_proto/cmdop/core/v1/machines_pb\";\nimport { BaseResource, type ListPageOptions } from \"./base\";\nimport type { ListMachinesOptions } from \"./machines\";\n\nconst MFA: Record<string, MfaRequirement> = {\n none: MfaRequirement.NONE,\n optional: MfaRequirement.OPTIONAL,\n required: MfaRequirement.REQUIRED,\n};\n\nexport class FleetsResource extends BaseResource {\n #members?: FleetMembersResource;\n get members(): FleetMembersResource {\n return (this.#members ??= new FleetMembersResource(this.client));\n }\n\n #machines?: FleetMachinesResource;\n get machines(): FleetMachinesResource {\n return (this.#machines ??= new FleetMachinesResource(this.client));\n }\n\n async list(opts: ListPageOptions = {}): Promise<FleetList> {\n const env = await this.unary(\n this.req({ case: \"listFleetsReq\", value: { page: this.offsetPage(opts.page, opts.perPage) } }),\n );\n return env.payload.value as FleetList;\n }\n\n iter(opts: ListPageOptions = {}): AsyncGenerator<FleetSummary> {\n return this.paginateOffset((page) => this.list({ page, perPage: opts.perPage }));\n }\n\n pages(opts: ListPageOptions = {}): AsyncGenerator<FleetList> {\n return this.pagesOffset((page) => this.list({ page, perPage: opts.perPage }));\n }\n\n /** Get a single fleet by scanning the (offset-paginated) list. */\n async get(fleetId: string): Promise<FleetSummary> {\n for await (const f of this.iter()) {\n if (f.id === fleetId) return f;\n }\n const { NotFoundError } = await import(\"../errors\");\n throw new NotFoundError(`Fleet ${fleetId} not found`, undefined, \"not_found\");\n }\n\n async create(body: {\n name: string;\n slug: string;\n mfaRequired?: string;\n }): Promise<FleetSummary> {\n const env = await this.unary(\n this.req({\n case: \"createFleetReq\",\n value: {\n name: body.name,\n slug: body.slug,\n mfaRequired: MFA[body.mfaRequired ?? \"none\"] ?? MfaRequirement.NONE,\n },\n }),\n );\n return env.payload.value as FleetSummary;\n }\n\n async update(\n fleetId: string,\n body: { name?: string; mfaRequired?: string } = {},\n ): Promise<FleetSummary> {\n const value: { fleetId: string; name: string; mfaRequired?: MfaRequirement } = {\n fleetId,\n name: body.name ?? \"\",\n };\n if (body.mfaRequired !== undefined) {\n value.mfaRequired = MFA[body.mfaRequired] ?? MfaRequirement.NONE;\n }\n const env = await this.unary(this.req({ case: \"updateFleetReq\", value }));\n return env.payload.value as FleetSummary;\n }\n\n /** Soft-disable (not delete). */\n async disable(fleetId: string): Promise<void> {\n await this.unary(this.req({ case: \"disableFleetReq\", value: { fleetId } }));\n }\n}\n\nexport class FleetMembersResource extends BaseResource {\n async list(fleetId?: string, opts: ListPageOptions = {}): Promise<MemberList> {\n const fid = this.fleet(fleetId);\n const env = await this.unary(\n this.req({\n case: \"listMembersReq\",\n value: { fleetId: fid, page: this.offsetPage(opts.page, opts.perPage) },\n }),\n );\n return env.payload.value as MemberList;\n }\n\n iter(fleetId?: string, opts: ListPageOptions = {}): AsyncGenerator<MemberInfo> {\n return this.paginateOffset((page) => this.list(fleetId, { page, perPage: opts.perPage }));\n }\n\n async add(\n body: { email: string; role?: string },\n opts: { fleetId?: string } = {},\n ): Promise<MemberInfo> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({ case: \"addMemberReq\", value: { fleetId: fid, email: body.email, role: body.role ?? \"member\" } }),\n );\n return env.payload.value as MemberInfo;\n }\n\n async setRole(userId: string, role: string, opts: { fleetId?: string } = {}): Promise<MemberInfo> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({ case: \"setMemberRoleReq\", value: { fleetId: fid, userId, role } }),\n );\n return env.payload.value as MemberInfo;\n }\n\n async remove(userId: string, opts: { fleetId?: string } = {}): Promise<void> {\n const fid = this.fleet(opts.fleetId);\n await this.unary(this.req({ case: \"removeMemberReq\", value: { fleetId: fid, userId } }));\n }\n}\n\nexport class FleetMachinesResource extends BaseResource {\n async list(fleetId?: string, opts: ListMachinesOptions = {}): Promise<MachineList> {\n const fid = this.fleet(fleetId);\n const env = await this.unary(\n this.req({\n case: \"listFleetMachinesReq\",\n value: {\n fleetId: fid,\n presence: opts.presence ?? \"any\",\n q: opts.q ?? \"\",\n limit: opts.limit ?? 100,\n cursor: opts.cursor ?? \"\",\n },\n }),\n );\n return env.payload.value as MachineList;\n }\n\n iter(fleetId?: string, opts: ListMachinesOptions = {}): AsyncGenerator<MachineSummary> {\n return this.paginateCursor((cursor) => this.list(fleetId, { ...opts, cursor }));\n }\n\n async attach(machineId: string, opts: { fleetId?: string } = {}): Promise<MachineFleetLink> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({ case: \"attachMachineReq\", value: { fleetId: fid, machineId } }),\n );\n return env.payload.value as MachineFleetLink;\n }\n\n async detach(machineId: string, opts: { fleetId?: string } = {}): Promise<void> {\n const fid = this.fleet(opts.fleetId);\n await this.unary(this.req({ case: \"detachMachineReq\", value: { fleetId: fid, machineId } }));\n }\n}\n","/**\n * `client.keys` — api-keys list / issue / revoke. Fleet-scoped (default-fleet\n * fallback).\n */\n\nimport type {\n ApiKeyList,\n ApiKeySummary,\n IssueKeyResponse,\n} from \"../_proto/cmdop/core/v1/keys_pb\";\nimport { BaseResource, type ListPageOptions } from \"./base\";\n\ntype KeysListOptions = ListPageOptions & { fleetId?: string };\n\nexport class KeysResource extends BaseResource {\n async list(opts: ListPageOptions & { fleetId?: string } = {}): Promise<ApiKeyList> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({\n case: \"listKeysReq\",\n value: { fleetId: fid, page: this.offsetPage(opts.page, opts.perPage) },\n }),\n );\n return env.payload.value as ApiKeyList;\n }\n\n iter(opts: KeysListOptions = {}): AsyncGenerator<ApiKeySummary> {\n return this.paginateOffset((page) =>\n this.list({ page, perPage: opts.perPage, fleetId: opts.fleetId }),\n );\n }\n\n pages(opts: KeysListOptions = {}): AsyncGenerator<ApiKeyList> {\n return this.pagesOffset((page) =>\n this.list({ page, perPage: opts.perPage, fleetId: opts.fleetId }),\n );\n }\n\n /** Mint a key — `rawToken` is returned only here. */\n async issue(opts: { name: string; expiresInDays?: number; fleetId?: string }): Promise<IssueKeyResponse> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({\n case: \"issueKeyReq\",\n value: { fleetId: fid, name: opts.name, expiresInDays: opts.expiresInDays ?? 0 },\n }),\n );\n return env.payload.value as IssueKeyResponse;\n }\n\n async revoke(keyId: string, opts: { fleetId?: string } = {}): Promise<void> {\n const fid = this.fleet(opts.fleetId);\n await this.unary(this.req({ case: \"revokeKeyReq\", value: { fleetId: fid, keyId } }));\n }\n}\n","/**\n * `client.machines` — list / get / update / disable / info / spend + the `ask`\n * stream and the chat-history side-channel (messages / clearMessages /\n * activeSession). `disable` is soft-disable; `spend` takes a `window`.\n */\n\nimport { create } from \"@bufbuild/protobuf\";\nimport type { AskStream } from \"../streaming\";\nimport type {\n ClearMessagesResponse,\n MachineDetail,\n MachineList,\n MachineSpend,\n MachineSummary,\n MessagesResponse,\n} from \"../_proto/cmdop/core/v1/machines_pb\";\nimport { AskRequestSchema } from \"../_proto/cmdop/core/v1/machines_pb\";\nimport { BaseResource } from \"./base\";\n\nexport interface ListMachinesOptions {\n presence?: string;\n q?: string;\n limit?: number;\n cursor?: string;\n}\n\nexport interface AskOptions {\n sessionId?: string;\n agentType?: string;\n timeoutSeconds?: number;\n options?: Record<string, string>;\n}\n\nexport class MachinesResource extends BaseResource {\n async list(opts: ListMachinesOptions = {}): Promise<MachineList> {\n const env = await this.unary(\n this.req({\n case: \"listMachinesReq\",\n value: {\n presence: opts.presence ?? \"any\",\n q: opts.q ?? \"\",\n limit: opts.limit ?? 100,\n cursor: opts.cursor ?? \"\",\n },\n }),\n );\n return env.payload.value as MachineList;\n }\n\n async get(machineId: string): Promise<MachineDetail> {\n const env = await this.unary(this.req({ case: \"getMachineReq\", value: { machineId } }));\n return env.payload.value as MachineDetail;\n }\n\n async update(machineId: string, body: { name?: string } = {}): Promise<MachineSummary> {\n const env = await this.unary(\n this.req({ case: \"updateMachineReq\", value: { machineId, name: body.name ?? \"\" } }),\n );\n return env.payload.value as MachineSummary;\n }\n\n /** Soft-disable (not delete). */\n async disable(machineId: string): Promise<void> {\n await this.unary(this.req({ case: \"disableMachineReq\", value: { machineId } }));\n }\n\n async info(machineId: string): Promise<MachineDetail> {\n const env = await this.unary(this.req({ case: \"machineInfoReq\", value: { machineId } }));\n return env.payload.value as MachineDetail;\n }\n\n async spend(machineId: string, opts: { window?: string } = {}): Promise<MachineSpend> {\n const env = await this.unary(\n this.req({ case: \"machineSpendReq\", value: { machineId, window: opts.window ?? \"7d\" } }),\n );\n return env.payload.value as MachineSpend;\n }\n\n // -- pagination --------------------------------------------------------\n\n iter(opts: ListMachinesOptions = {}): AsyncGenerator<MachineSummary> {\n return this.paginateCursor((cursor) => this.list({ ...opts, cursor }));\n }\n\n pages(opts: ListMachinesOptions = {}): AsyncGenerator<MachineList> {\n return this.pagesCursor((cursor) => this.list({ ...opts, cursor }));\n }\n\n // -- stream ------------------------------------------------------------\n\n /** Talk to the machine's AI agent. Returns an {@link AskStream}. */\n ask(machineId: string, prompt: string, opts: AskOptions = {}): AskStream {\n const askReq = create(AskRequestSchema, {\n machineId,\n sessionId: opts.sessionId ?? randomId(),\n prompt,\n options: opts.options ?? {},\n });\n if (opts.agentType !== undefined) askReq.agentType = opts.agentType;\n if (opts.timeoutSeconds !== undefined) askReq.timeoutSeconds = opts.timeoutSeconds;\n return this.t.callStream(this.req({ case: \"askReq\", value: askReq }));\n }\n\n // -- chat history ------------------------------------------------------\n\n async messages(machineId: string, opts: { limit?: number } = {}): Promise<MessagesResponse> {\n const env = await this.unary(\n this.req({ case: \"messagesReq\", value: { machineId, limit: opts.limit ?? 50 } }),\n );\n return env.payload.value as MessagesResponse;\n }\n\n async clearMessages(machineId: string): Promise<ClearMessagesResponse> {\n const env = await this.unary(this.req({ case: \"clearMessagesReq\", value: { machineId } }));\n return env.payload.value as ClearMessagesResponse;\n }\n\n /** The live agent session id (empty string if none). */\n async activeSession(machineId: string): Promise<string> {\n const env = await this.unary(this.req({ case: \"activeSessionReq\", value: { machineId } }));\n const resp = env.payload.value as { agentSessionId: string };\n return resp.agentSessionId;\n }\n}\n\nfunction randomId(): string {\n if (typeof globalThis.crypto?.randomUUID === \"function\") {\n return globalThis.crypto.randomUUID().replace(/-/g, \"\");\n }\n return Date.now().toString(36) + Math.random().toString(36).slice(2);\n}\n","/**\n * `client.schedules` — list / get / create / update / delete / trigger / runs.\n * Fleet-scoped (default-fleet fallback). `delete` (not disable). `runs` is\n * cursor-paginated; `list` is offset-paginated.\n */\n\nimport { ScheduleTargetKind } from \"../_proto/cmdop/core/v1/common_pb\";\nimport { UpdateScheduleRequestSchema } from \"../_proto/cmdop/core/v1/schedules_pb\";\nimport type {\n ManualTriggerResponse,\n ScheduleList,\n ScheduleRunList,\n ScheduleRunView,\n ScheduleView,\n} from \"../_proto/cmdop/core/v1/schedules_pb\";\nimport { create } from \"@bufbuild/protobuf\";\nimport { BaseResource, type ListPageOptions } from \"./base\";\n\nconst TARGET: Record<string, ScheduleTargetKind> = {\n all_fleet_machines: ScheduleTargetKind.ALL_FLEET_MACHINES,\n specific_machines: ScheduleTargetKind.SPECIFIC_MACHINES,\n};\n\nexport interface CreateScheduleOptions {\n name: string;\n cronExpr: string;\n command: string;\n description?: string;\n timezone?: string;\n targetKind?: string;\n isEnabled?: boolean;\n machineIds?: string[];\n fleetId?: string;\n}\n\nexport interface UpdateScheduleOptions {\n name?: string;\n cronExpr?: string;\n command?: string;\n description?: string;\n timezone?: string;\n targetKind?: string;\n isEnabled?: boolean;\n machineIds?: string[];\n fleetId?: string;\n}\n\nexport interface RunsOptions {\n fleetId?: string;\n limit?: number;\n cursor?: string;\n}\n\nexport class SchedulesResource extends BaseResource {\n async list(opts: ListPageOptions & { fleetId?: string } = {}): Promise<ScheduleList> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({\n case: \"listSchedulesReq\",\n value: { fleetId: fid, page: this.offsetPage(opts.page, opts.perPage) },\n }),\n );\n return env.payload.value as ScheduleList;\n }\n\n iter(opts: ListPageOptions & { fleetId?: string } = {}): AsyncGenerator<ScheduleView> {\n return this.paginateOffset((page) =>\n this.list({ page, perPage: opts.perPage, fleetId: opts.fleetId }),\n );\n }\n\n pages(opts: ListPageOptions & { fleetId?: string } = {}): AsyncGenerator<ScheduleList> {\n return this.pagesOffset((page) =>\n this.list({ page, perPage: opts.perPage, fleetId: opts.fleetId }),\n );\n }\n\n async get(scheduleId: string, opts: { fleetId?: string } = {}): Promise<ScheduleView> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({ case: \"getScheduleReq\", value: { fleetId: fid, scheduleId } }),\n );\n return env.payload.value as ScheduleView;\n }\n\n async create(opts: CreateScheduleOptions): Promise<ScheduleView> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({\n case: \"createScheduleReq\",\n value: {\n fleetId: fid,\n name: opts.name,\n cronExpr: opts.cronExpr,\n command: opts.command,\n description: opts.description ?? \"\",\n timezone: opts.timezone ?? \"UTC\",\n targetKind: TARGET[opts.targetKind ?? \"all_fleet_machines\"] ?? ScheduleTargetKind.ALL_FLEET_MACHINES,\n isEnabled: opts.isEnabled ?? true,\n machineIds: opts.machineIds ?? [],\n },\n }),\n );\n return env.payload.value as ScheduleView;\n }\n\n async update(scheduleId: string, opts: UpdateScheduleOptions): Promise<ScheduleView> {\n const fid = this.fleet(opts.fleetId);\n const body = create(UpdateScheduleRequestSchema, { fleetId: fid, scheduleId });\n if (opts.name !== undefined) body.name = opts.name;\n if (opts.description !== undefined) body.description = opts.description;\n if (opts.cronExpr !== undefined) body.cronExpr = opts.cronExpr;\n if (opts.timezone !== undefined) body.timezone = opts.timezone;\n if (opts.command !== undefined) body.command = opts.command;\n if (opts.targetKind !== undefined) {\n body.targetKind = TARGET[opts.targetKind] ?? ScheduleTargetKind.ALL_FLEET_MACHINES;\n }\n if (opts.isEnabled !== undefined) body.isEnabled = opts.isEnabled;\n if (opts.machineIds !== undefined) body.machineIds = opts.machineIds;\n const env = await this.unary(this.req({ case: \"updateScheduleReq\", value: body }));\n return env.payload.value as ScheduleView;\n }\n\n async delete(scheduleId: string, opts: { fleetId?: string } = {}): Promise<void> {\n const fid = this.fleet(opts.fleetId);\n await this.unary(this.req({ case: \"deleteScheduleReq\", value: { fleetId: fid, scheduleId } }));\n }\n\n /** Run now. */\n async trigger(scheduleId: string, opts: { fleetId?: string } = {}): Promise<ManualTriggerResponse> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({ case: \"triggerScheduleReq\", value: { fleetId: fid, scheduleId } }),\n );\n return env.payload.value as ManualTriggerResponse;\n }\n\n /** Run history (cursor-paginated, newest first). */\n async runs(scheduleId: string, opts: RunsOptions = {}): Promise<ScheduleRunList> {\n const fid = this.fleet(opts.fleetId);\n const env = await this.unary(\n this.req({\n case: \"scheduleRunsReq\",\n value: { fleetId: fid, scheduleId, limit: opts.limit ?? 50, cursor: opts.cursor ?? \"\" },\n }),\n );\n return env.payload.value as ScheduleRunList;\n }\n\n iterRuns(scheduleId: string, opts: Omit<RunsOptions, \"cursor\"> = {}): AsyncGenerator<ScheduleRunView> {\n return this.paginateCursor((cursor) =>\n this.runs(scheduleId, { ...opts, cursor }).then((p) => ({\n items: p.items,\n nextCursor: p.nextCursor,\n hasMore: p.nextCursor != null && p.nextCursor !== \"\",\n })),\n );\n }\n\n pagesRuns(scheduleId: string, opts: Omit<RunsOptions, \"cursor\"> = {}): AsyncGenerator<ScheduleRunList> {\n return this.pagesCursor((cursor) =>\n this.runs(scheduleId, { ...opts, cursor }).then((p) => ({\n items: p.items,\n nextCursor: p.nextCursor,\n hasMore: p.nextCursor != null && p.nextCursor !== \"\",\n })),\n ) as AsyncGenerator<ScheduleRunList>;\n }\n}\n","/**\n * `client.skills` — the marketplace surface (Django platform plane).\n *\n * Skills live on Django (`UserAPIKey` / `X-Api-Key`), NOT the relay — the\n * spawned `cmdop-core` reaches them with `CMDOP_API_KEY` (passed through at\n * spawn), distinct from the relay `CMDOP_TOKEN` that drives machines/fleets.\n *\n * Browse / install / publish / manage your own skills + the read-only taxonomy\n * (categories, tags). Mirrors the Python `cmdop_skill` framework's marketplace\n * operations, baked into the Go core so any language gets them.\n */\n\nimport type {\n SkillCategoryList,\n SkillCreated,\n SkillDetail,\n SkillInstall,\n SkillListPage,\n SkillReviewPage,\n SkillsPublishResponse,\n SkillsPublishStatusResponse,\n SkillStar,\n SkillTagList,\n SkillUpdated,\n SkillVersionList,\n} from \"../_proto/cmdop/core/v1/skills_pb\";\nimport { BaseResource } from \"./base\";\n\nexport interface SkillsListOptions {\n category?: string;\n tag?: string;\n search?: string;\n lang?: string;\n ordering?: string;\n page?: number;\n pageSize?: number;\n}\n\nexport interface SkillsMyOptions {\n search?: string;\n ordering?: string;\n page?: number;\n pageSize?: number;\n}\n\nexport interface SkillsReviewsOptions {\n search?: string;\n ordering?: string;\n page?: number;\n pageSize?: number;\n}\n\nexport interface SkillsUpdateOptions {\n name?: string;\n category?: string;\n visibility?: string;\n status?: string;\n icon?: string;\n cover?: string;\n repositoryUrl?: string;\n}\n\nexport interface SkillsPublishOptions {\n skillMd?: string;\n readme?: string;\n changelog?: string;\n}\n\nexport interface TaxonomyOptions {\n search?: string;\n ordering?: string;\n}\n\nexport class SkillsResource extends BaseResource {\n // -- browse / detail ---------------------------------------------------\n\n async list(opts: SkillsListOptions = {}): Promise<SkillListPage> {\n const env = await this.unary(\n this.req({ case: \"skillsListReq\", value: { ...opts } }),\n );\n return env.payload.value as SkillListPage;\n }\n\n async get(slug: string, opts: { lang?: string } = {}): Promise<SkillDetail> {\n const env = await this.unary(\n this.req({ case: \"skillsGetReq\", value: { slug, lang: opts.lang } }),\n );\n return env.payload.value as SkillDetail;\n }\n\n async my(opts: SkillsMyOptions = {}): Promise<SkillListPage> {\n const env = await this.unary(\n this.req({ case: \"skillsMyReq\", value: { ...opts } }),\n );\n return env.payload.value as SkillListPage;\n }\n\n // -- install / star ----------------------------------------------------\n\n async install(slug: string): Promise<SkillInstall> {\n const env = await this.unary(this.req({ case: \"skillsInstallReq\", value: { slug } }));\n return env.payload.value as SkillInstall;\n }\n\n async star(slug: string): Promise<SkillStar> {\n const env = await this.unary(this.req({ case: \"skillsStarReq\", value: { slug } }));\n return env.payload.value as SkillStar;\n }\n\n // -- versions / reviews ------------------------------------------------\n\n async versions(slug: string): Promise<SkillVersionList> {\n const env = await this.unary(this.req({ case: \"skillsVersionsReq\", value: { slug } }));\n return env.payload.value as SkillVersionList;\n }\n\n async reviews(slug: string, opts: SkillsReviewsOptions = {}): Promise<SkillReviewPage> {\n const env = await this.unary(\n this.req({ case: \"skillsReviewsReq\", value: { slug, ...opts } }),\n );\n return env.payload.value as SkillReviewPage;\n }\n\n // -- create / update / delete ------------------------------------------\n\n async create(name: string): Promise<SkillCreated> {\n const env = await this.unary(this.req({ case: \"skillsCreateReq\", value: { name } }));\n return env.payload.value as SkillCreated;\n }\n\n async update(slug: string, opts: SkillsUpdateOptions = {}): Promise<SkillUpdated> {\n const env = await this.unary(\n this.req({ case: \"skillsUpdateReq\", value: { slug, ...opts } }),\n );\n return env.payload.value as SkillUpdated;\n }\n\n async delete(slug: string): Promise<void> {\n await this.unary(this.req({ case: \"skillsDeleteReq\", value: { slug } }));\n }\n\n // -- publish (async) ---------------------------------------------------\n\n async publish(\n slug: string,\n rawManifest: string,\n opts: SkillsPublishOptions = {},\n ): Promise<SkillsPublishResponse> {\n const env = await this.unary(\n this.req({ case: \"skillsPublishReq\", value: { slug, rawManifest, ...opts } }),\n );\n return env.payload.value as SkillsPublishResponse;\n }\n\n async publishStatus(slug: string): Promise<SkillsPublishStatusResponse> {\n const env = await this.unary(\n this.req({ case: \"skillsPublishStatusReq\", value: { slug } }),\n );\n return env.payload.value as SkillsPublishStatusResponse;\n }\n\n // -- taxonomy ----------------------------------------------------------\n\n async categories(opts: TaxonomyOptions = {}): Promise<SkillCategoryList> {\n const env = await this.unary(this.req({ case: \"skillsCategoriesReq\", value: { ...opts } }));\n return env.payload.value as SkillCategoryList;\n }\n\n async tags(opts: TaxonomyOptions = {}): Promise<SkillTagList> {\n const env = await this.unary(this.req({ case: \"skillsTagsReq\", value: { ...opts } }));\n return env.payload.value as SkillTagList;\n }\n}\n","/**\n * `client.tunnels` — open / close / list / get / sessions.\n */\n\nimport type {\n ConnectedSessionOption,\n TunnelList,\n TunnelView,\n} from \"../_proto/cmdop/core/v1/tunnels_pb\";\nimport { BaseResource, type ListPageOptions } from \"./base\";\n\nexport interface OpenTunnelOptions {\n protocol?: string;\n localHost?: string;\n localPort: number;\n subdomain?: string;\n options?: Record<string, string>;\n}\n\nexport class TunnelsResource extends BaseResource {\n async open(sessionId: string, opts: OpenTunnelOptions): Promise<TunnelView> {\n const env = await this.unary(\n this.req({\n case: \"openTunnelReq\",\n value: {\n sessionId,\n protocol: opts.protocol ?? \"http\",\n localHost: opts.localHost ?? \"127.0.0.1\",\n localPort: opts.localPort,\n subdomain: opts.subdomain ?? \"\",\n options: opts.options ?? {},\n },\n }),\n );\n return env.payload.value as TunnelView;\n }\n\n /** Close a tunnel (idempotent). */\n async close(tunnelId: string): Promise<void> {\n await this.unary(this.req({ case: \"closeTunnelReq\", value: { tunnelId } }));\n }\n\n async list(opts: ListPageOptions = {}): Promise<TunnelList> {\n const env = await this.unary(\n this.req({ case: \"listTunnelsReq\", value: { page: this.offsetPage(opts.page, opts.perPage) } }),\n );\n return env.payload.value as TunnelList;\n }\n\n iter(opts: ListPageOptions = {}): AsyncGenerator<TunnelView> {\n return this.paginateOffset((page) => this.list({ page, perPage: opts.perPage }));\n }\n\n pages(opts: ListPageOptions = {}): AsyncGenerator<TunnelList> {\n return this.pagesOffset((page) => this.list({ page, perPage: opts.perPage }));\n }\n\n async get(tunnelId: string): Promise<TunnelView> {\n const env = await this.unary(this.req({ case: \"getTunnelReq\", value: { tunnelId } }));\n return env.payload.value as TunnelView;\n }\n\n /** Connected-session picker for opening tunnels. */\n async sessions(): Promise<ConnectedSessionOption[]> {\n const env = await this.unary(this.req({ case: \"listSessionsReq\", value: {} }));\n const list = env.payload.value as { items: ConnectedSessionOption[] };\n return list.items;\n }\n}\n","/**\n * Stdio transport: spawn `cmdop-core`, frame protobuf Envelopes over its\n * stdin/stdout, demux by `Envelope.id`.\n *\n * This is the hand-written transport runtime (report 11 §0) — written once,\n * untouched when methods are added. Each generated resource method is ~3 lines\n * calling {@link Transport.callUnary} / {@link Transport.callStream}.\n *\n * Framing (report 13 §1.3): `@bufbuild/protobuf/wire`'s `sizeDelimitedEncode` /\n * `sizeDelimitedDecodeStream`. `sizeDelimitedDecodeStream` is *already* a\n * chunk-to-message async-iterator over `child.stdout` — it reassembles frames\n * split across chunk boundaries for us, so there is no hand-rolled buffering.\n *\n * Demux (report 11 §1.4): a `Map<number, Pending>` keyed by id. A unary call\n * resolves/rejects a Promise; a streaming call pushes EVENT/CALLBACK frames into\n * a bounded push→pull queue and ends on DONE (or rejects on ERROR).\n */\n\nimport { type ChildProcessWithoutNullStreams, spawn } from \"node:child_process\";\nimport type { Readable, Writable } from \"node:stream\";\nimport {\n sizeDelimitedDecodeStream,\n sizeDelimitedEncode,\n} from \"@bufbuild/protobuf/wire\";\nimport type { ClientConfig } from \"./config\";\nimport { ConnectionError, mapCoreError } from \"./errors\";\nimport { AskStream, type StreamSource } from \"./streaming\";\nimport {\n type Envelope,\n Envelope_Kind,\n EnvelopeSchema,\n} from \"./_proto/cmdop/core/v1/envelope_pb\";\n\ninterface UnaryPending {\n kind: \"unary\";\n resolve: (env: Envelope) => void;\n reject: (err: Error) => void;\n}\n\ninterface StreamPending {\n kind: \"stream\";\n push: (env: Envelope) => void;\n end: () => void;\n fail: (err: Error) => void;\n}\n\ntype Pending = UnaryPending | StreamPending;\n\n/**\n * A bounded push→pull async-iterator: bridges the demux's push of frames into a\n * `for await` consumer (the canonical \"queueable\" pattern, report 11 §1.4).\n */\nclass FrameQueue {\n #q: Envelope[] = [];\n #wait?: (r: IteratorResult<Envelope>) => void;\n #done = false;\n #err?: Error;\n\n push(env: Envelope): void {\n if (this.#wait) {\n const w = this.#wait;\n this.#wait = undefined;\n w({ value: env, done: false });\n } else {\n this.#q.push(env);\n }\n }\n\n end(): void {\n this.#done = true;\n if (this.#wait) {\n const w = this.#wait;\n this.#wait = undefined;\n w({ value: undefined as never, done: true });\n }\n }\n\n fail(err: Error): void {\n this.#err = err;\n if (this.#wait) {\n const w = this.#wait;\n this.#wait = undefined;\n // surface on next() via the stored error\n w({ value: undefined as never, done: true });\n }\n }\n\n async *iterate(): AsyncGenerator<Envelope> {\n for (;;) {\n if (this.#err) throw this.#err;\n if (this.#q.length) {\n yield this.#q.shift()!;\n continue;\n }\n if (this.#done) return;\n const r = await new Promise<IteratorResult<Envelope>>((res) => {\n this.#wait = res;\n });\n if (this.#err) throw this.#err;\n if (r.done) return;\n yield r.value;\n }\n }\n}\n\nexport class Transport {\n #child?: ChildProcessWithoutNullStreams;\n #stdin?: Writable;\n #pending = new Map<number, Pending>();\n #nextId = 1;\n #closed = false;\n #starting?: Promise<void>;\n\n constructor(\n private readonly cfg: ClientConfig,\n private readonly binPath: string,\n ) {}\n\n /**\n * @internal Test seam: drive the demux off a provided stdin/stdout pair\n * instead of spawning a binary. Used by the transport unit tests, mirroring\n * the Python test that injects a fake process.\n */\n attachStreamsForTest(stdin: Writable, stdout: Readable): void {\n this.#stdin = stdin;\n this.#starting = Promise.resolve();\n this.#child = { stdin } as unknown as ChildProcessWithoutNullStreams;\n this.#startReader(stdout);\n }\n\n // -- lifecycle ---------------------------------------------------------\n\n private async ensureStarted(): Promise<void> {\n if (this.#child) return;\n if (this.#starting) return this.#starting;\n this.#starting = this.#spawn();\n try {\n await this.#starting;\n } finally {\n this.#starting = undefined;\n }\n }\n\n async #spawn(): Promise<void> {\n const child = spawn(this.binPath, [\"--stdio\"], {\n stdio: [\"pipe\", \"pipe\", \"pipe\"],\n env: {\n ...process.env,\n CMDOP_TOKEN: this.cfg.token,\n CMDOP_BASE_URL: this.cfg.baseUrl,\n // Django platform plane (skills) — separate credential + base URL.\n CMDOP_API_BASE_URL: this.cfg.apiBaseUrl,\n ...(this.cfg.apiKey ? { CMDOP_API_KEY: this.cfg.apiKey } : {}),\n },\n windowsHide: true,\n });\n this.#child = child;\n this.#stdin = child.stdin;\n\n // stderr is NOT part of the protocol — drain it so it never blocks/corrupts\n // the pipe (the core logs to a file when CMDOP_DEBUG=1).\n child.stderr.on(\"data\", () => {});\n\n child.on(\"exit\", () => {\n this.#failAll(new ConnectionError(\"cmdop-core exited\"));\n });\n child.on(\"error\", (err) => {\n this.#failAll(new ConnectionError(`cmdop-core spawn failed: ${err.message}`));\n });\n\n this.#startReader(child.stdout);\n }\n\n /**\n * Reader: `sizeDelimitedDecodeStream` consumes the stdout (an\n * `AsyncIterable<Uint8Array>`) and yields fully-assembled Envelopes,\n * reassembling frames split across chunk boundaries for us.\n */\n #startReader(stdout: Readable): void {\n void (async () => {\n try {\n for await (const env of sizeDelimitedDecodeStream(EnvelopeSchema, stdout)) {\n this.#dispatch(env);\n }\n this.#failAll(new ConnectionError(\"cmdop-core stdout closed\"));\n } catch (err) {\n this.#failAll(\n new ConnectionError(\n `core read loop failed: ${err instanceof Error ? err.message : String(err)}`,\n ),\n );\n }\n })();\n }\n\n #dispatch(env: Envelope): void {\n const p = this.#pending.get(env.id);\n if (!p) return;\n\n if (p.kind === \"unary\") {\n if (env.kind === Envelope_Kind.ERROR) {\n this.#pending.delete(env.id);\n p.reject(this.#toError(env));\n } else if (env.kind === Envelope_Kind.RESPONSE) {\n this.#pending.delete(env.id);\n p.resolve(env);\n }\n return;\n }\n\n // stream\n switch (env.kind) {\n case Envelope_Kind.EVENT:\n case Envelope_Kind.CALLBACK:\n p.push(env);\n break;\n case Envelope_Kind.DONE:\n this.#pending.delete(env.id);\n p.push(env);\n p.end();\n break;\n case Envelope_Kind.ERROR:\n // Push the raw ERROR envelope so AskStream raises an AgentStreamError\n // (ask stream's error-frame semantics), then end.\n this.#pending.delete(env.id);\n p.push(env);\n p.end();\n break;\n case Envelope_Kind.RESPONSE:\n this.#pending.delete(env.id);\n p.push(env);\n p.end();\n break;\n }\n }\n\n #toError(env: Envelope): Error {\n const info = env.payload.case === \"error\" ? env.payload.value : undefined;\n return mapCoreError(info?.code || \"internal\", info?.message || \"\");\n }\n\n #failAll(err: Error): void {\n const pending = this.#pending;\n this.#pending = new Map();\n for (const p of pending.values()) {\n if (p.kind === \"unary\") p.reject(err);\n else p.fail(err);\n }\n }\n\n async close(): Promise<void> {\n if (this.#closed) return;\n this.#closed = true;\n const child = this.#child;\n const stdin = this.#stdin;\n if (!child) return;\n try {\n stdin?.end(); // EOF → core drains gracefully\n } catch {\n /* ignore */\n }\n // A real spawned child emits 'exit'; a test-injected fake child does not, so\n // resolve immediately when the lifecycle hooks are absent.\n if (typeof child.once === \"function\" && typeof child.kill === \"function\") {\n await new Promise<void>((resolve) => {\n let done = false;\n const finish = () => {\n if (done) return;\n done = true;\n resolve();\n };\n child.once(\"exit\", finish);\n setTimeout(() => {\n if (!done) {\n child.kill();\n finish();\n }\n }, 5000);\n });\n }\n this.#failAll(new ConnectionError(\"client closed\"));\n }\n\n // -- write path --------------------------------------------------------\n\n #write(env: Envelope): void {\n const stdin = this.#stdin;\n if (!stdin) throw new ConnectionError(\"cmdop-core not running\");\n stdin.write(sizeDelimitedEncode(EnvelopeSchema, env));\n }\n\n // -- call entry points (used by generated resources) -------------------\n\n /**\n * Send a REQUEST envelope, await the RESPONSE/ERROR on its id. `req` carries\n * the oneof payload arm; `id`/`kind` are filled here.\n */\n async callUnary(req: Envelope): Promise<Envelope> {\n await this.ensureStarted();\n req.id = this.#nextId++;\n req.kind = Envelope_Kind.REQUEST;\n return new Promise<Envelope>((resolve, reject) => {\n this.#pending.set(req.id, { kind: \"unary\", resolve, reject });\n try {\n this.#write(req);\n } catch (err) {\n this.#pending.delete(req.id);\n reject(err instanceof Error ? err : new Error(String(err)));\n }\n });\n }\n\n /** Open a streaming call (machines.ask). Returns an {@link AskStream}. */\n callStream(req: Envelope): AskStream {\n const queue = new FrameQueue();\n let started = false;\n let id = 0;\n const transport = this;\n\n const source: StreamSource = {\n get id() {\n return id;\n },\n async *envelopes() {\n if (!started) {\n started = true;\n await transport.ensureStarted();\n id = transport.#nextId++;\n req.id = id;\n req.kind = Envelope_Kind.REQUEST;\n transport.#pending.set(id, {\n kind: \"stream\",\n push: (e) => queue.push(e),\n end: () => queue.end(),\n fail: (e) => queue.fail(e),\n });\n transport.#write(req);\n }\n yield* queue.iterate();\n },\n async answer(env: Envelope) {\n await transport.ensureStarted();\n transport.#write(env);\n },\n };\n\n return new AskStream(source);\n }\n}\n","/**\n * `machines.ask` streaming: the typed frame union + {@link AskStream}.\n *\n * The Go core drives the relay's SSE `/ask` + the `/pin` + `/confirm`\n * side-channel POSTs and projects each onto an `Envelope` on the call's id\n * (report 13 §4.1). This module turns those envelopes into a typed discriminated\n * union and exposes the archived wrapper's ergonomics: `for await (const frame of\n * stream)`, `stream.pin(...)`, `stream.confirm(...)`, `stream.collect()`.\n *\n * The mid-stream answer (pin/confirm) writes an `ANSWER` envelope on the **same\n * id**; the core resumes the stream.\n */\n\nimport { create } from \"@bufbuild/protobuf\";\nimport { AgentStreamError } from \"./errors\";\nimport {\n type Envelope,\n Envelope_Kind,\n EnvelopeSchema,\n} from \"./_proto/cmdop/core/v1/envelope_pb\";\n\n/** Discriminated union of frames surfaced by `machines.ask`. */\nexport type AskFrame =\n | { type: \"event\"; eventType: number; payload: unknown }\n | { type: \"done\"; success: boolean; text: string; error: string; durationMs: number }\n | { type: \"confirm_required\"; token: string; plan: string; dangerLevel: string }\n | { type: \"pin_required\"; challengeId: string; label: string }\n | { type: \"pin_denied\"; challengeId: string; reason: string }\n | { type: \"unknown\"; raw: string };\n\n/** What `call_stream` registers a stream with: a transport-driven frame source. */\nexport interface StreamSource {\n /** Allocated correlation id (set once the stream is started). */\n readonly id: number;\n /** Async-iterate the raw envelopes for this stream (terminates on done). */\n envelopes(): AsyncGenerator<Envelope>;\n /** Write an ANSWER envelope on this stream's id. */\n answer(env: Envelope): Promise<void>;\n}\n\nfunction frameFromEnvelope(env: Envelope): AskFrame {\n switch (env.kind) {\n case Envelope_Kind.DONE: {\n const d = env.payload.case === \"done\" ? env.payload.value : undefined;\n return {\n type: \"done\",\n success: d?.success ?? false,\n text: d?.text ?? \"\",\n error: d?.error ?? \"\",\n durationMs: Number(d?.durationMs ?? 0),\n };\n }\n case Envelope_Kind.CALLBACK: {\n if (env.payload.case === \"pinRequired\") {\n const pr = env.payload.value;\n return { type: \"pin_required\", challengeId: pr.challengeId, label: pr.label };\n }\n if (env.payload.case === \"confirmRequired\") {\n const cr = env.payload.value;\n return {\n type: \"confirm_required\",\n token: cr.token,\n plan: cr.plan,\n dangerLevel: cr.dangerLevel || \"medium\",\n };\n }\n return { type: \"unknown\", raw: env.payload.case ?? \"\" };\n }\n case Envelope_Kind.EVENT: {\n if (env.payload.case !== \"askFrame\") return { type: \"unknown\", raw: env.payload.case ?? \"\" };\n const f = env.payload.value.frame;\n if (f.case === \"event\") {\n let payload: unknown = undefined;\n if (f.value.payloadJson) {\n try {\n payload = JSON.parse(f.value.payloadJson);\n } catch {\n payload = f.value.payloadJson;\n }\n }\n return { type: \"event\", eventType: f.value.eventType, payload };\n }\n if (f.case === \"pinDenied\") {\n return { type: \"pin_denied\", challengeId: f.value.challengeId, reason: f.value.reason };\n }\n return { type: \"unknown\", raw: f.case ?? \"\" };\n }\n default:\n return { type: \"unknown\", raw: String(env.kind) };\n }\n}\n\n/**\n * Async-iterable of {@link AskFrame} with `pin()` / `confirm()` / `collect()`.\n *\n * Iterating starts the streaming call; a terminal ERROR envelope is thrown as an\n * {@link AgentStreamError}.\n */\nexport class AskStream implements AsyncIterable<AskFrame> {\n constructor(private readonly source: StreamSource) {}\n\n async *[Symbol.asyncIterator](): AsyncIterator<AskFrame> {\n for await (const env of this.source.envelopes()) {\n if (env.kind === Envelope_Kind.ERROR) {\n const info = env.payload.case === \"error\" ? env.payload.value : undefined;\n throw new AgentStreamError(info?.code || \"internal\", info?.message || \"\");\n }\n yield frameFromEnvelope(env);\n }\n }\n\n /** Answer a `pin_required` frame with the entered connection PIN. */\n async pin(challengeId: string, pin: string): Promise<void> {\n await this.source.answer(\n create(EnvelopeSchema, {\n id: this.source.id,\n kind: Envelope_Kind.ANSWER,\n payload: { case: \"pinAnswer\", value: { challengeId, pin } },\n }),\n );\n }\n\n /**\n * Answer a `confirm_required` frame. `accept=true` resumes the stream onto the\n * same id; `accept=false` ends it with a rejected `done`.\n */\n async confirm(token: string, accept: boolean): Promise<void> {\n await this.source.answer(\n create(EnvelopeSchema, {\n id: this.source.id,\n kind: Envelope_Kind.ANSWER,\n payload: { case: \"confirmAnswer\", value: { token, accept } },\n }),\n );\n }\n\n /**\n * Drain to the final text (the `done` frame's text, else accumulated event\n * deltas). Throws {@link AgentStreamError} on an error outcome.\n */\n async collect(): Promise<string> {\n let text = \"\";\n for await (const f of this) {\n if (f.type === \"event\") {\n const p = f.payload as { delta?: string; text?: string } | undefined;\n text += p?.delta ?? p?.text ?? \"\";\n } else if (f.type === \"done\") {\n return f.text || text;\n }\n }\n return text;\n }\n}\n","/**\n * The public `Client` — owns config, spawns one persistent `cmdop-core`\n * subprocess (on first call), and exposes lazy resource accessors.\n *\n * Mirror of the Python async `Client`: `Client.fromEnv()`, default-fleet\n * fallback, `Symbol.asyncDispose` for `await using`.\n */\n\nimport { type ClientConfig, resolveConfig } from \"./config\";\nimport { locateBinary } from \"./locate\";\nimport { FleetsResource } from \"./resources/fleets\";\nimport { KeysResource } from \"./resources/keys\";\nimport { MachinesResource } from \"./resources/machines\";\nimport { SchedulesResource } from \"./resources/schedules\";\nimport { SkillsResource } from \"./resources/skills\";\nimport { TunnelsResource } from \"./resources/tunnels\";\nimport { Transport } from \"./transport\";\n\nexport interface ClientOptions extends Partial<ClientConfig> {\n /** Override the located binary (otherwise CMDOP_CORE_BINARY / baked binary). */\n binaryPath?: string;\n}\n\nexport class Client {\n readonly config: ClientConfig;\n /** @internal Shared stdio transport (never exposed publicly). */\n readonly _t: Transport;\n\n constructor(opts: ClientOptions | string = {}) {\n const o = typeof opts === \"string\" ? { token: opts } : opts;\n this.config = resolveConfig(o);\n this._t = new Transport(this.config, o.binaryPath ?? locateBinary());\n }\n\n /** Build a client purely from the environment (`CMDOP_*`). */\n static fromEnv(): Client {\n return new Client();\n }\n\n get fleetId(): string | undefined {\n return this.config.fleetId;\n }\n\n get baseUrl(): string {\n return this.config.baseUrl;\n }\n\n #machines?: MachinesResource;\n get machines(): MachinesResource {\n return (this.#machines ??= new MachinesResource(this));\n }\n\n #fleets?: FleetsResource;\n get fleets(): FleetsResource {\n return (this.#fleets ??= new FleetsResource(this));\n }\n\n #tunnels?: TunnelsResource;\n get tunnels(): TunnelsResource {\n return (this.#tunnels ??= new TunnelsResource(this));\n }\n\n #schedules?: SchedulesResource;\n get schedules(): SchedulesResource {\n return (this.#schedules ??= new SchedulesResource(this));\n }\n\n #keys?: KeysResource;\n get keys(): KeysResource {\n return (this.#keys ??= new KeysResource(this));\n }\n\n #skills?: SkillsResource;\n get skills(): SkillsResource {\n return (this.#skills ??= new SkillsResource(this));\n }\n\n /** Close stdin (graceful drain) and reap the core process. */\n async close(): Promise<void> {\n await this._t.close();\n }\n\n async [Symbol.asyncDispose](): Promise<void> {\n await this.close();\n }\n}\n","/**\n * `@cmdop/sdk` — typed Node SDK for CMDOP.\n *\n * A **thin** client: it spawns the baked-in `cmdop-core` Go binary and speaks a\n * protobuf-length-delimited `Envelope` protocol over its stdio. All relay logic\n * (REST, the `/ask` SSE stream, pin/confirm side-channels, retries, error\n * mapping) lives in the Go core; this package is the typed surface + transport.\n *\n * import { Client } from \"@cmdop/sdk\";\n *\n * const c = new Client({ token: \"...\" });\n * const page = await c.machines.list({ presence: \"online\" });\n * const text = await c.machines.ask(machineId, \"uptime\").collect();\n * await c.close();\n */\n\nexport { Client, type ClientOptions } from \"./client\";\nexport {\n type ClientConfig,\n DEFAULT_BASE_URL,\n DEFAULT_TIMEOUT_MS,\n resolveConfig,\n} from \"./config\";\n\n// Error hierarchy + mapper.\nexport {\n AgentStreamError,\n AuthError,\n CmdopError,\n ConflictError,\n ConnectionError,\n mapCoreError,\n NotFoundError,\n PermissionError,\n RateLimitError,\n ServerError,\n ValidationError,\n} from \"./errors\";\n\n// Streaming surface.\nexport { type AskFrame, AskStream } from \"./streaming\";\n\n// Resource option shapes that appear in public signatures.\nexport type { AskOptions, ListMachinesOptions } from \"./resources/machines\";\nexport type { ListPageOptions } from \"./resources/base\";\nexport type { OpenTunnelOptions } from \"./resources/tunnels\";\nexport type {\n CreateScheduleOptions,\n RunsOptions,\n UpdateScheduleOptions,\n} from \"./resources/schedules\";\nexport type {\n SkillsListOptions,\n SkillsMyOptions,\n SkillsPublishOptions,\n SkillsReviewsOptions,\n SkillsUpdateOptions,\n TaxonomyOptions,\n} from \"./resources/skills\";\n\n// Curated generated DTO types — re-exported as a namespace.\nexport * as types from \"./types\";\n","/**\n * Curated re-exports of the generated protobuf message types.\n *\n * Users import these from `@cmdop/sdk` (under the `types` namespace), never from\n * `./_proto` directly — the mirror of the archived REST wrapper exposing curated\n * DTOs. If a regen renames a proto symbol, the alias is absorbed here.\n */\n\nexport type {\n FleetList,\n FleetSummary,\n MachineFleetLink,\n MemberInfo,\n MemberList,\n} from \"./_proto/cmdop/core/v1/fleets_pb\";\nexport type {\n ApiKeyList,\n ApiKeySummary,\n IssueKeyResponse,\n} from \"./_proto/cmdop/core/v1/keys_pb\";\nexport type {\n ActiveSessionResponse,\n ClearMessagesResponse,\n HistoryMessage,\n LiveMetrics,\n MachineDetail,\n MachineList,\n MachineSpecs,\n MachineSpend,\n MachineSummary,\n MessagesResponse,\n} from \"./_proto/cmdop/core/v1/machines_pb\";\nexport type {\n ManualTriggerResponse,\n ScheduleList,\n ScheduleRunList,\n ScheduleRunView,\n ScheduleView,\n} from \"./_proto/cmdop/core/v1/schedules_pb\";\nexport type {\n ConnectedSessionOption,\n SessionList,\n TunnelList,\n TunnelView,\n} from \"./_proto/cmdop/core/v1/tunnels_pb\";\nexport type {\n SkillCategory,\n SkillCategoryList,\n SkillCreated,\n SkillDetail,\n SkillFile,\n SkillInstall,\n SkillListPage,\n SkillMeta,\n SkillPackages,\n SkillReview,\n SkillReviewPage,\n SkillsPublishResponse,\n SkillsPublishStatusResponse,\n SkillStar,\n SkillSummary,\n SkillTag,\n SkillTagList,\n SkillUpdated,\n SkillVersion,\n SkillVersionList,\n} from \"./_proto/cmdop/core/v1/skills_pb\";\n"]}