@cobol-ts/cli-oracle 0.0.0-stage → 0.0.57
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 +22 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/src/oracle.command.spec.d.ts +1 -0
- package/dist/src/oracle.command.spec.js +17 -0
- package/dist/src/oracle.command.spec.js.map +1 -0
- package/dist/src/oracle.d.ts +7 -0
- package/dist/src/oracle.js +129 -0
- package/dist/src/oracle.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +66 -3
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @cobol-ts/cli-oracle
|
|
2
|
+
|
|
3
|
+
Commander adapter for publishing, locating, verifying and recovering Oracle reference data and dated production executions.
|
|
4
|
+
|
|
5
|
+
## Public API and commands
|
|
6
|
+
|
|
7
|
+
`addOracle(root, services, options)` registers the `oracle` family. `OracleServices` provides path discovery and textual output; the options callback supplies current project settings. The adapter delegates repository selection and publication to [project-oracle](../project-oracle/README.md).
|
|
8
|
+
|
|
9
|
+
Commands: `path`, `import`, `import-many`, `list`, `verify`, `inspect`, `view`, `key` and `unpack`.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
yarn cobolts -d modules/examples/init oracle list --kind reference
|
|
13
|
+
yarn cobolts -d modules/examples/init oracle verify --composition productionDaily --date 2026-01-14
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The verification example requires that the named execution has already been published. A reference package is selected by kind; a production publication is normally selected by composition and date. Read operations also accept an explicit signed manifest path. `import-many` processes a tree of composition/date deliveries and can verify each imported package.
|
|
17
|
+
|
|
18
|
+
## Boundary and tests
|
|
19
|
+
|
|
20
|
+
The adapter interprets flags, reports progress and handles stdout/file output. It reuses `keyArg` from [cli-crypto](../cli-crypto/README.md) for optional explicit content keys. Authentication, repository layout and package recovery belong to project and security libraries, not to Commander. No CEL execution or validation dataset processing is performed here.
|
|
21
|
+
|
|
22
|
+
[oracle.command.spec.ts](src/oracle.command.spec.ts) tests command selection and argument handling. See the [Oracle reference](../cobolts/README.oracle.md) for publication, replacement and recovery semantics.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/oracle';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/oracle"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const commander_1 = require("commander");
|
|
4
|
+
const oracle_1 = require("./oracle");
|
|
5
|
+
test.each([
|
|
6
|
+
[['verify', '--date', '2026-01-01'], 'required option \'--composition <name>\' not specified'],
|
|
7
|
+
[['verify', '--composition', 'daily'], 'required option \'--date <YYYY-MM-DD>\' not specified']
|
|
8
|
+
])('rejects incomplete execution selection before opening a repository %#', async (args, message) => {
|
|
9
|
+
const paths = jest.fn(async () => { throw new Error('must not resolve paths'); });
|
|
10
|
+
const output = jest.fn();
|
|
11
|
+
const root = new commander_1.Command().exitOverride().configureOutput({ writeErr: () => { } });
|
|
12
|
+
(0, oracle_1.addOracle)(root, { paths, output }, () => ({}));
|
|
13
|
+
await expect(root.parseAsync(['oracle', ...args], { from: 'user' })).rejects.toThrow(message);
|
|
14
|
+
expect(paths).not.toHaveBeenCalled();
|
|
15
|
+
expect(output).not.toHaveBeenCalled();
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=oracle.command.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle.command.spec.js","sourceRoot":"","sources":["../../src/oracle.command.spec.ts"],"names":[],"mappings":";;AAAA,yCAAiC;AACjC,qCAAkC;AAElC,IAAI,CAAC,IAAI,CAAC;IACN,CAAC,CAAC,QAAQ,EAAC,QAAQ,EAAC,YAAY,CAAC,EAAE,wDAAwD,CAAC;IAC5F,CAAC,CAAC,QAAQ,EAAC,eAAe,EAAC,OAAO,CAAC,EAAE,uDAAuD,CAAC;CACzE,CAAC,CAAC,uEAAuE,EAAE,KAAK,EAAE,IAAI,EAAC,OAAO,EAAE,EAAE;IACtH,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,GAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAA,CAAA,CAAC,CAAC,CAAA;IAC9E,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACxB,MAAM,IAAI,GAAG,IAAI,mBAAO,EAAE,CAAC,YAAY,EAAE,CAAC,eAAe,CAAC,EAAC,QAAQ,EAAC,GAAE,EAAE,GAAC,CAAC,EAAC,CAAC,CAAA;IAC5E,IAAA,kBAAS,EAAC,IAAI,EAAC,EAAC,KAAK,EAAC,MAAM,EAAC,EAAC,GAAE,EAAE,CAAA,CAAC,EAAE,CAAC,CAAC,CAAA;IACvC,MAAM,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,EAAC,EAAC,IAAI,EAAC,MAAM,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACxF,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;IACpC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;AACzC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
import type { CliOptions, Output, Paths } from '@cobol-ts/cli-common';
|
|
3
|
+
export declare function addOracle(root: Command, services: OracleServices, options: () => CliOptions): void;
|
|
4
|
+
export interface OracleServices {
|
|
5
|
+
readonly output: Output;
|
|
6
|
+
readonly paths: Paths;
|
|
7
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addOracle = addOracle;
|
|
4
|
+
const crypto_packager_node_1 = require("@cobol-ts/crypto-packager-node");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const project_oracle_local_1 = require("@cobol-ts/project-oracle-local");
|
|
7
|
+
const project_oracle_1 = require("@cobol-ts/project-oracle");
|
|
8
|
+
const project_oracle_local_2 = require("@cobol-ts/project-oracle-local");
|
|
9
|
+
const project_oracle_local_3 = require("@cobol-ts/project-oracle-local");
|
|
10
|
+
const cli_common_1 = require("@cobol-ts/cli-common");
|
|
11
|
+
const cli_crypto_1 = require("@cobol-ts/cli-crypto");
|
|
12
|
+
function addOracle(root, services, options) {
|
|
13
|
+
const oracle = root.command('oracle').description('Import, authenticate and recover oracle packages')
|
|
14
|
+
.option('--config <filename>', 'Repository configuration relative to .cobolts', 'oracle.yaml');
|
|
15
|
+
const context = () => (0, project_oracle_local_1.initializeOracle)(services, options(), oracle.opts().config);
|
|
16
|
+
const runOptions = (cmd) => cmd.option('--kind <selector>', 'reference, production or composition name')
|
|
17
|
+
.option('--composition <name>').option('--date <YYYY-MM-DD>');
|
|
18
|
+
const readOptions = (cmd) => runOptions(cmd)
|
|
19
|
+
.option('-f, --file <manifest>', 'Signed crypto manifest path; overrides --date');
|
|
20
|
+
const select = async (o) => {
|
|
21
|
+
o = (0, project_oracle_1.resolveOracleSelection)(o);
|
|
22
|
+
if (o.file === undefined && o.kind !== 'reference')
|
|
23
|
+
(0, project_oracle_1.requireOracleRun)(o);
|
|
24
|
+
return (0, project_oracle_local_1.selectOracleRead)(await context(), o);
|
|
25
|
+
};
|
|
26
|
+
runOptions(oracle.command('path').description('Resolve the absolute oracle manifest path'))
|
|
27
|
+
.action(async (o) => {
|
|
28
|
+
const selection = (0, project_oracle_1.resolveOracleSelection)(o);
|
|
29
|
+
const config = oracle.opts().config;
|
|
30
|
+
if (selection.kind === 'reference') {
|
|
31
|
+
services.output(await (0, project_oracle_local_1.referenceManifestPath)(await services.paths(options()), config));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const { composition, date } = (0, project_oracle_1.requireOracleRun)(selection);
|
|
35
|
+
services.output(await (0, project_oracle_local_1.productionManifestPath)(await services.paths(options()), composition, date, config));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
runOptions(oracle.command('import').description('Validate and publish an oracle package')
|
|
39
|
+
.option('--source <file-or-directory-or-zip>', 'External delivery; defaults to configured data.yaml sources')
|
|
40
|
+
.option('--force', 'Replace the entire existing execution after invalidating its signature'))
|
|
41
|
+
.action(async (o) => {
|
|
42
|
+
const selection = (0, project_oracle_1.resolveOracleSelection)(o);
|
|
43
|
+
const run = selection.kind === 'reference' ? undefined : (0, project_oracle_1.requireOracleRun)(selection);
|
|
44
|
+
const ctx = await context();
|
|
45
|
+
const manifest = o.source === undefined ? await (0, project_oracle_local_2.importConfiguredOracle)(await services.paths(options()), ctx, run, !!o.force)
|
|
46
|
+
: run ? await (0, project_oracle_local_1.importProduction)(ctx, run.composition, run.date, o.source, !!o.force)
|
|
47
|
+
: await (0, project_oracle_local_1.importReference)(ctx, o.source, !!o.force);
|
|
48
|
+
services.output(`Imported ${manifest.packageId}: ${manifest.files.length} files`);
|
|
49
|
+
});
|
|
50
|
+
oracle.command('import-many').description('Publish all production deliveries in a composition/date directory tree')
|
|
51
|
+
.requiredOption('--source <directory>', 'Root containing named composition and YYYY-MM-DD delivery directories')
|
|
52
|
+
.option('--force', 'Replace existing executions in the delivery tree')
|
|
53
|
+
.option('--verify', 'Fully verify each package after publication')
|
|
54
|
+
.action(async (o) => {
|
|
55
|
+
const ctx = await context();
|
|
56
|
+
let count = 0;
|
|
57
|
+
for await (const manifest of (0, project_oracle_local_3.importProductionMany)(ctx, o.source, !!o.force)) {
|
|
58
|
+
services.output(`Imported ${manifest.packageId}: ${manifest.files.length} files`);
|
|
59
|
+
if (o.verify) {
|
|
60
|
+
await ctx.packager.verify(manifest.packageId);
|
|
61
|
+
services.output(`Verified ${manifest.packageId}: ${manifest.files.length} files`);
|
|
62
|
+
}
|
|
63
|
+
count++;
|
|
64
|
+
}
|
|
65
|
+
services.output(`Imported ${count} production runs`);
|
|
66
|
+
});
|
|
67
|
+
oracle.command('list').description('List authenticated oracle packages')
|
|
68
|
+
.option('--kind <selector>', 'reference, production or composition name')
|
|
69
|
+
.action(async (o) => {
|
|
70
|
+
const ctx = await context();
|
|
71
|
+
for (const id of await (0, project_oracle_local_1.listOracle)(ctx, o.kind))
|
|
72
|
+
services.output(id);
|
|
73
|
+
});
|
|
74
|
+
readOptions(oracle.command('verify').description('Verify signature, all streams and ZIP contents'))
|
|
75
|
+
.action(async (o) => {
|
|
76
|
+
const { ctx, id } = await select(o);
|
|
77
|
+
const manifest = await ctx.packager.verify(id);
|
|
78
|
+
services.output(`Verified ${manifest.packageId}: ${manifest.files.length} files`);
|
|
79
|
+
});
|
|
80
|
+
readOptions(oracle.command('inspect').description('Show signed package metadata and public keys')
|
|
81
|
+
.argument('[logical-name-or-member]', 'Logical source name or exact archived result filename')
|
|
82
|
+
.option('--show-key', 'Explicitly reveal the selected file content key'))
|
|
83
|
+
.action(async (name, o) => {
|
|
84
|
+
const { ctx, id, manifest } = await select(o);
|
|
85
|
+
if (o.showKey && !name)
|
|
86
|
+
throw new Error('--show-key requires a logical name or archived member');
|
|
87
|
+
const file = name === undefined ? undefined : await (0, project_oracle_local_1.oracleMemberName)(ctx, manifest, name);
|
|
88
|
+
const entries = file ? manifest.files.filter(f => f.path === file) : manifest.files;
|
|
89
|
+
const detail = {
|
|
90
|
+
manifest: file ? { ...manifest, files: entries } : manifest,
|
|
91
|
+
recipient: await ctx.packager.fileKeys.inspectPublic(),
|
|
92
|
+
signingPublicKeyBase64: Buffer.from(await ctx.packager.signer.publicKey()).toString('base64')
|
|
93
|
+
};
|
|
94
|
+
if (o.showKey && file)
|
|
95
|
+
detail.contentKeyHex = Buffer.from(await ctx.packager.recoverKey(id, file)).toString('hex');
|
|
96
|
+
services.output(JSON.stringify(detail, null, 2));
|
|
97
|
+
});
|
|
98
|
+
readOptions(oracle.command('view').description('Recover an oracle file to stdout or --output')
|
|
99
|
+
.argument('<logical-name-or-member>', 'Logical source name or exact archived result filename')
|
|
100
|
+
.option('--output <filename>')
|
|
101
|
+
.option('--key-hex <64-hex-characters>', 'Explicit file content key (visible in process arguments)')
|
|
102
|
+
.option('--key-file <filename>', 'File containing a hex-encoded content key'))
|
|
103
|
+
.action(async (name, o) => {
|
|
104
|
+
const { ctx, id, manifest } = await select(o);
|
|
105
|
+
const file = await (0, project_oracle_local_1.oracleMemberName)(ctx, manifest, name);
|
|
106
|
+
const explicit = await (0, cli_crypto_1.keyArg)(o.keyHex, o.keyFile);
|
|
107
|
+
if (o.output) {
|
|
108
|
+
await (0, crypto_packager_node_1.recoverLocalFile)(ctx.packager, id, file, (0, node_path_1.resolve)(o.output), explicit);
|
|
109
|
+
services.output(`Recovered ${file} to ${(0, node_path_1.resolve)(o.output)}`);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
await ctx.packager.withRecovered(id, file, input => input.withStream(cli_common_1.outputStream), explicit);
|
|
113
|
+
});
|
|
114
|
+
readOptions(oracle.command('key').description('Reveal one file content key, never the parent key')
|
|
115
|
+
.argument('<logical-name-or-member>', 'Logical source name or exact archived result filename'))
|
|
116
|
+
.action(async (name, o) => {
|
|
117
|
+
const { ctx, id, manifest } = await select(o);
|
|
118
|
+
const file = await (0, project_oracle_local_1.oracleMemberName)(ctx, manifest, name);
|
|
119
|
+
services.output(Buffer.from(await ctx.packager.recoverKey(id, file)).toString('hex'));
|
|
120
|
+
});
|
|
121
|
+
readOptions(oracle.command('unpack').description('Restore a complete authenticated oracle package')
|
|
122
|
+
.requiredOption('--output <directory>'))
|
|
123
|
+
.action(async (o) => {
|
|
124
|
+
const { ctx, id } = await select(o);
|
|
125
|
+
await (0, crypto_packager_node_1.recoverLocalPackage)(ctx.packager, id, (0, node_path_1.resolve)(o.output));
|
|
126
|
+
services.output(`Recovered ${id} into ${(0, node_path_1.resolve)(o.output)}`);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=oracle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle.js","sourceRoot":"","sources":["../../src/oracle.ts"],"names":[],"mappings":";;AAYA,8BA0HC;AAtID,yEAAoF;AACpF,yCAAiC;AAGjC,yEAAiM;AACjM,6DAA2G;AAC3G,yEAAqE;AACrE,yEAAmE;AACnE,qDAAiD;AACjD,qDAA2C;AAG3C,SAAgB,SAAS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@cobol-ts/cli-oracle",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Oracle repository command adapter",
|
|
4
|
+
"version": "0.0.57",
|
|
5
|
+
"main": "dist/index",
|
|
6
|
+
"types": "dist/index",
|
|
7
|
+
"browserslist": {
|
|
8
|
+
"development": [
|
|
9
|
+
"last 1 chrome version",
|
|
10
|
+
"last 1 firefox version",
|
|
11
|
+
"last 1 safari version"
|
|
12
|
+
],
|
|
13
|
+
"production": [
|
|
14
|
+
">0.2%",
|
|
15
|
+
"not dead",
|
|
16
|
+
"not op_mini all"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"commander": "^12.1.0",
|
|
21
|
+
"@cobol-ts/cli-common": "0.0.57",
|
|
22
|
+
"@cobol-ts/cli-crypto": "0.0.57",
|
|
23
|
+
"@cobol-ts/project-oracle": "0.0.57",
|
|
24
|
+
"@cobol-ts/files": "0.0.57",
|
|
25
|
+
"@cobol-ts/crypto-packager-node": "0.0.57",
|
|
26
|
+
"@cobol-ts/project-oracle-local": "0.0.57"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"typescript": "^5.2.2",
|
|
30
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
31
|
+
"@types/jest": "^29.0.0",
|
|
32
|
+
"@types/node": "^20.0.0",
|
|
33
|
+
"jest": "^29.0.0",
|
|
34
|
+
"ts-jest": "^29.0.0"
|
|
35
|
+
},
|
|
36
|
+
"eslintConfig": {
|
|
37
|
+
"extends": [
|
|
38
|
+
"react-app",
|
|
39
|
+
"react-app/jest"
|
|
40
|
+
],
|
|
41
|
+
"overrides": [
|
|
42
|
+
{
|
|
43
|
+
"files": [
|
|
44
|
+
"**/*.stories.*"
|
|
45
|
+
],
|
|
46
|
+
"rules": {
|
|
47
|
+
"import/no-anonymous-default-export": "off"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"dist/index.js",
|
|
54
|
+
"dist/index.d.ts",
|
|
55
|
+
"dist/src/",
|
|
56
|
+
"dist/",
|
|
57
|
+
"dist/**/*"
|
|
58
|
+
],
|
|
59
|
+
"keywords": [
|
|
60
|
+
"indexing"
|
|
61
|
+
],
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"module": "./index.ts",
|
|
64
|
+
"repository": "git@github.com:intellimaintain/intellimaintain.git",
|
|
65
|
+
"scripts": {
|
|
66
|
+
"test": "jest --config jest.config.json --env node",
|
|
67
|
+
"test:watch": "npm run test -- --watch"
|
|
68
|
+
}
|
|
6
69
|
}
|