@ankhorage/navigator 2.0.1 → 3.0.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.
Files changed (164) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +108 -4
  3. package/dist/cli/commands/catalog.d.ts +4 -0
  4. package/dist/cli/commands/catalog.d.ts.map +1 -0
  5. package/dist/cli/commands/catalog.js +76 -0
  6. package/dist/cli/commands/catalog.js.map +1 -0
  7. package/dist/cli/commands/generate.d.ts +4 -0
  8. package/dist/cli/commands/generate.d.ts.map +1 -0
  9. package/dist/cli/commands/generate.js +55 -0
  10. package/dist/cli/commands/generate.js.map +1 -0
  11. package/dist/cli/commands/plan.d.ts +4 -0
  12. package/dist/cli/commands/plan.d.ts.map +1 -0
  13. package/dist/cli/commands/plan.js +35 -0
  14. package/dist/cli/commands/plan.js.map +1 -0
  15. package/dist/cli/commands/validate.d.ts +4 -0
  16. package/dist/cli/commands/validate.d.ts.map +1 -0
  17. package/dist/cli/commands/validate.js +63 -0
  18. package/dist/cli/commands/validate.js.map +1 -0
  19. package/dist/cli/commands/verify.d.ts +4 -0
  20. package/dist/cli/commands/verify.d.ts.map +1 -0
  21. package/dist/cli/commands/verify.js +51 -0
  22. package/dist/cli/commands/verify.js.map +1 -0
  23. package/dist/cli/createCliProvider.d.ts +20 -0
  24. package/dist/cli/createCliProvider.d.ts.map +1 -0
  25. package/dist/cli/createCliProvider.js +60 -0
  26. package/dist/cli/createCliProvider.js.map +1 -0
  27. package/dist/features/catalog/adapters/inbound/getNavigatorCatalog.d.ts +4 -0
  28. package/dist/features/catalog/adapters/inbound/getNavigatorCatalog.d.ts.map +1 -0
  29. package/dist/features/catalog/adapters/inbound/getNavigatorCatalog.js +11 -0
  30. package/dist/features/catalog/adapters/inbound/getNavigatorCatalog.js.map +1 -0
  31. package/dist/features/catalog/domain/createNavigatorCatalog.d.ts +10 -0
  32. package/dist/features/catalog/domain/createNavigatorCatalog.d.ts.map +1 -0
  33. package/dist/features/catalog/domain/createNavigatorCatalog.js +259 -0
  34. package/dist/features/catalog/domain/createNavigatorCatalog.js.map +1 -0
  35. package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.d.ts.map +1 -1
  36. package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.js +4 -3
  37. package/dist/features/custom/application/resolveCustomNavigatorAdapterPlan.js.map +1 -1
  38. package/dist/features/custom/domain/addCustomNavigatorDiagnostics.d.ts.map +1 -1
  39. package/dist/features/custom/domain/addCustomNavigatorDiagnostics.js +4 -2
  40. package/dist/features/custom/domain/addCustomNavigatorDiagnostics.js.map +1 -1
  41. package/dist/features/split-view/application/resolveSplitViewAdapterPlan.d.ts.map +1 -1
  42. package/dist/features/split-view/application/resolveSplitViewAdapterPlan.js +6 -1
  43. package/dist/features/split-view/application/resolveSplitViewAdapterPlan.js.map +1 -1
  44. package/dist/features/split-view/domain/addSplitViewDiagnostics.d.ts +1 -1
  45. package/dist/features/split-view/domain/addSplitViewDiagnostics.d.ts.map +1 -1
  46. package/dist/features/split-view/domain/addSplitViewDiagnostics.js +7 -14
  47. package/dist/features/split-view/domain/addSplitViewDiagnostics.js.map +1 -1
  48. package/dist/features/stack/application/createStackAdapter.d.ts.map +1 -1
  49. package/dist/features/stack/application/createStackAdapter.js +46 -30
  50. package/dist/features/stack/application/createStackAdapter.js.map +1 -1
  51. package/dist/features/stack/domain/addExperimentalStackDiagnostics.d.ts.map +1 -1
  52. package/dist/features/stack/domain/addExperimentalStackDiagnostics.js +12 -2
  53. package/dist/features/stack/domain/addExperimentalStackDiagnostics.js.map +1 -1
  54. package/dist/features/stack/domain/addStackAdapterDiagnostics.d.ts.map +1 -1
  55. package/dist/features/stack/domain/addStackAdapterDiagnostics.js +5 -2
  56. package/dist/features/stack/domain/addStackAdapterDiagnostics.js.map +1 -1
  57. package/dist/features/tabs/adapters/inbound/{CustomTabsLayout.d.ts → HeadlessTabsLayout.d.ts} +12 -12
  58. package/dist/features/tabs/adapters/inbound/HeadlessTabsLayout.d.ts.map +1 -0
  59. package/dist/features/tabs/adapters/inbound/{CustomTabsLayout.js → HeadlessTabsLayout.js} +2 -2
  60. package/dist/features/tabs/adapters/inbound/HeadlessTabsLayout.js.map +1 -0
  61. package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.js +17 -14
  62. package/dist/features/tabs/adapters/outbound/generateTabsLayoutFile.js.map +1 -1
  63. package/dist/features/tabs/application/createTabsAdapter.d.ts.map +1 -1
  64. package/dist/features/tabs/application/createTabsAdapter.js +9 -4
  65. package/dist/features/tabs/application/createTabsAdapter.js.map +1 -1
  66. package/dist/features/tabs/application/resolveTabsNavigatorPlan.js +12 -12
  67. package/dist/features/tabs/application/resolveTabsNavigatorPlan.js.map +1 -1
  68. package/dist/features/tabs/domain/addTabsAdapterDiagnostics.d.ts.map +1 -1
  69. package/dist/features/tabs/domain/addTabsAdapterDiagnostics.js +12 -9
  70. package/dist/features/tabs/domain/addTabsAdapterDiagnostics.js.map +1 -1
  71. package/dist/features/tabs/domain/resolveHeadlessTabsPresentation.d.ts +4 -0
  72. package/dist/features/tabs/domain/resolveHeadlessTabsPresentation.d.ts.map +1 -0
  73. package/dist/features/tabs/domain/{resolveCustomTabsPresentation.js → resolveHeadlessTabsPresentation.js} +3 -3
  74. package/dist/features/tabs/domain/resolveHeadlessTabsPresentation.js.map +1 -0
  75. package/dist/features/tabs/tabs.d.ts +1 -1
  76. package/dist/features/tabs/tabs.d.ts.map +1 -1
  77. package/dist/features/tabs/tabs.js +1 -1
  78. package/dist/features/tabs/tabs.js.map +1 -1
  79. package/dist/navigator.d.ts +8 -2
  80. package/dist/navigator.d.ts.map +1 -1
  81. package/dist/navigator.js +7 -2
  82. package/dist/navigator.js.map +1 -1
  83. package/dist/types/navigatorCli.d.ts +25 -0
  84. package/dist/types/navigatorCli.d.ts.map +1 -0
  85. package/dist/types/navigatorCli.js +2 -0
  86. package/dist/types/navigatorCli.js.map +1 -0
  87. package/dist/types/navigatorVerification.d.ts +13 -0
  88. package/dist/types/navigatorVerification.d.ts.map +1 -0
  89. package/dist/types/navigatorVerification.js +2 -0
  90. package/dist/types/navigatorVerification.js.map +1 -0
  91. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.d.ts +4 -100
  92. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.d.ts.map +1 -1
  93. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.js +6 -80
  94. package/dist/utils/NAVIGATOR_PACKAGE_METADATA.js.map +1 -1
  95. package/dist/utils/NAVIGATOR_ROUTER_POLICY.d.ts +9 -0
  96. package/dist/utils/NAVIGATOR_ROUTER_POLICY.d.ts.map +1 -0
  97. package/dist/utils/NAVIGATOR_ROUTER_POLICY.js +9 -0
  98. package/dist/utils/NAVIGATOR_ROUTER_POLICY.js.map +1 -0
  99. package/dist/utils/assertNavigatorCliOptions.d.ts +4 -0
  100. package/dist/utils/assertNavigatorCliOptions.d.ts.map +1 -0
  101. package/dist/utils/assertNavigatorCliOptions.js +46 -0
  102. package/dist/utils/assertNavigatorCliOptions.js.map +1 -0
  103. package/dist/utils/createNavigatorPlan.d.ts.map +1 -1
  104. package/dist/utils/createNavigatorPlan.js +46 -6
  105. package/dist/utils/createNavigatorPlan.js.map +1 -1
  106. package/dist/utils/generateNavigator.d.ts +4 -0
  107. package/dist/utils/generateNavigator.d.ts.map +1 -0
  108. package/dist/utils/{generateNavigatorFiles.js → generateNavigator.js} +33 -35
  109. package/dist/utils/generateNavigator.js.map +1 -0
  110. package/dist/utils/isNavigatorGenerationBindings.d.ts +4 -0
  111. package/dist/utils/isNavigatorGenerationBindings.d.ts.map +1 -0
  112. package/dist/utils/isNavigatorGenerationBindings.js +32 -0
  113. package/dist/utils/isNavigatorGenerationBindings.js.map +1 -0
  114. package/dist/utils/loadCustomNavigatorRegistryAsync.d.ts +4 -0
  115. package/dist/utils/loadCustomNavigatorRegistryAsync.d.ts.map +1 -0
  116. package/dist/utils/loadCustomNavigatorRegistryAsync.js +21 -0
  117. package/dist/utils/loadCustomNavigatorRegistryAsync.js.map +1 -0
  118. package/dist/utils/loadNavigatorCliInputAsync.d.ts +12 -0
  119. package/dist/utils/loadNavigatorCliInputAsync.d.ts.map +1 -0
  120. package/dist/utils/loadNavigatorCliInputAsync.js +52 -0
  121. package/dist/utils/loadNavigatorCliInputAsync.js.map +1 -0
  122. package/dist/utils/parseNavigatorCliOptions.d.ts +4 -0
  123. package/dist/utils/parseNavigatorCliOptions.d.ts.map +1 -0
  124. package/dist/utils/parseNavigatorCliOptions.js +73 -0
  125. package/dist/utils/parseNavigatorCliOptions.js.map +1 -0
  126. package/dist/utils/readNavigatorCliJsonAsync.d.ts +3 -0
  127. package/dist/utils/readNavigatorCliJsonAsync.d.ts.map +1 -0
  128. package/dist/utils/readNavigatorCliJsonAsync.js +8 -0
  129. package/dist/utils/readNavigatorCliJsonAsync.js.map +1 -0
  130. package/dist/utils/reportNavigatorCliResult.d.ts +5 -0
  131. package/dist/utils/reportNavigatorCliResult.d.ts.map +1 -0
  132. package/dist/utils/reportNavigatorCliResult.js +20 -0
  133. package/dist/utils/reportNavigatorCliResult.js.map +1 -0
  134. package/dist/utils/resolveNavigatorDependencies.d.ts +4 -0
  135. package/dist/utils/resolveNavigatorDependencies.d.ts.map +1 -0
  136. package/dist/utils/resolveNavigatorDependencies.js +64 -0
  137. package/dist/utils/resolveNavigatorDependencies.js.map +1 -0
  138. package/dist/utils/resolveNavigatorPreset.js +6 -6
  139. package/dist/utils/resolveNavigatorPreset.js.map +1 -1
  140. package/dist/utils/validateNavigator.d.ts +4 -0
  141. package/dist/utils/validateNavigator.d.ts.map +1 -0
  142. package/dist/utils/validateNavigator.js +22 -0
  143. package/dist/utils/validateNavigator.js.map +1 -0
  144. package/dist/utils/validateNavigatorBindings.d.ts +4 -0
  145. package/dist/utils/validateNavigatorBindings.d.ts.map +1 -0
  146. package/dist/utils/validateNavigatorBindings.js +105 -0
  147. package/dist/utils/validateNavigatorBindings.js.map +1 -0
  148. package/dist/utils/verifyNavigator.d.ts +5 -0
  149. package/dist/utils/verifyNavigator.d.ts.map +1 -0
  150. package/dist/utils/verifyNavigator.js +55 -0
  151. package/dist/utils/verifyNavigator.js.map +1 -0
  152. package/dist/utils/writeNavigatorGeneratedFilesAsync.d.ts +4 -0
  153. package/dist/utils/writeNavigatorGeneratedFilesAsync.d.ts.map +1 -0
  154. package/dist/utils/writeNavigatorGeneratedFilesAsync.js +25 -0
  155. package/dist/utils/writeNavigatorGeneratedFilesAsync.js.map +1 -0
  156. package/package.json +36 -5
  157. package/dist/features/tabs/adapters/inbound/CustomTabsLayout.d.ts.map +0 -1
  158. package/dist/features/tabs/adapters/inbound/CustomTabsLayout.js.map +0 -1
  159. package/dist/features/tabs/domain/resolveCustomTabsPresentation.d.ts +0 -4
  160. package/dist/features/tabs/domain/resolveCustomTabsPresentation.d.ts.map +0 -1
  161. package/dist/features/tabs/domain/resolveCustomTabsPresentation.js.map +0 -1
  162. package/dist/utils/generateNavigatorFiles.d.ts +0 -4
  163. package/dist/utils/generateNavigatorFiles.d.ts.map +0 -1
  164. package/dist/utils/generateNavigatorFiles.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @ankhorage/navigator
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - aad62a1: Add the standalone Catalog → Validate → Plan → Generate → Verify library and Ankh CLI workflow with package-owned capability metadata, structured dependency and diagnostic results, and explicit verification layers.
8
+
9
+ Adopt the Contracts 12 Navigator taxonomy: remove Navigator-owned flows, rename the former custom Tabs implementation to headless, keep custom Tabs presentation and registered custom navigator topology distinct, and rename root-stack presets to their structural stack forms without compatibility aliases.
10
+
11
+ ## 2.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - a1a3549: Generate Prettier-stable multiline Native Tabs vector icons for long icon names.
16
+
3
17
  ## 2.0.1
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -3,9 +3,112 @@
3
3
 
4
4
  # NAVIGATOR
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v2.0.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v2.0.2](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
- Standalone Navigator capability with topology configured independently from platform implementation and visual presentation. Adaptive tabs provide native and responsive web adapters; experimental Stack and Split View stay testing-only with validated upstream fallbacks.
8
+ Standalone manifest-driven Navigator capability for cataloging, validating, planning, generating, and verifying Expo Router navigation.
9
+
10
+ ## Usage
11
+
12
+ ### Catalog → Validate → Plan → Generate → Verify
13
+
14
+ Navigator consumes only an `AppNavigatorManifest`, narrow module bindings, and target context.
15
+ It never needs the complete `AppManifest`, themes, secrets, infrastructure, deployment data, or
16
+ Studio state. `@ankhorage/contracts/navigator` owns structural parsing; Navigator owns semantic
17
+ target validation, capability metadata, planning, generation, and Navigator-specific evidence.
18
+
19
+ The taxonomy stays orthogonal:
20
+
21
+ | Dimension | Examples |
22
+ | -------------- | ---------------------------------------------------------------------- |
23
+ | Topology | Slot, Stack, Tabs, Drawer, Split View, registered Custom |
24
+ | Implementation | native, JavaScript, headless, experimental |
25
+ | Presentation | bottom, top, rail, sidebar, adaptive, custom, two-column, three-column |
26
+ | Preset | `drawer`, `stack-tabs`, `stack-tabs-stack`, `drawer-tabs-stack` |
27
+
28
+ Tabs are always Tabs; top and bottom are presentations. `drawer` is a complete root preset with
29
+ direct routes. Presets resolve to ordinary recursive manifest input. Navigator has no flow field:
30
+ onboarding, survey, setup, checkout, and authentication are app-owned routes, nested navigators,
31
+ guards, and state. For example, `stack-tabs-stack` can represent a neutral pre-main sequence
32
+ followed by Tabs whose branches own Stacks without encoding application semantics.
33
+
34
+ The programmatic example below returns stable relative files and contents, dependency
35
+ requirements, diagnostics, support, the resolved plan, and capability IDs. It performs no writes.
36
+ To materialize the same contract into an Expo app, save the manifest and bindings as JSON and run:
37
+
38
+ ```sh
39
+ ankh navigator catalog
40
+ ankh navigator validate --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION"
41
+ ankh navigator plan --manifest navigator.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION" --json
42
+ ankh navigator generate --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION" --target ./my-app
43
+ ankh navigator verify --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION"
44
+ bun --cwd ./my-app expo start
45
+ ```
46
+
47
+ Human-readable output is the default; `--json` emits the stable versioned envelope. Generation
48
+ requires an explicit target. Custom navigator registries are executable consumer modules passed
49
+ with `--custom-navigators`; screen, guard, icon-resolver, and custom Tabs-presentation bindings
50
+ remain narrow JSON module/symbol records.
51
+
52
+ Capability metadata separates `support`, `stability`, and each verification layer. Experimental
53
+ Stack and iOS Split View are testing-only. A non-iOS Slot fallback is explicitly not Split View.
54
+ Install, export, browser, simulator, and device evidence remains unverified until the standalone
55
+ example acceptance layer records it; planning or compilation never promotes those claims.
56
+
57
+ Studio and future composers read `getNavigatorCatalog()`, author `manifest.navigator`, and invoke
58
+ this same lifecycle. They do not own a second capability table.
59
+
60
+ Source: `docs/readme-usage.ts`
61
+
62
+ ```ts
63
+ import type {
64
+ AppNavigatorManifest,
65
+ NavigatorGenerationBindings,
66
+ } from '@ankhorage/contracts/navigator';
67
+ import expoRouterPackage from 'expo-router/package.json';
68
+
69
+ import {
70
+ createNavigatorPlan,
71
+ generateNavigator,
72
+ getNavigatorCatalog,
73
+ validateNavigator,
74
+ verifyNavigator,
75
+ } from '@ankhorage/navigator';
76
+
77
+ const manifest = {
78
+ type: 'drawer',
79
+ initialRouteName: 'index',
80
+ routes: [
81
+ { name: 'index', label: 'Home', screenId: 'home' },
82
+ { name: 'settings', label: 'Settings', screenId: 'settings' },
83
+ ],
84
+ } as const satisfies AppNavigatorManifest;
85
+
86
+ const bindings = {
87
+ screens: {
88
+ home: { module: '@/screens/HomeScreen', exportName: 'HomeScreen' },
89
+ settings: { module: '@/screens/SettingsScreen', exportName: 'SettingsScreen' },
90
+ },
91
+ guards: {},
92
+ } as const satisfies NavigatorGenerationBindings;
93
+
94
+ const target = {
95
+ platform: 'web',
96
+ expoRouterVersion: expoRouterPackage.version,
97
+ } as const;
98
+
99
+ const diagnostics = validateNavigator(manifest, bindings, target);
100
+ const plan = createNavigatorPlan(manifest, target);
101
+ const generation = generateNavigator(plan, bindings);
102
+ const verification = verifyNavigator(plan, bindings);
103
+
104
+ console.log({
105
+ catalog: getNavigatorCatalog(),
106
+ diagnostics,
107
+ plan,
108
+ generation,
109
+ verification,
110
+ });
111
+ ```
9
112
 
10
113
  ## Generated documentation
11
114
 
@@ -15,7 +118,8 @@ Standalone Navigator capability with topology configured independently from plat
15
118
  - [Architecture overview](././paradox/diagrams/architecture-overview.mmd)
16
119
  - [Module relationships](././paradox/diagrams/module-relationships.mmd)
17
120
  - [Export graph](././paradox/diagrams/export-graph.mmd)
18
- - [CustomTabsLayout sequence](././paradox/diagrams/sequences/custom-tabs-layout.mmd)
19
121
  - [defineCustomNavigatorRegistry sequence](././paradox/diagrams/sequences/define-custom-navigator-registry.mmd)
20
- - [resolveCustomTabsPresentation sequence](././paradox/diagrams/sequences/resolve-custom-tabs-presentation.mmd)
122
+ - [HeadlessTabsLayout sequence](././paradox/diagrams/sequences/headless-tabs-layout.mmd)
123
+ - [isNavigatorGenerationBindings sequence](././paradox/diagrams/sequences/is-navigator-generation-bindings.mmd)
124
+ - [resolveHeadlessTabsPresentation sequence](././paradox/diagrams/sequences/resolve-headless-tabs-presentation.mmd)
21
125
  - [resolveTabsNavigatorPlan sequence](././paradox/diagrams/sequences/resolve-tabs-navigator-plan.mmd)
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCliExecution, NavigatorCliRunResult } from '../../types/navigatorCli';
2
+ /*** List or inspect the package-owned capability and preset catalog. */
3
+ export declare function catalog(input: NavigatorCliExecution): NavigatorCliRunResult;
4
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/catalog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAK7F,wEAAwE;AACxE,wBAAgB,OAAO,CAAC,KAAK,EAAE,qBAAqB,GAAG,qBAAqB,CAiB3E"}
@@ -0,0 +1,76 @@
1
+ import { getNavigatorCatalog } from '../../features/catalog/adapters/inbound/getNavigatorCatalog';
2
+ import { assertNavigatorCliOptions } from '../../utils/assertNavigatorCliOptions';
3
+ import { parseNavigatorCliOptions } from '../../utils/parseNavigatorCliOptions';
4
+ import { reportNavigatorCliResult } from '../../utils/reportNavigatorCliResult';
5
+ /*** List or inspect the package-owned capability and preset catalog. */
6
+ export function catalog(input) {
7
+ try {
8
+ const options = parseNavigatorCliOptions(input.argv);
9
+ assertNavigatorCliOptions(options, [], ['id', 'kind']);
10
+ const catalog = getNavigatorCatalog();
11
+ const selection = selectCatalog(catalog, options.id, options.kind);
12
+ return reportNavigatorCliResult(input, options.format, 'navigator.catalog', selection.data, selection.diagnostics, renderCatalog(selection.data));
13
+ }
14
+ catch (error) {
15
+ return reportInputFailure(input, error);
16
+ }
17
+ }
18
+ /*** Select an unambiguous catalog entry or a filtered listing. */
19
+ function selectCatalog(catalog, id, kind) {
20
+ const capabilities = catalog.capabilities.filter((entry) => entry.id === id);
21
+ const presets = catalog.presets.filter((entry) => entry.id === id);
22
+ const matches = kind === 'capability'
23
+ ? capabilities
24
+ : kind === 'preset'
25
+ ? presets
26
+ : [...capabilities, ...presets];
27
+ const listing = kind === 'capability' ? catalog.capabilities : kind === 'preset' ? catalog.presets : catalog;
28
+ if (id === undefined)
29
+ return { data: listing, diagnostics: [] };
30
+ if (matches.length === 1)
31
+ return { data: matches[0], diagnostics: [] };
32
+ const ambiguous = matches.length > 1;
33
+ return {
34
+ data: undefined,
35
+ diagnostics: [
36
+ {
37
+ code: ambiguous ? 'ambiguous-catalog-entry' : 'unknown-catalog-entry',
38
+ severity: 'error',
39
+ path: '/id',
40
+ message: ambiguous
41
+ ? `Catalog id ${JSON.stringify(id)} names both a capability and a preset; add --kind.`
42
+ : `No capability or preset is registered as ${JSON.stringify(id)}.`,
43
+ },
44
+ ],
45
+ };
46
+ }
47
+ /*** Render compact human catalog output without creating a second metadata table. */
48
+ function renderCatalog(value) {
49
+ if (value === undefined)
50
+ return [];
51
+ if (typeof value !== 'object' || value === null)
52
+ return [JSON.stringify(value)];
53
+ if ('capabilities' in value && 'presets' in value) {
54
+ const catalog = getNavigatorCatalog();
55
+ return [
56
+ 'Navigator capabilities',
57
+ ...catalog.capabilities.map(({ id, targets }) => `- ${id}: ${targets.map(({ platform, support }) => `${platform}=${support}`).join(', ')}`),
58
+ 'Navigator presets',
59
+ ...catalog.presets.map(({ id, description }) => `- ${id}: ${description}`),
60
+ ];
61
+ }
62
+ return [JSON.stringify(value, null, 2)];
63
+ }
64
+ /*** Report deterministic option and input failures. */
65
+ function reportInputFailure(input, error) {
66
+ const format = input.argv.includes('--json') ? 'json' : 'human';
67
+ return reportNavigatorCliResult(input, format, 'navigator.catalog', null, [
68
+ {
69
+ code: 'invalid-cli-input',
70
+ severity: 'error',
71
+ path: '',
72
+ message: error instanceof Error ? error.message : 'Invalid catalog input.',
73
+ },
74
+ ], [], true);
75
+ }
76
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/cli/commands/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6DAA6D,CAAC;AAElG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,wEAAwE;AACxE,MAAM,UAAU,OAAO,CAAC,KAA4B;IAClD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrD,yBAAyB,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,MAAM,SAAS,GAAG,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QACnE,OAAO,wBAAwB,CAC7B,KAAK,EACL,OAAO,CAAC,MAAM,EACd,mBAAmB,EACnB,SAAS,CAAC,IAAI,EACd,SAAS,CAAC,WAAW,EACrB,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,CAC9B,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAED,kEAAkE;AAClE,SAAS,aAAa,CACpB,OAA+C,EAC/C,EAAsB,EACtB,IAAyC;IAEzC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAA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,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;SAC3E;KACF,EACD,EAAE,EACF,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCliExecution, NavigatorCliRunResult } from '../../types/navigatorCli';
2
+ /*** Generate one structured Navigator file set and write it below an explicit target. */
3
+ export declare function generate(input: NavigatorCliExecution): Promise<NavigatorCliRunResult>;
4
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/generate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAS7F,yFAAyF;AACzF,wBAAsB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4C3F"}
@@ -0,0 +1,55 @@
1
+ import { assertNavigatorCliOptions } from '../../utils/assertNavigatorCliOptions';
2
+ import { createNavigatorPlan } from '../../utils/createNavigatorPlan';
3
+ import { generateNavigator } from '../../utils/generateNavigator';
4
+ import { loadNavigatorCliInputAsync } from '../../utils/loadNavigatorCliInputAsync';
5
+ import { parseNavigatorCliOptions } from '../../utils/parseNavigatorCliOptions';
6
+ import { reportNavigatorCliResult } from '../../utils/reportNavigatorCliResult';
7
+ import { writeNavigatorGeneratedFilesAsync } from '../../utils/writeNavigatorGeneratedFilesAsync';
8
+ /*** Generate one structured Navigator file set and write it below an explicit target. */
9
+ export async function generate(input) {
10
+ try {
11
+ const options = parseNavigatorCliOptions(input.argv);
12
+ assertNavigatorCliOptions(options, ['manifestPath', 'bindingsPath', 'targetDirectory', 'platform', 'expoRouterVersion'], [
13
+ 'manifestPath',
14
+ 'bindingsPath',
15
+ 'customNavigatorsPath',
16
+ 'targetDirectory',
17
+ 'platform',
18
+ 'expoRouterVersion',
19
+ 'responsiveSize',
20
+ 'rootDirectory',
21
+ 'includeScreenFiles',
22
+ ]);
23
+ const loaded = await loadNavigatorCliInputAsync(options, input.cwd, true);
24
+ if (loaded.bindings === undefined || options.targetDirectory === undefined) {
25
+ throw new Error('Bindings and target directory are required for generation.');
26
+ }
27
+ const plan = createNavigatorPlan(loaded.manifest, loaded.planOptions);
28
+ const result = generateNavigator(plan, loaded.bindings, loaded.generationOptions);
29
+ const hasErrors = result.diagnostics.some(({ severity }) => severity === 'error');
30
+ const written = hasErrors
31
+ ? []
32
+ : await writeNavigatorGeneratedFilesAsync(options.targetDirectory, input.cwd, result.files);
33
+ return reportNavigatorCliResult(input, options.format, 'navigator.generate', { ...result, written }, result.diagnostics, [
34
+ `Support: ${result.support}`,
35
+ `Capabilities: ${result.capabilityIds.join(', ') || 'none'}`,
36
+ `Generated files: ${result.files.length}`,
37
+ `Written files: ${written.length}`,
38
+ ]);
39
+ }
40
+ catch (error) {
41
+ return reportInputFailure(input, error);
42
+ }
43
+ }
44
+ /*** Report deterministic Generate-stage input or write failures. */
45
+ function reportInputFailure(input, error) {
46
+ return reportNavigatorCliResult(input, input.argv.includes('--json') ? 'json' : 'human', 'navigator.generate', null, [
47
+ {
48
+ code: 'invalid-cli-input',
49
+ severity: 'error',
50
+ path: '',
51
+ message: error instanceof Error ? error.message : 'Invalid generation input.',
52
+ },
53
+ ], [], true);
54
+ }
55
+ //# sourceMappingURL=generate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/cli/commands/generate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,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G,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9F,OAAO,wBAAwB,CAC7B,KAAK,EACL,OAAO,CAAC,MAAM,EACd,oBAAoB,EACpB,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,EACtB,MAAM,CAAC,WAAW,EAClB;YACE,YAAY,MAAM,CAAC,OAAO,EAAE;YAC5B,iBAAiB,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,EAAE;YAC5D,oBAAoB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE;YACzC,kBAAkB,OAAO,CAAC,MAAM,EAAE;SACnC,CACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAED,oEAAoE;AACpE,SAAS,kBAAkB,CAAC,KAA4B,EAAE,KAAc;IACtE,OAAO,wBAAwB,CAC7B,KAAK,EACL,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAChD,oBAAoB,EACpB,IAAI,EACJ;QACE;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,2BAA2B;SAC9E;KACF,EACD,EAAE,EACF,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCliExecution, NavigatorCliRunResult } from '../../types/navigatorCli';
2
+ /*** Resolve and print one deterministic Navigator plan and its dependency requirements. */
3
+ export declare function plan(input: NavigatorCliExecution): Promise<NavigatorCliRunResult>;
4
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAO7F,2FAA2F;AAC3F,wBAAsB,IAAI,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BvF"}
@@ -0,0 +1,35 @@
1
+ import { assertNavigatorCliOptions } from '../../utils/assertNavigatorCliOptions';
2
+ import { createNavigatorPlan } from '../../utils/createNavigatorPlan';
3
+ import { loadNavigatorCliInputAsync } from '../../utils/loadNavigatorCliInputAsync';
4
+ import { parseNavigatorCliOptions } from '../../utils/parseNavigatorCliOptions';
5
+ import { reportNavigatorCliResult } from '../../utils/reportNavigatorCliResult';
6
+ /*** Resolve and print one deterministic Navigator plan and its dependency requirements. */
7
+ export async function plan(input) {
8
+ try {
9
+ const options = parseNavigatorCliOptions(input.argv);
10
+ assertNavigatorCliOptions(options, ['manifestPath', 'platform', 'expoRouterVersion'], ['manifestPath', 'customNavigatorsPath', 'platform', 'expoRouterVersion', 'responsiveSize']);
11
+ const loaded = await loadNavigatorCliInputAsync(options, input.cwd, false);
12
+ const plan = createNavigatorPlan(loaded.manifest, loaded.planOptions);
13
+ return reportNavigatorCliResult(input, options.format, 'navigator.plan', plan, plan.diagnostics, [
14
+ `Support: ${plan.support}`,
15
+ `Capabilities: ${plan.capabilityIds.join(', ') || 'none'}`,
16
+ 'Dependencies:',
17
+ ...plan.dependencies.map(({ packageName, versionRange }) => `- ${packageName}: ${versionRange}`),
18
+ ]);
19
+ }
20
+ catch (error) {
21
+ return reportInputFailure(input, error);
22
+ }
23
+ }
24
+ /*** Report deterministic Plan-stage input failures. */
25
+ function reportInputFailure(input, error) {
26
+ return reportNavigatorCliResult(input, input.argv.includes('--json') ? 'json' : 'human', 'navigator.plan', null, [
27
+ {
28
+ code: 'invalid-cli-input',
29
+ severity: 'error',
30
+ path: '',
31
+ message: error instanceof Error ? error.message : 'Invalid planning input.',
32
+ },
33
+ ], [], true);
34
+ }
35
+ //# sourceMappingURL=plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/cli/commands/plan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,KAA4B;IACrD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrD,yBAAyB,CACvB,OAAO,EACP,CAAC,cAAc,EAAE,UAAU,EAAE,mBAAmB,CAAC,EACjD,CAAC,cAAc,EAAE,sBAAsB,EAAE,UAAU,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,CAC5F,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC3E,MAAM,IAAI,GAAG,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACtE,OAAO,wBAAwB,CAC7B,KAAK,EACL,OAAO,CAAC,MAAM,EACd,gBAAgB,EAChB,IAAI,EACJ,IAAI,CAAC,WAAW,EAChB;YACE,YAAY,IAAI,CAAC,OAAO,EAAE;YAC1B,iBAAiB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,MAAM,EAAE;YAC1D,eAAe;YACf,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CACtB,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,KAAK,WAAW,KAAK,YAAY,EAAE,CACvE;SACF,CACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAED,uDAAuD;AACvD,SAAS,kBAAkB,CAAC,KAA4B,EAAE,KAAc;IACtE,OAAO,wBAAwB,CAC7B,KAAK,EACL,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAChD,gBAAgB,EAChB,IAAI,EACJ;QACE;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB;SAC5E;KACF,EACD,EAAE,EACF,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCliExecution, NavigatorCliRunResult } from '../../types/navigatorCli';
2
+ /*** Structurally and semantically validate a manifest and narrow bindings without writes. */
3
+ export declare function validate(input: NavigatorCliExecution): Promise<NavigatorCliRunResult>;
4
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/validate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAQ7F,6FAA6F;AAC7F,wBAAsB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAuC3F"}
@@ -0,0 +1,63 @@
1
+ import { assertNavigatorCliOptions } from '../../utils/assertNavigatorCliOptions';
2
+ import { loadCustomNavigatorRegistryAsync } from '../../utils/loadCustomNavigatorRegistryAsync';
3
+ import { parseNavigatorCliOptions } from '../../utils/parseNavigatorCliOptions';
4
+ import { readNavigatorCliJsonAsync } from '../../utils/readNavigatorCliJsonAsync';
5
+ import { reportNavigatorCliResult } from '../../utils/reportNavigatorCliResult';
6
+ import { validateNavigator } from '../../utils/validateNavigator';
7
+ /*** Structurally and semantically validate a manifest and narrow bindings without writes. */
8
+ export async function validate(input) {
9
+ try {
10
+ const options = parseNavigatorCliOptions(input.argv);
11
+ assertNavigatorCliOptions(options, ['manifestPath', 'bindingsPath', 'platform', 'expoRouterVersion'], [
12
+ 'manifestPath',
13
+ 'bindingsPath',
14
+ 'customNavigatorsPath',
15
+ 'platform',
16
+ 'expoRouterVersion',
17
+ 'responsiveSize',
18
+ 'rootDirectory',
19
+ 'includeScreenFiles',
20
+ ]);
21
+ const { manifestPath, bindingsPath } = options;
22
+ if (manifestPath === undefined || bindingsPath === undefined) {
23
+ throw new Error('Manifest and bindings paths are required for validation.');
24
+ }
25
+ const manifest = await readNavigatorCliJsonAsync(manifestPath, input.cwd);
26
+ const bindings = await readNavigatorCliJsonAsync(bindingsPath, input.cwd);
27
+ const planOptions = await createPlanOptions(options, input.cwd);
28
+ const diagnostics = validateNavigator(manifest, bindings, planOptions, {
29
+ includeScreenFiles: options.includeScreenFiles,
30
+ ...(options.rootDirectory === undefined ? {} : { rootDirectory: options.rootDirectory }),
31
+ });
32
+ return reportNavigatorCliResult(input, options.format, 'navigator.validate', { valid: !diagnostics.some(({ severity }) => severity === 'error') }, diagnostics, [diagnostics.length === 0 ? 'Navigator input is valid.' : 'Navigator input has diagnostics.']);
33
+ }
34
+ catch (error) {
35
+ return reportInputFailure(input, error);
36
+ }
37
+ }
38
+ /*** Resolve target context and an optional executable custom-navigator registry. */
39
+ async function createPlanOptions(options, cwd) {
40
+ const { platform, expoRouterVersion } = options;
41
+ if (platform === undefined || expoRouterVersion === undefined) {
42
+ throw new Error('Platform and Expo Router version are required for validation.');
43
+ }
44
+ const customNavigators = await loadCustomNavigatorRegistryAsync(options.customNavigatorsPath, cwd);
45
+ return {
46
+ platform,
47
+ expoRouterVersion,
48
+ ...(options.responsiveSize === undefined ? {} : { responsiveSize: options.responsiveSize }),
49
+ ...(customNavigators === undefined ? {} : { customNavigators }),
50
+ };
51
+ }
52
+ /*** Report file, JSON, registry, and option failures separately from navigator diagnostics. */
53
+ function reportInputFailure(input, error) {
54
+ return reportNavigatorCliResult(input, input.argv.includes('--json') ? 'json' : 'human', 'navigator.validate', null, [
55
+ {
56
+ code: 'invalid-cli-input',
57
+ severity: 'error',
58
+ path: '',
59
+ message: error instanceof Error ? error.message : 'Invalid validation input.',
60
+ },
61
+ ], [], true);
62
+ }
63
+ //# sourceMappingURL=validate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/cli/commands/validate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,6FAA6F;AAC7F,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAA4B;IACzD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrD,yBAAyB,CACvB,OAAO,EACP,CAAC,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,mBAAmB,CAAC,EACjE;YACE,cAAc;YACd,cAAc;YACd,sBAAsB;YACtB,UAAU;YACV,mBAAmB;YACnB,gBAAgB;YAChB,eAA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UAAU,iBAAiB,CAC9B,OAAoD,EACpD,GAAW;IAEX,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;IAChD,IAAI,QAAQ,KAAK,SAAS,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;QAC9D,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,gBAAgB,GAAG,MAAM,gCAAgC,CAC7D,OAAO,CAAC,oBAAoB,EAC5B,GAAG,CACJ,CAAC;IACF,OAAO;QACL,QAAQ;QACR,iBAAiB;QACjB,GAAG,CAAC,OAAO,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC;QAC3F,GAAG,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,+FAA+F;AAC/F,SAAS,kBAAkB,CAAC,KAA4B,EAAE,KAAc;IACtE,OAAO,wBAAwB,CAC7B,KAAK,EACL,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAChD,oBAAoB,EACpB,IAAI,EACJ;QACE;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,2BAA2B;SAC9E;KACF,EACD,EAAE,EACF,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCliExecution, NavigatorCliRunResult } from '../../types/navigatorCli';
2
+ /*** Verify Navigator-owned structural and deterministic generation evidence without writes. */
3
+ export declare function verify(input: NavigatorCliExecution): Promise<NavigatorCliRunResult>;
4
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAS7F,+FAA+F;AAC/F,wBAAsB,MAAM,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmCzF"}
@@ -0,0 +1,51 @@
1
+ import { assertNavigatorCliOptions } from '../../utils/assertNavigatorCliOptions';
2
+ import { createNavigatorPlan } from '../../utils/createNavigatorPlan';
3
+ import { loadNavigatorCliInputAsync } from '../../utils/loadNavigatorCliInputAsync';
4
+ import { parseNavigatorCliOptions } from '../../utils/parseNavigatorCliOptions';
5
+ import { reportNavigatorCliResult } from '../../utils/reportNavigatorCliResult';
6
+ import { verifyNavigator } from '../../utils/verifyNavigator';
7
+ /*** Verify Navigator-owned structural and deterministic generation evidence without writes. */
8
+ export async function verify(input) {
9
+ try {
10
+ const options = parseNavigatorCliOptions(input.argv);
11
+ assertNavigatorCliOptions(options, ['manifestPath', 'bindingsPath', 'platform', 'expoRouterVersion'], [
12
+ 'manifestPath',
13
+ 'bindingsPath',
14
+ 'customNavigatorsPath',
15
+ 'platform',
16
+ 'expoRouterVersion',
17
+ 'responsiveSize',
18
+ 'rootDirectory',
19
+ 'includeScreenFiles',
20
+ ]);
21
+ const loaded = await loadNavigatorCliInputAsync(options, input.cwd, true);
22
+ if (loaded.bindings === undefined)
23
+ throw new Error('Bindings are required for verification.');
24
+ const verification = verifyNavigator(createNavigatorPlan(loaded.manifest, loaded.planOptions), loaded.bindings, loaded.generationOptions);
25
+ return reportNavigatorCliResult(input, options.format, 'navigator.verify', verification, verification.diagnostics, renderVerification(verification));
26
+ }
27
+ catch (error) {
28
+ return reportInputFailure(input, error);
29
+ }
30
+ }
31
+ /*** Render each verification layer without promoting unverified runtime claims. */
32
+ function renderVerification(result) {
33
+ return [
34
+ `Support: ${result.support}`,
35
+ `Capabilities: ${result.capabilityIds.join(', ') || 'none'}`,
36
+ `Deterministic: ${result.deterministic ? 'yes' : 'no'}`,
37
+ ...result.checks.map(({ kind, status, message }) => `- ${kind}: ${status} — ${message}`),
38
+ ];
39
+ }
40
+ /*** Report deterministic Verify-stage input failures. */
41
+ function reportInputFailure(input, error) {
42
+ return reportNavigatorCliResult(input, input.argv.includes('--json') ? 'json' : 'human', 'navigator.verify', null, [
43
+ {
44
+ code: 'invalid-cli-input',
45
+ severity: 'error',
46
+ path: '',
47
+ message: error instanceof Error ? error.message : 'Invalid verification input.',
48
+ },
49
+ ], [], true);
50
+ }
51
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../src/cli/commands/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,+FAA+F;AAC/F,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,KAA4B;IACvD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrD,yBAAyB,CACvB,OAAO,EACP,CAAC,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,mBAAmB,CAAC,EACjE;YACE,cAAc;YACd,cAAc;YACd,sBAAsB;YACtB,UAAU;YACV,mBAAmB;YACnB,gBAAgB;YAChB,e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C,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAChD,kBAAkB,EAClB,IAAI,EACJ;QACE;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,6BAA6B;SAChF;KACF,EACD,EAAE,EACF,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { AnkhCommandProviderManifest } from '@ankhorage/contracts/cli';
2
+ declare const _default: NavigatorCliProvider;
3
+ export default _default;
4
+ interface NavigatorCliProvider extends AnkhCommandProviderManifest {
5
+ readonly handlers: readonly {
6
+ readonly path: readonly string[];
7
+ readonly handler: (request: NavigatorCliRequest) => Promise<{
8
+ readonly exitCode: number;
9
+ }>;
10
+ }[];
11
+ }
12
+ interface NavigatorCliRequest {
13
+ readonly argv: readonly string[];
14
+ readonly context: {
15
+ readonly cwd: string;
16
+ writeStdout(text: string): void;
17
+ writeStderr(text: string): void;
18
+ };
19
+ }
20
+ //# sourceMappingURL=createCliProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCliProvider.d.ts","sourceRoot":"","sources":["../../src/cli/createCliProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;;AAU9F,wBAAmC;AAsDnC,UAAU,oBAAqB,SAAQ,2BAA2B;IAChE,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACjC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC;YAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC5F,EAAE,CAAC;CACL;AAED,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC,CAAC;CACH"}
@@ -0,0 +1,60 @@
1
+ import packageJson from '../../package.json';
2
+ import { catalog } from './commands/catalog';
3
+ import { generate } from './commands/generate';
4
+ import { plan } from './commands/plan';
5
+ import { validate } from './commands/validate';
6
+ import { verify } from './commands/verify';
7
+ export default createCliProvider();
8
+ /*** Create the package-owned provider for the standalone Navigator lifecycle. */
9
+ function createCliProvider() {
10
+ const capabilities = [
11
+ 'navigator.catalog',
12
+ 'navigator.validate',
13
+ 'navigator.plan',
14
+ 'navigator.generate',
15
+ 'navigator.verify',
16
+ ];
17
+ const commands = [
18
+ descriptor('catalog', 'navigator.catalog', 'List or inspect Navigator capabilities and presets'),
19
+ descriptor('validate', 'navigator.validate', 'Validate a manifest and narrow bindings without writes'),
20
+ descriptor('plan', 'navigator.plan', 'Resolve a deterministic plan and dependency requirements'),
21
+ descriptor('generate', 'navigator.generate', 'Generate Navigator files into an explicit target'),
22
+ descriptor('verify', 'navigator.verify', 'Verify structural and deterministic generation evidence'),
23
+ ];
24
+ return {
25
+ id: packageJson.name,
26
+ category: 'navigator',
27
+ version: packageJson.version,
28
+ capabilities,
29
+ commands,
30
+ handlers: [
31
+ binding('catalog', catalog),
32
+ binding('validate', validate),
33
+ binding('plan', plan),
34
+ binding('generate', generate),
35
+ binding('verify', verify),
36
+ ],
37
+ };
38
+ }
39
+ /*** Define one public command descriptor from its package-owned capability. */
40
+ function descriptor(path, capability, summary) {
41
+ return {
42
+ path: [path],
43
+ capability,
44
+ summary,
45
+ examples: [`ankh navigator ${path} --help`],
46
+ };
47
+ }
48
+ /*** Adapt the Ankh execution request to Navigator's narrow command input. */
49
+ function binding(path, handler) {
50
+ return {
51
+ path: [path],
52
+ handler: (request) => Promise.resolve(handler({
53
+ argv: request.argv,
54
+ cwd: request.context.cwd,
55
+ writeStdout: (text) => request.context.writeStdout(text),
56
+ writeStderr: (text) => request.context.writeStderr(text),
57
+ })),
58
+ };
59
+ }
60
+ //# sourceMappingURL=createCliProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCliProvider.js","sourceRoot":"","sources":["../../src/cli/createCliProvider.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,eAAe,iBAAiB,EAAE,CAAC;AAEnC,iFAAiF;AACjF,SAAS,iBAAiB;IACxB,MAAM,YAAY,GAAG;QACnB,mBAAmB;QACnB,oBAAoB;QACpB,gBAAgB;QAChB,oBAAoB;QACpB,kBAAkB;KACV,CAAC;IACX,MAAM,QAAQ,GAAG;QACf,UAAU,CACR,SAAS,EACT,mBAAmB,EACnB,oDAAoD,CACrD;QACD,UAAU,CACR,UAAU,EACV,oBAAoB,EACpB,wDAAwD,CACzD;QACD,UAAU,CACR,MAAM,EACN,gBAAgB,EAChB,0DAA0D,CAC3D;QACD,UAAU,CACR,UAAU,EACV,oBAAoB,EACpB,kDAAkD,CACnD;QACD,UAAU,CACR,QAAQ,EACR,kBAAkB,EAClB,yDAAyD,CAC1D;KACO,CAAC;IACX,OAAO;QACL,EAAE,EAAE,WAAW,CAAC,IAAI;QACpB,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,YAAY;QACZ,QAAQ;QACR,QAAQ,EAAE;YACR,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC;YAC3B,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC;YAC7B,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;YACrB,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC;YAC7B,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC;SAC1B;KACF,CAAC;AACJ,CAAC;AAkBD,+EAA+E;AAC/E,SAAS,UAAU,CAAC,IAAY,EAAE,UAA4B,EAAE,OAAe;IAC7E,OAAO;QACL,IAAI,EAAE,CAAC,IAAI,CAAC;QACZ,UAAU;QACV,OAAO;QACP,QAAQ,EAAE,CAAC,kBAAkB,IAAI,SAAS,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED,6EAA6E;AAC7E,SAAS,OAAO,CACd,IAAY,EACZ,OAE2E;IAE3E,OAAO;QACL,IAAI,EAAE,CAAC,IAAI,CAAC;QACZ,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CACnB,OAAO,CAAC,OAAO,CACb,OAAO,CAAC;YACN,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG;YACxB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;YACxD,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;SACzD,CAAC,CACH;KACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { NavigatorCatalog } from '@ankhorage/contracts/navigator';
2
+ /*** Return the package-owned catalog with dependencies derived from published owner metadata. */
3
+ export declare function getNavigatorCatalog(): NavigatorCatalog;
4
+ //# sourceMappingURL=getNavigatorCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNavigatorCatalog.d.ts","sourceRoot":"","sources":["../../../../../src/features/catalog/adapters/inbound/getNavigatorCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAKvE,iGAAiG;AACjG,wBAAgB,mBAAmB,IAAI,gBAAgB,CAMtD"}