@evanbobo/colco4dsh 0.0.0-stage → 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 evanbobo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,55 @@
1
- # Temporary Holding Version
1
+ # @evanbobo/colco4dsh
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A DSH (DeepSeek Harness) plugin for Colco. A **Colco** row in DSH's left sidebar, directly above More, opens a page that shows your runner, its active runs and the decisions its agents are waiting on, lets you answer them, start or stop the runner and set up its rules. You can also ask DSH "any Colco decisions?" in a conversation.
4
+
5
+ ## Requirements
6
+
7
+ - DSH 0.2.x (`engines.dsh: ">=0.2.0 <0.3.0"`), Node 20.3 or later.
8
+ - The `colco` CLI from `@evanbobo/colco` 0.22.0 or later on `PATH` (`npm i -g @evanbobo/colco`), logged in: `npx @evanbobo/colco add` saves the server and a read/write API key in `~/.colco/config.json`, or set `COLCO_AGENT_TOKEN`. `colco whoami` should show you. The plugin calls `colco … --json` and nothing else; it never talks to the Colco server itself.
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ dsh plugin --profile web add @evanbobo/colco4dsh
14
+ dsh --profile web --dump-config # the composed tree lists a "@evanbobo/colco4dsh" layer
15
+ ```
16
+
17
+ From a checkout, use the package path instead: `dsh plugin --profile web add /path/to/packages/colco4dsh`. Restart DSH for the profile to load it. Remove it with `dsh plugin --profile web remove @evanbobo/colco4dsh`.
18
+
19
+ Versions 0.1.0 and 0.1.1 were published without the scope, as `colco4dsh`. To move over, run `dsh plugin --profile web remove colco4dsh` before adding `@evanbobo/colco4dsh`; with both installed, the two would register the same sidebar row and routes.
20
+
21
+ ## Configure
22
+
23
+ The bundle inserts the row `{ id: colco, name: '@evanbobo/colco4dsh' }`. To change a setting, restate the whole row in your profile's `cordis.patch.yml` (quote the name: YAML does not allow `@` at the start of a plain value):
24
+
25
+ ```yaml
26
+ - id: colco
27
+ name: '@evanbobo/colco4dsh'
28
+ config:
29
+ command: ["npx", "-y", "@evanbobo/colco"] # argument array, never a shell string
30
+ timeoutMs: 20000 # per colco call
31
+ ```
32
+
33
+ ## What it does
34
+
35
+ - Page **Colco** (the left-sidebar row above More; on a narrow window, the icon in the collapsed rail): the runner's state and how many steps run now, with Start (installs the login service) and Stop; one card per active run, with the task link; open decisions with their options in Colco's order, the recommended one marked, an optional note and Answer; and a setup form for label → workflow rows and folders. For a folder that is missing, not a git repository or without origin, it shows a git command to copy, built from the Colco repository you pick; it never runs git itself. It refreshes every 10 seconds while the page is open. The copy is English and Chinese and follows DSH's language setting.
36
+ - The page talks only to the plugin's own routes under `/plugins/colco4dsh/api`, which accept requests only from this machine's DSH page (loopback, DSH's origin, DSH's sign-in cookie, and a custom header on every POST) and run `colco … --json`.
37
+ - Tool `colco_status`: your runner's state, your active runs (queued, running or uncertain) and your open decisions. Read-only.
38
+ - Tool `colco_answer_decision { id, index?, text? }`: with `index`, answers the decision with that option. Without `index`, it shows the decision as a question card and answers with the option you pick. A skipped card or a free-text reply answers nothing.
39
+ - Skill `colco-decisions`: tells the agent to show each open decision with `ask_user_question` (options in Colco's order, the recommended one marked, not moved) and to answer only with your choice.
40
+
41
+ Colco text (task titles, decision text, options, summaries) reaches the model inside `<colco-data>` tags as untrusted data. Commands run with argument arrays and no shell; decision ids must be positive integers.
42
+
43
+ ## What it does not do
44
+
45
+ - No question cards without a conversation turn; the Colco page is where decisions show up at any time.
46
+ - No stopping or retrying single runs (use `colco run stop|retry`), and no editing of agents or workflows (edit `~/.colco/rules.json`; Save keeps them as they are).
47
+ - The skill is named `colco-decisions` so it does not hide the `colco` Skill that `@evanbobo/colco` installs.
48
+
49
+ ## Develop
50
+
51
+ ```sh
52
+ bun test # fake colco on PATH; also loads index.mjs with the installed dsh's peers when dsh is installed
53
+ ```
54
+
55
+ The design and the CLI JSON contract are in `docs/superpowers/specs/2026-11-04-colco4dsh-design.md`.