@ontrails/commander 1.0.0-beta.18 → 1.0.0-beta.19
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/CHANGELOG.md +29 -0
- package/README.md +2 -3
- package/package.json +3 -3
- package/src/surface.ts +6 -0
- package/src/to-commander.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @ontrails/commander
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e41c382: Document beta-channel install guidance in package and adapter README install snippets so consumers use explicit `@beta` (or pinned `1.0.0-beta.N`) tags instead of accidental `latest` resolution during the prerelease line. Adds the policy doc at `docs/releases/beta-channel-policy.md`, prints both `latest` and `beta` dist-tags in `bun run publish:registry-check`, and aligns plugin/skill install snippets.
|
|
8
|
+
- ed5926b: Add missing TSDoc for public adapter and sink boundary types.
|
|
9
|
+
- 1eb5bdc: Rename first-class trail composition from the `cross` API family to the `compose` family across core contracts, testing helpers, topo projections, Warden rules, CLI scaffolds, and docs. `composes`, `ctx.compose`, `composeInput`, and `Compose*` type names are now the public authoring vocabulary; topo persistence migrates legacy composition rows and graph keys forward.
|
|
10
|
+
- Updated dependencies [e41c382]
|
|
11
|
+
- Updated dependencies [a2f1825]
|
|
12
|
+
- Updated dependencies [a2f1825]
|
|
13
|
+
- Updated dependencies [1eb5bdc]
|
|
14
|
+
- Updated dependencies [f8d80b9]
|
|
15
|
+
- Updated dependencies [846a597]
|
|
16
|
+
- Updated dependencies [223aaad]
|
|
17
|
+
- Updated dependencies [3125f4d]
|
|
18
|
+
- Updated dependencies [2494dc6]
|
|
19
|
+
- Updated dependencies [2d53717]
|
|
20
|
+
- Updated dependencies [16cb740]
|
|
21
|
+
- Updated dependencies [8894ecb]
|
|
22
|
+
- Updated dependencies [fdf7ec9]
|
|
23
|
+
- Updated dependencies [92e709b]
|
|
24
|
+
- Updated dependencies [d76be13]
|
|
25
|
+
- Updated dependencies [84f56a5]
|
|
26
|
+
- Updated dependencies [431b04c]
|
|
27
|
+
- Updated dependencies [5d88104]
|
|
28
|
+
- Updated dependencies [f04a9ef]
|
|
29
|
+
- @ontrails/core@1.0.0-beta.19
|
|
30
|
+
- @ontrails/cli@1.0.0-beta.19
|
|
31
|
+
|
|
3
32
|
## 1.0.0-beta.18
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -20,8 +20,7 @@ import { graph } from './app';
|
|
|
20
20
|
const program = createProgram(graph, { name: 'myapp' });
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
For lower-level adapter wiring, derive the command model with `@ontrails/cli`
|
|
24
|
-
and materialize it with `toCommander()`:
|
|
23
|
+
For lower-level adapter wiring, derive the command model with `@ontrails/cli` and materialize it with `toCommander()`:
|
|
25
24
|
|
|
26
25
|
```typescript
|
|
27
26
|
import { deriveCliCommands } from '@ontrails/cli';
|
|
@@ -39,7 +38,7 @@ const program = toCommander(commands.value, { name: 'myapp' });
|
|
|
39
38
|
## Installation
|
|
40
39
|
|
|
41
40
|
```bash
|
|
42
|
-
bun add @ontrails/cli @ontrails/commander
|
|
41
|
+
bun add @ontrails/cli@beta @ontrails/commander@beta
|
|
43
42
|
```
|
|
44
43
|
|
|
45
44
|
## Migration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontrails/commander",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.19",
|
|
4
4
|
"files": [
|
|
5
5
|
"src/**/*.ts",
|
|
6
6
|
"!src/**/__tests__/**",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ontrails/cli": "^1.0.0-beta.
|
|
26
|
-
"@ontrails/core": "^1.0.0-beta.
|
|
25
|
+
"@ontrails/cli": "^1.0.0-beta.19",
|
|
26
|
+
"@ontrails/core": "^1.0.0-beta.19",
|
|
27
27
|
"commander": "^14.0.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
package/src/surface.ts
CHANGED
|
@@ -23,6 +23,9 @@ import { toCommander } from './to-commander.js';
|
|
|
23
23
|
// Options
|
|
24
24
|
// ---------------------------------------------------------------------------
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Options for creating Commander CLI surfaces from a Trails topo.
|
|
28
|
+
*/
|
|
26
29
|
export interface CreateProgramOptions extends BaseSurfaceOptions {
|
|
27
30
|
readonly createContext?:
|
|
28
31
|
| (() => TrailContextInit | Promise<TrailContextInit>)
|
|
@@ -38,6 +41,9 @@ export interface CreateProgramOptions extends BaseSurfaceOptions {
|
|
|
38
41
|
readonly version?: string | undefined;
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Result returned by running the Commander surface bootstrap.
|
|
46
|
+
*/
|
|
41
47
|
export interface SurfaceCliResult {
|
|
42
48
|
readonly exitCode: number;
|
|
43
49
|
}
|
package/src/to-commander.ts
CHANGED
|
@@ -11,6 +11,9 @@ import { Command, InvalidArgumentError, Option } from 'commander';
|
|
|
11
11
|
// Options
|
|
12
12
|
// ---------------------------------------------------------------------------
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Options used when constructing a Commander program from trail metadata.
|
|
16
|
+
*/
|
|
14
17
|
export interface ToCommanderOptions {
|
|
15
18
|
description?: string | undefined;
|
|
16
19
|
name?: string | undefined;
|