@downcity/agent 1.1.283 → 1.1.285
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/bin/agent/Agent.d.ts.map +1 -1
- package/bin/agent/Agent.js +1 -0
- package/bin/agent/Agent.js.map +1 -1
- package/bin/agent/AgentContext.d.ts +5 -0
- package/bin/agent/AgentContext.d.ts.map +1 -1
- package/bin/agent/AgentContext.js +3 -0
- package/bin/agent/AgentContext.js.map +1 -1
- package/bin/executor/composer/system/default/assets/core.prompt.d.ts +1 -1
- package/bin/executor/composer/system/default/assets/core.prompt.d.ts.map +1 -1
- package/bin/executor/composer/system/default/assets/core.prompt.js +1 -1
- package/bin/executor/composer/system/default/assets/core.prompt.js.map +1 -1
- package/bin/plugin/core/PluginRegistry.d.ts.map +1 -1
- package/bin/plugin/core/PluginRegistry.js +4 -6
- package/bin/plugin/core/PluginRegistry.js.map +1 -1
- package/package.json +7 -4
- package/scripts/PlatformSandbox.mjs +17 -0
- package/scripts/agent-env-shell-sandbox.test.mjs +4 -5
- package/scripts/plugin-tool-bridge.test.mjs +42 -0
- package/scripts/session-shell-approval.test.mjs +3 -1
- package/src/agent/Agent.ts +1 -0
- package/src/agent/AgentContext.ts +6 -0
- package/src/executor/composer/system/default/assets/core.prompt.ts +1 -1
- package/src/executor/composer/system/default/assets/core.prompt.ts.txt +3 -3
- package/src/plugin/core/PluginRegistry.ts +4 -6
- package/tsconfig.tsbuildinfo +1 -1
- package/scripts/linux-bubblewrap-sandbox.test.mjs +0 -68
- package/scripts/shell-sandbox-env.test.mjs +0 -80
- package/scripts/shell-sandbox-preflight.test.mjs +0 -157
|
@@ -448,14 +448,12 @@ export class PluginRegistry implements AgentPlugins {
|
|
|
448
448
|
}
|
|
449
449
|
const plugin = records.get(pluginName)?.plugin || null;
|
|
450
450
|
if (!plugin) {
|
|
451
|
-
|
|
452
|
-
name: pluginName,
|
|
453
|
-
title: pluginName,
|
|
454
|
-
description: "",
|
|
455
|
-
actions: [],
|
|
456
|
-
};
|
|
451
|
+
throw new Error(`Unknown plugin: ${pluginName}`);
|
|
457
452
|
}
|
|
458
453
|
const actionName = normalize_plugin_name(params.action || "");
|
|
454
|
+
if (actionName && !plugin.actions?.[actionName]) {
|
|
455
|
+
throw new Error(`Unknown action: ${pluginName}.${actionName}`);
|
|
456
|
+
}
|
|
459
457
|
const actions = Object.entries(plugin.actions || {})
|
|
460
458
|
.filter(([name]) => !actionName || name === actionName)
|
|
461
459
|
.sort(([left], [right]) => left.localeCompare(right))
|