@cobol-ts/ai-runner-creator-reviewer 0.0.0-stage → 0.0.40
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 +5 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/src/review-response.d.ts +8 -0
- package/dist/src/review-response.js +20 -0
- package/dist/src/review-response.js.map +1 -0
- package/dist/src/runner-creator-reviewer.d.ts +2 -0
- package/dist/src/runner-creator-reviewer.js +53 -0
- package/dist/src/runner-creator-reviewer.js.map +1 -0
- package/dist/src/runner-creator-reviewer.spec.d.ts +1 -0
- package/dist/src/runner-creator-reviewer.spec.js +105 -0
- package/dist/src/runner-creator-reviewer.spec.js.map +1 -0
- package/index.ts +2 -0
- package/package.json +62 -3
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# `@cobol-ts/ai-runner-creator-reviewer`
|
|
2
|
+
|
|
3
|
+
Resolves the named `creator`, `reviewer`, `validation`, `reviewValidation` and `finished` capabilities from the injected repositories. Both agents operate on the same conversation with their own system prompts. The runner invokes the creator and records its candidate, validates it and records named tool feedback. Invalid candidates go straight back to the creator. The reviewer is invoked only after successful validation. It must return exactly `{"approved":true|false,"feedback":"nonempty text"}`. Rejection goes back to the creator; approval finishes with the most recent validated candidate, parsed to a JSON-compatible value when possible. The injected `reviewValidation` tool validates the review. Invalid reviews are retried by the reviewer against the same candidate, never treated as approval. The supplied `reviewResponseValidator` implements the strict JSON contract.
|
|
4
|
+
|
|
5
|
+
The message budget excludes initial context and lifecycle records. Reserve two messages for each candidate and its validation, and two for each review and its validation. The runner cannot exceed the budget and never calls a creator when there is insufficient room to record validation. Exhaustion finishes with a string array including the last available feedback. Unexpected exceptions propagate to the experiment execution boundary. No filesystem, CEL, HTTP or GUI dependencies. The finished tool records the runner's outcome unchanged.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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/runner-creator-reviewer"), exports);
|
|
18
|
+
__exportStar(require("./src/review-response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,wDAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Validator } from '@cobol-ts/ai-tools';
|
|
2
|
+
export interface Review {
|
|
3
|
+
readonly approved: boolean;
|
|
4
|
+
readonly feedback: string;
|
|
5
|
+
}
|
|
6
|
+
/** Approval is a strict, machine-readable decision, never inferred from prose. */
|
|
7
|
+
export declare function parseReview(content: string): Review | undefined;
|
|
8
|
+
export declare const reviewResponseValidator: Validator;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewResponseValidator = void 0;
|
|
4
|
+
exports.parseReview = parseReview;
|
|
5
|
+
/** Approval is a strict, machine-readable decision, never inferred from prose. */
|
|
6
|
+
function parseReview(content) {
|
|
7
|
+
try {
|
|
8
|
+
const value = JSON.parse(content);
|
|
9
|
+
if (value && typeof value === 'object' && !Array.isArray(value) && Object.keys(value).length === 2 &&
|
|
10
|
+
typeof value.approved === 'boolean' && typeof value.feedback === 'string' && value.feedback.trim())
|
|
11
|
+
return { approved: value.approved, feedback: value.feedback };
|
|
12
|
+
}
|
|
13
|
+
catch { /* Invalid JSON is validation feedback, not a transport failure. */ }
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const reviewResponseValidator = async (message) => parseReview(message.content) ? [] : [
|
|
17
|
+
'Return only a JSON object with exactly two properties: approved (boolean) and feedback (nonempty string). No Markdown fences or surrounding text.'
|
|
18
|
+
];
|
|
19
|
+
exports.reviewResponseValidator = reviewResponseValidator;
|
|
20
|
+
//# sourceMappingURL=review-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-response.js","sourceRoot":"","sources":["../../src/review-response.ts"],"names":[],"mappings":";;;AAQA,kCAQC;AATD,kFAAkF;AAClF,SAAgB,WAAW,CAAC,OAAe;IACvC,IAAI,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QACjC,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC;YAC9F,OAAO,KAAK,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE;YAClG,OAAO,EAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAC,CAAA;IACnE,CAAC;IAAC,MAAM,CAAC,CAAC,mEAAmE,CAAC,CAAC;IAC/E,OAAO,SAAS,CAAA;AACpB,CAAC;AAEM,MAAM,uBAAuB,GAAc,KAAK,EAAC,OAAO,EAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnG,mJAAmJ;CACtJ,CAAA;AAFY,QAAA,uBAAuB,2BAEnC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.creatorReviewerRunner = void 0;
|
|
4
|
+
const yaml_jsyaml_1 = require("@cobol-ts/yaml-jsyaml");
|
|
5
|
+
const ai_runner_1 = require("@cobol-ts/ai-runner");
|
|
6
|
+
const review_response_1 = require("./review-response");
|
|
7
|
+
const name = (value, field) => (0, ai_runner_1.requiredRunnerName)(value, field, 'Creator-reviewer');
|
|
8
|
+
const creatorReviewerRunner = async (configuration, dependencies) => {
|
|
9
|
+
const validation = name(configuration.validation, 'validation');
|
|
10
|
+
const validate = dependencies.tools.validator(validation);
|
|
11
|
+
const reviewValidation = name(configuration.reviewValidation, 'reviewValidation');
|
|
12
|
+
const validateReview = dependencies.tools.validator(reviewValidation);
|
|
13
|
+
const finished = dependencies.tools.finished(name(configuration.finished ?? 'experiment-finished', 'finished'));
|
|
14
|
+
const creator = await dependencies.agent(name(configuration.creator, 'creator'));
|
|
15
|
+
const reviewer = await dependencies.agent(name(configuration.reviewer, 'reviewer'));
|
|
16
|
+
return { async run(context) {
|
|
17
|
+
const create = (0, ai_runner_1.validatedAgent)(context, creator, validation, validate);
|
|
18
|
+
const assess = (0, ai_runner_1.validatedAgent)(context, reviewer, reviewValidation, validateReview);
|
|
19
|
+
let feedback = [];
|
|
20
|
+
while (true) {
|
|
21
|
+
const creation = await create();
|
|
22
|
+
if (!creation)
|
|
23
|
+
break;
|
|
24
|
+
const { response: candidate, errors } = creation;
|
|
25
|
+
feedback = errors;
|
|
26
|
+
if (errors.length)
|
|
27
|
+
continue;
|
|
28
|
+
// A malformed review retries the reviewer, without regenerating the candidate.
|
|
29
|
+
while (true) {
|
|
30
|
+
const assessment = await assess();
|
|
31
|
+
if (!assessment)
|
|
32
|
+
break;
|
|
33
|
+
const { response, errors: reviewErrors } = assessment;
|
|
34
|
+
feedback = reviewErrors;
|
|
35
|
+
if (reviewErrors.length)
|
|
36
|
+
continue;
|
|
37
|
+
const review = (0, review_response_1.parseReview)(response.content);
|
|
38
|
+
if (!review)
|
|
39
|
+
throw new Error('Review validator accepted a malformed review');
|
|
40
|
+
if (review.approved) {
|
|
41
|
+
finished((0, ai_runner_1.structuredOutcome)(candidate.content, source => yaml_jsyaml_1.jsYamlParser.parse(source)));
|
|
42
|
+
return 'approved';
|
|
43
|
+
}
|
|
44
|
+
feedback = [review.feedback];
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
finished(['Message budget exhausted', ...feedback]);
|
|
49
|
+
return 'exhausted';
|
|
50
|
+
} };
|
|
51
|
+
};
|
|
52
|
+
exports.creatorReviewerRunner = creatorReviewerRunner;
|
|
53
|
+
//# sourceMappingURL=runner-creator-reviewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner-creator-reviewer.js","sourceRoot":"","sources":["../../src/runner-creator-reviewer.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAClD,mDAA6G;AAE7G,uDAA6C;AAE7C,MAAM,IAAI,GAAG,CAAC,KAAc,EAAE,KAAa,EAAE,EAAE,CAAC,IAAA,8BAAkB,EAAC,KAAK,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAA;AAE7F,MAAM,qBAAqB,GAAkB,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE;IACtF,MAA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;oBAAE,SAAQ;gBAC3B,+EAA+E;gBAC/E,OAAO,IAAI,EAAE,CAAC;oBACV,MAAM,UAAU,GAAG,MAAM,MAAM,EAAE,CAAA;oBACjC,IAAI,CAAC,UAAU;wBAAE,MAAK;oBACtB,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAC,GAAG,UAAU,CAAA;oBACnD,QAAQ,GAAG,YAAY,CAAA;oBACvB,IAAI,YAAY,CAAC,MAAM;wBAAE,SAAQ;oBAEjC,MAAM,MAAM,GAAG,IAAA,6BAAW,EAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;oBAC5C,IAAI,CAAC,MAAM;wBAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;oBAC5E,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;wBAClB,QAAQ,CAAC,IAAA,6BAAiB,EAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,0BAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;wBACpF,OAAO,UAAU,CAAA;oBACrB,CAAC;oBACD,QAAQ,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;oBAC5B,MAAK;gBACT,CAAC;YACL,CAAC;YACD,QAAQ,CAAC,CAAC,0BAA0B,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAA;YACnD,OAAO,WAAW,CAAA;QACtB,CAAC,EAAC,CAAA;AACN,CAAC,CAAA;AAvCY,QAAA,qBAAqB,yBAuCjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const runner_creator_reviewer_1 = require("./runner-creator-reviewer");
|
|
4
|
+
const review_response_1 = require("./review-response");
|
|
5
|
+
const ai_tools_1 = require("@cobol-ts/ai-tools");
|
|
6
|
+
const configuration = { type: 'creator-reviewer', creator: 'creator', reviewer: 'reviewer', validation: 'graph', reviewValidation: 'review', finished: 'done' };
|
|
7
|
+
const approved = '{"approved":true,"feedback":"Looks correct"}';
|
|
8
|
+
const rejected = '{"approved":false,"feedback":"Wrong equation"}';
|
|
9
|
+
const graph = '{"answer":42}';
|
|
10
|
+
async function execute(candidates, validations, reviews, maxMessages = 10) {
|
|
11
|
+
const messages = [{ role: 'user', content: 'inputs' }, { role: 'user', content: 'target' }];
|
|
12
|
+
const calls = [];
|
|
13
|
+
const histories = [];
|
|
14
|
+
const agent = (name, responses) => ({ respond: jest.fn(async (history) => {
|
|
15
|
+
calls.push(name);
|
|
16
|
+
histories.push([...history]);
|
|
17
|
+
const content = responses.shift();
|
|
18
|
+
if (content === undefined)
|
|
19
|
+
throw new Error(`Unexpected ${name} call`);
|
|
20
|
+
return { role: 'assistant', name, content };
|
|
21
|
+
}) });
|
|
22
|
+
const creator = agent('creator', [...candidates]), reviewer = agent('reviewer', [...reviews]);
|
|
23
|
+
const validate = jest.fn(async () => { calls.push('graph'); return validations.shift() ?? []; });
|
|
24
|
+
const finish = jest.fn();
|
|
25
|
+
const runner = await (0, runner_creator_reviewer_1.creatorReviewerRunner)(configuration, { agent: async (name) => name === 'creator' ? creator : reviewer,
|
|
26
|
+
tools: (0, ai_tools_1.createToolRepository)({ graph: { type: 'validator', validate }, review: { type: 'validator', validate: async (message) => { calls.push('review'); return (0, review_response_1.reviewResponseValidator)(message); } }, done: { type: 'finished', finish } }) });
|
|
27
|
+
const status = await runner.run({ messages, maxMessages, append: async (message) => { messages.push(message); } });
|
|
28
|
+
expect(finish).toHaveBeenCalledTimes(1);
|
|
29
|
+
expect(messages.length - 2).toBeLessThanOrEqual(maxMessages);
|
|
30
|
+
return { status, calls, messages, histories, finish };
|
|
31
|
+
}
|
|
32
|
+
test('valid candidate and approval finish with the candidate, not the review', async () => {
|
|
33
|
+
const r = await execute([graph], [[]], [approved]);
|
|
34
|
+
expect(r.status).toBe('approved');
|
|
35
|
+
expect(r.calls).toEqual(['creator', 'graph', 'reviewer', 'review']);
|
|
36
|
+
expect(r.finish).toHaveBeenCalledWith({ answer: 42 });
|
|
37
|
+
expect(r.histories[1]).toEqual(r.messages.slice(0, 4));
|
|
38
|
+
});
|
|
39
|
+
test('syntax failures bypass reviewer and are fed directly back to creator', async () => {
|
|
40
|
+
const r = await execute(['bad', graph], [['Invalid graph'], []], [approved]);
|
|
41
|
+
expect(r.calls).toEqual(['creator', 'graph', 'creator', 'graph', 'reviewer', 'review']);
|
|
42
|
+
expect(r.histories[1].at(-1)).toMatchObject({ role: 'user', name: 'graph', content: '["Invalid graph"]', metadata: { tool: { succeeded: false } } });
|
|
43
|
+
expect(r.status).toBe('approved');
|
|
44
|
+
});
|
|
45
|
+
test('semantic rejection revises candidate and retains the whole shared conversation', async () => {
|
|
46
|
+
const r = await execute(['{"answer":0}', graph], [[], []], [rejected, approved]);
|
|
47
|
+
expect(r.calls).toEqual(['creator', 'graph', 'reviewer', 'review', 'creator', 'graph', 'reviewer', 'review']);
|
|
48
|
+
expect(r.histories[2]).toEqual(r.messages.slice(0, 6));
|
|
49
|
+
expect(r.histories[2].at(-2)).toMatchObject({ name: 'reviewer', content: rejected });
|
|
50
|
+
expect(r.finish).toHaveBeenCalledWith({ answer: 42 });
|
|
51
|
+
});
|
|
52
|
+
test('ten generated messages bound repeated syntax failures', async () => {
|
|
53
|
+
const r = await execute(Array(5).fill('bad'), Array.from({ length: 5 }, () => ['invalid']), []);
|
|
54
|
+
expect(r.status).toBe('exhausted');
|
|
55
|
+
expect(r.messages).toHaveLength(12);
|
|
56
|
+
expect(r.calls).not.toContain('reviewer');
|
|
57
|
+
expect(r.finish).toHaveBeenCalledWith(['Message budget exhausted', 'invalid']);
|
|
58
|
+
});
|
|
59
|
+
test('budget cannot be exceeded even when a valid candidate awaits review', async () => {
|
|
60
|
+
const r = await execute([graph], [[]], [], 2);
|
|
61
|
+
expect(r.status).toBe('exhausted');
|
|
62
|
+
expect(r.calls).toEqual(['creator', 'graph']);
|
|
63
|
+
expect(r.finish).toHaveBeenCalledWith(['Message budget exhausted']);
|
|
64
|
+
expect((await execute([], [], [], 1)).calls).toEqual([]);
|
|
65
|
+
});
|
|
66
|
+
test('a review rejection at the budget boundary never approves the candidate', async () => {
|
|
67
|
+
const r = await execute([graph], [[]], [rejected], 4);
|
|
68
|
+
expect(r.status).toBe('exhausted');
|
|
69
|
+
expect(r.finish).toHaveBeenCalledWith(['Message budget exhausted', 'Wrong equation']);
|
|
70
|
+
});
|
|
71
|
+
test.each(['yes', '{"approved":"true","feedback":"ok"}', '{"approved":true}', '{"approved":true,"feedback":""}', '{"approved":true,"feedback":"ok","extra":1}'])('malformed review retries the reviewer: %s', async (text) => {
|
|
72
|
+
expect((0, review_response_1.parseReview)(text)).toBeUndefined();
|
|
73
|
+
const r = await execute([graph], [[]], [text, approved]);
|
|
74
|
+
expect(r.status).toBe('approved');
|
|
75
|
+
expect(r.calls).toEqual(['creator', 'graph', 'reviewer', 'review', 'reviewer', 'review']);
|
|
76
|
+
expect(r.histories[2].at(-1)).toMatchObject({ name: 'review', metadata: { tool: { succeeded: false } } });
|
|
77
|
+
expect(r.finish).toHaveBeenCalledWith({ answer: 42 });
|
|
78
|
+
});
|
|
79
|
+
test('malformed reviews exhaust the same ten-message budget without regenerating', async () => {
|
|
80
|
+
const r = await execute([graph], [[]], Array(4).fill('invalid'));
|
|
81
|
+
expect(r.status).toBe('exhausted');
|
|
82
|
+
expect(r.messages).toHaveLength(12);
|
|
83
|
+
expect(r.calls.filter(call => call === 'creator')).toHaveLength(1);
|
|
84
|
+
expect(r.finish).toHaveBeenCalledWith(['Message budget exhausted', expect.stringContaining('Return only a JSON object')]);
|
|
85
|
+
});
|
|
86
|
+
test('a reviewer is not called if only one message remains', async () => {
|
|
87
|
+
const r = await execute([graph], [[]], [], 3);
|
|
88
|
+
expect(r.status).toBe('exhausted');
|
|
89
|
+
expect(r.calls).toEqual(['creator', 'graph']);
|
|
90
|
+
});
|
|
91
|
+
test('missing or wrong-type review validator fails before agent resolution', async () => {
|
|
92
|
+
const agent = jest.fn();
|
|
93
|
+
const graph = { type: 'validator', validate: async () => [] };
|
|
94
|
+
const done = { type: 'finished', finish: () => { } };
|
|
95
|
+
await expect((0, runner_creator_reviewer_1.creatorReviewerRunner)(configuration, { agent, tools: (0, ai_tools_1.createToolRepository)({ graph, done }) })).rejects.toThrow('Unknown AI tool');
|
|
96
|
+
await expect((0, runner_creator_reviewer_1.creatorReviewerRunner)(configuration, { agent, tools: (0, ai_tools_1.createToolRepository)({ graph, done, review: done }) })).rejects.toThrow('expected');
|
|
97
|
+
expect(agent).not.toHaveBeenCalled();
|
|
98
|
+
});
|
|
99
|
+
test('tools are resolved before agents', async () => {
|
|
100
|
+
const agent = jest.fn();
|
|
101
|
+
const tools = (0, ai_tools_1.createToolRepository)({ done: { type: 'finished', finish: () => { } } });
|
|
102
|
+
await expect((0, runner_creator_reviewer_1.creatorReviewerRunner)(configuration, { agent, tools })).rejects.toThrow('Unknown AI tool');
|
|
103
|
+
expect(agent).not.toHaveBeenCalled();
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=runner-creator-reviewer.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner-creator-reviewer.spec.js","sourceRoot":"","sources":["../../src/runner-creator-reviewer.spec.ts"],"names":[],"mappings":";;AAAA,uEAA+D;AAC/D,uDAAsE;AAEtE,iDAAuD;AAEvD,MAAM,aAAa,GAAG,EAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAA;AAC7J,MAAM,QAAQ,GAAG,8CAA8C,CAAA;AAC/D,MAAM,QAAQ,GAAG,gDAAgD,CAAA;AACjE,MAAM,KAAK,GAAG,eAAe,CAAA;AAE7B,KAAK,UA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,KAAK,EAAE,IAAA,+BAAoB,EAAC,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAC1I,MAAM,MAAM,CAAC,IAAA,+CAAqB,EAAC,aAAa,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,IAAA,+BAAoB,EAAC,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IACjJ,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;AACxC,CAAC,CAAC,CAAA;AACF,IAAI,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;IAChD,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IACvB,MAAM,KAAK,GAAG,IAAA,+BAAoB,EAAC,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC,EAAC,EAAC,CAAC,CAAA;IAChF,MAAM,MAAM,CAAC,IAAA,+CAAqB,EAAC,aAAa,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACrG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;AACxC,CAAC,CAAC,CAAA"}
|
package/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/ai-runner-creator-reviewer",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Bounded candidate generation, validation and semantic review",
|
|
4
|
+
"version": "0.0.40",
|
|
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/ai-runner": "0.0.40",
|
|
21
|
+
"@cobol-ts/ai": "0.0.40",
|
|
22
|
+
"@cobol-ts/ai-tools": "0.0.40",
|
|
23
|
+
"@cobol-ts/yaml-jsyaml": "0.0.40"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"typescript": "^5.2.2",
|
|
27
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
28
|
+
"@types/jest": "^29.0.0",
|
|
29
|
+
"@types/node": "^14.0.0",
|
|
30
|
+
"jest": "^29.0.0",
|
|
31
|
+
"ts-jest": "^29.0.0"
|
|
32
|
+
},
|
|
33
|
+
"eslintConfig": {
|
|
34
|
+
"extends": [
|
|
35
|
+
"react-app",
|
|
36
|
+
"react-app/jest"
|
|
37
|
+
],
|
|
38
|
+
"overrides": [
|
|
39
|
+
{
|
|
40
|
+
"files": [
|
|
41
|
+
"**/*.stories.*"
|
|
42
|
+
],
|
|
43
|
+
"rules": {
|
|
44
|
+
"import/no-anonymous-default-export": "off"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist/index.js",
|
|
51
|
+
"dist/index.d.ts",
|
|
52
|
+
"dist/src/",
|
|
53
|
+
"dist/**/*"
|
|
54
|
+
],
|
|
55
|
+
"keywords": [
|
|
56
|
+
"indexing"
|
|
57
|
+
],
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"module": "./index.ts",
|
|
60
|
+
"repository": "git@github.com:intellimaintain/intellimaintain.git",
|
|
61
|
+
"scripts": {
|
|
62
|
+
"test": "jest --config jest.config.json --env node",
|
|
63
|
+
"test:watch": "npm run test -- --watch"
|
|
64
|
+
}
|
|
6
65
|
}
|