@aglyn/aglyn 1.0.0-beta.231 → 1.0.0-beta.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/package.json +11 -11
  2. package/src/lib/app-utils/account-acquisition.d.ts +15 -2
  3. package/src/lib/app-utils/account-acquisition.js +20 -1
  4. package/src/lib/app-utils/account-acquisition.js.map +1 -1
  5. package/src/lib/app-utils/artifact-list-queries.d.ts +35 -0
  6. package/src/lib/app-utils/artifact-list-queries.js +203 -0
  7. package/src/lib/app-utils/artifact-list-queries.js.map +1 -0
  8. package/src/lib/app-utils/business-profile.d.ts +171 -0
  9. package/src/lib/app-utils/business-profile.js +277 -0
  10. package/src/lib/app-utils/business-profile.js.map +1 -0
  11. package/src/lib/app-utils/child-contract.d.ts +4 -1
  12. package/src/lib/app-utils/child-contract.js +5 -2
  13. package/src/lib/app-utils/child-contract.js.map +1 -1
  14. package/src/lib/app-utils/console-routes.d.ts +5 -0
  15. package/src/lib/app-utils/console-routes.js +1 -0
  16. package/src/lib/app-utils/console-routes.js.map +1 -1
  17. package/src/lib/app-utils/content-schema-type.d.ts +9 -0
  18. package/src/lib/app-utils/content-schema-type.js +4 -0
  19. package/src/lib/app-utils/content-schema-type.js.map +1 -1
  20. package/src/lib/app-utils/docs-help.generated.d.ts +41 -5
  21. package/src/lib/app-utils/docs-help.generated.js +83 -3
  22. package/src/lib/app-utils/docs-help.generated.js.map +1 -1
  23. package/src/lib/app-utils/docs-index.generated.js +181 -13
  24. package/src/lib/app-utils/docs-index.generated.js.map +1 -1
  25. package/src/lib/app-utils/entry-list-declaration.d.ts +33 -0
  26. package/src/lib/app-utils/entry-list-declaration.js +172 -0
  27. package/src/lib/app-utils/entry-list-declaration.js.map +1 -0
  28. package/src/lib/app-utils/first-version-seed.d.ts +19 -0
  29. package/src/lib/app-utils/first-version-seed.js +53 -0
  30. package/src/lib/app-utils/first-version-seed.js.map +1 -0
  31. package/src/lib/app-utils/local-business.d.ts +8 -0
  32. package/src/lib/app-utils/local-business.js +4 -0
  33. package/src/lib/app-utils/local-business.js.map +1 -1
  34. package/src/lib/app-utils/page-markdown.js +3 -0
  35. package/src/lib/app-utils/page-markdown.js.map +1 -1
  36. package/src/lib/plugin-manager/feature-plugins.d.ts +19 -0
  37. package/src/lib/plugin-manager/feature-plugins.js +8 -0
  38. package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
  39. package/src/lib/plugin-manager/first-party-plugins.generated.js +105 -1
  40. package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
  41. package/src/lib/plugin-manager/plugin-channel-orders.d.ts +262 -0
  42. package/src/lib/plugin-manager/plugin-channel-orders.js +32 -0
  43. package/src/lib/plugin-manager/plugin-channel-orders.js.map +1 -0
  44. package/src/lib/plugin-manager/plugin-product-catalog.d.ts +5 -0
  45. package/src/lib/plugin-manager/plugin-product-catalog.js.map +1 -1
  46. package/src/lib/plugin-manager/plugin-product-writer.d.ts +166 -0
  47. package/src/lib/plugin-manager/plugin-product-writer.js +31 -0
  48. package/src/lib/plugin-manager/plugin-product-writer.js.map +1 -0
  49. package/src/lib/plugin-manager/plugin-theme-presets.d.ts +40 -0
  50. package/src/lib/plugin-manager/plugin-theme-presets.js +44 -0
  51. package/src/lib/plugin-manager/plugin-theme-presets.js.map +1 -0
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { definePluginServiceContract, registerPluginService, resolvePluginServices } from "./plugin-services.js";
17
+ export const PLUGIN_THEME_PRESETS = definePluginServiceContract('core.theme.presets', {
18
+ multiple: true
19
+ });
20
+ /** Registers a plugin's built-in themes for server readers. */ export function registerPluginThemePresets(presets, options) {
21
+ registerPluginService(PLUGIN_THEME_PRESETS, {
22
+ presets
23
+ }, {
24
+ pluginId: options.pluginId
25
+ });
26
+ }
27
+ /**
28
+ * Every built-in theme the server has registered, in registration order, the
29
+ * first preset under an id winning, as the picker lists them.
30
+ */ export function listServerThemePresets() {
31
+ const seen = new Set();
32
+ const out = [];
33
+ for (const entry of resolvePluginServices(PLUGIN_THEME_PRESETS)){
34
+ var _entry_impl_presets;
35
+ for (const preset of (_entry_impl_presets = entry.impl.presets) != null ? _entry_impl_presets : []){
36
+ if (!(preset == null ? void 0 : preset.id) || seen.has(preset.id)) continue;
37
+ seen.add(preset.id);
38
+ out.push(preset);
39
+ }
40
+ }
41
+ return out;
42
+ }
43
+
44
+ //# sourceMappingURL=plugin-theme-presets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../libs/aglyn/src/lib/plugin-manager/plugin-theme-presets.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ConsoleThemePreset } from './feature-plugins'\nimport {\n definePluginServiceContract,\n registerPluginService,\n resolvePluginServices,\n} from './plugin-services'\n\n/**\n * The built-in themes as the console's SERVER reads them (AGL-3660).\n *\n * The theme picker lists presets from the console extensions the theme page\n * loads, which never run in an API process. A server job that starts a site\n * from one of them — the AI site start picks a base theme and layers the\n * site's own look over it as an override, exactly as a person's pick and\n * edits are stored (`theme-library.ts`) — reads the same presets here, each\n * plugin registering its list from its server declarations.\n */\nexport interface PluginThemePresets {\n presets: readonly ConsoleThemePreset[]\n}\n\nexport const PLUGIN_THEME_PRESETS = definePluginServiceContract<PluginThemePresets>(\n 'core.theme.presets',\n { multiple: true },\n)\n\n/** Registers a plugin's built-in themes for server readers. */\nexport function registerPluginThemePresets(\n presets: readonly ConsoleThemePreset[],\n options: { pluginId: string },\n): void {\n registerPluginService(PLUGIN_THEME_PRESETS, { presets }, { pluginId: options.pluginId })\n}\n\n/**\n * Every built-in theme the server has registered, in registration order, the\n * first preset under an id winning, as the picker lists them.\n */\nexport function listServerThemePresets(): ConsoleThemePreset[] {\n const seen = new Set<string>()\n const out: ConsoleThemePreset[] = []\n for (const entry of resolvePluginServices(PLUGIN_THEME_PRESETS)) {\n for (const preset of entry.impl.presets ?? []) {\n if (!preset?.id || seen.has(preset.id)) continue\n seen.add(preset.id)\n out.push(preset)\n }\n }\n return out\n}\n"],"names":["definePluginServiceContract","registerPluginService","resolvePluginServices","PLUGIN_THEME_PRESETS","multiple","registerPluginThemePresets","presets","options","pluginId","listServerThemePresets","seen","Set","out","entry","preset","impl","id","has","add","push"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAGD,SACEA,2BAA2B,EAC3BC,qBAAqB,EACrBC,qBAAqB,QAChB,uBAAmB;AAgB1B,OAAO,MAAMC,uBAAuBH,4BAClC,sBACA;IAAEI,UAAU;AAAK,GAClB;AAED,6DAA6D,GAC7D,OAAO,SAASC,2BACdC,OAAsC,EACtCC,OAA6B;IAE7BN,sBAAsBE,sBAAsB;QAAEG;IAAQ,GAAG;QAAEE,UAAUD,QAAQC,QAAQ;IAAC;AACxF;AAEA;;;CAGC,GACD,OAAO,SAASC;IACd,MAAMC,OAAO,IAAIC;IACjB,MAAMC,MAA4B,EAAE;IACpC,KAAK,MAAMC,SAASX,sBAAsBC,sBAAuB;YAC1CU;QAArB,KAAK,MAAMC,WAAUD,sBAAAA,MAAME,IAAI,CAACT,OAAO,YAAlBO,sBAAsB,EAAE,CAAE;YAC7C,IAAI,EAACC,0BAAAA,OAAQE,EAAE,KAAIN,KAAKO,GAAG,CAACH,OAAOE,EAAE,GAAG;YACxCN,KAAKQ,GAAG,CAACJ,OAAOE,EAAE;YAClBJ,IAAIO,IAAI,CAACL;QACX;IACF;IACA,OAAOF;AACT"}