@danypops/pi-papyrus 0.35.0 → 0.35.1

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.
@@ -827,6 +827,10 @@ export function registerDiscussTool(pi: ExtensionAPI): void {
827
827
  await resolveNameArrayField(params, "blocks_task_names", "blocks_task_ids", "tasks.list", taskScope);
828
828
  if (action === "open" || action === "reply") {
829
829
  normalizeDiscussOptions(params);
830
+ // Matches the tasks/notes tools' own convention: an agent-driven mutation with no
831
+ // explicit human actor still needs a real, non-generic label for the audit trail,
832
+ // not a bare daemon rejection.
833
+ if (typeof params.actor !== "string" || params.actor.length === 0) params.actor = "agent";
830
834
  const operation = action === "open" ? "discuss.open" : "discuss.reply";
831
835
  const result = await callService<Record<string, unknown>, DiscussionAndRounds>(operation, params);
832
836
  const fallback = action === "open"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-papyrus",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "Pi host extension for Papyrus: native tools, TUI panels, and context injection over the daemon-backed graph store",
5
5
  "type": "module",
6
6
  "keywords": ["pi-package"],
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@danypops/daemon-kit": "^0.10.0",
21
- "@danypops/papyrus": "^0.35.0",
21
+ "@danypops/papyrus": "^0.35.1",
22
22
  "beautiful-mermaid": "1.1.3"
23
23
  },
24
24
  "devDependencies": {