@sean.holung/minicode 0.2.3 → 0.3.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 +13 -8
- package/dist/src/cli/args.js +31 -0
- package/dist/src/index.js +5 -0
- package/dist/src/serve/agent-bridge.js +356 -0
- package/dist/src/serve/openai-compat.js +144 -0
- package/dist/src/serve/server.js +349 -0
- package/dist/src/serve/types.js +2 -0
- package/dist/src/serve/websocket.js +28 -0
- package/dist/src/session/session-store.js +3 -1
- package/dist/src/ui/cli-ink.js +1 -0
- package/dist/src/web/app.js +2270 -0
- package/dist/src/web/index.html +68 -0
- package/dist/src/web/style.css +922 -0
- package/dist/tests/cli-args.test.js +4 -2
- package/dist/tests/serve.integration.test.js +759 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +5 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +35 -20
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +2 -0
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -5
|
@@ -58,16 +58,18 @@ test("parseCliArgs rejects --out without value", () => {
|
|
|
58
58
|
assert.throws(() => parseCliArgs(["node", "src/index.ts", "--oneshot", "--out"]), CliUsageError);
|
|
59
59
|
});
|
|
60
60
|
test("validateCliArgs rejects oneshot without task", () => {
|
|
61
|
-
assert.throws(() => validateCliArgs({ verbose: false, oneshot: true, json: false, task: "" }), /--oneshot requires a task prompt/);
|
|
61
|
+
assert.throws(() => validateCliArgs({ verbose: false, oneshot: true, json: false, serve: false, port: 4567, task: "" }), /--oneshot requires a task prompt/);
|
|
62
62
|
});
|
|
63
63
|
test("validateCliArgs rejects json without oneshot", () => {
|
|
64
64
|
assert.throws(() => validateCliArgs({
|
|
65
65
|
verbose: false,
|
|
66
66
|
oneshot: false,
|
|
67
67
|
json: true,
|
|
68
|
+
serve: false,
|
|
69
|
+
port: 4567,
|
|
68
70
|
task: "hello",
|
|
69
71
|
}), /only supported with --oneshot/);
|
|
70
72
|
});
|
|
71
73
|
test("validateCliArgs allows non-oneshot empty task", () => {
|
|
72
|
-
assert.doesNotThrow(() => validateCliArgs({ verbose: false, oneshot: false, json: false, task: "" }));
|
|
74
|
+
assert.doesNotThrow(() => validateCliArgs({ verbose: false, oneshot: false, json: false, serve: false, port: 4567, task: "" }));
|
|
73
75
|
});
|