@pi-archimedes/core 1.2.2 → 1.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bus.ts +15 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-archimedes/core",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "pi-package"
package/src/bus.ts CHANGED
@@ -81,6 +81,8 @@ export const Events = {
81
81
  COST_UPDATE: "archimedes:cost_update",
82
82
  TODOS_UPDATE: "archimedes:todos_update",
83
83
  TODOS_CLEAR: "archimedes:todos_clear",
84
+ ASK_REQUEST: "archimedes:ask_request",
85
+ ASK_RESPONSE: "archimedes:ask_response",
84
86
  } as const;
85
87
 
86
88
  interface TodoUpdatePayload {
@@ -92,4 +94,16 @@ interface TodoClearPayload {
92
94
  source: string;
93
95
  }
94
96
 
95
- export type { CostUpdatePayload, TodoUpdatePayload, TodoClearPayload };
97
+ interface AskRequestPayload {
98
+ source: string; // "subagent:<agent-name>"
99
+ requestId: string; // unique id to match request → response
100
+ questions: Array<{ id: string; question: string; description?: string; options: Array<{ label: string }>; multi?: boolean; recommended?: number }>;
101
+ }
102
+
103
+ interface AskResponsePayload {
104
+ requestId: string;
105
+ cancelled: boolean;
106
+ results: Array<{ id: string; selectedOptions: string[]; customInput?: string }>;
107
+ }
108
+
109
+ export type { CostUpdatePayload, TodoUpdatePayload, TodoClearPayload, AskRequestPayload, AskResponsePayload };