newmark-agent 0.5.8 → 0.5.9
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/dist/cli-commands.js +3 -3
- package/dist/cli.js +1 -1
- package/dist/conversation-utility-host.bundle.cjs +671 -555
- package/dist/core/agent.js +50 -4
- package/dist/core/memoryLab.d.ts +17 -0
- package/dist/core/memoryLab.js +43 -1
- package/dist/core/toolPolicy.d.ts +1 -0
- package/dist/core/toolPolicy.js +16 -0
- package/dist/core/types.d.ts +1 -1
- package/dist/tools/index.js +42 -10
- package/dist/ui/index.html +5 -2
- package/dist/wsl-agent-host.bundle.cjs +671 -555
- package/package.json +1 -1
package/dist/cli-commands.js
CHANGED
|
@@ -709,13 +709,13 @@ async function runCliCommand(root, args) {
|
|
|
709
709
|
agent.config.set('general', 'language', language);
|
|
710
710
|
const requestedMode = argValue(args, '--mode');
|
|
711
711
|
if ((command === 'send' || command === 'tool') && requestedMode) {
|
|
712
|
-
if (!['build', 'plan', 'goal', 'flow'].includes(requestedMode)) {
|
|
712
|
+
if (!['build', 'plan', 'chat', 'goal', 'flow'].includes(requestedMode)) {
|
|
713
713
|
if (command === 'tool') {
|
|
714
714
|
const positional = positionalAfter(args, 'tool');
|
|
715
|
-
emitCliToolEnvelope({ ok: false, tool: positional[0] || '', error: `Invalid mode: ${requestedMode}. Expected build, plan, goal, or flow.`, route: 'direct' }, 2);
|
|
715
|
+
emitCliToolEnvelope({ ok: false, tool: positional[0] || '', error: `Invalid mode: ${requestedMode}. Expected build, plan, chat, goal, or flow.`, route: 'direct' }, 2);
|
|
716
716
|
}
|
|
717
717
|
else {
|
|
718
|
-
safeStderr(`Invalid mode: ${requestedMode}. Expected build, plan, goal, or flow.\n`);
|
|
718
|
+
safeStderr(`Invalid mode: ${requestedMode}. Expected build, plan, chat, goal, or flow.\n`);
|
|
719
719
|
process.exitCode = 2;
|
|
720
720
|
}
|
|
721
721
|
return true;
|
package/dist/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ const agent_1 = require("./core/agent");
|
|
|
39
39
|
const flow_1 = require("./core/flow");
|
|
40
40
|
const flow_runner_1 = require("./core/flow-runner");
|
|
41
41
|
const flow_cli_1 = require("./tools/flow-cli");
|
|
42
|
-
const MODES = ['build', 'plan', 'goal', 'flow'];
|
|
42
|
+
const MODES = ['build', 'plan', 'chat', 'goal', 'flow'];
|
|
43
43
|
async function runCli(root) {
|
|
44
44
|
const agent = new agent_1.Agent(root);
|
|
45
45
|
const models = agent.allModelNames();
|