@agent-deck/cli 1.11.2 → 1.11.4
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/agent-harness.js +2 -2
- package/package.json +3 -3
package/dist/agent-harness.js
CHANGED
|
@@ -21,9 +21,9 @@ exports.CURSOR_RULE_FILENAME = 'agent-deck.mdc';
|
|
|
21
21
|
exports.HARNESS_RULE_DESCRIPTION = 'Use when user mentions decks, playbooks, deck MCP tools, or corrects playbook output — Agent Deck harness';
|
|
22
22
|
const GLOBAL_BODY = `**Connect first:** Connection has three layers: host transport, folder assignment, then session bootstrap. Cursor / Claude users configure transport with \`agent-deck setup --client cursor|claude --start\`, then restart the host. Codex transport comes from the enabled Agent Deck plugin's bundled \`.mcp.json\`, which launches \`agent-deck mcp-launch\`; \`agent-deck setup --client codex\` installs or refreshes this AGENTS.md guidance but does not install the plugin. Run \`agent-deck use <deck>\` in an IDE folder when its assignment is missing or legacy, then reload or retry MCP. Claude Code: \`claude mcp list\` should show agent-deck as Connected when the backend is running.
|
|
23
23
|
|
|
24
|
-
**Agent Deck hard gate:** When Agent Deck MCP is configured for the current session, or \`.agent-deck/use.json\` indicates that it is expected, bootstrap is mandatory. This includes launch-selected sessions that deliberately have no assignment file. Before reading repo files, running task commands, or answering the task, require \`
|
|
24
|
+
**Agent Deck hard gate:** When Agent Deck MCP is configured for the current session, or \`.agent-deck/use.json\` indicates that it is expected, bootstrap is mandatory. This includes launch-selected sessions that deliberately have no assignment file. Before reading repo files, running task commands, or answering the task, require \`get_session_context\` to succeed. If the tool is unavailable, disconnected, returns \`GRANT_REQUIRED\`, or otherwise fails, stop and report the connection problem — do not improvise without the deck. Checking for the optional assignment signal, checking whether Agent Deck is configured, and other read-only connection diagnostics are allowed before the gate passes.
|
|
25
25
|
|
|
26
|
-
**Session opener (first turn only):**
|
|
26
|
+
**Session opener (first turn only):** This call verifies an existing connection; it does not create it. The folder's deck comes from \`.agent-deck/use.json\`, which \`agent-deck use <deck>\` writes — the connection carries it; the agent does **not** pick a deck and must **not** call \`get_decks\`. When Agent Deck MCP is configured for the session, call \`get_session_context\` once, and tell the user **exactly one line** using \`display_summary\` (e.g. \`◆ dev · 2 MCP · 0 keys · 1 playbooks\`). Match the task against the returned playbook triggers and call \`get_playbook\` for every match before taking task action. If tools are unavailable, repair the host transport first. On \`GRANT_REQUIRED\`, match the message before acting. "No deck assigned to this folder…" means the folder itself has no assignment — tell the user to run \`agent-deck use <deck>\` in the folder and reload MCP, then stop. "This MCP session has not bound yet…" means the session only needs its first bind — call \`bind_workspace\` (or \`get_session_binding\`) once, then retry \`switch_deck\`; no CLI step, no reload, and stop only if that retry also fails. For an unattended session, fix \`x-agent-deck-deck-id\` / the launch config instead. If \`.agent-deck/use.json\` already assigns the deck and only the project MCP pin is missing, that \`use\` can succeed from a host agent sandbox; creating a new assignment needs an unsandboxed terminal (home store write). Do **not** repeat the status line every turn unless the user asks or the bind changes. (\`get_session_binding\` and \`get_bound_deck\` remain available for compatibility; the opener needs only \`get_session_context\`.)
|
|
27
27
|
|
|
28
28
|
**Later turns:** Deck scope comes from the launch-selected connection (folder assignment or launch header). Do not re-bind unless the user asks for deck administration. To move to another deck, call \`switch_deck\` and wait — the user approves it as This session only or This workspace by default; the active deck is unchanged until approval and no reload is needed. A rejected move (\`DECK_FIXED\` / \`ADMIN_REQUIRED\`) means the agent cannot change the connection itself — tell the user instead of retrying.
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-deck/cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"description": "Local MCP proxy — decks of tools, keys, and self-improving playbooks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"prepublishOnly": "node ../../scripts/pre-publish-check.mjs && npm run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@agent-deck/backend": "^1.11.
|
|
44
|
-
"@agent-deck/shared": "^1.11.
|
|
43
|
+
"@agent-deck/backend": "^1.11.4",
|
|
44
|
+
"@agent-deck/shared": "^1.11.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^20.11.5",
|