@eloxiv/cli 0.0.0-stage → 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 (294) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -2
  3. package/dist/AgentSkills.d.ts +51 -0
  4. package/dist/AgentSkills.d.ts.map +1 -0
  5. package/dist/AgentSkills.js +264 -0
  6. package/dist/AgentSkills.js.map +1 -0
  7. package/dist/AgentWeb.d.ts +83 -0
  8. package/dist/AgentWeb.d.ts.map +1 -0
  9. package/dist/AgentWeb.js +436 -0
  10. package/dist/AgentWeb.js.map +1 -0
  11. package/dist/App.d.ts +213 -0
  12. package/dist/App.d.ts.map +1 -0
  13. package/dist/App.js +357 -0
  14. package/dist/App.js.map +1 -0
  15. package/dist/Blueprint.d.ts +47 -0
  16. package/dist/Blueprint.d.ts.map +1 -0
  17. package/dist/Blueprint.js +241 -0
  18. package/dist/Blueprint.js.map +1 -0
  19. package/dist/Brand.d.ts +42 -0
  20. package/dist/Brand.d.ts.map +1 -0
  21. package/dist/Brand.js +370 -0
  22. package/dist/Brand.js.map +1 -0
  23. package/dist/Changelog.d.ts +22 -0
  24. package/dist/Changelog.d.ts.map +1 -0
  25. package/dist/Changelog.js +117 -0
  26. package/dist/Changelog.js.map +1 -0
  27. package/dist/Cli.d.ts +17 -0
  28. package/dist/Cli.d.ts.map +1 -0
  29. package/dist/Cli.js +810 -0
  30. package/dist/Cli.js.map +1 -0
  31. package/dist/DbAdmin.d.ts +18 -0
  32. package/dist/DbAdmin.d.ts.map +1 -0
  33. package/dist/DbAdmin.js +91 -0
  34. package/dist/DbAdmin.js.map +1 -0
  35. package/dist/Dependencies.d.ts +53 -0
  36. package/dist/Dependencies.d.ts.map +1 -0
  37. package/dist/Dependencies.js +132 -0
  38. package/dist/Dependencies.js.map +1 -0
  39. package/dist/Deploy.d.ts +39 -0
  40. package/dist/Deploy.d.ts.map +1 -0
  41. package/dist/Deploy.js +458 -0
  42. package/dist/Deploy.js.map +1 -0
  43. package/dist/Docs.d.ts +71 -0
  44. package/dist/Docs.d.ts.map +1 -0
  45. package/dist/Docs.js +240 -0
  46. package/dist/Docs.js.map +1 -0
  47. package/dist/Doctor.d.ts +56 -0
  48. package/dist/Doctor.d.ts.map +1 -0
  49. package/dist/Doctor.js +368 -0
  50. package/dist/Doctor.js.map +1 -0
  51. package/dist/Dossier.d.ts +23 -0
  52. package/dist/Dossier.d.ts.map +1 -0
  53. package/dist/Dossier.js +92 -0
  54. package/dist/Dossier.js.map +1 -0
  55. package/dist/Emit.d.ts +26 -0
  56. package/dist/Emit.d.ts.map +1 -0
  57. package/dist/Emit.js +51 -0
  58. package/dist/Emit.js.map +1 -0
  59. package/dist/Errors.d.ts +26 -0
  60. package/dist/Errors.d.ts.map +1 -0
  61. package/dist/Errors.js +17 -0
  62. package/dist/Errors.js.map +1 -0
  63. package/dist/Evals.d.ts +52 -0
  64. package/dist/Evals.d.ts.map +1 -0
  65. package/dist/Evals.js +126 -0
  66. package/dist/Evals.js.map +1 -0
  67. package/dist/Files.d.ts +47 -0
  68. package/dist/Files.d.ts.map +1 -0
  69. package/dist/Files.js +145 -0
  70. package/dist/Files.js.map +1 -0
  71. package/dist/Generate.d.ts +80 -0
  72. package/dist/Generate.d.ts.map +1 -0
  73. package/dist/Generate.js +310 -0
  74. package/dist/Generate.js.map +1 -0
  75. package/dist/Guards.d.ts +45 -0
  76. package/dist/Guards.d.ts.map +1 -0
  77. package/dist/Guards.js +530 -0
  78. package/dist/Guards.js.map +1 -0
  79. package/dist/Inspect.d.ts +125 -0
  80. package/dist/Inspect.d.ts.map +1 -0
  81. package/dist/Inspect.js +270 -0
  82. package/dist/Inspect.js.map +1 -0
  83. package/dist/Keychain.d.ts +57 -0
  84. package/dist/Keychain.d.ts.map +1 -0
  85. package/dist/Keychain.js +73 -0
  86. package/dist/Keychain.js.map +1 -0
  87. package/dist/Lock.d.ts +13 -0
  88. package/dist/Lock.d.ts.map +1 -0
  89. package/dist/Lock.js +145 -0
  90. package/dist/Lock.js.map +1 -0
  91. package/dist/Mcp.d.ts +91 -0
  92. package/dist/Mcp.d.ts.map +1 -0
  93. package/dist/Mcp.js +128 -0
  94. package/dist/Mcp.js.map +1 -0
  95. package/dist/Merge.d.ts +18 -0
  96. package/dist/Merge.d.ts.map +1 -0
  97. package/dist/Merge.js +43 -0
  98. package/dist/Merge.js.map +1 -0
  99. package/dist/Migrate.d.ts +78 -0
  100. package/dist/Migrate.d.ts.map +1 -0
  101. package/dist/Migrate.js +288 -0
  102. package/dist/Migrate.js.map +1 -0
  103. package/dist/Plugins.d.ts +36 -0
  104. package/dist/Plugins.d.ts.map +1 -0
  105. package/dist/Plugins.js +304 -0
  106. package/dist/Plugins.js.map +1 -0
  107. package/dist/Postgres.d.ts +73 -0
  108. package/dist/Postgres.d.ts.map +1 -0
  109. package/dist/Postgres.js +294 -0
  110. package/dist/Postgres.js.map +1 -0
  111. package/dist/Publish.d.ts +23 -0
  112. package/dist/Publish.d.ts.map +1 -0
  113. package/dist/Publish.js +59 -0
  114. package/dist/Publish.js.map +1 -0
  115. package/dist/Registry.d.ts +539 -0
  116. package/dist/Registry.d.ts.map +1 -0
  117. package/dist/Registry.js +340 -0
  118. package/dist/Registry.js.map +1 -0
  119. package/dist/Remote.d.ts +90 -0
  120. package/dist/Remote.d.ts.map +1 -0
  121. package/dist/Remote.js +1006 -0
  122. package/dist/Remote.js.map +1 -0
  123. package/dist/Run.d.ts +120 -0
  124. package/dist/Run.d.ts.map +1 -0
  125. package/dist/Run.js +477 -0
  126. package/dist/Run.js.map +1 -0
  127. package/dist/SyncGen.d.ts +118 -0
  128. package/dist/SyncGen.d.ts.map +1 -0
  129. package/dist/SyncGen.js +392 -0
  130. package/dist/SyncGen.js.map +1 -0
  131. package/dist/Update.d.ts +301 -0
  132. package/dist/Update.d.ts.map +1 -0
  133. package/dist/Update.js +627 -0
  134. package/dist/Update.js.map +1 -0
  135. package/dist/bin.d.ts +3 -0
  136. package/dist/bin.d.ts.map +1 -0
  137. package/dist/bin.js +42 -0
  138. package/dist/bin.js.map +1 -0
  139. package/dist/docs/backlog.md +56 -0
  140. package/dist/docs/ci.md +277 -0
  141. package/dist/docs/cli.md +696 -0
  142. package/dist/docs/connectors/google.md +115 -0
  143. package/dist/docs/connectors/http-openapi.md +7 -0
  144. package/dist/docs/connectors/mcp.md +8 -0
  145. package/dist/docs/connectors/microsoft-graph.md +75 -0
  146. package/dist/docs/connectors/openai.md +25 -0
  147. package/dist/docs/connectors/slack.md +162 -0
  148. package/dist/docs/connectors/workos.md +39 -0
  149. package/dist/docs/contracts/README.md +173 -0
  150. package/dist/docs/contracts/action-consent.md +92 -0
  151. package/dist/docs/contracts/action-registry.md +85 -0
  152. package/dist/docs/contracts/actor.md +100 -0
  153. package/dist/docs/contracts/agent-resources.md +90 -0
  154. package/dist/docs/contracts/agent-runtime.md +257 -0
  155. package/dist/docs/contracts/approvals.md +126 -0
  156. package/dist/docs/contracts/audit.md +75 -0
  157. package/dist/docs/contracts/auth-provider.md +74 -0
  158. package/dist/docs/contracts/calendar-provider.md +46 -0
  159. package/dist/docs/contracts/client-sdk.md +245 -0
  160. package/dist/docs/contracts/collab-document.md +151 -0
  161. package/dist/docs/contracts/command.md +44 -0
  162. package/dist/docs/contracts/connections.md +235 -0
  163. package/dist/docs/contracts/context-accounting.md +50 -0
  164. package/dist/docs/contracts/daemon.md +243 -0
  165. package/dist/docs/contracts/db-tx.md +53 -0
  166. package/dist/docs/contracts/delegation.md +68 -0
  167. package/dist/docs/contracts/device-control.md +103 -0
  168. package/dist/docs/contracts/directory-provider.md +36 -0
  169. package/dist/docs/contracts/directory.md +161 -0
  170. package/dist/docs/contracts/document-source.md +33 -0
  171. package/dist/docs/contracts/files.md +115 -0
  172. package/dist/docs/contracts/flags.md +83 -0
  173. package/dist/docs/contracts/host.md +68 -0
  174. package/dist/docs/contracts/http-api.md +43 -0
  175. package/dist/docs/contracts/ingestion.md +130 -0
  176. package/dist/docs/contracts/ingress.md +141 -0
  177. package/dist/docs/contracts/invocation.md +260 -0
  178. package/dist/docs/contracts/local-client.md +108 -0
  179. package/dist/docs/contracts/locale.md +56 -0
  180. package/dist/docs/contracts/machine-identity.md +117 -0
  181. package/dist/docs/contracts/mail-provider.md +49 -0
  182. package/dist/docs/contracts/memory.md +53 -0
  183. package/dist/docs/contracts/messaging.md +40 -0
  184. package/dist/docs/contracts/metering.md +139 -0
  185. package/dist/docs/contracts/model-provider.md +84 -0
  186. package/dist/docs/contracts/module-manifest.md +213 -0
  187. package/dist/docs/contracts/notification-channel.md +90 -0
  188. package/dist/docs/contracts/notifications.md +123 -0
  189. package/dist/docs/contracts/outbox.md +80 -0
  190. package/dist/docs/contracts/privacy.md +110 -0
  191. package/dist/docs/contracts/progress.md +52 -0
  192. package/dist/docs/contracts/query-surface.md +108 -0
  193. package/dist/docs/contracts/readiness.md +63 -0
  194. package/dist/docs/contracts/release.md +142 -0
  195. package/dist/docs/contracts/result-rendering.md +61 -0
  196. package/dist/docs/contracts/sandbox.md +186 -0
  197. package/dist/docs/contracts/scheduler.md +148 -0
  198. package/dist/docs/contracts/screen-context.md +81 -0
  199. package/dist/docs/contracts/search.md +120 -0
  200. package/dist/docs/contracts/secrets.md +74 -0
  201. package/dist/docs/contracts/settings.md +109 -0
  202. package/dist/docs/contracts/sharing.md +77 -0
  203. package/dist/docs/contracts/slot.md +48 -0
  204. package/dist/docs/contracts/space.md +67 -0
  205. package/dist/docs/contracts/storage-adapter.md +45 -0
  206. package/dist/docs/contracts/storage-backend.md +56 -0
  207. package/dist/docs/contracts/sync.md +213 -0
  208. package/dist/docs/contracts/telemetry.md +80 -0
  209. package/dist/docs/contracts/theme-tokens.md +50 -0
  210. package/dist/docs/contracts/tool-source.md +58 -0
  211. package/dist/docs/contracts/versioning.md +99 -0
  212. package/dist/docs/contracts/view.md +65 -0
  213. package/dist/docs/contracts/work-items.md +99 -0
  214. package/dist/docs/contracts/workflow.md +82 -0
  215. package/dist/docs/decisions.md +163 -0
  216. package/dist/docs/example-app.md +192 -0
  217. package/dist/docs/getting-started.md +927 -0
  218. package/dist/docs/goal.md +54 -0
  219. package/dist/docs/parity.md +29 -0
  220. package/dist/docs/performance.md +129 -0
  221. package/dist/docs/registry/README.md +74 -0
  222. package/dist/docs/registry/app.md +38 -0
  223. package/dist/docs/registry/approvals-ui-foldkit.md +28 -0
  224. package/dist/docs/registry/calendar-ui-foldkit.md +27 -0
  225. package/dist/docs/registry/calendar.md +35 -0
  226. package/dist/docs/registry/chat-ui-foldkit.md +30 -0
  227. package/dist/docs/registry/desktop-rune.md +49 -0
  228. package/dist/docs/registry/desktop.md +32 -0
  229. package/dist/docs/registry/eloxiv-action.md +25 -0
  230. package/dist/docs/registry/eloxiv-connector.md +25 -0
  231. package/dist/docs/registry/eloxiv-module.md +25 -0
  232. package/dist/docs/registry/eloxiv-policy.md +25 -0
  233. package/dist/docs/registry/eloxiv-view.md +25 -0
  234. package/dist/docs/registry/hello-ui-foldkit.md +29 -0
  235. package/dist/docs/registry/hello.md +39 -0
  236. package/dist/docs/registry/home-ui-foldkit.md +27 -0
  237. package/dist/docs/registry/home.md +29 -0
  238. package/dist/docs/registry/inbox-ui-foldkit.md +27 -0
  239. package/dist/docs/registry/mail-ui-foldkit.md +27 -0
  240. package/dist/docs/registry/mail.md +34 -0
  241. package/dist/docs/registry/meeting-prep.md +26 -0
  242. package/dist/docs/registry/members-ui-foldkit.md +28 -0
  243. package/dist/docs/registry/mobile.md +37 -0
  244. package/dist/docs/registry/notes-ui-foldkit.md +27 -0
  245. package/dist/docs/registry/notes.md +26 -0
  246. package/dist/docs/registry/people-ui-foldkit.md +28 -0
  247. package/dist/docs/registry/people.md +38 -0
  248. package/dist/docs/registry/shell-foldkit.md +34 -0
  249. package/dist/docs/registry/theme.md +25 -0
  250. package/dist/docs/registry/ui-conformance.md +30 -0
  251. package/dist/docs/release.md +100 -0
  252. package/dist/docs/scaffold.md +826 -0
  253. package/dist/docs/security/threat-model.md +299 -0
  254. package/dist/docs/upstream/zero-cache-socket-handoff.md +105 -0
  255. package/dist/index.d.ts +8 -0
  256. package/dist/index.d.ts.map +1 -0
  257. package/dist/index.js +8 -0
  258. package/dist/index.js.map +1 -0
  259. package/package.json +48 -3
  260. package/src/AgentSkills.ts +329 -0
  261. package/src/AgentWeb.ts +507 -0
  262. package/src/App.ts +435 -0
  263. package/src/Blueprint.ts +276 -0
  264. package/src/Brand.ts +415 -0
  265. package/src/Changelog.ts +136 -0
  266. package/src/Cli.ts +1458 -0
  267. package/src/DbAdmin.ts +115 -0
  268. package/src/Dependencies.ts +170 -0
  269. package/src/Deploy.ts +563 -0
  270. package/src/Docs.ts +309 -0
  271. package/src/Doctor.ts +424 -0
  272. package/src/Dossier.ts +148 -0
  273. package/src/Emit.ts +68 -0
  274. package/src/Errors.ts +18 -0
  275. package/src/Evals.ts +153 -0
  276. package/src/Files.ts +152 -0
  277. package/src/Generate.ts +402 -0
  278. package/src/Guards.ts +541 -0
  279. package/src/Inspect.ts +358 -0
  280. package/src/Keychain.ts +107 -0
  281. package/src/Lock.ts +174 -0
  282. package/src/Mcp.ts +159 -0
  283. package/src/Merge.ts +70 -0
  284. package/src/Migrate.ts +331 -0
  285. package/src/Plugins.ts +347 -0
  286. package/src/Postgres.ts +353 -0
  287. package/src/Publish.ts +64 -0
  288. package/src/Registry.ts +405 -0
  289. package/src/Remote.ts +1158 -0
  290. package/src/Run.ts +541 -0
  291. package/src/SyncGen.ts +570 -0
  292. package/src/Update.ts +873 -0
  293. package/src/bin.ts +46 -0
  294. package/src/index.ts +7 -0
@@ -0,0 +1,25 @@
1
+ # eloxiv-action
2
+
3
+ A framework skill for the **coding agents that build an app** (Claude Code, Codex): adding an action to a module: its schemas, target, policy, handler and eval case, and calling it on every surface. Kind `skill`, audience `development`: the app's own agent is never given it (it is not in its skill index and `load_skill` does not find it; [AgentResources](../contracts/agent-resources.md)). It is one of five, with [eloxiv-module](eloxiv-module.md), [eloxiv-action](eloxiv-action.md), [eloxiv-policy](eloxiv-policy.md), [eloxiv-connector](eloxiv-connector.md) and [eloxiv-view](eloxiv-view.md).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add eloxiv-action
9
+ eloxiv skills link # where Claude Code (.claude/skills) and Codex (.agents/skills) load skills
10
+ ```
11
+
12
+ It installs `skills/eloxiv-action/SKILL.md` (what the coding agent reads) and `skill.ts` (its definition, `audience: "development"`). `eloxiv skills link` writes it into each host's skill directory in the form the host loads; `eloxiv skills ensure` checks the copies are current ([CLI](../cli.md#skills)).
13
+
14
+ ## Use it
15
+
16
+ The coding agent reads it when asked to do what it covers, then follows it: it is short, and points the agent at this release's own plans and pages (eloxiv blueprint action, `eloxiv docs search` for the contract pages, `eloxiv info <item> --markdown` for the registry's worked examples) rather than repeating them.
17
+
18
+ ## Guarantees and limits
19
+
20
+ - For development only: never given to the app's own agent.
21
+ - Accurate to the release it ships with: [`registry/test/skill-corpus.test.ts`](../../registry/test/skill-corpus.test.ts) checks that every `eloxiv` command and registry item it names exists, and that it stays at most 40 lines.
22
+
23
+ ## Example
24
+
25
+ Ask the coding agent, in the app's repository: "Add a tasks.reopen action".
@@ -0,0 +1,25 @@
1
+ # eloxiv-connector
2
+
3
+ A framework skill for the **coding agents that build an app** (Claude Code, Codex): writing a connector over the kernel's Connections that implements capability contracts, proven with a protocol fake and the contract's conformance kit. Kind `skill`, audience `development`: the app's own agent is never given it (it is not in its skill index and `load_skill` does not find it; [AgentResources](../contracts/agent-resources.md)). It is one of five, with [eloxiv-module](eloxiv-module.md), [eloxiv-action](eloxiv-action.md), [eloxiv-policy](eloxiv-policy.md), [eloxiv-connector](eloxiv-connector.md) and [eloxiv-view](eloxiv-view.md).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add eloxiv-connector
9
+ eloxiv skills link # where Claude Code (.claude/skills) and Codex (.agents/skills) load skills
10
+ ```
11
+
12
+ It installs `skills/eloxiv-connector/SKILL.md` (what the coding agent reads) and `skill.ts` (its definition, `audience: "development"`). `eloxiv skills link` writes it into each host's skill directory in the form the host loads; `eloxiv skills ensure` checks the copies are current ([CLI](../cli.md#skills)).
13
+
14
+ ## Use it
15
+
16
+ The coding agent reads it when asked to do what it covers, then follows it: it is short, and points the agent at this release's own plans and pages (eloxiv blueprint connector, `eloxiv docs search` for the contract pages, `eloxiv info <item> --markdown` for the registry's worked examples) rather than repeating them.
17
+
18
+ ## Guarantees and limits
19
+
20
+ - For development only: never given to the app's own agent.
21
+ - Accurate to the release it ships with: [`registry/test/skill-corpus.test.ts`](../../registry/test/skill-corpus.test.ts) checks that every `eloxiv` command and registry item it names exists, and that it stays at most 40 lines.
22
+
23
+ ## Example
24
+
25
+ Ask the coding agent, in the app's repository: "Write a connector for our ticketing system's mail".
@@ -0,0 +1,25 @@
1
+ # eloxiv-module
2
+
3
+ A framework skill for the **coding agents that build an app** (Claude Code, Codex): writing a module: its Drizzle tables, contract, Cedar policy, handlers, migrations and named queries, through the CLI. Kind `skill`, audience `development`: the app's own agent is never given it (it is not in its skill index and `load_skill` does not find it; [AgentResources](../contracts/agent-resources.md)). It is one of five, with [eloxiv-module](eloxiv-module.md), [eloxiv-action](eloxiv-action.md), [eloxiv-policy](eloxiv-policy.md), [eloxiv-connector](eloxiv-connector.md) and [eloxiv-view](eloxiv-view.md).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add eloxiv-module
9
+ eloxiv skills link # where Claude Code (.claude/skills) and Codex (.agents/skills) load skills
10
+ ```
11
+
12
+ It installs `skills/eloxiv-module/SKILL.md` (what the coding agent reads) and `skill.ts` (its definition, `audience: "development"`). `eloxiv skills link` writes it into each host's skill directory in the form the host loads; `eloxiv skills ensure` checks the copies are current ([CLI](../cli.md#skills)).
13
+
14
+ ## Use it
15
+
16
+ The coding agent reads it when asked to do what it covers, then follows it: it is short, and points the agent at this release's own plans and pages (eloxiv blueprint module, `eloxiv docs search` for the contract pages, `eloxiv info <item> --markdown` for the registry's worked examples) rather than repeating them.
17
+
18
+ ## Guarantees and limits
19
+
20
+ - For development only: never given to the app's own agent.
21
+ - Accurate to the release it ships with: [`registry/test/skill-corpus.test.ts`](../../registry/test/skill-corpus.test.ts) checks that every `eloxiv` command and registry item it names exists, and that it stays at most 40 lines.
22
+
23
+ ## Example
24
+
25
+ Ask the coding agent, in the app's repository: "Write a module called invoices for this app".
@@ -0,0 +1,25 @@
1
+ # eloxiv-policy
2
+
3
+ A framework skill for the **coding agents that build an app** (Claude Code, Codex): writing a module's Cedar policy, which both authorises its actions and decides what syncs to each person. Kind `skill`, audience `development`: the app's own agent is never given it (it is not in its skill index and `load_skill` does not find it; [AgentResources](../contracts/agent-resources.md)). It is one of five, with [eloxiv-module](eloxiv-module.md), [eloxiv-action](eloxiv-action.md), [eloxiv-policy](eloxiv-policy.md), [eloxiv-connector](eloxiv-connector.md) and [eloxiv-view](eloxiv-view.md).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add eloxiv-policy
9
+ eloxiv skills link # where Claude Code (.claude/skills) and Codex (.agents/skills) load skills
10
+ ```
11
+
12
+ It installs `skills/eloxiv-policy/SKILL.md` (what the coding agent reads) and `skill.ts` (its definition, `audience: "development"`). `eloxiv skills link` writes it into each host's skill directory in the form the host loads; `eloxiv skills ensure` checks the copies are current ([CLI](../cli.md#skills)).
13
+
14
+ ## Use it
15
+
16
+ The coding agent reads it when asked to do what it covers, then follows it: it is short, and points the agent at this release's own plans and pages (the policy rules it states (no blueprint), `eloxiv docs search` for the contract pages, `eloxiv info <item> --markdown` for the registry's worked examples) rather than repeating them.
17
+
18
+ ## Guarantees and limits
19
+
20
+ - For development only: never given to the app's own agent.
21
+ - Accurate to the release it ships with: [`registry/test/skill-corpus.test.ts`](../../registry/test/skill-corpus.test.ts) checks that every `eloxiv` command and registry item it names exists, and that it stays at most 40 lines.
22
+
23
+ ## Example
24
+
25
+ Ask the coding agent, in the app's repository: "Let a task's assignee complete it too".
@@ -0,0 +1,25 @@
1
+ # eloxiv-view
2
+
3
+ A framework skill for the **coding agents that build an app** (Claude Code, Codex): giving a module a view and building its screen on the headless client SDK. Kind `skill`, audience `development`: the app's own agent is never given it (it is not in its skill index and `load_skill` does not find it; [AgentResources](../contracts/agent-resources.md)). It is one of five, with [eloxiv-module](eloxiv-module.md), [eloxiv-action](eloxiv-action.md), [eloxiv-policy](eloxiv-policy.md), [eloxiv-connector](eloxiv-connector.md) and [eloxiv-view](eloxiv-view.md).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add eloxiv-view
9
+ eloxiv skills link # where Claude Code (.claude/skills) and Codex (.agents/skills) load skills
10
+ ```
11
+
12
+ It installs `skills/eloxiv-view/SKILL.md` (what the coding agent reads) and `skill.ts` (its definition, `audience: "development"`). `eloxiv skills link` writes it into each host's skill directory in the form the host loads; `eloxiv skills ensure` checks the copies are current ([CLI](../cli.md#skills)).
13
+
14
+ ## Use it
15
+
16
+ The coding agent reads it when asked to do what it covers, then follows it: it is short, and points the agent at this release's own plans and pages (the client SDK's UI bindings, `eloxiv docs search` for the contract pages, `eloxiv info <item> --markdown` for the registry's worked examples) rather than repeating them.
17
+
18
+ ## Guarantees and limits
19
+
20
+ - For development only: never given to the app's own agent.
21
+ - Accurate to the release it ships with: [`registry/test/skill-corpus.test.ts`](../../registry/test/skill-corpus.test.ts) checks that every `eloxiv` command and registry item it names exists, and that it stays at most 40 lines.
22
+
23
+ ## Example
24
+
25
+ Ask the coding agent, in the app's repository: "Give the tasks module a screen that lists open tasks".
@@ -0,0 +1,29 @@
1
+ # hello-ui-foldkit
2
+
3
+ [hello](hello.md)'s screen: greetings live from the local replica, and `hello.greet` written optimistically (the greeting shows at once, the server's row replaces it, a refused one disappears with its typed error), each greeting's waves with a Wave button on someone else's org-visible greeting (`hello.wave`, through hello's own prediction: the count goes up at once and the server's count replaces it), with the views other modules contribute to `hello.greetingPanel` beside them. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add hello-ui-foldkit
9
+ ```
10
+
11
+ It brings [hello](hello.md) and the shell. The screen is at `/hello`.
12
+
13
+ ## Use it
14
+
15
+ Its file, `screens/hello.ts`, is the shortest complete example of the [Foldkit adapter](../contracts/client-sdk.md#ui-bindings): `liveQuery`, `QueryState` and `receive` for the list, `writeOptimistic` with the generated mutators for the writes (a declarative prediction for the greeting, hello's own for the wave), `WriteError` for the refusal.
16
+
17
+ To change it, edit the file (`eloxiv diff hello-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject hello-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+ - A refused greeting (hello's policy refuses one containing "goodbye") is shown with its error and removed from the list; so is a refused wave, its count back to the server's.
23
+ - The Wave button shows only on other people's org-visible greetings, the ones hello's policy lets the person wave at.
24
+
25
+ ## Example
26
+
27
+ ```sh
28
+ eloxiv add hello-ui-foldkit && eloxiv dev # http://localhost:5173/hello
29
+ ```
@@ -0,0 +1,39 @@
1
+ # hello
2
+
3
+ A small module to learn from and to test an assembly with: one entity (`greeting`), two actions (`hello.greet`, and `hello.wave` with an optimistic prediction of hello's own), its own schema and database roles, a Cedar policy, sync queries, a query view, a skill with evals, a setting, a slot and a work-item source. Headless: its screen is [`hello-ui-foldkit`](hello-ui-foldkit.md). Kind `module`.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add hello # brings app
9
+ eloxiv add hello-ui-foldkit # its screen, if the app has a UI
10
+ ```
11
+
12
+ It installs `modules/hello/`: `schema.ts` (the Drizzle table), `contract.ts` (entity, actions, event, views, skill), `policy.cedar`, `server.ts` (the handlers), `sync.ts` and `sync.gen.ts`, `predictions.ts` (`hello.wave`'s prediction) and `mutators.gen.ts` (its mutators, generated apart since 0.8.0 so only clients load `predictions.ts`), `migrations/`, `skills/`.
13
+
14
+ ## Use it
15
+
16
+ | Surface | What it offers |
17
+ | --- | --- |
18
+ | Action `hello.greet` | `{ message, visibility?: "org" \| "private", key? }` → `{ id, message, visibility }`; optimistic (a replica shows the greeting at once) |
19
+ | Action `hello.wave` | `{ greetingId }` → `{ id, waves }`: one more wave at someone else's org-visible greeting; optimistic through hello's own prediction (`predictions.ts`: the replica counts the wave at once, the server's count replaces it) |
20
+ | Event `hello.greeted` | `{ greetingId, ownerId, visibility }` (never the text), through the outbox |
21
+ | Sync query `hello.greetings` | the greetings the person may read, newest first |
22
+ | Query view `hello.greetings` | the same, for the agent's query tool |
23
+ | Skill `hello.greeting` | how the agent posts and reads greetings |
24
+ | Setting `hello.defaultVisibility` | per user, `org` by default |
25
+ | Slot `hello.greetingPanel` | views other modules show beside the greetings ([notes](notes.md) does) |
26
+
27
+ ## Guarantees and limits
28
+
29
+ - A person reads their own greetings and their organisation's `org` greetings, and any shared with them (Sharing grants); a private greeting never reaches another person's replica.
30
+ - The policy refuses a greeting containing "goodbye", to show a refusal: a replica that predicted it drops it, with the typed error.
31
+ - Nobody waves at their own greeting, or at a private one: the policy refuses it, and a replica that counted the wave drops it, with the typed error. `hello.wave` is the smallest example of a custom prediction ([Sync](../contracts/sync.md#custom-predictions)): a counter no declarative effect can describe.
32
+ - The module is a teaching example; copy its shape, not its domain.
33
+
34
+ ## Example
35
+
36
+ ```sh
37
+ eloxiv call hello.greet --input '{"message":"Hello, Acme!","visibility":"org"}'
38
+ eloxiv call hello.wave --input '{"greetingId":"<someone else'"'"'s greeting id>"}'
39
+ ```
@@ -0,0 +1,27 @@
1
+ # home-ui-foldkit
2
+
3
+ The home space's launcher at the shell's home route: the person's spaces (granted to their roles, with their own pinning and order) and everything installed to open. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add home-ui-foldkit
9
+ ```
10
+
11
+ It brings the shell, and asks for the kernel's spaces module. The screen is at `/`.
12
+
13
+ ## Use it
14
+
15
+ An administrator defines the organisation's spaces with `spaces.define` ([Space](../contracts/space.md), [home](home.md)). It claims the home route (`home: true`); at most one installed screen may.
16
+
17
+ To change it, edit the file (`eloxiv diff home-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject home-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+
23
+ ## Example
24
+
25
+ ```sh
26
+ eloxiv add home-ui-foldkit && eloxiv dev # http://localhost:5173/
27
+ ```
@@ -0,0 +1,29 @@
1
+ # home
2
+
3
+ The home space without a screen: asks the composition for the kernel modules behind the launcher, the global agent and the unified inbox (`spaces`, `agent`, `inbox`), so an app with no UI, or one building its own screens, gets their headless surface. Kind `space`; it installs only a guide, `home/README.md`, which documents that surface step by step (spaces, the agent, the inbox, member administration) through the client SDK, the CLI and MCP.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add home
9
+ eloxiv add openai # the agent needs a model; set ELOXIV_MODEL_OPENAI_API_KEY where the kernel runs
10
+ ```
11
+
12
+ ## Use it
13
+
14
+ - **Spaces:** an administrator (`eloxiv.spaces.manage`) defines a space with `spaces.define` (`{ id, title, entries: [{ view }], audience }`); people pin and order their own ([Space](../contracts/space.md)).
15
+ - **The agent:** `agent.send` from any surface (`eloxiv agent "..."`, the chat SDK, MCP); one agent over every installed module ([AgentRuntime](../contracts/agent-runtime.md)).
16
+ - **The inbox:** work items from every module, notifications, approvals and consent ([WorkItems](../contracts/work-items.md), [Notifications](../contracts/notifications.md), [Approvals](../contracts/approvals.md), [ActionConsent](../contracts/action-consent.md)).
17
+ - **Members:** the Directory's member routes ([Directory](../contracts/directory.md)).
18
+
19
+ The reference screens for it are [`home-ui-foldkit`](home-ui-foldkit.md), [`inbox-ui-foldkit`](inbox-ui-foldkit.md), [`chat-ui-foldkit`](chat-ui-foldkit.md), [`approvals-ui-foldkit`](approvals-ui-foldkit.md) and [`members-ui-foldkit`](members-ui-foldkit.md).
20
+
21
+ ## Guarantees and limits
22
+
23
+ - Without a model connector the agent's runs fail with `ModelUnavailable`.
24
+
25
+ ## Example
26
+
27
+ ```sh
28
+ eloxiv call spaces.define --input '{"id":"sales","title":"Sales","entries":[{"view":"hello.greetings"}],"audience":{"everyone":true}}'
29
+ ```
@@ -0,0 +1,27 @@
1
+ # inbox-ui-foldkit
2
+
3
+ The unified inbox over the [WorkItems](../contracts/work-items.md) contract and the chat SDK's inbox state: what needs the person from every module, each item linking to its record, with claim, complete and dismiss. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add inbox-ui-foldkit
9
+ ```
10
+
11
+ It brings the shell, and asks for the kernel's inbox modules. The screen is at `/inbox`.
12
+
13
+ ## Use it
14
+
15
+ Modules feed it through their work-item sources (`workItemSources` in the manifest: mail's follow-ups, calendar's invitations, hello's greetings). Each step is `inbox.claim`, `inbox.complete` or `inbox.dismiss` under the step's own key, so a retry acts once.
16
+
17
+ To change it, edit the file (`eloxiv diff inbox-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject inbox-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+
23
+ ## Example
24
+
25
+ ```sh
26
+ eloxiv add inbox-ui-foldkit && eloxiv dev # http://localhost:5173/inbox
27
+ ```
@@ -0,0 +1,27 @@
1
+ # mail-ui-foldkit
2
+
3
+ [mail](mail.md)'s screens: threads at `/mail` with a message to compose, and a thread at `/mail/thread/<id>` with bodies, read marks, follow-up flags and a reply, each shown as it goes. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add mail-ui-foldkit
9
+ ```
10
+
11
+ It brings [mail](mail.md) and the shell. The screen is at `/mail`.
12
+
13
+ ## Use it
14
+
15
+ It needs a connected mailbox (a MailProvider connector, connected by the person). Bodies are fetched with `mail.body` when a thread opens.
16
+
17
+ To change it, edit the file (`eloxiv diff mail-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject mail-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+
23
+ ## Example
24
+
25
+ ```sh
26
+ eloxiv add mail-ui-foldkit && eloxiv dev # http://localhost:5173/mail
27
+ ```
@@ -0,0 +1,34 @@
1
+ # mail
2
+
3
+ Mail, headless: each person's MailProvider Connections synced into private mailboxes; search (bodies through Ingestion) by the owner and whoever a thread is shared with; send now or later, reply, drafts and a teammate's draft queue, snooze, triage rules, archive, move, read marks and follow-up flags. Its screens are [`mail-ui-foldkit`](mail-ui-foldkit.md). Kind `module`; it asks for the kernel's inbox, sharing, connections and search modules.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add mail
9
+ eloxiv add google # or microsoft-graph: a MailProvider
10
+ eloxiv add mail-ui-foldkit # its screens, optional
11
+ ```
12
+
13
+ People connect their own mailbox with `connections.connect` (OAuth consent); the sync engine applies each delta page through `mail.apply`.
14
+
15
+ ## Use it
16
+
17
+ - **Sending:** `mail.send`, `mail.reply`, `mail.saveDraft`, `mail.sendDraft` (now or at `sendAt`), `mail.cancelScheduled`, `mail.discardDraft`, `mail.aliases` (send as an alias).
18
+ - **Triage:** `mail.archive`, `mail.move` (with `mail.folders`), `mail.markRead`, `mail.flag` (a flagged message is an open item in the unified inbox), `mail.snooze`, `mail.unsnooze`, `mail.triage` (up to 100 at once), `mail.saveRule`, `mail.deleteRule`.
19
+ - **Reading:** sync queries and query views `mail.messages`, `mail.outgoing`, `mail.drafts`, `mail.rules`, `mail.mailboxes`; `mail.body` fetches a body from the provider (never stored), for the mailbox's owner only.
20
+ - **A teammate's queue:** `mail.queueDraft` (needs `mail.queueDraft`) puts a draft in a teammate's inbox to review and send from their own mailbox.
21
+ - Work-item sources `mail.followUps`, `mail.draftQueue`; skill `mail.mailbox`.
22
+
23
+ ## Guarantees and limits
24
+
25
+ - Mailboxes are private: a thread reaches another person only through a Sharing grant.
26
+ - A send is recorded at once and delivered after, at most once; its record ends `sent`, `failed` or `unknown`. An agent needs the person's consent for each message.
27
+ - Bodies are never stored in the database; search indexes them through Ingestion.
28
+ - Plain-text bodies only.
29
+
30
+ ## Example
31
+
32
+ ```sh
33
+ eloxiv call mail.send --input '{"mailboxId":"<connection id>","to":["sam@example.com"],"subject":"Hello","body":"Hi Sam"}'
34
+ ```
@@ -0,0 +1,26 @@
1
+ # meeting-prep
2
+
3
+ An agent skill that prepares a person for a meeting on their calendar: the attendees from the people directory and what was said about it by mail. Read only. Kind `skill`: an app skill (`defineAppSkill` from `@eloxiv/kernel`: a name, a description and the document beside it, `SKILL.md`), which the agent reads like a module's skill ([AgentResources](../contracts/agent-resources.md)).
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add meeting-prep # brings app, calendar, people and mail
9
+ eloxiv add openai # the agent needs a model
10
+ ```
11
+
12
+ It installs `skills/meeting-prep/SKILL.md` (what the agent reads) and `skill.ts` (its definition). The composition lists it in `eloxiv.server.ts` (`skills`), which `server/main.ts` installs as `KernelApp.skills`.
13
+
14
+ ## Use it
15
+
16
+ Agents load it with their `load_skill` tool when a person asks to prepare for a meeting. Write your own skill the same way: a `SKILL.md` and `export const mySkill = defineAppSkill({ name, description, directory: import.meta.url, content: { path: "SKILL.md" } })` in `skills/<name>/skill.ts`, listed in `KernelApp.skills`; a module's own skills are declared in its contract instead (`skills`).
17
+
18
+ ## Guarantees and limits
19
+
20
+ - It reads through calendar's, people's and mail's actions and query views, so it sees only what the person may read; it changes nothing.
21
+
22
+ ## Example
23
+
24
+ ```sh
25
+ eloxiv agent "Prepare me for my next meeting"
26
+ ```
@@ -0,0 +1,28 @@
1
+ # members-ui-foldkit
2
+
3
+ Member administration over the Directory's member routes: the organisation's members and their roles for every member; adding an existing user by email, giving and taking roles and removing members for those who may manage the directory. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add members-ui-foldkit
9
+ ```
10
+
11
+ It brings the shell. The screen is at `/admin/members`.
12
+
13
+ ## Use it
14
+
15
+ Every change goes through the [Directory](../contracts/directory.md) contract's routes with the person's session cookie or token; the kernel decides who may manage members.
16
+
17
+ To change it, edit the file (`eloxiv diff members-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject members-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+ - Someone who may not manage the directory sees the members and changes nothing.
23
+
24
+ ## Example
25
+
26
+ ```sh
27
+ eloxiv add members-ui-foldkit && eloxiv dev # http://localhost:5173/admin/members
28
+ ```
@@ -0,0 +1,37 @@
1
+ # mobile
2
+
3
+ A mobile host on Expo and React Native (Android and iOS), on the same client core as the web shell (decision 14): `makeClientRuntime` from `@eloxiv/client/runtime` runs in the app's own process, with the replica in SQLite (`@eloxiv/client/expo-sqlite`) and the session in the device's secure storage (`expo-secure-store`). The app owns the folder (`mobile/`), its own npm project beside the app; Metro bundles it with the app's module contracts and sync schema. Kind `mobile`. A thin reference (decision 11): sign-in with email and password and a two-factor code, organisations (switch, sign out), hello's greetings live with an optimistic and a refused greeting, the agent's chat (conversation, streamed answer, composer, consent and approval cards, a notice when no model is set up), an agent's request for consent opened from its notification, and notifications.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add mobile
9
+ cd mobile && npm ci
10
+ npx expo run:android # or run:ios on a Mac with Xcode; push needs a native build, not Expo Go
11
+ ```
12
+
13
+ Pinned like the React Native guard (`tools/react-native`): Expo 58.0.23, React Native 0.88.1, React 19.3.0, with expo-sqlite, expo-secure-store, expo-notifications, expo-crypto and expo-constants at the SDK's versions. `mobile/README.md`, installed with it, is the guide.
14
+
15
+ ## Use it
16
+
17
+ - `app.json` holds the app's identity and servers: `name`, `scheme` (deep links `<scheme>://open/<path>`), `android.package` and `ios.bundleIdentifier` (also the push app id, the APNs topic, and the secure-storage namespace), and `expo.extra.eloxiv`: `kernelUrl`, `zeroUrl`, optionally `origin` (the app's web origin, whose links open the app too) and `apnsEnvironment`. `EXPO_PUBLIC_ELOXIV_KERNEL_URL`, `EXPO_PUBLIC_ELOXIV_ZERO_URL` and `EXPO_PUBLIC_ELOXIV_ORIGIN` override them when bundling.
18
+ - `src/client.ts` makes the one client core and wires it; `src/hooks.ts` binds its events to React (rows of the current generation only); `src/screens/` are the screens; `src/ui.tsx` the few building blocks (each control has a `testID`). The tab bar's labels share one size chosen by the width each tab gets (12 on a 320dp phone, 14 where they fit), stay on one line and shrink a little more if a larger system font needs it, never breaking inside a word (CI's lane checks it on its 320dp emulator).
19
+ - Sessions: `src/secureStore.ts` is the client core's `SessionStore` and `RevocationStore` (durable sign-outs) over the Keystore or Keychain (this device only). A read or write the platform refuses is `HostFailure`, never "signed out"; writes go one at a time, so `clearIf` is atomic; keys are under the app's id. It remembers the person and organisation last open with the session (`remember`, `recall`), for that token only, forgotten with the session (the context first, so a removal that fails halfway leaves a session that reopens nothing offline), when another token is saved, or alone (`forgetContext`: the person now belongs to no organisation, or a sign-out's revocation could not be saved). After a reinstall (the app's own storage has no mark, an iOS Keychain entry survived) the previous session is kept as a pending sign-out (sent by the client core), then it, its remembered context and the push association are forgotten before anything reads them; the install is marked initialized only after that succeeded, so a failed or interrupted cleanup runs again. Every request omits cookies (`src/transport.ts`; Expo 58's native fetch then neither sends nor stores them on Android or iOS), so a sign-in leaves no session cookie on disk: the session lives only as a bearer token in secure storage. Web cookie sign-in is unchanged (the wrapper is installed in the app's process only).
20
+ - Signing out: the locked screen shows a spinner while the sign-out runs. When the device could save neither the revocation nor the removal of the remembered context (the client core's `SignOutNotSaved`, kept in `sessionStatus().error`), it says so and offers to try again (`src/signingOut.ts`); the kernel's confirmation in the background ends the sign-out only once nothing on the device can reopen the session.
21
+ - Transport: a release build refuses a kernel or Zero URL that is not HTTPS and allows no Android cleartext. A development build may use plain HTTP to any server. A build bundled with `EXPO_PUBLIC_ELOXIV_ALLOW_HTTP=1` (CI's lanes) may use it only to loopback and emulator hosts (127.0.0.1, ::1, localhost, 10.0.2.2), and `app.config.js` gives Android a network security config that allows cleartext to exactly those hosts and refuses it everywhere else. No request follows a redirect unless it asks to (`src/transport.ts`), so none takes a credential outside this policy.
22
+ - Links and notifications go through one parser (`src/links.ts`): shell-core's `shellRegistry(...).parseLink` over the app's views and the kernel views the host has screens for (the agent's conversation, an approval request, an agent's request for consent, at the web shell's routes). Another scheme or origin, a malformed URL or a path no view serves is refused with the View contract's reason. A notification's link is written and read back the same way, and must name the notification's organisation. A malformed percent escape in a link's query or path, or an organisation named twice or empty, refuses it. `src/linkGate.ts` holds what was opened (also at a cold start) until a person is signed in and its organisation is selected in a generation of its own, switching once when the person belongs to it; the latest request wins, nothing opens while a switch is in flight (one the gate asked for, or the person's own from the organisations screen, which goes through the gate), and a notification without a link opens in its own organisation. It settles against the client core's session as it stands, not the screens' copy, and opens with the organisation and generation it accepted. A notification opens (and its decision is sent) only for the person and installation it was sent to, and a decision only for that organisation and generation, checked again as it is sent. The app opens on hello's greetings when the app has the hello module, else on the agent (the greetings tab is then hidden).
23
+ - The Host contract (`src/host.ts`, Host 1.1.0): deep links, secure storage, push (`pushPermission`, `pushSubscribe`, `pushToken`: the native FCM or APNs token from `getDevicePushTokenAsync`, never Expo's relay token; `onNotificationResponse`), with updates and files reported unsupported.
24
+ - Push: the Notifications screen's button, per person, asks the OS permission (an Android channel, `default`, is made first), registers this installation (`notifications.registerInstallation`: an installation id kept in secure storage, the token, the app id and, on iOS, the APNs environment) and adds push to approval and consent requests in each of the person's organisations (`notifications.setPreference` with `add`, one atomic write each: the channels they chose stay). Only once all of that succeeded is the person recorded as opted in; each step is fenced to the account that began it. A later launch, or a token the platform rotated, registers again only for that person. Each registration step is fenced to the account that began it: before the installation id is written, before the kernel is called, and before the id or status is published. Sign-out, as it begins, closes the push context synchronously (the account epoch moves on, the installation id is forgotten in memory, an iOS decision's queued retries are cancelled), starts the kernel's removal without waiting for it (the kernel also removes it when the session ends), and starts the client core's durable sign-out without waiting for the device's cleanup (the installation id and opt-in removed from secure storage, the person's notifications, the last response and what waits cleared), which runs alongside it. The installation id's writes and that removal take turns, so a registration that began before the sign-out never writes the id back after it.
25
+ - Notification responses: a tap opens the notification's link through the gate. The category `eloxiv.decision` has Approve and Reject buttons (they bring the app forward). A button opens its request once the gate shows it to the person and installation the notification was sent to (its payload names both). On iOS it is decided with the notification's decision token at `POST /api/notifications/decide` (no session sent, no cookie, no redirect followed; a `503`, which spends no token, is tried again twice), each attempt only while the sign-in, the installation and the organisation it was accepted for still hold, and a sign-out cancels a queued retry. On Android, whose payloads carry no token (a posted notification's extras are readable by apps with notification access) and whose actions another app with notification access can invoke, a button decides nothing by itself: the request opens with the verdict preselected and a confirm control on that request's own card (the card of exactly its request id and type, shown only once the request is read and can be decided, never while it is loading), and the decision is sent only when the person confirms it, through their own session with the chat's actions and keys (`consent.approve` remembering this call only; a consent's Reject is `consent.rejectPending`, so an approval made meanwhile in chat or on another device stands), made for the generation the request was opened in (refused as stale after a switch or another sign-in). The outcome is shown (approved, rejected, already decided, expired), not after the account context ended. A tap never decides. A notification id is presented once while the app runs; the kernel tags each FCM message with it, so a copy sent again replaces a visible one (no collapse key: distinct requests are never dropped). On Android the kernel sends data-only FCM messages in expo-notifications' fields, so the app draws the notification, buttons included, also in the background ([NotificationChannel](../contracts/notification-channel.md)).
26
+ - An agent's request opened from its notification: the chat screen reads the request itself (`consent.get`, the person's own requests only) and offers Approve and Reject only while it is pending, naming what the agent wants to run, with a way to the conversation whose run waits for it; a request decided already, or not theirs, offers nothing. Its work item does not decide what is shown: one dismissed or given to someone else does not hide a request that still waits for its person (a change in the person's work items only reads the request again).
27
+
28
+ ## Guarantees and limits
29
+
30
+ - Proven on Node and Bun: `registry/test/mobile-host.test.ts` (secure storage and its failures, the context remembered with the session and the core's offline start over it, a reinstall's cleanup and its failure, the parser with foreign and malformed links and both providers' payload shapes, the link gate at a cold start, with opposite-order switches, linkless notifications and notifications for another account or installation, registration and its fences across a sign-out, the sign-out's order, the fenced per-person opt-in, both decision paths (an iOS retry cancelled at sign-out, an Android button that waits for confirmation), the gate's live session and accepted organisation, a consent request read from the request itself, the transport's cookies, redirects, HTTPS and local hosts, the Host contract through its conformance kit and its 1.1.0 members).
31
+ - Proven on an Android emulator by CI's `mobile` lane ([ci.md](../ci.md#the-mobile-lanes)), every screen driven through its controls against the example's kernel: the push is the kernel's FCM channel to the FCM protocol fake (its message checked); the emulator has no Firebase project, so the app built for the lane uses a fixed device token and shows the fake's message as a local notification (`src/e2e.ts`, present only in such builds). Unproven: Google's delivery to a device and Apple's, expo-notifications' native Firebase receiver and background presentation, and a native token rotation.
32
+ - iOS: the lane builds the app for the simulator and launches it once, passing only when the app reports its sign-in screen, as an attempt that never fails a run; it is unproven until a run is observed passing.
33
+ - Offline: a cold start without the server shows the person and organisation last open at once, from the replica on disk, with a note that the app is offline (the client core's offline start, [ClientSDK](../contracts/client-sdk.md)); writes go to the replica as they do when the connection drops while running, nothing of another person or organisation shows, switching organisation waits for the server, and push registration waits until the kernel has accepted the session again. Back online, the session carries on in the same organisation (or another, if the person left it), and a session revoked meanwhile is signed out and its replica closed. A stored session with no remembered context (an app updated from 0.3.6 before its first online launch) says it will reconnect and shows no rows until then.
34
+ - Decision buttons open the app (`opensAppToForeground`); deciding from a locked screen without opening the app is not built. On Android a button never decides without the person's confirmation in the app, and the person must be signed in (and the app reach the kernel) to confirm it.
35
+ - A notification dismissed in the background can show again if the kernel resends it after an uncertain answer (the system draws it before the app runs).
36
+ - Plain HTTP to the emulator's address (limit). `10.0.2.2` is the host machine's loopback only inside the Android emulator; on a physical device it is an ordinary private address that a machine on the local network can hold. It is allowed over plain HTTP (by `src/transport.ts` and the Android cleartext config in `app.config.js`) only in a build bundled for a local test run with `EXPO_PUBLIC_ELOXIV_ALLOW_HTTP=1`, never in a normal release build. Such a build installed on a physical phone on a network where that address belongs to another machine would send its sign-in there over plain HTTP, so do not install a build bundled with that flag on a physical device or ship it.
37
+ - A consent request whose read fails (offline, the server down) says so and offers to try again; one read before its run recorded the wait is read again when the run data changes, until its conversation shows.
@@ -0,0 +1,27 @@
1
+ # notes-ui-foldkit
2
+
3
+ [notes](notes.md)' screen: the organisation's notes from the local replica, at `/notes` and, through notes' contribution to hello's slot `hello.greetingPanel`, beside hello's greetings. Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add notes-ui-foldkit
9
+ ```
10
+
11
+ It brings [notes](notes.md) (and hello) and the shell. The screen is at `/notes`.
12
+
13
+ ## Use it
14
+
15
+ A screen that is also a slot panel: the shell creates it beside hello's screen for the same replica, with its own Subscriptions and Messages.
16
+
17
+ To change it, edit the file (`eloxiv diff notes-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject notes-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+
23
+ ## Example
24
+
25
+ ```sh
26
+ eloxiv add notes-ui-foldkit && eloxiv dev # http://localhost:5173/notes
27
+ ```
@@ -0,0 +1,26 @@
1
+ # notes
2
+
3
+ A second small module that shows how modules cooperate without touching each other's tables: it reacts to [hello](hello.md)'s `hello.greeted` event through the outbox and keeps a note per organisation-visible greeting, as an entity reference (never the greeting's text). Each note has a collaborative document (`content`) that members and their agents edit together, live. Headless: its screen is [`notes-ui-foldkit`](notes-ui-foldkit.md). Kind `module`.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add notes # brings app and hello
9
+ eloxiv add notes-ui-foldkit # its screen
10
+ ```
11
+
12
+ ## Use it
13
+
14
+ - No actions of its own: notes appear when a greeting visible to the organisation is posted (subscriber `notes.on-greeted`, exactly once per event).
15
+ - Sync query and query view `notes.notes`; skill `notes.reading`.
16
+ - The note's document is edited through the kernel's collaboration module (`collab.open`, `collab.update`, `collab.editText`, ...; [CollabDocument](../contracts/collab-document.md)) and `@eloxiv/client/collab`.
17
+ - It contributes its notes view to hello's slot `hello.greetingPanel`.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - Members read and collaborate on the notes of the organisation they act in.
22
+ - A note never copies the greeting it refers to: reading the greeting still goes through hello's policy.
23
+
24
+ ## Example
25
+
26
+ Post an organisation greeting (`eloxiv call hello.greet --input '{"message":"Hi","visibility":"org"}'`): a note referring to it syncs to every member's replica.
@@ -0,0 +1,28 @@
1
+ # people-ui-foldkit
2
+
3
+ [people](people.md)'s screen: the directory at `/people` and a person at `/people/<id>` (reporting line, direct reports, and sensitive fields where the replica holds them). Kind `ui`: one file in the [web shell](shell-foldkit.md)'s `src/screens/`, which the app owns and may edit, eject or replace without touching the kernel. Like every registry screen it is a thin, plain reference (decision 11): a starting point to reshape, built only on the client SDK.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add people-ui-foldkit
9
+ ```
10
+
11
+ It brings [people](people.md) and the shell. The screen is at `/people`.
12
+
13
+ ## Use it
14
+
15
+
16
+
17
+ To change it, edit the file (`eloxiv diff people-ui-foldkit` shows your edits, and `eloxiv update` merges the registry's next version into them), or `eloxiv eject people-ui-foldkit` to own it outright. [Getting started](../getting-started.md#7-a-screen-on-the-client-sdk) explains how a screen is built.
18
+
19
+ ## Guarantees and limits
20
+
21
+ - It reads only the replica it was created for: a snapshot of another organisation's replica, still in flight after a switch, is dropped.
22
+ - Sensitive fields show only where the replica holds them, that is for people with `people.hr`.
23
+
24
+ ## Example
25
+
26
+ ```sh
27
+ eloxiv add people-ui-foldkit && eloxiv dev # http://localhost:5173/people
28
+ ```
@@ -0,0 +1,38 @@
1
+ # people
2
+
3
+ People, headless: employees linked to the organisation's members, companies, departments, positions and reporting lines; basic profiles everyone in the organisation reads, sensitive fields only for HR; import and delta sync from a directory Connection. Its screen is [`people-ui-foldkit`](people-ui-foldkit.md). Kind `module`; it asks for the kernel's inbox and connections modules.
4
+
5
+ ## Add it
6
+
7
+ ```sh
8
+ eloxiv add people
9
+ eloxiv add people-ui-foldkit # its screens, optional
10
+ eloxiv add microsoft-graph # or google: to import people from a directory
11
+ ```
12
+
13
+ ## Use it
14
+
15
+ | Action | What it does | Needs |
16
+ | --- | --- | --- |
17
+ | `people.create`, `people.update`, `people.terminate` | a person's record and employment | `people.manage` |
18
+ | `people.setManager`, `people.assignPosition` | reporting lines (a cycle is refused) and positions | `people.manage` |
19
+ | `people.createCompany`, `people.createDepartment`, `people.createPosition` | the organisation's structure | `people.manage` |
20
+ | `people.setSensitive` | personal email and phone, salary band, birth date | `people.hr` |
21
+ | `people.claim` | link yourself to the record with your verified sign-in email | anyone |
22
+ | `people.managerChain` | a person's line upwards | anyone who reads them |
23
+ | `people.applyDirectory` | one page of a DirectoryProvider delta (the Connection sync engine calls it) | `people.manage` |
24
+
25
+ Views `people.directory` (`/people`) and `people.structure`; query views `people.directory`, `people.sensitive`, `people.departments`; skill `people.directory`; event `people.claimed`.
26
+
27
+ Give HR a role with both permissions (Directory `createRole`, `assignRole`). To import, connect a DirectoryProvider ([Google](../connectors/google.md) or [Microsoft Graph](../connectors/microsoft-graph.md)) as someone with `people.manage`.
28
+
29
+ ## Guarantees and limits
30
+
31
+ - Sensitive fields are a separate entity: they reach only replicas of people with `people.hr`.
32
+ - A person imported from a directory gets its directory fields back at the next sync: edit them at the source.
33
+
34
+ ## Example
35
+
36
+ ```sh
37
+ eloxiv call people.create --input '{"displayName":"Dana Reyes","email":"dana@acme.example","jobTitle":"Designer"}'
38
+ ```