dexto 1.7.2 → 1.8.0
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.
- package/README.md +4 -7
- package/dist/agents/coding-agent/coding-agent.yml +0 -5
- package/dist/agents/default-agent.yml +0 -6
- package/dist/cli/auth/api-client.d.ts +9 -7
- package/dist/cli/auth/api-client.d.ts.map +1 -1
- package/dist/cli/auth/api-client.js +42 -64
- package/dist/cli/auth/device.d.ts +2 -2
- package/dist/cli/auth/device.d.ts.map +1 -1
- package/dist/cli/auth/device.js +3 -12
- package/dist/cli/auth/index.d.ts +2 -1
- package/dist/cli/auth/index.d.ts.map +1 -1
- package/dist/cli/auth/index.js +1 -1
- package/dist/cli/auth/login-persistence.d.ts +2 -0
- package/dist/cli/auth/login-persistence.d.ts.map +1 -1
- package/dist/cli/auth/login-persistence.js +12 -0
- package/dist/cli/auth/types.d.ts +4 -5
- package/dist/cli/auth/types.d.ts.map +1 -1
- package/dist/cli/cloud-chat.d.ts.map +1 -1
- package/dist/cli/cloud-chat.js +65 -24
- package/dist/cli/commands/auth/login.d.ts +4 -1
- package/dist/cli/commands/auth/login.d.ts.map +1 -1
- package/dist/cli/commands/auth/login.js +7 -8
- package/dist/cli/commands/auth/register.d.ts.map +1 -1
- package/dist/cli/commands/auth/register.js +2 -0
- package/dist/cli/commands/create-image.d.ts.map +1 -1
- package/dist/cli/commands/create-image.js +1 -13
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +19 -27
- package/dist/cli/commands/run/headless.d.ts.map +1 -1
- package/dist/cli/commands/run/headless.js +75 -65
- package/dist/cli/modes/cli.js +2 -2
- package/dist/cli/utils/scaffolding-utils.d.ts.map +1 -1
- package/dist/cli/utils/scaffolding-utils.js +1 -9
- package/dist/cli/utils/template-engine.d.ts +0 -12
- package/dist/cli/utils/template-engine.d.ts.map +1 -1
- package/dist/cli/utils/template-engine.js +5 -116
- package/dist/index-main.js +9 -5
- package/dist/webui/assets/{index-UG5Fuw_8.js → index-M9d4U7k5.js} +114 -114
- package/dist/webui/index.html +1 -1
- package/package.json +12 -12
package/dist/index-main.js
CHANGED
|
@@ -107,7 +107,7 @@ program
|
|
|
107
107
|
.option('--no-interactive', 'Disable interactive prompts and API key setup')
|
|
108
108
|
.option('--skip-setup', 'Skip global setup validation (useful for MCP mode, automation)')
|
|
109
109
|
.option('-m, --model <model>', 'Specify the LLM model to use')
|
|
110
|
-
.option('--auto-approve', 'Always approve tool executions without
|
|
110
|
+
.option('--auto-approve', 'Always approve tool executions without approval prompts')
|
|
111
111
|
.option('--bypass-permissions', 'Start the interactive CLI in bypass permissions mode (auto-approve approval prompts)')
|
|
112
112
|
.option('--no-elicitation', 'Disable elicitation (agent cannot prompt user for input)')
|
|
113
113
|
.option('-c, --continue', 'Continue most recent session (CLI mode)')
|
|
@@ -350,11 +350,12 @@ async function bootstrapAgentFromGlobalOpts(options) {
|
|
|
350
350
|
}),
|
|
351
351
|
};
|
|
352
352
|
const validatedConfig = AgentConfigSchema.parse(enrichedConfig);
|
|
353
|
-
const services = await resolveServicesFromConfig(validatedConfig, image);
|
|
353
|
+
const services = await resolveServicesFromConfig(validatedConfig, image, { workspaceRoot });
|
|
354
354
|
const agent = new DextoAgent(toDextoAgentOptions({
|
|
355
355
|
config: validatedConfig,
|
|
356
356
|
services,
|
|
357
357
|
image,
|
|
358
|
+
hostContext: { workspaceRoot },
|
|
358
359
|
}));
|
|
359
360
|
await agent.start();
|
|
360
361
|
await (await import('./utils/workspace.js')).applyWorkspaceToAgent(agent, workspaceRoot);
|
|
@@ -801,7 +802,7 @@ program
|
|
|
801
802
|
console.error(`❌ Manual approval and elicitation are not supported in "${opts.mode}" mode.`);
|
|
802
803
|
console.error(`💡 These features require interactive UI and are only supported in: ${supportedModes.join(', ')}`);
|
|
803
804
|
console.error('💡 Run `dexto --auto-approve` or configure your agent to skip approvals when running non-interactively.');
|
|
804
|
-
console.error(' permissions.mode: auto-approve
|
|
805
|
+
console.error(' permissions.mode: auto-approve');
|
|
805
806
|
console.error(' elicitation.enabled: false');
|
|
806
807
|
safeExit('main', 1, 'approval-unsupported-mode');
|
|
807
808
|
}
|
|
@@ -810,7 +811,7 @@ program
|
|
|
810
811
|
let agent;
|
|
811
812
|
let derivedAgentId;
|
|
812
813
|
try {
|
|
813
|
-
// Set run mode for tool
|
|
814
|
+
// Set run mode for tool approval provider
|
|
814
815
|
process.env.DEXTO_RUN_MODE = opts.mode;
|
|
815
816
|
// Apply --strict flag to all server configs
|
|
816
817
|
if (opts.strict && validatedConfig.mcpServers) {
|
|
@@ -829,11 +830,14 @@ program
|
|
|
829
830
|
logger,
|
|
830
831
|
})
|
|
831
832
|
: null;
|
|
832
|
-
const services = await resolveServicesFromConfig(validatedConfig, image
|
|
833
|
+
const services = await resolveServicesFromConfig(validatedConfig, image, {
|
|
834
|
+
workspaceRoot,
|
|
835
|
+
});
|
|
833
836
|
agent = new DextoAgent(toDextoAgentOptions({
|
|
834
837
|
config: validatedConfig,
|
|
835
838
|
services,
|
|
836
839
|
image,
|
|
840
|
+
hostContext: { workspaceRoot },
|
|
837
841
|
overrides: {
|
|
838
842
|
sessionLoggerFactory,
|
|
839
843
|
mcpAuthProviderFactory,
|