dexto 1.14.0 → 1.14.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/run/output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB,GAAG,CACE;IAAE,YAAY,EAAE,OAAO,YAAY,CAAC,aAAa,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACzF;IAAE,YAAY,EAAE,OAAO,YAAY,CAAC,gBAAgB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxE;IACI,YAAY,EAAE,OAAO,CACjB,eAAe,CAAC,MAAM,CAAC,EACvB,OAAO,YAAY,CAAC,aAAa,GAAG,OAAO,YAAY,CAAC,gBAAgB,CAC3E,CAAC;CACL,CACN,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,wBAAwB,CAuB7F;AAED,wBAAsB,mBAAmB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/run/output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,MAAM,MAAM,wBAAwB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB,GAAG,CACE;IAAE,YAAY,EAAE,OAAO,YAAY,CAAC,aAAa,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACzF;IAAE,YAAY,EAAE,OAAO,YAAY,CAAC,gBAAgB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACxE;IACI,YAAY,EAAE,OAAO,CACjB,eAAe,CAAC,MAAM,CAAC,EACvB,OAAO,YAAY,CAAC,aAAa,GAAG,OAAO,YAAY,CAAC,gBAAgB,CAC3E,CAAC;CACL,CACN,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,wBAAwB,CAuB7F;AAED,wBAAsB,mBAAmB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,MAAM,GAAG,SAAS,GAC9B,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAgD7E"}
|
|
@@ -48,6 +48,12 @@ export async function writeHeadlessEvent(event) {
|
|
|
48
48
|
case 'llm:chunk':
|
|
49
49
|
payload = { type: 'message_delta', content: event.content };
|
|
50
50
|
break;
|
|
51
|
+
case 'llm:retrying':
|
|
52
|
+
if (event.reason !== 'empty_response')
|
|
53
|
+
return;
|
|
54
|
+
// Discard deltas for the current response; completed responses remain intact.
|
|
55
|
+
payload = { type: 'message_reset', reason: event.reason };
|
|
56
|
+
break;
|
|
51
57
|
case 'llm:tool-call':
|
|
52
58
|
payload = {
|
|
53
59
|
type: 'tool_call',
|
package/dist/index-main.js
CHANGED
|
@@ -47,7 +47,7 @@ process.env.DEXTO_CLI_VERSION = cliVersion;
|
|
|
47
47
|
import { logger, startLlmRegistryAutoUpdate, DextoAgent, isPath } from '@dexto/core';
|
|
48
48
|
import { getAllSupportedModels, getProviderFromModel } from '@dexto/llm';
|
|
49
49
|
import { applyImageDefaults, cleanNullValues, AgentConfigSchema, loadImage, resolveServicesFromConfig, toDextoAgentOptions, } from '@dexto/agent-config';
|
|
50
|
-
import { getDextoPackageRoot, resolveAgentPath, loadAgentConfig, findDextoProjectRoot, globalPreferencesExist, loadGlobalPreferences, resolveBundledScript, enrichAgentConfig, isDextoAuthEnabled, createModelAuthResolver, resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, } from '@dexto/agent-management';
|
|
50
|
+
import { registerConfiguredSkillPrompts, getDextoPackageRoot, resolveAgentPath, loadAgentConfig, findDextoProjectRoot, globalPreferencesExist, loadGlobalPreferences, resolveBundledScript, enrichAgentConfig, isDextoAuthEnabled, createModelAuthResolver, resolveApiKeyForProvider, getPrimaryApiKeyEnvVar, } from '@dexto/agent-management';
|
|
51
51
|
import { validateCliOptions, handleCliOptionsError } from './cli/utils/options.js';
|
|
52
52
|
import { validateAgentConfig } from './cli/utils/config-validation.js';
|
|
53
53
|
import { applyCLIOverrides, applyStartupLLMFallback, applyUserPreferences, } from './config/cli-overrides.js';
|
|
@@ -375,6 +375,7 @@ async function bootstrapAgentFromGlobalOpts(options) {
|
|
|
375
375
|
};
|
|
376
376
|
const validatedConfig = AgentConfigSchema.parse(enrichedConfig);
|
|
377
377
|
const services = await resolveServicesFromConfig(validatedConfig, image, { workspaceRoot });
|
|
378
|
+
registerConfiguredSkillPrompts(services.skills, validatedConfig.prompts);
|
|
378
379
|
const agent = new DextoAgent(toDextoAgentOptions({
|
|
379
380
|
config: validatedConfig,
|
|
380
381
|
services,
|
|
@@ -862,6 +863,7 @@ program
|
|
|
862
863
|
const services = await resolveServicesFromConfig(validatedConfig, image, {
|
|
863
864
|
workspaceRoot,
|
|
864
865
|
});
|
|
866
|
+
registerConfiguredSkillPrompts(services.skills, validatedConfig.prompts);
|
|
865
867
|
agent = new DextoAgent(toDextoAgentOptions({
|
|
866
868
|
config: validatedConfig,
|
|
867
869
|
services,
|