dexto 1.6.25 → 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
  };
@@ -630,13 +630,13 @@ export function createCloudAgentBackend(client, cloudAgentId) {
630
630
  setGlobalDisabledTools: ((toolNames) => {
631
631
  globalDisabledTools.splice(0, globalDisabledTools.length, ...toolNames);
632
632
  }),
633
- setSessionDisabledTools: ((sessionId, toolNames) => {
633
+ setSessionDisabledTools: (async (sessionId, toolNames) => {
634
634
  sessionDisabledTools.set(sessionId, [...toolNames]);
635
635
  }),
636
- setSessionAutoApproveTools: ((sessionId, toolNames) => {
636
+ setSessionAutoApproveTools: (async (sessionId, toolNames) => {
637
637
  sessionAutoApproveTools.set(sessionId, [...toolNames]);
638
638
  }),
639
- getSessionAutoApproveTools: ((sessionId) => {
639
+ getSessionAutoApproveTools: (async (sessionId) => {
640
640
  return sessionAutoApproveTools.get(sessionId) ?? [];
641
641
  }),
642
642
  getMcpServersWithStatus: (() => []),
@@ -354,6 +354,7 @@ async function bootstrapAgentFromGlobalOpts(options) {
354
354
  const agent = new DextoAgent(toDextoAgentOptions({
355
355
  config: validatedConfig,
356
356
  services,
357
+ image,
357
358
  }));
358
359
  await agent.start();
359
360
  await (await import('./utils/workspace.js')).applyWorkspaceToAgent(agent, workspaceRoot);
@@ -832,6 +833,7 @@ program
832
833
  agent = new DextoAgent(toDextoAgentOptions({
833
834
  config: validatedConfig,
834
835
  services,
836
+ image,
835
837
  overrides: {
836
838
  sessionLoggerFactory,
837
839
  mcpAuthProviderFactory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dexto",
3
- "version": "1.6.25",
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.25",
38
- "@dexto/agent-management": "1.6.25",
39
- "@dexto/analytics": "1.6.25",
40
- "@dexto/client-sdk": "1.6.25",
41
- "@dexto/core": "1.6.25",
42
- "@dexto/image-local": "1.6.25",
43
- "@dexto/image-logger-agent": "1.6.25",
44
- "@dexto/registry": "1.6.25",
45
- "@dexto/server": "1.6.25",
46
- "@dexto/storage": "1.6.25",
47
- "@dexto/tui": "1.6.25"
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",