{"version":3,"file":"contract.meta.mjs","names":[],"sources":["../src/contract.meta.ts"],"sourcesContent":["export type CliCommandMeta = {\n  commandPath?: string[];\n  summary: string;\n  description?: string;\n  examples?: string[];\n  interactive?: boolean;\n  longRunning?: boolean;\n  fields?: Record<string, { positional?: boolean; description?: string }>;\n};\n\nexport const cliCommandMeta = {\n  dev: {\n    commandPath: [\"dev\"],\n    summary: \"Start a development session\",\n    interactive: true,\n    longRunning: true,\n  },\n  start: {\n    commandPath: [\"start\"],\n    summary: \"Start the production host\",\n    interactive: false,\n    longRunning: true,\n    fields: {\n      env: { description: \"Environment: production or staging\" },\n    },\n  },\n  build: {\n    commandPath: [\"build\"],\n    summary: \"Build selected workspaces\",\n    interactive: false,\n    fields: {\n      packages: { positional: true, description: \"Comma-separated package list\" },\n    },\n  },\n  config: {\n    commandPath: [\"config\"],\n    summary: \"Print the loaded BOS configuration\",\n    interactive: false,\n  },\n  pluginAdd: {\n    commandPath: [\"plugin\", \"add\"],\n    summary: \"Add a plugin attachment\",\n    interactive: false,\n    fields: {\n      source: {\n        positional: true,\n        description: \"Plugin source (local:path, bos://account/domain, or URL)\",\n      },\n      as: { description: \"Plugin alias\" },\n      production: { description: \"Production URL override\" },\n    },\n  },\n  pluginRemove: {\n    commandPath: [\"plugin\", \"remove\"],\n    summary: \"Remove a plugin attachment\",\n    interactive: false,\n    fields: { key: { positional: true, description: \"Plugin key\" } },\n  },\n  pluginList: {\n    commandPath: [\"plugin\", \"list\"],\n    summary: \"List configured plugins\",\n    interactive: false,\n  },\n  pluginPublish: {\n    commandPath: [\"plugin\", \"publish\"],\n    summary: \"Publish a single plugin\",\n    interactive: false,\n    fields: { key: { positional: true, description: \"Plugin key\" } },\n  },\n  publish: {\n    commandPath: [\"publish\"],\n    summary: \"Publish the current workspace configuration\",\n    interactive: false,\n  },\n  keyPublish: {\n    commandPath: [\"key\", \"publish\"],\n    summary: \"Generate a publish access key\",\n    interactive: false,\n  },\n  init: {\n    commandPath: [\"init\"],\n    summary: \"Scaffold a new project by extending a deployed app or template\",\n    interactive: true,\n    fields: {\n      domain: {\n        positional: true,\n        description: \"New project domain (e.g. myapp.everything.dev)\",\n      },\n      extends: {\n        description: \"Parent to extend from (e.g. bos://account/gateway or account/gateway)\",\n      },\n      account: { description: \"New project NEAR account (auto-derived from extends)\" },\n      directory: { description: \"Target directory (auto-derived from domain)\" },\n      source: { description: \"Local source dir (skips GitHub download)\" },\n      plugins: {\n        description: \"Comma-separated plugin keys to include (requires --overrides=plugins)\",\n      },\n      overrides: {\n        description: \"Comma-separated sections to customize locally: ui,api,host,plugins\",\n      },\n      noInteractive: { description: \"Skip prompts, use flags only\" },\n      noInstall: { description: \"Skip bun install\" },\n    },\n  },\n  sync: {\n    commandPath: [\"sync\"],\n    summary: \"Sync template files from parent project\",\n    interactive: false,\n    fields: {\n      dryRun: { description: \"Preview changes without writing files\" },\n      force: { description: \"Overwrite user-modified files\" },\n      noInstall: { description: \"Skip bun install\" },\n    },\n  },\n  upgrade: {\n    commandPath: [\"upgrade\"],\n    summary: \"Upgrade framework packages and sync template files\",\n    interactive: true,\n    fields: {\n      dryRun: { description: \"Preview changes without writing\" },\n      force: { description: \"Overwrite user-modified files during sync\" },\n      noInstall: { description: \"Skip bun install\" },\n      noSync: { description: \"Only upgrade packages, skip template sync\" },\n    },\n  },\n  typesGen: {\n    commandPath: [\"types\", \"gen\"],\n    summary: \"Generate type definitions from configured API and plugin contracts\",\n    interactive: false,\n    fields: {\n      env: { description: \"Environment: development (default) or production\" },\n      dryRun: { description: \"Preview what would be fetched without writing files\" },\n    },\n  },\n  status: {\n    commandPath: [\"status\"],\n    summary: \"Show project health, versions, and update availability\",\n    interactive: false,\n  },\n} as const satisfies Record<string, CliCommandMeta>;\n"],"mappings":";AAUA,MAAa,iBAAiB;CAC5B,KAAK;EACH,aAAa,CAAC,MAAM;EACpB,SAAS;EACT,aAAa;EACb,aAAa;EACd;CACD,OAAO;EACL,aAAa,CAAC,QAAQ;EACtB,SAAS;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