@netlify/agent-runner-cli 1.153.0-trace.0 → 1.154.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/bin-local.js +202 -197
- package/dist/bin.js +238 -233
- package/dist/index.d.ts +4 -1
- package/dist/index.js +183 -178
- package/dist/interactions-mcp-server.js +12 -12
- package/dist/skills/asking-questions/SKILL.md +1 -1
- package/package.json +1 -1
- package/scripts/scenarios/interactions-stub-server.mjs +9 -4
|
@@ -9,7 +9,7 @@ description:
|
|
|
9
9
|
|
|
10
10
|
When a decision is genuinely the user's to make and would change what you build, ask rather than assume.
|
|
11
11
|
|
|
12
|
-
Use the `ask` tool: pass one to three questions, each with
|
|
12
|
+
Use the `ask` tool: pass one to three questions, each with the `question` text and two or three
|
|
13
13
|
`options` when there is a clear set of choices. Add `multiSelect: true` when several of those options can apply at once.
|
|
14
14
|
Never write an option like "Other", "Something else", or "None of these". The UI adds an "Other" choice and a free-text
|
|
15
15
|
field to give extra context to every question that has options, so if you added an "other" option it would be a
|
package/package.json
CHANGED
|
@@ -6,9 +6,8 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
6
6
|
import { createJiti } from 'jiti'
|
|
7
7
|
|
|
8
8
|
const jiti = createJiti(import.meta.url, { interopDefault: true })
|
|
9
|
-
const { ASK_TOOL_DESCRIPTION, askQuestionsShape,
|
|
10
|
-
'../../src/lib/ask-schema.js'
|
|
11
|
-
)
|
|
9
|
+
const { ASK_TOOL_DESCRIPTION, askQuestionsShape, ASK_ANSWERS_CONTINUE_INSTRUCTION, ASK_ANSWERS_NO_REPEAT_INSTRUCTION } =
|
|
10
|
+
await jiti.import('../../src/lib/ask-schema.js')
|
|
12
11
|
const {
|
|
13
12
|
ASK_LOG_FILENAME,
|
|
14
13
|
ASK_SERVER_READY_FILENAME,
|
|
@@ -56,7 +55,13 @@ server.registerTool(
|
|
|
56
55
|
question: question.question,
|
|
57
56
|
answer: answersByPosition[index] ?? UNANTICIPATED_QUESTION_ANSWER,
|
|
58
57
|
}))
|
|
59
|
-
|
|
58
|
+
const answersBlock = pairs.map(({ question, answer }) => `Q: ${question}\nA: ${answer}`).join('\n\n')
|
|
59
|
+
const text = [
|
|
60
|
+
PREAMBLE,
|
|
61
|
+
answersBlock,
|
|
62
|
+
`${ASK_ANSWERS_CONTINUE_INSTRUCTION} ${ASK_ANSWERS_NO_REPEAT_INSTRUCTION}`,
|
|
63
|
+
].join('\n\n')
|
|
64
|
+
return { content: [{ type: 'text', text }] }
|
|
60
65
|
},
|
|
61
66
|
)
|
|
62
67
|
|