@cobol-ts/cli-resolutions 0.0.0-stage → 0.0.59
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 +11 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/src/resolutions.command.spec.d.ts +1 -0
- package/dist/src/resolutions.command.spec.js +39 -0
- package/dist/src/resolutions.command.spec.js.map +1 -0
- package/dist/src/resolutions.d.ts +12 -0
- package/dist/src/resolutions.js +47 -0
- package/dist/src/resolutions.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +67 -3
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @cobol-ts/cli-resolutions
|
|
2
|
+
|
|
3
|
+
Resolution command delivery adapter. Owns Commander registration, flags and output formatting. Delegates application operations to [characteristic-resolutions](../characteristic-resolutions/README.md); no execution or persistence implementation is owned here.
|
|
4
|
+
|
|
5
|
+
`resolution generate`, `list`, `show`, `sweep` and `compose` operate on the current characteristic resolutions. Compose previews by default; `--write` requests publication. Sweep attempts unresolved outputs and accepts an explicit write option. The application owns selection and graph validation.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
yarn cobolts -d modules/examples/init resolution list
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
See the [CLI reference](../cobolts/README.md) for the complete command options.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/resolutions';
|
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/resolutions"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const commander_1 = require("commander");
|
|
4
|
+
const characteristic_resolutions_local_1 = require("@cobol-ts/characteristic-resolutions-local");
|
|
5
|
+
const resolutions_1 = require("./resolutions");
|
|
6
|
+
jest.mock('@cobol-ts/characteristic-resolutions-local', () => ({ projectResolutions: jest.fn(), sweepProjectFailures: jest.fn() }));
|
|
7
|
+
jest.mock('@cobol-ts/characteristics-yaml-jsyaml', () => ({ stringifyCharacteristicMetadata: (value) => JSON.stringify(value) }));
|
|
8
|
+
const paths = { projectRoot: 'project', directory: 'project/.cobolts', catalogue: 'files.yaml',
|
|
9
|
+
policy: 'generation.yaml', data: 'data.yaml', accumulator: 'accumulator.yaml' };
|
|
10
|
+
function fixture() {
|
|
11
|
+
const services = { paths: jest.fn(async () => paths), read: jest.fn(async () => ''),
|
|
12
|
+
output: jest.fn(), diagnostic: jest.fn() };
|
|
13
|
+
const root = new commander_1.Command().exitOverride();
|
|
14
|
+
(0, resolutions_1.addResolutions)(root, services, () => ({ directory: 'project' }));
|
|
15
|
+
return { root, services };
|
|
16
|
+
}
|
|
17
|
+
test('resolution list combines requested status filters', async () => {
|
|
18
|
+
const rows = [{ id: 'C1', type: 'graph' }, { id: 'C2', type: 'failure' }, { id: 'C3', type: 'missing' }];
|
|
19
|
+
const list = jest.fn(async () => rows);
|
|
20
|
+
jest.mocked(characteristic_resolutions_local_1.projectResolutions).mockReturnValueOnce({ list });
|
|
21
|
+
const { root, services } = fixture();
|
|
22
|
+
await root.parseAsync(['resolution', 'list', '--success', '--missing'], { from: 'user' });
|
|
23
|
+
expect(characteristic_resolutions_local_1.projectResolutions).toHaveBeenLastCalledWith(paths.directory, services.read, undefined, 'graph.yaml', paths.catalogue);
|
|
24
|
+
expect(services.output).toHaveBeenCalledWith(JSON.stringify([rows[0], rows[2]]));
|
|
25
|
+
});
|
|
26
|
+
test.each([false, true])('resolution compose writes only when explicitly requested (%s)', async (write) => {
|
|
27
|
+
const compose = jest.fn(async () => ({ written: write, yaml: 'C0010: {}\n' }));
|
|
28
|
+
jest.mocked(characteristic_resolutions_local_1.projectResolutions).mockReturnValueOnce({ compose });
|
|
29
|
+
const { root, services } = fixture();
|
|
30
|
+
await root.parseAsync(['resolution', 'compose', ...(write ? ['--write'] : [])], { from: 'user' });
|
|
31
|
+
expect(compose).toHaveBeenCalledWith(write);
|
|
32
|
+
expect(services.output).toHaveBeenCalledWith(write ? 'Wrote graph.yaml' : 'C0010: {}');
|
|
33
|
+
});
|
|
34
|
+
test('resolution sweep without an execution capability fails before resolving paths', async () => {
|
|
35
|
+
const { root, services } = fixture();
|
|
36
|
+
await expect(root.parseAsync(['resolution', 'sweep'], { from: 'user' })).rejects.toThrow('Experiment execution is not configured');
|
|
37
|
+
expect(services.paths).not.toHaveBeenCalled();
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=resolutions.command.spec.js.map
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CAAC,EAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC,CAAC,CAAA;IAC5E,IAAI,CAAC,MAAM,CAAC,qDAAkB,CAAC,CAAC,mBAAmB,CAAC,EAAC,OAAO,EAAqD,CAAC,CAAA;IAClH,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,OAAO,EAAE,CAAA;IAClC,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,YAAY,EAAE,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAA;IAC/F,MAAM,CAAC,OAAO,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAA;IAC3C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAA;AAC1F,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,+EAA+E,EAAE,KAAK,IAAI,EAAE;IAC7F,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAC,GAAG,OAAO,EAAE,CAAA;IAClC,MAAM,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAA;IAChI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;AACjD,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
import type { ResolveProjectPaths, Read, Output, Diagnostic } from '@cobol-ts/project-context';
|
|
3
|
+
import type { CliOptions } from '@cobol-ts/cli-common';
|
|
4
|
+
import type { ExecutionDependencies } from '@cobol-ts/discovery-experiments';
|
|
5
|
+
export declare function addResolutions(root: Command, services: ResolutionServices, options: () => CliOptions): void;
|
|
6
|
+
export interface ResolutionServices {
|
|
7
|
+
readonly paths: ResolveProjectPaths;
|
|
8
|
+
readonly read: Read;
|
|
9
|
+
readonly output: Output;
|
|
10
|
+
readonly diagnostic: Diagnostic;
|
|
11
|
+
readonly experimentExecution?: ExecutionDependencies;
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addResolutions = addResolutions;
|
|
4
|
+
const characteristics_yaml_jsyaml_1 = require("@cobol-ts/characteristics-yaml-jsyaml");
|
|
5
|
+
const characteristic_resolutions_local_1 = require("@cobol-ts/characteristic-resolutions-local");
|
|
6
|
+
const characteristic_resolutions_local_2 = require("@cobol-ts/characteristic-resolutions-local");
|
|
7
|
+
function addResolutions(root, services, options) {
|
|
8
|
+
const command = root.command('resolution').description('Derive characteristic resolutions from recorded experiments');
|
|
9
|
+
const repository = async () => {
|
|
10
|
+
const paths = await services.paths(options());
|
|
11
|
+
return (0, characteristic_resolutions_local_2.projectResolutions)(paths.directory, services.read, undefined, 'graph.yaml', paths.catalogue);
|
|
12
|
+
};
|
|
13
|
+
const output = (value) => services.output((0, characteristics_yaml_jsyaml_1.stringifyCharacteristicMetadata)(value, 'yaml').trimEnd());
|
|
14
|
+
command.command('generate').argument('[id]').description('Regenerate resolutions for output characteristics')
|
|
15
|
+
.action(async (id) => output(await (await repository()).generate(id)));
|
|
16
|
+
command.command('list').description('List cached resolution status')
|
|
17
|
+
.option('--success', 'Show successful resolutions').option('--failure', 'Show failure resolutions')
|
|
18
|
+
.option('--missing', 'Show characteristics without cached resolutions')
|
|
19
|
+
.action(async (flags) => {
|
|
20
|
+
const rows = await (await repository()).list();
|
|
21
|
+
const types = [flags.success && 'graph', flags.failure && 'failure', flags.missing && 'missing'].filter(Boolean);
|
|
22
|
+
output(types.length ? rows.filter(row => types.includes(row.type)) : rows);
|
|
23
|
+
});
|
|
24
|
+
command.command('sweep').description('Use AI to create initial characteristics: run one experiment for every unresolved output')
|
|
25
|
+
.option('--runner <name>', 'Runner name (defaults to ai.yaml.active)')
|
|
26
|
+
.option('--write', 'Replace graph.yaml with the composed resolutions after the sweep')
|
|
27
|
+
.action(async (flags) => {
|
|
28
|
+
if (!services.experimentExecution)
|
|
29
|
+
throw new Error('Experiment execution is not configured');
|
|
30
|
+
const paths = await services.paths(options());
|
|
31
|
+
const base = paths.directory;
|
|
32
|
+
output(await (0, characteristic_resolutions_local_1.sweepProjectFailures)(base, services.experimentExecution, flags.runner, options().debugAi ?? false, result => services.diagnostic(`${result.characteristic}: ${result.status}${result.error ? ` (${result.error})` : ''}`), undefined, paths.catalogue, paths));
|
|
33
|
+
if (flags.write) {
|
|
34
|
+
await (0, characteristic_resolutions_local_2.projectResolutions)(base, services.read, undefined, 'graph.yaml', paths.catalogue).compose(true);
|
|
35
|
+
services.diagnostic('Wrote graph.yaml');
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
command.command('compose').description('Compose resolutions into graph.yaml (preview by default)')
|
|
39
|
+
.option('--write', 'Replace graph.yaml')
|
|
40
|
+
.action(async (flags) => {
|
|
41
|
+
const result = await (await repository()).compose(flags.write === true);
|
|
42
|
+
services.output(result.written ? 'Wrote graph.yaml' : result.yaml.trimEnd());
|
|
43
|
+
});
|
|
44
|
+
command.command('show').argument('<id>').description('Display a cached resolution')
|
|
45
|
+
.action(async (id) => output(await (await repository()).show(id)));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=resolutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolutions.js","sourceRoot":"","sources":["../../src/resolutions.ts"],"names":[],"mappings":";;AAQA,wCAuCC;AA9CD,uFAAqF;AAIrF,iGAA+E;AAC/E,iGAA6E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K,CAAC,KAAK,EAAE,CAAC;YACd,MAAM,IAAA,qDAAkB,EAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YACrG,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAA;QAC3C,CAAC;IACL,CAAC,CAAC,CAAA;IACN,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,0DAA0D,CAAC;SAC7F,MAAM,CAAC,SAAS,EAAE,oBAAoB,CAAC;SACvC,MAAM,CAAC,KAAK,EAAE,KAAwB,EAAE,EAAE;QACvC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,CAAA;QACvE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;IAChF,CAAC,CAAC,CAAA;IACN,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC;SAC9E,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAClF,CAAC"}
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/resolutions'
|
package/package.json
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/cli-resolutions",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Resolution command delivery adapter",
|
|
4
|
+
"version": "0.0.59",
|
|
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
|
+
"@cobol-ts/characteristic-resolutions": "0.0.59",
|
|
21
|
+
"@cobol-ts/characteristic-resolutions-local": "0.0.59",
|
|
22
|
+
"@cobol-ts/characteristics-yaml": "0.0.59",
|
|
23
|
+
"@cobol-ts/characteristics-yaml-jsyaml": "0.0.59",
|
|
24
|
+
"@cobol-ts/cli-common": "0.0.59",
|
|
25
|
+
"@cobol-ts/discovery-experiments": "0.0.59",
|
|
26
|
+
"@cobol-ts/project-context": "0.0.59",
|
|
27
|
+
"commander": "^12.1.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
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
|
+
"typescript": "^5.2.2"
|
|
36
|
+
},
|
|
37
|
+
"eslintConfig": {
|
|
38
|
+
"extends": [
|
|
39
|
+
"react-app",
|
|
40
|
+
"react-app/jest"
|
|
41
|
+
],
|
|
42
|
+
"overrides": [
|
|
43
|
+
{
|
|
44
|
+
"files": [
|
|
45
|
+
"**/*.stories.*"
|
|
46
|
+
],
|
|
47
|
+
"rules": {
|
|
48
|
+
"import/no-anonymous-default-export": "off"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist/index.js",
|
|
55
|
+
"dist/index.d.ts",
|
|
56
|
+
"dist/src/",
|
|
57
|
+
"dist/",
|
|
58
|
+
"dist/**/*"
|
|
59
|
+
],
|
|
60
|
+
"keywords": [
|
|
61
|
+
"indexing"
|
|
62
|
+
],
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"module": "./index.ts",
|
|
65
|
+
"repository": "git@github.com:intellimaintain/intellimaintain.git",
|
|
66
|
+
"scripts": {
|
|
67
|
+
"test": "jest --config jest.config.json --env node",
|
|
68
|
+
"test:watch": "npm run test -- --watch"
|
|
69
|
+
}
|
|
6
70
|
}
|