@openupstream/cli 0.2.0 → 0.2.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/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  `oup` — the openupstream command line tool. Built on `@openupstream/sdk`.
4
4
 
5
+ The dashboard shows what is between the two `docs` comments below as its
6
+ `/cli` page (`dashboard/src/lib/docs.ts`): paragraphs, one level of list
7
+ items, code blocks and inline code only; a test of the dashboard fails on
8
+ anything else.
9
+
10
+ <!-- docs:start -->
11
+
5
12
  ```sh
6
13
  npm i -g @openupstream/cli
7
14
  oup login
@@ -119,7 +126,9 @@ oup site deploy dist --bucket my-site
119
126
  `index.html` `no-cache`, the rest five minutes.
120
127
 
121
128
  In CI, set `OUP_API_KEY` to a madAuth API key instead of signing in, and
122
- `OUP_API_URL` for another API than `https://openupstream.com/api`.
129
+ `OUP_API_URL` for another API than `https://console.openupstream.com/api`.
130
+
131
+ <!-- docs:end -->
123
132
 
124
133
  `src/oidc.ts` is the device grant and refresh, `src/session.ts` the token
125
134
  for each call, `src/deploy.ts` the site deploy (`planDeploy` is pure),
@@ -137,6 +146,7 @@ Merge, then tag that commit `cli-v<version>` and push the tag; only admins
137
146
  may. The workflow `.github/workflows/cli-release.yml` waits in the
138
147
  Environment `npm-release` until a maintainer approves the run on GitHub,
139
148
  then checks that the tag names the version and that the SDK it needs is
140
- on npm, builds, tests, installs the packed CLI and runs `oup version`, and
149
+ on npm (waiting up to five minutes for its file, which npm serves a little
150
+ after it lists a new version), builds, tests, installs the packed CLI and runs `oup version`, and
141
151
  publishes with npm trusted publishing and provenance (ARCHITECTURE.md,
142
152
  decision 80).
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@
28
28
  * Planned (ARCHITECTURE.md build order): oup bucket, oup routes, oup usage.
29
29
  *
30
30
  * `OUP_API_KEY` (a madAuth API key) replaces `oup login`, e.g. in CI, with
31
- * `OUP_API_URL` for another API than https://openupstream.com/api.
31
+ * `OUP_API_URL` for another API than https://console.openupstream.com/api.
32
32
  */
33
33
  import { spawn } from 'node:child_process';
34
34
  import { parseArgs } from 'node:util';
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * The CLI's own version, as in package.json; the release workflow checks
3
3
  * that the tag `cli-v<version>` names it (ARCHITECTURE.md, decision 80).
4
4
  */
5
- export declare const CLI_VERSION = "0.2.0";
5
+ export declare const CLI_VERSION = "0.2.2";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  * The CLI's own version, as in package.json; the release workflow checks
3
3
  * that the tag `cli-v<version>` names it (ARCHITECTURE.md, decision 80).
4
4
  */
5
- export const CLI_VERSION = '0.2.0';
5
+ export const CLI_VERSION = '0.2.2';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openupstream/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "oup, the openupstream command line tool",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -36,6 +36,6 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@aws-sdk/client-s3": "^3.1161.0",
39
- "@openupstream/sdk": "^0.3.0"
39
+ "@openupstream/sdk": "^0.4.0"
40
40
  }
41
41
  }