@adhdev/daemon-standalone 1.0.58-rc.25 → 1.0.58-rc.26
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/index.js +91 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/vendor/mcp-server/index.js +21 -15
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adhdev/daemon-standalone",
|
|
3
|
-
"version": "1.0.58-rc.
|
|
3
|
+
"version": "1.0.58-rc.26",
|
|
4
4
|
"description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "AGPL-3.0-or-later",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adhdev/ghostty-vt-node": "*",
|
|
40
|
-
"@adhdev/session-host-core": "1.0.58-rc.
|
|
40
|
+
"@adhdev/session-host-core": "1.0.58-rc.26",
|
|
41
41
|
"@xterm/addon-serialize": "^0.14.0",
|
|
42
42
|
"@xterm/xterm": "^6.0.0",
|
|
43
43
|
"chalk": "^5.3.0",
|
|
@@ -1679,7 +1679,7 @@ var MESH_APPROVE_TOOL = {
|
|
|
1679
1679
|
};
|
|
1680
1680
|
var MESH_ANSWER_QUESTION_TOOL = {
|
|
1681
1681
|
name: "mesh_answer_question",
|
|
1682
|
-
description:
|
|
1682
|
+
description: 'Answer a multi-choice QUESTION (AskUserQuestion) a delegated agent session is waiting on. This is the counterpart to mesh_approve: a QUESTION (surfaced as an agent:waiting_choice event / status "awaiting_choice") is NOT a yes/no approval \u2014 it offers labelled options (optionally multi-select, optionally a freeform "Type something") and must be answered here, never with mesh_approve. Supply the promptId from the waiting_choice event and `answers`: an array with one entry per question, in question order. For a single-question prompt, the simplest valid form is answers: ["<exact label>"] or answers: [<1-based index>] \u2014 the bare label/index IS the entry. Each entry may instead be an object { select, freeform? } (questionId optional; entries match by position when omitted): `select` is an option label (string), a 1-based index (number), or an array of labels/indices for a multi-select question; a freeform answer sets `freeform` to the text instead of `select`. The daemon drives the correct keystrokes into the provider TUI to submit the selection. RETURN CONTRACT: success:true means the answer RESOLVED against the session\'s active prompt and the submit keystrokes were DISPATCHED (submitted:true) \u2014 it does not prove the TUI finished redrawing, so confirm the session left awaiting_choice on a later status read. An unmatched option label, a stale promptId, or a provider that cannot answer questions returns success:false with the live option list in activePrompt \u2014 re-answer using one of those labels or its 1-based index.',
|
|
1683
1683
|
inputSchema: {
|
|
1684
1684
|
type: "object",
|
|
1685
1685
|
properties: {
|
|
@@ -1688,21 +1688,27 @@ var MESH_ANSWER_QUESTION_TOOL = {
|
|
|
1688
1688
|
promptId: { type: "string", description: "The InteractivePrompt promptId from the agent:waiting_choice event. Ensures the answer matches the active prompt." },
|
|
1689
1689
|
answers: {
|
|
1690
1690
|
type: "array",
|
|
1691
|
-
description: "One entry per question in the prompt (in question order). Each entry answers a single question by selecting option label(s)/index(es), or by supplying freeform text.",
|
|
1691
|
+
description: "One entry per question in the prompt (in question order). Each entry answers a single question by selecting option label(s)/index(es), or by supplying freeform text. An entry may be a bare option label (string) or 1-based index (number) \u2014 equivalent to { select: <that value> } \u2014 or the full { questionId?, select?, freeform? } object.",
|
|
1692
1692
|
items: {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
{ type: "string" },
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1693
|
+
oneOf: [
|
|
1694
|
+
{ type: "string", description: "Shorthand: the exact option label to select." },
|
|
1695
|
+
{ type: "number", description: "Shorthand: the 1-based option index to select." },
|
|
1696
|
+
{
|
|
1697
|
+
type: "object",
|
|
1698
|
+
properties: {
|
|
1699
|
+
questionId: { type: "string", description: "Optional question id from the prompt payload. When omitted, entries are matched to the prompt questions by array position." },
|
|
1700
|
+
select: {
|
|
1701
|
+
description: "The chosen option(s): an option label (string), a 1-based option index (number), or an array of labels/indices for a multi-select question.",
|
|
1702
|
+
oneOf: [
|
|
1703
|
+
{ type: "string" },
|
|
1704
|
+
{ type: "number" },
|
|
1705
|
+
{ type: "array", items: { type: ["string", "number"] } }
|
|
1706
|
+
]
|
|
1707
|
+
},
|
|
1708
|
+
freeform: { type: "string", description: 'Freeform text answer (for a "Type something" option). Mutually exclusive with select.' }
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
]
|
|
1706
1712
|
}
|
|
1707
1713
|
}
|
|
1708
1714
|
},
|