Skip to content

Commit fc784df

Browse files
committed
update disco cli v0.2.0
1 parent eed048e commit fc784df

61 files changed

Lines changed: 4588 additions & 1246 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎cli/CHANGELOG.md‎

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 0.2.0 - 2026-08-26
3+
## 0.2.0 - 2026-08-27
44

55
- Replace the legacy scenario-oriented repository router with a taxonomy-driven
66
`area -> family -> repository skill -> relevant sub-skill` router. The
@@ -37,6 +37,49 @@
3737
reported by `status` and preserved across repository-skill updates.
3838
- Remove internal taxonomy design notes from the published taxonomy snapshot
3939
so the released router contains only runtime routing data.
40+
- Add `--creator` and `--researcher` as concise CLI mode selectors for new
41+
sessions while retaining `--agent-mode creator|researcher` as a compatibility
42+
form. Conflicting selectors, selector values, and incompatible resume/fork
43+
combinations now fail with explicit diagnostics, and the CLI help, prompts,
44+
and bundled documentation use the shorter forms.
45+
- Rework `import-repo-skills-to-agent` around a bundled transactional export
46+
helper for Codex, Claude Code, and agent-neutral skill roots. Full and
47+
selected exports now regenerate the target `repository-index.jsonl` and
48+
scoped router deterministically, preserve unrelated target skills, require
49+
per-skill overwrite approval, reject source/target overlap and symlinks, and
50+
persist enough transaction state for automatic rollback and `--resume`
51+
recovery after interruption.
52+
- Keep repository skills portable across agents by applying
53+
`agents/openai.yaml` only to Codex target copies and excluding that target-only
54+
policy from repository content digests. Align router refresh defaults with
55+
the managed `skills/repositories/` collection layout.
56+
- Stop persisting per-repository `content_sha256` values in long-lived
57+
repository indexes. Whole-index integrity digests and transaction-only
58+
source snapshots remain available for safe export recovery, while the
59+
one-time `skill_content_sha256` handoff check remains in verified imports.
60+
- Include DisCo's built-in extension packages in startup update discovery and
61+
`disco update --extensions` / `disco update --extension` processing without
62+
persisting them into user settings or installing missing defaults as an
63+
update side effect. Legacy global npm installs are migrated into DisCo's
64+
managed npm root when updated.
65+
- Add source-commit-bound GitHub license resolution to repository-skill creation,
66+
refresh, extension, verification, collection build, and cross-agent export.
67+
Every root and sub-skill now receives one shared top-level `license` value;
68+
GitHub `NOASSERTION` is preserved, while unavailable queries use `NO_LICENSE`
69+
and report the required manual follow-up.
70+
- Align the paper-oriented Creator meta-skill contracts around
71+
`scope -> ground -> construct -> verify`, including task-agnostic and
72+
task-oriented anchors, construction adequacy guidance, and the renamed
73+
`construction-strategy-and-adequacy.md` reference.
74+
- Update the published collection contract to the current 1,000 repository
75+
roots and 2,209 area-family memberships, and add the corresponding default
76+
collection-build guard and regression coverage.
77+
- Require `@juicesharp/rpiv-todo@^2.7.1` so main, child, and detached sessions
78+
use isolated Todo state and status changes preserve task creation order. Add
79+
an isolated published-package contract verifier for session separation,
80+
child cleanup, foreground ownership, task IDs, and stable ordering.
81+
- Upgrade `undici` to `8.10.0` and override `nanoid` to `3.3.18`, removing the
82+
high-severity advisories previously reported by a source installation audit.
4083

4184
## 0.1.1 - 2026-08-03
4285

‎cli/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ for the other documented update targets.
7272
Researcher is the default for a new session:
7373

7474
```bash
75-
disco --agent-mode researcher
76-
disco --agent-mode researcher -p "Reproduce this paper's primary result"
75+
disco --researcher
76+
disco --researcher -p "Reproduce this paper's primary result"
7777
```
7878

7979
Use Creator when the output is a reusable skill:
8080

8181
```bash
82-
disco --agent-mode creator
83-
disco --agent-mode creator -p "Inspect /path/to/repo and draft a skill creation plan"
82+
disco --creator
83+
disco --creator -p "Inspect /path/to/repo and draft a skill creation plan"
8484
```
8585

8686
In an interactive session, `/creator` and `/researcher` switch mode and rebuild

‎cli/docs/packages.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,21 @@ Filter what a package loads using the object form in settings:
215215
- `-path` force-excludes an exact path.
216216
- Filters layer on top of the manifest. They narrow down what is already allowed.
217217

218+
## Mode Targeting <a id="mode-targeting"></a>
219+
220+
Use `disco install <source> --for ...` to set the default visibility of all
221+
resources from one package:
222+
223+
| Target | Visible roles |
224+
|--------|---------------|
225+
| `creator` | Creator sessions |
226+
| `researcher` | Researcher sessions |
227+
| `both` | Creator and Researcher sessions |
228+
| `default` | Package default behavior |
229+
230+
This changes package resource visibility without copying or splitting the
231+
package. Individual resource filters can further narrow the selected package.
232+
218233
## Enable and Disable Resources
219234

220235
Use `disco config` to enable or disable extensions, skills, prompt templates, and themes from installed packages and local directories. `disco config` starts in global settings (`~/.disco/agent/settings.json`); press Tab to switch between global and project-local modes. Use `disco config -l` to start in project overrides (`.disco/settings.json`) with inherited global resources dimmed.

‎cli/docs/usage.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ These commands manage disco packages and `disco update` can update the disco CLI
161161

162162
See [DisCo Packages](packages.md) for package sources and security notes.
163163

164+
### Agent Modes
165+
166+
| Flag | Description |
167+
|------|-------------|
168+
| `--creator` | Start a new session with Creator resources and workflow boundaries |
169+
| `--researcher` | Start a new session with Researcher resources and workflow boundaries |
170+
| `--agent-mode <mode>` | Compatibility form for `creator` or `researcher` |
171+
172+
These selectors choose the Agent role and work with both interactive startup and
173+
non-interactive output. They are independent of `-p` / `--print` and
174+
`--mode text|json|rpc`.
175+
164176
### Modes
165177

166178
| Flag | Description |

‎cli/npm-shrinkwrap.json‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cli/package.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
"test": "vitest --run --config vitest.config.ts",
4040
"test:examples": "tsc --noEmit -p tsconfig.examples.json",
4141
"verify:provenance": "node scripts/upstream-provenance.mjs --check",
42+
"verify:rpiv-todo-contract": "node scripts/verify-rpiv-todo-contract.mjs",
4243
"verify:package": "node scripts/verify-package.mjs",
43-
"prepublishOnly": "npm run typecheck && npm test && npm run test:examples && npm run verify:provenance && npm run build && npm run verify:package"
44+
"prepublishOnly": "npm run typecheck && npm test && npm run test:examples && npm run verify:provenance && npm run verify:rpiv-todo-contract && npm run build && npm run verify:package"
4445
},
4546
"dependencies": {
4647
"@earendil-works/pi-agent-core": "0.83.0",
@@ -60,7 +61,7 @@
6061
"proper-lockfile": "4.1.2",
6162
"semver": "7.8.0",
6263
"typebox": "1.3.7",
63-
"undici": "8.5.0",
64+
"undici": "8.10.0",
6465
"yaml": "2.9.0"
6566
},
6667
"optionalDependencies": {
@@ -82,6 +83,7 @@
8283
"vitest": "4.1.9"
8384
},
8485
"overrides": {
86+
"nanoid": "3.3.18",
8587
"protobufjs": "7.6.5",
8688
"rimraf": "6.1.2",
8789
"gaxios": {

0 commit comments

Comments
 (0)