@patodo/localapp 0.1.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.
- package/.localapp-artifact.json +2731 -0
- package/LICENSE +21 -0
- package/README.md +288 -0
- package/bin/localapp.mjs +34182 -0
- package/package.json +21 -0
- package/runtime/bootstrap/localapp-daemon-bootstrap.mjs +150 -0
- package/runtime/native/adapter-manifest.json +85 -0
- package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/Info.plist +21 -0
- package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
- package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +940 -0
- package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +128 -0
- package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/Info.plist +21 -0
- package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
- package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +940 -0
- package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +128 -0
- package/runtime/native/linux-x64/localapp-native-ipc-client.mjs +940 -0
- package/runtime/native/linux-x64/localapp-notifications +0 -0
- package/runtime/native/win32-x64/localapp-native-ipc-client.mjs +940 -0
- package/runtime/native/win32-x64/localapp-native.exe +0 -0
- package/runtime/server/.localapp-server-runtime.json +133 -0
- package/runtime/server/bin/server-cli.cjs +8343 -0
- package/runtime/server/bin/server.mjs +8 -0
- package/runtime/server/bin/worker.cjs +144339 -0
- package/runtime/server/node_modules/sql.js/dist/sql-wasm.js +185 -0
- package/runtime/server/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
- package/runtime/server/node_modules/sql.js/package.json +58 -0
- package/runtime/server/package.json +11 -0
- package/runtime/server/runner/localapp-runner.mjs +324 -0
- package/runtime/server/web/404.html +1 -0
- package/runtime/server/web/_next/static/CqtRUQyhpQ2FmEc3vaVz3/_buildManifest.js +1 -0
- package/runtime/server/web/_next/static/CqtRUQyhpQ2FmEc3vaVz3/_ssgManifest.js +1 -0
- package/runtime/server/web/_next/static/chunks/184-184da63eba05808f.js +1 -0
- package/runtime/server/web/_next/static/chunks/265-a58973dbf631dc41.js +1 -0
- package/runtime/server/web/_next/static/chunks/308-d74213c6f5179bf0.js +1 -0
- package/runtime/server/web/_next/static/chunks/416-53d48ad9442eb7b2.js +1 -0
- package/runtime/server/web/_next/static/chunks/448-280e06e915001cb5.js +1 -0
- package/runtime/server/web/_next/static/chunks/66-6f6658280a10fbca.js +1 -0
- package/runtime/server/web/_next/static/chunks/740d80ee-6c0a9504f1fd46f8.js +1 -0
- package/runtime/server/web/_next/static/chunks/86-7105ac54171494a1.js +1 -0
- package/runtime/server/web/_next/static/chunks/900-743e38de13217291.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/inbox/page-32b885c019043e48.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/layout-4b3a212263712a5c.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/analytics/page-6af9adc14ccfa925.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/apps/[name]/settings/page-8b6f809eeccdbd22.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/apps/page-7f1ddf07889da248.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/dashboard/page-a25eb621fb18491d.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/device-actions/page-e6045823829567f7.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/device-notifications/page-377ed49cf55da81d.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/favorites/page-82f292daebf98a2f.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/groups/page-fe4ed80c7b11920f.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/info/page-d5d5075eec069ce3.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/keys/page-35ed01bf39a163b6.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/layout-5481d53aae3a0ce1.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/orgs/page-44c606ff2233f1a8.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/page-f2331bbbe09541aa.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/pages/page-6bf4e160a99411ce.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/peers/page-27041dd149601002.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/recent/page-f321688d374a8ff3.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/settings/page-64e724318dc3a584.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/studio/page-a2c0c34538ac62b3.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/subscriptions/page-57cdaafe12347e32.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/system/page-96d2e1f8c2fb22b0.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/tasks/page-bf16b78ed6749d78.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/users/page-c47d4524d2a156b8.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/(dashboard)/page-f4641be7b88818a2.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/_not-found/page-f4902e6b69eebd4c.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/layout-5557bc90d966fded.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/platform-shell/[userId]/[name]/page-da0d5e71857f33d1.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/platform-shell-preview/page-52fa7e8c8b480934.js +1 -0
- package/runtime/server/web/_next/static/chunks/app/setup/page-9e29d6f66825a8f8.js +1 -0
- package/runtime/server/web/_next/static/chunks/framework-1c02a2e60068b586.js +1 -0
- package/runtime/server/web/_next/static/chunks/main-21ea4d4d10f4a256.js +1 -0
- package/runtime/server/web/_next/static/chunks/main-app-5b3c67453d8c5b99.js +1 -0
- package/runtime/server/web/_next/static/chunks/pages/_app-649f81c9fedecf29.js +1 -0
- package/runtime/server/web/_next/static/chunks/pages/_error-64e3bd84e2ecae08.js +1 -0
- package/runtime/server/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/runtime/server/web/_next/static/chunks/webpack-0bed2fdf6baa566e.js +1 -0
- package/runtime/server/web/_next/static/css/afdc0938fca59693.css +3 -0
- package/runtime/server/web/_next/static/media/013b72fa676f92e0-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
- package/runtime/server/web/_next/static/media/2b5b02fc7e511755-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/65f03d54ccadf4a8-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/7d4881bb7e1bf84d-s.p.woff2 +0 -0
- package/runtime/server/web/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/b9408752a0c24fb9-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/e038a29029a234f2-s.woff2 +0 -0
- package/runtime/server/web/_next/static/media/f639721981034f88-s.woff2 +0 -0
- package/runtime/server/web/home/redline-launch-hero.png +0 -0
- package/runtime/server/web/inbox.html +1 -0
- package/runtime/server/web/inbox.txt +27 -0
- package/runtime/server/web/index.html +1 -0
- package/runtime/server/web/index.txt +27 -0
- package/runtime/server/web/my/analytics.html +1 -0
- package/runtime/server/web/my/analytics.txt +27 -0
- package/runtime/server/web/my/apps/placeholder/settings.html +1 -0
- package/runtime/server/web/my/apps/placeholder/settings.txt +24 -0
- package/runtime/server/web/my/apps.html +1 -0
- package/runtime/server/web/my/apps.txt +27 -0
- package/runtime/server/web/my/dashboard.html +1 -0
- package/runtime/server/web/my/dashboard.txt +27 -0
- package/runtime/server/web/my/device-actions.html +1 -0
- package/runtime/server/web/my/device-actions.txt +24 -0
- package/runtime/server/web/my/device-notifications.html +1 -0
- package/runtime/server/web/my/device-notifications.txt +24 -0
- package/runtime/server/web/my/favorites.html +1 -0
- package/runtime/server/web/my/favorites.txt +27 -0
- package/runtime/server/web/my/groups.html +1 -0
- package/runtime/server/web/my/groups.txt +27 -0
- package/runtime/server/web/my/info.html +1 -0
- package/runtime/server/web/my/info.txt +27 -0
- package/runtime/server/web/my/keys.html +1 -0
- package/runtime/server/web/my/keys.txt +27 -0
- package/runtime/server/web/my/orgs.html +1 -0
- package/runtime/server/web/my/orgs.txt +27 -0
- package/runtime/server/web/my/pages.html +1 -0
- package/runtime/server/web/my/pages.txt +27 -0
- package/runtime/server/web/my/peers.html +1 -0
- package/runtime/server/web/my/peers.txt +24 -0
- package/runtime/server/web/my/recent.html +1 -0
- package/runtime/server/web/my/recent.txt +27 -0
- package/runtime/server/web/my/settings.html +1 -0
- package/runtime/server/web/my/settings.txt +27 -0
- package/runtime/server/web/my/studio.html +1 -0
- package/runtime/server/web/my/studio.txt +24 -0
- package/runtime/server/web/my/subscriptions.html +1 -0
- package/runtime/server/web/my/subscriptions.txt +27 -0
- package/runtime/server/web/my/system.html +1 -0
- package/runtime/server/web/my/system.txt +24 -0
- package/runtime/server/web/my/tasks.html +1 -0
- package/runtime/server/web/my/tasks.txt +24 -0
- package/runtime/server/web/my/users.html +1 -0
- package/runtime/server/web/my/users.txt +27 -0
- package/runtime/server/web/my.html +1 -0
- package/runtime/server/web/my.txt +27 -0
- package/runtime/server/web/platform-shell/placeholder/placeholder.html +1 -0
- package/runtime/server/web/platform-shell/placeholder/placeholder.txt +23 -0
- package/runtime/server/web/platform-shell-preview.html +1 -0
- package/runtime/server/web/platform-shell-preview.txt +23 -0
- package/runtime/server/web/setup.html +1 -0
- package/runtime/server/web/setup.txt +23 -0
- package/template/.claude/skills/agent-tool-patterns/SKILL.md +195 -0
- package/template/.claude/skills/localapp/SKILL.md +80 -0
- package/template/.claude/skills/localapp-auth/SKILL.md +299 -0
- package/template/.claude/skills/localapp-business/SKILL.md +325 -0
- package/template/.claude/skills/localapp-data/SKILL.md +381 -0
- package/template/.claude/skills/localapp-device-actions/SKILL.md +60 -0
- package/template/.claude/skills/localapp-notify/SKILL.md +118 -0
- package/template/.claude/skills/localapp-transitions/SKILL.md +238 -0
- package/template/.claude/skills/localapp-ui/SKILL.md +67 -0
- package/template/.claude/skills/localapp-upload/SKILL.md +172 -0
- package/template/AGENTS.md +33 -0
- package/template/CLAUDE.md +117 -0
- package/template/ISSUES.md +32 -0
- package/template/backend/resources/work_items/mutations.json +83 -0
- package/template/backend/resources/work_items/queries.json +83 -0
- package/template/backend/resources/work_items/schema.json +31 -0
- package/template/backend/schemas/mutations.schema.json +15 -0
- package/template/backend/schemas/queries.schema.json +36 -0
- package/template/backend/schemas/resource-schema.schema.json +25 -0
- package/template/components.json +25 -0
- package/template/index.html +12 -0
- package/template/migrations/001_work_items.sql +6 -0
- package/template/package.json +70 -0
- package/template/postcss.config.js +5 -0
- package/template/runtime/dev-shell.tsx +6398 -0
- package/template/runtime/hooks/use-mobile.ts +19 -0
- package/template/runtime/issue-reference.ts +44 -0
- package/template/runtime/lib/utils.ts +6 -0
- package/template/runtime/package.json +14 -0
- package/template/runtime/platform-capabilities.json +109 -0
- package/template/runtime/sdk/agent/package.json +51 -0
- package/template/runtime/sdk/agent/src/agent-chat.tsx +188 -0
- package/template/runtime/sdk/agent/src/assistant-ui-adapter.ts +87 -0
- package/template/runtime/sdk/agent/src/context.ts +56 -0
- package/template/runtime/sdk/agent/src/dev-bridge.ts +21 -0
- package/template/runtime/sdk/agent/src/index.ts +19 -0
- package/template/runtime/sdk/agent/src/llm-adapter.ts +263 -0
- package/template/runtime/sdk/agent/src/native-registry.ts +61 -0
- package/template/runtime/sdk/agent/src/platform-runtime.ts +164 -0
- package/template/runtime/sdk/agent/src/postmessage-bridge.ts +60 -0
- package/template/runtime/sdk/agent/src/postmessage-types.ts +150 -0
- package/template/runtime/sdk/agent/src/tools.ts +70 -0
- package/template/runtime/sdk/agent/src/types.ts +27 -0
- package/template/runtime/sdk/agent/src/use-agent.ts +139 -0
- package/template/runtime/sdk/agent/src/use-register-edit-session.ts +54 -0
- package/template/runtime/sdk/agent/src/use-register-tools.ts +92 -0
- package/template/runtime/sdk/agent/tests/platform-runtime.test.ts +154 -0
- package/template/runtime/sdk/agent/tests/postmessage-bridge.test.ts +119 -0
- package/template/runtime/sdk/agent/tests/shell-integration.test.ts +71 -0
- package/template/runtime/sdk/agent/tests/use-register-edit-session.test.tsx +125 -0
- package/template/runtime/sdk/agent/tests/use-register-tools.test.ts +208 -0
- package/template/runtime/sdk/agent/tsconfig.json +18 -0
- package/template/runtime/sdk/agent/vitest.config.ts +8 -0
- package/template/runtime/sdk/backend/package.json +15 -0
- package/template/runtime/sdk/backend/src/index.ts +92 -0
- package/template/runtime/sdk/backend/tsconfig.json +8 -0
- package/template/runtime/sdk/core/package.json +15 -0
- package/template/runtime/sdk/core/src/client.ts +317 -0
- package/template/runtime/sdk/core/src/collaboration.ts +66 -0
- package/template/runtime/sdk/core/src/desktop.ts +469 -0
- package/template/runtime/sdk/core/src/device.ts +112 -0
- package/template/runtime/sdk/core/src/index.ts +6 -0
- package/template/runtime/sdk/core/src/invalidate.ts +40 -0
- package/template/runtime/sdk/core/src/types.ts +108 -0
- package/template/runtime/sdk/core/tests/capabilities.test.ts +64 -0
- package/template/runtime/sdk/core/tests/client.test.ts +424 -0
- package/template/runtime/sdk/core/tests/collaboration.test.ts +92 -0
- package/template/runtime/sdk/core/tests/desktop.test.ts +310 -0
- package/template/runtime/sdk/core/tests/device.test.ts +69 -0
- package/template/runtime/sdk/core/tsconfig.json +17 -0
- package/template/runtime/sdk/react/package.json +34 -0
- package/template/runtime/sdk/react/src/client.ts +7 -0
- package/template/runtime/sdk/react/src/components/can.tsx +24 -0
- package/template/runtime/sdk/react/src/hooks/use-action.ts +34 -0
- package/template/runtime/sdk/react/src/hooks/use-capabilities.ts +35 -0
- package/template/runtime/sdk/react/src/hooks/use-count.ts +37 -0
- package/template/runtime/sdk/react/src/hooks/use-create.ts +37 -0
- package/template/runtime/sdk/react/src/hooks/use-delete.ts +36 -0
- package/template/runtime/sdk/react/src/hooks/use-desktop-action.ts +94 -0
- package/template/runtime/sdk/react/src/hooks/use-device-action.ts +62 -0
- package/template/runtime/sdk/react/src/hooks/use-get.ts +37 -0
- package/template/runtime/sdk/react/src/hooks/use-group-members.ts +31 -0
- package/template/runtime/sdk/react/src/hooks/use-groups.ts +31 -0
- package/template/runtime/sdk/react/src/hooks/use-list.ts +53 -0
- package/template/runtime/sdk/react/src/hooks/use-me.ts +35 -0
- package/template/runtime/sdk/react/src/hooks/use-mutation.ts +30 -0
- package/template/runtime/sdk/react/src/hooks/use-permissions.ts +37 -0
- package/template/runtime/sdk/react/src/hooks/use-platform-data.ts +94 -0
- package/template/runtime/sdk/react/src/hooks/use-query.ts +30 -0
- package/template/runtime/sdk/react/src/hooks/use-time.ts +36 -0
- package/template/runtime/sdk/react/src/hooks/use-transaction.ts +30 -0
- package/template/runtime/sdk/react/src/hooks/use-transitions.ts +82 -0
- package/template/runtime/sdk/react/src/hooks/use-update.ts +37 -0
- package/template/runtime/sdk/react/src/hooks/use-upload.ts +30 -0
- package/template/runtime/sdk/react/src/hooks/use-users.ts +31 -0
- package/template/runtime/sdk/react/src/index.ts +40 -0
- package/template/runtime/sdk/react/src/permissions.ts +94 -0
- package/template/runtime/sdk/react/tests/permissions.test.ts +176 -0
- package/template/runtime/sdk/react/tests/use-action.test.tsx +64 -0
- package/template/runtime/sdk/react/tests/use-capabilities.test.tsx +48 -0
- package/template/runtime/sdk/react/tests/use-desktop-action.test.tsx +144 -0
- package/template/runtime/sdk/react/tests/use-permissions.test.tsx +162 -0
- package/template/runtime/sdk/react/tests/use-platform-data.test.tsx +89 -0
- package/template/runtime/sdk/react/tests/use-transaction.test.tsx +65 -0
- package/template/runtime/sdk/react/tests/use-transitions.test.ts +149 -0
- package/template/runtime/sdk/react/tsconfig.json +18 -0
- package/template/runtime/sdk/react/vitest.config.ts +9 -0
- package/template/runtime/sdk/react/vitest.setup.ts +6 -0
- package/template/runtime/server-core/dist/generated/platform-capabilities.d.ts +84 -0
- package/template/runtime/server-core/dist/generated/platform-capabilities.d.ts.map +1 -0
- package/template/runtime/server-core/dist/generated/platform-capabilities.js +115 -0
- package/template/runtime/server-core/dist/generated/platform-capabilities.js.map +1 -0
- package/template/runtime/server-core/dist/index.d.ts +19 -0
- package/template/runtime/server-core/dist/index.d.ts.map +1 -0
- package/template/runtime/server-core/dist/index.js +35 -0
- package/template/runtime/server-core/dist/index.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.js +475 -0
- package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.js +65 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.js +103 -0
- package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.js +358 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.js +786 -0
- package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.js +82 -0
- package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.js +42 -0
- package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.js +144 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.js +75 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.js +85 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.js +75 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.js +78 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.js +66 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.js +322 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.js +49 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.js +67 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.js +91 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.js +69 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.js +159 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.js +102 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.js +65 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.js +226 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.js +64 -0
- package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/migrations.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/migrations.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/migrations.test.js +101 -0
- package/template/runtime/server-core/dist/lib/__tests__/migrations.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.js +69 -0
- package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/transitions.test.d.ts +2 -0
- package/template/runtime/server-core/dist/lib/__tests__/transitions.test.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/__tests__/transitions.test.js +32 -0
- package/template/runtime/server-core/dist/lib/__tests__/transitions.test.js.map +1 -0
- package/template/runtime/server-core/dist/lib/access-control.d.ts +34 -0
- package/template/runtime/server-core/dist/lib/access-control.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/access-control.js +138 -0
- package/template/runtime/server-core/dist/lib/access-control.js.map +1 -0
- package/template/runtime/server-core/dist/lib/app-api-contract.d.ts +69 -0
- package/template/runtime/server-core/dist/lib/app-api-contract.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/app-api-contract.js +57 -0
- package/template/runtime/server-core/dist/lib/app-api-contract.js.map +1 -0
- package/template/runtime/server-core/dist/lib/app-db.d.ts +486 -0
- package/template/runtime/server-core/dist/lib/app-db.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/app-db.js +2581 -0
- package/template/runtime/server-core/dist/lib/app-db.js.map +1 -0
- package/template/runtime/server-core/dist/lib/app-runtime.d.ts +28 -0
- package/template/runtime/server-core/dist/lib/app-runtime.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/app-runtime.js +56 -0
- package/template/runtime/server-core/dist/lib/app-runtime.js.map +1 -0
- package/template/runtime/server-core/dist/lib/backend-actions.d.ts +149 -0
- package/template/runtime/server-core/dist/lib/backend-actions.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/backend-actions.js +926 -0
- package/template/runtime/server-core/dist/lib/backend-actions.js.map +1 -0
- package/template/runtime/server-core/dist/lib/backend-contract.d.ts +399 -0
- package/template/runtime/server-core/dist/lib/backend-contract.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/backend-contract.js +1148 -0
- package/template/runtime/server-core/dist/lib/backend-contract.js.map +1 -0
- package/template/runtime/server-core/dist/lib/content-capabilities.d.ts +30 -0
- package/template/runtime/server-core/dist/lib/content-capabilities.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/content-capabilities.js +133 -0
- package/template/runtime/server-core/dist/lib/content-capabilities.js.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-saved-replies.d.ts +7 -0
- package/template/runtime/server-core/dist/lib/issue-saved-replies.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-saved-replies.js +22 -0
- package/template/runtime/server-core/dist/lib/issue-saved-replies.js.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-saved-views.d.ts +43 -0
- package/template/runtime/server-core/dist/lib/issue-saved-views.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-saved-views.js +201 -0
- package/template/runtime/server-core/dist/lib/issue-saved-views.js.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-task-conversion.d.ts +11 -0
- package/template/runtime/server-core/dist/lib/issue-task-conversion.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-task-conversion.js +66 -0
- package/template/runtime/server-core/dist/lib/issue-task-conversion.js.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-templates.d.ts +16 -0
- package/template/runtime/server-core/dist/lib/issue-templates.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/issue-templates.js +89 -0
- package/template/runtime/server-core/dist/lib/issue-templates.js.map +1 -0
- package/template/runtime/server-core/dist/lib/migrations.d.ts +31 -0
- package/template/runtime/server-core/dist/lib/migrations.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/migrations.js +180 -0
- package/template/runtime/server-core/dist/lib/migrations.js.map +1 -0
- package/template/runtime/server-core/dist/lib/notify-permission-sql.d.ts +21 -0
- package/template/runtime/server-core/dist/lib/notify-permission-sql.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/notify-permission-sql.js +71 -0
- package/template/runtime/server-core/dist/lib/notify-permission-sql.js.map +1 -0
- package/template/runtime/server-core/dist/lib/record-access.d.ts +34 -0
- package/template/runtime/server-core/dist/lib/record-access.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/record-access.js +81 -0
- package/template/runtime/server-core/dist/lib/record-access.js.map +1 -0
- package/template/runtime/server-core/dist/lib/runtime-errors.d.ts +28 -0
- package/template/runtime/server-core/dist/lib/runtime-errors.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/runtime-errors.js +67 -0
- package/template/runtime/server-core/dist/lib/runtime-errors.js.map +1 -0
- package/template/runtime/server-core/dist/lib/transitions.d.ts +55 -0
- package/template/runtime/server-core/dist/lib/transitions.d.ts.map +1 -0
- package/template/runtime/server-core/dist/lib/transitions.js +142 -0
- package/template/runtime/server-core/dist/lib/transitions.js.map +1 -0
- package/template/runtime/server-core/dist/types/models.d.ts +163 -0
- package/template/runtime/server-core/dist/types/models.d.ts.map +1 -0
- package/template/runtime/server-core/dist/types/models.js +3 -0
- package/template/runtime/server-core/dist/types/models.js.map +1 -0
- package/template/runtime/server-core/package.json +24 -0
- package/template/runtime/styles/preset.css +282 -0
- package/template/runtime/sync-template-command.cjs +19 -0
- package/template/runtime/sync-template.cjs +71 -0
- package/template/runtime/tsconfig.base.json +20 -0
- package/template/runtime/version.json +3 -0
- package/template/runtime/vite-plugin.mjs +309 -0
- package/template/src/App.tsx +273 -0
- package/template/src/components/ui/accordion.tsx +79 -0
- package/template/src/components/ui/alert-dialog.tsx +197 -0
- package/template/src/components/ui/alert.tsx +76 -0
- package/template/src/components/ui/aspect-ratio.tsx +11 -0
- package/template/src/components/ui/avatar.tsx +110 -0
- package/template/src/components/ui/badge.tsx +49 -0
- package/template/src/components/ui/breadcrumb.tsx +122 -0
- package/template/src/components/ui/button-group.tsx +83 -0
- package/template/src/components/ui/button.tsx +67 -0
- package/template/src/components/ui/calendar.tsx +221 -0
- package/template/src/components/ui/card.tsx +103 -0
- package/template/src/components/ui/carousel.tsx +240 -0
- package/template/src/components/ui/chart.tsx +373 -0
- package/template/src/components/ui/checkbox.tsx +31 -0
- package/template/src/components/ui/collapsible.tsx +33 -0
- package/template/src/components/ui/combobox.tsx +299 -0
- package/template/src/components/ui/command.tsx +193 -0
- package/template/src/components/ui/context-menu.tsx +261 -0
- package/template/src/components/ui/dialog.tsx +168 -0
- package/template/src/components/ui/direction.tsx +22 -0
- package/template/src/components/ui/drawer.tsx +132 -0
- package/template/src/components/ui/dropdown-menu.tsx +269 -0
- package/template/src/components/ui/empty.tsx +104 -0
- package/template/src/components/ui/field.tsx +238 -0
- package/template/src/components/ui/hover-card.tsx +42 -0
- package/template/src/components/ui/input-group.tsx +154 -0
- package/template/src/components/ui/input-otp.tsx +87 -0
- package/template/src/components/ui/input.tsx +19 -0
- package/template/src/components/ui/item.tsx +196 -0
- package/template/src/components/ui/kbd.tsx +26 -0
- package/template/src/components/ui/label.tsx +22 -0
- package/template/src/components/ui/menubar.tsx +280 -0
- package/template/src/components/ui/native-select.tsx +61 -0
- package/template/src/components/ui/navigation-menu.tsx +164 -0
- package/template/src/components/ui/pagination.tsx +129 -0
- package/template/src/components/ui/popover.tsx +87 -0
- package/template/src/components/ui/progress.tsx +31 -0
- package/template/src/components/ui/radio-group.tsx +42 -0
- package/template/src/components/ui/resizable.tsx +50 -0
- package/template/src/components/ui/scroll-area.tsx +53 -0
- package/template/src/components/ui/select.tsx +192 -0
- package/template/src/components/ui/separator.tsx +26 -0
- package/template/src/components/ui/sheet.tsx +145 -0
- package/template/src/components/ui/sidebar.tsx +700 -0
- package/template/src/components/ui/skeleton.tsx +13 -0
- package/template/src/components/ui/slider.tsx +59 -0
- package/template/src/components/ui/sonner.tsx +47 -0
- package/template/src/components/ui/spinner.tsx +10 -0
- package/template/src/components/ui/switch.tsx +33 -0
- package/template/src/components/ui/table.tsx +114 -0
- package/template/src/components/ui/tabs.tsx +90 -0
- package/template/src/components/ui/textarea.tsx +18 -0
- package/template/src/components/ui/toggle-group.tsx +89 -0
- package/template/src/components/ui/toggle.tsx +45 -0
- package/template/src/components/ui/tooltip.tsx +57 -0
- package/template/src/hooks/use-mobile.ts +3 -0
- package/template/src/index.css +4 -0
- package/template/src/lib/utils.ts +3 -0
- package/template/src/main.tsx +10 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/template.gitignore +10 -0
- package/template/template.npmrc +1 -0
- package/template/tests/agent-context.test.ts +69 -0
- package/template/tests/agent-guidance-template.test.ts +49 -0
- package/template/tests/agent-runtime.test.ts +198 -0
- package/template/tests/agent-tools.test.ts +150 -0
- package/template/tests/agent-use-agent.test.ts +86 -0
- package/template/tests/assistant-ui-adapter.test.ts +211 -0
- package/template/tests/business-modeling-template.test.ts +71 -0
- package/template/tests/client.test.ts +382 -0
- package/template/tests/dev-issue-search-suggestions.test.ts +36 -0
- package/template/tests/dev-shell-context.test.tsx +40 -0
- package/template/tests/dev-shell-template.test.ts +2593 -0
- package/template/tests/invalidation.test.ts +126 -0
- package/template/tests/main-tsx.test.ts +28 -0
- package/template/tests/media-preview-template.test.ts +21 -0
- package/template/tests/mutations.test.ts +224 -0
- package/template/tests/react.test.ts +302 -0
- package/template/tests/redirect.test.ts +51 -0
- package/template/tests/skill-docs.test.ts +76 -0
- package/template/tests/state-transitions-template.test.ts +61 -0
- package/template/tests/template-ui.test.ts +145 -0
- package/template/tests/upload.test.ts +143 -0
- package/template/tests/vite-plugin.test.ts +426 -0
- package/template/tests/vite-proxy-security.test.ts +153 -0
- package/template/tsconfig.json +11 -0
- package/template/vite.config.ts +7 -0
- package/template/vitest.config.ts +16 -0
- package/template/vitest.setup.ts +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# LocalApp 应用开发约定
|
|
2
|
+
|
|
3
|
+
这是一个由统一 LocalApp Server 托管的 React + TypeScript 应用。开发、发布和本地运行使用同一套 Server API;不要实现第二套后端或把本机状态写到系统临时目录。
|
|
4
|
+
|
|
5
|
+
## 本地闭环
|
|
6
|
+
|
|
7
|
+
所有生成的 Server 数据、上传/下载文件和手工验收产物放在项目自己的 `tmp/` 下。修改后执行:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm run build
|
|
11
|
+
localapp check --json
|
|
12
|
+
localapp app install --target <server-profile>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
安装命令会构建当前项目并把应用包写入指定 Server。应用功能必须从正式 `/<owner>/<app>/` 路径验收;raw `/serve/` 路径仅用于 API 或静态资源诊断。使用应用内 Browser 检查 DOM、console、核心交互和权限,不以构建成功代替验收。
|
|
16
|
+
|
|
17
|
+
migration 与 backend contract 由 `localapp check` 在安装前验证。运行中应用的数据重置、快照和恢复由 Dev Toolkit 调用当前统一 Server 完成,不要另起应用私有后端。
|
|
18
|
+
|
|
19
|
+
离线 schema 检查数据库固定放在 `tmp/localapp-schema/schema.db`,不要复用运行时数据库。
|
|
20
|
+
|
|
21
|
+
## 通用 Device Actions
|
|
22
|
+
|
|
23
|
+
需要在“当前点击按钮的这台电脑”执行本机操作时,使用 SDK 的 `device.run()`。请求只声明完成任务所需的最小权限,例如 `filesystemWrite: [selectedRoot]`;不要把凭据、脚本或目标路径塞进 `localapp://` scheme。激活前向用户展示标题、描述、权限和将要修改的路径。
|
|
24
|
+
|
|
25
|
+
Device Action 脚本是当前操作系统用户代码:保持输入校验、路径边界、幂等和结果类型稳定;只有明确需要时才申请 `childProcess`,因为它等价于允许执行当前用户权限下的任意子进程。通用写法见 `.claude/skills/localapp-device-actions/SKILL.md`。
|
|
26
|
+
|
|
27
|
+
## 应用代码边界
|
|
28
|
+
|
|
29
|
+
- 数据库结构写在 `migrations/`,复杂读写写成 backend named SQL;前端通过 SDK hooks、`client.query()` 和 `client.mutate()` 调用。
|
|
30
|
+
- 文件上传使用 `useUpload()`,下载使用 SDK 返回的 authenticated content URL;原始文件内容不进入 manifest。
|
|
31
|
+
- PDF 预览使用模板已固定的 `react-pdf` 与 `pdfjs-dist`,图片预览使用 `yet-another-react-lightbox` 或等价可访问组件,并清理 object URL。
|
|
32
|
+
- 业务状态使用 `manifest.business` 与 named mutation/transition,权限由 Server 后端执行,前端权限组件只负责展示。
|
|
33
|
+
- 应用专属的目录、市场元数据和外部工具适配器属于应用自身,不修改通用 Server 或 Device Action skill。
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# LocalApp 应用开发约定
|
|
2
|
+
|
|
3
|
+
本仓库是一个由统一 LocalApp Server 托管的 React / TypeScript 应用。应用只维护界面、migration、backend contract 和业务规则;用户、登录、权限、文件、通知、Issue、备份和同步由 Server 提供。
|
|
4
|
+
|
|
5
|
+
## 标准工作流
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install
|
|
9
|
+
localapp dev
|
|
10
|
+
localapp check --json
|
|
11
|
+
localapp app install --target local
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`localapp dev` 用于开发;`check` 必须在发布前通过;`app install` 会构建并安装到明确的 Server profile。远端发布使用同一流程:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
localapp login https://localapp.example.com --api-key <key> --profile production
|
|
18
|
+
localapp app install --target production
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
CLI profile 保存目标 Server 的 API Key。应用源码、Scheme URL、浏览器日志和提交记录中不得出现 API Key。
|
|
22
|
+
|
|
23
|
+
## 验收入口
|
|
24
|
+
|
|
25
|
+
正式应用 URL 是 `/<owner>/<app>/`(完整形态为 `http://<server-origin>/<userId>/<pageName>/`)。必须从该入口验证 Platform Shell、登录态、DOM、console、核心读写和权限边界。`/serve/<owner>/<app>/` 是 raw app resource/API base,只用于诊断,不作为应用功能验收入口。
|
|
26
|
+
|
|
27
|
+
最终本地验收使用 `browser:control-in-app-browser`。所有生成项目、Server 数据、上传和下载文件放在仓库 `tmp/` 下,不写系统临时目录。
|
|
28
|
+
|
|
29
|
+
## 托管模板
|
|
30
|
+
|
|
31
|
+
`.localapp/runtime/` 与 `.claude/skills/localapp*/` 由 CLI 管理,不要手工 patch:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
localapp sync-template
|
|
35
|
+
localapp sync-template --quiet
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
需要永久自行维护时运行 `localapp eject-template`。该操作不可逆;完成后不能再次同步托管模板。
|
|
39
|
+
|
|
40
|
+
## 数据与后端契约
|
|
41
|
+
|
|
42
|
+
LocalApp 是 named SQL-first 平台:优先使用注册的 query、mutation 和 transition。不要创建 `backend/actions/` 作为 raw SQL 或任意服务端代码逃生口;平台原语不足时,应反馈平台补齐原语。
|
|
43
|
+
|
|
44
|
+
先写 `migrations/*.sql`,再维护 `backend/resources/<resource>/`:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
backend/resources/<resource>/
|
|
48
|
+
├── schema.json
|
|
49
|
+
├── queries.json
|
|
50
|
+
└── mutations.json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Query 只做参数化读取、分页和聚合。
|
|
54
|
+
- Mutation 承载经过权限检查的写入;多步写入使用事务 mutation。
|
|
55
|
+
- `access`、参数 schema、SQL 和 result budget 都是契约的一部分。
|
|
56
|
+
- 业务表必须保存资源 owner 字段,并让 contract 按登录用户过滤。
|
|
57
|
+
- 不要拼接 SQL,不要信任浏览器传入的 owner、角色或文件路径。
|
|
58
|
+
- migration 和 contract 的一致性由 `localapp check` 验证。
|
|
59
|
+
|
|
60
|
+
## 业务建模与状态流转
|
|
61
|
+
|
|
62
|
+
实现申请、审批、分配、目录等业务应用前,先阅读业务应用建模 skill:`.claude/skills/localapp-business/SKILL.md`。明确 owner、参与者、状态字段、记录级访问和允许的操作后,再写 UI。
|
|
63
|
+
|
|
64
|
+
业务状态变化使用 Server transition API,不用普通 update 绕过状态机。状态流转、按钮可见性和权限规则见 `.claude/skills/localapp-transitions/SKILL.md`。
|
|
65
|
+
|
|
66
|
+
## SDK 与身份
|
|
67
|
+
|
|
68
|
+
只从 `@localapp/sdk` 或 `@localapp/sdk-react` 使用平台能力。不要硬编码 Server origin、用户 ID、`/serve/` 前缀或认证 header。
|
|
69
|
+
|
|
70
|
+
- 未登录时显示明确登录入口。
|
|
71
|
+
- owner-only、member 和 public 行为分别验证。
|
|
72
|
+
- 页面上的缓存与 localStorage 不能替代 Server 权限。
|
|
73
|
+
- 通知先进入 Web 收件箱;应用只创建平台通知,不直接调用系统通知 API。
|
|
74
|
+
|
|
75
|
+
## 文件、图片与 PDF
|
|
76
|
+
|
|
77
|
+
上传使用 SDK content API,数据库只保存受保护的 file key、文件名、MIME、大小和业务 owner。下载和预览使用 SDK 返回的 authenticated content URL。
|
|
78
|
+
|
|
79
|
+
- 校验 MIME、大小和文件名;不相信扩展名。
|
|
80
|
+
- 图片必须有 alt 文本和可关闭的键盘灯箱。
|
|
81
|
+
- PDF 使用模板固定的 `react-pdf` / `pdfjs-dist` worker,提供 loading、错误、页码和前后翻页状态。
|
|
82
|
+
- 文件变化或组件卸载时释放 object URL。
|
|
83
|
+
- 不把用户上传内容打进 `.localapp` 应用包。
|
|
84
|
+
|
|
85
|
+
允许的预览类型包括 `png/jpg/jpeg/gif/webp/svg/pdf`。应用包安装前拉取生产快照只能由显式的数据同步流程完成,不能被普通安装或运行时 reset 隐式触发。运行时 reset 只重新应用当前已安装版本的 migrations;`db/seeds/dev.sql` 仅供应用自己的离线测试工具显式使用,当前 `localapp` CLI 不提供数据库 reset 命令。
|
|
86
|
+
|
|
87
|
+
## UI 组件
|
|
88
|
+
|
|
89
|
+
优先复用 shadcn/ui 基础组件,应用内从 `@/components/ui` 引入。组合复杂交互前阅读 `.claude/skills/localapp-ui/SKILL.md`,保留键盘、焦点、loading、empty 和 error 状态。
|
|
90
|
+
|
|
91
|
+
## Device Actions
|
|
92
|
+
|
|
93
|
+
需要在“当前点击按钮的电脑”执行本机动作时,使用通用 Device Action SDK。Web 只获取短期 `localapp://` 激活票据;脚本、正文、API Key 和依赖不得进入 Scheme URL。
|
|
94
|
+
|
|
95
|
+
- 首次发布者或权限扩展必须在本机 Server 页面确认。
|
|
96
|
+
- 权限只声明必要的文件目录和子进程能力。
|
|
97
|
+
- 不添加设备选择器、远程执行通道或应用私有 daemon。
|
|
98
|
+
|
|
99
|
+
## 对等同步
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
localapp app sync --target local --peer office
|
|
103
|
+
localapp app sync --target local --peer office --with-data --confirm-app <exact-name>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
默认只同步应用包、manifest、migration 和 backend contract。`--with-data` 才整体替换目标应用数据库和文件;目标端会先备份并在失败时回滚。用户、权限和 API Key 不自动同步。
|
|
107
|
+
|
|
108
|
+
## 完成标准
|
|
109
|
+
|
|
110
|
+
提交前至少满足:
|
|
111
|
+
|
|
112
|
+
1. `npm test` 与应用测试通过。
|
|
113
|
+
2. `localapp check --json` 返回 `success: true`。
|
|
114
|
+
3. `localapp app install --target <profile>` 成功,并由结果中的 `serverUrl`、`ownerId`、`name` 组成正式 URL。
|
|
115
|
+
4. 应用内 Browser 的 DOM 与 console 无未解释错误。
|
|
116
|
+
5. 核心创建、读取、更新、删除、上传/下载和权限路径按本应用范围通过。
|
|
117
|
+
6. 没有凭据、运行数据或仓库外临时路径进入应用包与提交。
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# 应用 Issue 能力
|
|
2
|
+
|
|
3
|
+
应用的 Issue 工作台由 LocalApp PlatformShell/DevShell 提供。不要在业务应用中复制 Issue CRUD、评论、附件或协作元数据 UI,也不要修改 `.localapp/runtime` 来补接口。
|
|
4
|
+
|
|
5
|
+
## 本地开发
|
|
6
|
+
|
|
7
|
+
运行 `npm run dev` 或 `localapp dev` 后,Issue 使用项目内启动的统一 LocalApp Server:
|
|
8
|
+
|
|
9
|
+
- Server 根目录:`tmp/localapp-dev/server/`
|
|
10
|
+
- 数据库、文件和截图:由该 Server 按应用隔离管理
|
|
11
|
+
- 默认身份:该 Server 中的 `dev-user` owner;Dev Toolkit 可模拟同一 Server 内的其他用户
|
|
12
|
+
- 网络要求:Issue 列表、创建、评论、附件、标签、负责人和订阅均不要求连接远程 Server
|
|
13
|
+
|
|
14
|
+
Dev Toolkit 可以切换身份。权限检查以当前 LocalApp Server 的开发上下文为准,不能通过请求 body 伪造 reporter、评论作者或订阅用户。
|
|
15
|
+
|
|
16
|
+
每个 Server 都有独立的 Issue 数据,不自动同步。`localapp sync --force` 只恢复 CLI runtime,不删除 `tmp/localapp-dev/server/` 中的数据或附件。同步 runtime 后按 CLI 提示重新运行包管理器安装,以刷新 `node_modules` 中的本地 runtime 链接。
|
|
17
|
+
|
|
18
|
+
## Hosted
|
|
19
|
+
|
|
20
|
+
安装到任意 Server 后,应用都使用该 Server 的应用数据库保存 Issue 元数据,文件与截图通过该 Server 的 content storage 保存;远程部署可配置 MinIO。应用只使用 Shell 与公开 Issue API,不读取 `_issue_*` 系统表或存储 key。
|
|
21
|
+
|
|
22
|
+
权限边界:owner 管理标签和负责人;reporter 管理自己的 Issue 内容与状态;评论只允许作者编辑或删除;每个用户只管理自己的订阅。前端隐藏按钮不是授权,服务端会逐操作检查。
|
|
23
|
+
|
|
24
|
+
## 快捷键与附件
|
|
25
|
+
|
|
26
|
+
- `/` 聚焦列表搜索,`c` 新建,`Escape` 返回或关闭。
|
|
27
|
+
- Markdown 编辑器支持 `Control/Command+B`、`Control/Command+I`、`Control/Command+K`。
|
|
28
|
+
- 输入控件内不会触发全局快捷键。
|
|
29
|
+
- 支持选择、拖拽和粘贴附件;单文件上限 25 MiB。
|
|
30
|
+
- 上传中或失败附件会阻止提交,可重试或移除。
|
|
31
|
+
|
|
32
|
+
Issue API 异常必须显示面板内错误。不要直接对响应调用 `response.json()`;平台客户端会先验证状态和 JSON 类型,将 HTML/断网错误统一转换为“Issue 服务暂不可用”。
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://localapp.dev/schemas/backend/mutations.schema.json",
|
|
3
|
+
"mutations": {
|
|
4
|
+
"$work_items.create": {
|
|
5
|
+
"kind": "mutation",
|
|
6
|
+
"sql": "INSERT INTO work_items (title, status, created_by) VALUES (:title, :status, :currentUserId)",
|
|
7
|
+
"params": {
|
|
8
|
+
"title": { "type": "string", "required": true },
|
|
9
|
+
"status": { "type": "string", "enum": ["todo", "doing", "done"] }
|
|
10
|
+
},
|
|
11
|
+
"access": "authenticated",
|
|
12
|
+
"security": {
|
|
13
|
+
"mode": "generated",
|
|
14
|
+
"template": "authenticated-v1",
|
|
15
|
+
"resource": "work_items",
|
|
16
|
+
"config": {},
|
|
17
|
+
"digest": "sha256:982417ac22872f0b0e48dd9c410a998ec4b7fb43163a58686d827ca533cf6f40"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"$work_items.update": {
|
|
21
|
+
"kind": "mutation",
|
|
22
|
+
"sql": "UPDATE work_items SET title = :title, status = :status WHERE id = :id",
|
|
23
|
+
"params": {
|
|
24
|
+
"id": { "type": "number", "required": true },
|
|
25
|
+
"title": { "type": "string", "required": true },
|
|
26
|
+
"status": { "type": "string", "required": true, "enum": ["todo", "doing", "done"] }
|
|
27
|
+
},
|
|
28
|
+
"access": "authenticated",
|
|
29
|
+
"security": {
|
|
30
|
+
"mode": "generated",
|
|
31
|
+
"template": "authenticated-v1",
|
|
32
|
+
"resource": "work_items",
|
|
33
|
+
"config": {},
|
|
34
|
+
"digest": "sha256:b71c542a4fa372e2332a48e5b2e9a69bfc8df7211bd96cb6d2bbcc43b43f6742"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"$work_items.delete": {
|
|
38
|
+
"kind": "mutation",
|
|
39
|
+
"sql": "DELETE FROM work_items WHERE id = :id AND created_by = :currentUserId",
|
|
40
|
+
"params": {
|
|
41
|
+
"id": { "type": "number", "required": true }
|
|
42
|
+
},
|
|
43
|
+
"access": "authenticated",
|
|
44
|
+
"security": {
|
|
45
|
+
"mode": "generated",
|
|
46
|
+
"template": "owner-delete-v1",
|
|
47
|
+
"resource": "work_items",
|
|
48
|
+
"config": { "identityField": "created_by" },
|
|
49
|
+
"digest": "sha256:42ad34c17b3c8c1778c13236724b18c95868dde156104231acff9e67830426a8"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"$work_items.start": {
|
|
53
|
+
"kind": "mutation",
|
|
54
|
+
"sql": "UPDATE work_items SET status = 'doing' WHERE id = :id AND status = 'todo'",
|
|
55
|
+
"params": {
|
|
56
|
+
"id": { "type": "number", "required": true }
|
|
57
|
+
},
|
|
58
|
+
"access": "authenticated",
|
|
59
|
+
"security": {
|
|
60
|
+
"mode": "generated",
|
|
61
|
+
"template": "authenticated-v1",
|
|
62
|
+
"resource": "work_items",
|
|
63
|
+
"config": {},
|
|
64
|
+
"digest": "sha256:8d03430ecdd3283fc62bb6fe6b1adf6e50647dbfd27df7e7bfdb04ee84d86531"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"$work_items.complete": {
|
|
68
|
+
"kind": "mutation",
|
|
69
|
+
"sql": "UPDATE work_items SET status = 'done' WHERE id = :id AND status = 'doing'",
|
|
70
|
+
"params": {
|
|
71
|
+
"id": { "type": "number", "required": true }
|
|
72
|
+
},
|
|
73
|
+
"access": "authenticated",
|
|
74
|
+
"security": {
|
|
75
|
+
"mode": "generated",
|
|
76
|
+
"template": "authenticated-v1",
|
|
77
|
+
"resource": "work_items",
|
|
78
|
+
"config": {},
|
|
79
|
+
"digest": "sha256:1a9cf9dd88903127ec6d056ca0bf11184b7e041440f72555ba889806af3bcbbb"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://localapp.dev/schemas/backend/queries.schema.json",
|
|
3
|
+
"queries": {
|
|
4
|
+
"$work_items.list": {
|
|
5
|
+
"kind": "query",
|
|
6
|
+
"sql": "SELECT * FROM work_items ORDER BY id DESC LIMIT :limit OFFSET :offset",
|
|
7
|
+
"params": {
|
|
8
|
+
"limit": { "type": "number", "required": true },
|
|
9
|
+
"offset": { "type": "number", "required": true }
|
|
10
|
+
},
|
|
11
|
+
"result": { "mode": "page", "maxRows": 100, "maxBytes": 65536 },
|
|
12
|
+
"access": "authenticated",
|
|
13
|
+
"security": {
|
|
14
|
+
"mode": "generated",
|
|
15
|
+
"template": "authenticated-v1",
|
|
16
|
+
"resource": "work_items",
|
|
17
|
+
"config": {},
|
|
18
|
+
"digest": "sha256:fb685b9370cf289a0b8efc2857f062a11b7cb5436220f858715346bfaae961cc"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"$work_items.count": {
|
|
22
|
+
"kind": "query",
|
|
23
|
+
"sql": "SELECT COUNT(*) AS count FROM work_items",
|
|
24
|
+
"params": {},
|
|
25
|
+
"result": { "mode": "aggregate", "maxRows": 1, "maxBytes": 4096 },
|
|
26
|
+
"access": "authenticated",
|
|
27
|
+
"security": {
|
|
28
|
+
"mode": "generated",
|
|
29
|
+
"template": "authenticated-v1",
|
|
30
|
+
"resource": "work_items",
|
|
31
|
+
"config": {},
|
|
32
|
+
"digest": "sha256:b55c286c41d798ac2cfc78b729b64cee4ee58e4b16f7e330d1fc4a04c3007ba5"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"$work_items.get": {
|
|
36
|
+
"kind": "query",
|
|
37
|
+
"sql": "SELECT * FROM work_items WHERE id = :id",
|
|
38
|
+
"params": {
|
|
39
|
+
"id": { "type": "number", "required": true }
|
|
40
|
+
},
|
|
41
|
+
"result": { "mode": "single", "maxRows": 1, "maxBytes": 8192 },
|
|
42
|
+
"access": "authenticated",
|
|
43
|
+
"security": {
|
|
44
|
+
"mode": "generated",
|
|
45
|
+
"template": "authenticated-v1",
|
|
46
|
+
"resource": "work_items",
|
|
47
|
+
"config": {},
|
|
48
|
+
"digest": "sha256:6bf8e8a70f128ad0f228101c5684df78936177861f9def2c645467d441f8dbcd"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"work_items.mine": {
|
|
52
|
+
"kind": "query",
|
|
53
|
+
"sql": "SELECT * FROM work_items WHERE created_by = :currentUserId ORDER BY id DESC LIMIT :limit OFFSET :offset",
|
|
54
|
+
"params": {
|
|
55
|
+
"limit": { "type": "number", "required": true },
|
|
56
|
+
"offset": { "type": "number", "required": true }
|
|
57
|
+
},
|
|
58
|
+
"result": { "mode": "page", "maxRows": 100, "maxBytes": 65536 },
|
|
59
|
+
"access": "authenticated",
|
|
60
|
+
"security": {
|
|
61
|
+
"mode": "generated",
|
|
62
|
+
"template": "authenticated-v1",
|
|
63
|
+
"resource": "work_items",
|
|
64
|
+
"config": {},
|
|
65
|
+
"digest": "sha256:4669335c90a90bb68ba423f56571ad45205d7847e62159feeeaf99fa765144ed"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"work_items.dashboard": {
|
|
69
|
+
"kind": "query",
|
|
70
|
+
"sql": "SELECT status, COUNT(*) AS count FROM work_items GROUP BY status ORDER BY status",
|
|
71
|
+
"params": {},
|
|
72
|
+
"result": { "mode": "aggregate", "maxRows": 20, "maxBytes": 8192 },
|
|
73
|
+
"access": "authenticated",
|
|
74
|
+
"security": {
|
|
75
|
+
"mode": "generated",
|
|
76
|
+
"template": "authenticated-v1",
|
|
77
|
+
"resource": "work_items",
|
|
78
|
+
"config": {},
|
|
79
|
+
"digest": "sha256:6acd7c20bbfcf789e14e4744bff2a14f7b1310bd9e8868254771a37bff23f60f"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://localapp.dev/schemas/backend/resource-schema.schema.json",
|
|
3
|
+
"name": "work_items",
|
|
4
|
+
"fields": {
|
|
5
|
+
"id": { "type": "number" },
|
|
6
|
+
"title": { "type": "string", "constraints": { "required": true } },
|
|
7
|
+
"status": { "type": "string", "constraints": { "required": true } },
|
|
8
|
+
"created_by": { "type": "string" }
|
|
9
|
+
},
|
|
10
|
+
"business": {
|
|
11
|
+
"ownerField": "created_by",
|
|
12
|
+
"statusField": "status",
|
|
13
|
+
"defaultFields": {
|
|
14
|
+
"status": {
|
|
15
|
+
"defaultValue": "todo"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"enums": {
|
|
19
|
+
"status": ["todo", "doing", "done"]
|
|
20
|
+
},
|
|
21
|
+
"transitions": [
|
|
22
|
+
{ "name": "start", "label": "开始", "from": ["todo"], "to": "doing" },
|
|
23
|
+
{ "name": "complete", "label": "完成", "from": ["doing"], "to": "done" }
|
|
24
|
+
],
|
|
25
|
+
"recordAccess": {
|
|
26
|
+
"read": "owner",
|
|
27
|
+
"update": "owner",
|
|
28
|
+
"delete": "owner"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://localapp.dev/schemas/backend/mutations.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["$schema", "mutations"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://localapp.dev/schemas/backend/mutations.schema.json"
|
|
10
|
+
},
|
|
11
|
+
"mutations": {
|
|
12
|
+
"type": "object"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://localapp.dev/schemas/backend/queries.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["$schema", "queries"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://localapp.dev/schemas/backend/queries.schema.json"
|
|
10
|
+
},
|
|
11
|
+
"queries": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["kind", "sql", "params"],
|
|
16
|
+
"additionalProperties": true,
|
|
17
|
+
"properties": {
|
|
18
|
+
"kind": { "const": "query" },
|
|
19
|
+
"sql": { "type": "string", "minLength": 1 },
|
|
20
|
+
"params": { "type": "object" },
|
|
21
|
+
"access": { "type": "string" },
|
|
22
|
+
"result": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["mode"],
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"mode": { "enum": ["page", "single", "aggregate", "bounded"] },
|
|
28
|
+
"maxRows": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
29
|
+
"maxBytes": { "type": "integer", "minimum": 1, "maximum": 1048576 }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://localapp.dev/schemas/backend/resource-schema.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["$schema", "name"],
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"const": "https://localapp.dev/schemas/backend/resource-schema.schema.json"
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1
|
|
14
|
+
},
|
|
15
|
+
"fields": {
|
|
16
|
+
"type": "object"
|
|
17
|
+
},
|
|
18
|
+
"business": {
|
|
19
|
+
"type": "object"
|
|
20
|
+
},
|
|
21
|
+
"routeAccess": {
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "radix-nova",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "src/index.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"iconLibrary": "lucide",
|
|
14
|
+
"rtl": false,
|
|
15
|
+
"aliases": {
|
|
16
|
+
"components": "@/components",
|
|
17
|
+
"utils": "@/lib/utils",
|
|
18
|
+
"ui": "@/components/ui",
|
|
19
|
+
"lib": "@/lib",
|
|
20
|
+
"hooks": "@/hooks"
|
|
21
|
+
},
|
|
22
|
+
"menuColor": "default",
|
|
23
|
+
"menuAccent": "subtle",
|
|
24
|
+
"registries": {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>LocalApp App</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "localapp-app",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=24"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "localapp dev",
|
|
11
|
+
"dev:vite": "vite",
|
|
12
|
+
"build": "tsc -b && vite build",
|
|
13
|
+
"preview": "vite preview",
|
|
14
|
+
"test": "vitest run",
|
|
15
|
+
"postinstall": "node .localapp/runtime/sync-template.cjs"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@assistant-ui/react": "^0.14.7",
|
|
19
|
+
"@base-ui/react": "^1.5.0",
|
|
20
|
+
"@earendil-works/pi-agent-core": "^0.75.5",
|
|
21
|
+
"@earendil-works/pi-ai": "^0.75.5",
|
|
22
|
+
"@localapp/server-core": "file:./.localapp/runtime/server-core",
|
|
23
|
+
"@localapp/sdk": "file:./.localapp/runtime/sdk/core",
|
|
24
|
+
"@localapp/sdk-react": "file:./.localapp/runtime/sdk/react",
|
|
25
|
+
"@localapp/app-kit": "file:./.localapp/runtime",
|
|
26
|
+
"class-variance-authority": "^0.7.1",
|
|
27
|
+
"clsx": "^2.1.1",
|
|
28
|
+
"cmdk": "^1.1.1",
|
|
29
|
+
"date-fns": "^4.4.0",
|
|
30
|
+
"embla-carousel-react": "^8.6.0",
|
|
31
|
+
"input-otp": "^1.4.2",
|
|
32
|
+
"lucide-react": "^1.18.0",
|
|
33
|
+
"next-themes": "^0.4.6",
|
|
34
|
+
"radix-ui": "^1.5.0",
|
|
35
|
+
"react": "^18.3.0",
|
|
36
|
+
"react-day-picker": "^10.0.1",
|
|
37
|
+
"react-dom": "^18.3.0",
|
|
38
|
+
"react-markdown": "^10.1.0",
|
|
39
|
+
"react-pdf": "10.4.1",
|
|
40
|
+
"remark-parse": "^11.0.0",
|
|
41
|
+
"react-resizable-panels": "^4.11.2",
|
|
42
|
+
"recharts": "3.8.0",
|
|
43
|
+
"remark-gfm": "^4.0.1",
|
|
44
|
+
"unified": "^11.0.5",
|
|
45
|
+
"pdfjs-dist": "5.4.296",
|
|
46
|
+
"shadcn": "^4.11.0",
|
|
47
|
+
"sonner": "^2.0.7",
|
|
48
|
+
"tailwind-merge": "^3.6.0",
|
|
49
|
+
"tw-animate-css": "^1.4.0",
|
|
50
|
+
"vaul": "^1.1.2",
|
|
51
|
+
"yet-another-react-lightbox": "3.32.1"
|
|
52
|
+
},
|
|
53
|
+
"optionalDependencies": {
|
|
54
|
+
"@localapp/sdk-agent": "file:./.localapp/runtime/sdk/agent"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@sinclair/typebox": "^0.34.49",
|
|
58
|
+
"@tailwindcss/postcss": "^4.1.0",
|
|
59
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
60
|
+
"@testing-library/react": "^16.3.2",
|
|
61
|
+
"@types/react": "^18.3.0",
|
|
62
|
+
"@types/react-dom": "^18.3.0",
|
|
63
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
64
|
+
"jsdom": "^29.1.1",
|
|
65
|
+
"tailwindcss": "^4.1.0",
|
|
66
|
+
"typescript": "^5.0.0",
|
|
67
|
+
"vite": "^6.0.0",
|
|
68
|
+
"vitest": "^4.1.7"
|
|
69
|
+
}
|
|
70
|
+
}
|