@dudousxd/nestjs-agent-core 0.43.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 +16 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +16 -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
|
|
|
@@ -9416,6 +9424,7 @@ function parseTextActionProposalCommand(text, vocabulary = DEFAULT_TEXT_ACTION_P
|
|
|
9416
9424
|
__name(parseTextActionProposalCommand, "parseTextActionProposalCommand");
|
|
9417
9425
|
var ptBrActionProposalText = {
|
|
9418
9426
|
vocabulary: {
|
|
9427
|
+
language: "pt-BR",
|
|
9419
9428
|
approve: [
|
|
9420
9429
|
"sim",
|
|
9421
9430
|
"confirmo",
|
|
@@ -9440,9 +9449,9 @@ var ptBrActionProposalText = {
|
|
|
9440
9449
|
]
|
|
9441
9450
|
},
|
|
9442
9451
|
replies: {
|
|
9443
|
-
approved: "
|
|
9444
|
-
rejected: "
|
|
9445
|
-
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.",
|
|
9446
9455
|
unchanged: "N\xE3o foi poss\xEDvel alterar esta proposta; atualize a lista para consultar seu estado.",
|
|
9447
9456
|
ambiguous: /* @__PURE__ */ __name((ids) => `Qual proposta? Responda confirmar #ID ou cancelar #ID: ${ids.join(", ")}`, "ambiguous"),
|
|
9448
9457
|
tooMany: "H\xE1 v\xE1rias propostas. Confirme ou rejeite usando #ID expl\xEDcito."
|