@danypops/pi-papyrus 0.45.10 → 0.46.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.
@@ -50,6 +50,15 @@ const REGISTERED_PERMISSIONS = [
50
50
  /** Task Focus's own internal write needs a real, per-session secret -- see below. Every other tasks.* operation reads session_id purely for read-scoping and needs no secret. */
51
51
  const FOCUS_MUTATION_OPERATIONS = new Set(["tasks.focus", "tasks.pause", "tasks.unpause", "tasks.clear_focus"]);
52
52
 
53
+ /**
54
+ * Vehicle Shell's core set (see @danypops/vehicle-client-pi's registerVehicleTools `shell`
55
+ * option): the handful of operations used in nearly every session, active from turn one with no
56
+ * tools_man round-trip. Every other operation (91 total at last count, ~8929 tokens of always-
57
+ * loaded schema) boots inactive, reachable via tools_list/tools_man. Illustrative, not fixed --
58
+ * tune from real usage.
59
+ */
60
+ const CORE_OPERATIONS = ["tasks.list", "tasks.create", "tasks.start", "tasks.submit", "tasks.complete", "tasks.context"];
61
+
53
62
  export async function registerNotesVehicle(pi: ExtensionAPI): Promise<void> {
54
63
  const target = currentVehicleClientTarget();
55
64
  if (!target) return;
@@ -63,6 +72,7 @@ export async function registerNotesVehicle(pi: ExtensionAPI): Promise<void> {
63
72
  permissions: REGISTERED_PERMISSIONS,
64
73
  principal: { id: "pi-papyrus" },
65
74
  renderers: papyrusVehicleRenderers,
75
+ shell: { coreOperations: CORE_OPERATIONS },
66
76
  // playbooks.invoke's own module handler, and tasks.focus/pause/unpause/clear_focus's
67
77
  // own module handlers, authorize an internal Task Focus write via
68
78
  // sessionIdentity.assertAuthorized(session_id, session_secret) -- see
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-papyrus",
3
- "version": "0.45.10",
3
+ "version": "0.46.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"],
@@ -20,7 +20,7 @@
20
20
  "@danypops/jittor": "^0.14.0",
21
21
  "@danypops/papyrus": "^0.44.0",
22
22
  "@danypops/vehicle-client": "^0.5.0",
23
- "@danypops/vehicle-client-pi": "^0.16.8",
23
+ "@danypops/vehicle-client-pi": "^0.18.3",
24
24
  "@danypops/vehicle-core": "^0.12.3",
25
25
  "@danypops/vehicle-server": "^0.18.1",
26
26
  "beautiful-mermaid": "1.1.3",