@nimiplatform/app-tools 0.13.0 → 0.14.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 (32) hide show
  1. package/README.md +18 -4
  2. package/lib/app-dependency-combinations.mjs +4 -0
  3. package/lib/app-doctor-update.mjs +3 -0
  4. package/lib/app-icons.mjs +181 -0
  5. package/lib/app-info.mjs +21 -33
  6. package/lib/app-lifecycle-guidance.mjs +1 -0
  7. package/lib/app-scaffold-profiles.mjs +27 -2
  8. package/lib/app-scaffold.mjs +6 -5
  9. package/package.json +21 -20
  10. package/skills/nimi-app-lifecycle/SKILL.md +10 -4
  11. package/skills/nimi-app-lifecycle/references/adapt.md +2 -0
  12. package/skills/nimi-app-lifecycle/references/create.md +2 -0
  13. package/skills/nimi-app-lifecycle/references/release.md +2 -0
  14. package/skills/nimi-app-lifecycle/references/upgrade-platform.md +11 -0
  15. package/templates/app-source/src/ai-studio-core/messages/en.json +6 -0
  16. package/templates/app-source/src/ai-studio-core/messages/zh.json +6 -0
  17. package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +10 -0
  18. package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +6 -2
  19. package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +3 -0
  20. package/templates/app-source/src/ai-studio-core/section-ai-testing-transcription-result.tsx +24 -7
  21. package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +24 -5
  22. package/templates/app-source/src/studio-modules/studio-create/messages/en.json +5 -0
  23. package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +5 -0
  24. package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +24 -1
  25. package/templates/app-source/src/studio-modules/studio-create/parameters.ts +2 -1
  26. package/templates/app-source/src/studio-modules/studio-create/runtime.ts +1 -0
  27. package/templates/default-starter/AGENTS.md +5 -2
  28. package/templates/default-starter/NIMI_APP.md +7 -0
  29. package/templates/default-starter/README.md +2 -0
  30. package/templates/default-starter/src/shell/App.tsx +6 -2
  31. package/templates/default-starter/src-tauri/Cargo.toml +3 -3
  32. package/templates/default-starter.manifest.json +6 -2
@@ -4,6 +4,8 @@ This standalone App was generated from an identity-neutral base combined with th
4
4
 
5
5
  Profile: `standalone`.
6
6
 
7
+ Home displays the App-owned root `NIMI_APP.md`. Maintain its purpose, first-use steps, configuration, data handling, limitations and help for actual App users. This README covers repository development. Do not declare `metadata.readme`; there is no README fallback.
8
+
7
9
  ## Code Ownership
8
10
 
9
11
  - **App-owned product code**: `src/workbench-core/**`, selected `src/capabilities/**`, `src/shell/routes/app-navigation.tsx`, and your subsequent product edits. Extend the App-owned destination catalog and use its single Kit controller for navigation position. Keep drafts, business records, and one-time actions within their respective business owners. If no feature was selected, the base starts without a sidebar or fold command.
@@ -18,10 +18,14 @@ export function App() {
18
18
  }
19
19
  function AppFrame() {
20
20
  const owner = useAppNavigation();
21
+ // Optional App-owned presentation choices keep product chrome with its owner.
22
+ const sidebarAvailable = 'sidebarAvailable' in owner ? owner.sidebarAvailable === true : hasGeneratedViews;
23
+ const locale = 'locale' in owner && (owner.locale === 'zh' || owner.locale === 'en')
24
+ ? owner.locale : navigator.language.toLowerCase().startsWith('zh') ? 'zh' : 'en';
21
25
  return (
22
26
  <div className="flex h-full min-h-0 flex-col overflow-hidden">
23
- <NimiAppChrome metadata={{ name: appTitle, version: appPackage.version, license: 'license' in appPackage && typeof appPackage.license === 'string' ? appPackage.license : undefined }} navigation={owner.navigation} navigationEnabled={owner.ready}
24
- sidebar={hasGeneratedViews && owner.ready ? { visible: owner.sidebarVisible, onVisibleChange: owner.setSidebarVisible } : undefined} />
27
+ <NimiAppChrome metadata={{ name: appTitle, version: appPackage.version, license: 'license' in appPackage && typeof appPackage.license === 'string' ? appPackage.license : undefined }} locale={locale} navigation={owner.navigation} navigationEnabled={owner.ready}
28
+ sidebar={sidebarAvailable && owner.ready ? { visible: owner.sidebarVisible, onVisibleChange: owner.setSidebarVisible } : undefined} />
25
29
  <div className="flex min-h-0 flex-1 flex-col overflow-hidden">
26
30
  <WorkbenchRuntimeGate
27
31
  appTitle={appTitle}
@@ -9,9 +9,9 @@ nimi-shell-tauri = "0.1.0"
9
9
  serde = { version = "1", features = ["derive"] }
10
10
  serde_json = "1"
11
11
  url = "2"
12
- base64 = "0.22"
13
- dirs = "6"
14
- time = "=0.3.47"
12
+ base64 = "0.23"
13
+ dirs = "7"
14
+ time = "=0.3.55"
15
15
 
16
16
  [build-dependencies]
17
17
  tauri-build = { version = "2", features = [] }
@@ -37,7 +37,11 @@
37
37
  },
38
38
  {
39
39
  "path": "README.md",
40
- "class": "scaffold-managed glue"
40
+ "class": "app-owned product code"
41
+ },
42
+ {
43
+ "path": "NIMI_APP.md",
44
+ "class": "app-owned product code"
41
45
  },
42
46
  {
43
47
  "path": "scripts/validate.mjs",
@@ -45,7 +49,7 @@
45
49
  },
46
50
  {
47
51
  "path": "SECURITY.md",
48
- "class": "scaffold-managed glue"
52
+ "class": "app-owned product code"
49
53
  },
50
54
  {
51
55
  "path": "src-tauri/build.rs",