@lotics/cli 0.205.1 → 0.205.2
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 +7 -4
- package/README.md +9 -6
- package/dist/src/cli.js +515 -263
- package/dist/src/client.d.ts +6 -1
- package/dist/src/client.js +9 -2
- package/docs/building_an_app.md +23 -0
- package/docs/cli_reference.md +4 -4
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -95,12 +95,15 @@ response there is *not* evidence the subcommand is absent. To find out whether s
|
|
|
95
95
|
findings. An unrecognized status exits 0 — the list is an allowlist of failure, so a status added
|
|
96
96
|
later never turns a working script red — and a parked run (`awaiting_input`) is not a failure.
|
|
97
97
|
- **An app that PUBLISHES an API turns every later manifest write into a release.** `lotics app api
|
|
98
|
-
publish` snapshots what the app's queries and
|
|
98
|
+
publish` snapshots what the app's queries, workflows and agents promise to callers outside it — a
|
|
99
99
|
customer's own site or server, which nobody here can redeploy. From then on an additive change
|
|
100
100
|
re-snapshots silently and a breaking one is REFUSED, naming each change;
|
|
101
|
-
`--acknowledge-breaking-api` (on `app deploy`, `app query set`, `app workflow set`,
|
|
102
|
-
is the answer that carries it out and snapshots the break as a new
|
|
103
|
-
publishes nothing is untouched by any of it.
|
|
101
|
+
`--acknowledge-breaking-api` (on `app deploy`, `app query set`, `app workflow set`,
|
|
102
|
+
`app agent set`, `app upgrade`) is the answer that carries it out and snapshots the break as a new
|
|
103
|
+
contract version. An app that publishes nothing is untouched by any of it.
|
|
104
|
+
- **Exposure is per app, all or nothing** — a public share or a key reaches every alias an app
|
|
105
|
+
declares, so what outsiders may call is a second app over the same tables, scaffolded with
|
|
106
|
+
`lotics app create "<name>" --api` ([docs/building_an_app.md](./docs/building_an_app.md) § 9).
|
|
104
107
|
- **`--print-created` / `--cleanup` on any call that reports `side_effects`.** The first prints the
|
|
105
108
|
records created plus a paste-ready cleanup plan and what cannot be auto-undone; the second runs
|
|
106
109
|
those deletes (records only — never files, integrations or notifications). Neither is a rollback.
|
package/README.md
CHANGED
|
@@ -341,6 +341,8 @@ lotics knowledge rm kdc_... # archive
|
|
|
341
341
|
```bash
|
|
342
342
|
# Scaffold / pull / deploy a Vite+React+TS app project
|
|
343
343
|
lotics app create "Sales Desk" # scaffold + deploy v1
|
|
344
|
+
lotics app create "Orders API" --api # no screens: its declarations are the whole surface,
|
|
345
|
+
# so nothing is built and nothing is deployed
|
|
344
346
|
lotics app pull app_... # bootstrap an existing app locally (incl. .lotics/*)
|
|
345
347
|
lotics app deploy -m "Add quote drawer" # typecheck + build + upload a new version
|
|
346
348
|
lotics app versions # deploy history: version, when, who, -m message (* = live)
|
|
@@ -353,13 +355,14 @@ lotics app versions app_... # ...for any app, without pulling it
|
|
|
353
355
|
lotics app upgrade # the app this directory's manifest names
|
|
354
356
|
lotics app upgrade app_... # ...for any app, without pulling it first
|
|
355
357
|
|
|
356
|
-
# The app's API: what its declared queries and
|
|
357
|
-
# OUTSIDE the app — a customer's own site or server. Publishing snapshots
|
|
358
|
-
# promise as a numbered contract; from then on a manifest write that would
|
|
359
|
-
# it is refused and every breaking change is named, unless the write carries
|
|
358
|
+
# The app's API: what its declared queries, workflows and agents promise to a
|
|
359
|
+
# caller OUTSIDE the app — a customer's own site or server. Publishing snapshots
|
|
360
|
+
# that promise as a numbered contract; from then on a manifest write that would
|
|
361
|
+
# break it is refused and every breaking change is named, unless the write carries
|
|
360
362
|
# --acknowledge-breaking-api (app deploy / app query set / app workflow set /
|
|
361
|
-
# app upgrade). A query that does not name the columns it returns
|
|
362
|
-
# publish: those field names are the table's, not the app's to
|
|
363
|
+
# app agent set / app upgrade). A query that does not name the columns it returns
|
|
364
|
+
# is refused at publish: those field names are the table's, not the app's to
|
|
365
|
+
# promise.
|
|
363
366
|
lotics app api publish # snapshot the contract; prints the version + warnings
|
|
364
367
|
lotics app api status # is one published, and which version callers hold
|
|
365
368
|
lotics app api spec -o api.openapi.json # the OpenAPI 3.1 document, for the consumer's generator
|