@akagilnc/pi-workflow-roles 0.1.6123 → 0.1.6126

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.
@@ -394,6 +394,9 @@ export function codexTurnArgs(options) {
394
394
  /**
395
395
  * Project shared-envelope MCP server rows into Claude `--mcp-config` JSON.
396
396
  * Env stays a plain object (Claude CLI shape); ACP rows use `{name,value}[]`.
397
+ * Each server carries Claude's `alwaysLoad` (#1295): Claude otherwise defers MCP
398
+ * tool definitions until searched, so a leg would not see "when to call" in the
399
+ * report-ticket tool's description at session start.
397
400
  */
398
401
  export function headlessMcpConfigDocument(mcpServers) {
399
402
  const servers = {};
@@ -402,7 +405,7 @@ export function headlessMcpConfigDocument(mcpServers) {
402
405
  const command = typeof row.command === "string" ? row.command : undefined;
403
406
  if (name === undefined || name === "" || command === undefined || command === "")
404
407
  continue;
405
- const entry = { command };
408
+ const entry = { command, alwaysLoad: true };
406
409
  if (Array.isArray(row.args))
407
410
  entry.args = row.args;
408
411
  const env = stringEnvironment(row.env);
@@ -24838,7 +24838,7 @@ function headlessMcpConfigDocument(mcpServers) {
24838
24838
  const name = typeof row.name === "string" ? row.name : void 0;
24839
24839
  const command = typeof row.command === "string" ? row.command : void 0;
24840
24840
  if (name === void 0 || name === "" || command === void 0 || command === "") continue;
24841
- const entry = { command };
24841
+ const entry = { command, alwaysLoad: true };
24842
24842
  if (Array.isArray(row.args)) entry.args = row.args;
24843
24843
  const env = stringEnvironment(row.env);
24844
24844
  if (env !== void 0) entry.env = env;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akagilnc/pi-workflow-roles",
3
- "version": "0.1.6123",
3
+ "version": "0.1.6126",
4
4
  "description": "Soul-bound workflow roles for Pi",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -500,6 +500,9 @@ export function codexTurnArgs(options: {
500
500
  /**
501
501
  * Project shared-envelope MCP server rows into Claude `--mcp-config` JSON.
502
502
  * Env stays a plain object (Claude CLI shape); ACP rows use `{name,value}[]`.
503
+ * Each server carries Claude's `alwaysLoad` (#1295): Claude otherwise defers MCP
504
+ * tool definitions until searched, so a leg would not see "when to call" in the
505
+ * report-ticket tool's description at session start.
503
506
  */
504
507
  export function headlessMcpConfigDocument(
505
508
  mcpServers: readonly Readonly<Record<string, unknown>>[],
@@ -509,7 +512,7 @@ export function headlessMcpConfigDocument(
509
512
  const name = typeof row.name === "string" ? row.name : undefined;
510
513
  const command = typeof row.command === "string" ? row.command : undefined;
511
514
  if (name === undefined || name === "" || command === undefined || command === "") continue;
512
- const entry: Record<string, unknown> = { command };
515
+ const entry: Record<string, unknown> = { command, alwaysLoad: true };
513
516
  if (Array.isArray(row.args)) entry.args = row.args;
514
517
  const env = stringEnvironment(row.env);
515
518
  if (env !== undefined) entry.env = env;