@dudousxd/nestjs-agent-core 0.44.0 → 0.44.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/dist/index.cjs +15 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2997,9 +2997,10 @@ function actionProposalOutcomeFenceValid(row2, command, now) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
__name(actionProposalOutcomeFenceValid, "actionProposalOutcomeFenceValid");
|
|
2999
2999
|
function outcomeSummary(outcome) {
|
|
3000
|
-
|
|
3001
|
-
if (outcome.executionStatus === "
|
|
3002
|
-
|
|
3000
|
+
const tool = JSON.stringify(outcome.toolName);
|
|
3001
|
+
if (outcome.executionStatus === "succeeded") return `Action ${tool} completed.${Object.hasOwn(outcome, "result") ? ` Result: ${JSON.stringify(outcome.result)}` : ""}`;
|
|
3002
|
+
if (outcome.executionStatus === "failed") return `Action ${tool} failed: ${JSON.stringify(outcome.error ?? "Execution failed")}`;
|
|
3003
|
+
return `Action ${tool} was ${outcome.decision} and was not executed.${outcome.error ? ` Reason: ${JSON.stringify(outcome.error)}` : ""}`;
|
|
3003
3004
|
}
|
|
3004
3005
|
__name(outcomeSummary, "outcomeSummary");
|
|
3005
3006
|
function actionProposalOutcomeScope(outcome) {
|
|
@@ -3010,8 +3011,15 @@ function actionProposalOutcomeScope(outcome) {
|
|
|
3010
3011
|
};
|
|
3011
3012
|
}
|
|
3012
3013
|
__name(actionProposalOutcomeScope, "actionProposalOutcomeScope");
|
|
3014
|
+
function storableText(text) {
|
|
3015
|
+
return text.replaceAll(String.fromCharCode(0), "\\u0000").replace(/[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/g, (char) => `\\u${char.charCodeAt(0).toString(16)}`);
|
|
3016
|
+
}
|
|
3017
|
+
__name(storableText, "storableText");
|
|
3013
3018
|
function actionProposalOutcomeText(outcome) {
|
|
3014
|
-
|
|
3019
|
+
const text = outcome.text === void 0 ? void 0 : storableText(outcome.text).trim();
|
|
3020
|
+
return text ? `${text}
|
|
3021
|
+
|
|
3022
|
+
${outcomeSummary(outcome)}` : outcomeSummary(outcome);
|
|
3015
3023
|
}
|
|
3016
3024
|
__name(actionProposalOutcomeText, "actionProposalOutcomeText");
|
|
3017
3025
|
|
|
@@ -9441,9 +9449,9 @@ var ptBrActionProposalText = {
|
|
|
9441
9449
|
]
|
|
9442
9450
|
},
|
|
9443
9451
|
replies: {
|
|
9444
|
-
approved: "
|
|
9445
|
-
rejected: "
|
|
9446
|
-
expired: "
|
|
9452
|
+
approved: "Confirmado! J\xE1 estou cuidando disso.",
|
|
9453
|
+
rejected: "Tudo bem, cancelado. Nada foi feito.",
|
|
9454
|
+
expired: "Esse pedido expirou; nada foi feito.",
|
|
9447
9455
|
unchanged: "N\xE3o foi poss\xEDvel alterar esta proposta; atualize a lista para consultar seu estado.",
|
|
9448
9456
|
ambiguous: /* @__PURE__ */ __name((ids) => `Qual proposta? Responda confirmar #ID ou cancelar #ID: ${ids.join(", ")}`, "ambiguous"),
|
|
9449
9457
|
tooMany: "H\xE1 v\xE1rias propostas. Confirme ou rejeite usando #ID expl\xEDcito."
|