@vincemakes/kiso-ask-ext 0.39.2 → 0.40.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/kiso-ask.mjs +19 -7
- package/package.json +2 -2
package/dist/kiso-ask.mjs
CHANGED
|
@@ -69,13 +69,25 @@ const ASK_PARAMETERS = {
|
|
|
69
69
|
additionalProperties: false,
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
+
// The owner's dogfood (0.40.0): a session asked "push?" after every batch,
|
|
73
|
+
// though delivery had been authorized once. The old text said only when to
|
|
74
|
+
// ask; it never said what to do INSTEAD, never named "may I proceed" or an
|
|
75
|
+
// authorization already given, and gave no shape for a good question. Each
|
|
76
|
+
// sentence below closes one of those.
|
|
72
77
|
const DESCRIPTION = [
|
|
73
78
|
"Ask the human a question and wait for the answer.",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"the
|
|
78
|
-
"
|
|
79
|
+
"Use it only when you are blocked on a choice that is the human's to make",
|
|
80
|
+
"(a direction, a trade-off, a preference) and the answer changes what you do next.",
|
|
81
|
+
"Do not ask to confirm work you can verify, whether to proceed, for permission",
|
|
82
|
+
"the human already gave (an authorization stands for the rest of the session",
|
|
83
|
+
"unless its scope changes), or before an action the approval panel already gates.",
|
|
84
|
+
"When a sensible default exists, take it, say which in your reply, and go on.",
|
|
85
|
+
"Put every question in one call: 1-4 questions, each specific and ending in \"?\";",
|
|
86
|
+
"2-4 mutually exclusive options, each a short label and a one-line trade-off;",
|
|
87
|
+
"the option you recommend goes first, with \"(recommended)\" in its label.",
|
|
88
|
+
"Set multiSelect when several options can be picked together.",
|
|
89
|
+
"The human can always type their own answer or decline (the result then names",
|
|
90
|
+
"the questions that went unanswered), so never add an \"Other\" option.",
|
|
79
91
|
].join(" ");
|
|
80
92
|
|
|
81
93
|
/** The result the model reads — the answers, or the honest decline. The
|
|
@@ -124,8 +136,8 @@ export default async function createAskExtension(ui) {
|
|
|
124
136
|
idempotent: true,
|
|
125
137
|
promptSnippet: "ask_user — put a real choice to the human (1-4 questions, 2-4 options each)",
|
|
126
138
|
promptGuidelines: [
|
|
127
|
-
"ask when the
|
|
128
|
-
"one call carries every question
|
|
139
|
+
"ask only when the human's answer changes what you do next; never ask what you can check, whether to proceed, or for permission already given",
|
|
140
|
+
"with a sensible default, take it and say so; one call carries every question, the recommended option first",
|
|
129
141
|
],
|
|
130
142
|
execute: async (input, ctx) => {
|
|
131
143
|
const questions = (input ?? {}).questions ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-ask-ext",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"description": "kiso official ask extension \u2014 ask_user option panels: the model asks the human, the answers are durable facts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test": "vitest run"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@vincemakes/kiso-core": "0.
|
|
26
|
+
"@vincemakes/kiso-core": "0.40.1",
|
|
27
27
|
"@types/node": "^26.1.2",
|
|
28
28
|
"typescript": "^5.7.2",
|
|
29
29
|
"vitest": "^3.0.0"
|