@gtkx/config 2.0.0-beta.11 → 2.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +2 -2
  2. package/dist/builtin-elements.d.ts +23 -0
  3. package/dist/builtin-elements.d.ts.map +1 -0
  4. package/dist/builtin-elements.js +366 -0
  5. package/dist/builtin-elements.js.map +1 -0
  6. package/dist/config-dependencies.d.ts +5 -3
  7. package/dist/config-dependencies.d.ts.map +1 -1
  8. package/dist/config-dependencies.js +54 -22
  9. package/dist/config-dependencies.js.map +1 -1
  10. package/dist/config-error.d.ts.map +1 -1
  11. package/dist/config-error.js.map +1 -1
  12. package/dist/config-reloader.d.ts.map +1 -1
  13. package/dist/config-reloader.js +2 -8
  14. package/dist/config-reloader.js.map +1 -1
  15. package/dist/config-source.d.ts +4 -2
  16. package/dist/config-source.d.ts.map +1 -1
  17. package/dist/config-source.js +26 -8
  18. package/dist/config-source.js.map +1 -1
  19. package/dist/config.d.ts +159 -45
  20. package/dist/config.d.ts.map +1 -1
  21. package/dist/config.js +28 -19
  22. package/dist/config.js.map +1 -1
  23. package/dist/deploy.d.ts +391 -13
  24. package/dist/deploy.d.ts.map +1 -1
  25. package/dist/deploy.js +16 -13
  26. package/dist/deploy.js.map +1 -1
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal.d.ts +3 -3
  32. package/dist/internal.d.ts.map +1 -1
  33. package/dist/internal.js +3 -3
  34. package/dist/internal.js.map +1 -1
  35. package/dist/loader.d.ts +22 -4
  36. package/dist/loader.d.ts.map +1 -1
  37. package/dist/loader.js +59 -31
  38. package/dist/loader.js.map +1 -1
  39. package/dist/resource-base-path.d.ts.map +1 -1
  40. package/dist/schema-text.d.ts.map +1 -1
  41. package/dist/user-event-signals.d.ts.map +1 -1
  42. package/dist/virtual.d.ts +1 -1
  43. package/dist/virtual.d.ts.map +1 -1
  44. package/dist/virtual.js +4 -2
  45. package/dist/virtual.js.map +1 -1
  46. package/dist/vite-plugin.d.ts +2 -0
  47. package/dist/vite-plugin.d.ts.map +1 -1
  48. package/dist/vite-plugin.js +4 -3
  49. package/dist/vite-plugin.js.map +1 -1
  50. package/dist/vite-root.d.ts.map +1 -1
  51. package/package.json +14 -29
  52. package/src/builtin-elements.ts +377 -0
  53. package/src/config-dependencies.ts +61 -27
  54. package/src/config-error.ts +5 -3
  55. package/src/config-reloader.ts +2 -11
  56. package/src/config-source.ts +35 -8
  57. package/src/config.ts +189 -39
  58. package/src/deploy.ts +471 -55
  59. package/src/index.ts +42 -3
  60. package/src/internal.ts +3 -2
  61. package/src/loader.ts +106 -37
  62. package/src/virtual.ts +6 -4
  63. package/src/vite-plugin.ts +9 -2
  64. package/dist/static-dependencies.d.ts +0 -3
  65. package/dist/static-dependencies.d.ts.map +0 -1
  66. package/dist/static-dependencies.js +0 -350
  67. package/dist/static-dependencies.js.map +0 -1
  68. package/src/static-dependencies.ts +0 -464
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAqB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAiDlE,MAAM,sBAAsB,GAAG,uDAAuD,CAAC;AACvF,MAAM,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AmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,GAKhB,CAAC","sourcesContent":["import { createDefineConfig, type DefineConfig } from \"c12\";\nimport { defu } from \"defu\";\nimport { resolve } from \"node:path\";\nimport { z } from \"zod\";\nimport { configError, isRecord } from \"./config-error.ts\";\nimport { deploySchema } from \"./deploy.ts\";\nimport { girLibrary, text } from \"./schema-text.ts\";\nimport { resolveUserEventSignals } from \"./user-event-signals.ts\";\n\n/** Object form of the `reactCompiler` config key, forwarded to `babel-plugin-react-compiler`. */\ntype ReactCompilerOptions = {\n /** Which functions the compiler processes. */\n compilationMode?: (typeof COMPILATION_MODES)[number];\n /** Which compiler diagnostics fail the build. */\n panicThreshold?: (typeof PANIC_THRESHOLDS)[number];\n};\n\n/**\n * The React Compiler options the build hands to `babel-plugin-react-compiler`, with the React version\n * GTKX targets filled in.\n */\ntype ResolvedReactCompilerOptions = ReactCompilerOptions & {\n /** React major version the compiler emits for. */\n target: \"19\";\n};\n\n/**\n * GTKX project configuration authored in `gtkx.config.ts` and validated when loaded.\n */\ntype Config = z.infer<typeof configSchema>;\ntype ModuleExport = z.infer<typeof moduleExportSchema>;\ntype ElementPropsExport = z.infer<typeof elementPropsSchema>;\ntype ElementConfigEntry = z.infer<typeof elementConfigSchema>;\n\ntype McpSettings = {\n tools: string[];\n isReadOnly: boolean;\n};\n\n/** Configuration reduced to the values the app runtime and the build need, with paths already resolved. */\ntype ResolvedConfig = {\n /** The GApplication identifier the app registers under. */\n applicationId: string;\n /** React Compiler options for the build, or `null` when the compiler is disabled. */\n reactCompiler: ResolvedReactCompilerOptions | null;\n /**\n * Signal names, keyed by GLib type name, that stay suppressed while a React commit writes to a widget.\n * `notify` stays suppressed only for the property being written.\n */\n userEventSignals: Record<string, string[]>;\n /** Path of the module exporting per-element configs, or `null` when none is configured. */\n elements: string | null;\n /** GLib type names of the elements marked `isLazy`, whose GObject their parent container creates. */\n lazyElements: string[];\n};\n\nconst APPLICATION_ID_PATTERN = /^[A-Za-z_][A-Za-z0-9_-]*(\\.[A-Za-z_][A-Za-z0-9_-]*)+$/;\nconst APPLICATION_ID_MAX_LENGTH = 255;\nconst IMPLICIT_LIBRARIES: Set<string> = new Set([\"Adw-1\", \"Gtk-4.0\"]);\n/** Compilation modes `babel-plugin-react-compiler` accepts. */\nconst COMPILATION_MODES = [\"infer\", \"syntax\", \"annotation\", \"all\"] as const;\n/** Panic thresholds `babel-plugin-react-compiler` accepts. */\nconst PANIC_THRESHOLDS = [\"none\", \"critical_errors\", \"all_errors\"] as const;\nconst REACT_COMPILER_TARGET = \"19\";\n\nconst librarySchema = girLibrary('must be of the form \"Name-Version\", such as \"Adw-1\"')\n .refine((library) => !IMPLICIT_LIBRARIES.has(library), { error: \"is bound implicitly; remove it\" });\n\nconst librariesSchema = z\n .array(librarySchema, { error: \"must be a non-empty string array or omitted\" })\n .min(1, { error: \"must be a non-empty string array or omitted\" });\n\nconst applicationIdSchema = z\n .string({ error: \"must satisfy g_application_id_is_valid\" })\n .refine((value) => isValidApplicationId(value), {\n error: 'must satisfy g_application_id_is_valid, such as \"org.example.MyApp\"',\n });\n\nconst reactCompilerSchema = z.union([\n z.boolean(),\n z.strictObject({\n compilationMode: z.enum(COMPILATION_MODES).optional(),\n panicThreshold: z.enum(PANIC_THRESHOLDS).optional(),\n }),\n]);\n\nconst userEventSignalsSchema = z.record(\n z.string(),\n z.array(\n z.string({ error: \"must be a non-empty signal name\" }).min(1, { error: \"must be a non-empty signal name\" }),\n {\n error: \"must be an array of signal names\",\n },\n ),\n { error: \"must be a record of GLib type names to signal name arrays\" },\n);\n\nconst moduleExportSchema = z.strictObject(\n {\n module: z.string({ error: \"must be a module specifier\" }).min(1, { error: \"must be a module specifier\" }),\n export: z.string({ error: \"must be an export name\" }).min(1, { error: \"must be an export name\" }),\n },\n { error: \"must be a { module, export } object\" },\n);\n\nconst elementPropsSchema = moduleExportSchema.extend({\n composition: z.enum([\"factory\", \"intersection\"]).optional(),\n constructOnly: z.array(z.string()).optional(),\n});\n\nconst elementConfigSchema = z.strictObject({\n component: moduleExportSchema.optional(),\n props: elementPropsSchema.optional(),\n isLazy: z.boolean({ error: \"must be a boolean\" }).optional(),\n acceptedChildTypes: z.array(z.string()).optional(),\n omittedProps: z\n .array(\n z.string({ error: \"must be a non-empty property name\" }).min(1, {\n error: \"must be a non-empty property name\",\n }),\n { error: \"must be an array of property names\" },\n )\n .optional(),\n});\n\nconst elementsSchema = z.strictObject({\n behaviors: z\n .string({ error: \"must be a path to a module exporting element behaviors\" })\n .min(1, { error: \"must be a path to a module exporting element behaviors\" })\n .optional(),\n config: z.record(z.string(), elementConfigSchema).optional(),\n});\n\nconst agentsSchema = z.strictObject({\n rules: z.boolean({ error: \"must be a boolean\" }).optional(),\n reference: z.boolean({ error: \"must be a boolean\" }).optional(),\n});\n\nconst mcpSchema = z.strictObject({\n tools: z\n .array(z.string({ error: \"must be a tool name pattern\" }).min(1, { error: \"must be a tool name pattern\" }), {\n error: \"must be an array of tool name patterns\",\n })\n .optional(),\n readOnly: z.boolean({ error: \"must be a boolean\" }).optional(),\n});\n\nconst graduatedFutureSchema = z\n .object({\n v2ByteArrays: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2ValueReturns: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2FinishResults: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2InoutReturns: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2ResourceImports: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2DefaultLibraries: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2TreeShaking: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n })\n .strict();\n\nconst deprecationsSchema = z.strictObject({\n silence: z\n .array(z.never({ error: \"does not name a current deprecation\" }), {\n error: \"must be an array of current deprecation ids\",\n })\n .optional(),\n});\n\n/** Schema every `gtkx.config.ts` is validated against, and the source of the {@link Config} type. */\nconst configSchema = z.strictObject({\n libraries: librariesSchema.optional(),\n girPath: z.array(z.string(), { error: \"must be an array of strings if provided\" }).optional(),\n applicationId: applicationIdSchema,\n reactCompiler: reactCompilerSchema.optional(),\n codegen: z.boolean({ error: \"must be a boolean\" }).optional(),\n userEventSignals: userEventSignalsSchema.optional(),\n elements: elementsSchema.optional(),\n applicationIcon: text(\"must be a path to an icon theme directory or a single icon file\").optional(),\n deploy: deploySchema.optional(),\n agents: agentsSchema.optional(),\n mcp: mcpSchema.optional(),\n deprecations: deprecationsSchema.optional(),\n});\n\n/**\n * Returns the given configuration unchanged, typed as {@link Config}, so `gtkx.config.ts` gets\n * autocompletion and type checking.\n */\nconst defineConfig: DefineConfig<Config> = createDefineConfig<Config>();\nconst validationSchema = configSchema.extend({ future: graduatedFutureSchema.optional() });\n\nconst isValidApplicationId = (applicationId: string): boolean =>\n applicationId.length <= APPLICATION_ID_MAX_LENGTH && APPLICATION_ID_PATTERN.test(applicationId);\n\nconst resolveReactCompilerOptions = (setting: Config[\"reactCompiler\"]): ResolvedReactCompilerOptions | null => {\n if (setting === false) {\n return null;\n }\n\n const overrides = setting === undefined || setting === true ? {} : setting;\n\n return {\n ...(overrides.compilationMode !== undefined && { compilationMode: overrides.compilationMode }),\n ...(overrides.panicThreshold !== undefined && { panicThreshold: overrides.panicThreshold }),\n target: REACT_COMPILER_TARGET,\n };\n};\n\nconst validateConfig = (config: unknown, configFile?: string): void => {\n const result = validationSchema.safeParse(config);\n\n if (!result.success) {\n throw configError(result.error, configFile);\n }\n};\n\nconst graduatedFutureKeys = (config: unknown): string[] => {\n if (!isRecord(config) || !isRecord(config.future)) {\n return [];\n }\n\n return Object.keys(config.future).toSorted((first, second) => first.localeCompare(second));\n};\n\n/**\n * Deep-merges a configuration over a base. `override` wins over `base` on conflicting scalar and object keys, while\n * arrays are concatenated with the `override` entries first.\n */\nconst mergeConfig = (base: Config, override: Config): Config => defu(override, base);\n\nconst resolveElementsModule = (behaviors: string | undefined, root: string | undefined): string | null => {\n if (behaviors === undefined) {\n return null;\n }\n\n return root === undefined ? behaviors : resolve(root, behaviors);\n};\n\nconst resolveLazyElements = (elements: Config[\"elements\"]): string[] =>\n Object.entries(elements?.config ?? {})\n .filter(([, entry]) => entry.isLazy === true)\n .map(([type]) => type);\n\nconst elementEntryValues = <T>(\n elements: Config[\"elements\"],\n pick: (entry: ElementConfigEntry) => T | undefined,\n): Record<string, T> =>\n Object.fromEntries(\n Object.entries(elements?.config ?? {}).flatMap(([type, entry]) => {\n const value = pick(entry);\n\n return value === undefined ? [] : [[type, value] as const];\n }),\n );\n\nconst resolveElementComponents = (elements: Config[\"elements\"]): Record<string, ModuleExport> =>\n elementEntryValues(elements, (entry) => entry.component);\n\nconst resolveElementProps = (elements: Config[\"elements\"]): Record<string, ElementPropsExport> =>\n elementEntryValues(elements, (entry) => entry.props);\n\nconst resolveAcceptedChildTypes = (elements: Config[\"elements\"]): Record<string, string[]> =>\n elementEntryValues(elements, (entry) => entry.acceptedChildTypes);\n\nconst resolveOmittedProps = (elements: Config[\"elements\"]): Record<string, string[]> =>\n elementEntryValues(elements, (entry) => entry.omittedProps);\n\nconst isAgentRulesEnabled = (config: Config): boolean => config.agents?.rules !== false;\nconst isAgentReferenceEnabled = (config: Config): boolean => config.agents?.reference !== false;\n\nconst resolveMcpSettings = (config: Config): McpSettings => ({\n tools: config.mcp?.tools ?? [],\n isReadOnly: config.mcp?.readOnly === true,\n});\n\nconst resolveConfig = (config: Config, root?: string): ResolvedConfig => ({\n applicationId: config.applicationId,\n reactCompiler: resolveReactCompilerOptions(config.reactCompiler),\n userEventSignals: resolveUserEventSignals(config.userEventSignals),\n elements: resolveElementsModule(config.elements?.behaviors, root),\n lazyElements: resolveLazyElements(config.elements),\n});\n\nexport {\n APPLICATION_ID_MAX_LENGTH,\n defineConfig,\n isAgentReferenceEnabled,\n isAgentRulesEnabled,\n isValidApplicationId,\n graduatedFutureKeys,\n validateConfig,\n mergeConfig,\n resolveLazyElements,\n resolveElementComponents,\n resolveElementProps,\n resolveAcceptedChildTypes,\n resolveMcpSettings,\n resolveOmittedProps,\n resolveConfig,\n type McpSettings,\n type ResolvedReactCompilerOptions,\n type Config,\n type ResolvedConfig,\n};\n"]}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAqB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAsB,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAwKlE,MAAM,sBAAsB,GAAG,uDAAuD,CAAC;AACvF,MAAM,yBAAyB,GAAG,GAAG,CAAC;AACtC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAClD,MAAM,kBAAkB,GAAgB,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACtE,+DAA+D;AAC/D,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAU,CAAC;AAC5E,8DAA8D;AAC9D,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,CAAU,CAAC;AAC5E,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAEnC,MAAM,aAAa,GAAG,UAAU,CAAC,qDAAqD,CAAC,CAAC,MAAM,CAC1F,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,kBAAkB,CA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AC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC;IACjE,YAAY,EAAE,mBAAmB,CAAC,MAAM,CAAC,QAAQ,CAAC;CACrD,CAAC,CAAC;AAEH,OAAO,EACH,YAAY,EACZ,yBAAyB,EACzB,sBAAsB,EACtB,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,GAchB,CAAC","sourcesContent":["import { createDefineConfig, type DefineConfig } from \"c12\";\nimport { defu } from \"defu\";\nimport { resolve } from \"node:path\";\nimport { z } from \"zod\";\nimport { configError, isRecord } from \"./config-error.ts\";\nimport { type DeployOptions, deploySchema } from \"./deploy.ts\";\nimport { girLibrary, text } from \"./schema-text.ts\";\nimport { resolveUserEventSignals } from \"./user-event-signals.ts\";\n\n/** Object form of the `reactCompiler` config key, forwarded to `babel-plugin-react-compiler`. */\ntype ReactCompilerOptions = {\n /** Which functions the React Compiler processes. */\n compilationMode?: \"all\" | \"annotation\" | \"infer\" | \"syntax\" | undefined;\n /** Which React Compiler diagnostics fail the build. */\n panicThreshold?: \"all_errors\" | \"critical_errors\" | \"none\" | undefined;\n};\n\n/**\n * The React Compiler options the build hands to `babel-plugin-react-compiler`, with the React version\n * GTKX targets filled in.\n */\ntype ResolvedReactCompilerOptions = ReactCompilerOptions & {\n /** React major version the compiler emits for. */\n target: \"19\";\n};\n\n/**\n * GTKX project configuration authored in `gtkx.config.ts` and validated when loaded.\n */\ntype Config = {\n /**\n * Additional GIR libraries to bind, such as `WebKit-6.0`.\n * Adwaita and GTK are included implicitly and must not be listed.\n */\n libraries?: string[] | undefined;\n /** Additional GIR search directories. Relative paths are resolved from the project root. */\n girPath?: string[] | undefined;\n /**\n * GApplication identifier, such as `com.example.Tasks`. Required to run, build or deploy the project as an\n * application; a package that is not an application, such as a component library, leaves it out.\n */\n applicationId?: string | undefined;\n /** Whether to enable the React Compiler, or options passed to it. Enabled by default. */\n reactCompiler?: boolean | ReactCompilerOptions | undefined;\n /**\n * Whether GTKX generates project bindings. Set to `false` to reuse an installed binding store.\n * Defaults to `true`.\n */\n codegen?: boolean | undefined;\n /**\n * Additional signals to suppress during React property updates, keyed by GLib type name.\n * Entries extend the built-in signal lists.\n */\n userEventSignals?: Record<string, string[]> | undefined;\n /** Custom element behaviors and overrides for generated components, props, and documentation. */\n elements?: ElementsOptions | undefined;\n /** Path to an icon theme directory or a single application icon file, relative to the project root. */\n applicationIcon?: string | undefined;\n /** Application metadata, bundled runtime settings, and packaging options used by `gtkx deploy`. */\n deploy?: DeployOptions | undefined;\n /** Controls the project instructions and reference files generated for coding agents. */\n agents?: AgentsOptions | undefined;\n /** Default tool selection and access mode for the project's MCP server. Command-line flags take precedence. */\n mcp?: McpOptions | undefined;\n /** Controls warnings for deprecated configuration and behavior. */\n deprecations?: DeprecationsOptions | undefined;\n};\n/** A {@link Config} whose `applicationId` is known, as loaded for an application. */\ntype ApplicationConfig = Config & { applicationId: string };\n\n/** A named export of a module, which `elements.config` entries reference for components and props. */\ntype ModuleExport = {\n /** Module specifier containing the named export; relative paths start at the project root. */\n module: string;\n /** Name of the export to import from the module. */\n export: string;\n};\n\n/** The props type an `elements.config` entry adds to a generated element, and how it combines with them. */\ntype ElementPropsExport = {\n /** Module specifier containing the named export; relative paths start at the project root. */\n module: string;\n /** Name of the props type to import from the module. */\n export: string;\n /**\n * How the exported props are combined: `intersection` is inherited; `factory` applies only to this type.\n * Defaults to `intersection`.\n */\n composition?: \"factory\" | \"intersection\" | undefined;\n /** Props that can only be set when the element is created; changing them afterward throws. */\n constructOnly?: string[] | undefined;\n};\n\n/** Overrides for one GLib type in `elements.config`, keyed by its registered type name. */\ntype ElementConfigOptions = {\n /** Component export that wraps the generated element. */\n component?: ModuleExport | undefined;\n /** Additional props type to combine with the generated element props. */\n props?: ElementPropsExport | undefined;\n /** Whether the parent container creates this element's GObject instead of the element constructing its own. */\n isLazy?: boolean | undefined;\n /** Accepted child GLib type names to show in the generated element documentation. */\n acceptedChildTypes?: string[] | undefined;\n /** GObject properties to leave out of generated props, such as properties managed by an element behavior. */\n omittedProps?: string[] | undefined;\n};\n\n/** The `elements` options: custom element behaviors and per-type overrides for generated elements. */\ntype ElementsOptions = {\n /** Path, relative to the project root, of the module exporting the element behavior map. */\n behaviors?: string | undefined;\n /** Element configuration overrides keyed by GLib type name, such as `GtkWidget`. */\n config?: Record<string, ElementConfigOptions> | undefined;\n};\n\n/** The `agents` options: which files codegen maintains for coding agents. */\ntype AgentsOptions = {\n /**\n * Whether codegen maintains the GTKX rules in `AGENTS.md` and creates a missing `CLAUDE.md` import.\n * `false` removes rules written earlier, deleting `AGENTS.md` and the `CLAUDE.md` import when nothing else\n * remains. Defaults to `true` for an application and `false` for a package without an `applicationId`.\n */\n rules?: boolean | undefined;\n /**\n * Whether codegen writes the generated element reference to `.gtkx/reference` and points the rules at it.\n * `false` removes a reference generated earlier. Defaults to `true` for an application and `false` for a\n * package without an `applicationId`.\n */\n reference?: boolean | undefined;\n};\n\n/** The `mcp` options: the tools `gtkx mcp` offers by default and whether it may interact with the app. */\ntype McpOptions = {\n /**\n * Tool name patterns applied in order: `*` matches any text and a leading `!` excludes matches.\n * Omitted, empty, or exclusion-only lists start with all tools; other lists start with none.\n */\n tools?: string[] | undefined;\n /**\n * Whether the MCP server exposes only inspection and reference tools, excluding app interactions.\n * Defaults to `false`.\n */\n readOnly?: boolean | undefined;\n};\n\n/** The `deprecations` options: which deprecation warnings stay silent. */\ntype DeprecationsOptions = {\n /** Deprecation identifiers whose warnings are suppressed. There are currently no accepted identifiers. */\n silence?: never[] | undefined;\n};\n\ntype McpSettings = {\n tools: string[];\n isReadOnly: boolean;\n};\n\n/** Configuration reduced to the values the app runtime and the build need, with paths already resolved. */\ntype ResolvedConfig = {\n /** The GApplication identifier the app registers under. */\n applicationId: string;\n /** The gettext domain, which is the `applicationId` production builds use. */\n translationDomain: string;\n /** React Compiler options for the build, or `null` when the compiler is disabled. */\n reactCompiler: ResolvedReactCompilerOptions | null;\n /**\n * Signal names, keyed by GLib type name, that stay suppressed while a React commit writes to a widget.\n * `notify` stays suppressed only for the property being written.\n */\n userEventSignals: Record<string, string[]>;\n /** Path of the module exporting per-element configs, or `null` when none is configured. */\n elements: string | null;\n /** GLib type names of the elements marked `isLazy`, whose GObject their parent container creates. */\n lazyElements: string[];\n};\n\nconst APPLICATION_ID_PATTERN = /^[A-Za-z_][A-Za-z0-9_-]*(\\.[A-Za-z_][A-Za-z0-9_-]*)+$/;\nconst APPLICATION_ID_MAX_LENGTH = 255;\nconst LIBRARY_APPLICATION_ID = \"org.gtkx.Library\";\nconst IMPLICIT_LIBRARIES: Set<string> = new Set([\"Adw-1\", \"Gtk-4.0\"]);\n/** Compilation modes `babel-plugin-react-compiler` accepts. */\nconst COMPILATION_MODES = [\"infer\", \"syntax\", \"annotation\", \"all\"] as const;\n/** Panic thresholds `babel-plugin-react-compiler` accepts. */\nconst PANIC_THRESHOLDS = [\"none\", \"critical_errors\", \"all_errors\"] as const;\nconst REACT_COMPILER_TARGET = \"19\";\n\nconst librarySchema = girLibrary('must be of the form \"Name-Version\", such as \"Adw-1\"').refine(\n (library) => !IMPLICIT_LIBRARIES.has(library),\n { error: \"is bound implicitly; remove it\" },\n);\n\nconst librariesSchema = z\n .array(librarySchema, { error: \"must be a non-empty string array or omitted\" })\n .min(1, { error: \"must be a non-empty string array or omitted\" });\n\nconst applicationIdSchema = z\n .string({\n error: (issue) =>\n issue.input === undefined\n ? 'is required to run, build or deploy an application, such as \"org.example.MyApp\"'\n : \"must satisfy g_application_id_is_valid\",\n })\n .refine((value) => isValidApplicationId(value), {\n error: 'must satisfy g_application_id_is_valid, such as \"org.example.MyApp\"',\n });\n\nconst reactCompilerOptionsSchema = z.strictObject({\n compilationMode: z.enum(COMPILATION_MODES).optional(),\n panicThreshold: z.enum(PANIC_THRESHOLDS).optional(),\n}) satisfies z.ZodType<ReactCompilerOptions>;\n\nconst reactCompilerSchema = z.union([z.boolean(), reactCompilerOptionsSchema]);\n\nconst userEventSignalsSchema = z.record(\n z.string(),\n z.array(\n z.string({ error: \"must be a non-empty signal name\" }).min(1, { error: \"must be a non-empty signal name\" }),\n {\n error: \"must be an array of signal names\",\n },\n ),\n { error: \"must be a record of GLib type names to signal name arrays\" },\n);\n\nconst moduleExportSchema = z.strictObject(\n {\n module: z.string({ error: \"must be a module specifier\" }).min(1, { error: \"must be a module specifier\" }),\n export: z.string({ error: \"must be an export name\" }).min(1, { error: \"must be an export name\" }),\n },\n { error: \"must be a { module, export } object\" },\n) satisfies z.ZodType<ModuleExport>;\n\nconst elementPropsSchema = moduleExportSchema.extend({\n composition: z.enum([\"factory\", \"intersection\"]).optional(),\n constructOnly: z.array(z.string()).optional(),\n}) satisfies z.ZodType<ElementPropsExport>;\n\nconst elementConfigSchema = z.strictObject({\n component: moduleExportSchema.optional(),\n props: elementPropsSchema.optional(),\n isLazy: z.boolean({ error: \"must be a boolean\" }).optional(),\n acceptedChildTypes: z.array(z.string()).optional(),\n omittedProps: z\n .array(\n z.string({ error: \"must be a non-empty property name\" }).min(1, {\n error: \"must be a non-empty property name\",\n }),\n { error: \"must be an array of property names\" },\n )\n .optional(),\n}) satisfies z.ZodType<ElementConfigOptions>;\n\nconst elementsSchema = z.strictObject({\n behaviors: z\n .string({ error: \"must be a path to a module exporting element behaviors\" })\n .min(1, { error: \"must be a path to a module exporting element behaviors\" })\n .optional(),\n config: z.record(z.string(), elementConfigSchema).optional(),\n}) satisfies z.ZodType<ElementsOptions>;\n\nconst agentsSchema = z.strictObject({\n rules: z.boolean({ error: \"must be a boolean\" }).optional(),\n reference: z.boolean({ error: \"must be a boolean\" }).optional(),\n}) satisfies z.ZodType<AgentsOptions>;\n\nconst mcpSchema = z.strictObject({\n tools: z\n .array(z.string({ error: \"must be a tool name pattern\" }).min(1, { error: \"must be a tool name pattern\" }), {\n error: \"must be an array of tool name patterns\",\n })\n .optional(),\n readOnly: z.boolean({ error: \"must be a boolean\" }).optional(),\n}) satisfies z.ZodType<McpOptions>;\n\nconst graduatedFutureSchema = z\n .object({\n v2ByteArrays: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2ValueReturns: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2FinishResults: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2InoutReturns: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2ResourceImports: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2DefaultLibraries: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n v2TreeShaking: z.literal(true, { error: \"can only be true; remove the flag\" }).optional(),\n })\n .strict();\n\nconst deprecationsSchema = z.strictObject({\n silence: z\n .array(z.never({ error: \"does not name a current deprecation\" }), {\n error: \"must be an array of current deprecation ids\",\n })\n .optional(),\n}) satisfies z.ZodType<DeprecationsOptions>;\n\n/** Schema every `gtkx.config.ts` is validated against. */\nconst configSchema = z.strictObject({\n libraries: librariesSchema.optional(),\n girPath: z.array(z.string(), { error: \"must be an array of strings if provided\" }).optional(),\n applicationId: applicationIdSchema.optional(),\n reactCompiler: reactCompilerSchema.optional(),\n codegen: z.boolean({ error: \"must be a boolean\" }).optional(),\n userEventSignals: userEventSignalsSchema.optional(),\n elements: elementsSchema.optional(),\n applicationIcon: text(\"must be a path to an icon theme directory or a single icon file\").optional(),\n deploy: deploySchema.optional(),\n agents: agentsSchema.optional(),\n mcp: mcpSchema.optional(),\n deprecations: deprecationsSchema.optional(),\n}) satisfies z.ZodType<Config>;\n\n/**\n * Returns the given configuration unchanged, typed as {@link Config}, so `gtkx.config.ts` gets\n * autocompletion and type checking.\n */\nconst defineConfig: DefineConfig<Config> = createDefineConfig<Config>();\nconst validationSchema = configSchema.extend({\n applicationId: applicationIdSchema,\n future: graduatedFutureSchema.optional(),\n});\n\nconst isValidApplicationId = (applicationId: string): boolean =>\n applicationId.length <= APPLICATION_ID_MAX_LENGTH && APPLICATION_ID_PATTERN.test(applicationId);\n\nconst resolveReactCompilerOptions = (setting: Config[\"reactCompiler\"]): ResolvedReactCompilerOptions | null => {\n if (setting === false) {\n return null;\n }\n\n const overrides = setting === undefined || setting === true ? {} : setting;\n\n return {\n ...(overrides.compilationMode !== undefined && { compilationMode: overrides.compilationMode }),\n ...(overrides.panicThreshold !== undefined && { panicThreshold: overrides.panicThreshold }),\n target: REACT_COMPILER_TARGET,\n };\n};\n\nconst validateConfig: (config: unknown, configFile?: string) => asserts config is ApplicationConfig = (\n config,\n configFile,\n) => {\n const result = validationSchema.safeParse(config);\n\n if (!result.success) {\n throw configError(result.error, configFile);\n }\n};\n\nconst graduatedFutureKeys = (config: unknown): string[] => {\n if (!isRecord(config) || !isRecord(config.future)) {\n return [];\n }\n\n return Object.keys(config.future).toSorted((first, second) => first.localeCompare(second));\n};\n\n/**\n * Deep-merges a configuration over a base. `override` wins over `base` on conflicting scalar and object keys, while\n * arrays are concatenated with the `override` entries first.\n */\nconst mergeConfig = (base: Config, override: Config): Config => defu(override, base);\n\nconst resolveElementsModule = (behaviors: string | undefined, root: string | undefined): string | null => {\n if (behaviors === undefined) {\n return null;\n }\n\n return root === undefined ? behaviors : resolve(root, behaviors);\n};\n\nconst resolveLazyElements = (elements: Config[\"elements\"]): string[] =>\n Object.entries(elements?.config ?? {})\n .filter(([, entry]) => entry.isLazy === true)\n .map(([type]) => type);\n\nconst elementEntryValues = <T>(\n elements: Config[\"elements\"],\n pick: (entry: ElementConfigOptions) => T | undefined,\n): Record<string, T> =>\n Object.fromEntries(\n Object.entries(elements?.config ?? {}).flatMap(([type, entry]) => {\n const value = pick(entry);\n\n return value === undefined ? [] : [[type, value] as const];\n }),\n );\n\nconst resolveModuleSpecifier = <T extends { module: string }>(reference: T, root: string): T =>\n reference.module.startsWith(\"./\") || reference.module.startsWith(\"../\")\n ? { ...reference, module: resolve(root, reference.module) }\n : reference;\n\nconst resolveElementComponents = (elements: Config[\"elements\"], root: string): Record<string, ModuleExport> =>\n elementEntryValues(elements, (entry) => entry.component && resolveModuleSpecifier(entry.component, root));\n\nconst resolveElementProps = (elements: Config[\"elements\"], root: string): Record<string, ElementPropsExport> =>\n elementEntryValues(elements, (entry) => entry.props && resolveModuleSpecifier(entry.props, root));\n\nconst resolveAcceptedChildTypes = (elements: Config[\"elements\"]): Record<string, string[]> =>\n elementEntryValues(elements, (entry) => entry.acceptedChildTypes);\n\nconst resolveOmittedProps = (elements: Config[\"elements\"]): Record<string, string[]> =>\n elementEntryValues(elements, (entry) => entry.omittedProps);\n\nconst isAgentRulesEnabled = (config: Config, isApplication: boolean): boolean => config.agents?.rules ?? isApplication;\nconst isAgentReferenceEnabled = (config: Config, isApplication: boolean): boolean =>\n config.agents?.reference ?? isApplication;\n\nconst resolveMcpSettings = (config: Config): McpSettings => ({\n tools: config.mcp?.tools ?? [],\n isReadOnly: config.mcp?.readOnly === true,\n});\n\nconst resolveConfig = (config: ApplicationConfig, translationDomain: string, root?: string): ResolvedConfig => ({\n applicationId: config.applicationId,\n translationDomain,\n reactCompiler: resolveReactCompilerOptions(config.reactCompiler),\n userEventSignals: resolveUserEventSignals(config.userEventSignals),\n elements: resolveElementsModule(config.elements?.behaviors, root),\n lazyElements: resolveLazyElements(config.elements),\n});\n\nexport {\n configSchema,\n APPLICATION_ID_MAX_LENGTH,\n LIBRARY_APPLICATION_ID,\n defineConfig,\n isAgentReferenceEnabled,\n isAgentRulesEnabled,\n isValidApplicationId,\n graduatedFutureKeys,\n validateConfig,\n mergeConfig,\n resolveLazyElements,\n resolveElementComponents,\n resolveElementProps,\n resolveAcceptedChildTypes,\n resolveMcpSettings,\n resolveOmittedProps,\n resolveConfig,\n type AgentsOptions,\n type DeprecationsOptions,\n type ElementsOptions,\n type McpOptions,\n type McpSettings,\n type ReactCompilerOptions,\n type ResolvedReactCompilerOptions,\n type ApplicationConfig,\n type Config,\n type ElementConfigOptions,\n type ElementPropsExport,\n type ModuleExport,\n type ResolvedConfig,\n};\n"]}
package/dist/deploy.d.ts CHANGED
@@ -1,19 +1,383 @@
1
1
  import { z } from "zod";
2
+ /** Package relations of one kind, such as dependencies, in Debian and RPM dependency syntax. */
3
+ type DeployPackageRelationOptions = {
4
+ /** Package relations expressed in Debian dependency syntax. */
5
+ deb?: string[] | undefined;
6
+ /** Package relations expressed in RPM dependency syntax. */
7
+ rpm?: string[] | undefined;
8
+ };
9
+ /** Package relations of a kind only Debian packages have, in Debian dependency syntax. */
10
+ type DeployDebPackageRelationOptions = {
11
+ /** Package relations expressed in Debian dependency syntax. RPM has no equivalent relation. */
12
+ deb?: string[] | undefined;
13
+ };
14
+ /** The `deploy.developer` options: who develops and maintains the application. */
15
+ type DeployDeveloperOptions = {
16
+ /** Reverse-DNS developer identifier, derived from the application ID when omitted. */
17
+ id?: string | undefined;
18
+ /** Developer or organization name. Defaults to the author in package.json. */
19
+ name?: string | undefined;
20
+ /** Maintainer email address. Defaults to the author's email in package.json. */
21
+ email?: string | undefined;
22
+ };
23
+ /** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */
24
+ type DeployScreenshotOptions = {
25
+ /** Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`. */
26
+ url?: string | undefined;
27
+ /** Screenshot path relative to the project root, resolved against `screenshotBaseUrl`. */
28
+ file?: string | undefined;
29
+ /** Caption displayed with the screenshot in software centers. */
30
+ caption?: string | undefined;
31
+ /** Marks the primary screenshot. Only the first entry set to `true` is used. */
32
+ isDefault?: boolean | undefined;
33
+ };
34
+ /** One AppStream release-history entry in `deploy.releases`. */
35
+ type DeployReleaseOptions = {
36
+ /** Application version described by this release. */
37
+ version: string;
38
+ /** Release date in `YYYY-MM-DD` format. */
39
+ date: string;
40
+ /** AppStream release classification. */
41
+ type?: "development" | "snapshot" | "stable" | undefined;
42
+ /** AppStream update urgency. */
43
+ urgency?: "critical" | "high" | "low" | "medium" | undefined;
44
+ /** Release notes, with each entry rendered as a paragraph. */
45
+ notes?: string[] | undefined;
46
+ /** Absolute URL containing further details about the release. */
47
+ url?: string | undefined;
48
+ };
49
+ /** One file extension and MIME type registered through `deploy.fileAssociations`. */
50
+ type DeployFileAssociationOptions = {
51
+ /** File extension to associate with the application, without a leading dot. */
52
+ extension: string;
53
+ /** MIME type registered for the file extension. */
54
+ mimeType: string;
55
+ /** Human-readable description of the file type. */
56
+ description?: string | undefined;
57
+ };
58
+ /** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */
59
+ type DeployDesktopActionOptions = {
60
+ /** Action label shown in the desktop launcher menu. */
61
+ name: string;
62
+ /**
63
+ * Arguments appended to the launch command when the action is chosen. Launchers activate the `app.<id>`
64
+ * application action of a D-Bus-activatable application instead of running this command.
65
+ */
66
+ args?: string[] | undefined;
67
+ /** Icon theme name used for the action. */
68
+ icon?: string | undefined;
69
+ };
70
+ /** The `deploy.branding` colors software centers use around the application's listing. */
71
+ type DeployBrandingOptions = {
72
+ /** Primary AppStream branding color for light mode, in `#rrggbb` format. */
73
+ light: string;
74
+ /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */
75
+ dark: string;
76
+ };
2
77
  /**
3
- * A `deploy.extraFiles` entry in object form: the source file, resolved against the project root, that is
4
- * installed at the entry's prefix-relative destination, and the octal mode it is installed with.
78
+ * A `deploy.extraFiles` entry in object form: the source file or directory, resolved against the project root,
79
+ * that is installed at the entry's prefix-relative destination, and the octal mode it is installed with.
5
80
  */
6
- type DeployExtraFileOptions = Record<"source", string> & {
7
- /** Octal file mode. Setuid and setgid bits are rejected. */
81
+ type DeployExtraFileOptions = {
82
+ /** Source file or directory path, resolved relative to the project root. */
83
+ source: string;
84
+ /** Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected. */
8
85
  mode?: string | undefined;
9
86
  };
10
87
  /**
11
88
  * The `deploy.node` options: where the Node.js runtime bundled with the application comes from, the version it
12
89
  * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.
13
90
  */
14
- type DeployNodeOptions = Partial<Record<"source", "download" | "host" | "path" | undefined> & Record<"path", string | undefined> & Record<"shouldStrip" | "shouldUseCompileCache", boolean | undefined>> & {
91
+ type DeployNodeOptions = {
92
+ /** Runtime source: an official download, the running Node.js executable, or `path`. Defaults to `download`. */
93
+ source?: "download" | "host" | "path" | undefined;
15
94
  /** Expected Node.js version. Downloaded runtimes default to exactly 26.8.2 when omitted. */
16
95
  version?: string | undefined;
96
+ /** Node.js executable path relative to the project root, required when `source` is `path`. */
97
+ path?: string | undefined;
98
+ /** Strip the runtime when its architecture matches the host and `strip` is available. Defaults to `true`. */
99
+ shouldStrip?: boolean | undefined;
100
+ /** Enable Node.js compile caching in the generated launcher. Defaults to `true`. */
101
+ shouldUseCompileCache?: boolean | undefined;
102
+ };
103
+ /**
104
+ * The `deploy.scripts` options: maintainer scripts for Debian and RPM packages. Each value is a path to a
105
+ * shell script file, not inline shell; the package carries the file's content.
106
+ */
107
+ type DeployScriptsOptions = {
108
+ /** Path to a shell script, relative to the project root, run before installing a Debian or RPM package. */
109
+ preInstall?: string | undefined;
110
+ /** Path to a shell script, relative to the project root, run after installing a Debian or RPM package. */
111
+ postInstall?: string | undefined;
112
+ /** Path to a shell script, relative to the project root, run before removing a Debian or RPM package. */
113
+ preRemove?: string | undefined;
114
+ /** Path to a shell script, relative to the project root, run after removing a Debian or RPM package. */
115
+ postRemove?: string | undefined;
116
+ };
117
+ /** The `deploy.tools` options: executables `gtkx deploy` runs instead of the ones it downloads. */
118
+ type DeployToolsOptions = {
119
+ /** nFPM executable name or path relative to the project root. Defaults to a verified pinned download. */
120
+ nfpm?: string | undefined;
121
+ };
122
+ /** The `deploy.deb` options: Debian package metadata and compression. */
123
+ type DeployDebOptions = {
124
+ /** Debian package name. Defaults to `deploy.binaryName`. */
125
+ packageName?: string | undefined;
126
+ /** Debian archive section, derived from the application categories when omitted. */
127
+ section?: string | undefined;
128
+ /** Debian package priority. Defaults to `optional`. */
129
+ priority?: string | undefined;
130
+ /** Compression used for the Debian package payload. */
131
+ compression?: "gzip" | "none" | "xz" | "zstd" | undefined;
132
+ /** Additional Debian control fields, keyed by field name. */
133
+ fields?: Record<string, string> | undefined;
134
+ };
135
+ /** The `deploy.rpm` options: RPM package metadata and compression. */
136
+ type DeployRpmOptions = {
137
+ /** RPM package name. Defaults to `deploy.binaryName`. */
138
+ packageName?: string | undefined;
139
+ /** RPM package group, derived from the application categories when omitted. */
140
+ group?: string | undefined;
141
+ /** Compression used for the RPM package payload. */
142
+ compression?: "gzip" | "lzma" | "xz" | "zstd" | undefined;
143
+ /** Installation prefixes that the RPM package allows users to relocate. */
144
+ prefixes?: string[] | undefined;
145
+ };
146
+ /** The `deploy.appimage` options: AppImage file name, compression, update information and runtime. */
147
+ type DeployAppImageOptions = {
148
+ /** Output file name, derived from the application name, version, and architecture when omitted. */
149
+ fileName?: string | undefined;
150
+ /** Compression explicitly requested from appimagetool. */
151
+ compression?: "zstd" | undefined;
152
+ /** AppImage update information string embedded in the executable. */
153
+ updateInformation?: string | undefined;
154
+ /** Custom AppImage runtime file path, resolved relative to the project root. */
155
+ runtimeFile?: string | undefined;
156
+ };
157
+ /** The `deploy.flatpak.source` options: the Git revision a source-mode Flatpak builds. */
158
+ type DeployFlatpakSourceOptions = {
159
+ /** Public HTTP or HTTPS Git repository URL. Defaults to the project's Git remote. */
160
+ url?: string | undefined;
161
+ /** Git tag to build, pinned to its commit when `commit` is omitted. */
162
+ tag?: string | undefined;
163
+ /** Git commit to build. Defaults to the configured tag's commit or the current HEAD. */
164
+ commit?: string | undefined;
165
+ };
166
+ /** The `deploy.flatpak` options: runtime, sandbox permissions, build and distribution of the Flatpak. */
167
+ type DeployFlatpakOptions = {
168
+ /** Package local build output or build from a pinned Git source inside the SDK. Defaults to `prebuilt`. */
169
+ mode?: "prebuilt" | "source" | undefined;
170
+ /** Flatpak runtime ID. Defaults to `org.gnome.Platform`. */
171
+ runtime?: string | undefined;
172
+ /** Flatpak runtime branch. Defaults to `51`. */
173
+ runtimeVersion?: string | undefined;
174
+ /** Build SDK ID. Defaults to `org.gnome.Sdk`. */
175
+ sdk?: string | undefined;
176
+ /** Node.js SDK extension used in source mode. Defaults to `org.freedesktop.Sdk.Extension.node26`. */
177
+ nodeExtension?: string | undefined;
178
+ /** Additional SDK extension IDs included in the build environment. */
179
+ sdkExtensions?: string[] | undefined;
180
+ /** Optional Flatpak base application ID. */
181
+ base?: string | undefined;
182
+ /** Branch of the base application. */
183
+ baseVersion?: string | undefined;
184
+ /** Exported application branch. Defaults to `stable`. */
185
+ branch?: string | undefined;
186
+ /** Sandbox permissions added to display, IPC, and GPU defaults. Negations remove matching defaults. */
187
+ finishArgs?: string[] | undefined;
188
+ /** Patterns added to header, pkg-config, and static-library cleanup defaults. An empty array disables cleanup. */
189
+ cleanup?: string[] | undefined;
190
+ /** Additional shell commands appended to the application's Flatpak build commands. */
191
+ buildCommands?: string[] | undefined;
192
+ /** Additional Flatpak manifest modules built before the application module. */
193
+ modules?: unknown[] | undefined;
194
+ /** Git repository and revision used for source builds. */
195
+ source?: DeployFlatpakSourceOptions | undefined;
196
+ /** Package manager used for offline source builds, detected from the project's lockfiles when omitted. */
197
+ packageManager?: "npm" | "pnpm" | "yarn" | undefined;
198
+ /** Lockfile path relative to the project root. Defaults to the selected package manager's standard lockfile. */
199
+ lockfile?: string | undefined;
200
+ /** Runtime repository URL embedded in the bundle. Defaults to Flathub's `.flatpakrepo` URL. */
201
+ runtimeRepo?: string | undefined;
202
+ /** Emit a `.flatpak` bundle in addition to the local repository. Defaults to `true`. */
203
+ shouldEmitBundle?: boolean | undefined;
204
+ /** Install the built application into the current user's Flatpak installation. Defaults to `false`. */
205
+ shouldInstall?: boolean | undefined;
206
+ /** Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable. */
207
+ shouldUseRofilesFuse?: boolean | undefined;
208
+ };
209
+ /** The `deploy.signing.deb` options: the key and method that sign the Debian package. */
210
+ type DeployDebSigningOptions = {
211
+ /** PGP private key file used to sign the Debian package. */
212
+ keyFile: string;
213
+ /** PGP signing key ID. */
214
+ keyId?: string | undefined;
215
+ /** Debian package signing method. */
216
+ method?: "debsign" | "dpkg-sig" | undefined;
217
+ /** Debian signature role. */
218
+ type?: "archive" | "maint" | "origin" | undefined;
219
+ /** Name and email address recorded as the signer. */
220
+ signer?: string | undefined;
221
+ };
222
+ /** The `deploy.signing.rpm` options: the key that signs the RPM package. */
223
+ type DeployRpmSigningOptions = {
224
+ /** PGP private key file used to sign the RPM package. */
225
+ keyFile: string;
226
+ /** PGP signing key ID. */
227
+ keyId?: string | undefined;
228
+ };
229
+ /** The `deploy.signing.flatpak` options: the GPG key that signs the Flatpak repository commit. */
230
+ type DeployFlatpakSigningOptions = {
231
+ /**
232
+ * GPG key ID that signs the Flatpak repository commit. The bundle embeds its public key, so
233
+ * `flatpak install --bundle` verifies the signature.
234
+ */
235
+ gpgKeyId: string;
236
+ /** GPG home directory containing the signing key. */
237
+ gpgHomeDir?: string | undefined;
238
+ };
239
+ /** The `deploy.signing.appimage` options: the GPG key that signs the AppImage. */
240
+ type DeployAppImageSigningOptions = {
241
+ /** GPG key ID used by appimagetool to sign the AppImage. */
242
+ gpgKeyId: string;
243
+ };
244
+ /** The `deploy.signing` options: how each package format is signed. Formats without an entry stay unsigned. */
245
+ type DeploySigningOptions = {
246
+ /** AppImage signing options. */
247
+ appimage?: DeployAppImageSigningOptions | undefined;
248
+ /** Debian package signing options. */
249
+ deb?: DeployDebSigningOptions | undefined;
250
+ /** Flatpak bundle signing options. */
251
+ flatpak?: DeployFlatpakSigningOptions | undefined;
252
+ /** RPM package signing options. */
253
+ rpm?: DeployRpmSigningOptions | undefined;
254
+ };
255
+ /** The `deploy.relations` options: package relationships besides dependencies, for Debian and RPM. */
256
+ type DeployRelationsOptions = {
257
+ /** Recommended packages that extend the application's functionality. */
258
+ recommends?: DeployPackageRelationOptions | undefined;
259
+ /** Suggested companion packages. */
260
+ suggests?: DeployPackageRelationOptions | undefined;
261
+ /** Package names or capabilities supplied by this package. */
262
+ provides?: DeployPackageRelationOptions | undefined;
263
+ /** Packages that cannot be installed alongside this package. */
264
+ conflicts?: DeployPackageRelationOptions | undefined;
265
+ /** Packages whose files this package may replace. */
266
+ replaces?: DeployPackageRelationOptions | undefined;
267
+ /** Debian packages made incompatible by installing this package. Debian packages only. */
268
+ breaks?: DeployDebPackageRelationOptions | undefined;
269
+ /** Debian dependencies required before unpacking this package. Debian packages only. */
270
+ preDepends?: DeployDebPackageRelationOptions | undefined;
271
+ };
272
+ /** The `deploy` options: application metadata, bundled runtime settings, and packaging options for `gtkx deploy`. */
273
+ type DeployOptions = {
274
+ /** Package formats to build. Defaults to `["flatpak"]`; overridden by `gtkx deploy --target`. */
275
+ targets?: ("appimage" | "deb" | "flatpak" | "rpm")[] | undefined;
276
+ /** Target CPU architectures. Defaults to the host architecture; overridden by `gtkx deploy --arch`. */
277
+ architectures?: ("arm64" | "x64")[] | undefined;
278
+ /** Deployment directory relative to the project root. Defaults to `build`, with packages in its `out` directory. */
279
+ outDir?: string | undefined;
280
+ /** Display name, derived from package.json's name or the application ID when omitted. */
281
+ name?: string | undefined;
282
+ /** Generic application description shown by desktop launchers, such as `Text Editor`. */
283
+ genericName?: string | undefined;
284
+ /** Launcher command name, derived from package.json's name or the application ID when omitted. */
285
+ binaryName?: string | undefined;
286
+ /** Application version. Defaults to the version in package.json. */
287
+ version?: string | undefined;
288
+ /** Debian packaging revision and RPM release. Defaults to `1`. */
289
+ release?: string | undefined;
290
+ /** Non-negative Debian and RPM version epoch, omitted from package metadata unless configured. */
291
+ epoch?: number | undefined;
292
+ /** Single-line summary without a trailing period. Defaults to the first line of package.json's description. */
293
+ summary?: string | undefined;
294
+ /** Long description as paragraphs. Defaults to the summary when omitted or empty. */
295
+ description?: string[] | undefined;
296
+ /** Search keywords included in the desktop entry and AppStream metadata. */
297
+ keywords?: string[] | undefined;
298
+ /** Freedesktop application categories used by launchers, software centers, and package metadata. */
299
+ categories?: string[] | undefined;
300
+ /** Supported MIME types, combined with types from file associations and URL protocols. */
301
+ mimeTypes?: string[] | undefined;
302
+ /** Developer identity and package maintainer details. */
303
+ developer?: DeployDeveloperOptions | undefined;
304
+ /** Application license as an SPDX expression. Defaults to the license in package.json. */
305
+ license?: string | undefined;
306
+ /** License file path relative to the project root, detected from common LICENSE or COPYING names when omitted. */
307
+ licenseFile?: string | undefined;
308
+ /** SPDX license expression for the AppStream metadata. Defaults to `CC0-1.0`. */
309
+ metadataLicense?: string | undefined;
310
+ /** Copyright notice. Defaults to the build year and developer name. */
311
+ copyright?: string | undefined;
312
+ /** Application homepage URL. Defaults to the homepage in package.json. */
313
+ homepage?: string | undefined;
314
+ /** Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`. */
315
+ urls?: Partial<Record<"bugtracker" | "contact" | "contribute" | "donation" | "faq" | "help" | "translate" | "vcs-browser", string>> | undefined;
316
+ /** Screenshots for software centers. Each entry requires a `url` or `file`. */
317
+ screenshots?: DeployScreenshotOptions[] | undefined;
318
+ /** Base URL for screenshot files, inferred from a GitHub or GitLab remote when omitted. */
319
+ screenshotBaseUrl?: string | undefined;
320
+ /** Primary branding colors included in AppStream metadata. */
321
+ branding?: DeployBrandingOptions | undefined;
322
+ /** OARS 1.1 content-rating attributes mapped to their intensities. */
323
+ contentRating?: Record<string, "intense" | "mild" | "moderate" | "none"> | undefined;
324
+ /** AppStream release history, sorted newest first. Defaults to the application version and build date. */
325
+ releases?: DeployReleaseOptions[] | undefined;
326
+ /** Application arguments included in the desktop entry's launch command. */
327
+ execArgs?: string[] | undefined;
328
+ /** Environment variables exported by the generated launcher. Keys must be POSIX environment names. */
329
+ launcherEnv?: Record<string, string> | undefined;
330
+ /** Node.js flags placed before the application bundle in the generated launcher. */
331
+ nodeFlags?: string[] | undefined;
332
+ /** File extensions and MIME types registered for the application. */
333
+ fileAssociations?: DeployFileAssociationOptions[] | undefined;
334
+ /** URL schemes handled by the application, registered as `x-scheme-handler` MIME types. */
335
+ protocols?: string[] | undefined;
336
+ /**
337
+ * Desktop launcher actions keyed by action ID. With `isDbusActivatable`, the application must register an
338
+ * `app.<id>` action for each one.
339
+ */
340
+ desktopActions?: Record<string, DeployDesktopActionOptions> | undefined;
341
+ /**
342
+ * Additional desktop entry keys, overriding non-reserved generated values.
343
+ * `DBusActivatable` and `Version` are rejected; use `deploy.isDbusActivatable` for D-Bus activation.
344
+ */
345
+ desktopEntry?: Record<string, string> | undefined;
346
+ /** Additional XML fragments appended to the AppStream component. */
347
+ metainfoExtra?: string[] | undefined;
348
+ /** Enable D-Bus activation in the desktop entry and generate a session bus service file. Defaults to `false`. */
349
+ isDbusActivatable?: boolean | undefined;
350
+ /**
351
+ * Extra files keyed by destination inside the install prefix, without a leading slash or a `..` segment.
352
+ * Each value is a source path relative to the project root, or a {@link DeployExtraFileOptions} entry that
353
+ * also sets the file mode. A directory source installs every file below it at the same path below the
354
+ * destination; without a mode, each file is executable when its source is. Scripts installed this way, such
355
+ * as a helper command's launcher, can run the bundled Node.js runtime at `lib/<binaryName>/node` in every
356
+ * prebuilt target and in source Flatpaks.
357
+ */
358
+ extraFiles?: Record<string, string | DeployExtraFileOptions> | undefined;
359
+ /** Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies. */
360
+ minimumLibraryVersions?: Record<string, string> | undefined;
361
+ /** Additional Debian and RPM dependencies merged with automatically detected dependencies. */
362
+ depends?: DeployPackageRelationOptions | undefined;
363
+ /** Additional package relationships for Debian and RPM. */
364
+ relations?: DeployRelationsOptions | undefined;
365
+ /** Installation and removal scripts for Debian and RPM packages. */
366
+ scripts?: DeployScriptsOptions | undefined;
367
+ /** Node.js runtime bundled with prebuilt packages and launcher compile-cache settings. */
368
+ node?: DeployNodeOptions | undefined;
369
+ /** Overrides for executables used to build packages. */
370
+ tools?: DeployToolsOptions | undefined;
371
+ /** Per-format package signing options. */
372
+ signing?: DeploySigningOptions | undefined;
373
+ /** AppImage packaging options. */
374
+ appimage?: DeployAppImageOptions | undefined;
375
+ /** Debian package metadata and compression options. */
376
+ deb?: DeployDebOptions | undefined;
377
+ /** Flatpak runtime, sandbox, build, and distribution options. */
378
+ flatpak?: DeployFlatpakOptions | undefined;
379
+ /** RPM package metadata and compression options. */
380
+ rpm?: DeployRpmOptions | undefined;
17
381
  };
18
382
  declare const deploySchema: z.ZodObject<{
19
383
  targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -70,10 +434,10 @@ declare const deploySchema: z.ZodObject<{
70
434
  dark: z.ZodString;
71
435
  }, z.core.$strict>>;
72
436
  contentRating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
73
- none: "none";
74
437
  intense: "intense";
75
438
  mild: "mild";
76
439
  moderate: "moderate";
440
+ none: "none";
77
441
  }>>>;
78
442
  releases: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
443
  version: z.ZodString;
@@ -109,7 +473,10 @@ declare const deploySchema: z.ZodObject<{
109
473
  desktopEntry: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
110
474
  metainfoExtra: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
475
  isDbusActivatable: z.ZodOptional<z.ZodBoolean>;
112
- extraFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodType<DeployExtraFileOptions, unknown, z.core.$ZodTypeInternals<DeployExtraFileOptions, unknown>>]>>>;
476
+ extraFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
477
+ source: z.ZodString;
478
+ mode: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strict>]>>>;
113
480
  minimumLibraryVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
114
481
  depends: z.ZodOptional<z.ZodObject<{
115
482
  deb: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -138,11 +505,9 @@ declare const deploySchema: z.ZodObject<{
138
505
  }, z.core.$strict>>;
139
506
  breaks: z.ZodOptional<z.ZodObject<{
140
507
  deb: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
- rpm: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
508
  }, z.core.$strict>>;
143
509
  preDepends: z.ZodOptional<z.ZodObject<{
144
510
  deb: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
- rpm: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
511
  }, z.core.$strict>>;
147
512
  }, z.core.$strict>>;
148
513
  scripts: z.ZodOptional<z.ZodObject<{
@@ -151,7 +516,20 @@ declare const deploySchema: z.ZodObject<{
151
516
  preRemove: z.ZodOptional<z.ZodString>;
152
517
  postRemove: z.ZodOptional<z.ZodString>;
153
518
  }, z.core.$strict>>;
154
- node: z.ZodOptional<z.ZodType<DeployNodeOptions, unknown, z.core.$ZodTypeInternals<DeployNodeOptions, unknown>>>;
519
+ node: z.ZodOptional<z.ZodObject<{
520
+ source: z.ZodOptional<z.ZodEnum<{
521
+ download: "download";
522
+ host: "host";
523
+ path: "path";
524
+ }>>;
525
+ version: z.ZodOptional<z.ZodString>;
526
+ path: z.ZodOptional<z.ZodString>;
527
+ shouldStrip: z.ZodOptional<z.ZodBoolean>;
528
+ shouldUseCompileCache: z.ZodOptional<z.ZodBoolean>;
529
+ }, z.core.$strict>>;
530
+ tools: z.ZodOptional<z.ZodObject<{
531
+ nfpm: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strict>>;
155
533
  signing: z.ZodOptional<z.ZodObject<{
156
534
  appimage: z.ZodOptional<z.ZodObject<{
157
535
  gpgKeyId: z.ZodString;
@@ -164,9 +542,9 @@ declare const deploySchema: z.ZodObject<{
164
542
  "dpkg-sig": "dpkg-sig";
165
543
  }>>;
166
544
  type: z.ZodOptional<z.ZodEnum<{
167
- origin: "origin";
168
545
  archive: "archive";
169
546
  maint: "maint";
547
+ origin: "origin";
170
548
  }>>;
171
549
  signer: z.ZodOptional<z.ZodString>;
172
550
  }, z.core.$strict>>;
@@ -235,12 +613,12 @@ declare const deploySchema: z.ZodObject<{
235
613
  group: z.ZodOptional<z.ZodString>;
236
614
  compression: z.ZodOptional<z.ZodEnum<{
237
615
  gzip: "gzip";
616
+ lzma: "lzma";
238
617
  xz: "xz";
239
618
  zstd: "zstd";
240
- lzma: "lzma";
241
619
  }>>;
242
620
  prefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
621
  }, z.core.$strict>>;
244
622
  }, z.core.$strict>;
245
- export { deploySchema, type DeployExtraFileOptions, type DeployNodeOptions };
623
+ export { deploySchema, type DeployAppImageOptions, type DeployAppImageSigningOptions, type DeployBrandingOptions, type DeployDebOptions, type DeployDebPackageRelationOptions, type DeployDebSigningOptions, type DeployDesktopActionOptions, type DeployDeveloperOptions, type DeployExtraFileOptions, type DeployFileAssociationOptions, type DeployFlatpakOptions, type DeployFlatpakSigningOptions, type DeployFlatpakSourceOptions, type DeployNodeOptions, type DeployOptions, type DeployPackageRelationOptions, type DeployRelationsOptions, type DeployReleaseOptions, type DeployRpmOptions, type DeployRpmSigningOptions, type DeployScreenshotOptions, type DeployScriptsOptions, type DeploySigningOptions, type DeployToolsOptions, };
246
624
  //# sourceMappingURL=deploy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../src/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsHxB;;;GAGG;AACH,KAAK,sBAAsB,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG;IACrD,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AA2BF;;;GAGG;AACH,KAAK,iBAAiB,GAAG,OAAO,CAC5B,MAAM,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,GAC1D,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,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