@symbo.ls/mcp 1.0.9 → 1.0.11

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.
@@ -1,205 +0,0 @@
1
- ## `smbls` CLI Quick Start (practical starter guide)
2
-
3
- This guide matches the CLI commands implemented in `packages/cli/bin/*`.
4
-
5
- ### What you’ll get
6
-
7
- - **A local starter project** (DOMQL) cloned from an official starter repo.
8
- - **A working dev server** you can run with `npm start` (or `yarn start`).
9
- - **Optional platform linking** so you can sync, collaborate, and manage project files with the Symbols platform.
10
-
11
- ---
12
-
13
- ## Install the CLI
14
-
15
- Install globally:
16
-
17
- ```bash
18
- npm i -g @symbo.ls/cli
19
- smbls --help
20
- ```
21
-
22
- ---
23
-
24
- ## Recommended flow: `smbls project create` → `npm start`
25
-
26
- ### 1) Create a new project locally (fastest path)
27
-
28
- This creates a starter project and writes/updates `symbols.json` in the project root.
29
-
30
- ```bash
31
- smbls project create my-app --local-only
32
- cd my-app
33
- npm start
34
- ```
35
-
36
- ### After `npm start`: what to do next
37
-
38
- - **Open the URL printed in your terminal** (the starter kit will tell you where it’s running).
39
- - **Follow the starter page + project README** for “what to edit first” and recommended structure.
40
- - **Develop with AI in your editor**: keep changes small, run the app, iterate quickly.
41
-
42
- ### 2) Pick your framework template
43
-
44
- Currently the CLI scaffolding supports **DOMQL only**.
45
-
46
- ```bash
47
- # DOMQL starter
48
- smbls project create my-app --local-only --domql
49
- ```
50
-
51
- ### 3) Choose a package manager
52
-
53
- ```bash
54
- smbls project create my-app --local-only --package-manager npm
55
- # or
56
- smbls project create my-app --local-only --package-manager yarn
57
- ```
58
-
59
- ### 4) Skip dependency install (optional)
60
-
61
- ```bash
62
- smbls project create my-app --local-only --no-dependencies
63
- cd my-app
64
- npm i
65
- npm start
66
- ```
67
-
68
- ---
69
-
70
- ## Platform + community flow (optional, but unlocks collaboration)
71
-
72
- If you want the “Symbols platform” benefits (project page/canvas, sharing, collaboration, etc.), link your local folder to a platform project.
73
-
74
- ### 1) Sign in
75
-
76
- ```bash
77
- smbls login
78
- ```
79
-
80
- If you have multiple environments/servers configured, you can list/switch them:
81
-
82
- ```bash
83
- smbls servers
84
- smbls servers --select
85
- ```
86
-
87
- ### 2) Create + link a new platform project (interactive)
88
-
89
- This creates the platform project, creates the local starter project, then links them.
90
-
91
- ```bash
92
- smbls project create my-app --create-new
93
- ```
94
-
95
- What gets written locally:
96
-
97
- - **`symbols.json`**: keeps the project key (legacy config used by multiple commands)
98
- - **`.symbols/config.json`**: stores the platform link (`projectKey`, `projectId`, `apiBaseUrl`, `branch`)
99
-
100
- ### 3) Link an existing platform project to this folder
101
-
102
- Interactive picker:
103
-
104
- ```bash
105
- smbls project link .
106
- ```
107
-
108
- Or non-interactive:
109
-
110
- ```bash
111
- smbls project link . --key your-project.symbo.ls
112
- # or
113
- smbls project link . --id <projectId>
114
- ```
115
-
116
- ---
117
-
118
- ## The core “sync” commands you’ll use day-to-day
119
-
120
- ### Fetch the latest platform project into files
121
-
122
- `fetch` downloads the latest project snapshot and can generate/update files under a `distDir`.
123
-
124
- ```bash
125
- smbls fetch --update
126
- ```
127
-
128
- Notes:
129
-
130
- - **Default output directory** (if you don’t set one) is `./smbls`.
131
- - You can set it once via:
132
-
133
- ```bash
134
- smbls config --dist-dir ./smbls
135
- ```
136
-
137
- ### Push local changes to the platform
138
-
139
- Use this when you’ve edited locally and want to publish your changes upstream.
140
-
141
- ```bash
142
- smbls push
143
- ```
144
-
145
- ### Sync (two-way) with conflict handling
146
-
147
- Use this when both local and remote changed and you want an interactive merge flow.
148
-
149
- ```bash
150
- smbls sync
151
- ```
152
-
153
- ### Collaborate (watch + live syncing)
154
-
155
- Run in a separate terminal while you work to enable a collaboration workflow (watching local changes and syncing).
156
-
157
- ```bash
158
- smbls collab
159
- ```
160
-
161
- ---
162
-
163
- ## File assets (uploads/downloads) linked to a project
164
-
165
- These commands manage the project `files` map (upload, download, list, remove).
166
-
167
- ```bash
168
- smbls files list
169
- smbls files upload
170
- smbls files download
171
- smbls files rm
172
- ```
173
-
174
- ---
175
-
176
- ## If something fails: quick fixes
177
-
178
- - **Auth required / access denied**: run `smbls login` again.
179
- - **Missing project key**: ensure `symbols.json` has a `key` or link the folder via `smbls project link .`.
180
- - **Need more detail**: add `--verbose` where supported (for example on `project create`).
181
-
182
- ---
183
-
184
- ## Alternative: `smbls create` (simple scaffolding)
185
-
186
- If you only want the starter project and don’t care about platform linking yet:
187
-
188
- ```bash
189
- smbls create my-app
190
- cd my-app
191
- npm start
192
- ```
193
-
194
- ---
195
-
196
- ## Suggested “team” defaults (optional)
197
-
198
- - **Commit `symbols.json`**: it’s the minimal project identity/config used by the CLI.
199
- - **Decide on committing `.symbols/config.json`**: it contains the project link (`projectId`, `projectKey`, `apiBaseUrl`, `branch`). Some teams commit it for consistency; others treat it as local-only.
200
-
201
- ---
202
-
203
- ## Symbols Feedback Conventions
204
-
205
- Supplemental conventions are merged into [CLAUDE.md](CLAUDE.md).