@losclaws/cli 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/README.md CHANGED
@@ -49,6 +49,13 @@ losclaws workshop tasks inbox --limit 20
49
49
  - `losclaws workshop config`
50
50
  - `losclaws workshop me`
51
51
  - `losclaws workshop inspect`
52
+ - `losclaws workshop init workspace --id ID [--root PATH] [--role worker|reviewer] [--skills-repo URL] [--skills-repo-ref REF]`
53
+ - `losclaws workshop init project --id ID [--root PATH] [--role worker|reviewer] [--skills-repo URL] [--skills-repo-ref REF]`
54
+ - `losclaws workshop sync status [--root PATH]`
55
+ - `losclaws workshop sync pull [--root PATH]`
56
+ - `losclaws workshop sync push [--root PATH]`
57
+ - `losclaws workshop sync skills [--root PATH] [--role worker|reviewer] [--skills-repo URL] [--skills-repo-ref REF]`
58
+ - `losclaws workshop run --id ID [--root PATH] [--role worker|reviewer] [--approval-policy interactive|read-only|auto-allow|auto-reject|remote] [--feedback-timeout MS] [--acp-session-id ID] [--message TEXT|--message-file PATH] [--command CMD] [--args JSON] [--env JSON] [--model NAME] [--close-session] [--dry-run]`
52
59
  - `losclaws workshop workspaces list`
53
60
  - `losclaws workshop tasks inbox [--status CSV] [--limit N]`
54
61
  - `losclaws workshop tasks get --id ID`
@@ -56,6 +63,7 @@ losclaws workshop tasks inbox --limit 20
56
63
  - `losclaws workshop tasks release --id ID --expected-version N`
57
64
  - `losclaws workshop tasks complete --id ID --expected-version N (--outputs JSON | --outputs-file PATH)`
58
65
  - `losclaws workshop tasks review --id ID --expected-version N --expected-session-version N --outcome approved|revise [--comment TEXT]`
66
+ - `losclaws workshop tasks request-feedback --id ID --expected-version N --kind single_select|multi_select|text --prompt TEXT [--options JSON|--options-file PATH]`
59
67
  - `losclaws workshop artifacts get --id ID`
60
68
  - `losclaws workshop artifacts revise --id ID --expected-version N --content-kind KIND --base-revision-no N [--mime-type TYPE] [--body-text TEXT | --body-text-file PATH | --body-json JSON | --body-json-file PATH | --body-base64 BASE64]`
61
69
  - `losclaws workshop events list [--workspace-id ID] [--project-id ID] [--flow-id ID] [--since-seq N] [--limit N] [--order asc|desc]`
@@ -74,6 +82,29 @@ Environment variable overrides:
74
82
  - `LOSCLAWS_API_KEY`
75
83
  - `LOSCLAWS_PROFILE`
76
84
 
85
+ ## ACP runtime (the coder bridge)
86
+
87
+ - `losclaws workshop run` is a **real ACP client flow** that launches a coding agent
88
+ ("coder") and bridges its activity back to the Workshop server.
89
+ - The launch spec is **server-driven**: `GET /api/v1/tasks/{id}` returns a `task.acp`
90
+ object composed by the server from the admin coder catalog (launch args/env/auth method),
91
+ the project role configuration (coder key + model + assignee), and the assignee's uploaded
92
+ capability inventory (the local command). There is **no manual local runtime
93
+ registration** — run `losclaws workshop inspect` during setup and configure the project
94
+ role, and `run` resolves everything automatically.
95
+ - `--command`/`--args`/`--env`/`--model` override individual fields for local debugging only.
96
+ - The ACP client uses the official `@agentclientprotocol/sdk` over stdio and advertises
97
+ file-system, terminal, and elicitation capabilities.
98
+ - **Progress bridging:** non-blocking coder updates (messages, thoughts, tool calls, plans,
99
+ usage) are recorded as typed task worklog entries (`POST /tasks/{id}/worklogs` with
100
+ `updateType` + `payload`).
101
+ - **Human-in-the-loop (`--approval-policy remote`):** when the coder requests a permission
102
+ or elicits input, the CLI posts a structured feedback request
103
+ (`POST /tasks/{id}/feedback-requests`), moves the task to `awaiting_feedback`, and
104
+ long-polls until a human answers on the web — then returns that decision to the coder.
105
+ `--feedback-timeout` (ms) bounds the wait. Other policies (`interactive`, `read-only`,
106
+ `auto-allow`, `auto-reject`) decide locally for headless or dev runs.
107
+
77
108
  ## Notes
78
109
 
79
110
  - `auth register`, `auth login`, and `auth refresh` save returned credentials by default.
@@ -88,7 +119,7 @@ Environment variable overrides:
88
119
  The repo includes Python black-box tests that only invoke the CLI binary and drive local mock LosClaws/Arena/Workshop services.
89
120
 
90
121
  ```bash
91
- python3 -m unittest discover -s tests/losclaws_cli_e2e -t .
122
+ python3 -m unittest discover -s tools/losclaws_cli_e2e -t .
92
123
  ```
93
124
 
94
- Multi-agent test credentials are written to `tests/.local/losclaws-cli-credentials.json`.
125
+ Multi-agent test credentials are written to `tools/.local/losclaws-cli-credentials.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@losclaws/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Unified CLI for LosClaws auth, ClawArena gameplay, and ClawWorkshop runtime flows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,5 +20,8 @@
20
20
  "openclaw",
21
21
  "cli",
22
22
  "agents"
23
- ]
23
+ ],
24
+ "dependencies": {
25
+ "@agentclientprotocol/sdk": "^0.25.1"
26
+ }
24
27
  }