@apotech-os/support-kit 2.10.0 → 3.0.0
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/dist/{chunk-CVYJU4SV.js → chunk-KCPVWKUY.js} +7 -13
- package/dist/chunk-KCPVWKUY.js.map +1 -0
- package/dist/index.cjs +4 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -24
- package/dist/index.d.ts +23 -24
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +70 -71
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +70 -71
- package/dist/ui/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-CVYJU4SV.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -863,14 +863,14 @@ ${trimmed}` : null;
|
|
|
863
863
|
|
|
864
864
|
// src/graph/revise.ts
|
|
865
865
|
async function reviseDraft(params) {
|
|
866
|
-
const { profile, llm, budget, draft: draft2, verdict, messages, label,
|
|
866
|
+
const { profile, llm, budget, draft: draft2, verdict, messages, label, promptRef } = params;
|
|
867
867
|
const node = profile.nodes.revise;
|
|
868
868
|
if (!node) return draft2;
|
|
869
869
|
let result;
|
|
870
870
|
try {
|
|
871
871
|
result = await llm.complete({
|
|
872
872
|
label,
|
|
873
|
-
model:
|
|
873
|
+
model: node.model,
|
|
874
874
|
reasoning: node.reasoning,
|
|
875
875
|
messages: [...messages, ...buildRevisionTurn(draft2, verdict)],
|
|
876
876
|
tools: [],
|
|
@@ -910,7 +910,6 @@ var revise = async (state, deps) => {
|
|
|
910
910
|
if (!node || !state.conversation || !state.draft || !state.verdict) return {};
|
|
911
911
|
const draftPrompt = await deps.ports.prompt.resolve(profile.prompts.draft);
|
|
912
912
|
const messages = buildDraftMessages(state.conversation, writerSystemPrompt(draftPrompt.text, state.conversation));
|
|
913
|
-
const revisePrompt = await deps.ports.prompt.resolve(profile.prompts.revise);
|
|
914
913
|
const revised = await reviseDraft({
|
|
915
914
|
profile,
|
|
916
915
|
llm: deps.ports.llm,
|
|
@@ -919,8 +918,7 @@ var revise = async (state, deps) => {
|
|
|
919
918
|
verdict: state.verdict,
|
|
920
919
|
messages,
|
|
921
920
|
label: "revise",
|
|
922
|
-
|
|
923
|
-
promptRef: { name: revisePrompt.name, version: revisePrompt.version, resolve: false }
|
|
921
|
+
promptRef: { name: draftPrompt.name, version: draftPrompt.version, resolve: false }
|
|
924
922
|
});
|
|
925
923
|
return { draft: revised, reviseCount: 1 };
|
|
926
924
|
};
|
|
@@ -1286,9 +1284,6 @@ var PROMPT_SLOTS = [
|
|
|
1286
1284
|
function resolvePromptName(slot, config) {
|
|
1287
1285
|
return config.promptNames?.[slot] ?? `${config.promptPrefix}${slot}`;
|
|
1288
1286
|
}
|
|
1289
|
-
function resolveReviseName(config) {
|
|
1290
|
-
return config.promptNames?.revise ?? `${config.promptPrefix}revise`;
|
|
1291
|
-
}
|
|
1292
1287
|
|
|
1293
1288
|
// src/records/ids.ts
|
|
1294
1289
|
var CATEGORY_OBJECT_UID = "8a1c8de3-c288-40a5-9294-a883e1c89784";
|
|
@@ -2543,7 +2538,7 @@ function validateSettings(settings) {
|
|
|
2543
2538
|
function isNonEmptyString(value) {
|
|
2544
2539
|
return typeof value === "string" && value.length > 0;
|
|
2545
2540
|
}
|
|
2546
|
-
var STEPS_REQUIRING_PROMPT = ["triage", "escalate", "evaluate"
|
|
2541
|
+
var STEPS_REQUIRING_PROMPT = ["triage", "escalate", "evaluate"];
|
|
2547
2542
|
function stepsMissingPrompt(nodes) {
|
|
2548
2543
|
if (typeof nodes !== "object" || nodes === null) return [];
|
|
2549
2544
|
const byStep = nodes;
|
|
@@ -3175,7 +3170,6 @@ function buildPromptsTable(config, draft2, nodes) {
|
|
|
3175
3170
|
triage: refFor(nodes.triage, resolvePromptName("triage", config), prompts?.triage),
|
|
3176
3171
|
escalate: refFor(nodes.escalate, resolvePromptName("escalation", config), prompts?.escalation),
|
|
3177
3172
|
evaluate: refFor(nodes.evaluate, resolvePromptName("evaluation", config), prompts?.evaluation),
|
|
3178
|
-
revise: refFor(nodes.revise, resolveReviseName(config), prompts?.revise),
|
|
3179
3173
|
draft: draft2
|
|
3180
3174
|
};
|
|
3181
3175
|
}
|
|
@@ -5818,7 +5812,6 @@ exports.promptCacheRecord = promptCacheRecord;
|
|
|
5818
5812
|
exports.reclaimStalledSend = reclaimStalledSend;
|
|
5819
5813
|
exports.requiresFollowup = requiresFollowup;
|
|
5820
5814
|
exports.resolvePromptName = resolvePromptName;
|
|
5821
|
-
exports.resolveReviseName = resolveReviseName;
|
|
5822
5815
|
exports.runGuardrails = runGuardrails;
|
|
5823
5816
|
exports.runTicket = runTicket;
|
|
5824
5817
|
exports.settingsToProfile = settingsToProfile;
|