@donotdev/cli 0.3.8 → 0.3.9

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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
3
  "version": "0.0.8",
4
4
  "description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. Third-party optional deps are auto-detected from peerDependenciesMeta via scanInstalledPackageOptionals() — no manual constants update needed.",
5
- "lastUpdated": "2026-12-01",
5
+ "lastUpdated": "2026-12-03",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -22,7 +22,7 @@
22
22
  "@donotdev/ai": {
23
23
  "description": "AI package - provider-agnostic LLM plumbing",
24
24
  "packages": {
25
- "@donotdev/ai": "^0.3.3"
25
+ "@donotdev/ai": "^0.3.4"
26
26
  }
27
27
  },
28
28
  "@donotdev/graphql": {
@@ -52,25 +52,25 @@
52
52
  "@donotdev/billing": {
53
53
  "description": "Billing package",
54
54
  "packages": {
55
- "@donotdev/billing": "^0.3.5"
55
+ "@donotdev/billing": "^0.3.6"
56
56
  }
57
57
  },
58
58
  "@donotdev/components": {
59
59
  "description": "UI components package",
60
60
  "packages": {
61
- "@donotdev/components": "^0.3.12"
61
+ "@donotdev/components": "^0.3.13"
62
62
  }
63
63
  },
64
64
  "@donotdev/core": {
65
65
  "description": "Core framework package",
66
66
  "packages": {
67
- "@donotdev/core": "^0.3.11"
67
+ "@donotdev/core": "^0.3.14"
68
68
  }
69
69
  },
70
70
  "@donotdev/crud": {
71
71
  "description": "CRUD operations package",
72
72
  "packages": {
73
- "@donotdev/crud": "^0.3.10"
73
+ "@donotdev/crud": "^0.3.11"
74
74
  }
75
75
  },
76
76
  "@donotdev/demo": {
@@ -88,7 +88,7 @@
88
88
  "@donotdev/functions": {
89
89
  "description": "Firebase Functions package",
90
90
  "packages": {
91
- "@donotdev/functions": "^0.3.6"
91
+ "@donotdev/functions": "^0.3.7"
92
92
  }
93
93
  },
94
94
  "@donotdev/oauth": {
@@ -106,7 +106,7 @@
106
106
  "@donotdev/ui": {
107
107
  "description": "UI and routing package",
108
108
  "packages": {
109
- "@donotdev/ui": "^0.3.12"
109
+ "@donotdev/ui": "^0.3.13"
110
110
  }
111
111
  },
112
112
  "@donotdev/expo": {
@@ -500,7 +500,7 @@
500
500
  "@donotdev/cli": {
501
501
  "description": "Cli package",
502
502
  "packages": {
503
- "@donotdev/cli": "^0.3.8"
503
+ "@donotdev/cli": "^0.3.9"
504
504
  }
505
505
  },
506
506
  "@donotdev/mcp-server": {
package/dist/bin/dndev.js CHANGED
@@ -1509,7 +1509,7 @@ function registerCommand(program2, def, action) {
1509
1509
  }
1510
1510
 
1511
1511
  // packages/cli/src/bin/dndev.mjs
1512
- var CLI_VERSION = true ? "0.3.8" : "0.0.0";
1512
+ var CLI_VERSION = true ? "0.3.9" : "0.0.0";
1513
1513
  var args = process.argv.slice(2);
1514
1514
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
1515
1515
  console.log(CLI_VERSION);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -11,6 +11,7 @@ import '../config/dndev-config-asset.js';
11
11
  import '../config/dndev-config-seo.js';
12
12
  import '../config/dndev-config-env.js';
13
13
 
14
+ import type { LayoutFrame } from '@donotdev/core';
14
15
  import { NextJsAppProviders } from '@donotdev/ui/next';
15
16
 
16
17
  import '../config/providers';
@@ -26,23 +27,42 @@ interface ClientLayoutProps {
26
27
  serverCookies: string;
27
28
  /** Request Accept-Language header (`null` on cached pages) */
28
29
  acceptLanguage: string | null;
30
+ /**
31
+ * The app's server frame (`frame` of src/app/AppFrame.tsx), passed by the generated
32
+ * layouts when that file exists: header / footer rendered on the server
33
+ */
34
+ frame?: LayoutFrame;
29
35
  }
30
36
 
31
37
  /**
32
- * Client-side layout wrapper for Next.js App Router
33
- *
38
+ * Client-side layout wrapper for Next.js App Router (ClientLayout v2)
39
+ *
34
40
  * Configuration-driven architecture with smart defaults.
35
41
  * Layout preset comes from appConfig.preset (configured in config/app.ts).
36
42
  * Layout prop is for breadcrumbs and slot customizations only.
37
43
  * CSS variable overrides should be done in themes.css.
38
44
  * Override only what you need - everything else has sensible defaults.
39
- *
45
+ *
46
+ * A custom header or footer goes in src/app/AppFrame.tsx (server components, no
47
+ * 'use client'), not in `layout`: it renders on the server and never hydrates, only
48
+ * its 'use client' parts (islands: menus, cart, anything with state) do.
49
+ *
50
+ * ```tsx
51
+ * // src/app/AppFrame.tsx
52
+ * import type { LayoutFrame } from '@donotdev/core';
53
+ * import { AppHeader } from '../components/AppHeader';
54
+ * import { AppFooter } from '../components/AppFooter';
55
+ *
56
+ * export const frame: LayoutFrame = { header: <AppHeader />, footer: <AppFooter /> };
57
+ * ```
58
+ *
40
59
  * Theme detection happens client-side to avoid Next.js 16 race condition.
41
60
  */
42
61
  export function ClientLayout({
43
62
  children,
44
63
  serverCookies,
45
64
  acceptLanguage,
65
+ frame,
46
66
  }: ClientLayoutProps) {
47
67
  return (
48
68
  <div id="root">
@@ -50,12 +70,9 @@ export function ClientLayout({
50
70
  config={appConfig}
51
71
  serverCookies={serverCookies}
52
72
  acceptLanguage={acceptLanguage}
73
+ frame={frame}
53
74
  layout={{
54
75
  breadcrumbs: 'smart', // 'smart' | 'always' | 'never'
55
- header: {
56
- // end: () => <YourHeaderActions />,
57
- },
58
- // footer: () => <CustomFooter />,
59
76
  }}
60
77
  >
61
78
  {children}
@@ -63,4 +80,3 @@ export function ClientLayout({
63
80
  </div>
64
81
  );
65
82
  }
66
-
@@ -62,7 +62,6 @@ Run **`dndev --help`** for the full list. **`dndev create-app`** is interactive
62
62
 
63
63
  - **No local database.** The app runs locally against the live Supabase database. Never `--local`, never `supabase start` / `supabase db reset`.
64
64
  - **Live data:** reads OK. Live writes and migrations only on the owner's order.
65
- - **Framework changes** arrive via `dn pack --install` run from the framework repo (unpublished build). A `bun install` reverts them: re-run `dn pack`.
66
65
  - **Test** by running the app locally on the live database. Typecheck with `dn tc` once at the end of the work batch (before commit / deploy), never after each change or feature.
67
66
  - **Deploy** only on the owner's order.
68
67
 
@@ -8,6 +8,9 @@
8
8
  "dependsOn": [
9
9
  "^build"
10
10
  ],
11
+ "env": [
12
+ "DNDEV_INDEXNOW_KEY"
13
+ ],
11
14
  "outputs": [
12
15
  "*/dist/**",
13
16
  "!**/node_modules/**"