@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.
@@ -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 a short `header`, the `question` text, and two or three
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.153.0-trace.0",
4
+ "version": "1.154.0",
5
5
  "description": "CLI tool for running Netlify agents",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -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, formatAskAnswerBlock } = await jiti.import(
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
- return { content: [{ type: 'text', text: formatAskAnswerBlock(pairs, { preamble: PREAMBLE }) }] }
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