@cobol-ts/cli-init 0.0.57 → 1.0.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/README.md CHANGED
@@ -6,6 +6,19 @@ Owns staging, template installation, key preparation and initial project verific
6
6
 
7
7
  The template's `.xlsx.base64` workbooks and other encoded assets are decoded into their normal filenames during staging, before extraction or project validation. Edit the encoded template source when updating a bundled workbook; the generated project contains ordinary `.xlsx` files. Do not copy old raw spreadsheet duplicates into the template.
8
8
 
9
+ ### Create a tutorial project
10
+
11
+ ```sh
12
+ cobolts init --directory hello-bank
13
+ cobolts serve --demo --directory hello-bank
14
+ ```
15
+
16
+ `--directory` (or `-d`) selects the destination directly; missing directories
17
+ are created during publication, not during staging or a dry run. Without it,
18
+ `init` uses the current directory. It never searches upwards for an existing
19
+ project. Existing managed files still require `--force`. Demo mode is only for
20
+ disposable synthetic projects.
21
+
9
22
  ### Destination-independent initialisation
10
23
 
11
24
  `initialiseDestination` accepts `InitDestination<T>` and a scoped `WithPreparedInit<T>`.
package/dist/src/init.js CHANGED
@@ -53,7 +53,8 @@ async function prepareInitProject(projectRoot, services) {
53
53
  }
54
54
  function addInit(root, services, options, templateDirectory = init_assets_1.initTemplateDirectory) {
55
55
  root.command('init')
56
- .description('Create a self-contained COBOL-TS tutorial project')
56
+ .description('Create a self-contained COBOL-TS tutorial project in --directory (or the current directory)')
57
+ .addHelpText('after', '\nExamples:\n cobolts init --directory hello-bank\n cobolts serve --demo --directory hello-bank\n\nInit creates missing directories, without searching upwards. Use --dry-run to preview.\n')
57
58
  .allowExcessArguments(false)
58
59
  .option('--force', 'Replace existing project template and derived files; preserve unrelated files')
59
60
  .option('--dry-run', 'Validate the template and report changes without modifying the destination')
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init.ts"],"names":[],"mappings":";;AA2BA,gDA2BC;AAED,0BAsBC;AA7ED,yCAAsD;AAMtD,uDAAkD;AAClD,yE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AAC,SAAS,IAAI,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QACxE,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAA;QACpC,QAAQ,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,sBAAsB,MAAM,EAAE,CAAC,CAAA;QAC5F,MAAM,IAAI,GAAG,MAAM,IAAA,gCAAiB,EAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EACxD,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE;YACzB,MAAM,IAAA,+BAAiB,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;YACjE,MAAM,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QAC7C,CAAC,EACD,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,eAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;QAChF,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,MAAM,+BAA+B,CAAC,CAAC,CAAC,eAAe,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAA;QAC3H,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,QAAQ,CAAC,MAAM,CAAC,sFAAsF,CAAC,CAAA;IAC9H,CAAC,CAAC,CAAA;AACV,CAAC"}
@@ -1,4 +1,6 @@
1
1
  # Application settings, independent of the discovery and execution pipelines.
2
+ validations:
3
+ directory: validations
2
4
  security:
3
5
  allowedRoots:
4
6
  - .
@@ -0,0 +1,18 @@
1
+ # Defaults for jcl create. Graph paths are relative to .cobolts.
2
+ version: 1
3
+ graphs:
4
+ strategy: project
5
+ execution: graph.yaml
6
+ # By default compose the latest successful identification experiments.
7
+ workers:
8
+ strategy: single
9
+ data:
10
+ strategy: first
11
+ count: 300
12
+ validation:
13
+ strategy: default
14
+ epsilon: 0.01
15
+ reporting:
16
+ strategy: standard
17
+ summary:
18
+ strategy: standard
package/init/README.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Hello Bank — COBOL-TS tutorial
2
2
 
3
- This project demonstrates the complete path from physical COBOL records to customer-level characteristics. No application code, database or external service is required. Run the commands below from this project directory with the COBOL-TS CLI available on your PATH.
3
+ This project demonstrates the complete path from physical COBOL records to customer-level characteristics. No application code or database is required. The offline characteristic demo needs no external service; fresh AI identification may require a configured provider. Run the commands below from your initialised project directory.
4
+
5
+ ## Getting started — install and start
6
+
7
+ Install the CLI globally using npm (Node.js and npm must already be installed). In a terminal, initialise and start a new disposable project. `init --directory` creates the directory if it does not exist:
8
+
9
+ ```sh
10
+ npm install -g @cobol-ts/cobolts
11
+ cobolts init --directory hello-bank
12
+ cobolts serve --demo --directory hello-bank
13
+ ```
14
+
15
+ Open the URL printed by the server. Keep that terminal running. In a second terminal, from the directory where you ran setup, run `cd hello-bank` once for the remaining commands. If you already have an initialised project, skip `init` and use its path with `--directory` when starting the server. Demo mode exposes destructive reset controls and crypto demonstration actions; use it only with synthetic, disposable projects.
4
16
 
5
17
  ## 1. Inspect the project and its input
6
18
 
@@ -105,22 +117,21 @@ Both compositions now declare `referenceData: {sicCodes: {keyPath: sicCode}}`. P
105
117
 
106
118
  ### Explore three months of historical production observations
107
119
 
108
- The checked-in `modules/examples/init/test_data` fixture (when the historical test-data patch has been applied) contains six daily and three monthly deliveries for the same five customers, IDs 1001–1005. From the monorepo root, use the existing local crypto keys and publish the reference package once, then the complete delivery tree:
120
+ The bundled `test_data` fixture contains six daily and three monthly deliveries for the same five customers, IDs 1001–1005. From the initialised project directory, use the existing local crypto keys and publish the reference package once, then the complete delivery tree:
109
121
 
110
122
  ```powershell
111
- $demo = 'modules/examples/init'
112
- yarn cobolts -d $demo oracle import --kind reference
113
- yarn cobolts -d $demo oracle verify --kind reference
114
- yarn cobolts -d $demo oracle import-many --source "$demo/test_data" --verify
115
- yarn cobolts -d $demo oracle list --kind production
116
- yarn cobolts -d $demo display accounts --composition productionDaily --date 2026-01-01 --all
117
- yarn cobolts -d $demo display accounts --composition productionDaily --date 2026-03-14 --all
118
- yarn cobolts -d $demo oracle view oracleMonthly.jsonl --composition productionMonthly --date 2026-03-31
123
+ cobolts oracle import --kind reference
124
+ cobolts oracle verify --kind reference
125
+ cobolts oracle import-many --source test_data --verify
126
+ cobolts oracle list --kind production
127
+ cobolts display accounts --composition productionDaily --date 2026-01-01 --all
128
+ cobolts display accounts --composition productionDaily --date 2026-03-14 --all
129
+ cobolts oracle view oracleMonthly.jsonl --composition productionMonthly --date 2026-03-31
119
130
  ```
120
131
 
121
132
  Skip reference publication if the correct package already exists. `import-many` discovers the configured composition and actual date from the two directory levels; it does not synthesise absent dates or calculate characteristics. A fresh repository should contain nine production runs, each with four physical members, plus one separately published reference package. Use `--force` only for deliberate replacement. In Crypto Explorer, refresh and select any dated package; enable `cobolts serve --crypto-explorer` to decrypt an authenticated preview. No change to `data.yaml` is necessary for the dated CLI commands.
122
133
 
123
- Compare Alice (1001): C0110 changes from 1800 on 1 January to -700 on 14 March and -1500 on 31 March. C0330 changes from 62010 to 62020 on 1 February, then back on 31 March. The monthly balance window advances on 31 January, 28 February and 31 March only; C0240 (integer average) is 1733, 1366 and 566 at those executions. The JSONL reference results are independently calculated synthetic observations using the same initial state and shared state across all nine events. They are not captured production evidence. An individual dated CEL execution using a fresh seed is not a replay of that history. Customer-major compaction and historical validation replay remain future steps.
134
+ Compare Alice (1001): C0110 changes from 1800 on 1 January to -700 on 14 March and -1500 on 31 March. C0330 changes from 62010 to 62020 on 1 February, then back on 31 March. The monthly balance window advances on 31 January, 28 February and 31 March only; C0240 (integer average) is 1733, 1366 and 566 at those executions. The JSONL reference results are independently calculated synthetic observations using the same initial state and shared state across all nine events. They are not captured production evidence. An individual dated CEL execution using a fresh seed is not a replay of that history. Use the Optimised Validation Dataset and historical replay below to compare the complete history.
124
135
 
125
136
  ### Discover the SIC reference characteristics
126
137
 
@@ -214,8 +225,8 @@ Edit a description in an Excel workbook and re-extract. Edit a CEL expression an
214
225
  Inspect the configured runners without credentials or AI calls:
215
226
 
216
227
  ```powershell
217
- yarn cobolts -d modules/examples/init ai runner list
218
- yarn cobolts -d modules/examples/init ai runner show reviewed-generation
228
+ cobolts ai runner list
229
+ cobolts ai runner show reviewed-generation
219
230
  ```
220
231
 
221
232
  Omit the runner name from `show` to inspect the active runner. The output includes the definition, agent and tool bindings and effective configured message budget.
@@ -229,7 +240,7 @@ Choose `reviewed-generation` in Characteristic Explorer (Now) to run the creator
229
240
 
230
241
  The optional `prompts.globalHints` path in `.cobolts/ai.yaml` points to a project-wide Markdown file (relative to `.cobolts`). Hello Bank includes `prompts/global-hints.md`: executions are per customer, `input.accounts` may be empty or contain many accounts, and customer balance means the sum across those accounts. These facts apply to all characteristics, not only one SME comment.
231
242
 
232
- The same text is included in every configured agent's system prompt after the shared graph specification and before its role instructions. Omit `globalHints` if no such file is needed; a configured file must exist. Recorded experiments snapshot the file, so editing it affects new experiments, not old ones. Inspect it in Config Explorer → Use AI to create initial characteristics, or the agent's Shared knowledge tab. From the repository root, inspect the assembled creator request with `yarn cobolts -d modules/examples/init ai prompt C0210`. Use only approved knowledge in prompts sent to external providers.
243
+ The same text is included in every configured agent's system prompt after the shared graph specification and before its role instructions. Omit `globalHints` if no such file is needed; a configured file must exist. Recorded experiments snapshot the file, so editing it affects new experiments, not old ones. Inspect it in Config Explorer → Use AI to create initial characteristics, or the agent's Shared knowledge tab. From the project directory, inspect the assembled creator request with `cobolts ai prompt C0210`. Use only approved knowledge in prompts sent to external providers.
233
244
 
234
245
  ### AI graph authoring specification
235
246
 
@@ -241,21 +252,21 @@ The same text is included in every configured agent's system prompt after the sh
241
252
  Use the default runner (offline mock in this example), or specify `--runner <name>`:
242
253
 
243
254
  ```powershell
244
- yarn cobolts -d modules/examples/init resolution list --failure
245
- yarn cobolts -d modules/examples/init resolution sweep
246
- yarn cobolts -d modules/examples/init resolution list --success
247
- yarn cobolts -d modules/examples/init resolution compose
255
+ cobolts resolution list --failure
256
+ cobolts resolution sweep
257
+ cobolts resolution list --success
258
+ cobolts resolution compose
248
259
  ```
249
260
 
250
261
  `ai.yaml` controls `experiments.concurrency` (4 in this example; default 1) and `experiments.maxMessages`. One sweep attempts each unresolved output once; it refreshes resolutions without replacing graph.yaml by default. To run the sweep and write the full composed graph in one command:
251
262
 
252
263
  ```powershell
253
- yarn cobolts -d modules/examples/init resolution sweep --write
264
+ cobolts resolution sweep --write
254
265
  ```
255
266
 
256
267
  The write happens once after all experiments finish; unresolved outputs remain explicit failure nodes.
257
268
 
258
- ## Prepare validation dataset
269
+ ## Build the Optimised Validation Dataset
259
270
 
260
271
  After publishing the nine historical deliveries, inspect the monocline and prepare the customer-major dataset:
261
272
 
@@ -280,11 +291,11 @@ Run validation to compare all published characteristics with the calculated outp
280
291
 
281
292
  ## Reconstruct missing history
282
293
 
283
- In Config Explorer follow Validation → Prepare validation dataset → Reconstruct missing history. When we do not have the original accumulator (previous values and rolling histories), reconstruct a starting state that reproduces the published results rather than claiming to recover the true past.
294
+ In Config Explorer follow Validation → Optimise validation data → Reconstruct missing history. When we do not have the original accumulator (previous values and rolling histories), reconstruct a starting state that reproduces the published results rather than claiming to recover the true past.
284
295
 
285
- Open Identification Explorer and run `validated-identification` for each historical entry (for the tutorial graph, `C0200_window` and `C6880_sic_current`). AI authors evidence and identification graphs; deterministic validators check compilation and fitting against every observation prefix of sampled histories by default in the bundled runner. Configure the identification-execution strategy in ai.yaml to choose full, all-prefixes, periodicity or sample; all include complete history. No reviewer is used. Click **Make the graph** to inspect the graph composed from the latest successful experiments in Data Explorer → Identified → Investigation. Missing requirements are reported there. Optional explicit historical selection and local indexed state generation remain available through the CLI commands in the stage lesson.
296
+ Open Identification Explorer and run `validated-identification` for each historical entry (use the actual targets listed for the current graph; the original template requires `monthlyBalance` and `C0330`). AI authors evidence and identification graphs; deterministic validators check compilation and fitting against every observation prefix of sampled histories by default in the bundled runner. Configure the identification-execution strategy in ai.yaml to choose full, all-prefixes, periodicity or sample; all include complete history. No reviewer is used. Click **Make the graph** to inspect the graph composed from the latest successful experiments in Data Explorer → Identified → Investigation. Missing requirements are reported there. Optional explicit historical selection and local indexed state generation remain available through the CLI commands in the stage lesson.
286
297
 
287
- Use **Check current compatibility → Check all** in Investigation, or `yarn cobolts -d modules/examples/init validation investigation --strategy all-prefixes` (default). The check recompiles each latest successful graph pair against the live graph and schemas, replays selected prefixes of current validation data, then checks joint satisfaction if all targets pass. Choose `full`, `all-prefixes`, `periodicity` with `--periodicity <names...>`, or `sample` with `--size <number>`; `--max-entities` defaults to 100. The report names the experiment versions. No AI, history modification or accumulator materialisation. Explicit historical composition still requires matching snapshots.
298
+ Use **Check current compatibility → Check all** in Investigation, or `cobolts validation investigation --strategy all-prefixes` (default). The check recompiles each latest successful graph pair against the live graph and schemas, replays selected prefixes of current validation data, then checks joint satisfaction if all targets pass. Choose `full`, `all-prefixes`, `periodicity` with `--periodicity <names...>`, or `sample` with `--size <number>`; `--max-entities` defaults to 100. The report names the experiment versions. No AI, history modification or accumulator materialisation. Explicit historical composition still requires matching snapshots.
288
299
 
289
300
 
290
301
  Open Data Explorer → Identified. Data is selected by default and replays using the full-history seed. Investigation shows how the candidate changes at each evidence cutoff and, with Validate satisfaction enabled, compares replay against the original published results. A valid shorter history can have a different ordering from the final seed. Missing results are not matches. This is fitting, not prediction, and the forward business graph remains unchanged.
@@ -296,3 +307,19 @@ The standard runner declarations now attach `authoring-graph` followed by `graph
296
307
  ### Run all identification experiments
297
308
 
298
309
  In Identification Explorer → Now, select an identification runner and click **Run all**. This attempts every required accumulator entry in the current business graph once, including previously successful targets, regardless of the search filter. The selected runner and Debug AI setting apply throughout; `ai.yaml` supplies `experiments.maxMessages` and `experiments.concurrency`. Each run records its own experiment and snapshot. The server shares bounded sweep orchestration with Characteristic Explorer, which still attempts only unresolved outputs. Only one GUI sweep can run per server process. Errors in individual experiments do not stop other targets; the existing history polling displays new runs. Make the graph composes for inspection; it does not materialise state. The identification endpoint is `POST /api/experiments/identification/sweep` with `{ "runner": "validated-identification", "debugAi": false }`; it returns HTTP 202 when accepted. The characteristic endpoint and `resolution sweep` CLI retain their existing behaviour.
310
+
311
+ ## Run a full validation
312
+
313
+ The Optimised Validation Dataset is the reusable representation of the oracle organised by entity history. The saved validation is a separate immutable hypothesis containing three graphs and strategies, with independent shard evidence. In Config Explorer select **Create validation (JCL)** or **Results and validation** for the learning material.
314
+
315
+ From the project directory, with the oracle published, the dataset prepared and successful compatible identification experiments available:
316
+
317
+ ```powershell
318
+ cobolts jcl validate
319
+ cobolts jcl create --write
320
+ cobolts jcl list
321
+ ```
322
+
323
+ Use the returned ID with `cobolts jcl workers`, `cobolts jcl execute`, `cobolts jcl progress` and `cobolts jcl results`. Alternatively open Validation Explorer in New and click **Run validation**. Create validation only saves; Run validation saves and launches. A completed validation cannot be launched again from the GUI; CLI workers skip already completed shards. A new hypothesis requires a new validation.
324
+
325
+ For the complete worked example, open Documentation Explorer and select **Hello Bank — a worked validation from start to finish**. It covers publication, compaction, identification (including the real AI requirement for fresh investigations), JCL defaults, execution, interpretation and recovery.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cobol-ts/cli-init",
3
3
  "description": "Tutorial project initialisation and CLI command",
4
- "version": "0.0.57",
4
+ "version": "1.0.0",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
7
7
  "browserslist": {
@@ -18,17 +18,17 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "commander": "^12.1.0",
21
- "@cobol-ts/characteristics-yaml": "0.0.57",
22
- "@cobol-ts/project-ai": "0.0.57",
23
- "@cobol-ts/cli-common": "0.0.57",
24
- "@cobol-ts/project-config": "0.0.57",
25
- "@cobol-ts/project-crypto": "0.0.57",
26
- "@cobol-ts/project-extraction": "0.0.57",
27
- "@cobol-ts/project-generation": "0.0.57",
28
- "@cobol-ts/crypto-stream-sodium": "0.0.57",
29
- "@cobol-ts/yaml-jsyaml": "0.0.57",
30
- "@cobol-ts/files-node": "0.0.57",
31
- "@cobol-ts/project-ai-local": "0.0.57"
21
+ "@cobol-ts/characteristics-yaml": "1.0.0",
22
+ "@cobol-ts/project-ai": "1.0.0",
23
+ "@cobol-ts/cli-common": "1.0.0",
24
+ "@cobol-ts/project-config": "1.0.0",
25
+ "@cobol-ts/project-crypto": "1.0.0",
26
+ "@cobol-ts/project-extraction": "1.0.0",
27
+ "@cobol-ts/project-generation": "1.0.0",
28
+ "@cobol-ts/crypto-stream-sodium": "1.0.0",
29
+ "@cobol-ts/yaml-jsyaml": "1.0.0",
30
+ "@cobol-ts/files-node": "1.0.0",
31
+ "@cobol-ts/project-ai-local": "1.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "^5.2.2",