@squadbase/vantage-template 0.2.1-dev1.4d37ff2 → 0.2.1-dev1.5572f4b
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.
|
@@ -175,4 +175,5 @@ vantage check --json # { ok, errorCount, warningCount, diagnostics[]
|
|
|
175
175
|
| `MISSING_DEFAULT_EXPORT` | ページ/レイアウトにデフォルトエクスポートが無い |
|
|
176
176
|
| `INVALID_API_EXPORT` | API モジュールが大文字メソッド以外をエクスポート |
|
|
177
177
|
| `CLIENT_IMPORTS_SERVER` | クライアントが `server/` を import している |
|
|
178
|
+
| `UNTRACEABLE_SDK_CALL` | `runDefinition` の定義 ID・`runQuery` の保存クエリ ID が文字列リテラルでない(または `import * as`・値として渡すなど、ビルドが読めない使い方) |
|
|
178
179
|
| `PUBLIC_ENV_MISUSE`(warn) | `PUBLIC_*` 以外の env をクライアントで読んでいる |
|
package/base-template/AGENTS.md
CHANGED
|
@@ -37,6 +37,14 @@ UI キット・開発サーバー・API サーバー・ビルドはすべて Van
|
|
|
37
37
|
- **クライアントに届く env は `PUBLIC_` 接頭辞のものだけ。** `import.meta.env.PUBLIC_FOO`。
|
|
38
38
|
それ以外を `import.meta.env` で読むと `PUBLIC_ENV_MISUSE` 警告。シークレットは
|
|
39
39
|
`ApiContext.env`(server/ 内)にだけ届く。
|
|
40
|
+
- **画面から関数の定義・保存クエリを呼ぶときは、ID を文字列リテラルで直接書く。**
|
|
41
|
+
`runDefinition("<定義の UUID>", params)` / `runQuery("<保存クエリの UUID>", params)`
|
|
42
|
+
(`@squadbase/vantage-sdk/client` から名前で import)。ビルドがこの呼び出しを読んで「画面から呼ぶ
|
|
43
|
+
定義・保存クエリ」の一覧を作り、公開したアプリはその一覧に載ったものしか動かせない。変数・
|
|
44
|
+
組み立てた文字列・`import * as`・関数を値として渡す書き方は一覧に載せられないので
|
|
45
|
+
`UNTRACEABLE_SDK_CALL` エラーになる。条件で呼び分けるときは、分岐の両方に ID を書く。
|
|
46
|
+
`runQuery` で呼べるのは**読み取りの SQL の保存クエリだけ**(HTTP の保存クエリと書き込みは
|
|
47
|
+
`notCallable` で断られる。それらは `server/api` から呼ぶ)。
|
|
40
48
|
- **色はセマンティックトークンで書く。** `text-foreground`・`text-muted-foreground`・`bg-card`・
|
|
41
49
|
`border-border`。トークンがライト / ダークの両方を持つので `dark:` を並べる必要が無い。
|
|
42
50
|
素のパレット + `dark:`(`text-slate-900 dark:text-slate-100`)を混ぜると、その 1 か所だけ
|
package/base-template/bun.lock
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"name": "vibe-app",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@squadbase/react": "^0.1.0",
|
|
9
|
-
"@squadbase/vantage": "0.7.1-dev1.
|
|
10
|
-
"@squadbase/vantage-sdk": "0.1.2-dev1.
|
|
9
|
+
"@squadbase/vantage": "0.7.1-dev1.000cf36",
|
|
10
|
+
"@squadbase/vantage-sdk": "0.1.2-dev1.50b3caa",
|
|
11
11
|
"date-fns": "^4.1.0",
|
|
12
12
|
"lucide-react": "^0.468.0",
|
|
13
13
|
"react": "^19.3.1",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
"@floating-ui/utils": ["@floating-ui/utils@0.2.12", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="],
|
|
98
98
|
|
|
99
|
-
"@hono/node-server": ["@hono/node-server@2.1.
|
|
99
|
+
"@hono/node-server": ["@hono/node-server@2.1.11", "", { "peerDependencies": { "hono": "^4 || ^5.0.0-0" } }, "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog=="],
|
|
100
100
|
|
|
101
101
|
"@iconify/types": ["@iconify/types@2.0.0", "", {}, "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="],
|
|
102
102
|
|
|
@@ -196,9 +196,9 @@
|
|
|
196
196
|
|
|
197
197
|
"@squadbase/react": ["@squadbase/react@0.1.0", "", { "dependencies": { "zod": "^4.3.6" }, "peerDependencies": { "@types/react": "17.x || 18.x || 19.x", "react": "17.x || 18.x || 19.x" }, "optionalPeers": ["@types/react"] }, "sha512-k+Dpyj7eH+Yjydw54iEluCjYDae086d12hWgBjNMpw4wLbQGz3CrJ6Yipodg8n1cKUt7zvwddlcTHd79bgKsXg=="],
|
|
198
198
|
|
|
199
|
-
"@squadbase/vantage": ["@squadbase/vantage@0.7.1-dev1.
|
|
199
|
+
"@squadbase/vantage": ["@squadbase/vantage@0.7.1-dev1.000cf36", "", { "dependencies": { "@base-ui/react": "^1.6.0", "@hono/node-server": "^2.1.8", "@streamdown/code": "^1.1.1", "@tailwindcss/vite": "^4.3.3", "@tanstack/react-query": "^5.101.2", "@tanstack/react-router": "^1.170.17", "@tanstack/react-table": "^8.21.3", "@vitejs/plugin-react": "^6.1.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", "date-fns": "^4.1.0", "echarts": "^6.0.0", "esbuild": "0.28.1", "fflate": "^0.8.3", "hono": "^4.13.18", "html-to-image": "^1.11.13", "lucide-react": "^0.468.0", "papaparse": "^5.7.0", "picocolors": "^1.1.1", "react-day-picker": "^10.0.1", "read-excel-file": "^9.3.10", "shiki": "3.23.0", "streamdown": "^2.5.0", "tailwind-merge": "3.6.0", "tailwindcss": "^4.3.3", "tw-animate-css": "^1.0.0", "vite": "^8.3.4" }, "peerDependencies": { "react": ">=18.2.0", "react-dom": ">=18.2.0", "typescript": ">=5.0.0" }, "optionalPeers": ["typescript"], "bin": { "vantage": "dist/cli.js" } }, "sha512-wCyp5Kv4HEoqAS6XlMSXnmWCZMZ8M2K+bsMd0RhH+2nC6cm90PrnCmJMLSoohmJ5hddGnn4h11Y1tV2xoKGcUQ=="],
|
|
200
200
|
|
|
201
|
-
"@squadbase/vantage-sdk": ["@squadbase/vantage-sdk@0.1.2-dev1.
|
|
201
|
+
"@squadbase/vantage-sdk": ["@squadbase/vantage-sdk@0.1.2-dev1.50b3caa", "", {}, "sha512-551ZJ3VwCjsEFKyoqrqKFjnMCV+pyj4PbJS/j6DHxAj0HuKPbcOgUWWJuDsjzdxH0V3vNyuwQRJ1uV/J/qpKwA=="],
|
|
202
202
|
|
|
203
203
|
"@streamdown/code": ["@streamdown/code@1.1.1", "", { "dependencies": { "shiki": "^3.19.0" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0" } }, "sha512-i7HTNuDgZWb+VdrNVOam9gQhIc5MSSDXKWXgbUrn/4vSRaSMM+Rtl10MQj4wLWPNpF7p80waJsAqFP8HZfb0Jg=="],
|
|
204
204
|
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@squadbase/react": "^0.1.0",
|
|
15
|
-
"@squadbase/vantage": "0.7.1-dev1.
|
|
16
|
-
"@squadbase/vantage-sdk": "0.1.2-dev1.
|
|
15
|
+
"@squadbase/vantage": "0.7.1-dev1.000cf36",
|
|
16
|
+
"@squadbase/vantage-sdk": "0.1.2-dev1.50b3caa",
|
|
17
17
|
"date-fns": "^4.1.0",
|
|
18
18
|
"lucide-react": "^0.468.0",
|
|
19
19
|
"react": "^19.3.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squadbase/vantage-template",
|
|
3
|
-
"version": "0.2.1-dev1.
|
|
3
|
+
"version": "0.2.1-dev1.5572f4b",
|
|
4
4
|
"description": "CLI tool for initializing and customizing Squadbase Vantage projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"squadbase",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@ai-sdk/openai": "2.0.122",
|
|
51
51
|
"ai": "^5.0.52"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5572f4b95faae92c854fefe5fcb357bcbe531d1c",
|
|
54
54
|
"scripts": {
|
|
55
55
|
"sync-base": "rsync -a --delete --exclude='node_modules' --exclude='dist' --exclude='.vantage' --exclude='*.tsbuildinfo' --exclude='*.log' template/ base-template/ && mv base-template/.gitignore base-template/_gitignore",
|
|
56
56
|
"build": "pnpm run sync-base && tsup",
|