anbaric 1.8.0 → 1.9.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 (2) hide show
  1. package/README.md +21 -12
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -105,11 +105,13 @@ factories, so the same application runs in several ways without code changes.
105
105
  in-memory and jobs progress automatically. Running the program with
106
106
  `npx tsx src/main.ts` is a complete local run, suitable for development and
107
107
  testing.
108
- - **Anbaric Cloud.** `anbaric deploy` packages the application and runs it on
109
- the hosted platform. The platform injects the configuration that points the
110
- factories at platform-backed persistence, queueing, documents and secrets;
111
- application code is unchanged. Authentication, job inspection and updates are
112
- available through the CLI.
108
+ - **Anbaric Cloud.** `anbaric app deploy` packages the application (source only, no
109
+ `node_modules`) and runs it on the hosted platform. The platform installs the
110
+ application's own dependencies as it builds the image, so any npm package the
111
+ application imports works when deployed. The platform injects the configuration
112
+ that points the factories at platform-backed persistence, queueing, documents
113
+ and secrets; application code is unchanged. Authentication, job inspection and
114
+ updates are available through the CLI.
113
115
  - **Self-hosted.** The [`anbaric-hosting`](https://npmjs.com/package/anbaric-hosting)
114
116
  package runs the platform — the API, dispatcher, build layer and app proxy —
115
117
  on infrastructure you operate, backed by Postgres.
@@ -166,15 +168,22 @@ principal commands are:
166
168
  | Command | Purpose |
167
169
  | --- | --- |
168
170
  | `anbaric login` / `anbaric logout` | authorize this terminal against a platform, or revoke it |
169
- | `anbaric configure [dir]` | set an application's name and internal port |
170
- | `anbaric deploy [dir]` | deploy an application and wait until it is live |
171
- | `anbaric update [dir]` | deploy over a running application without prompting |
172
171
  | `anbaric apps` | list deployed applications |
172
+ | `anbaric app configure` | set an application's name and internal port |
173
+ | `anbaric app deploy` | deploy an application and wait until it is live |
174
+ | `anbaric app update` | deploy over a running application without prompting |
175
+ | `anbaric app status <name>` | show an application's deploy state and whether it is up |
176
+ | `anbaric app tail <name>` | stream an application's runtime logs |
177
+ | `anbaric app tear-down <name>` | stop and remove a deployed application |
173
178
  | `anbaric state-machines` | list registered state machines |
174
- | `anbaric job list [state-machine-id]` | list jobs |
175
- | `anbaric job watch <job-id>` | follow a job's state as it changes |
176
- | `anbaric job set-state <job-id> <state>` | move a job to a state and re-queue it |
177
- | `anbaric job update <job-id> <key=value ...>` | change job properties and re-queue |
179
+ | `anbaric jobs list [state-machine-id]` | list jobs |
180
+ | `anbaric jobs watch <job-id>` | follow a job's state as it changes |
181
+ | `anbaric jobs set-state <job-id> <state>` | move a job to a state and re-queue it |
182
+ | `anbaric jobs update <job-id> <key=value ...>` | change job properties and re-queue |
183
+
184
+ The `app configure`/`deploy`/`update` commands act on the application for the
185
+ current project, located by walking up to the nearest `package.json`, so they
186
+ run from anywhere inside it.
178
187
 
179
188
  Every command accepts flags (such as `--environment`, `--tenant`, `--name`,
180
189
  `--port`, `--yes`) that supply the answers a prompt would otherwise ask for, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anbaric",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Everything needed to write an Anbaric app: state machines, jobs, document and secret stores, local in-memory implementations and the Anbaric Cloud clients",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -10,9 +10,9 @@
10
10
  "src"
11
11
  ],
12
12
  "dependencies": {
13
- "anbaric-impl-cloud": "^1.8.0",
14
- "anbaric-data-store": "^1.8.0",
15
- "anbaric-state-machine": "^1.8.0",
16
- "anbaric-tsapi": "^1.8.0"
13
+ "anbaric-impl-cloud": "^1.9.0",
14
+ "anbaric-data-store": "^1.9.0",
15
+ "anbaric-state-machine": "^1.9.0",
16
+ "anbaric-tsapi": "^1.9.0"
17
17
  }
18
18
  }