@vincemakes/kiso-ask-ext 0.48.0 → 0.49.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/kiso-ask.mjs +8 -18
- package/package.json +2 -2
package/dist/kiso-ask.mjs
CHANGED
|
@@ -74,20 +74,14 @@ const ASK_PARAMETERS = {
|
|
|
74
74
|
// ask; it never said what to do INSTEAD, never named "may I proceed" or an
|
|
75
75
|
// authorization already given, and gave no shape for a good question. Each
|
|
76
76
|
// sentence below closes one of those.
|
|
77
|
+
// Plan B (the prefix diet): every rule above, once, in this description
|
|
78
|
+
// alone — the two prompt guidelines that restated it are gone.
|
|
77
79
|
const DESCRIPTION = [
|
|
78
|
-
"Ask the human a
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"the human
|
|
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.",
|
|
80
|
+
"Ask the human and wait, only when blocked on a choice that is theirs (direction, trade-off, preference) that changes your next step.",
|
|
81
|
+
"Never ask to confirm what you can verify, whether to proceed, for an authorization already given (it stands until its scope changes), or before an action the approval panel gates.",
|
|
82
|
+
"With a sensible default, take it and say so.",
|
|
83
|
+
'One call: 1-4 questions ending in "?", each with 2-4 exclusive options (short label, one-line trade-off), the recommended first, marked "(recommended)"; multiSelect when several fit.',
|
|
84
|
+
'No "Other" option: the human can always type an answer.',
|
|
91
85
|
].join(" ");
|
|
92
86
|
|
|
93
87
|
/** The result the model reads — the answers, or the honest decline. The
|
|
@@ -136,11 +130,7 @@ export default async function createAskExtension(ui) {
|
|
|
136
130
|
parameters: ASK_PARAMETERS,
|
|
137
131
|
// asking again is safe — a question has no side effect
|
|
138
132
|
idempotent: true,
|
|
139
|
-
promptSnippet: "ask_user — put a real choice to the human
|
|
140
|
-
promptGuidelines: [
|
|
141
|
-
"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",
|
|
142
|
-
"with a sensible default, take it and say so; one call carries every question, the recommended option first",
|
|
143
|
-
],
|
|
133
|
+
promptSnippet: "ask_user — put a real choice to the human",
|
|
144
134
|
execute: async (input, ctx) => {
|
|
145
135
|
const questions = (input ?? {}).questions ?? [];
|
|
146
136
|
// The schema already refused an empty list; this guard is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-ask-ext",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
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.49.0",
|
|
27
27
|
"@types/node": "^26.1.2",
|
|
28
28
|
"typescript": "^5.7.2",
|
|
29
29
|
"vitest": "^3.0.0"
|