@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.
Files changed (527) hide show
  1. package/.localapp-artifact.json +2731 -0
  2. package/LICENSE +21 -0
  3. package/README.md +288 -0
  4. package/bin/localapp.mjs +34182 -0
  5. package/package.json +21 -0
  6. package/runtime/bootstrap/localapp-daemon-bootstrap.mjs +150 -0
  7. package/runtime/native/adapter-manifest.json +85 -0
  8. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/Info.plist +21 -0
  9. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
  10. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +940 -0
  11. package/runtime/native/darwin-arm64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +128 -0
  12. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/Info.plist +21 -0
  13. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/MacOS/LocalAppBridge +0 -0
  14. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/Resources/localapp-native-ipc-client.mjs +940 -0
  15. package/runtime/native/darwin-x64/LocalAppBridge.app/Contents/_CodeSignature/CodeResources +128 -0
  16. package/runtime/native/linux-x64/localapp-native-ipc-client.mjs +940 -0
  17. package/runtime/native/linux-x64/localapp-notifications +0 -0
  18. package/runtime/native/win32-x64/localapp-native-ipc-client.mjs +940 -0
  19. package/runtime/native/win32-x64/localapp-native.exe +0 -0
  20. package/runtime/server/.localapp-server-runtime.json +133 -0
  21. package/runtime/server/bin/server-cli.cjs +8343 -0
  22. package/runtime/server/bin/server.mjs +8 -0
  23. package/runtime/server/bin/worker.cjs +144339 -0
  24. package/runtime/server/node_modules/sql.js/dist/sql-wasm.js +185 -0
  25. package/runtime/server/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
  26. package/runtime/server/node_modules/sql.js/package.json +58 -0
  27. package/runtime/server/package.json +11 -0
  28. package/runtime/server/runner/localapp-runner.mjs +324 -0
  29. package/runtime/server/web/404.html +1 -0
  30. package/runtime/server/web/_next/static/CqtRUQyhpQ2FmEc3vaVz3/_buildManifest.js +1 -0
  31. package/runtime/server/web/_next/static/CqtRUQyhpQ2FmEc3vaVz3/_ssgManifest.js +1 -0
  32. package/runtime/server/web/_next/static/chunks/184-184da63eba05808f.js +1 -0
  33. package/runtime/server/web/_next/static/chunks/265-a58973dbf631dc41.js +1 -0
  34. package/runtime/server/web/_next/static/chunks/308-d74213c6f5179bf0.js +1 -0
  35. package/runtime/server/web/_next/static/chunks/416-53d48ad9442eb7b2.js +1 -0
  36. package/runtime/server/web/_next/static/chunks/448-280e06e915001cb5.js +1 -0
  37. package/runtime/server/web/_next/static/chunks/66-6f6658280a10fbca.js +1 -0
  38. package/runtime/server/web/_next/static/chunks/740d80ee-6c0a9504f1fd46f8.js +1 -0
  39. package/runtime/server/web/_next/static/chunks/86-7105ac54171494a1.js +1 -0
  40. package/runtime/server/web/_next/static/chunks/900-743e38de13217291.js +1 -0
  41. package/runtime/server/web/_next/static/chunks/app/(dashboard)/inbox/page-32b885c019043e48.js +1 -0
  42. package/runtime/server/web/_next/static/chunks/app/(dashboard)/layout-4b3a212263712a5c.js +1 -0
  43. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/analytics/page-6af9adc14ccfa925.js +1 -0
  44. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/apps/[name]/settings/page-8b6f809eeccdbd22.js +1 -0
  45. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/apps/page-7f1ddf07889da248.js +1 -0
  46. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/dashboard/page-a25eb621fb18491d.js +1 -0
  47. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/device-actions/page-e6045823829567f7.js +1 -0
  48. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/device-notifications/page-377ed49cf55da81d.js +1 -0
  49. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/favorites/page-82f292daebf98a2f.js +1 -0
  50. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/groups/page-fe4ed80c7b11920f.js +1 -0
  51. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/info/page-d5d5075eec069ce3.js +1 -0
  52. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/keys/page-35ed01bf39a163b6.js +1 -0
  53. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/layout-5481d53aae3a0ce1.js +1 -0
  54. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/orgs/page-44c606ff2233f1a8.js +1 -0
  55. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/page-f2331bbbe09541aa.js +1 -0
  56. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/pages/page-6bf4e160a99411ce.js +1 -0
  57. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/peers/page-27041dd149601002.js +1 -0
  58. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/recent/page-f321688d374a8ff3.js +1 -0
  59. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/settings/page-64e724318dc3a584.js +1 -0
  60. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/studio/page-a2c0c34538ac62b3.js +1 -0
  61. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/subscriptions/page-57cdaafe12347e32.js +1 -0
  62. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/system/page-96d2e1f8c2fb22b0.js +1 -0
  63. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/tasks/page-bf16b78ed6749d78.js +1 -0
  64. package/runtime/server/web/_next/static/chunks/app/(dashboard)/my/users/page-c47d4524d2a156b8.js +1 -0
  65. package/runtime/server/web/_next/static/chunks/app/(dashboard)/page-f4641be7b88818a2.js +1 -0
  66. package/runtime/server/web/_next/static/chunks/app/_not-found/page-f4902e6b69eebd4c.js +1 -0
  67. package/runtime/server/web/_next/static/chunks/app/layout-5557bc90d966fded.js +1 -0
  68. package/runtime/server/web/_next/static/chunks/app/platform-shell/[userId]/[name]/page-da0d5e71857f33d1.js +1 -0
  69. package/runtime/server/web/_next/static/chunks/app/platform-shell-preview/page-52fa7e8c8b480934.js +1 -0
  70. package/runtime/server/web/_next/static/chunks/app/setup/page-9e29d6f66825a8f8.js +1 -0
  71. package/runtime/server/web/_next/static/chunks/framework-1c02a2e60068b586.js +1 -0
  72. package/runtime/server/web/_next/static/chunks/main-21ea4d4d10f4a256.js +1 -0
  73. package/runtime/server/web/_next/static/chunks/main-app-5b3c67453d8c5b99.js +1 -0
  74. package/runtime/server/web/_next/static/chunks/pages/_app-649f81c9fedecf29.js +1 -0
  75. package/runtime/server/web/_next/static/chunks/pages/_error-64e3bd84e2ecae08.js +1 -0
  76. package/runtime/server/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  77. package/runtime/server/web/_next/static/chunks/webpack-0bed2fdf6baa566e.js +1 -0
  78. package/runtime/server/web/_next/static/css/afdc0938fca59693.css +3 -0
  79. package/runtime/server/web/_next/static/media/013b72fa676f92e0-s.woff2 +0 -0
  80. package/runtime/server/web/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  81. package/runtime/server/web/_next/static/media/2b5b02fc7e511755-s.woff2 +0 -0
  82. package/runtime/server/web/_next/static/media/65f03d54ccadf4a8-s.woff2 +0 -0
  83. package/runtime/server/web/_next/static/media/7d4881bb7e1bf84d-s.p.woff2 +0 -0
  84. package/runtime/server/web/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  85. package/runtime/server/web/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  86. package/runtime/server/web/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  87. package/runtime/server/web/_next/static/media/b9408752a0c24fb9-s.woff2 +0 -0
  88. package/runtime/server/web/_next/static/media/e038a29029a234f2-s.woff2 +0 -0
  89. package/runtime/server/web/_next/static/media/f639721981034f88-s.woff2 +0 -0
  90. package/runtime/server/web/home/redline-launch-hero.png +0 -0
  91. package/runtime/server/web/inbox.html +1 -0
  92. package/runtime/server/web/inbox.txt +27 -0
  93. package/runtime/server/web/index.html +1 -0
  94. package/runtime/server/web/index.txt +27 -0
  95. package/runtime/server/web/my/analytics.html +1 -0
  96. package/runtime/server/web/my/analytics.txt +27 -0
  97. package/runtime/server/web/my/apps/placeholder/settings.html +1 -0
  98. package/runtime/server/web/my/apps/placeholder/settings.txt +24 -0
  99. package/runtime/server/web/my/apps.html +1 -0
  100. package/runtime/server/web/my/apps.txt +27 -0
  101. package/runtime/server/web/my/dashboard.html +1 -0
  102. package/runtime/server/web/my/dashboard.txt +27 -0
  103. package/runtime/server/web/my/device-actions.html +1 -0
  104. package/runtime/server/web/my/device-actions.txt +24 -0
  105. package/runtime/server/web/my/device-notifications.html +1 -0
  106. package/runtime/server/web/my/device-notifications.txt +24 -0
  107. package/runtime/server/web/my/favorites.html +1 -0
  108. package/runtime/server/web/my/favorites.txt +27 -0
  109. package/runtime/server/web/my/groups.html +1 -0
  110. package/runtime/server/web/my/groups.txt +27 -0
  111. package/runtime/server/web/my/info.html +1 -0
  112. package/runtime/server/web/my/info.txt +27 -0
  113. package/runtime/server/web/my/keys.html +1 -0
  114. package/runtime/server/web/my/keys.txt +27 -0
  115. package/runtime/server/web/my/orgs.html +1 -0
  116. package/runtime/server/web/my/orgs.txt +27 -0
  117. package/runtime/server/web/my/pages.html +1 -0
  118. package/runtime/server/web/my/pages.txt +27 -0
  119. package/runtime/server/web/my/peers.html +1 -0
  120. package/runtime/server/web/my/peers.txt +24 -0
  121. package/runtime/server/web/my/recent.html +1 -0
  122. package/runtime/server/web/my/recent.txt +27 -0
  123. package/runtime/server/web/my/settings.html +1 -0
  124. package/runtime/server/web/my/settings.txt +27 -0
  125. package/runtime/server/web/my/studio.html +1 -0
  126. package/runtime/server/web/my/studio.txt +24 -0
  127. package/runtime/server/web/my/subscriptions.html +1 -0
  128. package/runtime/server/web/my/subscriptions.txt +27 -0
  129. package/runtime/server/web/my/system.html +1 -0
  130. package/runtime/server/web/my/system.txt +24 -0
  131. package/runtime/server/web/my/tasks.html +1 -0
  132. package/runtime/server/web/my/tasks.txt +24 -0
  133. package/runtime/server/web/my/users.html +1 -0
  134. package/runtime/server/web/my/users.txt +27 -0
  135. package/runtime/server/web/my.html +1 -0
  136. package/runtime/server/web/my.txt +27 -0
  137. package/runtime/server/web/platform-shell/placeholder/placeholder.html +1 -0
  138. package/runtime/server/web/platform-shell/placeholder/placeholder.txt +23 -0
  139. package/runtime/server/web/platform-shell-preview.html +1 -0
  140. package/runtime/server/web/platform-shell-preview.txt +23 -0
  141. package/runtime/server/web/setup.html +1 -0
  142. package/runtime/server/web/setup.txt +23 -0
  143. package/template/.claude/skills/agent-tool-patterns/SKILL.md +195 -0
  144. package/template/.claude/skills/localapp/SKILL.md +80 -0
  145. package/template/.claude/skills/localapp-auth/SKILL.md +299 -0
  146. package/template/.claude/skills/localapp-business/SKILL.md +325 -0
  147. package/template/.claude/skills/localapp-data/SKILL.md +381 -0
  148. package/template/.claude/skills/localapp-device-actions/SKILL.md +60 -0
  149. package/template/.claude/skills/localapp-notify/SKILL.md +118 -0
  150. package/template/.claude/skills/localapp-transitions/SKILL.md +238 -0
  151. package/template/.claude/skills/localapp-ui/SKILL.md +67 -0
  152. package/template/.claude/skills/localapp-upload/SKILL.md +172 -0
  153. package/template/AGENTS.md +33 -0
  154. package/template/CLAUDE.md +117 -0
  155. package/template/ISSUES.md +32 -0
  156. package/template/backend/resources/work_items/mutations.json +83 -0
  157. package/template/backend/resources/work_items/queries.json +83 -0
  158. package/template/backend/resources/work_items/schema.json +31 -0
  159. package/template/backend/schemas/mutations.schema.json +15 -0
  160. package/template/backend/schemas/queries.schema.json +36 -0
  161. package/template/backend/schemas/resource-schema.schema.json +25 -0
  162. package/template/components.json +25 -0
  163. package/template/index.html +12 -0
  164. package/template/migrations/001_work_items.sql +6 -0
  165. package/template/package.json +70 -0
  166. package/template/postcss.config.js +5 -0
  167. package/template/runtime/dev-shell.tsx +6398 -0
  168. package/template/runtime/hooks/use-mobile.ts +19 -0
  169. package/template/runtime/issue-reference.ts +44 -0
  170. package/template/runtime/lib/utils.ts +6 -0
  171. package/template/runtime/package.json +14 -0
  172. package/template/runtime/platform-capabilities.json +109 -0
  173. package/template/runtime/sdk/agent/package.json +51 -0
  174. package/template/runtime/sdk/agent/src/agent-chat.tsx +188 -0
  175. package/template/runtime/sdk/agent/src/assistant-ui-adapter.ts +87 -0
  176. package/template/runtime/sdk/agent/src/context.ts +56 -0
  177. package/template/runtime/sdk/agent/src/dev-bridge.ts +21 -0
  178. package/template/runtime/sdk/agent/src/index.ts +19 -0
  179. package/template/runtime/sdk/agent/src/llm-adapter.ts +263 -0
  180. package/template/runtime/sdk/agent/src/native-registry.ts +61 -0
  181. package/template/runtime/sdk/agent/src/platform-runtime.ts +164 -0
  182. package/template/runtime/sdk/agent/src/postmessage-bridge.ts +60 -0
  183. package/template/runtime/sdk/agent/src/postmessage-types.ts +150 -0
  184. package/template/runtime/sdk/agent/src/tools.ts +70 -0
  185. package/template/runtime/sdk/agent/src/types.ts +27 -0
  186. package/template/runtime/sdk/agent/src/use-agent.ts +139 -0
  187. package/template/runtime/sdk/agent/src/use-register-edit-session.ts +54 -0
  188. package/template/runtime/sdk/agent/src/use-register-tools.ts +92 -0
  189. package/template/runtime/sdk/agent/tests/platform-runtime.test.ts +154 -0
  190. package/template/runtime/sdk/agent/tests/postmessage-bridge.test.ts +119 -0
  191. package/template/runtime/sdk/agent/tests/shell-integration.test.ts +71 -0
  192. package/template/runtime/sdk/agent/tests/use-register-edit-session.test.tsx +125 -0
  193. package/template/runtime/sdk/agent/tests/use-register-tools.test.ts +208 -0
  194. package/template/runtime/sdk/agent/tsconfig.json +18 -0
  195. package/template/runtime/sdk/agent/vitest.config.ts +8 -0
  196. package/template/runtime/sdk/backend/package.json +15 -0
  197. package/template/runtime/sdk/backend/src/index.ts +92 -0
  198. package/template/runtime/sdk/backend/tsconfig.json +8 -0
  199. package/template/runtime/sdk/core/package.json +15 -0
  200. package/template/runtime/sdk/core/src/client.ts +317 -0
  201. package/template/runtime/sdk/core/src/collaboration.ts +66 -0
  202. package/template/runtime/sdk/core/src/desktop.ts +469 -0
  203. package/template/runtime/sdk/core/src/device.ts +112 -0
  204. package/template/runtime/sdk/core/src/index.ts +6 -0
  205. package/template/runtime/sdk/core/src/invalidate.ts +40 -0
  206. package/template/runtime/sdk/core/src/types.ts +108 -0
  207. package/template/runtime/sdk/core/tests/capabilities.test.ts +64 -0
  208. package/template/runtime/sdk/core/tests/client.test.ts +424 -0
  209. package/template/runtime/sdk/core/tests/collaboration.test.ts +92 -0
  210. package/template/runtime/sdk/core/tests/desktop.test.ts +310 -0
  211. package/template/runtime/sdk/core/tests/device.test.ts +69 -0
  212. package/template/runtime/sdk/core/tsconfig.json +17 -0
  213. package/template/runtime/sdk/react/package.json +34 -0
  214. package/template/runtime/sdk/react/src/client.ts +7 -0
  215. package/template/runtime/sdk/react/src/components/can.tsx +24 -0
  216. package/template/runtime/sdk/react/src/hooks/use-action.ts +34 -0
  217. package/template/runtime/sdk/react/src/hooks/use-capabilities.ts +35 -0
  218. package/template/runtime/sdk/react/src/hooks/use-count.ts +37 -0
  219. package/template/runtime/sdk/react/src/hooks/use-create.ts +37 -0
  220. package/template/runtime/sdk/react/src/hooks/use-delete.ts +36 -0
  221. package/template/runtime/sdk/react/src/hooks/use-desktop-action.ts +94 -0
  222. package/template/runtime/sdk/react/src/hooks/use-device-action.ts +62 -0
  223. package/template/runtime/sdk/react/src/hooks/use-get.ts +37 -0
  224. package/template/runtime/sdk/react/src/hooks/use-group-members.ts +31 -0
  225. package/template/runtime/sdk/react/src/hooks/use-groups.ts +31 -0
  226. package/template/runtime/sdk/react/src/hooks/use-list.ts +53 -0
  227. package/template/runtime/sdk/react/src/hooks/use-me.ts +35 -0
  228. package/template/runtime/sdk/react/src/hooks/use-mutation.ts +30 -0
  229. package/template/runtime/sdk/react/src/hooks/use-permissions.ts +37 -0
  230. package/template/runtime/sdk/react/src/hooks/use-platform-data.ts +94 -0
  231. package/template/runtime/sdk/react/src/hooks/use-query.ts +30 -0
  232. package/template/runtime/sdk/react/src/hooks/use-time.ts +36 -0
  233. package/template/runtime/sdk/react/src/hooks/use-transaction.ts +30 -0
  234. package/template/runtime/sdk/react/src/hooks/use-transitions.ts +82 -0
  235. package/template/runtime/sdk/react/src/hooks/use-update.ts +37 -0
  236. package/template/runtime/sdk/react/src/hooks/use-upload.ts +30 -0
  237. package/template/runtime/sdk/react/src/hooks/use-users.ts +31 -0
  238. package/template/runtime/sdk/react/src/index.ts +40 -0
  239. package/template/runtime/sdk/react/src/permissions.ts +94 -0
  240. package/template/runtime/sdk/react/tests/permissions.test.ts +176 -0
  241. package/template/runtime/sdk/react/tests/use-action.test.tsx +64 -0
  242. package/template/runtime/sdk/react/tests/use-capabilities.test.tsx +48 -0
  243. package/template/runtime/sdk/react/tests/use-desktop-action.test.tsx +144 -0
  244. package/template/runtime/sdk/react/tests/use-permissions.test.tsx +162 -0
  245. package/template/runtime/sdk/react/tests/use-platform-data.test.tsx +89 -0
  246. package/template/runtime/sdk/react/tests/use-transaction.test.tsx +65 -0
  247. package/template/runtime/sdk/react/tests/use-transitions.test.ts +149 -0
  248. package/template/runtime/sdk/react/tsconfig.json +18 -0
  249. package/template/runtime/sdk/react/vitest.config.ts +9 -0
  250. package/template/runtime/sdk/react/vitest.setup.ts +6 -0
  251. package/template/runtime/server-core/dist/generated/platform-capabilities.d.ts +84 -0
  252. package/template/runtime/server-core/dist/generated/platform-capabilities.d.ts.map +1 -0
  253. package/template/runtime/server-core/dist/generated/platform-capabilities.js +115 -0
  254. package/template/runtime/server-core/dist/generated/platform-capabilities.js.map +1 -0
  255. package/template/runtime/server-core/dist/index.d.ts +19 -0
  256. package/template/runtime/server-core/dist/index.d.ts.map +1 -0
  257. package/template/runtime/server-core/dist/index.js +35 -0
  258. package/template/runtime/server-core/dist/index.js.map +1 -0
  259. package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.d.ts +2 -0
  260. package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.d.ts.map +1 -0
  261. package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.js +475 -0
  262. package/template/runtime/server-core/dist/lib/__tests__/action-runtime-hardening.test.js.map +1 -0
  263. package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.d.ts +2 -0
  264. package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.d.ts.map +1 -0
  265. package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.js +65 -0
  266. package/template/runtime/server-core/dist/lib/__tests__/app-api-contract.test.js.map +1 -0
  267. package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.d.ts +2 -0
  268. package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.d.ts.map +1 -0
  269. package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.js +103 -0
  270. package/template/runtime/server-core/dist/lib/__tests__/app-runtime.test.js.map +1 -0
  271. package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.d.ts +2 -0
  272. package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.d.ts.map +1 -0
  273. package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.js +358 -0
  274. package/template/runtime/server-core/dist/lib/__tests__/backend-actions.test.js.map +1 -0
  275. package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.d.ts +2 -0
  276. package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.d.ts.map +1 -0
  277. package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.js +786 -0
  278. package/template/runtime/server-core/dist/lib/__tests__/backend-contract.test.js.map +1 -0
  279. package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.d.ts +2 -0
  280. package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.d.ts.map +1 -0
  281. package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.js +82 -0
  282. package/template/runtime/server-core/dist/lib/__tests__/content-capabilities.test.js.map +1 -0
  283. package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.d.ts +2 -0
  284. package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.d.ts.map +1 -0
  285. package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.js +42 -0
  286. package/template/runtime/server-core/dist/lib/__tests__/database-write-guard.test.js.map +1 -0
  287. package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.d.ts +2 -0
  288. package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.d.ts.map +1 -0
  289. package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.js +144 -0
  290. package/template/runtime/server-core/dist/lib/__tests__/issue-collaboration.test.js.map +1 -0
  291. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.d.ts +2 -0
  292. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.d.ts.map +1 -0
  293. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.js +75 -0
  294. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-minimization.test.js.map +1 -0
  295. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.d.ts +2 -0
  296. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.d.ts.map +1 -0
  297. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.js +85 -0
  298. package/template/runtime/server-core/dist/lib/__tests__/issue-comment-pins.test.js.map +1 -0
  299. package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.d.ts +2 -0
  300. package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.d.ts.map +1 -0
  301. package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.js +75 -0
  302. package/template/runtime/server-core/dist/lib/__tests__/issue-cross-references.test.js.map +1 -0
  303. package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.d.ts +2 -0
  304. package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.d.ts.map +1 -0
  305. package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.js +78 -0
  306. package/template/runtime/server-core/dist/lib/__tests__/issue-dependencies.test.js.map +1 -0
  307. package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.d.ts +2 -0
  308. package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.d.ts.map +1 -0
  309. package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.js +66 -0
  310. package/template/runtime/server-core/dist/lib/__tests__/issue-duplicates.test.js.map +1 -0
  311. package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.d.ts +2 -0
  312. package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.d.ts.map +1 -0
  313. package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.js +322 -0
  314. package/template/runtime/server-core/dist/lib/__tests__/issue-list.test.js.map +1 -0
  315. package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.d.ts +2 -0
  316. package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.d.ts.map +1 -0
  317. package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.js +49 -0
  318. package/template/runtime/server-core/dist/lib/__tests__/issue-potential-duplicates.test.js.map +1 -0
  319. package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.d.ts +2 -0
  320. package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.d.ts.map +1 -0
  321. package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.js +67 -0
  322. package/template/runtime/server-core/dist/lib/__tests__/issue-reactions.test.js.map +1 -0
  323. package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.d.ts +2 -0
  324. package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.d.ts.map +1 -0
  325. package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.js +91 -0
  326. package/template/runtime/server-core/dist/lib/__tests__/issue-revisions.test.js.map +1 -0
  327. package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.d.ts +2 -0
  328. package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.d.ts.map +1 -0
  329. package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.js +69 -0
  330. package/template/runtime/server-core/dist/lib/__tests__/issue-saved-views.test.js.map +1 -0
  331. package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.d.ts +2 -0
  332. package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.d.ts.map +1 -0
  333. package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.js +159 -0
  334. package/template/runtime/server-core/dist/lib/__tests__/issue-sub-issues.test.js.map +1 -0
  335. package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.d.ts +2 -0
  336. package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.d.ts.map +1 -0
  337. package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.js +102 -0
  338. package/template/runtime/server-core/dist/lib/__tests__/issue-task-conversion.test.js.map +1 -0
  339. package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.d.ts +2 -0
  340. package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.d.ts.map +1 -0
  341. package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.js +65 -0
  342. package/template/runtime/server-core/dist/lib/__tests__/issue-templates.test.js.map +1 -0
  343. package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.d.ts +2 -0
  344. package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.d.ts.map +1 -0
  345. package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.js +226 -0
  346. package/template/runtime/server-core/dist/lib/__tests__/issue-timeline.test.js.map +1 -0
  347. package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.d.ts +2 -0
  348. package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.d.ts.map +1 -0
  349. package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.js +64 -0
  350. package/template/runtime/server-core/dist/lib/__tests__/issue-types.test.js.map +1 -0
  351. package/template/runtime/server-core/dist/lib/__tests__/migrations.test.d.ts +2 -0
  352. package/template/runtime/server-core/dist/lib/__tests__/migrations.test.d.ts.map +1 -0
  353. package/template/runtime/server-core/dist/lib/__tests__/migrations.test.js +101 -0
  354. package/template/runtime/server-core/dist/lib/__tests__/migrations.test.js.map +1 -0
  355. package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.d.ts +2 -0
  356. package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.d.ts.map +1 -0
  357. package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.js +69 -0
  358. package/template/runtime/server-core/dist/lib/__tests__/platform-capabilities.test.js.map +1 -0
  359. package/template/runtime/server-core/dist/lib/__tests__/transitions.test.d.ts +2 -0
  360. package/template/runtime/server-core/dist/lib/__tests__/transitions.test.d.ts.map +1 -0
  361. package/template/runtime/server-core/dist/lib/__tests__/transitions.test.js +32 -0
  362. package/template/runtime/server-core/dist/lib/__tests__/transitions.test.js.map +1 -0
  363. package/template/runtime/server-core/dist/lib/access-control.d.ts +34 -0
  364. package/template/runtime/server-core/dist/lib/access-control.d.ts.map +1 -0
  365. package/template/runtime/server-core/dist/lib/access-control.js +138 -0
  366. package/template/runtime/server-core/dist/lib/access-control.js.map +1 -0
  367. package/template/runtime/server-core/dist/lib/app-api-contract.d.ts +69 -0
  368. package/template/runtime/server-core/dist/lib/app-api-contract.d.ts.map +1 -0
  369. package/template/runtime/server-core/dist/lib/app-api-contract.js +57 -0
  370. package/template/runtime/server-core/dist/lib/app-api-contract.js.map +1 -0
  371. package/template/runtime/server-core/dist/lib/app-db.d.ts +486 -0
  372. package/template/runtime/server-core/dist/lib/app-db.d.ts.map +1 -0
  373. package/template/runtime/server-core/dist/lib/app-db.js +2581 -0
  374. package/template/runtime/server-core/dist/lib/app-db.js.map +1 -0
  375. package/template/runtime/server-core/dist/lib/app-runtime.d.ts +28 -0
  376. package/template/runtime/server-core/dist/lib/app-runtime.d.ts.map +1 -0
  377. package/template/runtime/server-core/dist/lib/app-runtime.js +56 -0
  378. package/template/runtime/server-core/dist/lib/app-runtime.js.map +1 -0
  379. package/template/runtime/server-core/dist/lib/backend-actions.d.ts +149 -0
  380. package/template/runtime/server-core/dist/lib/backend-actions.d.ts.map +1 -0
  381. package/template/runtime/server-core/dist/lib/backend-actions.js +926 -0
  382. package/template/runtime/server-core/dist/lib/backend-actions.js.map +1 -0
  383. package/template/runtime/server-core/dist/lib/backend-contract.d.ts +399 -0
  384. package/template/runtime/server-core/dist/lib/backend-contract.d.ts.map +1 -0
  385. package/template/runtime/server-core/dist/lib/backend-contract.js +1148 -0
  386. package/template/runtime/server-core/dist/lib/backend-contract.js.map +1 -0
  387. package/template/runtime/server-core/dist/lib/content-capabilities.d.ts +30 -0
  388. package/template/runtime/server-core/dist/lib/content-capabilities.d.ts.map +1 -0
  389. package/template/runtime/server-core/dist/lib/content-capabilities.js +133 -0
  390. package/template/runtime/server-core/dist/lib/content-capabilities.js.map +1 -0
  391. package/template/runtime/server-core/dist/lib/issue-saved-replies.d.ts +7 -0
  392. package/template/runtime/server-core/dist/lib/issue-saved-replies.d.ts.map +1 -0
  393. package/template/runtime/server-core/dist/lib/issue-saved-replies.js +22 -0
  394. package/template/runtime/server-core/dist/lib/issue-saved-replies.js.map +1 -0
  395. package/template/runtime/server-core/dist/lib/issue-saved-views.d.ts +43 -0
  396. package/template/runtime/server-core/dist/lib/issue-saved-views.d.ts.map +1 -0
  397. package/template/runtime/server-core/dist/lib/issue-saved-views.js +201 -0
  398. package/template/runtime/server-core/dist/lib/issue-saved-views.js.map +1 -0
  399. package/template/runtime/server-core/dist/lib/issue-task-conversion.d.ts +11 -0
  400. package/template/runtime/server-core/dist/lib/issue-task-conversion.d.ts.map +1 -0
  401. package/template/runtime/server-core/dist/lib/issue-task-conversion.js +66 -0
  402. package/template/runtime/server-core/dist/lib/issue-task-conversion.js.map +1 -0
  403. package/template/runtime/server-core/dist/lib/issue-templates.d.ts +16 -0
  404. package/template/runtime/server-core/dist/lib/issue-templates.d.ts.map +1 -0
  405. package/template/runtime/server-core/dist/lib/issue-templates.js +89 -0
  406. package/template/runtime/server-core/dist/lib/issue-templates.js.map +1 -0
  407. package/template/runtime/server-core/dist/lib/migrations.d.ts +31 -0
  408. package/template/runtime/server-core/dist/lib/migrations.d.ts.map +1 -0
  409. package/template/runtime/server-core/dist/lib/migrations.js +180 -0
  410. package/template/runtime/server-core/dist/lib/migrations.js.map +1 -0
  411. package/template/runtime/server-core/dist/lib/notify-permission-sql.d.ts +21 -0
  412. package/template/runtime/server-core/dist/lib/notify-permission-sql.d.ts.map +1 -0
  413. package/template/runtime/server-core/dist/lib/notify-permission-sql.js +71 -0
  414. package/template/runtime/server-core/dist/lib/notify-permission-sql.js.map +1 -0
  415. package/template/runtime/server-core/dist/lib/record-access.d.ts +34 -0
  416. package/template/runtime/server-core/dist/lib/record-access.d.ts.map +1 -0
  417. package/template/runtime/server-core/dist/lib/record-access.js +81 -0
  418. package/template/runtime/server-core/dist/lib/record-access.js.map +1 -0
  419. package/template/runtime/server-core/dist/lib/runtime-errors.d.ts +28 -0
  420. package/template/runtime/server-core/dist/lib/runtime-errors.d.ts.map +1 -0
  421. package/template/runtime/server-core/dist/lib/runtime-errors.js +67 -0
  422. package/template/runtime/server-core/dist/lib/runtime-errors.js.map +1 -0
  423. package/template/runtime/server-core/dist/lib/transitions.d.ts +55 -0
  424. package/template/runtime/server-core/dist/lib/transitions.d.ts.map +1 -0
  425. package/template/runtime/server-core/dist/lib/transitions.js +142 -0
  426. package/template/runtime/server-core/dist/lib/transitions.js.map +1 -0
  427. package/template/runtime/server-core/dist/types/models.d.ts +163 -0
  428. package/template/runtime/server-core/dist/types/models.d.ts.map +1 -0
  429. package/template/runtime/server-core/dist/types/models.js +3 -0
  430. package/template/runtime/server-core/dist/types/models.js.map +1 -0
  431. package/template/runtime/server-core/package.json +24 -0
  432. package/template/runtime/styles/preset.css +282 -0
  433. package/template/runtime/sync-template-command.cjs +19 -0
  434. package/template/runtime/sync-template.cjs +71 -0
  435. package/template/runtime/tsconfig.base.json +20 -0
  436. package/template/runtime/version.json +3 -0
  437. package/template/runtime/vite-plugin.mjs +309 -0
  438. package/template/src/App.tsx +273 -0
  439. package/template/src/components/ui/accordion.tsx +79 -0
  440. package/template/src/components/ui/alert-dialog.tsx +197 -0
  441. package/template/src/components/ui/alert.tsx +76 -0
  442. package/template/src/components/ui/aspect-ratio.tsx +11 -0
  443. package/template/src/components/ui/avatar.tsx +110 -0
  444. package/template/src/components/ui/badge.tsx +49 -0
  445. package/template/src/components/ui/breadcrumb.tsx +122 -0
  446. package/template/src/components/ui/button-group.tsx +83 -0
  447. package/template/src/components/ui/button.tsx +67 -0
  448. package/template/src/components/ui/calendar.tsx +221 -0
  449. package/template/src/components/ui/card.tsx +103 -0
  450. package/template/src/components/ui/carousel.tsx +240 -0
  451. package/template/src/components/ui/chart.tsx +373 -0
  452. package/template/src/components/ui/checkbox.tsx +31 -0
  453. package/template/src/components/ui/collapsible.tsx +33 -0
  454. package/template/src/components/ui/combobox.tsx +299 -0
  455. package/template/src/components/ui/command.tsx +193 -0
  456. package/template/src/components/ui/context-menu.tsx +261 -0
  457. package/template/src/components/ui/dialog.tsx +168 -0
  458. package/template/src/components/ui/direction.tsx +22 -0
  459. package/template/src/components/ui/drawer.tsx +132 -0
  460. package/template/src/components/ui/dropdown-menu.tsx +269 -0
  461. package/template/src/components/ui/empty.tsx +104 -0
  462. package/template/src/components/ui/field.tsx +238 -0
  463. package/template/src/components/ui/hover-card.tsx +42 -0
  464. package/template/src/components/ui/input-group.tsx +154 -0
  465. package/template/src/components/ui/input-otp.tsx +87 -0
  466. package/template/src/components/ui/input.tsx +19 -0
  467. package/template/src/components/ui/item.tsx +196 -0
  468. package/template/src/components/ui/kbd.tsx +26 -0
  469. package/template/src/components/ui/label.tsx +22 -0
  470. package/template/src/components/ui/menubar.tsx +280 -0
  471. package/template/src/components/ui/native-select.tsx +61 -0
  472. package/template/src/components/ui/navigation-menu.tsx +164 -0
  473. package/template/src/components/ui/pagination.tsx +129 -0
  474. package/template/src/components/ui/popover.tsx +87 -0
  475. package/template/src/components/ui/progress.tsx +31 -0
  476. package/template/src/components/ui/radio-group.tsx +42 -0
  477. package/template/src/components/ui/resizable.tsx +50 -0
  478. package/template/src/components/ui/scroll-area.tsx +53 -0
  479. package/template/src/components/ui/select.tsx +192 -0
  480. package/template/src/components/ui/separator.tsx +26 -0
  481. package/template/src/components/ui/sheet.tsx +145 -0
  482. package/template/src/components/ui/sidebar.tsx +700 -0
  483. package/template/src/components/ui/skeleton.tsx +13 -0
  484. package/template/src/components/ui/slider.tsx +59 -0
  485. package/template/src/components/ui/sonner.tsx +47 -0
  486. package/template/src/components/ui/spinner.tsx +10 -0
  487. package/template/src/components/ui/switch.tsx +33 -0
  488. package/template/src/components/ui/table.tsx +114 -0
  489. package/template/src/components/ui/tabs.tsx +90 -0
  490. package/template/src/components/ui/textarea.tsx +18 -0
  491. package/template/src/components/ui/toggle-group.tsx +89 -0
  492. package/template/src/components/ui/toggle.tsx +45 -0
  493. package/template/src/components/ui/tooltip.tsx +57 -0
  494. package/template/src/hooks/use-mobile.ts +3 -0
  495. package/template/src/index.css +4 -0
  496. package/template/src/lib/utils.ts +3 -0
  497. package/template/src/main.tsx +10 -0
  498. package/template/src/vite-env.d.ts +1 -0
  499. package/template/template.gitignore +10 -0
  500. package/template/template.npmrc +1 -0
  501. package/template/tests/agent-context.test.ts +69 -0
  502. package/template/tests/agent-guidance-template.test.ts +49 -0
  503. package/template/tests/agent-runtime.test.ts +198 -0
  504. package/template/tests/agent-tools.test.ts +150 -0
  505. package/template/tests/agent-use-agent.test.ts +86 -0
  506. package/template/tests/assistant-ui-adapter.test.ts +211 -0
  507. package/template/tests/business-modeling-template.test.ts +71 -0
  508. package/template/tests/client.test.ts +382 -0
  509. package/template/tests/dev-issue-search-suggestions.test.ts +36 -0
  510. package/template/tests/dev-shell-context.test.tsx +40 -0
  511. package/template/tests/dev-shell-template.test.ts +2593 -0
  512. package/template/tests/invalidation.test.ts +126 -0
  513. package/template/tests/main-tsx.test.ts +28 -0
  514. package/template/tests/media-preview-template.test.ts +21 -0
  515. package/template/tests/mutations.test.ts +224 -0
  516. package/template/tests/react.test.ts +302 -0
  517. package/template/tests/redirect.test.ts +51 -0
  518. package/template/tests/skill-docs.test.ts +76 -0
  519. package/template/tests/state-transitions-template.test.ts +61 -0
  520. package/template/tests/template-ui.test.ts +145 -0
  521. package/template/tests/upload.test.ts +143 -0
  522. package/template/tests/vite-plugin.test.ts +426 -0
  523. package/template/tests/vite-proxy-security.test.ts +153 -0
  524. package/template/tsconfig.json +11 -0
  525. package/template/vite.config.ts +7 -0
  526. package/template/vitest.config.ts +16 -0
  527. package/template/vitest.setup.ts +1 -0
@@ -0,0 +1,486 @@
1
+ import { Database as SqlJsDatabase } from "sql.js";
2
+ import type { FieldType, FieldConstraints, DataSchema } from "../types/models.js";
3
+ export declare function setDatabaseWriteGuard(guard: ((dbPath: string) => void) | null): void;
4
+ export interface DbQueueInfo {
5
+ dbPath: string;
6
+ waitMs: number;
7
+ }
8
+ export interface DbQueueOptions {
9
+ timeoutMs?: number;
10
+ onWait?: (info: DbQueueInfo) => void;
11
+ }
12
+ export declare function isCurrentDbQueueOwner(dbPath: string): boolean;
13
+ export declare function withDbQueue<T>(dbPath: string, fn: (info: DbQueueInfo) => Promise<T> | T, options?: DbQueueOptions): Promise<T>;
14
+ export declare function configureDbQueueForTests(options?: {
15
+ reset?: boolean;
16
+ }): void;
17
+ export declare function getConnection(dbPath: string): Promise<SqlJsDatabase>;
18
+ export declare function exportDatabaseSnapshot(dbPath: string): Promise<Buffer>;
19
+ export declare function evictConnectionForDbPath(dbPath: string): void;
20
+ export declare function closeIdleConnections(): void;
21
+ export declare function closeAllConnections(): void;
22
+ export declare function closeConnectionsForPage(pageDir: string): void;
23
+ export declare function execRawSql(dbPath: string, sql: string, params?: unknown[]): {
24
+ columns?: string[];
25
+ rows?: Record<string, unknown>[];
26
+ changes?: number;
27
+ lastInsertRowId?: number;
28
+ };
29
+ export declare function execQuerySqlWithBudget(dbPath: string, sql: string, params: unknown[] | undefined, budget: {
30
+ sqlName: string;
31
+ maxRows: number;
32
+ maxBytes: number;
33
+ }): {
34
+ columns: string[];
35
+ rows: Record<string, unknown>[];
36
+ };
37
+ export declare function runDbTransaction<T>(dbPath: string, fn: () => Promise<T> | T, options?: DbQueueOptions): Promise<T>;
38
+ export declare function isValidSchemaName(name: string): boolean;
39
+ export declare function fieldTypeToSql(type: FieldType): string;
40
+ export declare function getDbPath(pageDir: string): string;
41
+ export declare function createTable(pageDir: string, schema: DataSchema): Promise<void>;
42
+ export declare function alterTableAddColumn(pageDir: string, tableName: string, fieldName: string, fieldType: FieldType, constraints?: FieldConstraints): Promise<void>;
43
+ export declare function dropTable(pageDir: string, tableName: string): Promise<void>;
44
+ export interface IssueRecord {
45
+ id: number;
46
+ issue_number: number;
47
+ title: string;
48
+ description: string;
49
+ status: string;
50
+ state_reason: "completed" | "not_planned" | null;
51
+ label: string;
52
+ issue_type: IssueType;
53
+ reporter_id: string;
54
+ locked_at: string | null;
55
+ locked_by: string | null;
56
+ lock_reason: IssueLockReason | null;
57
+ milestone_id: number | null;
58
+ pinned_at: string | null;
59
+ pinned_by: string | null;
60
+ created_at: string;
61
+ updated_at: string;
62
+ revision_count?: number;
63
+ }
64
+ export declare const ISSUE_TYPES: readonly ["task", "bug", "feature"];
65
+ export type IssueType = typeof ISSUE_TYPES[number];
66
+ export declare function isIssueType(value: unknown): value is IssueType;
67
+ export declare const ISSUE_LOCK_REASONS: readonly ["resolved", "off_topic", "too_heated", "spam"];
68
+ export type IssueLockReason = typeof ISSUE_LOCK_REASONS[number];
69
+ export declare function isIssueLockReason(value: unknown): value is IssueLockReason;
70
+ export type IssueListSort = "activity" | "created" | "updated" | "comments";
71
+ export type IssueListDirection = "asc" | "desc";
72
+ export declare const ISSUE_SEARCH_SCOPES: readonly ["title", "body", "comments"];
73
+ export type IssueSearchScope = typeof ISSUE_SEARCH_SCOPES[number];
74
+ export declare function parseIssueSearchScopes(value: unknown): IssueSearchScope[] | null;
75
+ export interface IssueListOptions {
76
+ q?: string;
77
+ searchIn?: readonly IssueSearchScope[];
78
+ status?: "open" | "closed";
79
+ label?: string;
80
+ issueType?: IssueType;
81
+ author?: string;
82
+ participant?: string;
83
+ assignee?: string;
84
+ milestone?: number | "none";
85
+ reason?: "completed" | "not_planned";
86
+ subscriberId?: string;
87
+ mentionedUserId?: string;
88
+ locked?: boolean;
89
+ sort?: IssueListSort;
90
+ direction?: IssueListDirection;
91
+ limit?: number;
92
+ offset?: number;
93
+ }
94
+ export interface IssueListItem extends IssueRecord {
95
+ comment_count: number;
96
+ last_activity_at: string;
97
+ is_blocked: number;
98
+ is_duplicate: number;
99
+ participant_ids: string[];
100
+ labels: IssueLabelRecord[];
101
+ assignee_ids: string[];
102
+ }
103
+ export interface IssueListMeta {
104
+ total: number;
105
+ open: number;
106
+ closed: number;
107
+ limit: number;
108
+ offset: number;
109
+ }
110
+ export interface IssueListResult {
111
+ data: IssueListItem[];
112
+ pinned: IssueListItem[];
113
+ meta: IssueListMeta;
114
+ }
115
+ export interface PotentialDuplicateIssue {
116
+ id: number;
117
+ issue_number: number;
118
+ title: string;
119
+ status: string;
120
+ updated_at: string;
121
+ last_activity_at: string;
122
+ score: number;
123
+ matched_in: "title" | "body" | "title,body";
124
+ }
125
+ export interface IssueCommentRecord {
126
+ id: number;
127
+ issue_id: number;
128
+ body: string;
129
+ author_id: string;
130
+ created_at: string;
131
+ updated_at: string;
132
+ deleted_at: string | null;
133
+ pinned_at: string | null;
134
+ pinned_by: string | null;
135
+ minimized_at: string | null;
136
+ minimized_by: string | null;
137
+ minimized_reason: IssueCommentMinimizedReason | null;
138
+ revision_count?: number;
139
+ }
140
+ export declare const ISSUE_COMMENT_MINIMIZED_REASONS: readonly ["abuse", "off-topic", "outdated", "resolved", "duplicate", "spam"];
141
+ export type IssueCommentMinimizedReason = (typeof ISSUE_COMMENT_MINIMIZED_REASONS)[number];
142
+ export declare function isIssueCommentMinimizedReason(value: unknown): value is IssueCommentMinimizedReason;
143
+ export type IssueRevisionTargetType = "issue" | "comment";
144
+ export interface IssueRevisionRecord {
145
+ id: number;
146
+ issue_id: number;
147
+ target_type: IssueRevisionTargetType;
148
+ target_id: number;
149
+ editor_id: string;
150
+ title: string | null;
151
+ body: string;
152
+ fields_json: string;
153
+ created_at: string;
154
+ }
155
+ export interface IssueEventRecord {
156
+ id: number;
157
+ issue_id: number;
158
+ actor_id: string;
159
+ event_type: string;
160
+ payload_json: string;
161
+ created_at: string;
162
+ }
163
+ export interface IssueAttachmentRecord {
164
+ id: string;
165
+ page_path: string;
166
+ issue_id: number | null;
167
+ comment_id: number | null;
168
+ draft_id: string;
169
+ uploader_id: string;
170
+ storage_key: string;
171
+ file_name: string;
172
+ mime_type: string;
173
+ size_bytes: number;
174
+ created_at: string;
175
+ bound_at: string | null;
176
+ deleted_at: string | null;
177
+ }
178
+ export interface IssueLabelRecord {
179
+ id: string;
180
+ name: string;
181
+ color: string;
182
+ description: string;
183
+ built_in: number;
184
+ created_at: string;
185
+ updated_at: string;
186
+ }
187
+ export interface IssueMilestoneRecord {
188
+ id: number;
189
+ title: string;
190
+ description: string;
191
+ due_on: string | null;
192
+ state: "open" | "closed";
193
+ created_by: string;
194
+ created_at: string;
195
+ updated_at: string;
196
+ open_issues: number;
197
+ closed_issues: number;
198
+ }
199
+ export interface IssueCollaborationMetadata {
200
+ labels: IssueLabelRecord[];
201
+ assignee_ids: string[];
202
+ subscriber_ids: string[];
203
+ participant_ids: string[];
204
+ }
205
+ export interface IssueSubIssueItem extends IssueRecord {
206
+ position: number;
207
+ added_by: string;
208
+ relation_created_at: string;
209
+ assignee_ids: string[];
210
+ child_count: number;
211
+ completed_child_count: number;
212
+ child_percent: number;
213
+ }
214
+ export interface IssueSubIssueSummary {
215
+ total: number;
216
+ completed: number;
217
+ percent: number;
218
+ }
219
+ export interface IssueSubIssueListResult {
220
+ items: IssueSubIssueItem[];
221
+ summary: IssueSubIssueSummary;
222
+ }
223
+ export interface IssueDependencyItem extends IssueRecord {
224
+ added_by: string;
225
+ relation_created_at: string;
226
+ assignee_ids: string[];
227
+ }
228
+ export interface IssueDependencySummary {
229
+ blockedBy: number;
230
+ blocking: number;
231
+ unresolvedBlockers: number;
232
+ isBlocked: boolean;
233
+ }
234
+ export interface IssueDuplicateItem extends IssueRecord {
235
+ marked_by: string;
236
+ comment_id: number;
237
+ relation_created_at: string;
238
+ }
239
+ export interface IssueCrossReferenceRecord {
240
+ id: number;
241
+ target_issue_id: number;
242
+ source_issue_id: number;
243
+ source_issue_number: number;
244
+ source_issue_title: string;
245
+ source_issue_status: string;
246
+ source_type: "issue" | "comment";
247
+ source_id: number;
248
+ source_comment_id: number | null;
249
+ actor_id: string;
250
+ excerpt: string;
251
+ created_at: string;
252
+ updated_at: string;
253
+ }
254
+ export declare const ISSUE_REACTION_CONTENTS: readonly ["+1", "-1", "laugh", "hooray", "confused", "heart", "rocket", "eyes"];
255
+ export type IssueReactionContent = typeof ISSUE_REACTION_CONTENTS[number];
256
+ export interface IssueReactionRecord {
257
+ issue_id: number;
258
+ comment_id: number;
259
+ user_id: string;
260
+ content: IssueReactionContent;
261
+ created_at: string;
262
+ }
263
+ export declare function isIssueReactionContent(value: unknown): value is IssueReactionContent;
264
+ export type IssueTimelineItem = {
265
+ kind: "comment";
266
+ comment: IssueCommentRecord;
267
+ } | {
268
+ kind: "event";
269
+ event: IssueEventRecord;
270
+ } | {
271
+ kind: "cross_reference";
272
+ crossReference: IssueCrossReferenceRecord;
273
+ };
274
+ export interface IssueDetail {
275
+ issue: IssueRecord;
276
+ timeline: IssueTimelineItem[];
277
+ attachments: IssueAttachmentRecord[];
278
+ collaboration: IssueCollaborationMetadata;
279
+ reactions: IssueReactionRecord[];
280
+ parent: IssueRecord | null;
281
+ subIssues: IssueSubIssueItem[];
282
+ subIssueSummary: IssueSubIssueSummary;
283
+ blockedBy: IssueDependencyItem[];
284
+ blocking: IssueDependencyItem[];
285
+ dependencySummary: IssueDependencySummary;
286
+ duplicateOf: IssueDuplicateItem | null;
287
+ duplicates: IssueDuplicateItem[];
288
+ }
289
+ export declare function ensureIssueTables(dbPath: string): Promise<void>;
290
+ export declare function listIssueLabels(dbPath: string): Promise<IssueLabelRecord[]>;
291
+ export declare function createIssueLabel(dbPath: string, input: {
292
+ id: string;
293
+ name: string;
294
+ color: string;
295
+ description?: string;
296
+ }): Promise<IssueLabelRecord>;
297
+ export declare function updateIssueLabel(dbPath: string, labelId: string, updates: {
298
+ name?: string;
299
+ color?: string;
300
+ description?: string;
301
+ }): Promise<IssueLabelRecord | null>;
302
+ export declare function deleteIssueLabel(dbPath: string, labelId: string): Promise<boolean>;
303
+ export declare function listIssueMilestones(dbPath: string): Promise<IssueMilestoneRecord[]>;
304
+ export declare function createIssueMilestone(dbPath: string, input: {
305
+ title: string;
306
+ description?: string;
307
+ dueOn?: string | null;
308
+ createdBy: string;
309
+ }): Promise<IssueMilestoneRecord>;
310
+ export declare function updateIssueMilestone(dbPath: string, milestoneId: number, updates: {
311
+ title?: string;
312
+ description?: string;
313
+ dueOn?: string | null;
314
+ state?: "open" | "closed";
315
+ }): Promise<IssueMilestoneRecord | null>;
316
+ export declare function deleteIssueMilestone(dbPath: string, milestoneId: number): Promise<boolean>;
317
+ export declare function setIssueMilestone(dbPath: string, issueId: number, milestoneId: number | null): Promise<void>;
318
+ export declare function replaceIssueLabels(dbPath: string, issueId: number, labelIds: string[]): Promise<void>;
319
+ export declare function replaceIssueAssignees(dbPath: string, issueId: number, userIds: string[], assignedBy: string): Promise<void>;
320
+ export declare function setIssueSubscription(dbPath: string, issueId: number, userId: string, subscribed: boolean): Promise<void>;
321
+ export declare function getIssueCollaborationMetadata(dbPath: string, issueId: number): Promise<IssueCollaborationMetadata>;
322
+ export declare function getNextIssueNumber(dbPath: string): Promise<number>;
323
+ export declare function insertIssue(dbPath: string, title: string, description: string, issueType: IssueType, reporterId: string): Promise<{
324
+ id: number;
325
+ issueNumber: number;
326
+ }>;
327
+ export declare function listPotentialDuplicateIssues(dbPath: string, title: string, body: string, limit?: number): Promise<PotentialDuplicateIssue[]>;
328
+ export declare function listIssues(dbPath: string, options?: IssueListOptions): Promise<IssueListResult>;
329
+ export declare function getIssueById(dbPath: string, id: number): Promise<IssueRecord | null>;
330
+ export declare function getIssueByNumber(dbPath: string, issueNumber: number): Promise<IssueRecord | null>;
331
+ export declare function updateIssue(dbPath: string, id: number, updates: {
332
+ status?: string;
333
+ stateReason?: "completed" | "not_planned" | null;
334
+ label?: string;
335
+ issueType?: IssueType;
336
+ title?: string;
337
+ description?: string;
338
+ }): Promise<boolean>;
339
+ export declare function getIssueComment(dbPath: string, commentId: number): Promise<IssueCommentRecord | null>;
340
+ export declare function setIssueLock(dbPath: string, issueId: number, lockedBy: string | null, reason?: IssueLockReason | null): Promise<boolean>;
341
+ export type IssuePinResult = "updated" | "unchanged" | "not_found" | "limit";
342
+ export declare function setIssuePin(dbPath: string, issueId: number, actorId: string, pinned: boolean): Promise<IssuePinResult>;
343
+ export declare const MAX_ISSUE_SUB_ISSUES = 100;
344
+ export declare const MAX_ISSUE_SUB_ISSUE_DEPTH = 8;
345
+ export type AddIssueSubIssueResult = "added" | "not_found" | "self_reference" | "duplicate" | "has_parent" | "cycle" | "limit" | "depth";
346
+ export declare function addIssueSubIssue(dbPath: string, parentIssueId: number, childIssueId: number, actorId: string, options?: {
347
+ joinTransaction?: boolean;
348
+ }): Promise<AddIssueSubIssueResult>;
349
+ export declare function removeIssueSubIssue(dbPath: string, parentIssueId: number, childIssueId: number, actorId: string): Promise<"removed" | "not_found">;
350
+ export type ReprioritizeIssueSubIssueResult = "reordered" | "unchanged" | "parent_not_found" | "child_not_found" | "after_not_found" | "self_after";
351
+ export declare function reprioritizeIssueSubIssue(dbPath: string, parentIssueId: number, childIssueId: number, afterIssueId: number | null, actorId: string): Promise<ReprioritizeIssueSubIssueResult>;
352
+ export declare function listIssueAncestorIds(dbPath: string, issueId: number): Promise<number[]>;
353
+ export declare function listIssueSubIssues(dbPath: string, parentIssueId: number): Promise<IssueSubIssueListResult>;
354
+ export type ConvertIssueTaskToSubIssueResult = {
355
+ status: "converted";
356
+ childIssueId: number;
357
+ childIssueNumber: number;
358
+ title: string;
359
+ addedTargetIssueIds: number[];
360
+ removedTargetIssueIds: number[];
361
+ } | {
362
+ status: "not_found" | "content_conflict" | "task_not_found" | "task_not_convertible" | "title_invalid";
363
+ } | {
364
+ status: "relation_conflict";
365
+ reason: Exclude<AddIssueSubIssueResult, "added" | "not_found">;
366
+ };
367
+ export declare function convertIssueTaskToSubIssue(dbPath: string, input: {
368
+ parentIssueId: number;
369
+ taskIndex: number;
370
+ expectedUpdatedAt: string;
371
+ actorId: string;
372
+ title?: string;
373
+ resolveMentionUserIds?: (markdown: string) => Promise<string[]>;
374
+ }): Promise<ConvertIssueTaskToSubIssueResult>;
375
+ export declare const MAX_ISSUE_DEPENDENCIES = 100;
376
+ export type AddIssueDependencyResult = "added" | "not_found" | "self_reference" | "duplicate" | "cycle" | "limit";
377
+ export declare function addIssueDependency(dbPath: string, blockedIssueId: number, blockingIssueId: number, actorId: string): Promise<AddIssueDependencyResult>;
378
+ export declare function removeIssueDependency(dbPath: string, blockedIssueId: number, blockingIssueId: number, actorId: string): Promise<"removed" | "not_found">;
379
+ export declare function parseIssueDuplicateReference(body: string): number | null;
380
+ export type InsertIssueDuplicateResult = "created" | "not_found" | "self_reference" | "already_marked" | "canonical_is_duplicate" | "has_duplicates";
381
+ export declare function insertIssueDuplicateComment(dbPath: string, input: {
382
+ duplicateIssueId: number;
383
+ canonicalIssueNumber: number;
384
+ actorId: string;
385
+ body: string;
386
+ }): Promise<{
387
+ status: InsertIssueDuplicateResult;
388
+ comment?: IssueCommentRecord;
389
+ }>;
390
+ export declare function markIssueDuplicateWithComment(dbPath: string, input: {
391
+ duplicateIssueId: number;
392
+ canonicalIssueNumber: number;
393
+ actorId: string;
394
+ commentId: number;
395
+ }): Promise<InsertIssueDuplicateResult>;
396
+ export declare function unmarkIssueDuplicate(dbPath: string, duplicateIssueId: number, canonicalIssueId: number, actorId: string): Promise<"removed" | "not_found">;
397
+ export declare function insertIssueComment(dbPath: string, issueId: number, body: string, authorId: string): Promise<IssueCommentRecord>;
398
+ export declare function extractIssueReferenceNumbers(markdown: string): number[];
399
+ export interface ReconcileIssueCrossReferencesResult {
400
+ addedTargetIssueIds: number[];
401
+ removedTargetIssueIds: number[];
402
+ }
403
+ export declare function reconcileIssueCrossReferences(dbPath: string, input: {
404
+ sourceIssueId: number;
405
+ sourceType: "issue" | "comment";
406
+ sourceId: number;
407
+ actorId: string;
408
+ markdown: string;
409
+ }): Promise<ReconcileIssueCrossReferencesResult>;
410
+ export declare function updateIssueComment(dbPath: string, commentId: number, body: string, authorId: string): Promise<IssueCommentRecord | null>;
411
+ export type IssueCommentPinResult = "pinned" | "unpinned" | "unchanged" | "conflict" | "not_found";
412
+ export declare function setIssueCommentPin(dbPath: string, issueId: number, commentId: number, actorId: string, pinned: boolean): Promise<IssueCommentPinResult>;
413
+ export type IssueCommentMinimizedResult = "minimized" | "unminimized" | "unchanged" | "pinned_conflict" | "invalid_reason" | "not_found";
414
+ export declare function setIssueCommentMinimized(dbPath: string, issueId: number, commentId: number, actorId: string, reason: IssueCommentMinimizedReason | null): Promise<IssueCommentMinimizedResult>;
415
+ export declare function insertIssueRevision(dbPath: string, input: {
416
+ issueId: number;
417
+ targetType: IssueRevisionTargetType;
418
+ targetId: number;
419
+ editorId: string;
420
+ title?: string | null;
421
+ body: string;
422
+ fields: string[];
423
+ }): Promise<IssueRevisionRecord>;
424
+ export declare function listIssueRevisions(dbPath: string, issueId: number, targetType: IssueRevisionTargetType, targetId: number): Promise<IssueRevisionRecord[]>;
425
+ export declare function deleteIssueComment(dbPath: string, commentId: number, authorId: string): Promise<boolean>;
426
+ export declare function deleteIssue(dbPath: string, issueId: number): Promise<IssueAttachmentRecord[] | null>;
427
+ export declare function replaceIssueMentions(dbPath: string, input: {
428
+ issueId: number;
429
+ targetType: "issue" | "comment";
430
+ targetId: number;
431
+ userIds: string[];
432
+ }): Promise<void>;
433
+ export declare function setIssueReaction(dbPath: string, input: {
434
+ issueId: number;
435
+ commentId?: number;
436
+ userId: string;
437
+ content: IssueReactionContent;
438
+ reacted: boolean;
439
+ }): Promise<"changed" | "unchanged" | "target_not_found">;
440
+ export declare function insertIssueEvent(dbPath: string, issueId: number, actorId: string, eventType: string, payload?: Record<string, unknown>): Promise<IssueEventRecord>;
441
+ export declare const MAX_ISSUE_DRAFT_ATTACHMENTS = 20;
442
+ export declare class IssueAttachmentDraftLimitError extends Error {
443
+ constructor();
444
+ }
445
+ export declare function insertIssueAttachment(dbPath: string, input: {
446
+ id: string;
447
+ pagePath: string;
448
+ draftId: string;
449
+ uploaderId: string;
450
+ storageKey: string;
451
+ fileName: string;
452
+ mimeType: string;
453
+ sizeBytes: number;
454
+ }): Promise<IssueAttachmentRecord>;
455
+ export declare function getIssueAttachment(dbPath: string, attachmentId: string): Promise<IssueAttachmentRecord | null>;
456
+ export declare function listExpiredUnboundIssueAttachments(dbPath: string, createdBefore: string): Promise<IssueAttachmentRecord[]>;
457
+ export declare function deleteIssueAttachmentMetadata(dbPath: string, attachmentId: string): Promise<boolean>;
458
+ export declare function releaseUnboundIssueAttachment(dbPath: string, input: {
459
+ attachmentId: string;
460
+ pagePath: string;
461
+ draftId: string;
462
+ uploaderId: string;
463
+ }): Promise<IssueAttachmentRecord | null>;
464
+ export declare function restoreReleasedIssueAttachment(dbPath: string, input: {
465
+ attachmentId: string;
466
+ pagePath: string;
467
+ draftId: string;
468
+ uploaderId: string;
469
+ releaseDeletedAt: string;
470
+ }): Promise<boolean>;
471
+ export declare function deleteBoundIssueAttachments(dbPath: string, input: {
472
+ attachmentIds: string[];
473
+ issueId: number;
474
+ commentId: number | null;
475
+ }): Promise<boolean>;
476
+ export declare function bindIssueAttachments(dbPath: string, input: {
477
+ attachmentIds: string[];
478
+ draftId: string;
479
+ uploaderId: string;
480
+ issueId: number;
481
+ commentId?: number;
482
+ pagePath?: string;
483
+ }): Promise<IssueAttachmentRecord[]>;
484
+ export declare function getIssueDetail(dbPath: string, issueId: number): Promise<IssueDetail | null>;
485
+ export declare function getIssueDetailByNumber(dbPath: string, issueNumber: number): Promise<IssueDetail | null>;
486
+ //# sourceMappingURL=app-db.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-db.d.ts","sourceRoot":"","sources":["../../src/lib/app-db.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOlF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAEpF;AAqBD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACtC;AAkBD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,wBAAsB,WAAW,CAAC,CAAC,EACjC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EACzC,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,CAAC,CAAC,CASZ;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE;IAAE,K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