@zusehq/serve 0.1.1 → 0.1.3
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/LICENSE +661 -0
- package/README.md +53 -0
- package/dist/bin.mjs +1 -1
- package/dist/cli-Cz9Ua4SV.mjs +8756 -0
- package/dist/cli-Cz9Ua4SV.mjs.map +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/status.d.mts +2 -0
- package/dist/status.mjs +2 -0
- package/package.json +16 -6
- package/src/status-types.ts +22 -0
- package/dist/cli-D7xrmEIQ.mjs +0 -10
- package/dist/cli-D7xrmEIQ.mjs.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Zuse Serve
|
|
2
|
+
|
|
3
|
+
`@zusehq/serve` runs a durable Zuse environment and provides a JSON-only CLI
|
|
4
|
+
for agent orchestration.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx @zusehq/serve
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Install the package globally to use the shorter executable:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install --global @zusehq/serve
|
|
14
|
+
zuse serve status
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Agent CLI
|
|
18
|
+
|
|
19
|
+
Discover the available computers, projects, models, chats, and sessions:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
zuse commands
|
|
23
|
+
zuse computer list
|
|
24
|
+
zuse project list
|
|
25
|
+
zuse model list
|
|
26
|
+
zuse chat list --project <project-id>
|
|
27
|
+
zuse session list --project <project-id> --chat <chat-id>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Create work or send a message with structured input:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
zuse chat create --input-json @request.json
|
|
34
|
+
zuse session send --input-json '{"project":"<project-id>","session":"<session-id>","message":"Continue with the approved plan."}'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Fork and hand off conversations without copying large transcripts through the
|
|
38
|
+
shell:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
zuse session fork --project <project-id> --session <source-session-id> --message <message-id> --destination tab
|
|
42
|
+
zuse session send --project <project-id> --session <target-session-id> --message "Continue this handoff." --transcript <source-session-id> --plan <planning-session-id>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Use `session model` to change only the active model. Provider changes remain a
|
|
46
|
+
separate `session provider` command.
|
|
47
|
+
|
|
48
|
+
Agent commands emit one versioned JSON envelope on stdout. Check both the exit
|
|
49
|
+
code and the envelope's `ok` field before treating a mutation as successful.
|
|
50
|
+
Creation commands support `--idempotency-key` for safe retries.
|
|
51
|
+
|
|
52
|
+
See the complete [agent CLI documentation](https://docs.zuse.sh/serve/agent-cli)
|
|
53
|
+
and [Serve command reference](https://docs.zuse.sh/serve/command-reference).
|
package/dist/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as runServeCli } from "./cli-
|
|
2
|
+
import { t as runServeCli } from "./cli-Cz9Ua4SV.mjs";
|
|
3
3
|
//#region src/bin.ts
|
|
4
4
|
runServeCli(process.argv.slice(2), process.env).catch((cause) => {
|
|
5
5
|
console.error(cause instanceof Error ? cause.message : String(cause));
|