@resolveio/server-lib 22.3.124 → 22.3.125
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/collections/ai-run.collection.d.ts +3 -0
- package/collections/ai-run.collection.js +170 -0
- package/collections/ai-run.collection.js.map +1 -0
- package/managers/ai-run-evidence.manager.d.ts +36 -0
- package/managers/ai-run-evidence.manager.js +377 -0
- package/managers/ai-run-evidence.manager.js.map +1 -0
- package/managers/openai-usage-ledger.manager.d.ts +1 -0
- package/managers/openai-usage-ledger.manager.js +5 -56
- package/managers/openai-usage-ledger.manager.js.map +1 -1
- package/models/ai-run.model.d.ts +19 -0
- package/models/ai-run.model.js +4 -0
- package/models/ai-run.model.js.map +1 -0
- package/package.json +3 -1
- package/public_api.d.ts +7 -0
- package/public_api.js +7 -0
- package/public_api.js.map +1 -1
- package/util/ai-run-evidence-adapters.d.ts +33 -0
- package/util/ai-run-evidence-adapters.js +660 -0
- package/util/ai-run-evidence-adapters.js.map +1 -0
- package/util/ai-run-evidence-dashboard.d.ts +67 -0
- package/util/ai-run-evidence-dashboard.js +309 -0
- package/util/ai-run-evidence-dashboard.js.map +1 -0
- package/util/ai-run-evidence-eval.d.ts +86 -0
- package/util/ai-run-evidence-eval.js +854 -0
- package/util/ai-run-evidence-eval.js.map +1 -0
- package/util/ai-run-evidence.d.ts +212 -0
- package/util/ai-run-evidence.js +649 -0
- package/util/ai-run-evidence.js.map +1 -0
- package/util/ai-runner-qa-tools.d.ts +1 -0
- package/util/ai-runner-qa-tools.js +129 -10
- package/util/ai-runner-qa-tools.js.map +1 -1
- package/util/openai-usage-cost.d.ts +6 -0
- package/util/openai-usage-cost.js +92 -0
- package/util/openai-usage-cost.js.map +1 -0
|
@@ -36,67 +36,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.estimateOpenAIUsageCost = void 0;
|
|
39
40
|
exports.recordOpenAIUsage = recordOpenAIUsage;
|
|
40
|
-
var common_1 = require("../util/common");
|
|
41
|
-
var resolveio_server_app_1 = require("../resolveio-server-app");
|
|
42
41
|
var openai_usage_ledger_collection_1 = require("../collections/openai-usage-ledger.collection");
|
|
42
|
+
var openai_usage_cost_1 = require("../util/openai-usage-cost");
|
|
43
|
+
var openai_usage_cost_2 = require("../util/openai-usage-cost");
|
|
44
|
+
Object.defineProperty(exports, "estimateOpenAIUsageCost", { enumerable: true, get: function () { return openai_usage_cost_2.estimateOpenAIUsageCost; } });
|
|
43
45
|
var toNumber = function (value) {
|
|
44
46
|
var parsed = Number(value);
|
|
45
47
|
return Number.isFinite(parsed) ? parsed : 0;
|
|
46
48
|
};
|
|
47
|
-
var normalizeModelKey = function (value) {
|
|
48
|
-
return String(value || '').trim().toLowerCase();
|
|
49
|
-
};
|
|
50
|
-
var parsePricingJson = function (raw) {
|
|
51
|
-
if (!raw) {
|
|
52
|
-
return {};
|
|
53
|
-
}
|
|
54
|
-
try {
|
|
55
|
-
var parsed_1 = JSON.parse(raw);
|
|
56
|
-
if (!parsed_1 || typeof parsed_1 !== 'object') {
|
|
57
|
-
return {};
|
|
58
|
-
}
|
|
59
|
-
var out_1 = {};
|
|
60
|
-
Object.keys(parsed_1).forEach(function (key) {
|
|
61
|
-
var _a, _b, _c, _d, _e, _f;
|
|
62
|
-
var entry = parsed_1[key] || {};
|
|
63
|
-
var inputPer1k = toNumber((_c = (_b = (_a = entry.inputPer1k) !== null && _a !== void 0 ? _a : entry.input) !== null && _b !== void 0 ? _b : entry.prompt) !== null && _c !== void 0 ? _c : 0);
|
|
64
|
-
var outputPer1k = toNumber((_f = (_e = (_d = entry.outputPer1k) !== null && _d !== void 0 ? _d : entry.output) !== null && _e !== void 0 ? _e : entry.completion) !== null && _f !== void 0 ? _f : 0);
|
|
65
|
-
if (inputPer1k || outputPer1k) {
|
|
66
|
-
out_1[normalizeModelKey(key)] = { inputPer1k: inputPer1k, outputPer1k: outputPer1k };
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return out_1;
|
|
70
|
-
}
|
|
71
|
-
catch (_a) {
|
|
72
|
-
return {};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var resolvePricingConfig = function () {
|
|
76
|
-
var _a, _b, _c, _d, _e, _f;
|
|
77
|
-
var config = resolveio_server_app_1.ResolveIOServer.getServerConfig() || {};
|
|
78
|
-
var rawJson = String((_b = (_a = config['OPENAI_MODEL_PRICING']) !== null && _a !== void 0 ? _a : process.env.OPENAI_MODEL_PRICING) !== null && _b !== void 0 ? _b : '').trim();
|
|
79
|
-
var defaultInput = toNumber((_d = (_c = config['OPENAI_COST_PER_1K_INPUT_TOKENS']) !== null && _c !== void 0 ? _c : process.env.OPENAI_COST_PER_1K_INPUT_TOKENS) !== null && _d !== void 0 ? _d : 0);
|
|
80
|
-
var defaultOutput = toNumber((_f = (_e = config['OPENAI_COST_PER_1K_OUTPUT_TOKENS']) !== null && _e !== void 0 ? _e : process.env.OPENAI_COST_PER_1K_OUTPUT_TOKENS) !== null && _f !== void 0 ? _f : 0);
|
|
81
|
-
return {
|
|
82
|
-
perModel: parsePricingJson(rawJson),
|
|
83
|
-
defaultPricing: { inputPer1k: defaultInput, outputPer1k: defaultOutput }
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
var estimateCost = function (model, inputTokens, outputTokens, cachedInputTokens) {
|
|
87
|
-
if (cachedInputTokens === void 0) { cachedInputTokens = 0; }
|
|
88
|
-
var _a = resolvePricingConfig(), perModel = _a.perModel, defaultPricing = _a.defaultPricing;
|
|
89
|
-
var normalizedModel = normalizeModelKey(model);
|
|
90
|
-
var pricing = perModel[normalizedModel] || defaultPricing;
|
|
91
|
-
if (!pricing.inputPer1k && !pricing.outputPer1k) {
|
|
92
|
-
return 0;
|
|
93
|
-
}
|
|
94
|
-
// Cached prompt tokens are typically discounted or free; only uncached input should use full input pricing.
|
|
95
|
-
var uncachedInputTokens = Math.max(0, toNumber(inputTokens) - toNumber(cachedInputTokens));
|
|
96
|
-
var inputCost = (uncachedInputTokens / 1000) * pricing.inputPer1k;
|
|
97
|
-
var outputCost = (toNumber(outputTokens) / 1000) * pricing.outputPer1k;
|
|
98
|
-
return (0, common_1.round)(inputCost + outputCost, 6);
|
|
99
|
-
};
|
|
100
49
|
function recordOpenAIUsage(input) {
|
|
101
50
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
51
|
var idClient, inputTokens, cachedInputTokens, outputTokens, totalTokens, model, normalizedInputCostEstimate, costEstimate;
|
|
@@ -118,7 +67,7 @@ function recordOpenAIUsage(input) {
|
|
|
118
67
|
normalizedInputCostEstimate = toNumber(input.cost_estimate);
|
|
119
68
|
costEstimate = normalizedInputCostEstimate > 0
|
|
120
69
|
? normalizedInputCostEstimate
|
|
121
|
-
:
|
|
70
|
+
: (0, openai_usage_cost_1.estimateOpenAIUsageCost)(model, inputTokens, outputTokens, cachedInputTokens);
|
|
122
71
|
return [4 /*yield*/, openai_usage_ledger_collection_1.OpenAIUsageLedger.insertOne({
|
|
123
72
|
id_client: idClient,
|
|
124
73
|
timestamp: input.timestamp || new Date(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/managers/openai-usage-ledger.manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/managers/openai-usage-ledger.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,8CAgCC;AAxDD,gGAAkF;AAClF,+DAAoE;AACpE,+DAA8F;AAArF,4HAAA,uBAAuB,OAAA;AAiBhC,IAAM,QAAQ,GAAG,UAAC,KAAU;IAC3B,IAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF,SAAsB,iBAAiB,CAAC,KAA6B;;;;;;oBACpE,IAAI,CAAC,KAAK,EAAE,CAAC;wBACZ,sBAAO;oBACR,CAAC;oBACK,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;oBAChD,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;oBAC3C,iBAAiB,GAAG,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;oBACxD,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;oBAC7C,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;oBACjD,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;wBACrD,sBAAO;oBACR,CAAC;oBACK,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;oBACtD,2BAA2B,GAAG,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;oBAC5D,YAAY,GAAG,2BAA2B,GAAG,CAAC;wBACnD,CAAC,CAAC,2BAA2B;wBAC7B,CAAC,CAAC,IAAA,2CAAuB,EAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,CAAC,CAAC;oBAEhF,qBAAM,kDAAiB,CAAC,SAAS,CAAC;4BACjC,SAAS,EAAE,QAAQ;4BACnB,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE;4BACxC,KAAK,OAAA;4BACL,YAAY,EAAE,WAAW;4BACzB,mBAAmB,EAAE,iBAAiB;4BACtC,aAAa,EAAE,YAAY;4BAC3B,YAAY,EAAE,WAAW,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC;4BACzD,aAAa,EAAE,YAAY;4BAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,KAAK;4BAClC,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE;4BAC9B,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,EAAE;4BAClC,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;yBAC5C,CAAC,EAAA;;oBAbF,SAaE,CAAC;;;;;CACH","file":"openai-usage-ledger.manager.js","sourcesContent":["import { OpenAIUsageLedger } from '../collections/openai-usage-ledger.collection';\nimport { estimateOpenAIUsageCost } from '../util/openai-usage-cost';\nexport { estimateOpenAIUsageCost, OpenAIUsagePricingConfig } from '../util/openai-usage-cost';\n\nexport interface OpenAIUsageRecordInput {\n\tid_client?: string;\n\tmodel: string;\n\tinput_tokens: number;\n\tcached_input_tokens?: number;\n\toutput_tokens: number;\n\ttotal_tokens: number;\n\tbillable?: boolean;\n\tcategory?: string;\n\tid_request?: string;\n\tid_conversation?: string;\n\ttimestamp?: Date;\n\tcost_estimate?: number;\n}\n\nconst toNumber = (value: any): number => {\n\tconst parsed = Number(value);\n\treturn Number.isFinite(parsed) ? parsed : 0;\n};\n\nexport async function recordOpenAIUsage(input: OpenAIUsageRecordInput): Promise<void> {\n\tif (!input) {\n\t\treturn;\n\t}\n\tconst idClient = String(input.id_client || '').trim();\n\tconst inputTokens = toNumber(input.input_tokens);\n\tconst cachedInputTokens = toNumber(input.cached_input_tokens);\n\tconst outputTokens = toNumber(input.output_tokens);\n\tconst totalTokens = toNumber(input.total_tokens);\n\tif (!totalTokens && (!inputTokens && !outputTokens)) {\n\t\treturn;\n\t}\n\tconst model = String(input.model || '').trim() || 'unknown';\n\tconst normalizedInputCostEstimate = toNumber(input.cost_estimate);\n\tconst costEstimate = normalizedInputCostEstimate > 0\n\t\t? normalizedInputCostEstimate\n\t\t: estimateOpenAIUsageCost(model, inputTokens, outputTokens, cachedInputTokens);\n\n\tawait OpenAIUsageLedger.insertOne({\n\t\tid_client: idClient,\n\t\ttimestamp: input.timestamp || new Date(),\n\t\tmodel,\n\t\tinput_tokens: inputTokens,\n\t\tcached_input_tokens: cachedInputTokens,\n\t\toutput_tokens: outputTokens,\n\t\ttotal_tokens: totalTokens || (inputTokens + outputTokens),\n\t\tcost_estimate: costEstimate,\n\t\tbillable: input.billable !== false,\n\t\tcategory: input.category || '',\n\t\tid_request: input.id_request || '',\n\t\tid_conversation: input.id_conversation || ''\n\t});\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CollectionDocument } from './collection-document.model';
|
|
2
|
+
import type { AIRunCost, AIRunEvent, AIRunGateResult, AIRunOutcomeLabel, AIRunSource, AIQaRun } from '../util/ai-run-evidence';
|
|
3
|
+
export interface AIRunModel extends CollectionDocument {
|
|
4
|
+
source: AIRunSource;
|
|
5
|
+
sourceIds: Record<string, string>;
|
|
6
|
+
title?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
phase?: string;
|
|
9
|
+
startedAt?: Date | string;
|
|
10
|
+
completedAt?: Date | string;
|
|
11
|
+
outcome: AIRunOutcomeLabel;
|
|
12
|
+
events: AIRunEvent[];
|
|
13
|
+
gates: AIRunGateResult[];
|
|
14
|
+
qa?: AIQaRun;
|
|
15
|
+
cost?: AIRunCost;
|
|
16
|
+
nextAction?: string;
|
|
17
|
+
warnings?: string[];
|
|
18
|
+
metadata?: Record<string, any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/models/ai-run.model.ts"],"names":[],"mappings":"","file":"ai-run.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\nimport type {\n\tAIRunCost,\n\tAIRunEvent,\n\tAIRunGateResult,\n\tAIRunOutcomeLabel,\n\tAIRunSource,\n\tAIQaRun\n} from '../util/ai-run-evidence';\n\nexport interface AIRunModel extends CollectionDocument {\n\tsource: AIRunSource;\n\tsourceIds: Record<string, string>;\n\ttitle?: string;\n\tstatus?: string;\n\tphase?: string;\n\tstartedAt?: Date | string;\n\tcompletedAt?: Date | string;\n\toutcome: AIRunOutcomeLabel;\n\tevents: AIRunEvent[];\n\tgates: AIRunGateResult[];\n\tqa?: AIQaRun;\n\tcost?: AIRunCost;\n\tnextAction?: string;\n\twarnings?: string[];\n\tmetadata?: Record<string, any>;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolveio/server-lib",
|
|
3
|
-
"version": "22.3.
|
|
3
|
+
"version": "22.3.125",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"package": "./build_package.sh",
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"ai-assistant-corpus-build": "node --require ts-node/register tests/ai-assistant-corpus-build.ts",
|
|
27
27
|
"ai-assistant-corpus-replay-e2e": "node --require ts-node/register tests/ai-assistant-corpus-replay-e2e.ts",
|
|
28
28
|
"method-publication-generator-test": "node --require ts-node/register tests/method-publication-generator.test.ts",
|
|
29
|
+
"ai-run-evidence-test": "node --require ts-node/register tests/ai-run-evidence.test.ts",
|
|
30
|
+
"ai-run-eval-test": "node --require ts-node/register tests/ai-run-eval.test.ts",
|
|
29
31
|
"ai-assistant-nightly-eval": "npm run ai-assistant-corpus-build && npm run ai-assistant-data-parity-e2e && npm run ai-assistant-corpus-replay-e2e && npm run ai-assistant-eval-triage"
|
|
30
32
|
},
|
|
31
33
|
"author": "",
|
package/public_api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './ai/resolveio-platform-intelligence-memory-corpus';
|
|
|
6
6
|
export * from './collections/ai-terminal-issue-report.collection';
|
|
7
7
|
export * from './collections/ai-terminal-conversation.collection';
|
|
8
8
|
export * from './collections/ai-terminal-message.collection';
|
|
9
|
+
export * from './collections/ai-run.collection';
|
|
9
10
|
export * from './collections/counter.collection';
|
|
10
11
|
export * from './collections/customer-portal-password.collection';
|
|
11
12
|
export * from './collections/customer-notification.collection';
|
|
@@ -34,6 +35,7 @@ export * from './collections/user-guide.collection';
|
|
|
34
35
|
export * from './collections/user.collection';
|
|
35
36
|
export * from './managers/mongo.manager';
|
|
36
37
|
export * from './managers/error-auto-fix.manager';
|
|
38
|
+
export * from './managers/ai-run-evidence.manager';
|
|
37
39
|
export * from './managers/ai-assistant-codex-manager.manager';
|
|
38
40
|
export * from './managers/slow-query-verifier.manager';
|
|
39
41
|
export * from './managers/slow-query.manager';
|
|
@@ -44,6 +46,7 @@ export * from './models/app-setting.model';
|
|
|
44
46
|
export * from './models/ai-terminal-issue-report.model';
|
|
45
47
|
export * from './models/ai-terminal-conversation.model';
|
|
46
48
|
export * from './models/ai-terminal-message.model';
|
|
49
|
+
export * from './models/ai-run.model';
|
|
47
50
|
export * from './models/billing-logged-in-users.model';
|
|
48
51
|
export * from './models/collection-document.model';
|
|
49
52
|
export * from './models/communication-metric.model';
|
|
@@ -91,6 +94,10 @@ export * from './services/codex-client';
|
|
|
91
94
|
export * from './util/common';
|
|
92
95
|
export * from './util/customer-portal-password';
|
|
93
96
|
export * from './util/ai-qa-policy';
|
|
97
|
+
export * from './util/ai-run-evidence';
|
|
98
|
+
export * from './util/ai-run-evidence-adapters';
|
|
99
|
+
export * from './util/ai-run-evidence-dashboard';
|
|
100
|
+
export * from './util/ai-run-evidence-eval';
|
|
94
101
|
export * from './util/ai-runner-artifacts';
|
|
95
102
|
export * from './util/ai-runner-qa-auth';
|
|
96
103
|
export * from './util/ai-runner-qa-tools';
|
package/public_api.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./ai/resolveio-platform-intelligence-memory-corpus"), expo
|
|
|
22
22
|
__exportStar(require("./collections/ai-terminal-issue-report.collection"), exports);
|
|
23
23
|
__exportStar(require("./collections/ai-terminal-conversation.collection"), exports);
|
|
24
24
|
__exportStar(require("./collections/ai-terminal-message.collection"), exports);
|
|
25
|
+
__exportStar(require("./collections/ai-run.collection"), exports);
|
|
25
26
|
__exportStar(require("./collections/counter.collection"), exports);
|
|
26
27
|
__exportStar(require("./collections/customer-portal-password.collection"), exports);
|
|
27
28
|
__exportStar(require("./collections/customer-notification.collection"), exports);
|
|
@@ -50,6 +51,7 @@ __exportStar(require("./collections/user-guide.collection"), exports);
|
|
|
50
51
|
__exportStar(require("./collections/user.collection"), exports);
|
|
51
52
|
__exportStar(require("./managers/mongo.manager"), exports);
|
|
52
53
|
__exportStar(require("./managers/error-auto-fix.manager"), exports);
|
|
54
|
+
__exportStar(require("./managers/ai-run-evidence.manager"), exports);
|
|
53
55
|
__exportStar(require("./managers/ai-assistant-codex-manager.manager"), exports);
|
|
54
56
|
__exportStar(require("./managers/slow-query-verifier.manager"), exports);
|
|
55
57
|
__exportStar(require("./managers/slow-query.manager"), exports);
|
|
@@ -60,6 +62,7 @@ __exportStar(require("./models/app-setting.model"), exports);
|
|
|
60
62
|
__exportStar(require("./models/ai-terminal-issue-report.model"), exports);
|
|
61
63
|
__exportStar(require("./models/ai-terminal-conversation.model"), exports);
|
|
62
64
|
__exportStar(require("./models/ai-terminal-message.model"), exports);
|
|
65
|
+
__exportStar(require("./models/ai-run.model"), exports);
|
|
63
66
|
__exportStar(require("./models/billing-logged-in-users.model"), exports);
|
|
64
67
|
__exportStar(require("./models/collection-document.model"), exports);
|
|
65
68
|
__exportStar(require("./models/communication-metric.model"), exports);
|
|
@@ -107,6 +110,10 @@ __exportStar(require("./services/codex-client"), exports);
|
|
|
107
110
|
__exportStar(require("./util/common"), exports);
|
|
108
111
|
__exportStar(require("./util/customer-portal-password"), exports);
|
|
109
112
|
__exportStar(require("./util/ai-qa-policy"), exports);
|
|
113
|
+
__exportStar(require("./util/ai-run-evidence"), exports);
|
|
114
|
+
__exportStar(require("./util/ai-run-evidence-adapters"), exports);
|
|
115
|
+
__exportStar(require("./util/ai-run-evidence-dashboard"), exports);
|
|
116
|
+
__exportStar(require("./util/ai-run-evidence-eval"), exports);
|
|
110
117
|
__exportStar(require("./util/ai-runner-artifacts"), exports);
|
|
111
118
|
__exportStar(require("./util/ai-runner-qa-auth"), exports);
|
|
112
119
|
__exportStar(require("./util/ai-runner-qa-tools"), exports);
|
package/public_api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,uEAAqD;AACrD,8EAA4D;AAC5D,qFAAmE;AACnE,oFAAkE;AAClE,oFAAkE;AAClE,+EAA6D;AAC7D,mEAAiD;AACjD,oFAAkE;AAClE,iFAA+D;AAC/D,gFAA8D;AAC9D,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,uEAAqD;AACrD,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,4EAA0D;AAC1D,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+EAA6D;AAC7D,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAClD,gFAA8D;AAC9D,yEAAuD;AACvD,gEAA8C;AAC9C,mFAAiE;AACjE,0EAAwD;AACxD,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,0EAAwD;AACxD,qEAAmD;AACnD,yEAAuD;AACvD,qEAAmD;AACnD,sEAAoD;AACpD,yDAAuC;AACvC,0EAAwD;AACxD,uEAAqD;AACrD,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,6DAA2C;AAC3C,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,qEAAmD;AACnD,4DAA0C;AAC1C,4DAA0C;AAC1C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,yEAAuD;AACvD,0EAAwD;AACxD,yDAAuC;AACvC,2DAAyC;AACzC,0DAAwC;AACxC,gDAA8B;AAC9B,kEAAgD;AAChD,sDAAoC;AACpC,6DAA2C;AAC3C,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,mDAAiC","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/app-setting.collection';\nexport * from './ai/resolveio-platform-intelligence';\nexport * from './ai/resolveio-platform-intelligence-memory';\nexport * from './ai/resolveio-platform-intelligence-memory-corpus';\nexport * from './collections/ai-terminal-issue-report.collection';\nexport * from './collections/ai-terminal-conversation.collection';\nexport * from './collections/ai-terminal-message.collection';\nexport * from './collections/counter.collection';\nexport * from './collections/customer-portal-password.collection';\nexport * from './collections/customer-notification.collection';\nexport * from './collections/communication-metric.collection';\nexport * from './collections/cron-job-history.collection';\nexport * from './collections/cron-job.collection';\nexport * from './collections/email-history.collection';\nexport * from './collections/email-verified.collection';\nexport * from './collections/file.collection';\nexport * from './collections/flag-update.collection';\nexport * from './collections/flag.collection';\nexport * from './collections/log-method-latency.collection';\nexport * from './collections/log-subscription.collection';\nexport * from './collections/log.collection';\nexport * from './collections/logged-in-users.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-function.collection';\nexport * from './collections/monitor-memory.collection';\nexport * from './collections/monitor-mongo.collection';\nexport * from './collections/notification.collection';\nexport * from './collections/openai-usage-ledger.collection';\nexport * from './collections/report-builder-library.collection';\nexport * from './collections/report-builder-report.collection';\nexport * from './collections/user-group.collection';\nexport * from './collections/user-guide.collection';\nexport * from './collections/user.collection';\nexport * from './managers/mongo.manager';\nexport * from './managers/error-auto-fix.manager';\nexport * from './managers/ai-assistant-codex-manager.manager';\nexport * from './managers/slow-query-verifier.manager';\nexport * from './managers/slow-query.manager';\nexport * from './managers/customer-notification-content.manager';\nexport * from './managers/diagnostic-manager-bootstrap';\nexport * from './models/app-status.model';\nexport * from './models/app-setting.model';\nexport * from './models/ai-terminal-issue-report.model';\nexport * from './models/ai-terminal-conversation.model';\nexport * from './models/ai-terminal-message.model';\nexport * from './models/billing-logged-in-users.model';\nexport * from './models/collection-document.model';\nexport * from './models/communication-metric.model';\nexport * from './models/counter.model';\nexport * from './models/customer-portal-password.model';\nexport * from './models/customer-notification.model';\nexport * from './models/cron-job-history.model';\nexport * from './models/cron-job.model';\nexport * from './models/dialog.model';\nexport * from './models/email-history.model';\nexport * from './models/email-verified.model';\nexport * from './models/file.model';\nexport * from './models/flag-update.model';\nexport * from './models/flag.model';\nexport * from './models/log-method-latency.model';\nexport * from './models/log-subscription.model';\nexport * from './models/log.model';\nexport * from './models/logged-in-users.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-memory.model';\nexport * from './models/monitor-mongo.model';\nexport * from './models/notification.model';\nexport * from './models/openai-usage-ledger.model';\nexport * from './models/pagination.model';\nexport * from './models/permission.model';\nexport * from './models/report-builder-library.model';\nexport * from './models/report-builder-report.model';\nexport * from './models/report-builder.model';\nexport * from './models/select-data-label.model';\nexport * from './models/server-message.model';\nexport * from './models/subscription.model';\nexport * from './models/support-ticket.model';\nexport * from './models/user-group.model';\nexport * from './models/user-guide.model';\nexport * from './models/user.model';\nexport * from './types/error-report';\nexport * from './types/slow-query-report';\nexport * from './managers/openai-usage-ledger.manager';\nexport * from './managers/communication-metric.manager';\nexport * from './resolveio-server-app';\nexport * from './services/openai-client';\nexport * from './services/codex-client';\nexport * from './util/common';\nexport * from './util/customer-portal-password';\nexport * from './util/ai-qa-policy';\nexport * from './util/ai-runner-artifacts';\nexport * from './util/ai-runner-qa-auth';\nexport * from './util/ai-runner-qa-tools';\nexport * from './util/aicoder-runner-v6';\nexport * from './util/runner-process-janitor';\nexport * from './util/support-runner-v5';\nexport * from './util/tokenizer';\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,uEAAqD;AACrD,8EAA4D;AAC5D,qFAAmE;AACnE,oFAAkE;AAClE,oFAAkE;AAClE,+EAA6D;AAC7D,kEAAgD;AAChD,mEAAiD;AACjD,oFAAkE;AAClE,iFAA+D;AAC/D,gFAA8D;AAC9D,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,uEAAqD;AACrD,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,4EAA0D;AAC1D,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,+EAA6D;AAC7D,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAClD,qEAAmD;AACnD,gFAA8D;AAC9D,yEAAuD;AACvD,gEAA8C;AAC9C,mFAAiE;AACjE,0EAAwD;AACxD,4DAA0C;AAC1C,6DAA2C;AAC3C,0EAAwD;AACxD,0EAAwD;AACxD,qEAAmD;AACnD,wDAAsC;AACtC,yEAAuD;AACvD,qEAAmD;AACnD,sEAAoD;AACpD,yDAAuC;AACvC,0EAAwD;AACxD,uEAAqD;AACrD,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,6DAA2C;AAC3C,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,qEAAmD;AACnD,4DAA0C;AAC1C,4DAA0C;AAC1C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,yEAAuD;AACvD,0EAAwD;AACxD,yDAAuC;AACvC,2DAAyC;AACzC,0DAAwC;AACxC,gDAA8B;AAC9B,kEAAgD;AAChD,sDAAoC;AACpC,yDAAuC;AACvC,kEAAgD;AAChD,mEAAiD;AACjD,8DAA4C;AAC5C,6DAA2C;AAC3C,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,mDAAiC","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/app-setting.collection';\nexport * from './ai/resolveio-platform-intelligence';\nexport * from './ai/resolveio-platform-intelligence-memory';\nexport * from './ai/resolveio-platform-intelligence-memory-corpus';\nexport * from './collections/ai-terminal-issue-report.collection';\nexport * from './collections/ai-terminal-conversation.collection';\nexport * from './collections/ai-terminal-message.collection';\nexport * from './collections/ai-run.collection';\nexport * from './collections/counter.collection';\nexport * from './collections/customer-portal-password.collection';\nexport * from './collections/customer-notification.collection';\nexport * from './collections/communication-metric.collection';\nexport * from './collections/cron-job-history.collection';\nexport * from './collections/cron-job.collection';\nexport * from './collections/email-history.collection';\nexport * from './collections/email-verified.collection';\nexport * from './collections/file.collection';\nexport * from './collections/flag-update.collection';\nexport * from './collections/flag.collection';\nexport * from './collections/log-method-latency.collection';\nexport * from './collections/log-subscription.collection';\nexport * from './collections/log.collection';\nexport * from './collections/logged-in-users.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-function.collection';\nexport * from './collections/monitor-memory.collection';\nexport * from './collections/monitor-mongo.collection';\nexport * from './collections/notification.collection';\nexport * from './collections/openai-usage-ledger.collection';\nexport * from './collections/report-builder-library.collection';\nexport * from './collections/report-builder-report.collection';\nexport * from './collections/user-group.collection';\nexport * from './collections/user-guide.collection';\nexport * from './collections/user.collection';\nexport * from './managers/mongo.manager';\nexport * from './managers/error-auto-fix.manager';\nexport * from './managers/ai-run-evidence.manager';\nexport * from './managers/ai-assistant-codex-manager.manager';\nexport * from './managers/slow-query-verifier.manager';\nexport * from './managers/slow-query.manager';\nexport * from './managers/customer-notification-content.manager';\nexport * from './managers/diagnostic-manager-bootstrap';\nexport * from './models/app-status.model';\nexport * from './models/app-setting.model';\nexport * from './models/ai-terminal-issue-report.model';\nexport * from './models/ai-terminal-conversation.model';\nexport * from './models/ai-terminal-message.model';\nexport * from './models/ai-run.model';\nexport * from './models/billing-logged-in-users.model';\nexport * from './models/collection-document.model';\nexport * from './models/communication-metric.model';\nexport * from './models/counter.model';\nexport * from './models/customer-portal-password.model';\nexport * from './models/customer-notification.model';\nexport * from './models/cron-job-history.model';\nexport * from './models/cron-job.model';\nexport * from './models/dialog.model';\nexport * from './models/email-history.model';\nexport * from './models/email-verified.model';\nexport * from './models/file.model';\nexport * from './models/flag-update.model';\nexport * from './models/flag.model';\nexport * from './models/log-method-latency.model';\nexport * from './models/log-subscription.model';\nexport * from './models/log.model';\nexport * from './models/logged-in-users.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-memory.model';\nexport * from './models/monitor-mongo.model';\nexport * from './models/notification.model';\nexport * from './models/openai-usage-ledger.model';\nexport * from './models/pagination.model';\nexport * from './models/permission.model';\nexport * from './models/report-builder-library.model';\nexport * from './models/report-builder-report.model';\nexport * from './models/report-builder.model';\nexport * from './models/select-data-label.model';\nexport * from './models/server-message.model';\nexport * from './models/subscription.model';\nexport * from './models/support-ticket.model';\nexport * from './models/user-group.model';\nexport * from './models/user-guide.model';\nexport * from './models/user.model';\nexport * from './types/error-report';\nexport * from './types/slow-query-report';\nexport * from './managers/openai-usage-ledger.manager';\nexport * from './managers/communication-metric.manager';\nexport * from './resolveio-server-app';\nexport * from './services/openai-client';\nexport * from './services/codex-client';\nexport * from './util/common';\nexport * from './util/customer-portal-password';\nexport * from './util/ai-qa-policy';\nexport * from './util/ai-run-evidence';\nexport * from './util/ai-run-evidence-adapters';\nexport * from './util/ai-run-evidence-dashboard';\nexport * from './util/ai-run-evidence-eval';\nexport * from './util/ai-runner-artifacts';\nexport * from './util/ai-runner-qa-auth';\nexport * from './util/ai-runner-qa-tools';\nexport * from './util/aicoder-runner-v6';\nexport * from './util/runner-process-janitor';\nexport * from './util/support-runner-v5';\nexport * from './util/tokenizer';\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AIRun } from './ai-run-evidence';
|
|
2
|
+
export interface SupportAIRunAdapterInput {
|
|
3
|
+
ticket?: Record<string, any>;
|
|
4
|
+
job?: Record<string, any>;
|
|
5
|
+
versions?: Array<Record<string, any>>;
|
|
6
|
+
buildPlans?: Array<Record<string, any>>;
|
|
7
|
+
aiJobs?: Array<Record<string, any>>;
|
|
8
|
+
taskEvents?: Array<Record<string, any>>;
|
|
9
|
+
usageLedger?: Array<Record<string, any>>;
|
|
10
|
+
commits?: Array<Record<string, any>>;
|
|
11
|
+
qaEvidence?: Record<string, any>;
|
|
12
|
+
now?: Date | string;
|
|
13
|
+
}
|
|
14
|
+
export interface AICoderAIRunAdapterInput {
|
|
15
|
+
app?: Record<string, any>;
|
|
16
|
+
job?: Record<string, any>;
|
|
17
|
+
logs?: Array<Record<string, any>>;
|
|
18
|
+
usageLedger?: Array<Record<string, any>>;
|
|
19
|
+
commits?: Array<Record<string, any>>;
|
|
20
|
+
qaEvidence?: Record<string, any>;
|
|
21
|
+
now?: Date | string;
|
|
22
|
+
}
|
|
23
|
+
export interface AssistantAIRunAdapterInput {
|
|
24
|
+
conversation?: Record<string, any>;
|
|
25
|
+
messages?: Array<Record<string, any>>;
|
|
26
|
+
issueReports?: Array<Record<string, any>>;
|
|
27
|
+
usageLedger?: Array<Record<string, any>>;
|
|
28
|
+
correctnessChecks?: Array<Record<string, any>>;
|
|
29
|
+
now?: Date | string;
|
|
30
|
+
}
|
|
31
|
+
export declare function buildSupportAIRunFromEvidence(input: SupportAIRunAdapterInput): AIRun;
|
|
32
|
+
export declare function buildAICoderAIRunFromEvidence(input: AICoderAIRunAdapterInput): AIRun;
|
|
33
|
+
export declare function buildAssistantAIRunFromEvidence(input: AssistantAIRunAdapterInput): AIRun;
|