@exellix/ai-skills 7.1.0 → 7.1.1
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
|
@@ -542,21 +542,25 @@ npm run catalox:provision-ai-skills # upsert catalog metadata + Optimixer fiel
|
|
|
542
542
|
npm run catalox:provision-ai-engines # upsert in-repo engine rows → native `ai-engines`
|
|
543
543
|
npm run catalox:verify # validate live Catalox rows for runtime requirements
|
|
544
544
|
npm run live:professional-answer # smoke: professional-answer via Catalox + default gateway LLM
|
|
545
|
+
npm run live:re-consider # smoke: all five re-consider direct functions via Catalox + LLM
|
|
545
546
|
npm run test:real # extra real LLM scenarios; needs .env + valid Firebase credentials
|
|
546
547
|
```
|
|
547
548
|
|
|
548
549
|
#### Live tests (opt-in, `test/run.ts`)
|
|
549
550
|
|
|
550
|
-
Some cases use **real Catalox** (
|
|
551
|
+
Some cases use **real Catalox** (Mongo-backed catalog) and the same integration slice can invoke **real LLM** calls when provider keys are set. They are **off by default** so CI does not require a provisioned project.
|
|
551
552
|
|
|
552
553
|
Set **`AI_SKILLS_LIVE_TESTS=1`** (or `true` / `yes` / `on`) before **`npm run test:integration`** to append the live cases registered in **`test/run.ts`**:
|
|
553
554
|
|
|
554
|
-
- **Catalox `ai-skills` list** — read-only
|
|
555
|
+
- **Catalox `ai-skills` list** — read-only catalog list sanity check.
|
|
555
556
|
- **Catalox `ai-engines` list** — verifies **`npm run catalox:provision-ai-engines`** wrote the **`ai-gateway`** row (read-only).
|
|
557
|
+
- **Re-consider direct functions** — real LLM calls for `fillReConsiderationGap`, `reviewReConsiderationResponse`, `rewriteReConsiderationScope`, `rewriteReConsiderationFull`, `calibrateReConsiderationDecision` (provision + sync templates first).
|
|
558
|
+
|
|
559
|
+
**Unit mocks for re-consider** live only under **`test/`** (CI wiring via fake gateway). Production code and **`npm run live:re-consider`** use real Catalox + real LLM only — no mock fallbacks.
|
|
556
560
|
|
|
557
561
|
**Why not in `@x12i/catalox`:** only **this package’s** test harness reads **`AI_SKILLS_LIVE_TESTS`**; Catalox does not gate downstream CI.
|
|
558
562
|
|
|
559
|
-
Optionally run **`npm run test:real`** before a major release (broader LLM + client scenarios; needs
|
|
563
|
+
Optionally run **`npm run test:real`** before a major release (broader LLM + client scenarios; needs Mongo + provider keys in **`.env`**).
|
|
560
564
|
|
|
561
565
|
**Flex-MD log noise (`extractJsonFromFlexMd` / `require(...) is not a function`):** that path lives in **`@x12i/ai-gateway`**, not in this package’s `parseFlexMd`. See **[docs/FLEX_MD_AND_TESTING.md](docs/FLEX_MD_AND_TESTING.md)** for the split of responsibilities and acceptance notes.
|
|
562
566
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-consideration.d.ts","sourceRoot":"","sources":["../../src/direct-functions/re-consideration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"re-consideration.d.ts","sourceRoot":"","sources":["../../src/direct-functions/re-consideration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGlF,MAAM,MAAM,8BAA8B,GAAG,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEzF,MAAM,MAAM,sBAAsB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,e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BAAgB,8CAA8C,CAC1D,OAAO,EAAE,+BAA+B,EACxC,OAAO,EAAE,sBAAsB,GAChC,eAAe,CAyBjB;AAED,wBAAgB,oDAAoD,CAChE,OAAO,EAAE,qCAAqC,EAC9C,OAAO,EAAE,sBAAsB,GAChC,eAAe,CA6BjB;AAED,wBAAsB,sBAAsB,CACxC,IAAI,EAAE;IAAE,QAAQ,EAAE,uBAAuB,CAAA;CAAE,EAC3C,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,sBAAsB,GAChC,OAAO,CAAC,4BAA4B,CAAC,CAOvC;AAED,wBAAsB,6BAA6B,CAC/C,IAAI,EAAE;IAAE,QAAQ,EAAE,uBAAuB,CAAA;CAAE,EAC3C,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,sBAAsB,GAChC,OAAO,CAAC,2BAA2B,CAAC,CAWtC;AAED,wBAAsB,2BAA2B,CAC7C,IAAI,EAAE;IAAE,QAAQ,EAAE,uBAAuB,CAAA;CAAE,EAC3C,OAAO,EAAE,gCAAgC,EACzC,OAAO,EAAE,sBAAsB,GAChC,OAAO,CAAC,iCAAiC,CAAC,CAO5C;AAED,wBAAsB,0BAA0B,CAC5C,IAAI,EAAE;IAAE,QAAQ,EAAE,uBAAuB,CAAA;CAAE,EAC3C,OAAO,EAAE,+BAA+B,EACxC,OAAO,EAAE,sBAAsB,GAChC,OAAO,CAAC,gCAAgC,CAAC,CAO3C;AAED,wBAAsB,gCAAgC,CAClD,IAAI,EAAE;IAAE,QAAQ,EAAE,uBAAuB,CAAA;CAAE,EAC3C,OAAO,EAAE,qCAAqC,EAC9C,OAAO,EAAE,sBAAsB,GAChC,OAAO,CAAC,sCAAsC,CAAC,CAWjD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseMarkdownSectionsToFields } from "../utils/normalize-output-parsed.js";
|
|
1
2
|
export const RECONSIDER_FILL_GAP_SKILL_KEY = "re-consider.fill-gap";
|
|
2
3
|
export const RECONSIDER_REVIEW_SKILL_KEY = "re-consider.review";
|
|
3
4
|
export const RECONSIDER_REWRITE_SCOPE_SKILL_KEY = "re-consider.rewrite-scope";
|
|
@@ -26,144 +27,229 @@ function runtimeFields(runtime) {
|
|
|
26
27
|
modelConfig: runtime.modelConfig,
|
|
27
28
|
};
|
|
28
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Nested token bag for re-consider templates.
|
|
32
|
+
* Passed as both `templateTokens` (short-term overlay) and `variables` so
|
|
33
|
+
* `buildWorkingMemory` exposes `taskVariables.*` / `jobMemory.*` for gateway Rendrix
|
|
34
|
+
* (same path roots as templates). Do not use root `RunSkillRequest.jobMemory` — that flattens.
|
|
35
|
+
*/
|
|
36
|
+
function reconsiderTokenBag(tokens) {
|
|
37
|
+
return {
|
|
38
|
+
templateTokens: tokens,
|
|
39
|
+
variables: {
|
|
40
|
+
taskVariables: tokens.taskVariables,
|
|
41
|
+
jobMemory: tokens.jobMemory,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function normalizePayloadText(raw, key) {
|
|
46
|
+
let text = raw.trim();
|
|
47
|
+
const prefix = new RegExp(`^@payload:\\s*${key}\\s*\\r?\\n?`, "i");
|
|
48
|
+
text = text.replace(prefix, "").trim();
|
|
49
|
+
return text;
|
|
50
|
+
}
|
|
51
|
+
function extractMarkdownSection(text, headingTitle, opts) {
|
|
52
|
+
const escaped = headingTitle.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
53
|
+
const re = new RegExp(`^#{2,3}\\s+${escaped}\\s*$`, "im");
|
|
54
|
+
const match = text.match(re);
|
|
55
|
+
if (!match || match.index === undefined)
|
|
56
|
+
return undefined;
|
|
57
|
+
const start = match.index + match[0].length;
|
|
58
|
+
const rest = text.slice(start);
|
|
59
|
+
// For full-answer payloads that nest ## subsections, only stop at another ### heading.
|
|
60
|
+
const nextRe = opts?.stopAtH3Only ? /^#{3}\s+\S/m : /^#{2,3}\s+\S/m;
|
|
61
|
+
const next = rest.search(nextRe);
|
|
62
|
+
const body = (next >= 0 ? rest.slice(0, next) : rest).trim();
|
|
63
|
+
return body.length > 0 ? body : undefined;
|
|
64
|
+
}
|
|
29
65
|
function readPayloadString(res, key) {
|
|
30
66
|
const fromFlex = res?.flexMd?.payloads?.[key];
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
67
|
+
const fromParsed = res?.parsed?.[key];
|
|
68
|
+
const raw = fromFlex !== undefined && fromFlex !== null ? fromFlex : fromParsed;
|
|
69
|
+
if (typeof raw === "string" && raw.trim().length > 0) {
|
|
70
|
+
const normalized = normalizePayloadText(raw, key);
|
|
71
|
+
return normalized.length > 0 ? normalized : undefined;
|
|
72
|
+
}
|
|
73
|
+
if (Array.isArray(raw)) {
|
|
74
|
+
const parts = raw
|
|
75
|
+
.map((x) => (typeof x === "string" ? x.trim() : x != null ? String(x).trim() : ""))
|
|
76
|
+
.filter(Boolean)
|
|
77
|
+
.map((p) => normalizePayloadText(p, key))
|
|
78
|
+
.filter(Boolean);
|
|
79
|
+
if (parts.length > 0)
|
|
80
|
+
return parts.join("\n");
|
|
81
|
+
}
|
|
82
|
+
const text = String(res?.rawText || "");
|
|
83
|
+
if (text.trim()) {
|
|
84
|
+
const sections = parseMarkdownSectionsToFields(text);
|
|
85
|
+
const fromHeading = sections[key];
|
|
86
|
+
if (typeof fromHeading === "string" && fromHeading.trim()) {
|
|
87
|
+
return normalizePayloadText(fromHeading, key);
|
|
88
|
+
}
|
|
89
|
+
// Full-answer sections often contain nested ## headings; FlexMD may leave the
|
|
90
|
+
// primary payload empty. Recover the full block after the H2/H3 section title.
|
|
91
|
+
const titleByKey = {
|
|
92
|
+
gapOutput: "Gap Output",
|
|
93
|
+
reviewOutput: "Review Output",
|
|
94
|
+
correctedScope: "Corrected Scope",
|
|
95
|
+
correctedAnswer: "Corrected Answer",
|
|
96
|
+
calibratedOutput: "Calibrated Output",
|
|
97
|
+
};
|
|
98
|
+
const title = titleByKey[key];
|
|
99
|
+
if (title) {
|
|
100
|
+
const block = extractMarkdownSection(text, title, {
|
|
101
|
+
stopAtH3Only: key === "correctedAnswer" || key === "calibratedOutput",
|
|
102
|
+
});
|
|
103
|
+
if (block)
|
|
104
|
+
return normalizePayloadText(block, key);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
const REVIEW_STATUSES = ["acceptable", "needs_change", "insufficient_data"];
|
|
110
|
+
function parseReviewStatus(raw) {
|
|
111
|
+
if (!raw)
|
|
112
|
+
return undefined;
|
|
113
|
+
const normalized = raw.trim().toLowerCase().replace(/\s+/g, "_");
|
|
114
|
+
for (const status of REVIEW_STATUSES) {
|
|
115
|
+
if (normalized === status || normalized.includes(status))
|
|
116
|
+
return status;
|
|
117
|
+
}
|
|
37
118
|
return undefined;
|
|
38
119
|
}
|
|
39
120
|
export function buildFillReConsiderationGapRunSkillRequest(request, runtime) {
|
|
40
|
-
|
|
41
|
-
skillKey: RECONSIDER_FILL_GAP_SKILL_KEY,
|
|
121
|
+
const tokens = {
|
|
42
122
|
input: request.input,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
originalInstructions: request.originalInstructions,
|
|
48
|
-
gapExplained: request.gapExplained,
|
|
49
|
-
},
|
|
123
|
+
taskVariables: {
|
|
124
|
+
gap: {
|
|
125
|
+
originalInstructions: request.originalInstructions,
|
|
126
|
+
gapExplained: request.gapExplained,
|
|
50
127
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
128
|
+
},
|
|
129
|
+
jobMemory: {
|
|
130
|
+
providedContext: stringifyForPrompt(request.providedContext),
|
|
131
|
+
gap: {
|
|
132
|
+
gapResults: request.gapResults ?? "",
|
|
133
|
+
context: stringifyForPrompt(request.context),
|
|
134
|
+
originalResponse: request.originalResponse,
|
|
135
|
+
fragmentName: request.fragmentName ?? "",
|
|
59
136
|
},
|
|
60
137
|
},
|
|
138
|
+
};
|
|
139
|
+
return {
|
|
140
|
+
skillKey: RECONSIDER_FILL_GAP_SKILL_KEY,
|
|
141
|
+
input: request.input,
|
|
142
|
+
...reconsiderTokenBag(tokens),
|
|
61
143
|
outputContract: ["gapOutput"],
|
|
62
144
|
...runtimeFields(runtime),
|
|
63
145
|
};
|
|
64
146
|
}
|
|
65
147
|
export function buildReviewReConsiderationRunSkillRequest(request, runtime) {
|
|
66
|
-
|
|
67
|
-
skillKey: RECONSIDER_REVIEW_SKILL_KEY,
|
|
148
|
+
const tokens = {
|
|
68
149
|
input: request.input,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
review: {
|
|
73
|
-
originalInstructions: request.originalInstructions,
|
|
74
|
-
},
|
|
150
|
+
taskVariables: {
|
|
151
|
+
review: {
|
|
152
|
+
originalInstructions: request.originalInstructions,
|
|
75
153
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
154
|
+
},
|
|
155
|
+
jobMemory: {
|
|
156
|
+
providedContext: stringifyForPrompt(request.providedContext),
|
|
157
|
+
review: {
|
|
158
|
+
reviewResults: request.reviewResults ?? "",
|
|
159
|
+
context: stringifyForPrompt(request.context),
|
|
160
|
+
originalResponse: request.originalResponse,
|
|
161
|
+
fragmentName: request.fragmentName ?? "",
|
|
84
162
|
},
|
|
85
163
|
},
|
|
164
|
+
};
|
|
165
|
+
return {
|
|
166
|
+
skillKey: RECONSIDER_REVIEW_SKILL_KEY,
|
|
167
|
+
input: request.input,
|
|
168
|
+
...reconsiderTokenBag(tokens),
|
|
86
169
|
outputContract: ["reviewStatus", "reviewOutput"],
|
|
87
170
|
...runtimeFields(runtime),
|
|
88
171
|
};
|
|
89
172
|
}
|
|
90
173
|
export function buildRewriteReConsiderationScopeRunSkillRequest(request, runtime) {
|
|
91
|
-
|
|
92
|
-
skillKey: RECONSIDER_REWRITE_SCOPE_SKILL_KEY,
|
|
174
|
+
const tokens = {
|
|
93
175
|
input: request.input,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
originalInstructions: request.originalInstructions,
|
|
99
|
-
rewriteExplained: request.rewriteExplained,
|
|
100
|
-
},
|
|
176
|
+
taskVariables: {
|
|
177
|
+
scope: {
|
|
178
|
+
originalInstructions: request.originalInstructions,
|
|
179
|
+
rewriteExplained: request.rewriteExplained,
|
|
101
180
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
181
|
+
},
|
|
182
|
+
jobMemory: {
|
|
183
|
+
providedContext: stringifyForPrompt(request.providedContext),
|
|
184
|
+
scope: {
|
|
185
|
+
rewriteResults: request.rewriteResults ?? "",
|
|
186
|
+
context: stringifyForPrompt(request.context),
|
|
187
|
+
originalResponse: request.originalResponse,
|
|
188
|
+
scopeToRewrite: request.scopeToRewrite,
|
|
189
|
+
fragmentName: request.fragmentName ?? "",
|
|
111
190
|
},
|
|
112
191
|
},
|
|
192
|
+
};
|
|
193
|
+
return {
|
|
194
|
+
skillKey: RECONSIDER_REWRITE_SCOPE_SKILL_KEY,
|
|
195
|
+
input: request.input,
|
|
196
|
+
...reconsiderTokenBag(tokens),
|
|
113
197
|
outputContract: ["correctedScope"],
|
|
114
198
|
...runtimeFields(runtime),
|
|
115
199
|
};
|
|
116
200
|
}
|
|
117
201
|
export function buildRewriteReConsiderationFullRunSkillRequest(request, runtime) {
|
|
118
|
-
|
|
119
|
-
skillKey: RECONSIDER_REWRITE_FULL_SKILL_KEY,
|
|
202
|
+
const tokens = {
|
|
120
203
|
input: request.input,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
originalInstructions: request.originalInstructions,
|
|
126
|
-
rewriteExplained: request.rewriteExplained,
|
|
127
|
-
},
|
|
204
|
+
taskVariables: {
|
|
205
|
+
full: {
|
|
206
|
+
originalInstructions: request.originalInstructions,
|
|
207
|
+
rewriteExplained: request.rewriteExplained,
|
|
128
208
|
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
209
|
+
},
|
|
210
|
+
jobMemory: {
|
|
211
|
+
providedContext: stringifyForPrompt(request.providedContext),
|
|
212
|
+
full: {
|
|
213
|
+
rewriteResults: request.rewriteResults ?? "",
|
|
214
|
+
context: stringifyForPrompt(request.context),
|
|
215
|
+
originalResponse: request.originalResponse,
|
|
136
216
|
},
|
|
137
217
|
},
|
|
218
|
+
};
|
|
219
|
+
return {
|
|
220
|
+
skillKey: RECONSIDER_REWRITE_FULL_SKILL_KEY,
|
|
221
|
+
input: request.input,
|
|
222
|
+
...reconsiderTokenBag(tokens),
|
|
138
223
|
outputContract: ["correctedAnswer"],
|
|
139
224
|
...runtimeFields(runtime),
|
|
140
225
|
};
|
|
141
226
|
}
|
|
142
227
|
export function buildCalibrateReConsiderationDecisionRunSkillRequest(request, runtime) {
|
|
143
|
-
|
|
144
|
-
skillKey: RECONSIDER_CALIBRATE_DECISION_SKILL_KEY,
|
|
228
|
+
const tokens = {
|
|
145
229
|
input: request.input,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
originalInstructions: request.originalInstructions,
|
|
151
|
-
calibrationExplained: request.calibrationExplained,
|
|
152
|
-
},
|
|
230
|
+
taskVariables: {
|
|
231
|
+
calibration: {
|
|
232
|
+
originalInstructions: request.originalInstructions,
|
|
233
|
+
calibrationExplained: request.calibrationExplained,
|
|
153
234
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
235
|
+
},
|
|
236
|
+
jobMemory: {
|
|
237
|
+
providedContext: stringifyForPrompt(request.providedContext),
|
|
238
|
+
calibration: {
|
|
239
|
+
calibrationResults: request.calibrationResults ?? "",
|
|
240
|
+
context: stringifyForPrompt(request.context),
|
|
241
|
+
originalResponse: request.originalResponse,
|
|
242
|
+
decisionToCalibrate: request.decisionToCalibrate ?? "",
|
|
243
|
+
comparisonContext: stringifyForPrompt(request.comparisonContext),
|
|
244
|
+
capacityContext: stringifyForPrompt(request.capacityContext),
|
|
245
|
+
fragmentName: request.fragmentName ?? "",
|
|
165
246
|
},
|
|
166
247
|
},
|
|
248
|
+
};
|
|
249
|
+
return {
|
|
250
|
+
skillKey: RECONSIDER_CALIBRATE_DECISION_SKILL_KEY,
|
|
251
|
+
input: request.input,
|
|
252
|
+
...reconsiderTokenBag(tokens),
|
|
167
253
|
outputContract: ["calibratedOutput"],
|
|
168
254
|
...runtimeFields(runtime),
|
|
169
255
|
};
|
|
@@ -178,11 +264,9 @@ export async function fillReConsiderationGap(request, runtime) {
|
|
|
178
264
|
}
|
|
179
265
|
export async function reviewReConsiderationResponse(request, runtime) {
|
|
180
266
|
const res = await this.runSkill(buildReviewReConsiderationRunSkillRequest(request, runtime));
|
|
181
|
-
const reviewStatus = readPayloadString(res, "reviewStatus");
|
|
267
|
+
const reviewStatus = parseReviewStatus(readPayloadString(res, "reviewStatus"));
|
|
182
268
|
const reviewOutput = readPayloadString(res, "reviewOutput");
|
|
183
|
-
if (reviewStatus
|
|
184
|
-
reviewStatus !== "needs_change" &&
|
|
185
|
-
reviewStatus !== "insufficient_data") {
|
|
269
|
+
if (reviewStatus === undefined) {
|
|
186
270
|
throw new Error("re-consider.review did not return a valid reviewStatus payload.");
|
|
187
271
|
}
|
|
188
272
|
if (reviewOutput === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-consideration.js","sourceRoot":"","sources":["../../src/direct-functions/re-consideration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"re-consideration.js","sourceRoot":"","sources":["../../src/direct-functions/re-consideration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAwFpF,MAAM,CAAC,MAAM,6BAA6B,GAAG,sBAA+B,CAAC;AAC7E,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAA6B,CAAC;AACzE,MAAM,CAAC,MAAM,kCAAkC,GAAG,2BAAoC,CAAC;AACvF,MAAM,CAAC,MAAM,iCAAiC,GAAG,0BAAmC,CAAC;AACrF,MAAM,CAAC,MAAM,uCAAuC,GAAG,gCAAyC,CAAC;AAIjG,qFAAqF;AACrF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,CAAC;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;AACL,CAAC;AAED,SAAS,aAAa,CAAC,OAA+B;IAIlD,OAAO;QACH,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,WAAW,EAAE,OAAO,CAAC,WAAW;KACnC,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,MAI3B;IACG,OAAO;QACH,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE;YACP,aAAa,EAAE,MAAM,C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B;IAE/B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAC3B,oDAAoD,CAAC,OAAO,EAAE,OAAO,CAAC,CACzE,CAAC;IACF,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;IACpE,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACX,iFAAiF,CACpF,CAAC;IACN,CAAC;IACD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exellix/ai-skills",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Foundational skill execution layer for exellix ecosystem using @x12i/ai-gateway with FlexMD 2.0 support and Catalox as the catalog store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"catalox:restore": "npm run catalox:provision-ai-skills && npm run catalox:provision-ai-engines",
|
|
44
44
|
"catalox:verify": "npm run catalox:verify -w @exellix/catalox-ai-skills",
|
|
45
45
|
"live:professional-answer": "tsx scripts/run-professional-answer-live.ts",
|
|
46
|
+
"live:re-consider": "tsx scripts/run-re-consider-live.ts",
|
|
46
47
|
"test:ci": "npm run build && npm run test:unit",
|
|
47
48
|
"test": "npm run build && npm run test:integration",
|
|
48
49
|
"deps:latest": "npx npm-check-updates -u && npm install"
|