everything-dev 1.42.1 → 1.43.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 (57) hide show
  1. package/dist/cli/prompts.cjs +2 -1
  2. package/dist/cli/prompts.cjs.map +1 -1
  3. package/dist/cli/prompts.mjs +2 -1
  4. package/dist/cli/prompts.mjs.map +1 -1
  5. package/dist/cli/upgrade.cjs +2 -15
  6. package/dist/cli/upgrade.cjs.map +1 -1
  7. package/dist/cli/upgrade.mjs +2 -15
  8. package/dist/cli/upgrade.mjs.map +1 -1
  9. package/dist/config.cjs +1 -12
  10. package/dist/config.cjs.map +1 -1
  11. package/dist/config.d.cts.map +1 -1
  12. package/dist/config.d.mts.map +1 -1
  13. package/dist/config.mjs +1 -12
  14. package/dist/config.mjs.map +1 -1
  15. package/dist/contract.d.cts +0 -60
  16. package/dist/contract.d.cts.map +1 -1
  17. package/dist/contract.d.mts +0 -60
  18. package/dist/contract.d.mts.map +1 -1
  19. package/dist/index.cjs +0 -5
  20. package/dist/index.d.cts +2 -3
  21. package/dist/index.d.mts +2 -3
  22. package/dist/index.mjs +2 -3
  23. package/dist/orchestrator.cjs +17 -4
  24. package/dist/orchestrator.cjs.map +1 -1
  25. package/dist/orchestrator.mjs +17 -4
  26. package/dist/orchestrator.mjs.map +1 -1
  27. package/dist/plugin.cjs +2 -4
  28. package/dist/plugin.cjs.map +1 -1
  29. package/dist/plugin.d.cts +0 -60
  30. package/dist/plugin.d.cts.map +1 -1
  31. package/dist/plugin.d.mts +0 -60
  32. package/dist/plugin.d.mts.map +1 -1
  33. package/dist/plugin.mjs +2 -4
  34. package/dist/plugin.mjs.map +1 -1
  35. package/dist/types.cjs +2 -21
  36. package/dist/types.cjs.map +1 -1
  37. package/dist/types.d.cts +1 -129
  38. package/dist/types.d.cts.map +1 -1
  39. package/dist/types.d.mts +1 -129
  40. package/dist/types.d.mts.map +1 -1
  41. package/dist/types.mjs +3 -20
  42. package/dist/types.mjs.map +1 -1
  43. package/package.json +1 -1
  44. package/skills/api-and-auth/SKILL.md +355 -0
  45. package/skills/api-and-auth/references/generated-types.md +14 -0
  46. package/skills/api-and-auth/references/middleware.md +38 -0
  47. package/skills/cli-reference/SKILL.md +249 -0
  48. package/skills/plugin-development/SKILL.md +470 -0
  49. package/skills/ui-integration/SKILL.md +382 -0
  50. package/dist/sidebar.cjs +0 -116
  51. package/dist/sidebar.cjs.map +0 -1
  52. package/dist/sidebar.d.cts +0 -8
  53. package/dist/sidebar.d.cts.map +0 -1
  54. package/dist/sidebar.d.mts +0 -8
  55. package/dist/sidebar.d.mts.map +0 -1
  56. package/dist/sidebar.mjs +0 -114
  57. package/dist/sidebar.mjs.map +0 -1
@@ -0,0 +1,249 @@
1
+ ---
2
+ name: cli-reference
3
+ description: Quick reference for all bos CLI commands — flags, options, environment settings, and links to detailed guidance in related skills. Use when any bos command comes up or the user needs a CLI overview.
4
+ metadata:
5
+ sources: "packages/everything-dev/src/contract.ts,packages/everything-dev/src/contract.meta.ts,packages/everything-dev/src/cli.ts,packages/everything-dev/src/cli/catalog.ts"
6
+ ---
7
+
8
+ # CLI Command Reference
9
+
10
+ 17 `bos` commands organised by workflow category.
11
+
12
+ ## Development
13
+
14
+ ### `bos dev`
15
+
16
+ Start a development session. Runs host, API, auth, and UI processes with hot reload.
17
+
18
+ **Flags:** `--host <local|remote>` `--ui <local|remote>` `--api <local|remote>` `--auth <local|remote>` `--remote-plugins <ids>` `--proxy` `--ssr` `--port <n>`
19
+
20
+ ```bash
21
+ bos dev # full local (all services)
22
+ bos dev --api remote # UI-only mode, use remote API
23
+ bos dev --ui remote # API-only mode, use remote UI
24
+ bos dev --proxy # local host proxies to remote API/UI
25
+ bos dev --remote-plugins auth,registry # force specific plugins remote
26
+ ```
27
+
28
+ → [`dev-workflow`](.) skill for port assignments, service-descriptor architecture, hot reload, and debugging.
29
+
30
+ ### `bos start`
31
+
32
+ Start the production host. Loads config from `bos.config.json`, wires MF remotes, serves SSR.
33
+
34
+ **Flags:** `--env <production|staging>` `--port <n>` `--account <id>` `--domain <domain>` `--no-interactive`
35
+
36
+ ```bash
37
+ bos start # production, auto-detects env
38
+ bos start --env staging # staging mode
39
+ bos start --account myapp.near # tenant override
40
+ ```
41
+
42
+ → [`dev-workflow`](.) skill for production topology and [`super-app`](.) for tenant overrides.
43
+
44
+ ### `bos build`
45
+
46
+ Build all workspace packages (or a subset) for production.
47
+
48
+ **Flags:** `--packages <list>` `--force` `--deploy`
49
+
50
+ ```bash
51
+ bos build # build all workspaces
52
+ bos build --packages ui,api # build specific packages
53
+ bos build --force # rebuild even if up-to-date
54
+ bos build --deploy # build + deploy to Zephyr
55
+ ```
56
+
57
+ → [`publish-sync`](.) skill for full deploy+publish workflow.
58
+
59
+ ### `bos config`
60
+
61
+ Print the loaded configuration (plain or fully resolved).
62
+
63
+ **Flags:** `--full`
64
+
65
+ ```bash
66
+ bos config # print bos.config.json with env overrides applied
67
+ bos config --full # print fully resolved config (extends + deep merge)
68
+ ```
69
+
70
+ → [`extends-config`](.) skill for deep merge semantics and resolved config lifecycle.
71
+
72
+ ## Lifecycle
73
+
74
+ ### `bos init`
75
+
76
+ Scaffold a new project from a deployed app or template. Interactive by default.
77
+
78
+ **Flags:** `--extends <ref>` `--directory <dir>` `--account <id>` `--domain <d>` `--source <dir>` `--plugins <list>` `--overrides <sections>` `--no-interactive` `--no-install`
79
+
80
+ ```bash
81
+ bos init # interactive wizard
82
+ bos init mysite.everything.dev # quick scaffold from current config
83
+ bos init --extends bos://account/gateway # from a specific parent
84
+ bos init --overrides ui,api,host,plugins # customise local sections
85
+ bos init --source ./my-app --no-interactive # from local source, skip prompts
86
+ ```
87
+
88
+ → [`init-upgrade`](.) skill for template download, file selection, snapshots, and conflict wiring.
89
+
90
+ ### `bos sync`
91
+
92
+ Sync template files from the parent project. Compares snapshot-versioned files to detect conflicts.
93
+
94
+ **Flags:** `--dry-run` `--no-install`
95
+
96
+ ```bash
97
+ bos sync
98
+ bos sync --dry-run # preview without writing
99
+ ```
100
+
101
+ → [`init-upgrade`](.) skill for snapshot-based conflict detection and framework-owned sections.
102
+
103
+ ### `bos upgrade`
104
+
105
+ Upgrade framework packages then sync template files. Interactive; prompts for package selection.
106
+
107
+ **Flags:** `--dry-run` `--no-install` `--no-sync`
108
+
109
+ ```bash
110
+ bos upgrade
111
+ bos upgrade --dry-run # preview version bumps
112
+ bos upgrade --no-sync # only upgrade packages, skip template sync
113
+ ```
114
+
115
+ → [`init-upgrade`](.) skill for catalog strategy, legacy import rewrites, and upgrade+publish flow.
116
+
117
+ ### `bos status`
118
+
119
+ Show project health: package versions, parent reachability, last sync, env file status, and update availability.
120
+
121
+ ```bash
122
+ bos status
123
+ ```
124
+
125
+ Output includes installed vs latest versions for each workspace package, whether the parent extends reference is reachable, whether `.env` exists, and when the last sync ran. No flags.
126
+
127
+ ## Publishing
128
+
129
+ ### `bos publish`
130
+
131
+ Publish `bos.config.json` to the FastKV on-chain registry. Optionally build and deploy workspaces first.
132
+
133
+ **Flags:** `--deploy` `--dry-run` `--network <mainnet|testnet>` `--private-key <key>` `--env <production|staging>` `--packages <list>`
134
+
135
+ ```bash
136
+ bos publish # publish current config snapshot
137
+ bos publish --deploy # build all + deploy + publish
138
+ bos publish --dry-run # preview what would be published
139
+ bos publish --network testnet # publish to testnet registry
140
+ ```
141
+
142
+ → [`publish-sync`](.) skill for config sections, SRI integrity, rollback, and FastKV troubleshooting.
143
+
144
+ ### `bos deploy`
145
+
146
+ Publish config and trigger a Railway redeploy. Builds and deploys by default.
147
+
148
+ **Flags:** `--env <production|staging>` `--no-build` `--dry-run` `--network <mainnet|testnet>` `--private-key <key>` `--service <name>` `--packages <list>`
149
+
150
+ ```bash
151
+ bos deploy # build + publish + trigger deploy
152
+ bos deploy --no-build # publish only, skip workspace build
153
+ bos deploy --service my-railway # override Railway service name
154
+ ```
155
+
156
+ → [`publish-sync`](.) skill and [`super-app`](.) for tenant-aware deploy considerations.
157
+
158
+ ### `bos key publish`
159
+
160
+ Generate a publish access key (NEAR function-call key) scoped to the FastKV registry contract.
161
+
162
+ **Flags:** `--allowance <amount>` (default: `0.25NEAR`)
163
+
164
+ ```bash
165
+ bos key publish # generate key with default allowance
166
+ bos key publish --allowance 1NEAR # custom allowance
167
+ ```
168
+
169
+ Outputs the public key, private key, and registry contract address. The generated key can only call the set and get methods on the BOS registry contract — it cannot transfer funds or call other contracts.
170
+
171
+ ## Plugins
172
+
173
+ ### `bos plugin add`
174
+
175
+ Add a plugin attachment to `bos.config.json` from a local path, BOS reference, or remote URL.
176
+
177
+ **Flags:** `<source>` (positional) `--as <alias>` `--production <url>`
178
+
179
+ ```bash
180
+ bos plugin add local:plugins/my-plugin # local plugin
181
+ bos plugin add bos://account/gateway # from BOS registry
182
+ bos plugin add https://cdn.example.com/remoteEntry.js # remote URL
183
+ bos plugin add local:plugins/my-plugin --as my-alias # with alias
184
+ bos plugin add local:plugins/my-plugin --production <prod-url> # separate prod URL
185
+ ```
186
+
187
+ → [`plugin-development`](.) skill for plugin anatomy, contract/service/index pattern, and registration.
188
+
189
+ ### `bos plugin remove`
190
+
191
+ Remove a plugin attachment from `bos.config.json`.
192
+
193
+ **Flags:** `<key>` (positional)
194
+
195
+ ```bash
196
+ bos plugin remove my-plugin
197
+ ```
198
+
199
+ ### `bos plugin list`
200
+
201
+ List all configured plugins with their sources (local vs remote), versions, and integrity hashes.
202
+
203
+ ```bash
204
+ bos plugin list
205
+ ```
206
+
207
+ Outputs each plugin's key, development source, production URL, local path, version, and SRI integrity hash.
208
+
209
+ ### `bos plugin publish`
210
+
211
+ Build and publish a single plugin to Zephyr CDN, then update `bos.config.json` with the production URL and SRI integrity hash.
212
+
213
+ **Flags:** `<key>` (positional)
214
+
215
+ ```bash
216
+ bos plugin publish my-plugin
217
+ ```
218
+
219
+ → [`plugin-development`](.) skill for build config (rspack.config.js), CLI lifecycle, and deploy workflow.
220
+
221
+ ## Types & DB
222
+
223
+ ### `bos types gen`
224
+
225
+ Generate and fetch type definitions from configured API and plugin contracts. Runs automatically on `bun install`, `bos dev`, `bos build`, `bos plugin add`, and `bos plugin remove`.
226
+
227
+ **Flags:** `--env <development|production>` `--dry-run`
228
+
229
+ ```bash
230
+ bos types gen # development mode (local + remote sources)
231
+ bos types gen --env production # production mode (remote sources only)
232
+ bos types gen --dry-run # preview without writing files
233
+ ```
234
+
235
+ Generated files: `api-types.gen.ts`, `auth-types.gen.ts` (ui, api, host), `plugins-types.gen.ts`. Uses `local:` sources in dev and production URLs in production mode.
236
+
237
+ ### `bos db studio`
238
+
239
+ Open Drizzle Studio for inspecting a plugin's database.
240
+
241
+ **Flags:** `<plugin>` (positional, default: `api`)
242
+
243
+ ```bash
244
+ bos db studio # open Drizzle Studio for the API database
245
+ bos db studio auth # open for the auth plugin
246
+ bos db studio my-plugin # open for a custom plugin
247
+ ```
248
+
249
+ Requires the `DATABASE_URL` secret to be set on the target plugin. Uses the plugin's drizzle.config.ts for schema discovery.