pi-daddy 0.56.1 → 0.56.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog — pi-daddy
2
2
 
3
+ ## 0.56.2 — 2026-11-13
4
+
5
+ - Activity and in-progress labels now explain Bookie memory, Scout research, skill authoring/evaluations and optional JEV advice in plain language. Labels use fixed tool and action descriptions; private queries, note contents and source links stay out of the dashboard. Results and permissions are unchanged.
6
+
3
7
  ## 0.56.1 — 2026-11-11
4
8
 
5
9
  - Native Pi questions now appear under **Needs your input** while waiting. Answer or cancel in the main Pi chat; the row and Herdr waiting indicator clear when the dialog closes or the session changes. Informational panels, saved open choices and earlier failed attempts do not become new attention requests. Restart Pi after updating.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-daddy
2
2
 
3
- Source target: **0.49.5**. Before installation, verify that `npm view pi-daddy version` and Git tag `v0.49.5` both resolve to this release.
3
+ Source target: **0.56.2**. Before installation, verify that `npm view pi-daddy version` and Git tag `v0.56.2` both resolve to this release.
4
4
 
5
5
  **Capability governance and coordination for [pi](https://github.com/badlogic/pi-mono)'s multi-level agent system.**
6
6
  An orchestrator grants each sub-agent a deliberate subset of what it holds and withholds the rest. A sub-agent may
@@ -1 +1 @@
1
- {"version":3,"file":"activity-summary.d.ts","sourceRoot":"","sources":["../../src/products/activity-summary.ts"],"names":[],"mappings":"AAOA,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKvE;AAED,eAAO,MAAM,2BAA2B,QAE2D,CAAC;AAEpG,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAKvE;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAiEhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAM1F"}
1
+ {"version":3,"file":"activity-summary.d.ts","sourceRoot":"","sources":["../../src/products/activity-summary.ts"],"names":[],"mappings":"AAOA,mFAAmF;AACnF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKvE;AAED,eAAO,MAAM,2BAA2B,QAE2D,CAAC;AAEpG,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAKvE;AA6DD,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAuEhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,CAM1F"}
@@ -19,9 +19,73 @@ export function dashboardContentEnabled(env) {
19
19
  return (!["off", "0"].includes(env.PI_DADDY_ACTIVITY_TIMELINE?.trim() ?? "") &&
20
20
  !["off", "metadata-only"].includes(env.PI_DADDY_ACTIVITY_CONTENT?.trim() ?? ""));
21
21
  }
22
+ // Exact public tool names and action enums only. These descriptions are attempts, not results;
23
+ // they never inspect the note, question, source, model prompt or returned content.
24
+ const ecosystemPurposes = {
25
+ bookie_search: "Search project memory",
26
+ bookie_read: "Read a saved project note",
27
+ bookie_remember: "Save a project note",
28
+ bookie_checkpoint: "Prepare a project handoff for review",
29
+ bookie_write: "Write a project note",
30
+ bookie_validate: "Check project notes",
31
+ bookie_export: "Read selected project records for export",
32
+ bookie_context_prepare: "Prepare selected project context",
33
+ bookie_context_read: "Read selected project context",
34
+ bookie_reference_read: "Read a saved result",
35
+ bookie_work: "Read the project task list",
36
+ research_sources: "List selected research sources",
37
+ research_read: "Read a research source",
38
+ research_brief: "Save a research brief",
39
+ scout_research: "Research a public question",
40
+ scout_brief_read: "Read a saved research brief",
41
+ skill_check_run: "Run skill evaluations",
42
+ skill_author: "Work on a skill draft",
43
+ skill_improvement: "Work on a skill improvement proposal",
44
+ jev_advice: "Check optional JEV advice",
45
+ };
46
+ const ecosystemActionPurposes = {
47
+ bookie_write: {
48
+ create: "Create a project note",
49
+ amend: "Update a project note",
50
+ },
51
+ bookie_context_read: {
52
+ revalidate: "Recheck selected project context",
53
+ },
54
+ bookie_work: {
55
+ schema: "Read the task-list format guide",
56
+ },
57
+ skill_author: {
58
+ reference: "Read the skill and evaluation format guide",
59
+ start: "Start a skill draft",
60
+ status: "Check skill authoring progress",
61
+ answer: "Record an answer for the skill brief",
62
+ question: "Ask the next skill design question",
63
+ draft: "Validate a skill and evaluation draft",
64
+ apply: "Save the skill and evaluation files",
65
+ controls: "Prepare example answers for evaluation",
66
+ "task-contract": "Define the required task outcomes",
67
+ "contract-review": "Check evaluation criteria against the task",
68
+ "review-controls": "Review the example judgments",
69
+ },
70
+ skill_improvement: {
71
+ propose: "Record a skill improvement proposal",
72
+ inspect: "Read a skill improvement proposal",
73
+ },
74
+ jev_advice: {
75
+ status: "Check optional JEV availability",
76
+ evaluate: "Ask JEV for optional advice",
77
+ "link-outcome": "Link an outcome to earlier JEV advice",
78
+ },
79
+ };
22
80
  /** Only fixed descriptions cross the observation boundary for regular tools. */
23
81
  export function toolPurpose(tool, args) {
24
82
  const params = args && typeof args === "object" ? args : {};
83
+ if (Object.hasOwn(ecosystemPurposes, tool)) {
84
+ const actions = Object.hasOwn(ecosystemActionPurposes, tool) ? ecosystemActionPurposes[tool] : undefined;
85
+ if (actions && typeof params.action === "string" && Object.hasOwn(actions, params.action))
86
+ return actions[params.action];
87
+ return ecosystemPurposes[tool];
88
+ }
25
89
  if (tool === "bash" && typeof params.command === "string" && /^\s*npm\s+(?:test|run\s+test)\s*$/.test(params.command))
26
90
  return "Run the project tests";
27
91
  if (tool === "read" && typeof params.path === "string" && params.path.length <= 4096) {
@@ -1 +1 @@
1
- {"version":3,"file":"activity-summary.js","sourceRoot":"","sources":["../../src/products/activity-summary.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG;IACrB,mDAAmD;IACnD,sCAAsC;IACtC,0CAA0C;IAC1C,yGAAyG;CAC1G,CAAC;AAEF,mFAAmF;AACnF,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO;IAC7F,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/C,IAAI,CAAC,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO;IAC1E,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GACtC,2GAA2G;IAC3G,iGAAiG,CAAC;AAEpG,MAAM,UAAU,uBAAuB,CAAC,GAAsB;IAC5D,OAAO,CACL,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,0BAA0B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACpE,CAAC,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAChF,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,IAAc;IACtD,MAAM,MAAM,GAAG,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAE,IAAgC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,IAAI,IAAI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MAAM;YACT,OAAO,qBAAqB,CAAC;QAC/B,KAAK,UAAU,CAAC,CAAC,CAAC;YAChB,QAAQ,MAAM,CAAC,KAAK,EAAE,CAAC;gBACrB,KAAK,QAAQ;oBACX,OAAO,+BAA+B,CAAC;gBACzC,KAAK,aAAa;oBAChB,OAAO,mCAAmC,CAAC;gBAC7C,KAAK,aAAa;oBAChB,OAAO,+BAA+B,CAAC;gBACzC,KAAK,OAAO;oBACV,OAAO,sCAAsC,CAAC;gBAChD,KAAK,MAAM;oBACT,OAAO,kCAAkC,CAAC;gBAC5C;oBACE,OAAO,kCAAkC,CAAC;YAC9C,CAAC;QACH,CAAC;QACD,KAAK,cAAc;YACjB,OAAO,oCAAoC,CAAC;QAC9C,KAAK,gBAAgB;YACnB,OAAO,yCAAyC,CAAC;QACnD,KAAK,mBAAmB;YACtB,OAAO,iCAAiC,CAAC;QAC3C,KAAK,oBAAoB;YACvB,OAAO,wBAAwB,CAAC;QAClC,KAAK,UAAU;YACb,OAAO,2BAA2B,CAAC;QACrC;YACE,OAAO,oBAAoB,CAAC;IAChC,CAAC;AACH,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,IAAa,EAAE,YAAqB;IAChF,IAAI,IAAI,KAAK,UAAU,IAAI,YAAY,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC5E,MAAM,OAAO,GAAG,oBAAoB,CAAE,IAAgC,CAAC,gBAAgB,CAAC,CAAC;QACzF,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC;IAC9B,CAAC;IACD,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC"}
1
+ {"version":3,"file":"activity-summary.js","sourceRoot":"","sources":["../../src/products/activity-summary.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG;IACrB,mDAAmD;IACnD,sCAAsC;IACtC,0CAA0C;IAC1C,yGAAyG;CAC1G,CAAC;AAEF,mFAAmF;AACnF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oBAAoB,CAAE,IAAgC,CAAC,gBAAgB,CAAC,CAAC;QACzF,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC;IAC9B,CAAC;IACD,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-daddy",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "Capability governance for pi sub-agents: spawn Agent Skills (SKILL.md) definitions whose allowed-tools becomes a grant that can only narrow going down a delegation tree, enforced by pi's own --tools allowlist, with an append-only ledger.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -24,9 +24,74 @@ export function dashboardContentEnabled(env: NodeJS.ProcessEnv): boolean {
24
24
  );
25
25
  }
26
26
 
27
+ // Exact public tool names and action enums only. These descriptions are attempts, not results;
28
+ // they never inspect the note, question, source, model prompt or returned content.
29
+ const ecosystemPurposes: Record<string, string> = {
30
+ bookie_search: "Search project memory",
31
+ bookie_read: "Read a saved project note",
32
+ bookie_remember: "Save a project note",
33
+ bookie_checkpoint: "Prepare a project handoff for review",
34
+ bookie_write: "Write a project note",
35
+ bookie_validate: "Check project notes",
36
+ bookie_export: "Read selected project records for export",
37
+ bookie_context_prepare: "Prepare selected project context",
38
+ bookie_context_read: "Read selected project context",
39
+ bookie_reference_read: "Read a saved result",
40
+ bookie_work: "Read the project task list",
41
+ research_sources: "List selected research sources",
42
+ research_read: "Read a research source",
43
+ research_brief: "Save a research brief",
44
+ scout_research: "Research a public question",
45
+ scout_brief_read: "Read a saved research brief",
46
+ skill_check_run: "Run skill evaluations",
47
+ skill_author: "Work on a skill draft",
48
+ skill_improvement: "Work on a skill improvement proposal",
49
+ jev_advice: "Check optional JEV advice",
50
+ };
51
+ const ecosystemActionPurposes: Record<string, Record<string, string>> = {
52
+ bookie_write: {
53
+ create: "Create a project note",
54
+ amend: "Update a project note",
55
+ },
56
+ bookie_context_read: {
57
+ revalidate: "Recheck selected project context",
58
+ },
59
+ bookie_work: {
60
+ schema: "Read the task-list format guide",
61
+ },
62
+ skill_author: {
63
+ reference: "Read the skill and evaluation format guide",
64
+ start: "Start a skill draft",
65
+ status: "Check skill authoring progress",
66
+ answer: "Record an answer for the skill brief",
67
+ question: "Ask the next skill design question",
68
+ draft: "Validate a skill and evaluation draft",
69
+ apply: "Save the skill and evaluation files",
70
+ controls: "Prepare example answers for evaluation",
71
+ "task-contract": "Define the required task outcomes",
72
+ "contract-review": "Check evaluation criteria against the task",
73
+ "review-controls": "Review the example judgments",
74
+ },
75
+ skill_improvement: {
76
+ propose: "Record a skill improvement proposal",
77
+ inspect: "Read a skill improvement proposal",
78
+ },
79
+ jev_advice: {
80
+ status: "Check optional JEV availability",
81
+ evaluate: "Ask JEV for optional advice",
82
+ "link-outcome": "Link an outcome to earlier JEV advice",
83
+ },
84
+ };
85
+
27
86
  /** Only fixed descriptions cross the observation boundary for regular tools. */
28
87
  export function toolPurpose(tool: string, args?: unknown): string {
29
88
  const params = args && typeof args === "object" ? (args as Record<string, unknown>) : {};
89
+ if (Object.hasOwn(ecosystemPurposes, tool)) {
90
+ const actions = Object.hasOwn(ecosystemActionPurposes, tool) ? ecosystemActionPurposes[tool] : undefined;
91
+ if (actions && typeof params.action === "string" && Object.hasOwn(actions, params.action))
92
+ return actions[params.action]!;
93
+ return ecosystemPurposes[tool]!;
94
+ }
30
95
  if (tool === "bash" && typeof params.command === "string" && /^\s*npm\s+(?:test|run\s+test)\s*$/.test(params.command))
31
96
  return "Run the project tests";
32
97
  if (tool === "read" && typeof params.path === "string" && params.path.length <= 4096) {