@typeship-ax/cli 0.9.1 → 0.20.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 +9 -4
- package/README.md +4 -4
- package/api.json +6257 -589
- package/api.md +475 -81
- package/dist/cli-agent.d.ts +5 -5
- package/dist/cli-agent.d.ts.map +1 -1
- package/dist/cli-agent.js +14 -10
- package/dist/cli.js +151 -75
- package/dist/core/http.d.ts +3 -2
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +18 -6
- package/dist/errors.d.ts +17 -10
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +24 -15
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/dist/ops.d.ts +4 -0
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +45 -31
- package/dist/polling-login.d.ts.map +1 -1
- package/dist/polling-login.js +11 -1
- package/dist/resources/account.d.ts +4 -4
- package/dist/resources/account.d.ts.map +1 -1
- package/dist/resources/account.js +10 -5
- package/dist/resources/api-keys.d.ts +40 -14
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +45 -13
- package/dist/resources/definition-revisions.d.ts +35 -18
- package/dist/resources/definition-revisions.d.ts.map +1 -1
- package/dist/resources/definition-revisions.js +43 -15
- package/dist/resources/definitions.d.ts +21 -6
- package/dist/resources/definitions.d.ts.map +1 -1
- package/dist/resources/definitions.js +16 -3
- package/dist/resources/generate.d.ts +44 -15
- package/dist/resources/generate.d.ts.map +1 -1
- package/dist/resources/generate.js +55 -13
- package/dist/resources/generations.d.ts +14 -6
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +26 -5
- package/dist/resources/projects.d.ts +106 -53
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +78 -31
- package/dist/resources/targets.d.ts +285 -22
- package/dist/resources/targets.d.ts.map +1 -1
- package/dist/resources/targets.js +408 -10
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +175 -102
- package/dist/types.d.ts +2162 -134
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +99 -2
- package/package.json +3 -3
- package/src/cli-agent.ts +17 -13
- package/src/cli.ts +138 -70
- package/src/core/http.ts +17 -6
- package/src/errors.ts +25 -15
- package/src/index.ts +9 -5
- package/src/ops.ts +49 -31
- package/src/polling-login.ts +10 -1
- package/src/resources/account.ts +11 -4
- package/src/resources/api-keys.ts +84 -13
- package/src/resources/definition-revisions.ts +74 -16
- package/src/resources/definitions.ts +28 -4
- package/src/resources/generate.ts +78 -13
- package/src/resources/generations.ts +31 -4
- package/src/resources/projects.ts +141 -39
- package/src/resources/targets.ts +756 -13
- package/src/schemas.ts +176 -103
- package/src/types.ts +2372 -189
package/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# typeship — agent context
|
|
2
2
|
|
|
3
|
-
This package contains the generated CLI for **typeship** (API v1.0.0, package v0.
|
|
3
|
+
This package contains the generated CLI for **typeship** (API v1.0.0, package v0.20.0).
|
|
4
4
|
|
|
5
5
|
Resolve an OpenAPI or GraphQL Definition, diagnose it, and keep every
|
|
6
|
-
selected
|
|
6
|
+
selected CLI, MCP, and SDK Target current.
|
|
7
7
|
|
|
8
8
|
Every operation but one requires a bearer credential: an organization
|
|
9
9
|
API key from the console, or an OAuth access token carrying the operation's
|
|
@@ -12,9 +12,14 @@ consent. OAuth grants cannot switch organizations after consent. A browser
|
|
|
12
12
|
session is not a credential for this API. The exception is POST /generate,
|
|
13
13
|
which works anonymously with the free plan's limits.
|
|
14
14
|
|
|
15
|
+
Examples use Parcel, a fictional delivery service. Replace its domains,
|
|
16
|
+
repository names, and resource identifiers with your own. The hosted
|
|
17
|
+
petstore Definition is a runnable sample.
|
|
18
|
+
|
|
15
19
|
## Ground rules
|
|
16
|
-
-
|
|
17
|
-
-
|
|
20
|
+
- Maintaining this package: when its repository receives reviewed regeneration pull requests, committed customizations are preserved and edits that overlap a generated change stop for review. Regenerating into a directory replaces its files.
|
|
21
|
+
- A custom file ships only when the package manifest, exports, build, and tests include it. Add a package check for every custom build or test step.
|
|
22
|
+
- Zero runtime dependencies; the program runs on Node.js 20+ and platform `fetch`.
|
|
18
23
|
- `api.md` is the command and flag reference; `api.json` is the machine-readable operation, schema, safety, and example contract. Read them before guessing.
|
|
19
24
|
- Start with the local build or installation instructions in `README.md`. Generation does not publish a registry package.
|
|
20
25
|
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
CLI for typeship. [API reference](./api.md)
|
|
4
4
|
|
|
5
|
-
Generated from the OpenAPI spec by [typeship](https://typeship.dev).
|
|
5
|
+
Generated from the OpenAPI spec by [typeship](https://typeship.dev).
|
|
6
6
|
|
|
7
|
-
- **Zero runtime dependencies** — built on the platform `fetch` in Node
|
|
7
|
+
- **Zero runtime dependencies** — built on the platform `fetch` in Node 20+
|
|
8
8
|
- **Spec-native CLI** — every operation is a command with typed flags, stable JSON, help, and exit codes
|
|
9
9
|
|
|
10
10
|
## Build from source
|
|
@@ -17,14 +17,14 @@ npm run build
|
|
|
17
17
|
node dist/cli.js --help
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Requires Node.js
|
|
20
|
+
Requires Node.js 20+. The package is ESM.
|
|
21
21
|
|
|
22
22
|
## Install a published package
|
|
23
23
|
|
|
24
24
|
Generation does not publish a package. Before using the registry command below, confirm `name` and `version` in `package.json`, publish under a name you control, and verify that release is available on npm.
|
|
25
25
|
|
|
26
26
|
```sh
|
|
27
|
-
npm install --global @typeship-ax/cli@0.
|
|
27
|
+
npm install --global @typeship-ax/cli@0.20.0
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## CLI
|