dexto 1.6.26 → 1.6.27

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.
@@ -11,9 +11,9 @@
11
11
  * 2. User responds in TUI → EventBus emits 'approval:response' → Handler resolves
12
12
  * 3. For auto-approvals (parallel tools), handler emits 'approval:response' → TUI dismisses
13
13
  */
14
- import type { ApprovalHandler, AgentEventMap } from '@dexto/core';
14
+ import type { ApprovalHandler, AgentEventMap, EventListener } from '@dexto/core';
15
15
  type ApprovalEventBus = {
16
- on: <K extends keyof AgentEventMap>(event: K, listener: AgentEventMap[K] extends void ? () => void : (payload: AgentEventMap[K]) => void, options?: {
16
+ on: <K extends keyof AgentEventMap>(event: K, listener: EventListener<AgentEventMap[K]>, options?: {
17
17
  signal?: AbortSignal;
18
18
  }) => void;
19
19
  emit: <K extends keyof AgentEventMap>(event: K, ...args: AgentEventMap[K] extends void ? [] : [AgentEventMap[K]]) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-approval-handler.d.ts","sourceRoot":"","sources":["../../../src/cli/approval/cli-approval-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACR,eAAe,EAGf,aAAa,EAChB,MAAM,aAAa,CAAC;AAGrB,KAAK,gBAAgB,GAAG;IACpB,EAAE,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAC9B,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,EAC1F,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,KACjC,IAAI,CAAC;IACV,IAAI,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAChC,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAC/D,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,eAAe,CAyJpF"}
1
+ {"version":3,"file":"cli-approval-handler.d.ts","sourceRoot":"","sources":["../../../src/cli/approval/cli-approval-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACR,eAAe,EAGf,aAAa,EACb,aAAa,EAChB,MAAM,aAAa,CAAC;AAGrB,KAAK,gBAAgB,GAAG;IACpB,EAAE,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAC9B,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EACzC,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,KACjC,IAAI,CAAC;IACV,IAAI,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAChC,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAC/D,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,eAAe,CA4JpF"}
@@ -42,6 +42,7 @@ export function createCLIApprovalHandler(eventBus) {
42
42
  approvalId: request.approvalId,
43
43
  status: ApprovalStatus.CANCELLED,
44
44
  sessionId: request.sessionId,
45
+ hostRuntime: request.hostRuntime,
45
46
  reason: DenialReason.TIMEOUT,
46
47
  message: `Approval request timed out after ${effectiveTimeout}ms`,
47
48
  timeoutMs: effectiveTimeout,
@@ -91,6 +92,7 @@ export function createCLIApprovalHandler(eventBus) {
91
92
  approvalId,
92
93
  status: ApprovalStatus.CANCELLED,
93
94
  sessionId: pending.request.sessionId,
95
+ hostRuntime: pending.request.hostRuntime,
94
96
  reason: DenialReason.SYSTEM_CANCELLED,
95
97
  message: 'Approval request was cancelled',
96
98
  };
@@ -129,6 +131,7 @@ export function createCLIApprovalHandler(eventBus) {
129
131
  approvalId,
130
132
  status: ApprovalStatus.APPROVED,
131
133
  sessionId: pending.request.sessionId,
134
+ hostRuntime: pending.request.hostRuntime,
132
135
  message: 'Auto-approved due to matching remembered pattern',
133
136
  data: responseData,
134
137
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dexto",
3
- "version": "1.6.26",
3
+ "version": "1.6.27",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dexto": "./dist/index.js"
@@ -34,17 +34,17 @@
34
34
  "ws": "^8.18.1",
35
35
  "yaml": "^2.8.3",
36
36
  "zod": "^3.25.0",
37
- "@dexto/agent-config": "1.6.26",
38
- "@dexto/agent-management": "1.6.26",
39
- "@dexto/analytics": "1.6.26",
40
- "@dexto/client-sdk": "1.6.26",
41
- "@dexto/core": "1.6.26",
42
- "@dexto/image-local": "1.6.26",
43
- "@dexto/image-logger-agent": "1.6.26",
44
- "@dexto/registry": "1.6.26",
45
- "@dexto/server": "1.6.26",
46
- "@dexto/storage": "1.6.26",
47
- "@dexto/tui": "1.6.26"
37
+ "@dexto/agent-config": "1.6.27",
38
+ "@dexto/agent-management": "1.6.27",
39
+ "@dexto/analytics": "1.6.27",
40
+ "@dexto/client-sdk": "1.6.27",
41
+ "@dexto/core": "1.6.27",
42
+ "@dexto/image-local": "1.6.27",
43
+ "@dexto/image-logger-agent": "1.6.27",
44
+ "@dexto/registry": "1.6.27",
45
+ "@dexto/server": "1.6.27",
46
+ "@dexto/storage": "1.6.27",
47
+ "@dexto/tui": "1.6.27"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/ws": "^8.5.11",