@gtkx/config 2.0.0 → 2.1.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controlled-props.js","sourceRoot":"","sources":["../src/controlled-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA2DzC;;;;GAIG;AACH,MAAM,gBAAgB,GAAmD;IACrE,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC,uBAAuB,CAAC,EAAE,EAAE;IAChG,cAAc,EAAE;QACZ,eAAe,EAAE,EAAE,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,kBAAkB,EAAE;QACtF,QAAQ,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;KAC3C;IACD,oBAAoB,EAAE;QAClB,eAAe,EAAE;YACb,MAAM,EAAE,2BAA2B;YACnC,UAAU,EAAE,CAAC,sBAAsB,CAAC;YACpC,UAAU,EAAE,IAAI;SACnB;KACJ;IACD,oBAAoB,EAAE;QAClB,eAAe,EAAE;YACb,MAAM,EAAE,2BAA2B;YACnC,UAAU,EAAE,CAAC,sBAAsB,CAAC;YACpC,UAAU,EAAE,IAAI;SACnB;KACJ;IACD,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,MAAM,EAAE,kBAAkB;YAC1B,UAAU,EAAE,CAAC,uBAAuB,EAAE,WAAW,CAAC;YAClD,UAAU,EAAE,OAAO;SACtB;KACJ;IACD,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;IAC3E,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE;IACtD,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,EA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C,SAAS,CAAC,EAAE,EAAE;IAC3E,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,EAAE;CACtH,CAAC;AAEF;;;GAGG;AACH,MAAM,eAAe,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,UAAU,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;AAE/E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAuB,CAAC","sourcesContent":["import { upperFirst } from \"@gtkx/utils\";\n\n/** How GTKX keeps one controlled prop at its rendered value. */\ntype ControlledProp = {\n /** Signal the widget emits when the user changes the prop. */\n signal: string;\n /**\n * Other signals the widget emits for the same change, such as a notebook's `switch-page`. In development, an\n * element that passes the prop warns unless it has a handler for one of these, for `signal`, or for the prop's\n * notification, which a bare `onNotify` also receives.\n */\n reportedBy?: string[];\n /**\n * Prop of the widget the user changes the value through, the element itself or the text view showing a buffer,\n * that keeps the user from changing it while false, such as `editable` for text. In development, an element whose\n * widget has it set to false does not warn about a missing handler.\n */\n enabledBy?: string;\n /**\n * Props holding the lowest and highest value the widget currently accepts. GTKX writes the rendered value clamped\n * to them, and checks it again whenever they change, so a value out of reach settles on the nearest one the widget\n * accepts and returns once it comes into reach.\n */\n range?: [min: string, max: string];\n /**\n * Whether the value is the `name` of one of the element's children, or of the page the element creates for one,\n * such as the page a preferences dialog shows. GTKX then leaves it out of construction, writes it only while a\n * child the element holds has that name, and writes it again when a child with that name is placed, so a page\n * rendered after the element or removed and added back is shown, with or without `future.v3ControlledRestore`.\n */\n namesChild?: boolean;\n /**\n * Property of the element holding the list model of the children the value is a position among, such as a\n * notebook's `pages`. GTKX then writes the value again when placing children adds the one at that position to that\n * model, so a page rendered after the element or removed and added back is the one selected, with or without\n * `future.v3ControlledRestore`.\n */\n positionIn?: string;\n /**\n * Signal through which the user asks for a change that could not be undone, such as closing a window, which\n * destroys it. Once the app's own handlers have run, GTKX stops the signal by returning `true`, so only the app\n * makes the change, by rendering it.\n */\n refusedSignal?: string;\n /**\n * Prop that lets the widget make the change the refused signal asks for itself, before GTKX can refuse it, as\n * `hideOnClose` hides a window. While it is `false`, the prop never changes when the user asks, so only the refused\n * signal's handler reports the request.\n */\n refusedUnless?: string;\n /**\n * Whether writing the prop shows something anchored to the widget, such as a menu button's popover, which the\n * compositor only places once the widget is mapped in a window that has painted a frame. With or without\n * `future.v3ControlledRestore`, GTKX leaves the prop out of construction and writes `true` only then, and an\n * `Activity` boundary that hides the widget closes it and opens it again on reveal.\n */\n isAnchored?: boolean;\n};\n\n/**\n * Props that hold state the user edits, keyed by GLib type name. Under `future.v3ControlledRestore`, GTKX restores\n * each one to its rendered value after every change the user makes. Every element that has one also takes its\n * `default*` prop, named by {@link defaultPropName}. Subtypes inherit the entries of their ancestors and interfaces.\n */\nconst CONTROLLED_PROPS: Record<string, Record<string, ControlledProp>> = {\n AdwComboRow: { selected: { signal: \"notify::selected\", reportedBy: [\"notify::selected-item\"] } },\n AdwExpanderRow: {\n enableExpansion: { signal: \"notify::enable-expansion\", enabledBy: \"showEnableSwitch\" },\n expanded: { signal: \"notify::expanded\" },\n },\n AdwPreferencesDialog: {\n visiblePageName: {\n signal: \"notify::visible-page-name\",\n reportedBy: [\"notify::visible-page\"],\n namesChild: true,\n },\n },\n AdwPreferencesWindow: {\n visiblePageName: {\n signal: \"notify::visible-page-name\",\n reportedBy: [\"notify::visible-page\"],\n namesChild: true,\n },\n },\n AdwSidebar: {\n selected: {\n signal: \"notify::selected\",\n reportedBy: [\"notify::selected-item\", \"activated\"],\n positionIn: \"items\",\n },\n },\n AdwSpinRow: { value: { signal: \"notify::value\", reportedBy: [\"changed\"] } },\n AdwSwitchRow: { active: { signal: \"notify::active\" } },\n GtkAdjustment: { value: { signal: \"value-changed\" } },\n GtkCheckButton: { active: { signal: \"toggled\" } },\n GtkDropDown: { selected: { signal: \"notify::selected\", reportedBy: [\"notify::selected-item\"] } },\n GtkEditable: { text: { signal: \"changed\", enabledBy: \"editable\" } },\n GtkExpander: { expanded: { signal: \"notify::expanded\" } },\n GtkMenuButton: { active: { signal: \"notify::active\", isAnchored: true } },\n GtkNotebook: { page: { signal: \"notify::page\", reportedBy: [\"switch-page\"], positionIn: \"pages\" } },\n GtkPaned: { position: { signal: \"notify::position\", range: [\"minPosition\", \"maxPosition\"] } },\n GtkPopover: { visible: { signal: \"notify::visible\", reportedBy: [\"closed\"] } },\n GtkSpinButton: { value: { signal: \"value-changed\", reportedBy: [\"changed\"] } },\n GtkSwitch: { active: { signal: \"notify::active\", reportedBy: [\"state-set\"] } },\n GtkTextBuffer: { text: { signal: \"changed\", enabledBy: \"editable\" } },\n GtkToggleButton: { active: { signal: \"toggled\", reportedBy: [\"clicked\"] } },\n GtkWindow: { visible: { signal: \"notify::visible\", refusedSignal: \"close-request\", refusedUnless: \"hideOnClose\" } },\n};\n\n/**\n * The prop that gives the controlled prop `name` its value when the element is created and then leaves it to the\n * widget, such as `defaultText` for `text`.\n */\nconst defaultPropName = (name: string): string => `default${upperFirst(name)}`;\n\nexport { CONTROLLED_PROPS, defaultPropName, type ControlledProp };\n"]}
package/dist/deploy.d.ts CHANGED
@@ -617,8 +617,8 @@ type DeployOptions = {
617
617
  */
618
618
  architectures?: ("arm64" | "x64")[] | undefined;
619
619
  /**
620
- * Deployment directory relative to the project root, with packages in its `out` directory. `gtkx deploy
621
- * --out` overrides it.
620
+ * Deployment directory relative to the project root, with packages in its `out` directory. It must be below
621
+ * the project root and outside `.gtkx`, which GTKX reserves for generated files. `gtkx deploy --out` overrides it.
622
622
  *
623
623
  * @defaultValue `"build"`
624
624
  */
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../src/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,IA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ACf,YAAY,EAAE,UAAU,CACpB,+BAA+B,EAC/B,kDAAkD,CACrD,CAAC,QAAQ,EAAE;IACZ,aAAa,EAAE,QAAQ,CAAC,wBAAwB,EAAE,6CAA6C,CAAC,CAAC,QAAQ,EAAE;IAC3G,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,kBAAkB,CAC1B,+FAA+F,EAC/F,oBAAoB,EACpB,8FAA8F,CACjG,CAAC,QAAQ,EAAE;IACZ,sBAAsB,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IAC/D,OAAO,EAAE,eAAe,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;IACzB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC5B,CAAoC,CAAC;AAEtC,OAAO,EACH,YAAY,GAyBf,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { fileExtension, flag, girLibrary, relativePathRecord, text, textList, textRecord, url } from \"./schema-text.ts\";\n\nconst DEB_COMPRESSIONS = [\"gzip\", \"none\", \"xz\", \"zstd\"] as const;\nconst DEB_SIGN_METHODS = [\"debsign\", \"dpkg-sig\"] as const;\nconst DEB_SIGN_TYPES = [\"archive\", \"maint\", \"origin\"] as const;\nconst DEPLOY_ARCH_NAMES = [\"arm64\", \"x64\"] as const;\nconst DEPLOY_TARGET_NAMES = [\"appimage\", \"deb\", \"flatpak\", \"rpm\"] as const;\nconst FLATPAK_MODES = [\"prebuilt\", \"source\"] as const;\nconst NODE_SOURCES = [\"download\", \"host\", \"path\"] as const;\nconst OARS_INTENSITIES = [\"intense\", \"mild\", \"moderate\", \"none\"] as const;\nconst PACKAGE_MANAGERS = [\"npm\", \"pnpm\", \"yarn\"] as const;\nconst RELEASE_TYPES = [\"development\", \"snapshot\", \"stable\"] as const;\nconst RELEASE_URGENCIES = [\"critical\", \"high\", \"low\", \"medium\"] as const;\nconst RPM_COMPRESSIONS = [\"gzip\", \"lzma\", \"xz\", \"zstd\"] as const;\n\nconst URL_KINDS = [\n \"bugtracker\",\n \"contact\",\n \"contribute\",\n \"donation\",\n \"faq\",\n \"help\",\n \"translate\",\n \"vcs-browser\",\n] as const;\n\nconst BOOLEAN_ERROR = \"must be a boolean\";\nconst EPOCH_ERROR = \"must be a non-negative integer\";\nconst EXTRA_FILE_ERROR = \"must be a source path or a { source, mode } entry\";\nconst FILE_MODE_ERROR = \"must be an octal file mode without setuid or setgid bits, such as 755\";\nconst FILE_MODE_PATTERN = /^[0-7]{3,4}$/;\nconst FILE_MODE_RADIX = 8;\nconst PRIVILEGED_FILE_MODE_MASK = 0o6000;\nconst HEX_COLOR_ERROR = \"must be a #rrggbb color\";\nconst HEX_COLOR_PATTERN = /^#[\\dA-Fa-f]{6}$/;\nconst KEY_FILE_ERROR = \"must be a path to a PGP key file\";\nconst KEY_ID_ERROR = \"must be a PGP key id\";\nconst LAUNCHER_ENV_ERROR = \"must be a record of POSIX environment names to values without null bytes\";\nconst LAUNCHER_ENV_NAME_ERROR = \"must be a POSIX environment name\";\nconst LAUNCHER_ENV_NAME_PATTERN = /^[A-Za-z_]\\w*$/;\nconst MINIMUM_LIBRARY_VERSION_ERROR = \"must be a version such as 4.18\";\nconst MINIMUM_LIBRARY_VERSION_PATTERN = /^\\d+(?:\\.\\d+)*$/;\nconst MINIMUM_LIBRARY_VERSIONS_ERROR = \"must be a record of GIR library ids to a minimum version\";\nconst NODE_FLAG_ERROR = \"must be a Node.js flag beginning with a hyphen and containing no null bytes\";\nconst LIBRARY_ID_ERROR = 'must be a GIR library identifier of the form \"Name-Version\", such as \"Adw-1\"';\nconst SCRIPT_ERROR = \"must be a path to a shell script\";\nconst SOURCE_PATH_ERROR = \"must be a source path\";\nconst SPDX_ERROR = \"must be an SPDX license expression\";\nconst URL_ERROR = \"must be an absolute URL\";\nconst VERSION_ERROR = \"must be a version string\";\nconst hexColorSchema = z.string({ error: HEX_COLOR_ERROR }).regex(HEX_COLOR_PATTERN, { error: HEX_COLOR_ERROR });\n\nconst minimumLibraryVersionSchema = z\n .string({ error: MINIMUM_LIBRARY_VERSION_ERROR })\n .regex(MINIMUM_LIBRARY_VERSION_PATTERN, { error: MINIMUM_LIBRARY_VERSION_ERROR });\n\nconst minimumLibraryVersionsSchema = z.record(girLibrary(LIBRARY_ID_ERROR), minimumLibraryVersionSchema, {\n error: MINIMUM_LIBRARY_VERSIONS_ERROR,\n});\n\n/** Package relations of one kind, such as dependencies, in Debian and RPM dependency syntax. */\ntype DeployPackageRelationOptions = {\n /**\n * Package relations expressed in Debian dependency syntax.\n *\n * @defaultValue `[]`\n */\n deb?: string[] | undefined;\n /**\n * Package relations expressed in RPM dependency syntax.\n *\n * @defaultValue `[]`\n */\n rpm?: string[] | undefined;\n};\n\nconst relationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n rpm: textList(\"RPM package relation\", \"must be an array of RPM package relations\").optional(),\n}) satisfies z.ZodType<DeployPackageRelationOptions>;\n\n/** Package relations of a kind only Debian packages have, in Debian dependency syntax. */\ntype DeployDebPackageRelationOptions = {\n /**\n * Package relations expressed in Debian dependency syntax. RPM has no equivalent relation.\n *\n * @defaultValue `[]`\n */\n deb?: string[] | undefined;\n};\n\nconst debRelationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n}) satisfies z.ZodType<DeployDebPackageRelationOptions>;\n\n/** The `deploy.developer` options: who develops and maintains the application. */\ntype DeployDeveloperOptions = {\n /**\n * Reverse-DNS developer identifier.\n *\n * @defaultValue The application ID without its last segment, such as `com.example` for `com.example.Tasks`;\n * none when the application ID has only two segments\n */\n id?: string | undefined;\n /**\n * Developer or organization name. Deployment fails when neither this nor the `package.json` author is set.\n *\n * @defaultValue The `author` name in `package.json`\n */\n name?: string | undefined;\n /**\n * Maintainer email address.\n *\n * @defaultValue The `author` email in `package.json`, if it has one\n */\n email?: string | undefined;\n};\n\nconst developerSchema = z.strictObject({\n id: text(\"must be a reverse-DNS developer id\").optional(),\n name: text(\"must be a developer or organization name\").optional(),\n email: text(\"must be an email address\").optional(),\n}) satisfies z.ZodType<DeployDeveloperOptions>;\n\n/** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */\ntype DeployScreenshotOptions = {\n /**\n * Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`.\n *\n * @defaultValue None; each entry sets `url` or `file`\n */\n url?: string | undefined;\n /**\n * Screenshot path relative to the project root, resolved against `screenshotBaseUrl`.\n *\n * @defaultValue None; each entry sets `url` or `file`\n */\n file?: string | undefined;\n /**\n * Caption displayed with the screenshot in software centers.\n *\n * @defaultValue None: the screenshot has no `caption`\n */\n caption?: string | undefined;\n /**\n * Marks the primary screenshot. Only the first entry set to `true` is used.\n *\n * @defaultValue `false`; when no entry sets it, no screenshot is marked primary\n */\n isDefault?: boolean | undefined;\n};\n\nconst screenshotSchema = z\n .strictObject({\n url: url(\"must be an absolute URL to a PNG or JPEG\").optional(),\n file: text(\"must be an image path relative to the project root\").optional(),\n caption: text(\"must be a screenshot caption\").optional(),\n isDefault: flag(BOOLEAN_ERROR).optional(),\n })\n .refine((entry) => entry.url !== undefined || entry.file !== undefined, {\n error: \"must have either a `url` or a `file`\",\n }) satisfies z.ZodType<DeployScreenshotOptions>;\n\n/** One AppStream release-history entry in `deploy.releases`. */\ntype DeployReleaseOptions = {\n /** Application version described by this release. */\n version: string;\n /** Release date in `YYYY-MM-DD` format. */\n date: string;\n /**\n * AppStream release classification.\n *\n * @defaultValue None: the release has no `type` attribute, which AppStream reads as `stable`\n */\n type?: \"development\" | \"snapshot\" | \"stable\" | undefined;\n /**\n * AppStream update urgency.\n *\n * @defaultValue None: the release has no `urgency` attribute\n */\n urgency?: \"critical\" | \"high\" | \"low\" | \"medium\" | undefined;\n /**\n * Release notes, with each entry rendered as a paragraph.\n *\n * @defaultValue `[]`\n */\n notes?: string[] | undefined;\n /**\n * Absolute URL containing further details about the release.\n *\n * @defaultValue None: the release has no `url` element\n */\n url?: string | undefined;\n};\n\nconst releaseSchema = z.strictObject({\n version: text(VERSION_ERROR),\n date: z.iso.date({ error: \"must be an ISO date (YYYY-MM-DD)\" }),\n type: z.enum(RELEASE_TYPES, { error: \"must be one of development, snapshot, stable\" }).optional(),\n urgency: z.enum(RELEASE_URGENCIES, { error: \"must be one of critical, high, low, medium\" }).optional(),\n notes: textList(\"release note paragraph\", \"must be an array of release note paragraphs\").optional(),\n url: url(URL_ERROR).optional(),\n}) satisfies z.ZodType<DeployReleaseOptions>;\n\n/** One file extension and MIME type registered through `deploy.fileAssociations`. */\ntype DeployFileAssociationOptions = {\n /** File extension to associate with the application, without a leading dot. */\n extension: string;\n /** MIME type registered for the file extension. */\n mimeType: string;\n /**\n * Human-readable description of the file type.\n *\n * @defaultValue None: the MIME type has no `comment`\n */\n description?: string | undefined;\n};\n\nconst fileAssociationSchema = z.strictObject({\n extension: fileExtension(\"must be a file extension without a leading dot\"),\n mimeType: text(\"must be a MIME type such as text/plain\"),\n description: text(\"must be a description of the file type\").optional(),\n}) satisfies z.ZodType<DeployFileAssociationOptions>;\n\n/** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */\ntype DeployDesktopActionOptions = {\n /** Action label shown in the desktop launcher menu. */\n name: string;\n /**\n * Arguments appended to the launch command when the action is chosen. Launchers activate the `app.<id>`\n * application action of a D-Bus-activatable application instead of running this command.\n *\n * @defaultValue `[]`\n */\n args?: string[] | undefined;\n /**\n * Icon theme name used for the action.\n *\n * @defaultValue None: the action has no `Icon` key\n */\n icon?: string | undefined;\n};\n\nconst desktopActionSchema = z.strictObject({\n name: text(\"must be an action name\"),\n args: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n icon: text(\"must be an icon name\").optional(),\n}) satisfies z.ZodType<DeployDesktopActionOptions>;\n\n/** The `deploy.branding` colors software centers use around the application's listing. */\ntype DeployBrandingOptions = {\n /** Primary AppStream branding color for light mode, in `#rrggbb` format. */\n light: string;\n /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */\n dark: string;\n};\n\nconst brandingSchema = z.strictObject({\n light: hexColorSchema,\n dark: hexColorSchema,\n}) satisfies z.ZodType<DeployBrandingOptions>;\n\n/**\n * A `deploy.extraFiles` entry in object form: the source file or directory, resolved against the project root,\n * that is installed at the entry's prefix-relative destination, and the octal mode it is installed with.\n */\ntype DeployExtraFileOptions = {\n /** Source file or directory path, resolved relative to the project root. */\n source: string;\n /**\n * Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected.\n *\n * @defaultValue `\"0755\"` for a file whose source is executable, `\"0644\"` otherwise\n */\n mode?: string | undefined;\n};\n\nconst extraFileSchema = z.strictObject({\n source: text(SOURCE_PATH_ERROR),\n mode: z\n .string({ error: FILE_MODE_ERROR })\n .regex(FILE_MODE_PATTERN, { error: FILE_MODE_ERROR })\n .refine((mode) => (Number.parseInt(mode, FILE_MODE_RADIX) & PRIVILEGED_FILE_MODE_MASK) === 0, {\n error: FILE_MODE_ERROR,\n })\n .optional(),\n}) satisfies z.ZodType<DeployExtraFileOptions>;\n\nconst extraFileEntrySchema = z.union([text(SOURCE_PATH_ERROR), extraFileSchema], { error: EXTRA_FILE_ERROR });\n\nconst launcherEnvSchema = z.record(\n z.string({ error: LAUNCHER_ENV_NAME_ERROR }).regex(LAUNCHER_ENV_NAME_PATTERN, { error: LAUNCHER_ENV_NAME_ERROR }),\n z.string({ error: LAUNCHER_ENV_ERROR }).refine((value) => !value.includes(\"\\0\"), { error: LAUNCHER_ENV_ERROR }),\n { error: (issue) => (issue.code === \"invalid_key\" ? LAUNCHER_ENV_NAME_ERROR : LAUNCHER_ENV_ERROR) },\n);\n\nconst nodeFlagsSchema = z.array(\n z\n .string({ error: NODE_FLAG_ERROR })\n .refine((value) => value.startsWith(\"-\") && !value.includes(\"\\0\"), { error: NODE_FLAG_ERROR }),\n { error: \"must be an array of Node.js flags\" },\n);\n\n/**\n * The `deploy.node` options: where the Node.js runtime bundled with the application comes from, the version it\n * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.\n */\ntype DeployNodeOptions = {\n /**\n * Runtime source: an official download, the running Node.js executable, or `path`.\n *\n * @defaultValue `\"download\"`\n */\n source?: \"download\" | \"host\" | \"path\" | undefined;\n /**\n * Expected Node.js version. Only a downloaded runtime uses it.\n *\n * @defaultValue `\"26.13.1\"` for a downloaded runtime\n */\n version?: string | undefined;\n /**\n * Node.js executable path relative to the project root, required when `source` is `path`.\n *\n * @defaultValue None; required when `source` is `\"path\"`\n */\n path?: string | undefined;\n /**\n * Strip the runtime when its architecture matches the host and `strip` is available.\n *\n * @defaultValue `true`\n */\n shouldStrip?: boolean | undefined;\n /**\n * Enable Node.js compile caching in the generated launcher.\n *\n * @defaultValue `true`\n */\n shouldUseCompileCache?: boolean | undefined;\n};\n\nconst nodeRuntimeSchema = z.strictObject({\n source: z.enum(NODE_SOURCES, { error: \"must be one of download, host, path\" }).optional(),\n version: text(\"must be a Node.js version such as 26.7.0\").optional(),\n path: text(\"must be a path to a node binary\").optional(),\n shouldStrip: flag(BOOLEAN_ERROR).optional(),\n shouldUseCompileCache: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployNodeOptions>;\n\n/**\n * The `deploy.scripts` options: maintainer scripts for Debian and RPM packages. Each value is a path to a\n * shell script file, not inline shell; the package carries the file's content.\n */\ntype DeployScriptsOptions = {\n /**\n * Path to a shell script, relative to the project root, run before installing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n preInstall?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run after installing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n postInstall?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run before removing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n preRemove?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run after removing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n postRemove?: string | undefined;\n};\n\nconst scriptsSchema = z.strictObject({\n preInstall: text(SCRIPT_ERROR).optional(),\n postInstall: text(SCRIPT_ERROR).optional(),\n preRemove: text(SCRIPT_ERROR).optional(),\n postRemove: text(SCRIPT_ERROR).optional(),\n}) satisfies z.ZodType<DeployScriptsOptions>;\n\n/** The `deploy.tools` options: executables `gtkx deploy` runs instead of the ones it downloads. */\ntype DeployToolsOptions = {\n /**\n * nFPM executable name or path relative to the project root.\n *\n * @defaultValue A pinned nFPM release that `gtkx deploy` downloads and verifies against its `sha256`\n */\n nfpm?: string | undefined;\n};\n\nconst toolsSchema = z.strictObject({\n nfpm: text(\"must be an nFPM executable name or path\").optional(),\n}) satisfies z.ZodType<DeployToolsOptions>;\n\n/** The `deploy.deb` options: Debian package metadata and compression. */\ntype DeployDebOptions = {\n /**\n * Debian package name.\n *\n * @defaultValue `deploy.binaryName`\n */\n packageName?: string | undefined;\n /**\n * Debian archive section.\n *\n * @defaultValue Derived from `deploy.categories`, such as `devel` for `Development`, or `misc` when no\n * category matches\n */\n section?: string | undefined;\n /**\n * Debian package priority.\n *\n * @defaultValue `\"optional\"`\n */\n priority?: string | undefined;\n /**\n * Compression used for the Debian package payload.\n *\n * @defaultValue nFPM's default, `gzip`\n */\n compression?: \"gzip\" | \"none\" | \"xz\" | \"zstd\" | undefined;\n /**\n * Additional Debian control fields, keyed by field name.\n *\n * @defaultValue `{}`\n */\n fields?: Record<string, string> | undefined;\n};\n\nconst debSchema = z.strictObject({\n packageName: text(\"must be a Debian package name\").optional(),\n section: text(\"must be a Debian archive section\").optional(),\n priority: text(\"must be a Debian priority\").optional(),\n compression: z.enum(DEB_COMPRESSIONS, { error: \"must be one of gzip, none, xz, zstd\" }).optional(),\n fields: textRecord(\"must be a control field value\", \"must be a record of control field names to values\").optional(),\n}) satisfies z.ZodType<DeployDebOptions>;\n\n/** The `deploy.rpm` options: RPM package metadata and compression. */\ntype DeployRpmOptions = {\n /**\n * RPM package name.\n *\n * @defaultValue `deploy.binaryName`\n */\n packageName?: string | undefined;\n /**\n * RPM package group.\n *\n * @defaultValue Derived from `deploy.categories`, or `Applications/System` when no category matches\n */\n group?: string | undefined;\n /**\n * Compression used for the RPM package payload.\n *\n * @defaultValue nFPM's default, `gzip`\n */\n compression?: \"gzip\" | \"lzma\" | \"xz\" | \"zstd\" | undefined;\n /**\n * Installation prefixes that the RPM package allows users to relocate.\n *\n * @defaultValue `[]`: the package is not relocatable\n */\n prefixes?: string[] | undefined;\n};\n\nconst rpmSchema = z.strictObject({\n packageName: text(\"must be an RPM package name\").optional(),\n group: text(\"must be an RPM group\").optional(),\n compression: z.enum(RPM_COMPRESSIONS, { error: \"must be one of gzip, lzma, xz, zstd\" }).optional(),\n prefixes: textList(\"prefix\", \"must be an array of relocation prefixes\").optional(),\n}) satisfies z.ZodType<DeployRpmOptions>;\n\n/** The `deploy.appimage` options: AppImage file name, compression, update information and runtime. */\ntype DeployAppImageOptions = {\n /**\n * Output file name.\n *\n * @defaultValue `<name>-<version>-<arch>.AppImage`, with spaces in the display name replaced by underscores,\n * such as `My_App-1.2.0-x86_64.AppImage`\n */\n fileName?: string | undefined;\n /**\n * Compression explicitly requested from appimagetool.\n *\n * @defaultValue None: appimagetool's own default, as GTKX passes no `--comp`\n */\n compression?: \"zstd\" | undefined;\n /**\n * AppImage update information string embedded in the executable.\n *\n * @defaultValue None: the AppImage embeds no update information, as GTKX passes no `-u`\n */\n updateInformation?: string | undefined;\n /**\n * Custom AppImage runtime file path, resolved relative to the project root.\n *\n * @defaultValue A pinned `type2-runtime` release that `gtkx deploy` downloads and verifies against its\n * `sha256`\n */\n runtimeFile?: string | undefined;\n};\n\nconst appimageSchema = z.strictObject({\n fileName: text(\"must be an output file name\").optional(),\n compression: z.literal(\"zstd\", { error: \"must be zstd\" }).optional(),\n updateInformation: text(\"must be an AppImage update information string\").optional(),\n runtimeFile: text(\"must be a path to an AppImage runtime file\").optional(),\n}) satisfies z.ZodType<DeployAppImageOptions>;\n\n/** The `deploy.flatpak.source` options: the Git revision a source-mode Flatpak builds. */\ntype DeployFlatpakSourceOptions = {\n /**\n * Public HTTP or HTTPS Git repository URL.\n *\n * @defaultValue The URL of the project's `origin` Git remote\n */\n url?: string | undefined;\n /**\n * Git tag to build, pinned to its commit when `commit` is omitted.\n *\n * @defaultValue The tag that points at `HEAD`, if any, when `commit` is also omitted\n */\n tag?: string | undefined;\n /**\n * Git commit to build.\n *\n * @defaultValue The commit of `tag`, or the current `HEAD` without one\n */\n commit?: string | undefined;\n};\n\nconst flatpakSourceSchema = z.strictObject({\n url: url(\"must be an absolute git URL\").optional(),\n tag: text(\"must be a git tag\").optional(),\n commit: text(\"must be a git commit sha\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSourceOptions>;\n\n/** The `deploy.flatpak` options: runtime, sandbox permissions, build and distribution of the Flatpak. */\ntype DeployFlatpakOptions = {\n /**\n * Package local build output or build from a pinned Git source inside the SDK.\n *\n * @defaultValue `\"prebuilt\"`\n */\n mode?: \"prebuilt\" | \"source\" | undefined;\n /**\n * Flatpak runtime ID.\n *\n * @defaultValue `\"org.gnome.Platform\"`\n */\n runtime?: string | undefined;\n /**\n * Flatpak runtime branch.\n *\n * @defaultValue `\"51\"`\n */\n runtimeVersion?: string | undefined;\n /**\n * Build SDK ID.\n *\n * @defaultValue `\"org.gnome.Sdk\"`\n */\n sdk?: string | undefined;\n /**\n * Node.js SDK extension used in source mode.\n *\n * @defaultValue `\"org.freedesktop.Sdk.Extension.node26\"`\n */\n nodeExtension?: string | undefined;\n /**\n * Additional SDK extension IDs included in the build environment.\n *\n * @defaultValue `[]`\n */\n sdkExtensions?: string[] | undefined;\n /**\n * Optional Flatpak base application ID.\n *\n * @defaultValue None: the manifest has no `base`\n */\n base?: string | undefined;\n /**\n * Branch of the base application.\n *\n * @defaultValue None: the manifest has no `base-version`\n */\n baseVersion?: string | undefined;\n /**\n * Exported application branch.\n *\n * @defaultValue `\"stable\"`\n */\n branch?: string | undefined;\n /**\n * Sandbox permissions added to the defaults. A negation such as `--nosocket=fallback-x11` removes the\n * matching default.\n *\n * @defaultValue `[]`, on top of `--share=ipc`, `--socket=wayland`, `--socket=fallback-x11` and\n * `--device=dri`\n * @example\n * ```ts\n * finishArgs: [\"--share=network\", \"--filesystem=xdg-documents\"],\n * ```\n */\n finishArgs?: string[] | undefined;\n /**\n * Patterns added to the cleanup defaults. An empty array disables cleanup.\n *\n * @defaultValue `[]`, on top of `/include`, `/share/pkgconfig`, `*.la` and `*.a`\n */\n cleanup?: string[] | undefined;\n /**\n * Additional shell commands appended to the application's Flatpak build commands.\n *\n * @defaultValue `[]`\n */\n buildCommands?: string[] | undefined;\n /**\n * Additional Flatpak manifest modules built before the application module.\n *\n * @defaultValue `[]`\n */\n modules?: unknown[] | undefined;\n /**\n * Git repository and revision used for source builds.\n *\n * @defaultValue `{}`: the `origin` remote at the tagged or current commit\n */\n source?: DeployFlatpakSourceOptions | undefined;\n /**\n * Package manager used for offline source builds.\n *\n * @defaultValue Detected from the first lockfile found: `pnpm-lock.yaml`, `yarn.lock`, then\n * `package-lock.json`\n */\n packageManager?: \"npm\" | \"pnpm\" | \"yarn\" | undefined;\n /**\n * Lockfile path relative to the project root.\n *\n * @defaultValue The package manager's standard lockfile, such as `pnpm-lock.yaml`\n */\n lockfile?: string | undefined;\n /**\n * Runtime repository URL embedded in the bundle.\n *\n * @defaultValue `\"https://dl.flathub.org/repo/flathub.flatpakrepo\"`\n */\n runtimeRepo?: string | undefined;\n /**\n * Emit a `.flatpak` bundle in addition to the local repository.\n *\n * @defaultValue `true`\n */\n shouldEmitBundle?: boolean | undefined;\n /**\n * Install the built application into the current user's Flatpak installation.\n *\n * @defaultValue `false`\n */\n shouldInstall?: boolean | undefined;\n /**\n * Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable.\n *\n * @defaultValue `true`\n */\n shouldUseRofilesFuse?: boolean | undefined;\n};\n\nconst flatpakSchema = z.strictObject({\n mode: z.enum(FLATPAK_MODES, { error: 'must be \"prebuilt\" or \"source\"' }).optional(),\n runtime: text(\"must be a runtime id\").optional(),\n runtimeVersion: text('must be a runtime branch such as \"51\"').optional(),\n sdk: text(\"must be an SDK id\").optional(),\n nodeExtension: text(\"must be a Node SDK extension id\").optional(),\n sdkExtensions: textList(\"SDK extension id\", \"must be an array of SDK extension ids\").optional(),\n base: text(\"must be a base app id\").optional(),\n baseVersion: text(\"must be a base app version\").optional(),\n branch: text(\"must be a branch name\").optional(),\n finishArgs: textList(\"finish argument\", \"must be an array of flatpak finish arguments\").optional(),\n cleanup: textList(\"cleanup pattern\", \"must be an array of cleanup patterns\").optional(),\n buildCommands: textList(\"shell command\", \"must be an array of shell commands\").optional(),\n modules: z.array(z.unknown(), { error: \"must be an array of flatpak module objects\" }).optional(),\n source: flatpakSourceSchema.optional(),\n packageManager: z.enum(PACKAGE_MANAGERS, { error: \"must be one of npm, pnpm, yarn\" }).optional(),\n lockfile: text(\"must be a path to a lockfile\").optional(),\n runtimeRepo: url(\"must be an absolute .flatpakrepo URL\").optional(),\n shouldEmitBundle: flag(BOOLEAN_ERROR).optional(),\n shouldInstall: flag(BOOLEAN_ERROR).optional(),\n shouldUseRofilesFuse: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployFlatpakOptions>;\n\n/** The `deploy.signing.deb` options: the key and method that sign the Debian package. */\ntype DeployDebSigningOptions = {\n /** PGP private key file used to sign the Debian package. */\n keyFile: string;\n /**\n * PGP signing key ID.\n *\n * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign\n */\n keyId?: string | undefined;\n /**\n * Debian package signing method.\n *\n * @defaultValue nFPM's default, `\"debsign\"`\n */\n method?: \"debsign\" | \"dpkg-sig\" | undefined;\n /**\n * Debian signature role.\n *\n * @defaultValue nFPM's default, `\"origin\"`\n */\n type?: \"archive\" | \"maint\" | \"origin\" | undefined;\n /**\n * Name and email address recorded as the signer.\n *\n * @defaultValue None: GTKX passes no `signer` to nFPM\n */\n signer?: string | undefined;\n};\n\nconst debSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n method: z.enum(DEB_SIGN_METHODS, { error: 'must be \"debsign\" or \"dpkg-sig\"' }).optional(),\n type: z.enum(DEB_SIGN_TYPES, { error: \"must be one of archive, maint, origin\" }).optional(),\n signer: text(\"must be a signer name and email\").optional(),\n}) satisfies z.ZodType<DeployDebSigningOptions>;\n\n/** The `deploy.signing.rpm` options: the key that signs the RPM package. */\ntype DeployRpmSigningOptions = {\n /** PGP private key file used to sign the RPM package. */\n keyFile: string;\n /**\n * PGP signing key ID.\n *\n * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign\n */\n keyId?: string | undefined;\n};\n\nconst rpmSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n}) satisfies z.ZodType<DeployRpmSigningOptions>;\n\n/** The `deploy.signing.flatpak` options: the GPG key that signs the Flatpak repository commit. */\ntype DeployFlatpakSigningOptions = {\n /**\n * GPG key ID that signs the Flatpak repository commit. The bundle embeds its public key, so\n * `flatpak install --bundle` verifies the signature.\n */\n gpgKeyId: string;\n /**\n * GPG home directory containing the signing key, passed to GPG as given.\n *\n * @defaultValue GPG's default, `$GNUPGHOME` or `~/.gnupg`\n */\n gpgHomeDir?: string | undefined;\n};\n\nconst flatpakSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n gpgHomeDir: text(\"must be a path to a GPG home directory\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSigningOptions>;\n\n/** The `deploy.signing.appimage` options: the GPG key that signs the AppImage. */\ntype DeployAppImageSigningOptions = {\n /** GPG key ID used by appimagetool to sign the AppImage. */\n gpgKeyId: string;\n};\n\nconst appimageSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n}) satisfies z.ZodType<DeployAppImageSigningOptions>;\n\n/** The `deploy.signing` options: how each package format is signed. Formats without an entry stay unsigned. */\ntype DeploySigningOptions = {\n /**\n * AppImage signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n appimage?: DeployAppImageSigningOptions | undefined;\n /**\n * Debian package signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n deb?: DeployDebSigningOptions | undefined;\n /**\n * Flatpak bundle signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n flatpak?: DeployFlatpakSigningOptions | undefined;\n /**\n * RPM package signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n rpm?: DeployRpmSigningOptions | undefined;\n};\n\nconst signingSchema = z.strictObject({\n appimage: appimageSigningSchema.optional(),\n deb: debSigningSchema.optional(),\n flatpak: flatpakSigningSchema.optional(),\n rpm: rpmSigningSchema.optional(),\n}) satisfies z.ZodType<DeploySigningOptions>;\n\n/** The `deploy.relations` options: package relationships besides dependencies, for Debian and RPM. */\ntype DeployRelationsOptions = {\n /**\n * Recommended packages that extend the application's functionality.\n *\n * @defaultValue `{}`\n */\n recommends?: DeployPackageRelationOptions | undefined;\n /**\n * Suggested companion packages.\n *\n * @defaultValue `{}`\n */\n suggests?: DeployPackageRelationOptions | undefined;\n /**\n * Package names or capabilities supplied by this package.\n *\n * @defaultValue `{}`\n */\n provides?: DeployPackageRelationOptions | undefined;\n /**\n * Packages that cannot be installed alongside this package.\n *\n * @defaultValue `{}`\n */\n conflicts?: DeployPackageRelationOptions | undefined;\n /**\n * Packages whose files this package may replace.\n *\n * @defaultValue `{}`\n */\n replaces?: DeployPackageRelationOptions | undefined;\n /**\n * Debian packages made incompatible by installing this package. Debian packages only.\n *\n * @defaultValue `{}`\n */\n breaks?: DeployDebPackageRelationOptions | undefined;\n /**\n * Debian dependencies required before unpacking this package. Debian packages only.\n *\n * @defaultValue `{}`\n */\n preDepends?: DeployDebPackageRelationOptions | undefined;\n};\n\nconst extraRelationsSchema = z.strictObject({\n recommends: relationsSchema.optional(),\n suggests: relationsSchema.optional(),\n provides: relationsSchema.optional(),\n conflicts: relationsSchema.optional(),\n replaces: relationsSchema.optional(),\n breaks: debRelationsSchema.optional(),\n preDepends: debRelationsSchema.optional(),\n}) satisfies z.ZodType<DeployRelationsOptions>;\n\n/** The `deploy` options: application metadata, bundled runtime settings, and packaging options for `gtkx deploy`. */\ntype DeployOptions = {\n /**\n * Package formats to build. `gtkx deploy --target` overrides it.\n *\n * @defaultValue `[\"flatpak\"]`\n */\n targets?: (\"appimage\" | \"deb\" | \"flatpak\" | \"rpm\")[] | undefined;\n /**\n * Target CPU architectures. `gtkx deploy --arch` overrides it.\n *\n * @defaultValue The host architecture, `arm64` or `x64`\n */\n architectures?: (\"arm64\" | \"x64\")[] | undefined;\n /**\n * Deployment directory relative to the project root, with packages in its `out` directory. `gtkx deploy\n * --out` overrides it.\n *\n * @defaultValue `\"build\"`\n */\n outDir?: string | undefined;\n /**\n * Display name.\n *\n * @defaultValue The `package.json` name without its scope, title-cased with spaces for hyphens and\n * underscores, such as `Tasks App` for `@example/tasks-app`; or the last segment of the application ID\n */\n name?: string | undefined;\n /**\n * Generic application description shown by desktop launchers, such as `Text Editor`.\n *\n * @defaultValue None: the desktop entry has no `GenericName` key\n */\n genericName?: string | undefined;\n /**\n * Launcher command name, also used as the package name. A configured value is normalized the same way as the\n * default.\n *\n * @defaultValue The `package.json` name without its scope, lowercased with hyphens for other characters; or\n * the last segment of the application ID\n */\n binaryName?: string | undefined;\n /**\n * Application version. Deployment fails when neither this nor the `package.json` version is set.\n *\n * @defaultValue The `version` in `package.json`\n */\n version?: string | undefined;\n /**\n * Debian packaging revision and RPM release.\n *\n * @defaultValue `\"1\"`\n */\n release?: string | undefined;\n /**\n * Non-negative Debian and RPM version epoch.\n *\n * @defaultValue None: package metadata has no `epoch`\n */\n epoch?: number | undefined;\n /**\n * Single-line summary without a trailing period. Deployment fails when neither this nor the `package.json`\n * description is set.\n *\n * @defaultValue The first line of the `description` in `package.json`\n */\n summary?: string | undefined;\n /**\n * Long description as paragraphs.\n *\n * @defaultValue `deploy.summary` as the only paragraph, also when the array is empty\n */\n description?: string[] | undefined;\n /**\n * Search keywords included in the desktop entry and AppStream metadata.\n *\n * @defaultValue `[]`\n */\n keywords?: string[] | undefined;\n /**\n * Freedesktop application categories used by launchers, software centers, and package metadata.\n *\n * @defaultValue `[]`\n * @example\n * ```ts\n * categories: [\"Office\", \"ProjectManagement\"],\n * ```\n */\n categories?: string[] | undefined;\n /**\n * Supported MIME types, combined with types from file associations and URL protocols.\n *\n * @defaultValue `[]`\n */\n mimeTypes?: string[] | undefined;\n /**\n * Developer identity and package maintainer details.\n *\n * @defaultValue `{}`: the details come from the `author` in `package.json`\n */\n developer?: DeployDeveloperOptions | undefined;\n /**\n * Application license as an SPDX expression. Deployment fails when neither this nor the `package.json`\n * license is set.\n *\n * @defaultValue The `license` in `package.json`\n */\n license?: string | undefined;\n /**\n * License file path relative to the project root, installed with the application.\n *\n * @defaultValue The first of `LICENSE`, `LICENSE.md`, `LICENSE.txt`, `COPYING` and `COPYING.md` in the\n * project root; none when no such file exists\n */\n licenseFile?: string | undefined;\n /**\n * SPDX license expression for the AppStream metadata.\n *\n * @defaultValue `\"CC0-1.0\"`\n */\n metadataLicense?: string | undefined;\n /**\n * Copyright notice.\n *\n * @defaultValue `Copyright © <year> <developer name>`, with the year of the build date\n */\n copyright?: string | undefined;\n /**\n * Application homepage URL.\n *\n * @defaultValue The `homepage` in `package.json`, if set\n */\n homepage?: string | undefined;\n /**\n * Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * urls: { bugtracker: \"https://github.com/example/tasks/issues\" },\n * ```\n */\n urls?:\n | Partial<\n Record<\n \"bugtracker\" | \"contact\" | \"contribute\" | \"donation\" | \"faq\" | \"help\" | \"translate\" | \"vcs-browser\",\n string\n >\n >\n | undefined;\n /**\n * Screenshots for software centers. Each entry requires a `url` or `file`.\n *\n * @defaultValue `[]`\n */\n screenshots?: DeployScreenshotOptions[] | undefined;\n /**\n * Base URL for screenshot files.\n *\n * @defaultValue The raw file URL of the project's GitHub or GitLab `origin` remote on its default branch;\n * deployment fails without one when a screenshot sets `file`\n */\n screenshotBaseUrl?: string | undefined;\n /**\n * Primary branding colors included in AppStream metadata.\n *\n * @defaultValue None: the metadata has no `branding` element\n */\n branding?: DeployBrandingOptions | undefined;\n /**\n * OARS 1.1 content-rating attributes mapped to their intensities.\n *\n * @defaultValue `{}`: an empty OARS 1.1 rating, which declares no objectionable content\n * @example\n * ```ts\n * contentRating: { \"social-chat\": \"intense\" },\n * ```\n */\n contentRating?: Record<string, \"intense\" | \"mild\" | \"moderate\" | \"none\"> | undefined;\n /**\n * AppStream release history, sorted newest first.\n *\n * @defaultValue One release for the application version, dated on the build day or by `SOURCE_DATE_EPOCH`\n */\n releases?: DeployReleaseOptions[] | undefined;\n /**\n * Application arguments included in the desktop entry's launch command.\n *\n * @defaultValue `[]`\n */\n execArgs?: string[] | undefined;\n /**\n * Environment variables exported by the generated launcher. Keys must be POSIX environment names.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * launcherEnv: { GSK_RENDERER: \"ngl\" },\n * ```\n */\n launcherEnv?: Record<string, string> | undefined;\n /**\n * Node.js flags placed before the application bundle in the generated launcher.\n *\n * @defaultValue `[]`\n * @example\n * ```ts\n * nodeFlags: [\"--max-old-space-size=4096\"],\n * ```\n */\n nodeFlags?: string[] | undefined;\n /**\n * File extensions and MIME types registered for the application.\n *\n * @defaultValue `[]`\n */\n fileAssociations?: DeployFileAssociationOptions[] | undefined;\n /**\n * URL schemes handled by the application, registered as `x-scheme-handler` MIME types.\n *\n * @defaultValue `[]`\n */\n protocols?: string[] | undefined;\n /**\n * Desktop launcher actions keyed by action ID. With `isDbusActivatable`, the application must register an\n * `app.<id>` action for each one.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * desktopActions: { today: { name: \"Today\", args: [\"tasks://today\"] } },\n * ```\n */\n desktopActions?: Record<string, DeployDesktopActionOptions> | undefined;\n /**\n * Additional desktop entry keys, overriding non-reserved generated values. `DBusActivatable` and `Version`\n * are rejected; use `deploy.isDbusActivatable` for D-Bus activation.\n *\n * @defaultValue `{}`\n */\n desktopEntry?: Record<string, string> | undefined;\n /**\n * Additional XML fragments appended to the AppStream component.\n *\n * @defaultValue `[]`\n */\n metainfoExtra?: string[] | undefined;\n /**\n * Enable D-Bus activation in the desktop entry and generate a session bus service file.\n *\n * @defaultValue `false`\n */\n isDbusActivatable?: boolean | undefined;\n /**\n * Extra files keyed by destination inside the install prefix, without a leading slash or a `..` segment.\n * Each value is a source path relative to the project root, or a {@link DeployExtraFileOptions} entry that\n * also sets the file mode. A directory source installs every file below it at the same path below the\n * destination; without a mode, each file is executable when its source is. Scripts installed this way, such\n * as a helper command's launcher, can run the bundled Node.js runtime at `lib/<binaryName>/node` in every\n * prebuilt target and in source Flatpaks.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * extraFiles: { \"share/tasks/templates\": \"data/templates\" },\n * ```\n */\n extraFiles?: Record<string, string | DeployExtraFileOptions> | undefined;\n /**\n * Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies.\n *\n * @defaultValue `{}`: library dependencies carry no version constraint\n * @example\n * ```ts\n * minimumLibraryVersions: { \"Adw-1\": \"1.8\", \"Gtk-4.0\": \"4.20\" },\n * ```\n */\n minimumLibraryVersions?: Record<string, string> | undefined;\n /**\n * Additional Debian and RPM dependencies merged with automatically detected dependencies.\n *\n * @defaultValue None: only the detected dependencies, such as `libgtk-4-1` on Debian\n */\n depends?: DeployPackageRelationOptions | undefined;\n /**\n * Additional package relationships for Debian and RPM.\n *\n * @defaultValue `{}`: no relations besides `depends`\n */\n relations?: DeployRelationsOptions | undefined;\n /**\n * Installation and removal scripts for Debian and RPM packages.\n *\n * @defaultValue `{}`: no maintainer scripts\n */\n scripts?: DeployScriptsOptions | undefined;\n /**\n * Node.js runtime bundled with prebuilt packages and launcher compile-cache settings.\n *\n * @defaultValue `{}`: a downloaded Node.js `26.13.1`, stripped, with the compile cache on\n */\n node?: DeployNodeOptions | undefined;\n /**\n * Overrides for executables used to build packages.\n *\n * @defaultValue `{}`: `gtkx deploy` downloads the pinned tools it needs\n */\n tools?: DeployToolsOptions | undefined;\n /**\n * Per-format package signing options.\n *\n * @defaultValue `{}`: every package is unsigned\n */\n signing?: DeploySigningOptions | undefined;\n /**\n * AppImage packaging options.\n *\n * @defaultValue `{}`\n */\n appimage?: DeployAppImageOptions | undefined;\n /**\n * Debian package metadata and compression options.\n *\n * @defaultValue `{}`\n */\n deb?: DeployDebOptions | undefined;\n /**\n * Flatpak runtime, sandbox, build, and distribution options.\n *\n * @defaultValue `{}`\n */\n flatpak?: DeployFlatpakOptions | undefined;\n /**\n * RPM package metadata and compression options.\n *\n * @defaultValue `{}`\n */\n rpm?: DeployRpmOptions | undefined;\n};\n\nconst deploySchema = z.strictObject({\n targets: z\n .array(z.enum(DEPLOY_TARGET_NAMES, { error: \"must be one of appimage, deb, flatpak, rpm\" }), {\n error: \"must be an array of deploy targets\",\n })\n .optional(),\n architectures: z\n .array(z.enum(DEPLOY_ARCH_NAMES, { error: \"must be one of arm64, x64\" }), {\n error: \"must be an array of deploy architectures\",\n })\n .optional(),\n outDir: text(\"must be a directory path relative to the project root\").optional(),\n name: text(\"must be the display name shown in the launcher\").optional(),\n genericName: text(\"must be a generic application name\").optional(),\n binaryName: text(\"must be a kebab-case command name\").optional(),\n version: text(VERSION_ERROR).optional(),\n release: text(\"must be a packaging revision\").optional(),\n epoch: z.int({ error: EPOCH_ERROR }).min(0, { error: EPOCH_ERROR }).optional(),\n summary: text(\"must be a single-line summary without a trailing period\").optional(),\n description: textList(\"description paragraph\", \"must be an array of description paragraphs\").optional(),\n keywords: textList(\"search keyword\", \"must be an array of search keywords\").optional(),\n categories: textList(\"freedesktop category\", \"must be an array of freedesktop categories\").optional(),\n mimeTypes: textList(\"MIME type\", \"must be an array of MIME types\").optional(),\n developer: developerSchema.optional(),\n license: text(SPDX_ERROR).optional(),\n licenseFile: text(\"must be a path to a license file\").optional(),\n metadataLicense: text(SPDX_ERROR).optional(),\n copyright: text(\"must be a copyright line\").optional(),\n homepage: url(URL_ERROR).optional(),\n urls: z\n .partialRecord(z.enum(URL_KINDS), url(URL_ERROR), {\n error: \"must be a record of AppStream url kinds to URLs\",\n })\n .optional(),\n screenshots: z.array(screenshotSchema, { error: \"must be an array of screenshots\" }).optional(),\n screenshotBaseUrl: url(\"must be an absolute base URL\").optional(),\n branding: brandingSchema.optional(),\n contentRating: z\n .record(z.string(), z.enum(OARS_INTENSITIES, { error: \"must be one of intense, mild, moderate, none\" }), {\n error: \"must be a record of OARS 1.1 attribute ids to intensities\",\n })\n .optional(),\n releases: z.array(releaseSchema, { error: \"must be an array of releases\" }).optional(),\n execArgs: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n launcherEnv: launcherEnvSchema.optional(),\n nodeFlags: nodeFlagsSchema.optional(),\n fileAssociations: z.array(fileAssociationSchema, { error: \"must be an array of file associations\" }).optional(),\n protocols: textList(\"URL scheme\", \"must be an array of URL schemes\").optional(),\n desktopActions: z\n .record(z.string(), desktopActionSchema, { error: \"must be a record of action ids to actions\" })\n .optional(),\n desktopEntry: textRecord(\n \"must be a desktop entry value\",\n \"must be a record of desktop entry keys to values\",\n ).optional(),\n metainfoExtra: textList(\"AppStream XML fragment\", \"must be an array of AppStream XML fragments\").optional(),\n isDbusActivatable: flag(BOOLEAN_ERROR).optional(),\n extraFiles: relativePathRecord(\n \"must be a destination path inside the install prefix, without a leading slash or a .. segment\",\n extraFileEntrySchema,\n \"must be a record of prefix-relative destinations to source paths or { source, mode } entries\",\n ).optional(),\n minimumLibraryVersions: minimumLibraryVersionsSchema.optional(),\n depends: relationsSchema.optional(),\n relations: extraRelationsSchema.optional(),\n scripts: scriptsSchema.optional(),\n node: nodeRuntimeSchema.optional(),\n tools: toolsSchema.optional(),\n signing: signingSchema.optional(),\n appimage: appimageSchema.optional(),\n deb: debSchema.optional(),\n flatpak: flatpakSchema.optional(),\n rpm: rpmSchema.optional(),\n}) satisfies z.ZodType<DeployOptions>;\n\nexport {\n deploySchema,\n type DeployAppImageOptions,\n type DeployAppImageSigningOptions,\n type DeployBrandingOptions,\n type DeployDebOptions,\n type DeployDebPackageRelationOptions,\n type DeployDebSigningOptions,\n type DeployDesktopActionOptions,\n type DeployDeveloperOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployFlatpakOptions,\n type DeployFlatpakSigningOptions,\n type DeployFlatpakSourceOptions,\n type DeployNodeOptions,\n type DeployOptions,\n type DeployPackageRelationOptions,\n type DeployRelationsOptions,\n type DeployReleaseOptions,\n type DeployRpmOptions,\n type DeployRpmSigningOptions,\n type DeployScreenshotOptions,\n type DeployScriptsOptions,\n type DeploySigningOptions,\n type DeployToolsOptions,\n};\n"]}
1
+ {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../src/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAExH,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAU,CAAC;AACjE,M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G,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,kBAAkB,CAC1B,+FAA+F,EAC/F,oBAAoB,EACpB,8FAA8F,CACjG,CAAC,QAAQ,EAAE;IACZ,sBAAsB,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IAC/D,OAAO,EAAE,eAAe,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;IACzB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC5B,CAAoC,CAAC;AAEtC,OAAO,EACH,YAAY,GAyBf,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { fileExtension, flag, girLibrary, relativePathRecord, text, textList, textRecord, url } from \"./schema-text.ts\";\n\nconst DEB_COMPRESSIONS = [\"gzip\", \"none\", \"xz\", \"zstd\"] as const;\nconst DEB_SIGN_METHODS = [\"debsign\", \"dpkg-sig\"] as const;\nconst DEB_SIGN_TYPES = [\"archive\", \"maint\", \"origin\"] as const;\nconst DEPLOY_ARCH_NAMES = [\"arm64\", \"x64\"] as const;\nconst DEPLOY_TARGET_NAMES = [\"appimage\", \"deb\", \"flatpak\", \"rpm\"] as const;\nconst FLATPAK_MODES = [\"prebuilt\", \"source\"] as const;\nconst NODE_SOURCES = [\"download\", \"host\", \"path\"] as const;\nconst OARS_INTENSITIES = [\"intense\", \"mild\", \"moderate\", \"none\"] as const;\nconst PACKAGE_MANAGERS = [\"npm\", \"pnpm\", \"yarn\"] as const;\nconst RELEASE_TYPES = [\"development\", \"snapshot\", \"stable\"] as const;\nconst RELEASE_URGENCIES = [\"critical\", \"high\", \"low\", \"medium\"] as const;\nconst RPM_COMPRESSIONS = [\"gzip\", \"lzma\", \"xz\", \"zstd\"] as const;\n\nconst URL_KINDS = [\n \"bugtracker\",\n \"contact\",\n \"contribute\",\n \"donation\",\n \"faq\",\n \"help\",\n \"translate\",\n \"vcs-browser\",\n] as const;\n\nconst BOOLEAN_ERROR = \"must be a boolean\";\nconst EPOCH_ERROR = \"must be a non-negative integer\";\nconst EXTRA_FILE_ERROR = \"must be a source path or a { source, mode } entry\";\nconst FILE_MODE_ERROR = \"must be an octal file mode without setuid or setgid bits, such as 755\";\nconst FILE_MODE_PATTERN = /^[0-7]{3,4}$/;\nconst FILE_MODE_RADIX = 8;\nconst PRIVILEGED_FILE_MODE_MASK = 0o6000;\nconst HEX_COLOR_ERROR = \"must be a #rrggbb color\";\nconst HEX_COLOR_PATTERN = /^#[\\dA-Fa-f]{6}$/;\nconst KEY_FILE_ERROR = \"must be a path to a PGP key file\";\nconst KEY_ID_ERROR = \"must be a PGP key id\";\nconst LAUNCHER_ENV_ERROR = \"must be a record of POSIX environment names to values without null bytes\";\nconst LAUNCHER_ENV_NAME_ERROR = \"must be a POSIX environment name\";\nconst LAUNCHER_ENV_NAME_PATTERN = /^[A-Za-z_]\\w*$/;\nconst MINIMUM_LIBRARY_VERSION_ERROR = \"must be a version such as 4.18\";\nconst MINIMUM_LIBRARY_VERSION_PATTERN = /^\\d+(?:\\.\\d+)*$/;\nconst MINIMUM_LIBRARY_VERSIONS_ERROR = \"must be a record of GIR library ids to a minimum version\";\nconst NODE_FLAG_ERROR = \"must be a Node.js flag beginning with a hyphen and containing no null bytes\";\nconst LIBRARY_ID_ERROR = 'must be a GIR library identifier of the form \"Name-Version\", such as \"Adw-1\"';\nconst SCRIPT_ERROR = \"must be a path to a shell script\";\nconst SOURCE_PATH_ERROR = \"must be a source path\";\nconst SPDX_ERROR = \"must be an SPDX license expression\";\nconst URL_ERROR = \"must be an absolute URL\";\nconst VERSION_ERROR = \"must be a version string\";\nconst hexColorSchema = z.string({ error: HEX_COLOR_ERROR }).regex(HEX_COLOR_PATTERN, { error: HEX_COLOR_ERROR });\n\nconst minimumLibraryVersionSchema = z\n .string({ error: MINIMUM_LIBRARY_VERSION_ERROR })\n .regex(MINIMUM_LIBRARY_VERSION_PATTERN, { error: MINIMUM_LIBRARY_VERSION_ERROR });\n\nconst minimumLibraryVersionsSchema = z.record(girLibrary(LIBRARY_ID_ERROR), minimumLibraryVersionSchema, {\n error: MINIMUM_LIBRARY_VERSIONS_ERROR,\n});\n\n/** Package relations of one kind, such as dependencies, in Debian and RPM dependency syntax. */\ntype DeployPackageRelationOptions = {\n /**\n * Package relations expressed in Debian dependency syntax.\n *\n * @defaultValue `[]`\n */\n deb?: string[] | undefined;\n /**\n * Package relations expressed in RPM dependency syntax.\n *\n * @defaultValue `[]`\n */\n rpm?: string[] | undefined;\n};\n\nconst relationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n rpm: textList(\"RPM package relation\", \"must be an array of RPM package relations\").optional(),\n}) satisfies z.ZodType<DeployPackageRelationOptions>;\n\n/** Package relations of a kind only Debian packages have, in Debian dependency syntax. */\ntype DeployDebPackageRelationOptions = {\n /**\n * Package relations expressed in Debian dependency syntax. RPM has no equivalent relation.\n *\n * @defaultValue `[]`\n */\n deb?: string[] | undefined;\n};\n\nconst debRelationsSchema = z.strictObject({\n deb: textList(\"Debian package relation\", \"must be an array of Debian package relations\").optional(),\n}) satisfies z.ZodType<DeployDebPackageRelationOptions>;\n\n/** The `deploy.developer` options: who develops and maintains the application. */\ntype DeployDeveloperOptions = {\n /**\n * Reverse-DNS developer identifier.\n *\n * @defaultValue The application ID without its last segment, such as `com.example` for `com.example.Tasks`;\n * none when the application ID has only two segments\n */\n id?: string | undefined;\n /**\n * Developer or organization name. Deployment fails when neither this nor the `package.json` author is set.\n *\n * @defaultValue The `author` name in `package.json`\n */\n name?: string | undefined;\n /**\n * Maintainer email address.\n *\n * @defaultValue The `author` email in `package.json`, if it has one\n */\n email?: string | undefined;\n};\n\nconst developerSchema = z.strictObject({\n id: text(\"must be a reverse-DNS developer id\").optional(),\n name: text(\"must be a developer or organization name\").optional(),\n email: text(\"must be an email address\").optional(),\n}) satisfies z.ZodType<DeployDeveloperOptions>;\n\n/** One software-center screenshot in `deploy.screenshots`. Either `url` or `file` must be set. */\ntype DeployScreenshotOptions = {\n /**\n * Absolute URL of a PNG or JPEG screenshot. Takes precedence over `file`.\n *\n * @defaultValue None; each entry sets `url` or `file`\n */\n url?: string | undefined;\n /**\n * Screenshot path relative to the project root, resolved against `screenshotBaseUrl`.\n *\n * @defaultValue None; each entry sets `url` or `file`\n */\n file?: string | undefined;\n /**\n * Caption displayed with the screenshot in software centers.\n *\n * @defaultValue None: the screenshot has no `caption`\n */\n caption?: string | undefined;\n /**\n * Marks the primary screenshot. Only the first entry set to `true` is used.\n *\n * @defaultValue `false`; when no entry sets it, no screenshot is marked primary\n */\n isDefault?: boolean | undefined;\n};\n\nconst screenshotSchema = z\n .strictObject({\n url: url(\"must be an absolute URL to a PNG or JPEG\").optional(),\n file: text(\"must be an image path relative to the project root\").optional(),\n caption: text(\"must be a screenshot caption\").optional(),\n isDefault: flag(BOOLEAN_ERROR).optional(),\n })\n .refine((entry) => entry.url !== undefined || entry.file !== undefined, {\n error: \"must have either a `url` or a `file`\",\n }) satisfies z.ZodType<DeployScreenshotOptions>;\n\n/** One AppStream release-history entry in `deploy.releases`. */\ntype DeployReleaseOptions = {\n /** Application version described by this release. */\n version: string;\n /** Release date in `YYYY-MM-DD` format. */\n date: string;\n /**\n * AppStream release classification.\n *\n * @defaultValue None: the release has no `type` attribute, which AppStream reads as `stable`\n */\n type?: \"development\" | \"snapshot\" | \"stable\" | undefined;\n /**\n * AppStream update urgency.\n *\n * @defaultValue None: the release has no `urgency` attribute\n */\n urgency?: \"critical\" | \"high\" | \"low\" | \"medium\" | undefined;\n /**\n * Release notes, with each entry rendered as a paragraph.\n *\n * @defaultValue `[]`\n */\n notes?: string[] | undefined;\n /**\n * Absolute URL containing further details about the release.\n *\n * @defaultValue None: the release has no `url` element\n */\n url?: string | undefined;\n};\n\nconst releaseSchema = z.strictObject({\n version: text(VERSION_ERROR),\n date: z.iso.date({ error: \"must be an ISO date (YYYY-MM-DD)\" }),\n type: z.enum(RELEASE_TYPES, { error: \"must be one of development, snapshot, stable\" }).optional(),\n urgency: z.enum(RELEASE_URGENCIES, { error: \"must be one of critical, high, low, medium\" }).optional(),\n notes: textList(\"release note paragraph\", \"must be an array of release note paragraphs\").optional(),\n url: url(URL_ERROR).optional(),\n}) satisfies z.ZodType<DeployReleaseOptions>;\n\n/** One file extension and MIME type registered through `deploy.fileAssociations`. */\ntype DeployFileAssociationOptions = {\n /** File extension to associate with the application, without a leading dot. */\n extension: string;\n /** MIME type registered for the file extension. */\n mimeType: string;\n /**\n * Human-readable description of the file type.\n *\n * @defaultValue None: the MIME type has no `comment`\n */\n description?: string | undefined;\n};\n\nconst fileAssociationSchema = z.strictObject({\n extension: fileExtension(\"must be a file extension without a leading dot\"),\n mimeType: text(\"must be a MIME type such as text/plain\"),\n description: text(\"must be a description of the file type\").optional(),\n}) satisfies z.ZodType<DeployFileAssociationOptions>;\n\n/** One desktop launcher action in `deploy.desktopActions`, keyed by its action ID. */\ntype DeployDesktopActionOptions = {\n /** Action label shown in the desktop launcher menu. */\n name: string;\n /**\n * Arguments appended to the launch command when the action is chosen. Launchers activate the `app.<id>`\n * application action of a D-Bus-activatable application instead of running this command.\n *\n * @defaultValue `[]`\n */\n args?: string[] | undefined;\n /**\n * Icon theme name used for the action.\n *\n * @defaultValue None: the action has no `Icon` key\n */\n icon?: string | undefined;\n};\n\nconst desktopActionSchema = z.strictObject({\n name: text(\"must be an action name\"),\n args: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n icon: text(\"must be an icon name\").optional(),\n}) satisfies z.ZodType<DeployDesktopActionOptions>;\n\n/** The `deploy.branding` colors software centers use around the application's listing. */\ntype DeployBrandingOptions = {\n /** Primary AppStream branding color for light mode, in `#rrggbb` format. */\n light: string;\n /** Primary AppStream branding color for dark mode, in `#rrggbb` format. */\n dark: string;\n};\n\nconst brandingSchema = z.strictObject({\n light: hexColorSchema,\n dark: hexColorSchema,\n}) satisfies z.ZodType<DeployBrandingOptions>;\n\n/**\n * A `deploy.extraFiles` entry in object form: the source file or directory, resolved against the project root,\n * that is installed at the entry's prefix-relative destination, and the octal mode it is installed with.\n */\ntype DeployExtraFileOptions = {\n /** Source file or directory path, resolved relative to the project root. */\n source: string;\n /**\n * Octal file mode, applied to every file of a directory source. Setuid and setgid bits are rejected.\n *\n * @defaultValue `\"0755\"` for a file whose source is executable, `\"0644\"` otherwise\n */\n mode?: string | undefined;\n};\n\nconst extraFileSchema = z.strictObject({\n source: text(SOURCE_PATH_ERROR),\n mode: z\n .string({ error: FILE_MODE_ERROR })\n .regex(FILE_MODE_PATTERN, { error: FILE_MODE_ERROR })\n .refine((mode) => (Number.parseInt(mode, FILE_MODE_RADIX) & PRIVILEGED_FILE_MODE_MASK) === 0, {\n error: FILE_MODE_ERROR,\n })\n .optional(),\n}) satisfies z.ZodType<DeployExtraFileOptions>;\n\nconst extraFileEntrySchema = z.union([text(SOURCE_PATH_ERROR), extraFileSchema], { error: EXTRA_FILE_ERROR });\n\nconst launcherEnvSchema = z.record(\n z.string({ error: LAUNCHER_ENV_NAME_ERROR }).regex(LAUNCHER_ENV_NAME_PATTERN, { error: LAUNCHER_ENV_NAME_ERROR }),\n z.string({ error: LAUNCHER_ENV_ERROR }).refine((value) => !value.includes(\"\\0\"), { error: LAUNCHER_ENV_ERROR }),\n { error: (issue) => (issue.code === \"invalid_key\" ? LAUNCHER_ENV_NAME_ERROR : LAUNCHER_ENV_ERROR) },\n);\n\nconst nodeFlagsSchema = z.array(\n z\n .string({ error: NODE_FLAG_ERROR })\n .refine((value) => value.startsWith(\"-\") && !value.includes(\"\\0\"), { error: NODE_FLAG_ERROR }),\n { error: \"must be an array of Node.js flags\" },\n);\n\n/**\n * The `deploy.node` options: where the Node.js runtime bundled with the application comes from, the version it\n * is expected to be, whether its binary is stripped, and whether the launcher enables the compile cache.\n */\ntype DeployNodeOptions = {\n /**\n * Runtime source: an official download, the running Node.js executable, or `path`.\n *\n * @defaultValue `\"download\"`\n */\n source?: \"download\" | \"host\" | \"path\" | undefined;\n /**\n * Expected Node.js version. Only a downloaded runtime uses it.\n *\n * @defaultValue `\"26.13.1\"` for a downloaded runtime\n */\n version?: string | undefined;\n /**\n * Node.js executable path relative to the project root, required when `source` is `path`.\n *\n * @defaultValue None; required when `source` is `\"path\"`\n */\n path?: string | undefined;\n /**\n * Strip the runtime when its architecture matches the host and `strip` is available.\n *\n * @defaultValue `true`\n */\n shouldStrip?: boolean | undefined;\n /**\n * Enable Node.js compile caching in the generated launcher.\n *\n * @defaultValue `true`\n */\n shouldUseCompileCache?: boolean | undefined;\n};\n\nconst nodeRuntimeSchema = z.strictObject({\n source: z.enum(NODE_SOURCES, { error: \"must be one of download, host, path\" }).optional(),\n version: text(\"must be a Node.js version such as 26.7.0\").optional(),\n path: text(\"must be a path to a node binary\").optional(),\n shouldStrip: flag(BOOLEAN_ERROR).optional(),\n shouldUseCompileCache: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployNodeOptions>;\n\n/**\n * The `deploy.scripts` options: maintainer scripts for Debian and RPM packages. Each value is a path to a\n * shell script file, not inline shell; the package carries the file's content.\n */\ntype DeployScriptsOptions = {\n /**\n * Path to a shell script, relative to the project root, run before installing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n preInstall?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run after installing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n postInstall?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run before removing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n preRemove?: string | undefined;\n /**\n * Path to a shell script, relative to the project root, run after removing a Debian or RPM package.\n *\n * @defaultValue None: `gtkx deploy` adds no script for this step\n */\n postRemove?: string | undefined;\n};\n\nconst scriptsSchema = z.strictObject({\n preInstall: text(SCRIPT_ERROR).optional(),\n postInstall: text(SCRIPT_ERROR).optional(),\n preRemove: text(SCRIPT_ERROR).optional(),\n postRemove: text(SCRIPT_ERROR).optional(),\n}) satisfies z.ZodType<DeployScriptsOptions>;\n\n/** The `deploy.tools` options: executables `gtkx deploy` runs instead of the ones it downloads. */\ntype DeployToolsOptions = {\n /**\n * nFPM executable name or path relative to the project root.\n *\n * @defaultValue A pinned nFPM release that `gtkx deploy` downloads and verifies against its `sha256`\n */\n nfpm?: string | undefined;\n};\n\nconst toolsSchema = z.strictObject({\n nfpm: text(\"must be an nFPM executable name or path\").optional(),\n}) satisfies z.ZodType<DeployToolsOptions>;\n\n/** The `deploy.deb` options: Debian package metadata and compression. */\ntype DeployDebOptions = {\n /**\n * Debian package name.\n *\n * @defaultValue `deploy.binaryName`\n */\n packageName?: string | undefined;\n /**\n * Debian archive section.\n *\n * @defaultValue Derived from `deploy.categories`, such as `devel` for `Development`, or `misc` when no\n * category matches\n */\n section?: string | undefined;\n /**\n * Debian package priority.\n *\n * @defaultValue `\"optional\"`\n */\n priority?: string | undefined;\n /**\n * Compression used for the Debian package payload.\n *\n * @defaultValue nFPM's default, `gzip`\n */\n compression?: \"gzip\" | \"none\" | \"xz\" | \"zstd\" | undefined;\n /**\n * Additional Debian control fields, keyed by field name.\n *\n * @defaultValue `{}`\n */\n fields?: Record<string, string> | undefined;\n};\n\nconst debSchema = z.strictObject({\n packageName: text(\"must be a Debian package name\").optional(),\n section: text(\"must be a Debian archive section\").optional(),\n priority: text(\"must be a Debian priority\").optional(),\n compression: z.enum(DEB_COMPRESSIONS, { error: \"must be one of gzip, none, xz, zstd\" }).optional(),\n fields: textRecord(\"must be a control field value\", \"must be a record of control field names to values\").optional(),\n}) satisfies z.ZodType<DeployDebOptions>;\n\n/** The `deploy.rpm` options: RPM package metadata and compression. */\ntype DeployRpmOptions = {\n /**\n * RPM package name.\n *\n * @defaultValue `deploy.binaryName`\n */\n packageName?: string | undefined;\n /**\n * RPM package group.\n *\n * @defaultValue Derived from `deploy.categories`, or `Applications/System` when no category matches\n */\n group?: string | undefined;\n /**\n * Compression used for the RPM package payload.\n *\n * @defaultValue nFPM's default, `gzip`\n */\n compression?: \"gzip\" | \"lzma\" | \"xz\" | \"zstd\" | undefined;\n /**\n * Installation prefixes that the RPM package allows users to relocate.\n *\n * @defaultValue `[]`: the package is not relocatable\n */\n prefixes?: string[] | undefined;\n};\n\nconst rpmSchema = z.strictObject({\n packageName: text(\"must be an RPM package name\").optional(),\n group: text(\"must be an RPM group\").optional(),\n compression: z.enum(RPM_COMPRESSIONS, { error: \"must be one of gzip, lzma, xz, zstd\" }).optional(),\n prefixes: textList(\"prefix\", \"must be an array of relocation prefixes\").optional(),\n}) satisfies z.ZodType<DeployRpmOptions>;\n\n/** The `deploy.appimage` options: AppImage file name, compression, update information and runtime. */\ntype DeployAppImageOptions = {\n /**\n * Output file name.\n *\n * @defaultValue `<name>-<version>-<arch>.AppImage`, with spaces in the display name replaced by underscores,\n * such as `My_App-1.2.0-x86_64.AppImage`\n */\n fileName?: string | undefined;\n /**\n * Compression explicitly requested from appimagetool.\n *\n * @defaultValue None: appimagetool's own default, as GTKX passes no `--comp`\n */\n compression?: \"zstd\" | undefined;\n /**\n * AppImage update information string embedded in the executable.\n *\n * @defaultValue None: the AppImage embeds no update information, as GTKX passes no `-u`\n */\n updateInformation?: string | undefined;\n /**\n * Custom AppImage runtime file path, resolved relative to the project root.\n *\n * @defaultValue A pinned `type2-runtime` release that `gtkx deploy` downloads and verifies against its\n * `sha256`\n */\n runtimeFile?: string | undefined;\n};\n\nconst appimageSchema = z.strictObject({\n fileName: text(\"must be an output file name\").optional(),\n compression: z.literal(\"zstd\", { error: \"must be zstd\" }).optional(),\n updateInformation: text(\"must be an AppImage update information string\").optional(),\n runtimeFile: text(\"must be a path to an AppImage runtime file\").optional(),\n}) satisfies z.ZodType<DeployAppImageOptions>;\n\n/** The `deploy.flatpak.source` options: the Git revision a source-mode Flatpak builds. */\ntype DeployFlatpakSourceOptions = {\n /**\n * Public HTTP or HTTPS Git repository URL.\n *\n * @defaultValue The URL of the project's `origin` Git remote\n */\n url?: string | undefined;\n /**\n * Git tag to build, pinned to its commit when `commit` is omitted.\n *\n * @defaultValue The tag that points at `HEAD`, if any, when `commit` is also omitted\n */\n tag?: string | undefined;\n /**\n * Git commit to build.\n *\n * @defaultValue The commit of `tag`, or the current `HEAD` without one\n */\n commit?: string | undefined;\n};\n\nconst flatpakSourceSchema = z.strictObject({\n url: url(\"must be an absolute git URL\").optional(),\n tag: text(\"must be a git tag\").optional(),\n commit: text(\"must be a git commit sha\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSourceOptions>;\n\n/** The `deploy.flatpak` options: runtime, sandbox permissions, build and distribution of the Flatpak. */\ntype DeployFlatpakOptions = {\n /**\n * Package local build output or build from a pinned Git source inside the SDK.\n *\n * @defaultValue `\"prebuilt\"`\n */\n mode?: \"prebuilt\" | \"source\" | undefined;\n /**\n * Flatpak runtime ID.\n *\n * @defaultValue `\"org.gnome.Platform\"`\n */\n runtime?: string | undefined;\n /**\n * Flatpak runtime branch.\n *\n * @defaultValue `\"51\"`\n */\n runtimeVersion?: string | undefined;\n /**\n * Build SDK ID.\n *\n * @defaultValue `\"org.gnome.Sdk\"`\n */\n sdk?: string | undefined;\n /**\n * Node.js SDK extension used in source mode.\n *\n * @defaultValue `\"org.freedesktop.Sdk.Extension.node26\"`\n */\n nodeExtension?: string | undefined;\n /**\n * Additional SDK extension IDs included in the build environment.\n *\n * @defaultValue `[]`\n */\n sdkExtensions?: string[] | undefined;\n /**\n * Optional Flatpak base application ID.\n *\n * @defaultValue None: the manifest has no `base`\n */\n base?: string | undefined;\n /**\n * Branch of the base application.\n *\n * @defaultValue None: the manifest has no `base-version`\n */\n baseVersion?: string | undefined;\n /**\n * Exported application branch.\n *\n * @defaultValue `\"stable\"`\n */\n branch?: string | undefined;\n /**\n * Sandbox permissions added to the defaults. A negation such as `--nosocket=fallback-x11` removes the\n * matching default.\n *\n * @defaultValue `[]`, on top of `--share=ipc`, `--socket=wayland`, `--socket=fallback-x11` and\n * `--device=dri`\n * @example\n * ```ts\n * finishArgs: [\"--share=network\", \"--filesystem=xdg-documents\"],\n * ```\n */\n finishArgs?: string[] | undefined;\n /**\n * Patterns added to the cleanup defaults. An empty array disables cleanup.\n *\n * @defaultValue `[]`, on top of `/include`, `/share/pkgconfig`, `*.la` and `*.a`\n */\n cleanup?: string[] | undefined;\n /**\n * Additional shell commands appended to the application's Flatpak build commands.\n *\n * @defaultValue `[]`\n */\n buildCommands?: string[] | undefined;\n /**\n * Additional Flatpak manifest modules built before the application module.\n *\n * @defaultValue `[]`\n */\n modules?: unknown[] | undefined;\n /**\n * Git repository and revision used for source builds.\n *\n * @defaultValue `{}`: the `origin` remote at the tagged or current commit\n */\n source?: DeployFlatpakSourceOptions | undefined;\n /**\n * Package manager used for offline source builds.\n *\n * @defaultValue Detected from the first lockfile found: `pnpm-lock.yaml`, `yarn.lock`, then\n * `package-lock.json`\n */\n packageManager?: \"npm\" | \"pnpm\" | \"yarn\" | undefined;\n /**\n * Lockfile path relative to the project root.\n *\n * @defaultValue The package manager's standard lockfile, such as `pnpm-lock.yaml`\n */\n lockfile?: string | undefined;\n /**\n * Runtime repository URL embedded in the bundle.\n *\n * @defaultValue `\"https://dl.flathub.org/repo/flathub.flatpakrepo\"`\n */\n runtimeRepo?: string | undefined;\n /**\n * Emit a `.flatpak` bundle in addition to the local repository.\n *\n * @defaultValue `true`\n */\n shouldEmitBundle?: boolean | undefined;\n /**\n * Install the built application into the current user's Flatpak installation.\n *\n * @defaultValue `false`\n */\n shouldInstall?: boolean | undefined;\n /**\n * Allow flatpak-builder to use rofiles-fuse. Set to `false` where FUSE is unavailable.\n *\n * @defaultValue `true`\n */\n shouldUseRofilesFuse?: boolean | undefined;\n};\n\nconst flatpakSchema = z.strictObject({\n mode: z.enum(FLATPAK_MODES, { error: 'must be \"prebuilt\" or \"source\"' }).optional(),\n runtime: text(\"must be a runtime id\").optional(),\n runtimeVersion: text('must be a runtime branch such as \"51\"').optional(),\n sdk: text(\"must be an SDK id\").optional(),\n nodeExtension: text(\"must be a Node SDK extension id\").optional(),\n sdkExtensions: textList(\"SDK extension id\", \"must be an array of SDK extension ids\").optional(),\n base: text(\"must be a base app id\").optional(),\n baseVersion: text(\"must be a base app version\").optional(),\n branch: text(\"must be a branch name\").optional(),\n finishArgs: textList(\"finish argument\", \"must be an array of flatpak finish arguments\").optional(),\n cleanup: textList(\"cleanup pattern\", \"must be an array of cleanup patterns\").optional(),\n buildCommands: textList(\"shell command\", \"must be an array of shell commands\").optional(),\n modules: z.array(z.unknown(), { error: \"must be an array of flatpak module objects\" }).optional(),\n source: flatpakSourceSchema.optional(),\n packageManager: z.enum(PACKAGE_MANAGERS, { error: \"must be one of npm, pnpm, yarn\" }).optional(),\n lockfile: text(\"must be a path to a lockfile\").optional(),\n runtimeRepo: url(\"must be an absolute .flatpakrepo URL\").optional(),\n shouldEmitBundle: flag(BOOLEAN_ERROR).optional(),\n shouldInstall: flag(BOOLEAN_ERROR).optional(),\n shouldUseRofilesFuse: flag(BOOLEAN_ERROR).optional(),\n}) satisfies z.ZodType<DeployFlatpakOptions>;\n\n/** The `deploy.signing.deb` options: the key and method that sign the Debian package. */\ntype DeployDebSigningOptions = {\n /** PGP private key file used to sign the Debian package. */\n keyFile: string;\n /**\n * PGP signing key ID.\n *\n * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign\n */\n keyId?: string | undefined;\n /**\n * Debian package signing method.\n *\n * @defaultValue nFPM's default, `\"debsign\"`\n */\n method?: \"debsign\" | \"dpkg-sig\" | undefined;\n /**\n * Debian signature role.\n *\n * @defaultValue nFPM's default, `\"origin\"`\n */\n type?: \"archive\" | \"maint\" | \"origin\" | undefined;\n /**\n * Name and email address recorded as the signer.\n *\n * @defaultValue None: GTKX passes no `signer` to nFPM\n */\n signer?: string | undefined;\n};\n\nconst debSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n method: z.enum(DEB_SIGN_METHODS, { error: 'must be \"debsign\" or \"dpkg-sig\"' }).optional(),\n type: z.enum(DEB_SIGN_TYPES, { error: \"must be one of archive, maint, origin\" }).optional(),\n signer: text(\"must be a signer name and email\").optional(),\n}) satisfies z.ZodType<DeployDebSigningOptions>;\n\n/** The `deploy.signing.rpm` options: the key that signs the RPM package. */\ntype DeployRpmSigningOptions = {\n /** PGP private key file used to sign the RPM package. */\n keyFile: string;\n /**\n * PGP signing key ID.\n *\n * @defaultValue nFPM's choice: the first subkey of `keyFile` that can sign\n */\n keyId?: string | undefined;\n};\n\nconst rpmSigningSchema = z.strictObject({\n keyFile: text(KEY_FILE_ERROR),\n keyId: text(KEY_ID_ERROR).optional(),\n}) satisfies z.ZodType<DeployRpmSigningOptions>;\n\n/** The `deploy.signing.flatpak` options: the GPG key that signs the Flatpak repository commit. */\ntype DeployFlatpakSigningOptions = {\n /**\n * GPG key ID that signs the Flatpak repository commit. The bundle embeds its public key, so\n * `flatpak install --bundle` verifies the signature.\n */\n gpgKeyId: string;\n /**\n * GPG home directory containing the signing key, passed to GPG as given.\n *\n * @defaultValue GPG's default, `$GNUPGHOME` or `~/.gnupg`\n */\n gpgHomeDir?: string | undefined;\n};\n\nconst flatpakSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n gpgHomeDir: text(\"must be a path to a GPG home directory\").optional(),\n}) satisfies z.ZodType<DeployFlatpakSigningOptions>;\n\n/** The `deploy.signing.appimage` options: the GPG key that signs the AppImage. */\ntype DeployAppImageSigningOptions = {\n /** GPG key ID used by appimagetool to sign the AppImage. */\n gpgKeyId: string;\n};\n\nconst appimageSigningSchema = z.strictObject({\n gpgKeyId: text(\"must be a GPG key id\"),\n}) satisfies z.ZodType<DeployAppImageSigningOptions>;\n\n/** The `deploy.signing` options: how each package format is signed. Formats without an entry stay unsigned. */\ntype DeploySigningOptions = {\n /**\n * AppImage signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n appimage?: DeployAppImageSigningOptions | undefined;\n /**\n * Debian package signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n deb?: DeployDebSigningOptions | undefined;\n /**\n * Flatpak bundle signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n flatpak?: DeployFlatpakSigningOptions | undefined;\n /**\n * RPM package signing options.\n *\n * @defaultValue None: `gtkx deploy` leaves this format unsigned\n */\n rpm?: DeployRpmSigningOptions | undefined;\n};\n\nconst signingSchema = z.strictObject({\n appimage: appimageSigningSchema.optional(),\n deb: debSigningSchema.optional(),\n flatpak: flatpakSigningSchema.optional(),\n rpm: rpmSigningSchema.optional(),\n}) satisfies z.ZodType<DeploySigningOptions>;\n\n/** The `deploy.relations` options: package relationships besides dependencies, for Debian and RPM. */\ntype DeployRelationsOptions = {\n /**\n * Recommended packages that extend the application's functionality.\n *\n * @defaultValue `{}`\n */\n recommends?: DeployPackageRelationOptions | undefined;\n /**\n * Suggested companion packages.\n *\n * @defaultValue `{}`\n */\n suggests?: DeployPackageRelationOptions | undefined;\n /**\n * Package names or capabilities supplied by this package.\n *\n * @defaultValue `{}`\n */\n provides?: DeployPackageRelationOptions | undefined;\n /**\n * Packages that cannot be installed alongside this package.\n *\n * @defaultValue `{}`\n */\n conflicts?: DeployPackageRelationOptions | undefined;\n /**\n * Packages whose files this package may replace.\n *\n * @defaultValue `{}`\n */\n replaces?: DeployPackageRelationOptions | undefined;\n /**\n * Debian packages made incompatible by installing this package. Debian packages only.\n *\n * @defaultValue `{}`\n */\n breaks?: DeployDebPackageRelationOptions | undefined;\n /**\n * Debian dependencies required before unpacking this package. Debian packages only.\n *\n * @defaultValue `{}`\n */\n preDepends?: DeployDebPackageRelationOptions | undefined;\n};\n\nconst extraRelationsSchema = z.strictObject({\n recommends: relationsSchema.optional(),\n suggests: relationsSchema.optional(),\n provides: relationsSchema.optional(),\n conflicts: relationsSchema.optional(),\n replaces: relationsSchema.optional(),\n breaks: debRelationsSchema.optional(),\n preDepends: debRelationsSchema.optional(),\n}) satisfies z.ZodType<DeployRelationsOptions>;\n\n/** The `deploy` options: application metadata, bundled runtime settings, and packaging options for `gtkx deploy`. */\ntype DeployOptions = {\n /**\n * Package formats to build. `gtkx deploy --target` overrides it.\n *\n * @defaultValue `[\"flatpak\"]`\n */\n targets?: (\"appimage\" | \"deb\" | \"flatpak\" | \"rpm\")[] | undefined;\n /**\n * Target CPU architectures. `gtkx deploy --arch` overrides it.\n *\n * @defaultValue The host architecture, `arm64` or `x64`\n */\n architectures?: (\"arm64\" | \"x64\")[] | undefined;\n /**\n * Deployment directory relative to the project root, with packages in its `out` directory. It must be below\n * the project root and outside `.gtkx`, which GTKX reserves for generated files. `gtkx deploy --out` overrides it.\n *\n * @defaultValue `\"build\"`\n */\n outDir?: string | undefined;\n /**\n * Display name.\n *\n * @defaultValue The `package.json` name without its scope, title-cased with spaces for hyphens and\n * underscores, such as `Tasks App` for `@example/tasks-app`; or the last segment of the application ID\n */\n name?: string | undefined;\n /**\n * Generic application description shown by desktop launchers, such as `Text Editor`.\n *\n * @defaultValue None: the desktop entry has no `GenericName` key\n */\n genericName?: string | undefined;\n /**\n * Launcher command name, also used as the package name. A configured value is normalized the same way as the\n * default.\n *\n * @defaultValue The `package.json` name without its scope, lowercased with hyphens for other characters; or\n * the last segment of the application ID\n */\n binaryName?: string | undefined;\n /**\n * Application version. Deployment fails when neither this nor the `package.json` version is set.\n *\n * @defaultValue The `version` in `package.json`\n */\n version?: string | undefined;\n /**\n * Debian packaging revision and RPM release.\n *\n * @defaultValue `\"1\"`\n */\n release?: string | undefined;\n /**\n * Non-negative Debian and RPM version epoch.\n *\n * @defaultValue None: package metadata has no `epoch`\n */\n epoch?: number | undefined;\n /**\n * Single-line summary without a trailing period. Deployment fails when neither this nor the `package.json`\n * description is set.\n *\n * @defaultValue The first line of the `description` in `package.json`\n */\n summary?: string | undefined;\n /**\n * Long description as paragraphs.\n *\n * @defaultValue `deploy.summary` as the only paragraph, also when the array is empty\n */\n description?: string[] | undefined;\n /**\n * Search keywords included in the desktop entry and AppStream metadata.\n *\n * @defaultValue `[]`\n */\n keywords?: string[] | undefined;\n /**\n * Freedesktop application categories used by launchers, software centers, and package metadata.\n *\n * @defaultValue `[]`\n * @example\n * ```ts\n * categories: [\"Office\", \"ProjectManagement\"],\n * ```\n */\n categories?: string[] | undefined;\n /**\n * Supported MIME types, combined with types from file associations and URL protocols.\n *\n * @defaultValue `[]`\n */\n mimeTypes?: string[] | undefined;\n /**\n * Developer identity and package maintainer details.\n *\n * @defaultValue `{}`: the details come from the `author` in `package.json`\n */\n developer?: DeployDeveloperOptions | undefined;\n /**\n * Application license as an SPDX expression. Deployment fails when neither this nor the `package.json`\n * license is set.\n *\n * @defaultValue The `license` in `package.json`\n */\n license?: string | undefined;\n /**\n * License file path relative to the project root, installed with the application.\n *\n * @defaultValue The first of `LICENSE`, `LICENSE.md`, `LICENSE.txt`, `COPYING` and `COPYING.md` in the\n * project root; none when no such file exists\n */\n licenseFile?: string | undefined;\n /**\n * SPDX license expression for the AppStream metadata.\n *\n * @defaultValue `\"CC0-1.0\"`\n */\n metadataLicense?: string | undefined;\n /**\n * Copyright notice.\n *\n * @defaultValue `Copyright © <year> <developer name>`, with the year of the build date\n */\n copyright?: string | undefined;\n /**\n * Application homepage URL.\n *\n * @defaultValue The `homepage` in `package.json`, if set\n */\n homepage?: string | undefined;\n /**\n * Additional AppStream links keyed by their purpose, such as `bugtracker` or `help`.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * urls: { bugtracker: \"https://github.com/example/tasks/issues\" },\n * ```\n */\n urls?:\n | Partial<\n Record<\n \"bugtracker\" | \"contact\" | \"contribute\" | \"donation\" | \"faq\" | \"help\" | \"translate\" | \"vcs-browser\",\n string\n >\n >\n | undefined;\n /**\n * Screenshots for software centers. Each entry requires a `url` or `file`.\n *\n * @defaultValue `[]`\n */\n screenshots?: DeployScreenshotOptions[] | undefined;\n /**\n * Base URL for screenshot files.\n *\n * @defaultValue The raw file URL of the project's GitHub or GitLab `origin` remote on its default branch;\n * deployment fails without one when a screenshot sets `file`\n */\n screenshotBaseUrl?: string | undefined;\n /**\n * Primary branding colors included in AppStream metadata.\n *\n * @defaultValue None: the metadata has no `branding` element\n */\n branding?: DeployBrandingOptions | undefined;\n /**\n * OARS 1.1 content-rating attributes mapped to their intensities.\n *\n * @defaultValue `{}`: an empty OARS 1.1 rating, which declares no objectionable content\n * @example\n * ```ts\n * contentRating: { \"social-chat\": \"intense\" },\n * ```\n */\n contentRating?: Record<string, \"intense\" | \"mild\" | \"moderate\" | \"none\"> | undefined;\n /**\n * AppStream release history, sorted newest first.\n *\n * @defaultValue One release for the application version, dated on the build day or by `SOURCE_DATE_EPOCH`\n */\n releases?: DeployReleaseOptions[] | undefined;\n /**\n * Application arguments included in the desktop entry's launch command.\n *\n * @defaultValue `[]`\n */\n execArgs?: string[] | undefined;\n /**\n * Environment variables exported by the generated launcher. Keys must be POSIX environment names.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * launcherEnv: { GSK_RENDERER: \"ngl\" },\n * ```\n */\n launcherEnv?: Record<string, string> | undefined;\n /**\n * Node.js flags placed before the application bundle in the generated launcher.\n *\n * @defaultValue `[]`\n * @example\n * ```ts\n * nodeFlags: [\"--max-old-space-size=4096\"],\n * ```\n */\n nodeFlags?: string[] | undefined;\n /**\n * File extensions and MIME types registered for the application.\n *\n * @defaultValue `[]`\n */\n fileAssociations?: DeployFileAssociationOptions[] | undefined;\n /**\n * URL schemes handled by the application, registered as `x-scheme-handler` MIME types.\n *\n * @defaultValue `[]`\n */\n protocols?: string[] | undefined;\n /**\n * Desktop launcher actions keyed by action ID. With `isDbusActivatable`, the application must register an\n * `app.<id>` action for each one.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * desktopActions: { today: { name: \"Today\", args: [\"tasks://today\"] } },\n * ```\n */\n desktopActions?: Record<string, DeployDesktopActionOptions> | undefined;\n /**\n * Additional desktop entry keys, overriding non-reserved generated values. `DBusActivatable` and `Version`\n * are rejected; use `deploy.isDbusActivatable` for D-Bus activation.\n *\n * @defaultValue `{}`\n */\n desktopEntry?: Record<string, string> | undefined;\n /**\n * Additional XML fragments appended to the AppStream component.\n *\n * @defaultValue `[]`\n */\n metainfoExtra?: string[] | undefined;\n /**\n * Enable D-Bus activation in the desktop entry and generate a session bus service file.\n *\n * @defaultValue `false`\n */\n isDbusActivatable?: boolean | undefined;\n /**\n * Extra files keyed by destination inside the install prefix, without a leading slash or a `..` segment.\n * Each value is a source path relative to the project root, or a {@link DeployExtraFileOptions} entry that\n * also sets the file mode. A directory source installs every file below it at the same path below the\n * destination; without a mode, each file is executable when its source is. Scripts installed this way, such\n * as a helper command's launcher, can run the bundled Node.js runtime at `lib/<binaryName>/node` in every\n * prebuilt target and in source Flatpaks.\n *\n * @defaultValue `{}`\n * @example\n * ```ts\n * extraFiles: { \"share/tasks/templates\": \"data/templates\" },\n * ```\n */\n extraFiles?: Record<string, string | DeployExtraFileOptions> | undefined;\n /**\n * Minimum runtime library versions keyed by GIR library ID, used when deriving package dependencies.\n *\n * @defaultValue `{}`: library dependencies carry no version constraint\n * @example\n * ```ts\n * minimumLibraryVersions: { \"Adw-1\": \"1.8\", \"Gtk-4.0\": \"4.20\" },\n * ```\n */\n minimumLibraryVersions?: Record<string, string> | undefined;\n /**\n * Additional Debian and RPM dependencies merged with automatically detected dependencies.\n *\n * @defaultValue None: only the detected dependencies, such as `libgtk-4-1` on Debian\n */\n depends?: DeployPackageRelationOptions | undefined;\n /**\n * Additional package relationships for Debian and RPM.\n *\n * @defaultValue `{}`: no relations besides `depends`\n */\n relations?: DeployRelationsOptions | undefined;\n /**\n * Installation and removal scripts for Debian and RPM packages.\n *\n * @defaultValue `{}`: no maintainer scripts\n */\n scripts?: DeployScriptsOptions | undefined;\n /**\n * Node.js runtime bundled with prebuilt packages and launcher compile-cache settings.\n *\n * @defaultValue `{}`: a downloaded Node.js `26.13.1`, stripped, with the compile cache on\n */\n node?: DeployNodeOptions | undefined;\n /**\n * Overrides for executables used to build packages.\n *\n * @defaultValue `{}`: `gtkx deploy` downloads the pinned tools it needs\n */\n tools?: DeployToolsOptions | undefined;\n /**\n * Per-format package signing options.\n *\n * @defaultValue `{}`: every package is unsigned\n */\n signing?: DeploySigningOptions | undefined;\n /**\n * AppImage packaging options.\n *\n * @defaultValue `{}`\n */\n appimage?: DeployAppImageOptions | undefined;\n /**\n * Debian package metadata and compression options.\n *\n * @defaultValue `{}`\n */\n deb?: DeployDebOptions | undefined;\n /**\n * Flatpak runtime, sandbox, build, and distribution options.\n *\n * @defaultValue `{}`\n */\n flatpak?: DeployFlatpakOptions | undefined;\n /**\n * RPM package metadata and compression options.\n *\n * @defaultValue `{}`\n */\n rpm?: DeployRpmOptions | undefined;\n};\n\nconst deploySchema = z.strictObject({\n targets: z\n .array(z.enum(DEPLOY_TARGET_NAMES, { error: \"must be one of appimage, deb, flatpak, rpm\" }), {\n error: \"must be an array of deploy targets\",\n })\n .optional(),\n architectures: z\n .array(z.enum(DEPLOY_ARCH_NAMES, { error: \"must be one of arm64, x64\" }), {\n error: \"must be an array of deploy architectures\",\n })\n .optional(),\n outDir: text(\"must be a directory path relative to the project root\").optional(),\n name: text(\"must be the display name shown in the launcher\").optional(),\n genericName: text(\"must be a generic application name\").optional(),\n binaryName: text(\"must be a kebab-case command name\").optional(),\n version: text(VERSION_ERROR).optional(),\n release: text(\"must be a packaging revision\").optional(),\n epoch: z.int({ error: EPOCH_ERROR }).min(0, { error: EPOCH_ERROR }).optional(),\n summary: text(\"must be a single-line summary without a trailing period\").optional(),\n description: textList(\"description paragraph\", \"must be an array of description paragraphs\").optional(),\n keywords: textList(\"search keyword\", \"must be an array of search keywords\").optional(),\n categories: textList(\"freedesktop category\", \"must be an array of freedesktop categories\").optional(),\n mimeTypes: textList(\"MIME type\", \"must be an array of MIME types\").optional(),\n developer: developerSchema.optional(),\n license: text(SPDX_ERROR).optional(),\n licenseFile: text(\"must be a path to a license file\").optional(),\n metadataLicense: text(SPDX_ERROR).optional(),\n copyright: text(\"must be a copyright line\").optional(),\n homepage: url(URL_ERROR).optional(),\n urls: z\n .partialRecord(z.enum(URL_KINDS), url(URL_ERROR), {\n error: \"must be a record of AppStream url kinds to URLs\",\n })\n .optional(),\n screenshots: z.array(screenshotSchema, { error: \"must be an array of screenshots\" }).optional(),\n screenshotBaseUrl: url(\"must be an absolute base URL\").optional(),\n branding: brandingSchema.optional(),\n contentRating: z\n .record(z.string(), z.enum(OARS_INTENSITIES, { error: \"must be one of intense, mild, moderate, none\" }), {\n error: \"must be a record of OARS 1.1 attribute ids to intensities\",\n })\n .optional(),\n releases: z.array(releaseSchema, { error: \"must be an array of releases\" }).optional(),\n execArgs: textList(\"argument\", \"must be an array of arguments appended to Exec\").optional(),\n launcherEnv: launcherEnvSchema.optional(),\n nodeFlags: nodeFlagsSchema.optional(),\n fileAssociations: z.array(fileAssociationSchema, { error: \"must be an array of file associations\" }).optional(),\n protocols: textList(\"URL scheme\", \"must be an array of URL schemes\").optional(),\n desktopActions: z\n .record(z.string(), desktopActionSchema, { error: \"must be a record of action ids to actions\" })\n .optional(),\n desktopEntry: textRecord(\n \"must be a desktop entry value\",\n \"must be a record of desktop entry keys to values\",\n ).optional(),\n metainfoExtra: textList(\"AppStream XML fragment\", \"must be an array of AppStream XML fragments\").optional(),\n isDbusActivatable: flag(BOOLEAN_ERROR).optional(),\n extraFiles: relativePathRecord(\n \"must be a destination path inside the install prefix, without a leading slash or a .. segment\",\n extraFileEntrySchema,\n \"must be a record of prefix-relative destinations to source paths or { source, mode } entries\",\n ).optional(),\n minimumLibraryVersions: minimumLibraryVersionsSchema.optional(),\n depends: relationsSchema.optional(),\n relations: extraRelationsSchema.optional(),\n scripts: scriptsSchema.optional(),\n node: nodeRuntimeSchema.optional(),\n tools: toolsSchema.optional(),\n signing: signingSchema.optional(),\n appimage: appimageSchema.optional(),\n deb: debSchema.optional(),\n flatpak: flatpakSchema.optional(),\n rpm: rpmSchema.optional(),\n}) satisfies z.ZodType<DeployOptions>;\n\nexport {\n deploySchema,\n type DeployAppImageOptions,\n type DeployAppImageSigningOptions,\n type DeployBrandingOptions,\n type DeployDebOptions,\n type DeployDebPackageRelationOptions,\n type DeployDebSigningOptions,\n type DeployDesktopActionOptions,\n type DeployDeveloperOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployFlatpakOptions,\n type DeployFlatpakSigningOptions,\n type DeployFlatpakSourceOptions,\n type DeployNodeOptions,\n type DeployOptions,\n type DeployPackageRelationOptions,\n type DeployRelationsOptions,\n type DeployReleaseOptions,\n type DeployRpmOptions,\n type DeployRpmSigningOptions,\n type DeployScreenshotOptions,\n type DeployScriptsOptions,\n type DeploySigningOptions,\n type DeployToolsOptions,\n};\n"]}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- export { type AgentsOptions, type ApplicationConfig, type Config, defineConfig, type DeprecationsOptions, type ElementConfigOptions, type ElementPropsExport, type ElementsOptions, type McpOptions, mergeConfig, type ModuleExport, type ReactCompilerOptions, type ResolvedConfig, } from "./config.ts";
6
+ export { type AgentsOptions, type ApplicationConfig, type Config, defineConfig, type DeprecationsOptions, type ElementConfigOptions, type ElementPropsExport, type ElementsOptions, type FutureOptions, type McpOptions, mergeConfig, type ModuleExport, type ReactCompilerOptions, type ResolvedConfig, } from "./config.ts";
7
7
  export { 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, } from "./deploy.ts";
8
8
  export { type ConfigLoader, type LoadConfigOptions, type LoadedConfig, loadConfig } from "./loader.ts";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,cAAc,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAIH,YAAY,EAMZ,WAAW,GAId,MAAM,aAAa,CAAC;AACrB,OAAO,EAyBN,MAAM,aAAa,CAAC;AACrB,OAAO,EAAgE,UAAU,EAAE,MAAM,aAAa,CAAC","sourcesContent":["/**\n * Defines and merges a project's `gtkx.config.ts`.\n *\n * @packageDocumentation\n */\nexport {\n type AgentsOptions,\n type ApplicationConfig,\n type Config,\n defineConfig,\n type DeprecationsOptions,\n type ElementConfigOptions,\n type ElementPropsExport,\n type ElementsOptions,\n type McpOptions,\n mergeConfig,\n type ModuleExport,\n type ReactCompilerOptions,\n type ResolvedConfig,\n} from \"./config.ts\";\nexport {\n type DeployAppImageOptions,\n type DeployAppImageSigningOptions,\n type DeployBrandingOptions,\n type DeployDebOptions,\n type DeployDebPackageRelationOptions,\n type DeployDebSigningOptions,\n type DeployDesktopActionOptions,\n type DeployDeveloperOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployFlatpakOptions,\n type DeployFlatpakSigningOptions,\n type DeployFlatpakSourceOptions,\n type DeployNodeOptions,\n type DeployOptions,\n type DeployPackageRelationOptions,\n type DeployRelationsOptions,\n type DeployReleaseOptions,\n type DeployRpmOptions,\n type DeployRpmSigningOptions,\n type DeployScreenshotOptions,\n type DeployScriptsOptions,\n type DeploySigningOptions,\n type DeployToolsOptions,\n} from \"./deploy.ts\";\nexport { type ConfigLoader, type LoadConfigOptions, type LoadedConfig, loadConfig } from \"./loader.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAIH,YAAY,EAOZ,WAAW,GAId,MAAM,aAAa,CAAC;AACrB,OAAO,EAyBN,MAAM,aAAa,CAAC;AACrB,OAAO,EAAgE,UAAU,EAAE,MAAM,aAAa,CAAC","sourcesContent":["/**\n * Defines and merges a project's `gtkx.config.ts`.\n *\n * @packageDocumentation\n */\nexport {\n type AgentsOptions,\n type ApplicationConfig,\n type Config,\n defineConfig,\n type DeprecationsOptions,\n type ElementConfigOptions,\n type ElementPropsExport,\n type ElementsOptions,\n type FutureOptions,\n type McpOptions,\n mergeConfig,\n type ModuleExport,\n type ReactCompilerOptions,\n type ResolvedConfig,\n} from \"./config.ts\";\nexport {\n type DeployAppImageOptions,\n type DeployAppImageSigningOptions,\n type DeployBrandingOptions,\n type DeployDebOptions,\n type DeployDebPackageRelationOptions,\n type DeployDebSigningOptions,\n type DeployDesktopActionOptions,\n type DeployDeveloperOptions,\n type DeployExtraFileOptions,\n type DeployFileAssociationOptions,\n type DeployFlatpakOptions,\n type DeployFlatpakSigningOptions,\n type DeployFlatpakSourceOptions,\n type DeployNodeOptions,\n type DeployOptions,\n type DeployPackageRelationOptions,\n type DeployRelationsOptions,\n type DeployReleaseOptions,\n type DeployRpmOptions,\n type DeployRpmSigningOptions,\n type DeployScreenshotOptions,\n type DeployScriptsOptions,\n type DeploySigningOptions,\n type DeployToolsOptions,\n} from \"./deploy.ts\";\nexport { type ConfigLoader, type LoadConfigOptions, type LoadedConfig, loadConfig } from \"./loader.ts\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"user-event-signals.d.ts","sourceRoot":"","sources":["../src/user-event-signals.ts"],"names":[],"mappings":"AAuCA,QAAA,MAAM,uBAAuB,cAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CASzG,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"user-event-signals.d.ts","sourceRoot":"","sources":["../src/user-event-signals.ts"],"names":[],"mappings":"AAyCA,QAAA,MAAM,uBAAuB,cAAe,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CASzG,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -23,8 +23,10 @@ const DEFAULT_USER_EVENT_SIGNALS = {
23
23
  GtkSwitch: ["state-set"],
24
24
  GtkTextBuffer: [
25
25
  "apply-tag",
26
+ "begin-user-action",
26
27
  "changed",
27
28
  "delete-range",
29
+ "end-user-action",
28
30
  "insert-child-anchor",
29
31
  "insert-paintable",
30
32
  "insert-text",
@@ -1 +1 @@
1
- {"version":3,"file":"user-event-signals.js","sourceRoot":"","sources":["../src/user-event-signals.ts"],"names":[],"mappings":"AAAA,MAAM,0BAA0B,GAA6B;IACzD,cAAc,EAAE,CAAC,UAAU,CAAC;IAC5B,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,iBAAiB,EAAE,CAAC,QAAQ,CAAC;IAC7B,UAAU,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,CAAC;IAC9E,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,aAAa,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IAC3C,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,cAAc,EAAE,CAAC,SAAS,CAAC;IAC3B,WAAW,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,aAAa,CAAC;IACtD,cAAc,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;IACjD,UAAU,EAAE,CAAC,2BAA2B,CAAC;IACzC,UAAU,EAAE,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACrD,WAAW,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,CAAC;IAC5E,UAAU,EAAE,CAAC,QAAQ,CAAC;IACtB,QAAQ,EAAE,CAAC,eAAe,CAAC;IAC3B,cAAc,EAAE,CAAC,eAAe,CAAC;IACjC,iBAAiB,EAAE,CAAC,cAAc,CAAC;IACnC,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,iBAAiB,EAAE,CAAC,mBAAmB,CAAC;IACxC,aAAa,EAAE,CAAC,eAAe,CAAC;IAChC,SAAS,EAAE,CAAC,WAAW,CAAC;IACxB,aAAa,EAAE;QACX,WAAW;QACX,SAAS;QACT,cAAc;QACd,qBAAqB;QACrB,kBAAkB;QAClB,aAAa;QACb,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,YAAY;KACf;IACD,eAAe,EAAE,CAAC,SAAS,CAAC;IAC5B,SAAS,EAAE,CAAC,qBAAqB,CAAC;CACrC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,SAA+C,EAA4B,EAAE;IAC1G,MAAM,QAAQ,GAA6B,EAAE,GAAG,0BAA0B,EAAE,CAAC;IAC7E,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAExD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,eAAe,EAAE,CAAC;QAChD,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC","sourcesContent":["const DEFAULT_USER_EVENT_SIGNALS: Record<string, string[]> = {\n AdwAlertDialog: [\"response\"],\n AdwCarousel: [\"page-changed\"],\n AdwDialog: [\"closed\"],\n AdwNavigationView: [\"pushed\"],\n AdwTabView: [\"close-page\", \"page-attached\", \"page-detached\", \"page-reordered\"],\n GObject: [\"notify\"],\n GtkAdjustment: [\"changed\", \"value-changed\"],\n GtkCalendar: [\"day-selected\"],\n GtkCheckButton: [\"toggled\"],\n GtkEditable: [\"changed\", \"delete-text\", \"insert-text\"],\n GtkEntryBuffer: [\"deleted-text\", \"inserted-text\"],\n GtkFlowBox: [\"selected-children-changed\"],\n GtkListBox: [\"row-selected\", \"selected-rows-changed\"],\n GtkNotebook: [\"page-added\", \"page-removed\", \"page-reordered\", \"switch-page\"],\n GtkPopover: [\"closed\"],\n GtkRange: [\"value-changed\"],\n GtkScaleButton: [\"value-changed\"],\n GtkScrolledWindow: [\"edge-reached\"],\n GtkSearchEntry: [\"search-changed\"],\n GtkSelectionModel: [\"selection-changed\"],\n GtkSpinButton: [\"value-changed\"],\n GtkSwitch: [\"state-set\"],\n GtkTextBuffer: [\n \"apply-tag\",\n \"changed\",\n \"delete-range\",\n \"insert-child-anchor\",\n \"insert-paintable\",\n \"insert-text\",\n \"mark-deleted\",\n \"mark-set\",\n \"modified-changed\",\n \"remove-tag\",\n ],\n GtkToggleButton: [\"toggled\"],\n GtkWidget: [\"state-flags-changed\"],\n};\n\nconst resolveUserEventSignals = (overrides: Record<string, string[]> | undefined): Record<string, string[]> => {\n const resolved: Record<string, string[]> = { ...DEFAULT_USER_EVENT_SIGNALS };\n const overrideEntries = Object.entries(overrides ?? {});\n\n for (const [typeName, signals] of overrideEntries) {\n resolved[typeName] = [...new Set([...(resolved[typeName] ?? []), ...signals])];\n }\n\n return resolved;\n};\n\nexport { resolveUserEventSignals };\n"]}
1
+ {"version":3,"file":"user-event-signals.js","sourceRoot":"","sources":["../src/user-event-signals.ts"],"names":[],"mappings":"AAAA,MAAM,0BAA0B,GAA6B;IACzD,cAAc,EAAE,CAAC,UAAU,CAAC;IAC5B,WAAW,EAAE,CAAC,cAAc,CAAC;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,iBAAiB,EAAE,CAAC,QAAQ,CAAC;IAC7B,UAAU,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,CAAC;IAC9E,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,aAAa,EAAE,CAAC,SAAS,EAAE,eAAe,CAAC;IAC3C,WAAW,EAAE,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AG,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC","sourcesContent":["const DEFAULT_USER_EVENT_SIGNALS: Record<string, string[]> = {\n AdwAlertDialog: [\"response\"],\n AdwCarousel: [\"page-changed\"],\n AdwDialog: [\"closed\"],\n AdwNavigationView: [\"pushed\"],\n AdwTabView: [\"close-page\", \"page-attached\", \"page-detached\", \"page-reordered\"],\n GObject: [\"notify\"],\n GtkAdjustment: [\"changed\", \"value-changed\"],\n GtkCalendar: [\"day-selected\"],\n GtkCheckButton: [\"toggled\"],\n GtkEditable: [\"changed\", \"delete-text\", \"insert-text\"],\n GtkEntryBuffer: [\"deleted-text\", \"inserted-text\"],\n GtkFlowBox: [\"selected-children-changed\"],\n GtkListBox: [\"row-selected\", \"selected-rows-changed\"],\n GtkNotebook: [\"page-added\", \"page-removed\", \"page-reordered\", \"switch-page\"],\n GtkPopover: [\"closed\"],\n GtkRange: [\"value-changed\"],\n GtkScaleButton: [\"value-changed\"],\n GtkScrolledWindow: [\"edge-reached\"],\n GtkSearchEntry: [\"search-changed\"],\n GtkSelectionModel: [\"selection-changed\"],\n GtkSpinButton: [\"value-changed\"],\n GtkSwitch: [\"state-set\"],\n GtkTextBuffer: [\n \"apply-tag\",\n \"begin-user-action\",\n \"changed\",\n \"delete-range\",\n \"end-user-action\",\n \"insert-child-anchor\",\n \"insert-paintable\",\n \"insert-text\",\n \"mark-deleted\",\n \"mark-set\",\n \"modified-changed\",\n \"remove-tag\",\n ],\n GtkToggleButton: [\"toggled\"],\n GtkWidget: [\"state-flags-changed\"],\n};\n\nconst resolveUserEventSignals = (overrides: Record<string, string[]> | undefined): Record<string, string[]> => {\n const resolved: Record<string, string[]> = { ...DEFAULT_USER_EVENT_SIGNALS };\n const overrideEntries = Object.entries(overrides ?? {});\n\n for (const [typeName, signals] of overrideEntries) {\n resolved[typeName] = [...new Set([...(resolved[typeName] ?? []), ...signals])];\n }\n\n return resolved;\n};\n\nexport { resolveUserEventSignals };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["../src/virtual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,sBAAsB,wBAAwB,CAAC;AACrD,QAAA,MAAM,+BAA+B,0BAAgC,CAAC;AAEtE,QAAA,MAAM,kBAAkB,WAAY,cAAc,cAAa,MAAM,GAAG,IAAI,KAAU,MAsBrF,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["../src/virtual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,QAAA,MAAM,sBAAsB,wBAAwB,CAAC;AACrD,QAAA,MAAM,+BAA+B,0BAAgC,CAAC;AAEtE,QAAA,MAAM,kBAAkB,WAAY,cAAc,cAAa,MAAM,GAAG,IAAI,KAAU,MAuBrF,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,CAAC"}
package/dist/virtual.js CHANGED
@@ -16,6 +16,7 @@ const renderConfigModule = (config, localeDir = null) => {
16
16
  `export const localeDir = ${JSON.stringify(localeDir)};`,
17
17
  `export const resourceBasePath = ${JSON.stringify(resourceBasePath(config.applicationId))};`,
18
18
  `export const userEventSignals = ${JSON.stringify(config.userEventSignals)};`,
19
+ `export const future = ${JSON.stringify(config.future)};`,
19
20
  config.elements === null
20
21
  ? `export const elements = ${lazyJson};`
21
22
  : `export const elements = mergeElementConfigs(__elementBehaviors, ${lazyJson});`,
@@ -1 +1 @@
1
- {"version":3,"file":"virt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C;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import type { ResolvedConfig } from \"./config.ts\";\nimport { resourceBasePath } from \"./resource-base-path.ts\";\n\nconst GTKX_CONFIG_VIRTUAL_ID = \"virtual:gtkx-config\";\nconst RESOLVED_GTKX_CONFIG_VIRTUAL_ID = `\\0${GTKX_CONFIG_VIRTUAL_ID}`;\n\nconst renderConfigModule = (config: ResolvedConfig, localeDir: string | null = null): string => {\n const lazyJson = JSON.stringify(Object.fromEntries(config.lazyElements.map((type) => [type, { isLazy: true }])));\n\n const behaviorImports =\n config.elements === null\n ? []\n : [\n 'import { mergeElementConfigs } from \"@gtkx/react/config\";',\n `import __elementBehaviors from ${JSON.stringify(config.elements)};`,\n ];\n\n return [\n ...behaviorImports,\n `export const applicationId = ${JSON.stringify(config.applicationId)};`,\n `export const translationDomain = ${JSON.stringify(config.translationDomain)};`,\n `export const localeDir = ${JSON.stringify(localeDir)};`,\n `export const resourceBasePath = ${JSON.stringify(resourceBasePath(config.applicationId))};`,\n `export const userEventSignals = ${JSON.stringify(config.userEventSignals)};`,\n config.elements === null\n ? `export const elements = ${lazyJson};`\n : `export const elements = mergeElementConfigs(__elementBehaviors, ${lazyJson});`,\n ].join(\"\\n\");\n};\n\nexport { GTKX_CONFIG_VIRTUAL_ID, RESOLVED_GTKX_CONFIG_VIRTUAL_ID, renderConfigModule };\n"]}
1
+ {"version":3,"file":"virtual.js","sourceRoot":"","sources":["../src/virtual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,+BAA+B,GAAG,KAAK,sBAAsB,EAAE,CAAC;AAEtE,MAAM,kBAAkB,GAAG,CAAC,MAAsB,EAAE,SAAS,GAAkB,IAAI,EAAU,EAAE;IAC3F,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjH,MAAM,eAAe,GACjB,MAAM,CAAC,QAAQ,KAAK,IAAI;QACpB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACI,2DAA2D;YAC3D,kCAAkC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG;SACvE,CAAC;IAEZ,OAAO;QACH,GAAG,eAAe;QAClB,gCAAgC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG;QACvE,oCAAoC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG;QAC/E,4BAA4B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG;QACxD,mCAAmC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG;QAC5F,mCAAmC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG;QAC7E,yBAAyB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG;QACzD,MAAM,CAAC,QAAQ,KAAK,IAAI;YACpB,CAAC,CAAC,2BAA2B,QAAQ,GAAG;YACxC,CAAC,CAAC,mEAAmE,QAAQ,IAAI;KACxF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import type { ResolvedConfig } from \"./config.ts\";\nimport { resourceBasePath } from \"./resource-base-path.ts\";\n\nconst GTKX_CONFIG_VIRTUAL_ID = \"virtual:gtkx-config\";\nconst RESOLVED_GTKX_CONFIG_VIRTUAL_ID = `\\0${GTKX_CONFIG_VIRTUAL_ID}`;\n\nconst renderConfigModule = (config: ResolvedConfig, localeDir: string | null = null): string => {\n const lazyJson = JSON.stringify(Object.fromEntries(config.lazyElements.map((type) => [type, { isLazy: true }])));\n\n const behaviorImports =\n config.elements === null\n ? []\n : [\n 'import { mergeElementConfigs } from \"@gtkx/react/config\";',\n `import __elementBehaviors from ${JSON.stringify(config.elements)};`,\n ];\n\n return [\n ...behaviorImports,\n `export const applicationId = ${JSON.stringify(config.applicationId)};`,\n `export const translationDomain = ${JSON.stringify(config.translationDomain)};`,\n `export const localeDir = ${JSON.stringify(localeDir)};`,\n `export const resourceBasePath = ${JSON.stringify(resourceBasePath(config.applicationId))};`,\n `export const userEventSignals = ${JSON.stringify(config.userEventSignals)};`,\n `export const future = ${JSON.stringify(config.future)};`,\n config.elements === null\n ? `export const elements = ${lazyJson};`\n : `export const elements = mergeElementConfigs(__elementBehaviors, ${lazyJson});`,\n ].join(\"\\n\");\n};\n\nexport { GTKX_CONFIG_VIRTUAL_ID, RESOLVED_GTKX_CONFIG_VIRTUAL_ID, renderConfigModule };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/config",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Typed configuration for GTK apps built with GTKX.",
5
5
  "keywords": [
6
6
  "gtkx",
@@ -62,7 +62,7 @@
62
62
  "node": ">=26.7.0"
63
63
  },
64
64
  "dependencies": {
65
- "@gtkx/utils": "^2.0.0",
65
+ "@gtkx/utils": "^2.1.0",
66
66
  "c12": "^3.3.4",
67
67
  "defu": "^6.1.7",
68
68
  "jiti": "^2.7.0",
@@ -64,9 +64,12 @@ const BUILTIN_ELEMENTS: Record<string, ElementConfigOptions> = {
64
64
  ...SINGLE_CHILD_CONFIG,
65
65
  component: internal("createSearchBarComponent"),
66
66
  },
67
- ...forTypes(["GtkHeaderBar", "GtkActionBar"], {
67
+ GtkHeaderBar: {
68
68
  props: internal("GtkHeaderBarProps"),
69
- }),
69
+ },
70
+ GtkActionBar: {
71
+ props: internal("GtkActionBarProps"),
72
+ },
70
73
  GtkMenuButton: {
71
74
  props: internal("GtkMenuButtonProps"),
72
75
  component: internal("createCustomChildrenComponent"),
@@ -114,6 +117,8 @@ const BUILTIN_ELEMENTS: Record<string, ElementConfigOptions> = {
114
117
  },
115
118
  GtkNotebookPage: {
116
119
  isLazy: true,
120
+ props: internal("GtkNotebookPageProps"),
121
+ omittedProps: ["tab"],
117
122
  },
118
123
  GActionGroup: {
119
124
  props: internal("ActionGroupProps"),
@@ -207,7 +212,7 @@ const BUILTIN_ELEMENTS: Record<string, ElementConfigOptions> = {
207
212
  component: internal("createStackComponent"),
208
213
  },
209
214
  GtkNotebook: {
210
- props: internal("ChildrenProps"),
215
+ props: internal("GtkNotebookProps"),
211
216
  },
212
217
  GtkApplication: {
213
218
  acceptedChildTypes: ["GtkWindow"],
@@ -332,6 +337,10 @@ const BUILTIN_ELEMENTS: Record<string, ElementConfigOptions> = {
332
337
  acceptedChildTypes: ["AdwPreferencesPage"],
333
338
  props: internal("ChildrenProps"),
334
339
  },
340
+ AdwPreferencesWindow: {
341
+ acceptedChildTypes: ["AdwPreferencesPage"],
342
+ props: internal("ChildrenProps"),
343
+ },
335
344
  AdwPreferencesGroup: {
336
345
  props: internal("ChildrenProps"),
337
346
  },
@@ -374,4 +383,6 @@ const BUILTIN_ELEMENTS: Record<string, ElementConfigOptions> = {
374
383
 
375
384
  export { SINGLE_CHILD_TYPES, CONTENT_SETTER_TYPES, MENU_ITEM_ATTRIBUTES, BUILTIN_ELEMENTS };
376
385
 
386
+ export { CONTROLLED_PROPS, defaultPropName, type ControlledProp } from "./controlled-props.ts";
387
+
377
388
  export type { ElementConfigOptions, ElementPropsExport, ModuleExport } from "./config.ts";