@sjawhar/pi-envoy 10.17.8 → 10.17.9
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/envoy.js +2 -2
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -35345,7 +35345,7 @@ function askPromptQuestionHead(question) {
|
|
|
35345
35345
|
var ASK_SELF_CHECK_PROMPT = (asks) => {
|
|
35346
35346
|
const askLimit = 5;
|
|
35347
35347
|
const questionLimit = 120;
|
|
35348
|
-
const promptAsks = asks.length === 0 ? "
|
|
35348
|
+
const promptAsks = asks.length === 0 ? "You have no open asks in Dispatch." : [
|
|
35349
35349
|
"Your open asks in Dispatch:",
|
|
35350
35350
|
...asks.slice(0, askLimit).map((ask) => {
|
|
35351
35351
|
const firstLine = askPromptQuestionHead(ask.question);
|
|
@@ -35357,7 +35357,7 @@ var ASK_SELF_CHECK_PROMPT = (asks) => {
|
|
|
35357
35357
|
`);
|
|
35358
35358
|
return `Your run has just ended. ${promptAsks}
|
|
35359
35359
|
|
|
35360
|
-
Are you right now waiting on a human for anything none of those asks covers? Answer with exactly one word and nothing else: WAITING or PROCEEDING. ` + "WAITING \u2014 you stopped because you need a decision, an approval, or information from a human. " + "PROCEEDING \u2014 you finished, you will carry on by yourself, or you are waiting only on
|
|
35360
|
+
Are you right now waiting on a human for anything none of those asks covers? Answer with exactly one word and nothing else: WAITING or PROCEEDING. ` + "WAITING \u2014 you stopped because you need a decision, an approval, or information from a human " + "that none of those asks covers and that is not already on its way; something they put off for later, or promised and then did not send, is not on its way. " + "PROCEEDING \u2014 you finished, you will carry on by yourself, or you are waiting only on open " + "asks, tools, subagents, or events, including a message, an answer, or an event a human already said they will send and that is on its way: a reply on its way is an event, not an open question.";
|
|
35361
35361
|
};
|
|
35362
35362
|
var WAITING_VERDICT = /^\W*WAITING\b/;
|
|
35363
35363
|
var ECHOED_CHOICE = /\bPROCEEDING\b/;
|