@aglyn/plugins-ai 1.0.0-beta.269 → 1.0.0-beta.270

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 (40) hide show
  1. package/package.json +17 -17
  2. package/src/lib/components/ai-credits-card.component.d.ts +4 -3
  3. package/src/lib/components/ai-credits-card.component.js +25 -8
  4. package/src/lib/components/ai-credits-card.component.js.map +1 -1
  5. package/src/lib/components/ai-job-links.d.ts +6 -0
  6. package/src/lib/components/ai-job-links.js +9 -0
  7. package/src/lib/components/ai-job-links.js.map +1 -1
  8. package/src/lib/components/ai-products-hub-card.component.d.ts +6 -0
  9. package/src/lib/components/ai-products-hub-card.component.js +21 -6
  10. package/src/lib/components/ai-products-hub-card.component.js.map +1 -1
  11. package/src/lib/components/ai-site-build-page.component.js +3 -2
  12. package/src/lib/components/ai-site-build-page.component.js.map +1 -1
  13. package/src/lib/components/ai-store-finish-card.component.d.ts +14 -3
  14. package/src/lib/components/ai-store-finish-card.component.js +67 -9
  15. package/src/lib/components/ai-store-finish-card.component.js.map +1 -1
  16. package/src/lib/components/assist-build-card.component.js +3 -2
  17. package/src/lib/components/assist-build-card.component.js.map +1 -1
  18. package/src/lib/jobs/ai-job-build-step.d.ts +3 -0
  19. package/src/lib/jobs/ai-job-build-step.js +8 -2
  20. package/src/lib/jobs/ai-job-build-step.js.map +1 -1
  21. package/src/lib/jobs/ai-job-form-step.d.ts +9 -0
  22. package/src/lib/jobs/ai-job-form-step.js +21 -2
  23. package/src/lib/jobs/ai-job-form-step.js.map +1 -1
  24. package/src/lib/jobs/ai-job-page-language.d.ts +22 -11
  25. package/src/lib/jobs/ai-job-page-language.js +31 -1
  26. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  27. package/src/lib/jobs/ai-job-page-step.js +4 -2
  28. package/src/lib/jobs/ai-job-page-step.js.map +1 -1
  29. package/src/lib/jobs/ai-layout-owner-photos.d.ts +57 -0
  30. package/src/lib/jobs/ai-layout-owner-photos.js +110 -0
  31. package/src/lib/jobs/ai-layout-owner-photos.js.map +1 -0
  32. package/src/lib/jobs/ai-layout-stock-photos.d.ts +35 -2
  33. package/src/lib/jobs/ai-layout-stock-photos.js +334 -54
  34. package/src/lib/jobs/ai-layout-stock-photos.js.map +1 -1
  35. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.d.ts +29 -0
  36. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.js +291 -0
  37. package/src/lib/jobs/fixtures/ai-stock-photo-agl3942-recordings.js.map +1 -0
  38. package/src/lib/native-nav.d.ts +26 -0
  39. package/src/lib/native-nav.js +58 -0
  40. package/src/lib/native-nav.js.map +1 -0
@@ -0,0 +1,58 @@
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 { nativeNavIcon, nativeNavRef } from "@aglyn/aglyn/app-utils/native-nav";
17
+ /**
18
+ * AI jobs and AI credits in the native apps' navigation (AGL-3943): the rows this plugin
19
+ * adds to the manifest the shells draw, placed into the core's lists by
20
+ * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the
21
+ * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.
22
+ *
23
+ * Imports only the core's plain nav module, so the native contracts read it.
24
+ */ export const NATIVE_NAV_ROWS = [
25
+ {
26
+ list: 'site',
27
+ group: 'more',
28
+ row: {
29
+ id: 'aiJobs',
30
+ label: 'AI jobs',
31
+ icon: nativeNavIcon('sparkles', 'auto_awesome'),
32
+ screen: 'ai.jobs',
33
+ pluginId: 'ai',
34
+ order: 50,
35
+ // The console lists a site's AI jobs at `/ai-jobs` with no tab: its
36
+ // top bar's AI jobs indicator is the way in.
37
+ console: nativeNavRef('consoleWidget', 'consoleTopBar/ai-jobs-indicator')
38
+ }
39
+ },
40
+ {
41
+ list: 'workspaceSettings',
42
+ group: 'billing',
43
+ row: {
44
+ id: 'aiCredits',
45
+ label: 'AI credits',
46
+ icon: nativeNavIcon('sparkles', 'auto_awesome'),
47
+ screen: 'ai.credits',
48
+ pluginId: 'ai',
49
+ order: 30,
50
+ keywords: [
51
+ 'billing'
52
+ ],
53
+ console: nativeNavRef('consoleWidget', 'orgBillingUsage/ai-credits-meter')
54
+ }
55
+ }
56
+ ];
57
+
58
+ //# sourceMappingURL=native-nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../libs/plugins/ai/src/lib/native-nav.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 {\n nativeNavIcon,\n nativeNavRef,\n type NativeNavContribution,\n} from '@aglyn/aglyn/app-utils/native-nav'\n\n/**\n * AI jobs and AI credits in the native apps' navigation (AGL-3943): the rows this plugin\n * adds to the manifest the shells draw, placed into the core's lists by\n * `order` (`assembleNativeNav`, `generate:native-contracts`). Labels are the\n * console's words, held by `apps/console/specs/native-nav-manifest.spec.ts`.\n *\n * Imports only the core's plain nav module, so the native contracts read it.\n */\n\nexport const NATIVE_NAV_ROWS: readonly NativeNavContribution[] = [\n {\n list: 'site',\n group: 'more',\n row: {\n id: 'aiJobs',\n label: 'AI jobs',\n icon: nativeNavIcon('sparkles', 'auto_awesome'),\n screen: 'ai.jobs',\n pluginId: 'ai',\n order: 50,\n // The console lists a site's AI jobs at `/ai-jobs` with no tab: its\n // top bar's AI jobs indicator is the way in.\n console: nativeNavRef('consoleWidget', 'consoleTopBar/ai-jobs-indicator'),\n },\n },\n {\n list: 'workspaceSettings',\n group: 'billing',\n row: {\n id: 'aiCredits',\n label: 'AI credits',\n icon: nativeNavIcon('sparkles', 'auto_awesome'),\n screen: 'ai.credits',\n pluginId: 'ai',\n order: 30,\n keywords: ['billing'],\n console: nativeNavRef('consoleWidget', 'orgBillingUsage/ai-credits-meter'),\n },\n },\n]\n"],"names":["nativeNavIcon","nativeNavRef","NATIVE_NAV_ROWS","list","group","row","id","label","icon","screen","pluginId","order","console","keywords"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SACEA,aAAa,EACbC,YAAY,QAEP,oCAAmC;AAE1C;;;;;;;CAOC,GAED,OAAO,MAAMC,kBAAoD;IAC/D;QACEC,MAAM;QACNC,OAAO;QACPC,KAAK;YACHC,IAAI;YACJC,OAAO;YACPC,MAAMR,cAAc,YAAY;YAChCS,QAAQ;YACRC,UAAU;YACVC,OAAO;YACP,oEAAoE;YACpE,6CAA6C;YAC7CC,SAASX,aAAa,iBAAiB;QACzC;IACF;IACA;QACEE,MAAM;QACNC,OAAO;QACPC,KAAK;YACHC,IAAI;YACJC,OAAO;YACPC,MAAMR,cAAc,YAAY;YAChCS,QAAQ;YACRC,UAAU;YACVC,OAAO;YACPE,UAAU;gBAAC;aAAU;YACrBD,SAASX,aAAa,iBAAiB;QACzC;IACF;CACD,CAAA"}