@nimiplatform/app-tools 0.14.0 → 0.16.0-rc.12

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 (99) hide show
  1. package/README.md +112 -24
  2. package/bin/nimi-app.mjs +35 -15
  3. package/lib/app-access-declaration.mjs +3 -0
  4. package/lib/app-dependency-combinations.mjs +70 -24
  5. package/lib/app-doctor-update.mjs +97 -39
  6. package/lib/app-host-support.mjs +6 -0
  7. package/lib/app-identifiers.mjs +27 -0
  8. package/lib/app-info.mjs +292 -1
  9. package/lib/app-lifecycle-guidance.mjs +1 -1
  10. package/lib/app-pack.mjs +65 -39
  11. package/lib/app-project-lifecycle.mjs +149 -244
  12. package/lib/app-scaffold-capabilities.mjs +13 -109
  13. package/lib/app-scaffold-profiles.mjs +81 -115
  14. package/lib/app-scaffold.mjs +74 -166
  15. package/lib/app-toolchain-updates.mjs +45 -0
  16. package/lib/canonical-capability-ids.generated.mjs +2 -0
  17. package/lib/development-environment.d.mts +10 -0
  18. package/lib/development-environment.mjs +39 -0
  19. package/lib/hosted-web-release.mjs +98 -0
  20. package/lib/index.mjs +43 -3
  21. package/lib/mobile-development.mjs +19 -0
  22. package/lib/realm-environments.generated.mjs +5 -0
  23. package/lib/storefront-media.mjs +154 -0
  24. package/lib/web-coordination.mjs +59 -0
  25. package/lib/web-development.d.mts +23 -0
  26. package/lib/web-development.mjs +118 -0
  27. package/lib/web-scaffold.mjs +125 -0
  28. package/package.json +33 -21
  29. package/scripts/dev-shell.mjs +4 -1
  30. package/scripts/sync-scaffold-versions.mjs +0 -2
  31. package/skills/nimi-app-lifecycle/SKILL.md +3 -1
  32. package/skills/nimi-app-lifecycle/references/acceptance.md +6 -2
  33. package/skills/nimi-app-lifecycle/references/adapt.md +5 -3
  34. package/skills/nimi-app-lifecycle/references/audit.md +3 -2
  35. package/skills/nimi-app-lifecycle/references/create.md +6 -2
  36. package/skills/nimi-app-lifecycle/references/release.md +10 -0
  37. package/skills/nimi-app-lifecycle/references/upgrade-platform.md +12 -7
  38. package/templates/app-source/src/ai-studio-core/ai-studio-core.css +87 -52
  39. package/templates/app-source/src/ai-studio-core/history-policy.ts +45 -11
  40. package/templates/app-source/src/ai-studio-core/history.ts +22 -11
  41. package/templates/app-source/src/ai-studio-core/host-context.tsx +9 -4
  42. package/templates/app-source/src/ai-studio-core/index.ts +2 -0
  43. package/templates/app-source/src/ai-studio-core/job-recovery-panel.tsx +15 -5
  44. package/templates/app-source/src/ai-studio-core/job-recovery.ts +2 -2
  45. package/templates/app-source/src/ai-studio-core/messages/en.json +73 -19
  46. package/templates/app-source/src/ai-studio-core/messages/zh.json +73 -19
  47. package/templates/app-source/src/ai-studio-core/module-registration.ts +1 -0
  48. package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +30 -5
  49. package/templates/app-source/src/ai-studio-core/parameter-fields.tsx +12 -6
  50. package/templates/app-source/src/ai-studio-core/parameters.ts +4 -0
  51. package/templates/app-source/src/ai-studio-core/prompt-drafts.ts +42 -0
  52. package/templates/app-source/src/ai-studio-core/runtime-types.ts +9 -2
  53. package/templates/app-source/src/ai-studio-core/runtime.ts +8 -4
  54. package/templates/app-source/src/ai-studio-core/section-ai-testing-composer.tsx +98 -90
  55. package/templates/app-source/src/ai-studio-core/section-ai-testing-exchange-result.tsx +1 -1
  56. package/templates/app-source/src/ai-studio-core/section-ai-testing-history.tsx +205 -48
  57. package/templates/app-source/src/ai-studio-core/section-ai-testing-input.ts +1 -0
  58. package/templates/app-source/src/ai-studio-core/section-ai-testing-output.tsx +36 -14
  59. package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +96 -75
  60. package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +59 -16
  61. package/templates/app-source/src/ai-studio-core/section-ai-testing-session-result.tsx +2 -0
  62. package/templates/app-source/src/ai-studio-core/section-ai-testing-studio-result.tsx +12 -21
  63. package/templates/app-source/src/ai-studio-core/section-ai-testing-transcription-result.tsx +2 -2
  64. package/templates/app-source/src/ai-studio-core/section-ai-testing-vision-result.tsx +3 -3
  65. package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +158 -76
  66. package/templates/app-source/src/ai-studio-core/workspace.tsx +49 -22
  67. package/templates/app-source/src/product-modules/agent-center/index.tsx +2 -3
  68. package/templates/app-source/src/product-modules/agent-conversation/index.tsx +2 -3
  69. package/templates/app-source/src/studio-modules/studio-create/messages/en.json +12 -3
  70. package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +12 -3
  71. package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +11 -2
  72. package/templates/app-source/src/studio-modules/studio-create/parameters.ts +2 -1
  73. package/templates/app-source/src/studio-modules/studio-create/runtime.ts +47 -5
  74. package/templates/app-source/src/studio-modules/studio-media/messages/en.json +59 -8
  75. package/templates/app-source/src/studio-modules/studio-media/messages/zh.json +68 -8
  76. package/templates/app-source/src/studio-modules/studio-media/music-parameters.tsx +2 -1
  77. package/templates/app-source/src/studio-modules/studio-media/parameter-panel.tsx +271 -83
  78. package/templates/app-source/src/studio-modules/studio-media/parameters.ts +120 -2
  79. package/templates/app-source/src/studio-modules/studio-media/registration.ts +1 -0
  80. package/templates/app-source/src/studio-modules/studio-media/runtime.ts +24 -14
  81. package/templates/app-source/src/studio-modules/studio-voice/descriptors.ts +1 -1
  82. package/templates/app-source/src/studio-modules/studio-voice/messages/en.json +3 -2
  83. package/templates/app-source/src/studio-modules/studio-voice/messages/zh.json +3 -2
  84. package/templates/app-source/src/studio-modules/studio-voice/parameter-panel.tsx +46 -23
  85. package/templates/app-source/src/studio-modules/studio-voice/registration.ts +2 -1
  86. package/templates/app-source/src/studio-modules/studio-voice/runtime.ts +2 -2
  87. package/templates/app-source/src/workbench-core/workbench-core.tsx +27 -3
  88. package/templates/default-starter/AGENTS.md +3 -3
  89. package/templates/default-starter/README.md +1 -1
  90. package/templates/default-starter/src/shell/App.tsx +6 -18
  91. package/templates/default-starter/src/shell/auth/local-app-client.ts +6 -15
  92. package/templates/default-starter/src/shell/auth/runtime-platform.ts +7 -107
  93. package/templates/default-starter/src/shell/workbench-target-adapter.ts +9 -126
  94. package/templates/default-starter.manifest.json +0 -16
  95. package/templates/hosted-web-release.yml +98 -0
  96. package/templates/default-starter/src-tauri/Cargo.toml +0 -17
  97. package/templates/default-starter/src-tauri/build.rs +0 -32
  98. package/templates/default-starter/src-tauri/capabilities/default.json +0 -7
  99. package/templates/default-starter/src-tauri/tauri.conf.json +0 -26
@@ -0,0 +1,125 @@
1
+ // @nimi-authority: rule.nimi.platform.app-ecosystem.scaffold-web-carrier
2
+ import { REALM_PROFILES } from './realm-environments.generated.mjs';
3
+ export const WEB_BASE_TEMPLATE_PATHS = new Set([
4
+ '.gitattributes', 'index.html', 'SECURITY.md',
5
+ 'src/shell/auth/app-identity.ts', 'src/shell/authenticated-shell.tsx', 'src/styles.css', 'tsconfig.json',
6
+ ]);
7
+
8
+ const managed = (path, content) => ({ path, content, mutationClass: 'scaffold-managed glue' });
9
+
10
+ export function webDevelopmentInput(identity) {
11
+ const realm = REALM_PROFILES.official;
12
+ // A port hash and a guessed client id are not a registered browser source.
13
+ return { origin: '', redirect_uri: '', client_id: '',
14
+ realm_environment_id: realm.environmentId, realm_url: realm.apiOrigin, official_web_url: realm.webOrigin,
15
+ command: 'pnpm run dev:web-renderer' };
16
+ }
17
+
18
+ export function webBuildProfile() {
19
+ return { build_profile_ref: 'web-pnpm', test_command: 'pnpm run test:app', build_command: 'pnpm run build',
20
+ output_path: 'dist', lockfile_path: 'pnpm-lock.yaml', lockfile_policy: 'author-install-generates-lockfile',
21
+ ci_install_command: 'pnpm install --frozen-lockfile', targets: { web: { build_command: 'pnpm run build', payload_path: 'dist', runtime_entry: 'payload/index.html' } },
22
+ profile_role: 'developer-workflow-input' };
23
+ }
24
+
25
+ export function webPackage(pkg) {
26
+ const { main: _main, ...result } = pkg;
27
+ for (const name of ['@electron/packager', 'electron', 'pngjs']) delete result.devDependencies[name];
28
+ result.pnpm = { onlyBuiltDependencies: ['esbuild'] };
29
+ result.scripts = { dev: 'nimi-app dev --platform web', 'dev:web-renderer': 'vite',
30
+ init: 'nimi-app init', sync: 'nimi-app sync', check: 'nimi-app check', test: 'nimi-app test',
31
+ 'test:app': 'tsc --noEmit', 'app:build': 'nimi-app build', typecheck: 'tsc --noEmit', build: 'tsc --noEmit && vite build',
32
+ 'build:release': 'tsc --noEmit && vite build --mode web-release' };
33
+ return result;
34
+ }
35
+
36
+ export function webDependencyMatrix(matrix) {
37
+ for (const name of ['@electron/packager', 'electron', 'pngjs']) delete matrix.npm[name];
38
+ return matrix;
39
+ }
40
+
41
+ export function buildWebStarterFiles(identity, { productArea, navigation }) {
42
+ return [
43
+ { path: 'NIMI_APP.md', mutationClass: 'app-owned product code', content: '# '+identity.appTitle+'\n\nUse this website to work with the AI capabilities supplied by your primary Nimi Runtime. Sign in on the official Nimi page, keep Nimi Home running on the PC, and confirm this source once in Home. Configure the capabilities needed by the selected App features. Results use the App storage scope; other sources do not automatically share files. Cloud inference follows the Runtime configuration and may incur provider charges.\n' },
44
+ managed('src/main.tsx', WEB_MAIN),
45
+ managed('src/shell/App.tsx', WEB_APP),
46
+ managed('src/shell/auth/local-app-client.ts', WEB_CLIENT),
47
+ managed('src/shell/auth/runtime-platform.ts', WEB_RUNTIME),
48
+ managed('src/shell/web-download.ts', WEB_DOWNLOAD),
49
+ managed('vite.config.ts', WEB_VITE),
50
+ managed('src/shell/routes/product-area.tsx', productArea),
51
+ { ...managed('src/shell/routes/app-navigation.tsx', navigation), mutationClass: 'app-owned product code' },
52
+ { path: 'README.md', mutationClass: 'app-owned product code', content: `# ${identity.appTitle}\n\nBrowser App using the shared Nimi SDK and Kit.\n\nInstall dependencies and configure the admitted HTTPS origin, client ID and callback in nimi.app.yaml before running init, check or dev. In .env.local, point NIMI_WEB_TLS_KEY to your HTTPS private key and NIMI_WEB_TLS_CERT to its matching certificate. Your browser must trust that certificate. Have this source admitted through the Registry owner and confirm it once in PC Home. These steps do not publish the website.\n\nAI and files travel directly to the user's primary Runtime. The dev server forwards only scoped identity and connection coordination. Production hosting must separately provide those bounded routes. No Relay or native Host is installed in the browser.\n\nThe initial test command typechecks the project; add business tests as the App evolves and run real supported tasks. Build does not certify Runtime use. For a Nimi-hosted Web release, declare public_slug, build the hosted candidate and follow Registry review and platform promotion. See the Web release instructions in the App Tools README.\n` },
53
+ { path: 'AGENTS.md', mutationClass: 'app-owned product code', content: '# Web App instructions\n\nUse the shared public SDK and Kit. Keep business state with the App and AI execution with Runtime. This project uses official Runtime-client login and an admitted Web source, never native Host proof or a direct provider fallback. Preserve App-owned product code during sync. Use the declared development, test and build commands. New source admission and first Home confirmation belong to their owners; normal reconnection reuses them. Do not publish or bypass trust prompts as part of development.\n' },
54
+ ];
55
+ }
56
+
57
+ const WEB_VITE = `import { defineConfig, loadEnv, mergeConfig } from 'vite';
58
+ import react from '@vitejs/plugin-react';
59
+ import tailwindcss from '@tailwindcss/vite';
60
+ import { nimiWebViteConfig } from '@nimiplatform/app-tools/web';
61
+ export default defineConfig(({ command, mode }) => mergeConfig({ base: './', plugins: [react(), tailwindcss()],
62
+ server: { watch: { ignored: ['**/.nimi/local/**', '**/.tmp/**'] } },
63
+ resolve: { dedupe: ['react', 'react-dom', 'react/jsx-runtime'] },
64
+ }, nimiWebViteConfig({ root: import.meta.dirname, env: { ...loadEnv(mode, import.meta.dirname, ''), ...process.env }, serve: command === 'serve', release: mode === 'web-release' })));
65
+ `;
66
+
67
+ const WEB_CLIENT = `import type { NimiAppScope } from '@nimiplatform/kit/core/app-session';
68
+ let scope: NimiAppScope | null = null;
69
+ export function setNimiRemoteAppClient(value: NimiAppScope | null) { scope = value; }
70
+ export function getNimiLocalAppClient(): NimiAppScope['client'] {
71
+ if (!scope || scope.signal.aborted) throw new Error('Connect to your primary Runtime before starting work.');
72
+ return scope.client;
73
+ }
74
+ `;
75
+
76
+ const WEB_RUNTIME = `import { getNimiLocalAppClient } from './local-app-client.js';
77
+ export { appId, appTitle, scaffoldProfile } from './app-identity.js';
78
+ export async function getRuntimePlatformProjection() {
79
+ try { getNimiLocalAppClient(); return { status: 'ready' as const, mode: 'remote-app' as const }; }
80
+ catch (error) { return { status: 'unavailable' as const, mode: 'remote-app' as const, message: error instanceof Error ? error.message : String(error) }; }
81
+ }
82
+ `;
83
+
84
+ const WEB_APP = `import { NimiToaster } from '@nimiplatform/kit/ui';
85
+ import { AppNavigationProvider } from './routes/app-navigation.js';
86
+ import { AuthenticatedShell } from './authenticated-shell.js';
87
+ export function App() { return <AppNavigationProvider><AuthenticatedShell /><NimiToaster /></AppNavigationProvider>; }
88
+ `;
89
+
90
+ const WEB_MAIN = `import React from 'react';
91
+ import { createRoot } from 'react-dom/client';
92
+ import { NimiThemeProvider, TooltipProvider } from '@nimiplatform/kit/ui';
93
+ import { createWebNimiAppSession, type NimiRemoteAppConfig } from '@nimiplatform/kit/auth/app/web';
94
+ import { NimiAppSessionProvider, NimiAccountControl, NimiAppAccessGate } from '@nimiplatform/kit/auth/app';
95
+ import { setNimiRemoteAppClient } from './shell/auth/local-app-client.js';
96
+ import { appTitle } from './shell/auth/app-identity.js';
97
+ import { App } from './shell/App.js';
98
+ import './styles.css';
99
+ declare const __NIMI_APP_WEB_CONFIG__: NimiRemoteAppConfig;
100
+ const session = createWebNimiAppSession(__NIMI_APP_WEB_CONFIG__);
101
+ const off = session.subscribe(() => { const state = session.getSnapshot(); setNimiRemoteAppClient(state.runtime.status === 'connected' ? state.runtime.scope : null); });
102
+ const root = document.getElementById('root')!;
103
+ root.classList.add('nimi-workbench-host', 'nimi-ui-module--lab'); document.body.classList.add('nimi-ui-module--lab');
104
+ const reactRoot = createRoot(root);
105
+ reactRoot.render(<React.StrictMode><NimiThemeProvider accentPack="nimi-accent"><TooltipProvider><NimiAppSessionProvider session={session}>
106
+ <div className="flex h-full min-h-0 flex-col"><header className="flex items-center gap-3 border-b p-3"><strong>{appTitle}</strong><NimiAccountControl hideSignedOut language="en" /></header>
107
+ <NimiAppAccessGate title={appTitle} language="en">{() => <main className="min-h-0 flex-1"><App /></main>}</NimiAppAccessGate></div>
108
+ </NimiAppSessionProvider></TooltipProvider></NimiThemeProvider></React.StrictMode>);
109
+ void session.start();
110
+ if (import.meta.hot) import.meta.hot.dispose(() => { session.dispose(); off(); setNimiRemoteAppClient(null); reactRoot.unmount(); });
111
+ `;
112
+
113
+ const WEB_DOWNLOAD = `import { readNimiAppAssetBlob, openNimiAppAssetMediaUrl } from '@nimiplatform/kit/core/app-asset-media';
114
+ import { getNimiLocalAppClient } from './auth/local-app-client.js';
115
+ export function requestDownload(filename: string, blob: Blob) {
116
+ const url = URL.createObjectURL(blob), anchor = document.createElement('a');
117
+ anchor.href = url; anchor.download = filename; anchor.hidden = true;
118
+ try { document.body.append(anchor); anchor.click(); } finally { anchor.remove(); setTimeout(() => URL.revokeObjectURL(url), 0); }
119
+ return { destination: 'browser-download' as const, filename, byteSize: blob.size };
120
+ }
121
+ export const openAssetMediaUrl = (relativePath: string, signal?: AbortSignal) => openNimiAppAssetMediaUrl(getNimiLocalAppClient().storage.assets, relativePath, signal);
122
+ export async function downloadAsset(relativePath: string) {
123
+ return requestDownload(relativePath.split('/').at(-1)!, await readNimiAppAssetBlob(getNimiLocalAppClient().storage.assets, relativePath));
124
+ }
125
+ `;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@nimiplatform/app-tools",
3
- "version": "0.14.0",
3
+ "version": "0.16.0-rc.12",
4
4
  "description": "Public app-authoring CLI for Nimi App projects.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "engines": {
8
- "node": ">=24.22.1 <25.0.0"
8
+ "node": ">=24.22.3 <25.0.0"
9
9
  },
10
10
  "private": false,
11
11
  "repository": {
@@ -18,37 +18,48 @@
18
18
  "provenance": true
19
19
  },
20
20
  "nimiScaffoldVersions": {
21
- "sdkVersion": "^0.22.2",
22
- "appToolsVersion": "^0.14.0",
21
+ "sdkVersion": "^0.24.0-rc.10",
22
+ "appToolsVersion": "^0.16.0-rc.12",
23
23
  "nimicodingVersion": "0.7.0",
24
- "aiSdkVersion": "^7.0.150",
25
- "kitVersion": "^0.22.1",
24
+ "aiSdkVersion": "^7.0.171",
25
+ "kitVersion": "^0.24.0-rc.16",
26
26
  "reactVersion": "^19.3.1",
27
27
  "reactDomVersion": "^19.3.1",
28
- "i18nextVersion": "^26.5.6",
29
- "lucideReactVersion": "^1.61.0",
28
+ "i18nextVersion": "^26.7.2",
29
+ "lucideReactVersion": "^1.70.0",
30
30
  "tsxVersion": "^4.23.15",
31
31
  "typescriptVersion": "^6.0.3",
32
32
  "nodeTypesVersion": "^24.19.2",
33
33
  "reactTypesVersion": "^19.3.0",
34
34
  "reactDomTypesVersion": "^19.3.0",
35
- "viteVersion": "^8.3.5",
36
- "viteReactPluginVersion": "^6.1.2",
37
- "tailwindcssVersion": "^4.3.3",
38
- "tailwindcssViteVersion": "^4.3.3",
39
- "tauriCliVersion": "^2.11.4",
35
+ "viteVersion": "^8.3.8",
36
+ "viteReactPluginVersion": "^6.2.1",
37
+ "tailwindcssVersion": "^4.3.5",
38
+ "tailwindcssViteVersion": "^4.3.5",
40
39
  "yamlVersion": "^2.9.1",
41
40
  "pngjsVersion": "^7.0.0",
42
- "nimiShellTauriVersion": "0.11.1",
43
41
  "electronPackagerVersion": "^20.3.0",
44
- "electronVersion": "^45.0.0",
42
+ "electronVersion": "^45.4.1",
45
43
  "esbuildVersion": "^0.28.2",
46
44
  "packageManager": "pnpm@10.34.7"
47
45
  },
48
46
  "bin": {
49
47
  "nimi-app": "./bin/nimi-app.mjs"
50
48
  },
51
- "exports": {},
49
+ "exports": {
50
+ "./development": {
51
+ "types": "./lib/development-environment.d.mts",
52
+ "import": "./lib/development-environment.mjs",
53
+ "default": "./lib/development-environment.mjs"
54
+ },
55
+ "./web/release": "./lib/hosted-web-release.mjs",
56
+ "./web/coordination": "./lib/web-coordination.mjs",
57
+ "./web": {
58
+ "types": "./lib/web-development.d.mts",
59
+ "import": "./lib/web-development.mjs",
60
+ "default": "./lib/web-development.mjs"
61
+ }
62
+ },
52
63
  "scripts": {
53
64
  "build": "node scripts/sync-scaffold-versions.mjs --apply && node scripts/sync-app-source.mjs --apply",
54
65
  "sync:versions": "node scripts/sync-scaffold-versions.mjs --apply",
@@ -57,7 +68,7 @@
57
68
  "prepublishOnly": "pnpm run build",
58
69
  "test": "node ../scripts/with-workspace-surfaces.mjs -- pnpm run test:prepared",
59
70
  "test:large-archive": "node --test test/app-pack-large.test.mjs",
60
- "test:prepared": "node scripts/sync-scaffold-versions.mjs --check && node --test test/dev-shell.test.mjs && node --test test/app-icons.test.mjs test/app-dependency-combinations.test.mjs test/app-safety-profile.test.mjs test/app-project-lifecycle.test.mjs test/app-pack.test.mjs test/app-pack-large.test.mjs test/app-scaffold.test.mjs"
71
+ "test:prepared": "node scripts/sync-scaffold-versions.mjs --check && node --test test/dev-shell.test.mjs && node --test test/app-icons.test.mjs test/app-storefront.test.mjs test/app-dependency-combinations.test.mjs test/app-safety-profile.test.mjs test/app-project-lifecycle.test.mjs test/app-pack.test.mjs test/app-pack-large.test.mjs test/app-scaffold.test.mjs test/web-carrier.test.mjs test/hosted-web-release.test.mjs test/mobile-development.test.mjs"
61
72
  },
62
73
  "files": [
63
74
  "bin",
@@ -68,13 +79,14 @@
68
79
  "README.md"
69
80
  ],
70
81
  "dependencies": {
82
+ "@napi-rs/image": "1.16.0",
71
83
  "pngjs": "7.0.0",
72
- "semver": "^7.8.5",
84
+ "semver": "^7.8.6",
73
85
  "typescript": "6.0.3",
74
86
  "yaml": "2.9.1"
75
87
  },
76
88
  "peerDependencies": {
77
- "vite": "^8.0.0"
89
+ "vite": "~8.1.7 || ~8.2.5 || ^8.3.7"
78
90
  },
79
91
  "peerDependenciesMeta": {
80
92
  "vite": {
@@ -83,7 +95,7 @@
83
95
  },
84
96
  "devDependencies": {
85
97
  "@types/node": "24.19.2",
86
- "vite": "8.3.5",
87
- "i18next": "26.5.6"
98
+ "vite": "8.3.8",
99
+ "i18next": "26.7.2"
88
100
  }
89
101
  }
@@ -26,6 +26,7 @@ const TERMINAL_STATES = new Set([
26
26
 
27
27
  // @nimi-authority: rule.nimi.platform.app-ecosystem.p-scaf-018a
28
28
  export async function runDevShell(cwd, options = {}) {
29
+ if (options.realm) throw new Error('Native Apps use the active Nimi Home and its Realm. Select the Realm when starting source Nimi.');
29
30
  if ([options.listRegistrations, options.resume, options.newRegistration].filter(Boolean).length > 1) {
30
31
  throw new DevShellError('local-development-intent-invalid', '--list-registrations, --resume and --new-registration cannot be combined.');
31
32
  }
@@ -308,7 +309,9 @@ async function postJson(fetchImpl, desktop, route, body) {
308
309
  } catch {
309
310
  throw new DevShellError(
310
311
  'local-development-desktop-not-running',
311
- 'The Nimi development supervisor is unavailable.',
312
+ route === '/v1/status'
313
+ ? 'Nimi Home did not return the final App status. To confirm a planned stop, press Ctrl+C in the App terminal before quitting Home.'
314
+ : 'The Nimi development supervisor is unavailable.',
312
315
  );
313
316
  }
314
317
  if (!response || response.status !== 200) {
@@ -4,7 +4,6 @@ import { readFileSync, writeFileSync } from 'node:fs';
4
4
  import path from 'node:path';
5
5
  import { fileURLToPath } from 'node:url';
6
6
 
7
- import { validateAppScaffoldCargoDependencyValue } from '../lib/app-scaffold-capabilities.mjs';
8
7
 
9
8
  const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
10
9
  const APP_TOOLS_ROOT = path.resolve(SCRIPT_DIR, '..');
@@ -35,7 +34,6 @@ export function buildScaffoldVersionProjection() {
35
34
  if (!current || typeof current !== 'object' || Array.isArray(current)) {
36
35
  throw new Error('app-tools package manifest is missing nimiScaffoldVersions');
37
36
  }
38
- validateAppScaffoldCargoDependencyValue(current.nimiShellTauriVersion, 'nimiScaffoldVersions.nimiShellTauriVersion');
39
37
  return Object.freeze({
40
38
  ...current,
41
39
  appToolsVersion: publicPackageRange(appToolsManifest, '@nimiplatform/app-tools'),
@@ -5,6 +5,8 @@ description: Audit Nimi App adaptation feasibility, capability fit and cost, or
5
5
 
6
6
  # Nimi App lifecycle
7
7
 
8
+ Native App Tools supports Electron on Windows x64 and macOS arm64. Use Node, pnpm and the prebuilt Kit native package for standard builds. Apps own their additional toolchains. An existing Tauri primary profile needs its original tools or an explicit migration to Electron.
9
+
8
10
  Start with the repository's package manifest, actual product entry and nearest instructions. Preserve the user's current product scope and stage. Reuse sufficient existing evidence; inspect further only to resolve uncertainty affecting the task. Read only the scenario needed now:
9
11
 
10
12
  | Task | Guide |
@@ -32,7 +34,7 @@ Create supplies a truthful unfinished-product introduction; the App author maint
32
34
  - App-owned workflows, tool handlers, business accounts, non-AI services and product presentation stay with the App. Nimi AI, configuration, managed storage and protected sessions use public SDK/Kit Local App surfaces. Validate unknown inputs once at their owning trust boundary; pass typed values inward without rechecking guarantees established by schemas, constructors, or internal contracts unless crossing a new trust boundary. Display identity is not a business login ticket.
33
35
  - When implementing an existing App's first Nimi integration or foundation wiring change, follow the adaptation guide's same-package generated reference first. Reuse its Host, preload, renderer, session, App Access, AIConfig and AI call wiring; documentation complements that implementation. Preserve the original product journeys and settings rather than treating the reference workbench as the finished App. Reuse passing baseline results for ordinary business edits; creating or running a reference App is not a default audit prerequisite.
34
36
  - Fresh Apps use pnpm, Vite and Desktop-supervised Electron. Existing Apps may use another renderer framework with an App-owned development command and the `electron-pnpm` build profile. A Next/server or Python project still needs real Host and backend lifecycle/build work. Preserve its original user tasks and framework where they fit; initialization does not convert the product.
35
- - Read the selected app-tools package's `nimiScaffoldVersions` and the SDK/Kit migration notes. Fresh Apps use the tool default SDK/Kit combination; an existing App keeps its current supported SDK/Kit combination through sync and check while only the app-tools and nimi-coding tool dependencies follow the tool, and a declaration or tool update never upgrades business dependencies. Development can consume complete local npm tarballs through explicit pnpm-workspace overrides; keep the selected combination and lockfile, follow the package README, and do not require publication before iteration. Public release preflight requires registry resolutions; local package acceptance is not public installation evidence.
37
+ - Read the selected app-tools package's `nimiScaffoldVersions` and the SDK/Kit migration notes. Fresh Apps use the tool default SDK/Kit combination; an existing App keeps its current supported SDK/Kit combination through sync and check while tool dependencies and supported security floors are reported separately, and a declaration or tool update never upgrades business dependencies. Development can consume complete local npm tarballs through explicit pnpm-workspace overrides; keep the selected combination and lockfile, follow the package README, and do not require publication before iteration. Public release preflight requires registry resolutions; local package acceptance is not public installation evidence.
36
38
  - App Tools maintains its fixed lifecycle skill, AGENTS block and declared engineering projections. Existing Apps have no fresh scaffold intent/lock. Preserve their Host, product source and license; report unknown file collisions rather than inventing ownership.
37
39
  - GitHub owns publisher builds and Releases; Registry owns candidate validation and human admission; Runtime owns packages and App access; Desktop owns exact processes. These are separate facts. The external AI host owns the development task.
38
40
  - Verify the requested behavior with checks for a concrete risk or project requirement. Add tests for important behavior or regression risks not already covered, without copying implementation logic or merely asserting structure; low-impact prose, styling, or mechanical edits do not automatically need new tests. Reuse passing results and stop when the requested behavior, required checks, and identified risks are sufficiently covered. Reopen verification only for new changes, failures, or unresolved risks affecting the conclusion; do not create extra evidence artifacts to restate established results. Missing prerequisites pause only dependent steps; mark unrun product paths affecting the conclusion NOT-VERIFIED and explain the impact. Passing checks do not prove publication or human approval.
@@ -2,9 +2,11 @@
2
2
 
3
3
  Select the actual user journey and affected capability. Reuse the App's package scripts, existing tests and prior sufficient evidence; a small source or wording change does not require the whole release chain.
4
4
 
5
- For development, run the official `nimi-app dev` launcher with Desktop supervising Electron. Attach only to the exact App's reported loopback CDP target. Renderer URLs or independently launched processes cannot prove protected access. Use the existing `--list-registrations` and explicit `--resume <selector>` when continuing the same development data; do not persist selectors or reopen by App ID/path. Plain dev requests an explicit selection when registrations exist; non-interactive runs must pass --resume. Use --new-registration only for deliberately separate App data, never as a fallback from a rejected resume. Native and installed UI use their owner-supported paths, not production CDP additions.
5
+ Distinguish installed Nimi + official Realm (the ordinary default), source Nimi + official Realm (platform contribution), and explicit source/local Realm integration. Run only one Runtime on the machine; quit it before switching installed/source or Realm. Native App commands use the active Home and do not change its Realm. Web/mobile `--realm local` selects their declared local inputs, not a primary Runtime bypass. Confirm the actual Host/environment before interpreting results. Debug Android official acceptance uses the real registered App Link; local Scheme success does not cover it.
6
6
 
7
- On Windows the project must have its Electron binary installed. If the launcher reports a missing `node_modules/electron/dist/electron.exe`, run the matched package's explicit `pnpm exec install-electron --no`, then retry the original launch. An installed npm wrapper or a successful `pnpm rebuild electron` alone does not prove that binary is present. Keep the explicit installer in the App's normal dependency setup; no empty renderer or alternate Host is needed.
7
+ For native Desktop development, run the official `nimi-app dev` launcher with Desktop supervising Electron. Attach only to the exact App's reported loopback CDP target. Renderer URLs or independently launched processes cannot prove protected access. Use the existing `--list-registrations` and explicit `--resume <selector>` when continuing the same development data; do not persist selectors or reopen by App ID/path. Plain dev requests an explicit selection when registrations exist; non-interactive runs must pass --resume. Use --new-registration only for deliberately separate App data, never as a fallback from a rejected resume. Native and installed UI use their owner-supported paths, not production CDP additions.
8
+
9
+ For native Windows development the project must have its Electron binary installed. If the launcher reports a missing `node_modules/electron/dist/electron.exe`, run the matched package's explicit `pnpm exec install-electron --no`, then retry the original launch. An installed npm wrapper or a successful `pnpm rebuild electron` alone does not prove that binary is present. Keep the explicit installer in the App's normal dependency setup; no empty renderer or alternate Host is needed.
8
10
 
9
11
  Verify the real output the user needs: a cited research result, a correctly indexed document, or a playable/exported media artifact. Check cancellation, reconnect or account change when that behavior is affected. Tests and mocks can establish a contract; they cannot replace actual AI or App acceptance.
10
12
 
@@ -19,3 +21,5 @@ Runtime uninstall removes its exact managed package after Desktop stops the Host
19
21
  Report the tested App/version, target and result, plus relevant NOT-VERIFIED paths. Tool-core checks, a representative App slice, first release/install and a later update are separate completion levels. Keep necessary local output under `.nimi/local/`; do not create another task or proof ledger.
20
22
 
21
23
  Separate results obtained now from prior actual acceptance that still applies to the same behavior and combination. Reuse sufficient evidence until a change, failure or concrete risk invalidates it; not rerunning a journey does not mean it never passed. Keep contract correctness and the user's required business result distinct from model-content quality. Maintain a current summary in existing project notes, label historical stages, and do not promote a bounded platform fix into completion of an ongoing App adaptation.
24
+
25
+ For Web, use `nimi-app dev --platform web` (or the project's declared Web entry) and its exact HTTPS origin in the browser. Official login, source admission and the first PC Home confirmation are real prerequisites; a direct browser tab is the supported Web carrier, never evidence of a native Host. Reuse existing source approval and ordinary configuration authorization across iterations. Verify a real task in the App; source startup and static build do not prove AI consumption. Do not run native pack/signing/installation checks for this Web path. Keep unrun user-account, mobile and network scenarios with the corresponding App iteration instead of opening a separate platform-wide acceptance campaign.
@@ -1,5 +1,7 @@
1
1
  # Existing project
2
2
 
3
+ Choose the actual carrier first. For an existing website, keep its UI, business services, website accounts and renderer/build owners. Declare `platform: web`, the exact `local_development.web` inputs and a `web-pnpm` build profile, then use the same `init --adopt` flow. It adds tool-owned inputs and guidance without replacing the product or adding Electron. The Desktop Host paragraphs below apply to native Desktop projects. Web clients use official scoped Runtime-client login; a site with its own accounts supplies its current verified user-context generation and ends the Nimi context on account switch or unlink.
4
+
3
5
  When starting from an earlier assessment, apply [Audit handoff](audit.md#handoff-to-implementation): reuse confirmed user decisions and sufficient evidence, and check the assumptions relevant to the next consequential change. An audit recommendation does not become a platform contract or a reason to preserve a disproved design.
4
6
 
5
7
  Before changing code, identify the upstream URL and baseline commit, license, user journeys, actual AI/auth/storage entry points, business services, helper processes and active instruction loaders. Record a short upstream/range note in the existing App README or product document; do not create another integration state file.
@@ -19,13 +21,13 @@ uncompiled. Verify a long model list and its confirmation button in the real
19
21
  App before treating an overflow or transparent dialog as a missing primitive;
20
22
  follow the Kit README rather than adding App-local overlay overrides.
21
23
 
22
- Before writing Nimi foundation wiring, use that same app-tools package to generate a minimal reference App with its own identity under `.nimi/local/`. Choose the smallest admitted feature closure that exposes the needed session, App Access, AIConfig and AI call surfaces; use `nimi-app --help` for the actual features and create options. Install the same SDK/Kit/native package combination in the reference, then run its generated setup and Desktop-supervised path. Start from its working Host, preload, renderer bridge and public client calls when integrating the existing App. Align or reuse that code; do not reconstruct these foundation pieces freely from API prose. SDK/Kit documentation defines the contracts and fills gaps in the generated implementation.
24
+ Before writing Nimi foundation wiring, use that same app-tools package to generate a minimal reference App with its own identity under `.nimi/local/`. Choose the smallest admitted feature closure that exposes the needed session, App Access, AIConfig and AI call surfaces; use `nimi-app --help` for the actual features and create options. Use the same selected package combination and carrier. For native Desktop, reuse the reference Host, preload and renderer bridge through the Desktop-supervised entry. For Web, use its admitted HTTPS source and scoped public client. For mobile, follow the existing App-owned native entry. Align or reuse that code; do not reconstruct these foundation pieces freely from API prose. SDK/Kit documentation defines the contracts and fills gaps in the generated implementation.
23
25
 
24
26
  When installation and launch are in scope, establish the reference's local installed Access baseline using the acceptance guide before attributing an installed failure to App wiring. A reference failure under the same conditions points to the toolchain or environment; a passing reference makes its wiring differences with the App the next inspection target. Direct evidence of a platform defect remains actionable. Reuse current passing reference results; repeat this baseline for first integration or affected foundation changes, not ordinary business edits. Record only the necessary result in existing project notes, with no extra proof files or state ledger. Missing prerequisites pause the dependent wiring checks, not independent product restoration.
25
27
 
26
28
  Prepare the existing App's actual pnpm/Electron Host, renderer and test/production-build commands from that integration. Preserve its framework and business code where they fit; do not make init manufacture a test success or convert a server deployment implicitly.
27
29
 
28
- Prepare the actual Electron binary as well as its npm wrapper. The matched Electron 42 package exposes `install-electron` and has no package lifecycle script, so `pnpm rebuild electron` does not install its binary. Run `pnpm exec install-electron --no` from the App. The official fresh scaffold uses `postinstall: "install-electron --no"`; an adopted App owns its existing installation hooks, so add that step to the App's normal setup without discarding other postinstall work. Do not use the installer's `--help` as a read-only probe: this version does not parse that flag.
30
+ Prepare the actual Electron binary as well as its npm wrapper. The scaffold’s selected Electron package exposes `install-electron` and has no package lifecycle script, so `pnpm rebuild electron` does not install its binary. Run `pnpm exec install-electron --no` from the App. The official fresh scaffold uses `postinstall: "install-electron --no"`; an adopted App owns its existing installation hooks, so add that step to the App's normal setup without discarding other postinstall work. Do not use the installer's `--help` as a read-only probe: this version does not parse that flag.
29
31
 
30
32
  For a Next.js or other existing renderer, declare the framework-neutral `electron-pnpm` build profile and a real `dev:renderer` package script serving the manifest's loopback origin. Init/sync preserve that command and the App's build owners. The official `dev` launcher still asks Desktop to supervise the Host; `build:electron` must produce `dist-electron/main.js`. Keep any required local backend under App lifecycle management. A Desktop that still requires the old exact Vite command must be upgraded before this project's real launch; do not add an empty Vite server or lose server routes to pass checks.
31
33
 
@@ -55,7 +57,7 @@ reference does not cover this custom-protocol path.
55
57
 
56
58
  - Renderer code can use `createNimiClient` with Kit's `createNimiLocalAppStandardShellSurface`. Node business work uses `registerNimiElectronAppBridge(...).services` from the same protected Host, fixed app commands and session invalidation callbacks. Consult the installed SDK/Kit public types for exact inputs.
57
59
  - Keep the App's tool loop, IDs, ordered tool results and any opaque continuity needed in subsequent turns. An SDK model step does not run business callbacks.
58
- - For an existing Vercel AI SDK 6 App, use the matching independent `@nimiplatform/sdk-adapter-vercel-ai` package and its Host-bound Local App factory. Read its README for image upload and complete UI message metadata; keep `useChat`/`streamText` and App-owned tools instead of rebuilding their wire protocol inside the App.
60
+ - For a Vercel AI SDK App, match the adapter’s published `ai`, `@ai-sdk/provider` and Nimi SDK peer ranges to the App’s lockfile. Include any framework-major migration in the estimate before choosing a release. Use the matching adapter’s Host-bound Local App factory. Read its README for image upload and complete UI message metadata; keep `useChat`/`streamText` and App-owned tools instead of rebuilding their wire protocol inside the App.
59
61
  - Preserve Runtime-issued embedding space across batches; do not combine incompatible results. Carry cancellation and session invalidation into outstanding work and prevent late writes to a new session.
60
62
  - Local media helpers receive bounded business inputs and an explicit environment; they do not receive Nimi credentials or a generic protected forwarding endpoint.
61
63
  - Non-AI services, such as search engines, stay App-owned with honest setup requirements. Do not turn all external HTTP into an AI bypass finding.
@@ -8,7 +8,7 @@ For an unspecified Nimi ecosystem adaptation, assess preserving the core product
8
8
 
9
9
  Pin the upstream revision and the Nimi source/package combination available to this audit. Note only local uncommitted changes relevant to a conclusion. Distinguish current source capability from what the selected installed or published packages expose.
10
10
 
11
- Read the target's nearest instructions, package manifests and actual product entry to identify its core tasks. Then establish Nimi's existing public consumption route from the selected lifecycle guidance, SDK public types/support notes, and the implicated Kit Host entry before estimating integration work. Host business services and existing framework adapters are reusable inputs, not discoveries to defer until after a broad platform search. This reading does not require installing a package or initializing the target App.
11
+ Read the target's nearest instructions, package manifests and actual product entry to identify its core tasks. Then establish Nimi's existing public consumption route from the selected lifecycle guidance, SDK public types/support notes, and the entry for the selected carrier (Kit Host for native Desktop, the scoped client for Web or mobile) before estimating integration work. Host business services and existing framework adapters are reusable inputs, not discoveries to defer until after a broad platform search. This reading does not require installing a package or initializing the target App.
12
12
 
13
13
  Trace the App's actual task and AI call paths: required inputs/outputs, tool and structured-output behavior, retrieval and persisted results, cancellation/recovery, and any helper-process or hosting boundaries that the task uses. For each material need, identify whether it is essential to the requested user task, an explicitly selected option, conditional on a provider/backend, or an implementation detail of the old foundation. Use actual consumers, defaults and activation conditions as evidence. Defaults alone do not define importance: an optional feature is required when the user's requested workflow depends on it. Do not turn every reachable code path into mandatory adaptation scope, or silently remove a selected feature to make the assessment easier.
14
14
 
@@ -18,6 +18,7 @@ Follow the unresolved dependency into its exact Nimi owner. Start with bounded f
18
18
 
19
19
  For each behavior in scope, connect the App consumer and expected result to the Nimi public contract, actual execution/carrier support and applicable conditions. A blocker must name the workflow, option or delivery stage it blocks. Separate preserving a user capability from reproducing an old provider/configuration control; a difference in controls does not by itself establish that Nimi's configuration ownership must expand. Distinguish:
20
20
 
21
+ - App Tools or dependency-resolution failures during create, init, sync or check. Inspect the running tool, declarations and resolved lock before attributing these to Runtime.
21
22
  - Existing support and the configuration or documented usage needed to use it.
22
23
  - An existing-contract implementation defect, or a missing SDK/Kit/native/framework carrier.
23
24
  - A missing exact Driver/adapter behavior, a contract-local feature/result extension, or an independent new CapabilityContract.
@@ -26,7 +27,7 @@ For each behavior in scope, connect the App consumer and expected result to the
26
27
 
27
28
  Check a proposed public call through its admission, allowed execution mode and dispatch to the required result. A request union or projection branch may still describe a path rejected by the owner. An available alternative mode is usable only if it satisfies the workflow's required interaction and lifetime. Catalog membership, a method name or a previous success alone does not prove the combination; unread code, missing setup or an unrun platform does not prove absence. A code-confirmed missing operation does not require Desktop startup to report.
28
29
 
29
- Use current Nimi authority for semantic ownership and source/tests for actual implementation. For example, distinguish the App's tool loop from Runtime model execution, a framework adapter from a provider Driver, and task data from canonical long-term Memory/Knowledge. Do not preassign every backend subsystem to Runtime or count shared SDK/Kit behavior as new App-specific work.
30
+ Use current Nimi authority for semantic ownership and source/tests for actual implementation. For example, distinguish the App's tool loop from Runtime model execution, a framework adapter from a provider Driver, and App-owned documents and retrieval indexes from Cognition V1 long-term Memory. Do not preassign every backend subsystem to Runtime or count shared SDK/Kit behavior as new App-specific work.
30
31
 
31
32
  Estimate residual work after reuse for the stated scope. Keep App integration, shared Nimi changes and environment/acceptance costs distinct. When options materially change effort, separate the viable core journey, selected extensions and conditional coverage increments rather than summing every upstream option into one headline. A full-coverage estimate is useful when clearly labeled; it is not automatically the entry cost or an accepted scope. State the effort basis, assumptions and confidence, using comparable work where available; do not equate human person-weeks with AI-assisted elapsed time. If the basis is weak, give difficulty and decisive uncertainties instead of a precise schedule. A bounded prototype is useful only when its answer could change the decision, not as another mandatory audit gate.
32
33
 
@@ -1,9 +1,13 @@
1
1
  # New project
2
2
 
3
- Use `nimi-app create` with an App ID, title and the admitted features the user's task needs. `--features all` means the tool's admitted catalog, not all Nimi Lab code. `nimi-app --help` lists the actual options and capability names.
3
+ Use `nimi-app create --platform desktop|web` with an App ID, title and the admitted features the user's task needs. `--features all` means the selected carrier's admitted catalog, not all Nimi Lab code. Web generation currently admits `studio-create` and a base-only App; mobile generation is not yet available. `nimi-app --help` lists the actual options and capability names.
4
4
 
5
5
  After creation: install dependencies, run `pnpm exec nimi-app init`, then sync/check. Init can be previewed with `--dry-run --json`. The lifecycle skill becomes project-local at init; create's package content can already be read for guidance.
6
6
 
7
- Build App-owned routes and workflows on the generated carrier. Preserve the selected App identity and direct feature selection. Use existing package test/build commands and exercise the affected real App task through the official launcher. Placeholder artwork or an empty feature list does not make a release-ready product: complete the App's portable information before production packaging.
7
+ Build App-owned routes and workflows on the generated carrier. Preserve the selected App identity and direct feature selection. Add the first business test before relying on the native scaffold’s default test command. The Web scaffold starts with a typecheck. Use existing package test/build commands and exercise the affected real App task through the official launcher. Placeholder artwork or an empty feature list does not make a release-ready product: complete the App's portable information before production packaging.
8
8
 
9
9
  Maintain the App-owned root `NIMI_APP.md` as the user introduction under the lifecycle guide. Remove `metadata.readme`; check and pack use only the fixed file, and sync never supplies missing product prose. Keep engineering setup and verification records in repository/developer documentation.
10
+
11
+ Native development normally uses installed Nimi and official Realm. The App's dev command uses the active Home. Reuse it when its packages and Realm meet the task. Runtime, SDK and Kit contributors can run source Nimi against official Realm. Choose local explicitly for Realm integration or controlled data. Coordinate with other users of the host before switching its Runtime.
12
+
13
+ Web projects use official Runtime-client login and the direct carrier. Configure their initially empty exact HTTPS origin, callback and real registered client id in `local_development.web` before init/check/dev, and browser-trusted TLS paths in .env.local. Untrusted Apps must not reuse one browser origin. Explicit local Realm inputs belong in `local_development.web.local` and require `--realm local`; ordinary developers need no local Realm. `@nimiplatform/app-tools/web` supplies the bounded coordinator. Source admission and first Home confirmation remain owner actions, not generated permissions. Web build produces files, not hosting or Runtime acceptance.
@@ -1,5 +1,15 @@
1
1
  # Release and Registry
2
2
 
3
+ ## Hosted Web
4
+
5
+ Keep the product's existing `app_id`. Set its permanent `public_slug`, run `pnpm exec nimi-app sync` and commit the managed Web workflow. A Web-only scaffold supplies `build:release`. A desktop App adding Web supplies its own browser entry and `build:web:release`, using `nimiWebViteConfig` with `release: true`. Exercise that exact build with `NIMI_WEB_VERSION` and `NIMI_WEB_ARCHIVE` before tagging. Check the ZIP's root entry, source identity and versioned assets.
6
+
7
+ Protect `web-v*` against updates/deletion and enable immutable Releases in the publisher repository. Push an authorized `web-vX.Y.Z` tag for the tested commit. With the published rc.9 workflow, if GitHub reports “no attestations found for tag” immediately after publication, rerun the failed job for the same release. Follow the [Registry's hosted Web instructions](https://github.com/nimiplatform/nimi-app-registry#remote-application-sources) to submit the version and its source in one PR. The platform operates the wildcard host and deploys after admission. A separate development origin still needs its own qualification for live Runtime use.
8
+
9
+ Verify the launch button at `https://nimi.ai/apps/<slug>`, sign in, confirm the source once in Home and exercise an actual business operation. For an App that saves results, disconnect, reconnect to the same account and primary PC, and read the saved result. Content-only updates keep the source revision. A material source change requires review and renewed consent. Before rolling back an App with persistent data, check that the older version can read data written by the newer one.
10
+
11
+ ## Native desktop
12
+
3
13
  Before public release, use public dependencies and frozen locks, complete portable App information and existing notices, and build/pack on the declared OS/architecture. Reuse `nimi-app check --production`, `test`, `build --target <target> --production`, and `pack --target <target> --production`. Local check does not establish GitHub settings or a release. Local installed-App acceptance can precede this with complete local npm tarballs and `pack --production`; follow the acceptance guide without requiring publication first.
4
14
 
5
15
  The root `LICENSE` is App-owned: a new scaffold starts it as MIT naming the author or App title, sync never rewrites it, and the App sets its own terms plus the matching `package.json` `license` identifier. Keep the scaffold-managed `licenses/nimi-app-template.txt` notice for template-derived code. The packaged root `LICENSE` must match the reviewed source file byte for byte. New scaffolds include `LICENSE -text` in `.gitattributes`; for an existing repository, retain its other attributes and add that rule before tagging. It preserves the Git blob's original bytes when Windows would otherwise convert LF to CRLF. Registry checks the exact published package against the tagged source.
@@ -1,11 +1,14 @@
1
1
  # Platform upgrade
2
2
 
3
- App Tools 0.14 defaults to SDK 0.22.2, Kit/native 0.22.1, Tauri 0.11.1 and
4
- protected-local 0.11.2. Upgrade this combination together with a matching Runtime. Existing
5
- 0.21 SDK/Kit combinations remain explicit selections; sync does not upgrade
6
- business dependencies. Every App must own a root `NIMI_APP.md`; remove the
7
- retired `metadata.readme` field. Review the SDK and Kit 0.22 migration notes
8
- for Realm media delivery, Desktop Open v2 and LocalAgent Conversation changes.
3
+ Read the selected package's `nimiScaffoldVersions` for its SDK/Kit combination
4
+ and native crate versions. Upgrade complete matching packages with the Runtime
5
+ contract in their migration notes; a numbered RC is a local candidate, not a
6
+ publication claim. Never replace an archive's content under the same version.
7
+ A compatible CLI patch may initialize the existing scaffold. Keep the bounded tool declaration and freeze its installed version in pnpm-lock.yaml. Exact pins and equivalent SDK/Kit ranges remain valid within a verified pair. Select a new pair explicitly for a contract migration.
8
+
9
+ Before first init there is no managed-file lock. If the selected patch reports changed Host source, review the differences. For unchanged files from an older creator, run init with that exact published creator or original tarball, then use the selected CLI for sync. The initialized lock gives sync the hashes for that Host. Every App owns `NIMI_APP.md`; the retired
10
+ `metadata.readme` field is unsupported. The 0.24 Integration provider context
11
+ requires Runtime-derived `consumerRef` and matching SDK/Kit/native projections.
9
12
 
10
13
  Fresh App Tools 0.13 scaffolds require Kit `^0.21.0` or a later admitted pair
11
14
  with the standard navigation contract. The combination list also contains
@@ -32,7 +35,9 @@ Read the current and selected target app-tools version matrix plus SDK/Kit migra
32
35
 
33
36
  Install the target app-tools and its exact nimi-coding first. The App-local nimi-coding executable performs its own projections, so running an old installed executable is not a target-version sync. Use the target tool for `nimi-app sync --dry-run --json`; this previews app-tools files and lists the separate owner step without pretending to preview nimi-coding's internals.
34
37
 
35
- Review App-owned instructions outside managed blocks when the upgrade changes an ownership boundary or command. Correct obsolete routing against the current owner; adding another conflicting paragraph is not a migration of those instructions.
38
+ Inspect `dependencyChanges`, `toolchainUpdates` and `retainedHostFiles` in the sync preview. On a maintained SDK/Kit combination, differing renderer and Host wiring keeps its verified file hashes so it can still consume the App's feature modules. Restore drifted managed files or migrate the Host and modules together. For Vite or Electron, review the locked version, proposed range and any manual migration. After sync, run pnpm install, check and the App build. Use pnpm audit for the wider dependency graph.
39
+
40
+ Review App-owned instructions outside managed blocks when the upgrade changes an ownership boundary or command. In older starter AGENTS files, correct the description of Cognition V1 to long-term Memory and bounded Agent Source custody, and identify App Access declarations as App-authored. Sync preserves the author's surrounding text.
36
41
 
37
42
  Upgrading app-tools does not by itself move an existing App's SDK/Kit combination: sync preserves a supported combination and check rejects an unlisted SDK x Kit pairing rather than normalizing it. Selecting a new SDK/Kit combination is a deliberate App decision. When it is made, migrate the affected App-owned API uses, run sync, then install the full normalized dependency set and regenerate the package-manager lockfile. Run check and the relevant tests/build and real journey. Fresh scaffold identity and direct features remain fixed; the tool updates derived version/matrix projections. Existing Apps continue without a fresh lock.
38
43