oneie 3.8.3 → 4.0.1

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 (382) hide show
  1. package/LICENSE +86 -0
  2. package/README.md +63 -952
  3. package/dist/package.json +38 -0
  4. package/dist/src/agent.d.ts +2 -0
  5. package/dist/src/agent.js +888 -0
  6. package/dist/src/args.d.ts +9 -0
  7. package/dist/src/args.js +61 -0
  8. package/dist/src/auth.d.ts +6 -0
  9. package/dist/src/auth.js +122 -0
  10. package/dist/{banner.d.ts → src/banner.d.ts} +0 -1
  11. package/dist/src/banner.js +16 -0
  12. package/dist/src/broadcast.d.ts +6 -0
  13. package/dist/src/broadcast.js +150 -0
  14. package/dist/src/catalog.d.ts +2 -0
  15. package/dist/src/catalog.js +78 -0
  16. package/dist/src/chat.d.ts +2 -0
  17. package/dist/src/chat.js +92 -0
  18. package/dist/src/client.d.ts +5 -0
  19. package/dist/src/client.js +151 -0
  20. package/dist/src/compiler.d.ts +36 -0
  21. package/dist/src/compiler.js +314 -0
  22. package/dist/src/config.d.ts +24 -0
  23. package/dist/src/config.js +70 -0
  24. package/dist/src/connect.d.ts +2 -0
  25. package/dist/src/connect.js +64 -0
  26. package/dist/src/coordinate.d.ts +3 -0
  27. package/dist/src/coordinate.js +58 -0
  28. package/dist/src/create.d.ts +2 -0
  29. package/dist/src/create.js +113 -0
  30. package/dist/src/deploy.d.ts +2 -0
  31. package/dist/src/deploy.js +19 -0
  32. package/dist/src/dev.d.ts +2 -0
  33. package/dist/src/dev.js +75 -0
  34. package/dist/src/device-flow.d.ts +57 -0
  35. package/dist/src/device-flow.js +173 -0
  36. package/dist/src/doctor.d.ts +26 -0
  37. package/dist/src/doctor.js +91 -0
  38. package/dist/src/env.d.ts +3 -0
  39. package/dist/src/env.js +37 -0
  40. package/dist/src/eval.d.ts +2 -0
  41. package/dist/src/eval.js +42 -0
  42. package/dist/src/fn.d.ts +2 -0
  43. package/dist/src/fn.js +73 -0
  44. package/dist/src/group.d.ts +2 -0
  45. package/dist/src/group.js +115 -0
  46. package/dist/src/index.d.ts +2 -0
  47. package/dist/src/index.js +102 -0
  48. package/dist/src/init.d.ts +11 -0
  49. package/dist/src/init.js +121 -0
  50. package/dist/src/lib/agent-env.d.ts +5 -0
  51. package/dist/src/lib/agent-env.js +25 -0
  52. package/dist/src/lib/api-path.d.ts +1 -0
  53. package/dist/src/lib/api-path.js +9 -0
  54. package/dist/src/lib/client.d.ts +16 -0
  55. package/dist/src/lib/client.js +57 -0
  56. package/dist/src/lib/launch-claude.d.ts +5 -0
  57. package/dist/src/lib/launch-claude.js +45 -0
  58. package/dist/src/links.d.ts +5 -0
  59. package/dist/src/links.js +44 -0
  60. package/dist/src/onboard.d.ts +16 -0
  61. package/dist/src/onboard.js +146 -0
  62. package/dist/src/plugin.d.ts +2 -0
  63. package/dist/src/plugin.js +184 -0
  64. package/dist/src/push.d.ts +2 -0
  65. package/dist/src/push.js +114 -0
  66. package/dist/src/render.d.ts +21 -0
  67. package/dist/src/render.js +32 -0
  68. package/dist/src/setup.d.ts +6 -0
  69. package/dist/src/setup.js +126 -0
  70. package/dist/src/ship.d.ts +2 -0
  71. package/dist/src/ship.js +18 -0
  72. package/dist/src/skill-parser.d.ts +14 -0
  73. package/dist/src/skill-parser.js +113 -0
  74. package/dist/src/skill.d.ts +2 -0
  75. package/dist/src/skill.js +377 -0
  76. package/dist/src/slug.d.ts +2 -0
  77. package/dist/src/slug.js +6 -0
  78. package/dist/src/social.d.ts +2 -0
  79. package/dist/src/social.js +87 -0
  80. package/dist/src/staff.d.ts +2 -0
  81. package/dist/src/staff.js +93 -0
  82. package/dist/src/status.d.ts +2 -0
  83. package/dist/src/status.js +46 -0
  84. package/dist/src/substrate.d.ts +2 -0
  85. package/dist/src/substrate.js +243 -0
  86. package/dist/src/templates/_node/site/one.config.d.ts +2 -0
  87. package/dist/src/templates/_node/site/one.config.js +22 -0
  88. package/dist/src/templates.d.ts +1 -0
  89. package/dist/src/templates.js +205 -0
  90. package/dist/src/trade.d.ts +2 -0
  91. package/dist/src/trade.js +95 -0
  92. package/dist/src/trail.d.ts +2 -0
  93. package/dist/src/trail.js +41 -0
  94. package/dist/src/validate.d.ts +13 -0
  95. package/dist/src/validate.js +35 -0
  96. package/dist/src/wallet.d.ts +9 -0
  97. package/dist/src/wallet.js +209 -0
  98. package/package.json +26 -54
  99. package/LICENSE.md +0 -89
  100. package/dist/admin/build.d.ts +0 -15
  101. package/dist/admin/build.d.ts.map +0 -1
  102. package/dist/admin/build.js +0 -295
  103. package/dist/admin/build.js.map +0 -1
  104. package/dist/admin/index.d.ts +0 -24
  105. package/dist/admin/index.d.ts.map +0 -1
  106. package/dist/admin/index.js +0 -98
  107. package/dist/admin/index.js.map +0 -1
  108. package/dist/admin/list.d.ts +0 -14
  109. package/dist/admin/list.d.ts.map +0 -1
  110. package/dist/admin/list.js +0 -90
  111. package/dist/admin/list.js.map +0 -1
  112. package/dist/admin/manifest.d.ts +0 -86
  113. package/dist/admin/manifest.d.ts.map +0 -1
  114. package/dist/admin/manifest.js +0 -183
  115. package/dist/admin/manifest.js.map +0 -1
  116. package/dist/admin/monorepo.d.ts +0 -25
  117. package/dist/admin/monorepo.d.ts.map +0 -1
  118. package/dist/admin/monorepo.js +0 -59
  119. package/dist/admin/monorepo.js.map +0 -1
  120. package/dist/admin/release.d.ts +0 -17
  121. package/dist/admin/release.d.ts.map +0 -1
  122. package/dist/admin/release.js +0 -144
  123. package/dist/admin/release.js.map +0 -1
  124. package/dist/admin/sync.d.ts +0 -14
  125. package/dist/admin/sync.d.ts.map +0 -1
  126. package/dist/admin/sync.js +0 -104
  127. package/dist/admin/sync.js.map +0 -1
  128. package/dist/admin/validate.d.ts +0 -15
  129. package/dist/admin/validate.d.ts.map +0 -1
  130. package/dist/admin/validate.js +0 -169
  131. package/dist/admin/validate.js.map +0 -1
  132. package/dist/banner.d.ts.map +0 -1
  133. package/dist/banner.js +0 -15
  134. package/dist/banner.js.map +0 -1
  135. package/dist/clone-docs.d.ts +0 -17
  136. package/dist/clone-docs.d.ts.map +0 -1
  137. package/dist/clone-docs.js +0 -62
  138. package/dist/clone-docs.js.map +0 -1
  139. package/dist/clone-web.d.ts +0 -12
  140. package/dist/clone-web.d.ts.map +0 -1
  141. package/dist/clone-web.js +0 -50
  142. package/dist/clone-web.js.map +0 -1
  143. package/dist/commands/agent.d.ts +0 -20
  144. package/dist/commands/agent.d.ts.map +0 -1
  145. package/dist/commands/agent.js +0 -315
  146. package/dist/commands/agent.js.map +0 -1
  147. package/dist/commands/ask.d.ts +0 -4
  148. package/dist/commands/ask.d.ts.map +0 -1
  149. package/dist/commands/ask.js +0 -8
  150. package/dist/commands/ask.js.map +0 -1
  151. package/dist/commands/bounty.d.ts +0 -4
  152. package/dist/commands/bounty.d.ts.map +0 -1
  153. package/dist/commands/bounty.js +0 -24
  154. package/dist/commands/bounty.js.map +0 -1
  155. package/dist/commands/buy.d.ts +0 -19
  156. package/dist/commands/buy.d.ts.map +0 -1
  157. package/dist/commands/buy.js +0 -63
  158. package/dist/commands/buy.js.map +0 -1
  159. package/dist/commands/capabilities.d.ts +0 -4
  160. package/dist/commands/capabilities.d.ts.map +0 -1
  161. package/dist/commands/capabilities.js +0 -18
  162. package/dist/commands/capabilities.js.map +0 -1
  163. package/dist/commands/claw.d.ts +0 -4
  164. package/dist/commands/claw.d.ts.map +0 -1
  165. package/dist/commands/claw.js +0 -14
  166. package/dist/commands/claw.js.map +0 -1
  167. package/dist/commands/commend.d.ts +0 -4
  168. package/dist/commands/commend.d.ts.map +0 -1
  169. package/dist/commands/commend.js +0 -13
  170. package/dist/commands/commend.js.map +0 -1
  171. package/dist/commands/completion.d.ts +0 -4
  172. package/dist/commands/completion.d.ts.map +0 -1
  173. package/dist/commands/completion.js +0 -49
  174. package/dist/commands/completion.js.map +0 -1
  175. package/dist/commands/config.d.ts +0 -4
  176. package/dist/commands/config.d.ts.map +0 -1
  177. package/dist/commands/config.js +0 -78
  178. package/dist/commands/config.js.map +0 -1
  179. package/dist/commands/deploy.d.ts +0 -4
  180. package/dist/commands/deploy.d.ts.map +0 -1
  181. package/dist/commands/deploy.js +0 -45
  182. package/dist/commands/deploy.js.map +0 -1
  183. package/dist/commands/doctor.d.ts +0 -4
  184. package/dist/commands/doctor.d.ts.map +0 -1
  185. package/dist/commands/doctor.js +0 -72
  186. package/dist/commands/doctor.js.map +0 -1
  187. package/dist/commands/domain.d.ts +0 -4
  188. package/dist/commands/domain.d.ts.map +0 -1
  189. package/dist/commands/domain.js +0 -19
  190. package/dist/commands/domain.js.map +0 -1
  191. package/dist/commands/export.d.ts +0 -4
  192. package/dist/commands/export.d.ts.map +0 -1
  193. package/dist/commands/export.js +0 -15
  194. package/dist/commands/export.js.map +0 -1
  195. package/dist/commands/fade.d.ts +0 -4
  196. package/dist/commands/fade.d.ts.map +0 -1
  197. package/dist/commands/fade.js +0 -15
  198. package/dist/commands/fade.js.map +0 -1
  199. package/dist/commands/flag.d.ts +0 -4
  200. package/dist/commands/flag.d.ts.map +0 -1
  201. package/dist/commands/flag.js +0 -13
  202. package/dist/commands/flag.js.map +0 -1
  203. package/dist/commands/forget.d.ts +0 -4
  204. package/dist/commands/forget.d.ts.map +0 -1
  205. package/dist/commands/forget.js +0 -16
  206. package/dist/commands/forget.js.map +0 -1
  207. package/dist/commands/frontier.d.ts +0 -4
  208. package/dist/commands/frontier.d.ts.map +0 -1
  209. package/dist/commands/frontier.js +0 -11
  210. package/dist/commands/frontier.js.map +0 -1
  211. package/dist/commands/group.d.ts +0 -3
  212. package/dist/commands/group.d.ts.map +0 -1
  213. package/dist/commands/group.js +0 -123
  214. package/dist/commands/group.js.map +0 -1
  215. package/dist/commands/health.d.ts +0 -4
  216. package/dist/commands/health.d.ts.map +0 -1
  217. package/dist/commands/health.js +0 -11
  218. package/dist/commands/health.js.map +0 -1
  219. package/dist/commands/highways.d.ts +0 -4
  220. package/dist/commands/highways.d.ts.map +0 -1
  221. package/dist/commands/highways.js +0 -14
  222. package/dist/commands/highways.js.map +0 -1
  223. package/dist/commands/hire.d.ts +0 -4
  224. package/dist/commands/hire.d.ts.map +0 -1
  225. package/dist/commands/hire.js +0 -16
  226. package/dist/commands/hire.js.map +0 -1
  227. package/dist/commands/init.d.ts +0 -17
  228. package/dist/commands/init.d.ts.map +0 -1
  229. package/dist/commands/init.js +0 -308
  230. package/dist/commands/init.js.map +0 -1
  231. package/dist/commands/invite.d.ts +0 -4
  232. package/dist/commands/invite.d.ts.map +0 -1
  233. package/dist/commands/invite.js +0 -37
  234. package/dist/commands/invite.js.map +0 -1
  235. package/dist/commands/know.d.ts +0 -4
  236. package/dist/commands/know.d.ts.map +0 -1
  237. package/dist/commands/know.js +0 -8
  238. package/dist/commands/know.js.map +0 -1
  239. package/dist/commands/launch.d.ts +0 -4
  240. package/dist/commands/launch.d.ts.map +0 -1
  241. package/dist/commands/launch.js +0 -16
  242. package/dist/commands/launch.js.map +0 -1
  243. package/dist/commands/mark.d.ts +0 -4
  244. package/dist/commands/mark.d.ts.map +0 -1
  245. package/dist/commands/mark.js +0 -15
  246. package/dist/commands/mark.js.map +0 -1
  247. package/dist/commands/pay.d.ts +0 -4
  248. package/dist/commands/pay.d.ts.map +0 -1
  249. package/dist/commands/pay.js +0 -21
  250. package/dist/commands/pay.js.map +0 -1
  251. package/dist/commands/pipe.d.ts +0 -4
  252. package/dist/commands/pipe.d.ts.map +0 -1
  253. package/dist/commands/pipe.js +0 -35
  254. package/dist/commands/pipe.js.map +0 -1
  255. package/dist/commands/publish.d.ts +0 -4
  256. package/dist/commands/publish.d.ts.map +0 -1
  257. package/dist/commands/publish.js +0 -23
  258. package/dist/commands/publish.js.map +0 -1
  259. package/dist/commands/recall.d.ts +0 -4
  260. package/dist/commands/recall.d.ts.map +0 -1
  261. package/dist/commands/recall.js +0 -12
  262. package/dist/commands/recall.js.map +0 -1
  263. package/dist/commands/repl.d.ts +0 -4
  264. package/dist/commands/repl.d.ts.map +0 -1
  265. package/dist/commands/repl.js +0 -56
  266. package/dist/commands/repl.js.map +0 -1
  267. package/dist/commands/reveal.d.ts +0 -4
  268. package/dist/commands/reveal.d.ts.map +0 -1
  269. package/dist/commands/reveal.js +0 -11
  270. package/dist/commands/reveal.js.map +0 -1
  271. package/dist/commands/revenue.d.ts +0 -4
  272. package/dist/commands/revenue.d.ts.map +0 -1
  273. package/dist/commands/revenue.js +0 -11
  274. package/dist/commands/revenue.js.map +0 -1
  275. package/dist/commands/select.d.ts +0 -4
  276. package/dist/commands/select.d.ts.map +0 -1
  277. package/dist/commands/select.js +0 -19
  278. package/dist/commands/select.js.map +0 -1
  279. package/dist/commands/sell.d.ts +0 -15
  280. package/dist/commands/sell.d.ts.map +0 -1
  281. package/dist/commands/sell.js +0 -49
  282. package/dist/commands/sell.js.map +0 -1
  283. package/dist/commands/signal.d.ts +0 -4
  284. package/dist/commands/signal.d.ts.map +0 -1
  285. package/dist/commands/signal.js +0 -8
  286. package/dist/commands/signal.js.map +0 -1
  287. package/dist/commands/stats.d.ts +0 -4
  288. package/dist/commands/stats.d.ts.map +0 -1
  289. package/dist/commands/stats.js +0 -11
  290. package/dist/commands/stats.js.map +0 -1
  291. package/dist/commands/status.d.ts +0 -4
  292. package/dist/commands/status.d.ts.map +0 -1
  293. package/dist/commands/status.js +0 -18
  294. package/dist/commands/status.js.map +0 -1
  295. package/dist/commands/subscribe.d.ts +0 -14
  296. package/dist/commands/subscribe.d.ts.map +0 -1
  297. package/dist/commands/subscribe.js +0 -33
  298. package/dist/commands/subscribe.js.map +0 -1
  299. package/dist/commands/sync.d.ts +0 -4
  300. package/dist/commands/sync.d.ts.map +0 -1
  301. package/dist/commands/sync.js +0 -20
  302. package/dist/commands/sync.js.map +0 -1
  303. package/dist/commands/tail.d.ts +0 -4
  304. package/dist/commands/tail.d.ts.map +0 -1
  305. package/dist/commands/tail.js +0 -51
  306. package/dist/commands/tail.js.map +0 -1
  307. package/dist/commands/warn.d.ts +0 -4
  308. package/dist/commands/warn.d.ts.map +0 -1
  309. package/dist/commands/warn.js +0 -15
  310. package/dist/commands/warn.js.map +0 -1
  311. package/dist/copy-claude-config.d.ts +0 -2
  312. package/dist/copy-claude-config.d.ts.map +0 -1
  313. package/dist/copy-claude-config.js +0 -32
  314. package/dist/copy-claude-config.js.map +0 -1
  315. package/dist/create-org-profile.d.ts +0 -10
  316. package/dist/create-org-profile.d.ts.map +0 -1
  317. package/dist/create-org-profile.js +0 -136
  318. package/dist/create-org-profile.js.map +0 -1
  319. package/dist/create-user-profile.d.ts +0 -9
  320. package/dist/create-user-profile.d.ts.map +0 -1
  321. package/dist/create-user-profile.js +0 -115
  322. package/dist/create-user-profile.js.map +0 -1
  323. package/dist/index.d.ts +0 -3
  324. package/dist/index.d.ts.map +0 -1
  325. package/dist/index.js +0 -375
  326. package/dist/index.js.map +0 -1
  327. package/dist/lib/agent-detection.d.ts +0 -19
  328. package/dist/lib/agent-detection.d.ts.map +0 -1
  329. package/dist/lib/agent-detection.js +0 -87
  330. package/dist/lib/agent-detection.js.map +0 -1
  331. package/dist/lib/args.d.ts +0 -11
  332. package/dist/lib/args.d.ts.map +0 -1
  333. package/dist/lib/args.js +0 -57
  334. package/dist/lib/args.js.map +0 -1
  335. package/dist/lib/config.d.ts +0 -12
  336. package/dist/lib/config.d.ts.map +0 -1
  337. package/dist/lib/config.js +0 -38
  338. package/dist/lib/config.js.map +0 -1
  339. package/dist/lib/detect.d.ts +0 -45
  340. package/dist/lib/detect.d.ts.map +0 -1
  341. package/dist/lib/detect.js +0 -221
  342. package/dist/lib/detect.js.map +0 -1
  343. package/dist/lib/http.d.ts +0 -9
  344. package/dist/lib/http.d.ts.map +0 -1
  345. package/dist/lib/http.js +0 -25
  346. package/dist/lib/http.js.map +0 -1
  347. package/dist/lib/output.d.ts +0 -5
  348. package/dist/lib/output.d.ts.map +0 -1
  349. package/dist/lib/output.js +0 -32
  350. package/dist/lib/output.js.map +0 -1
  351. package/dist/lib/sdk.d.ts +0 -10
  352. package/dist/lib/sdk.d.ts.map +0 -1
  353. package/dist/lib/sdk.js +0 -22
  354. package/dist/lib/sdk.js.map +0 -1
  355. package/dist/lib/telemetry.d.ts +0 -4
  356. package/dist/lib/telemetry.d.ts.map +0 -1
  357. package/dist/lib/telemetry.js +0 -61
  358. package/dist/lib/telemetry.js.map +0 -1
  359. package/dist/sync-agents.d.ts +0 -5
  360. package/dist/sync-agents.d.ts.map +0 -1
  361. package/dist/sync-agents.js +0 -28
  362. package/dist/sync-agents.js.map +0 -1
  363. package/dist/sync-ontology.d.ts +0 -4
  364. package/dist/sync-ontology.d.ts.map +0 -1
  365. package/dist/sync-ontology.js +0 -40
  366. package/dist/sync-ontology.js.map +0 -1
  367. package/dist/utils/file-resolver.d.ts +0 -83
  368. package/dist/utils/file-resolver.d.ts.map +0 -1
  369. package/dist/utils/file-resolver.js +0 -194
  370. package/dist/utils/file-resolver.js.map +0 -1
  371. package/dist/utils/installation-setup.d.ts +0 -88
  372. package/dist/utils/installation-setup.d.ts.map +0 -1
  373. package/dist/utils/installation-setup.js +0 -409
  374. package/dist/utils/installation-setup.js.map +0 -1
  375. package/dist/utils/launch-claude.d.ts +0 -7
  376. package/dist/utils/launch-claude.d.ts.map +0 -1
  377. package/dist/utils/launch-claude.js +0 -86
  378. package/dist/utils/launch-claude.js.map +0 -1
  379. package/dist/utils/validation.d.ts +0 -48
  380. package/dist/utils/validation.d.ts.map +0 -1
  381. package/dist/utils/validation.js +0 -73
  382. package/dist/utils/validation.js.map +0 -1
package/README.md CHANGED
@@ -1,989 +1,100 @@
1
- # ONE
1
+ # @oneie/cli
2
2
 
3
- > **Every intelligent system needs a coherent model of reality.**
3
+ The command line for [ONE](https://one.ie) — scaffold, validate, publish, and operate AI agents, skills, and whole agency workspaces from your terminal.
4
4
 
5
- ██████╗ ███╗ ██╗███████╗
6
- ██╔═══██╗████╗ ██║██╔════╝
7
- ██║ ██║██╔██╗ ██║█████╗
8
- ██║ ██║██║╚██╗██║██╔══╝
9
- ╚██████╔╝██║ ╚████║███████╗
10
- ╚═════╝ ╚═╝ ╚═══╝╚══════╝
11
-
12
- Make Your Ideas Real
13
-
14
- https://one.ie • npx oneie
15
-
16
- ONE Ontology gives AI agents—and the humans who direct them—a complete, scalable architecture for understanding **who owns what, who can do what, what happened, and what it all means.**
17
-
18
- [![License](packages/cli/LICENSE.md)
19
- [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](./one/knowledge/ontology.md)
20
- [![Dimensions](https://img.shields.io/badge/dimensions-6-orange.svg)](#the-6-dimensions)
21
-
22
- ---
23
-
24
- ## 📦 Quick Start
25
-
26
- ```bash
27
- # Option 1: Bootstrap new project
28
- npx oneie # Install
29
- claude # Start Claude Code
30
- /one
31
-
32
- # Option 2: Clone and develop
33
- git clone https://github.com/one-ie/one
34
- cd web
35
- bun install
36
- bun dev
37
- ```
38
-
39
- **Development Commands:**
5
+ Ships two bins: **`one`** and **`oneie`** (aliases — same entry).
40
6
 
41
7
  ```bash
42
- # Claude Code
43
- claude # Start Claude
44
- /one # Run /one Claude command
45
- ```
46
-
47
- ```bash
48
- # Frontend
49
- cd web/
50
- bun run dev # localhost:4321
51
- bun run build # Production build
52
- bunx astro check # Type checking
53
-
54
- # Testing
55
- cd web/
56
- bun test # All tests
57
- ```
58
-
59
- ---
60
-
61
- ## 🎬 Demo
62
-
63
- See ONE in action:
64
-
65
- **Video Demo:** [Watch on one.ie](https://media.one.ie/ONE-demo.mp4)
66
-
67
- A complete walkthrough showing how to build AI agents, applications, and your audience using the 6-dimension ontology.
68
-
69
- ---
70
-
71
- # ONE
72
-
73
- Make your ideas real
74
-
75
- **Model reality in six core dimensions and map everything to them.**
76
-
77
- ```
78
- ┌─────────────────────────────────────────────────────────────┐
79
- │ Groups → People → Things → Connections → Events → Knowledge │
80
- │ │
81
- │ Everything flows through these six dimensions. │
82
- │ Everything scales without schema changes. │
83
- │ Everything is queryable, composable, and intelligent. │
84
- └─────────────────────────────────────────────────────────────┘
85
- ```
86
-
87
- **Every single thing in ONE exists within one of these 6 dimensions:**
88
-
89
- ```
90
- ┌──────────────────────────────────────────────────────────────┐
91
- │ 1. GROUPS │
92
- │ Multi-tenant isolation with hierarchical nesting - who owns │
93
- │ what at group level (friend circles → DAOs → governments) │
94
- └──────────────────────────────────────────────────────────────┘
95
- ↓
96
- ┌──────────────────────────────────────────────────────────────┐
97
- │ 2. PEOPLE │
98
- │ Authorization & governance - platform owner, group owners │
99
- └──────────────────────────────────────────────────────────────┘
100
- ↓
101
- ┌──────────────────────────────────────────────────────────────┐
102
- │ 3. THINGS │
103
- │ Every "thing" - users, agents, content, tokens, courses │
104
- └──────────────────────────────────────────────────────────────┘
105
- ↓
106
- ┌──────────────────────────────────────────────────────────────┐
107
- │ 4. CONNECTIONS │
108
- │ Every relationship - owns, follows, taught_by, powers │
109
- └──────────────────────────────────────────────────────────────┘
110
- ↓
111
- ┌──────────────────────────────────────────────────────────────┐
112
- │ 5. EVENTS │
113
- │ Every action - purchased, created, viewed, completed │
114
- └──────────────────────────────────────────────────────────────┘
115
- ↓
116
- ┌──────────────────────────────────────────────────────────────┐
117
- │ 6. KNOWLEDGE │
118
- │ Labels + chunks + vectors powering RAG & search │
119
- └──────────────────────────────────────────────────────────────┘
120
- ```
121
-
122
- **The Universal Interface (How Technology Implements the Ontology):**
123
-
124
- ```
125
- ┌─────────────────────────────────────────────────────────────────────┐
126
- │ LAYER 1: UNIVERSAL INTERFACE │
127
- │ (The 6-Dimension DSL) │
128
- ├─────────────────────────────────────────────────────────────────────┤
129
- │ groups → Hierarchical containers (friend circles → governments)│
130
- │ people → Authorization & governance (who can do what) │
131
- │ things → All entities (66 types: user, product, course...) │
132
- │ connections → All relationships (25 types: owns, purchased...) │
133
- │ events → All actions (67 types: created, updated, logged...) │
134
- │ knowledge → AI understanding (embeddings, search, RAG) │
135
- │ │
136
- │ This layer NEVER changes. It models reality. │
137
- └──────────────────┬──────────────────────────────────────────────────┘
138
- │
139
- ↓ Technology changes, ontology stays the same
140
-
141
- ### 1. 👥 Groups
142
-
143
- **Hierarchical containers that organize people and things**
144
-
145
- Groups can nest infinitely—from intimate friend circles to massive organizations. Each group owns its own graph of people, things, connections, events, and knowledge, creating perfect isolation at any scale.
146
-
147
- **6 Group Types:**
148
-
149
- - `friend_circle` - Small, intimate groups
150
- - `business` - Commercial organizations
151
- - `community` - Interest-based collectives
152
- - `dao` - Token-governed groups
153
- - `government` - Public institutions
154
- - `organization` - Generic groups
155
-
156
- **URL-Based Creation:**
157
-
158
- ```
159
-
160
- one.ie/group/cooldao → creates "cooldao" group
161
- one.ie/group/cooldao/treasury → creates nested "treasury" group
162
- one.ie/group/emmas-birthday → creates "emmas-birthday" group
163
-
164
- ```
165
-
166
- **Hierarchical Nesting Example:**
167
-
168
- ```
169
-
170
- groups/acme-corp (business)
171
- ├─ groups/engineering (organization)
172
- │ ├─ groups/backend-team (organization)
173
- │ └─ groups/frontend-team (organization)
174
- ├─ groups/marketing (organization)
175
- └─ groups/sales (organization)
176
-
177
- groups/emmas-friends (friend_circle)
178
- ├─ groups/birthday-party (friend_circle)
179
- └─ groups/game-night (friend_circle)
180
-
181
- groups/cool-dao (dao)
182
- ├─ groups/treasury (dao)
183
- └─ groups/governance (dao)
184
-
185
- ````
186
-
187
- ---
188
-
189
- ### 2. 🙋 People
190
-
191
- **Authorization & governance - WHO can do what**
192
-
193
- People are the prime movers. Every decision, transaction, and relationship traces back to human intent. People link to organizations through membership connections, creating clear authorization chains.
194
-
195
- **4 Roles:**
196
-
197
- - `platform_owner` - Platform-level control
198
- - `org_owner` - Organization-level control
199
- - `org_user` - Organization member
200
- - `customer` - End user
201
-
202
- **Properties:**
203
-
204
- - Identity (name, email, wallet)
205
- - Authentication credentials
206
- - Role within organization
207
- - Permissions and authorization
208
- - Preferences and settings
209
-
210
- **Why it matters:**
211
-
212
- - ✓ Human authorization required
213
- - ✓ Clear governance
214
- - ✓ Audit trails
215
- - ✓ Intent and accountability
216
- - ✓ AI serves people, not the other way around
217
-
218
- ---
219
-
220
- ### 3. 📦 Things
221
-
222
- **Entities - WHAT exists in your system**
223
-
224
- Things are discrete entities with properties, types, and states. They can be agents, products, audiences, tokens, mandates, contracts—anything you need to model. Every thing belongs to exactly one group.
225
-
226
- **66 Thing Types** organized in categories:
227
-
228
- **Core:**
229
-
230
- - `creator`, `audience_member`, `workspace`, `organization_settings`
231
-
232
- **Agents:**
233
-
234
- - `intelligence_agent`, `business_agent`, `personal_assistant`, `data_analyst`, `writer`, `researcher`, `moderator`, `customer_support`, `sales_rep`, `code_reviewer`, `qa_tester`, `task_automator`
235
-
236
- **Content:**
237
-
238
- - `video_content`, `text_content`, `audio_content`, `image_content`, `course`, `curriculum`, `module`, `lesson`, `quiz`, `certificate`, `podcast`, `newsletter`, `live_stream`, `blog_post`
239
-
240
- **Products:**
241
-
242
- - `token`, `nft`, `digital_product`, `offer`, `subscription_tier`, `bundle`, `access_pass`
243
-
244
- **Community:**
245
-
246
- - `community`, `forum`, `discussion`, `announcement`, `poll`
247
-
248
- **Knowledge:**
249
-
250
- - `knowledge_base`, `knowledge_chunk`, `topic`, `recommendation`, `insight`, `summary`
251
-
252
- **Platform:**
253
-
254
- - `ai_clone`, `voice_clone`, `personality_profile`, `mandate`, `delegation`, `workflow`, `automation`, `integration`, `webhook`
255
-
256
- **Business:**
257
-
258
- - `lead`, `deal`, `invoice`, `payment_method`, `payout_config`
259
-
260
- ---
261
-
262
- ### 4. 🔗 Connections
263
-
264
- **Relationships - HOW things relate to each other**
265
-
266
- Connections are first-class relationships with their own properties. They express ownership, membership, governance, authorization, dependencies, transactions, and more. Connections make the implicit explicit.
267
-
268
- **25 Connection Types:**
269
-
270
- **Ownership & Authorization:**
271
-
272
- - `owns` - Ownership relationship
273
- - `can_read` - Read access
274
- - `can_write` - Write access
275
- - `can_execute` - Execution permission
276
-
277
- **Governance:**
278
-
279
- - `governed_by` - Governed by mandate
280
- - `delegated_to` - Delegation chain
281
- - `member_of` - Membership
282
-
283
- **Content & Knowledge:**
284
-
285
- - `authored` - Created content
286
- - `taught_by` - Teaching relationship
287
- - `enrolled_in` - Course enrollment
288
- - `contains` - Hierarchical containment
289
-
290
- **Social:**
291
-
292
- - `following` - Social following
293
- - `subscribed_to` - Subscription
294
- - `holds_tokens` - Token ownership
295
-
296
- **Consolidated Types (with metadata):**
297
-
298
- - `transacted` - Financial transactions (metadata.protocol: stripe | sui | blockchain)
299
- - `communicated` - Messages/interactions (metadata.channel: email | chat | voice)
300
- - `delegated` - Delegated authority (metadata.permissions: [...])
301
- - `governed` - Governance (metadata.constraints: [...])
302
- - `powered` - Dependency (metadata.config: {...})
303
- - `related` - Generic relationship (metadata.relationshipType: custom)
304
- - `licensed_to` - Licensing (metadata.terms: {...})
305
-
306
- ---
307
-
308
- ### 5. ⚡ Events
309
-
310
- **Actions - WHAT happened, when, and why**
311
-
312
- Events are immutable records of every action in your system. They create an audit trail, enable time-travel queries, feed analytics, and power learning loops. Events are the memory of your system.
313
-
314
- **67 Event Types** organized in categories:
315
-
316
- **Thing Lifecycle:**
317
-
318
- - `thing_created`, `thing_updated`, `thing_deleted`, `thing_published`, `thing_archived`
319
-
320
- **User Actions:**
321
-
322
- - `user_signup`, `user_login`, `user_logout`, `profile_updated`, `preferences_changed`
323
-
324
- **AI/Agent:**
325
-
326
- - `agent_created`, `agent_executed`, `agent_completed`, `agent_failed`, `clone_created`, `clone_interaction`, `voice_cloned`, `personality_analyzed`
327
-
328
- **Cycle Events:**
329
-
330
- - `cycle_request`, `cycle_completed`, `cycle_failed`, `cycle_quota_exceeded`, `cycle_revenue_collected`, `org_revenue_generated`, `revenue_share_distributed`
331
-
332
- **Token/NFT:**
333
-
334
- - `token_created`, `tokens_purchased`, `tokens_transferred`, `tokens_burned`, `nft_minted`, `nft_transferred`
335
-
336
- **Blockchain:**
337
-
338
- - `tokens_bridged`, `contract_deployed`, `treasury_withdrawal`
339
-
340
- **Content:**
341
-
342
- - `content_created`, `content_published`, `content_viewed`, `content_liked`, `content_shared`, `course_enrolled`, `lesson_completed`, `quiz_submitted`, `certificate_earned`
343
-
344
- **Knowledge:**
345
-
346
- - `knowledge_indexed`, `embedding_generated`, `search_performed`, `recommendation_generated`
347
-
348
- **Consolidated Events (with metadata):**
349
-
350
- - `communicated` (metadata.protocol: email | sms | chat)
351
- - `transacted` (metadata.protocol: stripe | sui | blockchain)
352
- - `content_engaged` (metadata.engagement_type: view | like | share)
353
- - Others...
354
-
355
- ---
356
-
357
- ### 6. 🧠 Knowledge
358
-
359
- **Intelligence - WHAT it all means**
360
-
361
- Knowledge captures semantics—labels, chunks, embeddings, and structured insights—that give agents the context they need to act intelligently. Knowledge transforms raw events and properties into queryable, composable intelligence.
362
-
363
- **12 Tag Categories:**
364
-
365
- 1. **skill** - typescript, react, python, design, video-editing
366
- 2. **industry** - fitness, education, finance, healthcare
367
- 3. **topic** - ai, blockchain, marketing, sales, analytics
368
- 4. **format** - video, text, audio, code, interactive
369
- 5. **goal** - learn, earn, build, grow, teach
370
- 6. **audience** - beginners, professionals, students, developers
371
- 7. **technology** - astro, react-19, convex, sui, solana
372
- 8. **status** - draft, published, deprecated, featured
373
- 9. **capability** - image-gen, analysis, trading, refactoring
374
- 10. **protocol** - a2a, acp, ap2, x402, ag-ui
375
- 11. **payment** - stripe, crypto, x402, ap2
376
- 12. **network** - sui, solana, base, ethereum
377
-
378
- **Features:**
379
-
380
- - Labels for categorization
381
- - Chunks for semantic search
382
- - Embeddings for vector similarity
383
- - Relationships for knowledge graphs
384
- - Licensing for IP protection
385
- - Provenance for trust
386
- - Tokenization for markets
387
-
388
- ---
389
-
390
- ## 🎨 How The Ontology Works
391
-
392
- ### Complete Example: Fan Buys Creator Tokens
393
-
394
- Let's see how all six dimensions work together in a real feature:
395
-
396
- #### Step 0: **Groups** (Scope)
397
-
398
- ```typescript
399
- groupId: "acme-corp";
400
- // Transaction happens within this group boundary
401
- // All entities belong to this group (can be nested)
402
- ````
403
-
404
- #### Step 1: **People** (Authorization)
405
-
406
- ```typescript
407
- actorId: "fan_123";
408
- // Fan authorizes: "Buy 100 creator tokens for $10"
409
- ```
410
-
411
- #### Step 2: **Things** (Entities Involved)
412
-
413
- ```typescript
414
- {
415
- fan_123: { type: "audience_member" },
416
- token_456: { type: "token", symbol: "CRTR" }
417
- }
418
- ```
419
-
420
- #### Step 3: **Connections** (Relationship Created)
421
-
422
- ```typescript
423
- {
424
- fromThingId: "fan_123",
425
- toThingId: "token_456",
426
- relationshipType: "holds_tokens",
427
- metadata: { balance: 100 }
428
- }
429
- ```
430
-
431
- #### Step 4: **Events** (Action Recorded)
432
-
433
- ```typescript
434
- {
435
- type: "tokens_purchased",
436
- actorId: "fan_123",
437
- targetId: "token_456",
438
- metadata: { amount: 100, usd: 10 },
439
- timestamp: Date.now()
440
- }
441
- ```
442
-
443
- #### Step 5: **Knowledge** (Context Added)
444
-
445
- ```typescript
446
- // Labels give downstream agents context
447
- tags: ["payment_method:stripe", "status:completed", "audience:engaged"];
448
- ```
449
-
450
- **Result:** One intent now touches every dimension—organizational scope, authorization, entities, relationships, events, and context—ready for agents to reuse.
451
-
452
- ---
453
-
454
- ## 📐 Data Flow Through The Ontology
455
-
456
- ```
457
- 0. Groups (Isolation Layer)
458
- ↓ Establishes scope for all operations (with optional nesting)
459
-
460
- 1. People (Policy Layer)
461
- ↓ Humans set outcomes, attach limits, approve execution
462
-
463
- 2. Things (Entity Layer)
464
- ↓ System resolves intent into typed entities
465
-
466
- 3. Connections (Relationship Layer)
467
- ↓ Defines how value moves—ownership, membership, authority
468
-
469
- 4. Events (Audit Layer)
470
- ↓ Records what happened, when, by whom
471
-
472
- 5. Knowledge (Intelligence Layer)
473
- ↓ Adds labels, embeddings, summaries for AI agents
474
- ```
475
-
476
- **Together:** Groups partition for scale (with infinite hierarchy), People authorize for governance, Things exist for substance, Connections relate for structure, Events record for memory, Knowledge learns for intelligence.
477
-
478
- ---
479
-
480
- ## 🚀 English → Code → Reality
481
-
482
- **In Minutes, Not Months**
483
-
484
- Describe your feature in plain English. The system validates it against the ontology, compiles to TypeScript, generates tests, and deploys to the edge.
485
-
486
- ### The Four-Step Workflow
487
-
488
- #### 1️⃣ Write in English
489
-
490
- Describe what you want: `"CREATE ai clone"`, `"CALL OpenAI"`, `"RECORD purchase"`. Use 15 simple commands anyone can understand.
491
-
492
- ```
493
- Creator: "CREATE my AI clone"
494
- Seller: "RECORD purchase event"
495
- Engineer: "CONNECT to Stripe API"
8
+ npm install -g @oneie/cli
9
+ # or run without installing:
10
+ npx @oneie/cli --help
496
11
  ```
497
12
 
498
- #### 2️⃣ System Validates
13
+ ## Quick start — operate an agency on ONE
499
14
 
500
- Checks against the ontology: Do these entity types exist? Are connections valid? Are services available? Instant feedback.
15
+ A ONE node (agency or client) is three folders the CLI compiles to the substrate:
501
16
 
502
17
  ```
503
- ✓ ai_clone entity type exists
504
- ✓ tokens_purchased event valid
505
- ✓ Stripe service available
18
+ <node>/
19
+ ├── ai/ agents · skills · tools · workflows · context.md
20
+ ├── data/ types · lifecycles · content
21
+ └── _node.toml who it is
506
22
  ```
507
23
 
508
- #### 3️⃣ Code Generated
509
-
510
- Compiles to production TypeScript with Effect.ts, Convex functions, React components, full test suite. Type-safe, tested, ready.
511
-
512
- ```
513
- Backend Frontend Tests
514
- ├─ Mutations ├─ Components └─ 50+ cases
515
- ├─ Queries └─ Pages
516
- └─ Services
24
+ ```bash
25
+ one setup # stand up your agency workspace (idempotent)
26
+ one client add <slug> # provision a managed client (workspace + credits + brand + agents)
27
+ one push [clients/<slug>] # compile ai/ + data/ → agents, skills, context, lifecycles, types, workflows
28
+ one status # P&L — funded · burned · margin · balance
29
+ one deploy # wrangler deploy the node's site/
517
30
  ```
518
31
 
519
- #### 4️⃣ Deploy to Edge
32
+ `one push` understands TOML array-of-tables (`[[stages]]`, `[[fields]]`), compiles
33
+ `data/lifecycles/*.toml` and `data/types/*.toml` into the shapes the substrate expects, and
34
+ deploys `ai/workflows/*.md` as runnable workflows — the step graph rides in a fenced
35
+ ` ```graph ` block (`{ "steps": [...], "edges": [...] }`), prose above it is human docs.
520
36
 
521
- Push to Cloudflare's global network. Unlimited requests, instant updates, zero configuration. Live in 60 seconds.
37
+ ## Reach the whole surface
522
38
 
523
- ```
524
- 330+ locations worldwide
525
- < 330ms average response time
526
- Free tier unlimited
527
- ```
528
-
529
- ### Complete Example: Portfolio Website
530
-
531
- **You Write:**
39
+ The receiver namespace *is* the API — discover it, then call anything:
532
40
 
41
+ ```bash
42
+ one catalog [--goal G] # browse receivers grouped by recipe
43
+ one ask <receiver> '{json}' # typed, validated pass-through to any receiver
44
+ one signal <receiver> '{json}' # fire-and-forget variant
45
+ one groups | actors | things | paths | events | learning # dimension reads
46
+ one mark | warn | fade | follow | select # the verbs
533
47
  ```
534
- WEBSITE: Portfolio
535
48
 
536
- CREATE pages:
537
- - / → Hero + featured work
538
- - /work → Project grid
539
- - /about → Bio + skills
540
- - /contact → Form
49
+ ## Build agents & skills
541
50
 
542
- ADD blog with Astro collections
543
- STYLE: Minimal, dark theme
544
- DEPLOY: Cloudflare Pages
51
+ ```bash
52
+ one agent new <name> --profile core|commerce|asi
53
+ one agent validate | lint | compile --target mcp|a2a|web|skillmd
54
+ one agent publish # sync to your ONE workspace
55
+ one skill new | import <ref> | publish
56
+ one init --name N --email E # zero-to-live: register + workspace + agent + skills
545
57
  ```
546
58
 
547
- **System Generates:**
548
-
549
- ```typescript
550
- src/pages/
551
- ├─ index.astro // Hero + featured work
552
- ├─ work.astro // Project grid
553
- ├─ about.astro // Bio + skills
554
- └─ contact.astro // Contact form
555
-
556
- src/content/
557
- ├─ blog/config.ts // Astro collections
558
- └─ projects/config.ts // Project metadata
59
+ ## Auth
559
60
 
560
- styles/
561
- ├─ global.css // Tailwind v4 dark theme
562
- └─ responsive.css // Mobile-first design
563
-
564
- tests/
565
- └─ pages.test.ts // All pages tested
61
+ ```bash
62
+ one login --key <key> # stored at ~/.config/oneie/key (0600)
63
+ # or set ONEIE_API_KEY in the environment
566
64
  ```
567
65
 
568
- **You Get:**
66
+ Workspace operations use a Bearer token `<slug>:<key>`. Override the API base per command with `--api` (default `https://api.one.ie`, the gateway).
569
67
 
570
- - 4 Astro pages (SSR)
571
- - React components
572
- - Content collections
573
- - Responsive design
574
- - Edge deployment
575
- - 100/100 Lighthouse score
68
+ ## Wallets
576
69
 
577
- ### Why This Works
70
+ Every actor — human or agent — gets real, self-custodied multi-chain wallets. The CLI reads and writes the same `wallet:*` receivers `/w` uses:
578
71
 
579
- Every feature follows this flow:
580
-
581
- 1. **English → Ontology** - Validates intent against 6 dimensions
582
- 2. **Ontology → Code** - Generates type-safe services
583
- 3. **Code → Tests** - Creates 50+ test cases automatically
584
- 4. **Tests → Deploy** - Pushes to edge with zero downtime
585
-
586
- The ontology ensures consistency. The compiler ensures quality. The edge ensures performance.
587
-
588
- ---
589
-
590
- ## 💡 Plain English DSL
591
-
592
- ### Write Features in English. The System Builds Everything.
593
-
594
- Describe what you want in plain English. The compiler checks every line against the ontology, generates TypeScript and tests, and deploys to the edge.
595
-
596
- **Example: Chat with AI Clone**
597
-
598
- ```
599
- FEATURE: Let fans chat with my AI clone
600
-
601
- WHEN a fan sends a message
602
- CHECK they own tokens
603
- GET conversation history
604
- CALL OpenAI with my personality
605
- RECORD the interaction
606
- REWARD fan with 10 tokens
607
- GIVE AI response to fan
72
+ ```bash
73
+ one wallet create --workspace <slug> --kind agent # provision a wallet row (idempotent)
74
+ one wallet get --workspace <slug> # credits, ceiling, live balances, delegated wallets
75
+ one wallet transactions --workspace <slug> --limit 50 # unified feed across every settlement rail
76
+ one wallet faucet <address> --chain sui # fund from testnet — sui/sol auto-fund, others return a manual URL
77
+ one wallet send <to> --chain SUI --amount 5 --payment-tx <hash> --workspace <slug>
608
78
  ```
609
79
 
610
- **What maps to ontology:**
611
-
612
- - **Things Touched:** fan, ai_clone, message, token — all typed rows
613
- - **Connections Updated:** fan `holds_tokens` token, fan `interacted_with` clone with metadata
614
- - **Events Logged:** message_sent, tokens_earned, clone_interaction with timestamps
615
- - **Knowledge Indexed:** Clone personality, embeddings, conversation history for retrieval
616
-
617
- **5 Core Commands:**
618
-
619
- | Command | Purpose | Example |
620
- | --------- | ----------------------------------- | -------------------------------- |
621
- | `CREATE` | Add typed Things into the graph | `CREATE ai clone WITH voice ID` |
622
- | `CONNECT` | Define relationships with metadata | `CONNECT fan to token as holder` |
623
- | `RECORD` | Append immutable Events | `RECORD tokens purchased BY fan` |
624
- | `CALL` | Invoke services and persist outputs | `CALL Stripe to charge payment` |
625
- | `CHECK` | Enforce guardrails before action | `CHECK user has tokens` |
626
-
627
- See [language.md](./one/knowledge/language.md) for complete DSL specification.
628
-
629
- ---
630
-
631
- ## 🚀 What This Unlocks
632
-
633
- ### Zero-Trust Authorization
634
-
635
- Every action traces back through explicit connections to a person in an organization. Perfect auditability. No implicit permissions. Authorization is data, not code.
636
-
637
- ### Identity-Aware Intelligence
638
-
639
- Agents don't just retrieve facts—they understand organizational context, provenance, licensing, governance, and strategic constraints.
640
-
641
- ### Event-Driven Compounding
642
-
643
- Every action generates events that create knowledge that enriches future actions. The system gets smarter with every interaction.
644
-
645
- ### Protocol-Agnostic Integration
646
-
647
- Same ontology, different protocols—all via metadata. Query across Stripe, SUI, and any future protocol with unified patterns.
648
-
649
- ### Cross-Organization Collaboration
650
-
651
- Resources can be shared without transferring ownership. Perfect for knowledge marketplaces with trustless licensing.
652
-
653
- ### Tokenization with SUI
654
-
655
- SUI's object-centric model maps naturally to ONE's thing-centric ontology. Knowledge as tradeable, licensable assets.
656
-
657
- ---
658
-
659
- ## 📈 Built for Scale
660
-
661
- ### Current Scale
662
-
663
- - ✅ 1M+ things per organization
664
- - ✅ 10M+ connections (optimized indexes)
665
- - ✅ 100M+ events (time-partitioned)
666
- - ✅ 1M+ knowledge chunks (vector search)
667
-
668
- ### Performance
669
-
670
- - 🚀 Graph caching (ownership chains)
671
- - 🚀 Materialized views (common queries)
672
- - 🚀 Event archival (cold storage)
673
- - 🚀 Token budgeting (context aware)
674
-
675
- ### Future Scale
676
-
677
- - 🔮 Shard by organization (>10M things)
678
- - 🔮 Streaming events (Kafka)
679
- - 🔮 Distributed vectors (Weaviate)
680
- - 🔮 Regional databases (CDC replication)
681
-
682
- ---
683
-
684
- ## 📚 Documentation Structure
685
-
686
- This repository contains **41 documentation files** organized in **8 layers**:
687
-
688
- ### 1. Strategy Layer (Vision & Revenue)
689
-
690
- - [one.md](packages/cli/one/groups/one.md) - Platform organization
691
-
692
- ### 2. Ontology Layer (Core Model)
693
-
694
- - [ontology.md](./one/knowledge/ontology.md) - Complete 6-dimension spec (Version 1.0.0)
695
- - [groups.md](packages/cli/one/groups/groups.md) - Groups dimension
696
- - [things.md](things.md) - Things dimension
697
- - [connections.md](./one/connections/connections.md) - Connections dimension
698
- - [events.md](packages/cli/one/events/events.md) - Events dimension
699
- - [knowledge.md](./one/knowledge/knowledge.md) - Knowledge dimension
700
-
701
- ### 3. Protocols Layer (A2A, ACP, AP2, X402, AG-UI)
702
-
703
- - [protocols.md](./one/connections/protocols.md) - Protocol overview
704
- - [a2a.md](./one/connections/a2a.md), [acp.md](./one/connections/acp.md), [ap2.md](./one/connections/ap2.md), [x402.md](./one/connections/x402.md), [agui.md](./one/connections/agui.md)
705
-
706
- ### 4. Services Layer (Effect.ts)
707
-
708
- - [service-layer.md](./one/connections/service-layer.md) - Effect.ts patterns
709
- - [service-providers.md](service-providers.md) - External API providers
710
-
711
- ### 5. Implementation Layer (Frontend, Patterns)
712
-
713
- - [frontend.md](./one/knowledge/frontend.md) - Frontend architecture
714
- - [architecture.md](./one/knowledge/architecture.md) - System architecture
715
- - [patterns.md](./one/connections/patterns.md) - Code patterns
716
-
717
- ### 6. Integration Layer (ElizaOS, CopilotKit, MCP, N8N)
718
-
719
- - [elizaos.md](./one/connections/elizaos.md) - ElizaOS integration
720
- - [copilotkit.md](./one/connections/copilotkit.md) - CopilotKit integration
721
- - [mcp.md](./one/connections/mcp.md) - Model Context Protocol
722
- - [n8n.md](./one/connections/n8n.md) - N8N workflow automation
723
-
724
- ### 7. Examples Layer (Use Cases)
725
-
726
- - [lemonade-stand.md](lemonade-stand.md) - Simple for children
727
- - Enterprise CRM examples
728
-
729
- ### 8. Plans Layer (Future & Technical Debt)
730
-
731
- - Various planning documents
732
-
733
- **Use targeted reading:** Don't read everything - follow the critical path for your specific feature type.
734
-
735
- See [files.md](./one/knowledge/files.md) for complete file location guide.
736
-
737
- ---
738
-
739
- ## 🎯 Getting Started
740
-
741
- ### For Developers
742
-
743
- 1. **Understand the Ontology**
80
+ `send` never signs — sign and broadcast the transfer yourself first (`agent-wallet-client.ts` for an agent, `/w` for a human), then pass the resulting transaction hash. The private key never crosses this command. `faucet` talks to `pay.one.ie` directly (its own protocol, not the `/ask` gateway) and needs no credential — funding any address is public by design, funding ≠ ownership.
744
81
 
745
- ```bash
746
- # Read these in order:
747
- - one/knowledge/ontology.md (complete 6-dimension spec)
748
- - one/knowledge/rules.md (golden rules)
749
- - one/connections/workflow.md (development flow)
750
- - one/connections/patterns.md (code patterns)
751
- ```
82
+ ## Chat — fan in · fan out
752
83
 
753
- 2. **Map Your Feature**
754
- - Which **groups** are involved? (organizational scope, with potential nesting)
755
- - Which **people** are involved? (authorization)
756
- - Which **things** are involved? (entities)
757
- - Which **connections** are needed? (relationships)
758
- - Which **events** should be logged? (actions)
759
- - Which **knowledge** should be captured? (context)
84
+ Send to a space, broadcast to all, or stream incoming messages:
760
85
 
761
- 3. **Generate Code**
762
- - Use Effect.ts for business logic
763
- - Create Convex wrappers for database operations
764
- - Build React components for UI
765
- - Write tests to validate behavior
766
-
767
- ### For AI Agents
768
-
769
- **Before generating ANY code:**
770
-
771
- 1. Read `one/knowledge/ontology.md` (understand the 6 dimensions)
772
- 2. Read `one/knowledge/rules.md` (golden rules for AI agents)
773
- 3. Read `one/connections/workflow.md` (6-phase development workflow)
774
- 4. Map feature to: groups, people, things, connections, events, knowledge
775
- 5. Design types and errors (tagged unions)
776
- 6. Generate Effect.ts service (pure business logic)
777
- 7. Create Convex wrapper (thin layer)
778
- 8. Build React component (UI)
779
- 9. Write tests (unit + integration)
780
- 10. Update documentation
781
-
782
- **Critical:** Never skip reading documentation. Never use `any` type except in entity `properties`. Always write tests.
783
-
784
- ### For Content Creators
785
-
786
- Use the Plain English DSL:
787
-
788
- ```
789
- FEATURE: Create my AI voice clone
790
-
791
- INPUT:
792
- - video links (at least 3)
793
-
794
- OUTPUT:
795
- - clone ID
796
- - voice ID
797
-
798
- FLOW:
799
- CALL ElevenLabs to clone voice
800
- CALL OpenAI to analyze personality
801
- CREATE ai clone WITH voice and personality
802
- CONNECT creator to clone as owner
803
- RECORD clone created
804
- GIVE clone ID and voice ID
86
+ ```bash
87
+ one chat "deploy shipped" # broadcast to vespio · elitemoversca · world
88
+ one chat send --to vespio "hey donal, PR is ready" # targeted
89
+ one chat broadcast "all green" --spaces vespio,elitemoversca # explicit fan-out
90
+ one chat listen vespio # stream incoming SSE (Ctrl+C to stop)
805
91
  ```
806
92
 
807
- See [language.md](./one/knowledge/language.md) for complete DSL reference.
808
-
809
- ---
810
-
811
- ## 🏗️ Architecture Principles
812
-
813
- ### 1. Clarity Scales
814
-
815
- Everything maps to the 6 dimensions. No exceptions. If it doesn't map, rethink your approach.
816
-
817
- ### 2. Groups Partition for Scale
818
-
819
- From friend circles (2 people) to governments (billions) without schema changes. Infinite hierarchical nesting supported.
820
-
821
- ### 3. People Authorize for Governance
822
-
823
- Every action traces back to human intent. AI serves people, not the other way around.
824
-
825
- ### 4. Things Exist for Substance
826
-
827
- 66 thing types capture everything you need to model. Flexible `properties` field for type-specific data.
828
-
829
- ### 5. Connections Relate for Structure
830
-
831
- 25 connection types make the implicit explicit. Relationships are first-class with metadata.
832
-
833
- ### 6. Events Record for Memory
834
-
835
- 67 event types create immutable audit trail. Time-travel queries and analytics built-in.
836
-
837
- ### 7. Knowledge Learns for Intelligence
838
-
839
- Tags, chunks, embeddings, and relationships give AI agents context to act intelligently.
840
-
841
- ---
842
-
843
- ## 💎 Philosophy
844
-
845
- **Beauty = Stability.** The ontology is not just a schema—it's a shared mental model between humans, AI agents, and code. Every feature should feel intentional because it maps cleanly to reality.
846
-
847
- **Simple enough for children. Powerful enough for enterprises.** A lemonade stand and a Fortune 500 company use the same 6 dimensions.
848
-
849
- **The ontology holds the contracts. The DSL speaks those contracts.** Together they give everyone the same, inspectable source of truth.
850
-
851
- **Clarity scales.** Your DSL features, agent playbooks, and analytics dashboards stay in sync because they pull from the same ontology.
852
-
853
- **Map your domain to these dimensions. Everything else is just data.**
854
-
855
- ---
856
-
857
- ## 🤖 Claude Automation Stack
858
-
859
- ### `.claude/agents/*`
860
-
861
- - **Director (`agent-director.md`)** validates ideas against the 6 dimensions, sequences numbered plans, and routes work to the right specialist.
862
- - **Builder squad (`agent-builder.md`, `agent-backend.md`, `agent-frontend.md`, `backend-specialist.md`, `frontend-specialist.md`)** implements Convex services, Astro interfaces, and cross-cutting features while preserving multi-tenant boundaries and typed contracts.
863
- - **Integration lead (`agent-integrator.md`)** connects external protocols (A2A, ACP, AP2, X402, AG-UI) and reconciles third-party data so it lands in groups, people, things, connections, events, and knowledge.
864
- - **Quality loop (`agent-quality.md`, `agent-clean.md`, `agent-problem-solver.md`)** defines acceptance up front, enforces guardrails, diagnoses failures, and refactors without breaking ontology guarantees.
865
- - **Design + knowledge (`agent-designer.md`, `designer.md`, `agent-documenter.md`)** translate specs into accessible UI systems, tokens, and documentation so the knowledge dimension stays queryable for future generations.
866
- - **Growth ops (`agent-clone.md`, `agent-sales.md`)** migrate legacy assets, build AI clones, manage trials, and tie revenue attribution back to event streams.
867
-
868
- **Cascade in practice:** Director validates → Quality defines tests → Designers supply artifacts → Specialists build → Clean and Problem Solver close gaps → Documenter updates knowledge. Every agent reads and writes to the same ontology, so each run leaves richer context for the next.
869
-
870
- ### MCP Servers (`.mcp.json`)
93
+ Every `chat send` routes through `space:post` — authenticated, mirrored to `one.ie/u/<space>/in`, delivered to every connected SSE listener.
871
94
 
872
- - **shadcn** (`npx shadcn@latest mcp`) gives UI agents instant access to audited component recipes without leaving Claude Code.
873
- - **cloudflare-builds** (`npx -y mcp-remote https://builds.mcp.cloudflare.com/sse`) lets release flows trigger deployments, inspect logs, and roll back while emitting auditable events.
874
- - **cloudflare-docs** (`npx -y mcp-remote https://docs.mcp.cloudflare.com/sse`) streams authoritative references so integrators and quality agents stay aligned with platform guidance.
875
- - **chrome-devtools** (`npx -y chrome-devtools-mcp@latest`) enables live performance profiling; findings roll into knowledge chunks for future optimizations.
95
+ ## Links
876
96
 
877
- **How it fits:** `.claude/commands/*` orchestrate the workflow (plan → build → release), `.claude/hooks/*` enforce guardrails, agents execute the steps, and MCP servers provide live tool access—all grounded in the ONE ontology as the single source of truth.
878
-
879
- ---
880
-
881
- ## 📊 Statistics
882
-
883
- ### Ontology Size
884
-
885
- - **6 Dimensions** (groups, people, things, connections, events, knowledge)
886
- - **6 Group Types** (friend_circle, business, community, dao, government, organization)
887
- - **4 Roles** (platform_owner, org_owner, org_user, customer)
888
- - **66 Thing Types** (across 13 categories)
889
- - **25 Connection Types** (18 specific + 7 consolidated)
890
- - **67 Event Types** (including cycle & blockchain events)
891
- - **12 Tag Categories** (industry, skill, topic, format, goal, audience, technology, status, capability, protocol, payment, network)
892
-
893
- ### Coverage
894
-
895
- - ✅ **100% Protocol Agnostic** - Stripe, SUI, Solana, any blockchain via metadata
896
- - ✅ **100% Type Safe** - Every entity, connection, and event is typed
897
- - ✅ **100% AI Understandable** - Plain English DSL compiles to ontology
898
- - ✅ **100% Auditable** - Immutable event log for every action
899
-
900
- ---
901
-
902
- ## 🎧 Learn More
903
-
904
- ### Featured Podcast: Understanding the ONE Ontology
905
-
906
- **Listen:** [ONE Ontology Explained](https://one.ie/podcasts/one-ontology)
907
-
908
- A deep dive into how the 6-dimension ontology models reality and enables AI agents to understand who owns what, who can do what, what happened, and what it all means.
909
-
910
- **Topics covered:**
911
- - Why every intelligent system needs a coherent model of reality
912
- - How the 6 dimensions (groups, people, things, connections, events, knowledge) work together
913
- - Real-world examples from lemonade stands to Fortune 500 companies
914
- - How AI agents use the ontology to make intelligent decisions
915
-
916
- ---
917
-
918
- ## 🔗 Quick Links
919
-
920
- ### Core Documentation
921
-
922
- - [📖 Complete Ontology Specification](./one/knowledge/ontology.md) - Version 1.0.0
923
- - [🎨 Plain English DSL](./one/knowledge/language.md) - Write features in English
924
- - [🏗️ Architecture Guide](./one/knowledge/architecture.md) - System architecture
925
- - [📝 Development Workflow](./one/connections/workflow.md) - 6-phase process
926
- - [🎯 Code Patterns](./one/connections/patterns.md) - Proven patterns
927
- - [⚡ Golden Rules](./one/knowledge/rules.md) - Rules for AI agents
928
- - [📁 File Locations](./one/knowledge/files.md) - Where everything goes
929
-
930
- ### Integrations
931
-
932
- - [🤖 ElizaOS](./one/connections/elizaos.md) - Multi-agent communication
933
- - [🔌 MCP](./one/connections/mcp.md) - Model Context Protocol
934
- - [⚙️ N8N](./one/connections/n8n.md) - Workflow automation
935
-
936
- ### Examples
937
-
938
- - [🍋 Lemonade Stand](lemonade-stand.md) - Simple for children
939
-
940
- ---
941
-
942
- ## 🤝 Contributing
943
-
944
- We welcome contributions! Before submitting:
945
-
946
- 1. Read [knowledge/ontology.md](./one/knowledge/ontology.md) to understand the 6 dimensions
947
- 2. Read [knowledge/rules.md](./one/knowledge/rules.md) for golden rules
948
- 3. Map your contribution to the ontology
949
- 4. Follow the patterns in [connections/patterns.md](./one/connections/patterns.md)
950
- 5. Write tests
951
- 6. Update documentation
952
-
953
- ---
954
-
955
- ## 📜 License
956
-
957
- Copyright © 2025 ONE
958
- ONE Free License -see [LICENSE.md](packages/cli/LICENSE.md).
959
-
960
- ---
961
-
962
- <div align="center">
963
-
964
- **ONE Ontology. Infinite Systems.**
965
-
966
- _Built with clarity, simplicity, and infinite scale in mind._
967
-
968
- [Explore the Platform](https://one.ie) • [View on GitHub](https://github.com/one-ie/one) • [Read the Docs](https://one.ie/docs)
969
-
970
- </div>
971
-
972
- ## Telemetry
973
-
974
- `oneie` CLI sends anonymous usage signals to the ONE substrate to improve routing quality.
975
-
976
- **What we send:** package version, method name, outcome type, anonymous session ID (hex hash — no PII), call latency.
977
-
978
- **What we never send:** your API key, user IDs, email addresses, file paths, or any personally identifiable information.
979
-
980
- **Opt out:**
981
- ```bash
982
- # Environment variable (per-session)
983
- ONEIE_TELEMETRY_DISABLE=1 node your-script.js
984
-
985
- # Permanent opt-out
986
- echo '{"telemetry":false}' > ~/.oneie/config.json
987
- ```
97
+ - Platform: **https://one.ie**
98
+ - Developers + SDK + MCP: **https://github.com/one-ie/one**
988
99
 
989
- When opt-out is active, `oneie --version` prints `telemetry: disabled`.
100
+ MIT © ONE