askshepherd 0.1.38 → 0.1.39

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/README.md CHANGED
@@ -75,7 +75,8 @@ above; it performs the bounded local checks.
75
75
 
76
76
  ## Set Up Coding Agent Sessions
77
77
 
78
- Use this when the user asks "Help me set up coding agent sessions":
78
+ Use this when the user asks "Help me set up coding agent sessions" or "Enable
79
+ coding agent sessions locally for Shepherd":
79
80
 
80
81
  ```sh
81
82
  npx -y askshepherd@latest agent --login
@@ -120,9 +121,10 @@ The saved MCP state includes:
120
121
  The installed MCP server is local npm first, remote brain second. For questions
121
122
  like "what do I have set up on Shepherd?", "is Shepherd syncing?", or "help me
122
123
  set up coding agent sessions", the MCP exposes local tools such as
123
- `shepherd_status` and `shepherd_setup_coding_sessions` that route agents to the
124
- local `askshepherd status` / add-source flow. Production memory and wiki tools
125
- remain remote Railway-backed tools for source recall and company-memory answers.
124
+ `shepherd_status`, `shepherd_setup_coding_sessions`, and
125
+ `shepherd_enable_coding_sessions` that route agents to the local
126
+ `askshepherd status` / add-source flow. Production memory and wiki tools remain
127
+ remote Railway-backed tools for source recall and company-memory answers.
126
128
  Those local MCP tools are also the permission boundary: an MCP client should not
127
129
  use shell or file tools to inspect the user's folders or repositories for setup.
128
130
 
@@ -822,13 +822,20 @@ function localMcpTools() {
822
822
  annotations: readOnlyAnnotations,
823
823
  _meta: { provider: "local_npm", command: `${agentCommand()} agent --add-sources coding-sessions` },
824
824
  },
825
+ {
826
+ name: "shepherd_enable_coding_sessions",
827
+ description: "Alias for shepherd_setup_coding_sessions. Use when the user asks to enable coding agent sessions locally for Shepherd. Return the local askshepherd npm setup commands; do not search, list, or read the user's folders or repos.",
828
+ inputSchema: emptyInputSchema,
829
+ annotations: readOnlyAnnotations,
830
+ _meta: { provider: "local_npm", command: `${agentCommand()} agent --add-sources coding-sessions` },
831
+ },
825
832
  ];
826
833
  }
827
834
 
828
835
  function localMcpInstructions(remoteInstructions, remoteConnectError) {
829
836
  return [
830
837
  "This MCP server is the local askshepherd npm wrapper plus production Shepherd memory/wiki tools.",
831
- `For local setup/sync questions like "what do I have set up on Shepherd", "what have I enabled", "is Shepherd syncing", "help me set up coding agent sessions", or "enable coding sessions", use shepherd_status or shepherd_setup_coding_sessions first. These local tools route to the local askshepherd npm status/setup flow. The askshepherd CLI is the only component that may perform bounded local checks of Shepherd state, LaunchAgents, and known Codex/Claude session locations.`,
838
+ `For local setup/sync questions like "what do I have set up on Shepherd", "what have I enabled", "is Shepherd syncing", "help me set up coding agent sessions", "enable coding sessions", or "enable coding agent sessions locally for Shepherd", use shepherd_status, shepherd_setup_coding_sessions, or shepherd_enable_coding_sessions first. These local tools route to the local askshepherd npm status/setup flow. The askshepherd CLI is the only component that may perform bounded local checks of Shepherd state, LaunchAgents, and known Codex/Claude session locations.`,
832
839
  "Hard boundary: do not use shell or filesystem tools such as ls, find, rg, grep, cat, Read, Glob, or Explore to inspect the user's home directory, repositories, ~/.codex, ~/.claude, or ~/.shepherd for Shepherd setup. If local status is needed, call shepherd_status or run the exact askshepherd status command.",
833
840
  `If the user asks for raw local status outside MCP, tell them to run ${agentCommand()} status. For setup of coding agent sessions, ask consent, then use ${agentCommand()} agent --login if needed, ${agentCommand()} agent --add-sources coding-sessions --name "<full_name>" --org "<organization>", ${agentCommand()} agent --continue, then ${agentCommand()} status.`,
834
841
  "Use production memory/wiki tools only for company-memory questions, source recall, wiki lookup, messages/meetings retrieval, or coding-session work history that has already synced to Shepherd.",
@@ -849,7 +856,7 @@ async function callLocalMcpTool(name) {
849
856
  ].join("\n\n"));
850
857
  }
851
858
 
852
- if (name === "shepherd_setup_coding_sessions") {
859
+ if (name === "shepherd_setup_coding_sessions" || name === "shepherd_enable_coding_sessions") {
853
860
  const status = await collectShepherdStatus();
854
861
  return localMcpTextResult(renderCodingSessionsSetupMcpResult(status));
855
862
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askshepherd",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Customer-facing Shepherd production onboarding and MCP CLI",
5
5
  "type": "module",
6
6
  "bin": {