@samva/cli 0.5.0 → 0.6.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.
- package/AGENTS.md +2 -0
- package/README.md +5 -2
- package/dist/bin.mjs +1122 -848
- package/package.json +8 -8
package/AGENTS.md
CHANGED
|
@@ -57,6 +57,8 @@ repository. `samva templates clone <project-or-template-id>` clones an existing
|
|
|
57
57
|
repository-local credential helper that exchanges Samva authorization for a short-lived,
|
|
58
58
|
repository-scoped credential; the token is never stored in the remote URL or Git config. Normal
|
|
59
59
|
`git fetch`, `git pull`, `git add`, `git commit`, and `git push` remain the synchronization commands.
|
|
60
|
+
A pushed commit is picked up on the next hosted workspace open; independent draft edits rebase,
|
|
61
|
+
and overlapping edits produce explicit conflicts.
|
|
60
62
|
Install from the project's lockfile (`bun install --frozen-lockfile` or `npm ci`) before `samva templates check` or `samva templates build`, then
|
|
61
63
|
publish a clean, pushed commit with `samva templates publish`. Publish checks that the selected
|
|
62
64
|
commit is an ancestor of the fetched `origin/<default-branch>` and creates an immutable receipt; it
|
package/README.md
CHANGED
|
@@ -202,8 +202,11 @@ with relative asset URLs, plus `<fixture>.sms.txt` and `<fixture>.whatsapp.json`
|
|
|
202
202
|
Like `check` and `build`, it treats the current directory as the project: its `theme.css` themes
|
|
203
203
|
the export and `samva:brand` resolves live or from `.samva/brands`.
|
|
204
204
|
|
|
205
|
-
`git fetch`, `git pull`, `git add`, `git commit`, and `git push` are ordinary Git operations.
|
|
206
|
-
|
|
205
|
+
`git fetch`, `git pull`, `git add`, `git commit`, and `git push` are ordinary Git operations.
|
|
206
|
+
The next hosted workspace open picks up a pushed commit, rebases independent draft edits, and
|
|
207
|
+
records explicit conflicts for overlapping edits.
|
|
208
|
+
|
|
209
|
+
The CLI's `init` and `clone` commands configure the repository-local helper; `publish` does not push
|
|
207
210
|
for you. It accepts a clean commit that is reachable from the fetched `origin/<default-branch>`
|
|
208
211
|
and publishes that exact commit. A clone records its project in `samva.projectId`; pass
|
|
209
212
|
`--project-id` from a checkout that `samva templates init` or `clone` did not create.
|