triss-coworker 0.41.0 → 0.42.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/ARCHITECTURE.md +38 -0
- package/CHANGELOG.md +95 -1
- package/README.md +162 -1312
- package/SECURITY.md +236 -0
- package/THIRD_PARTY_NOTICES +1 -0
- package/bin/triss.js +72 -87
- package/docs/configuration.md +108 -669
- package/docs/engines/crush.md +12 -59
- package/docs/engines/omp.md +23 -120
- package/docs/engines/opencode-go.md +21 -99
- package/docs/engines/opencode-zen.md +21 -377
- package/docs/engines/opencode2.md +21 -144
- package/docs/extending.md +260 -0
- package/docs/integrations/jira.md +2 -2
- package/docs/mcp.md +63 -691
- package/docs/security-model.md +3 -1
- package/docs/usage-accounting.md +21 -24
- package/package.json +12 -4
- package/src/agent-rule-markers.js +3 -0
- package/src/agent-rules.js +3 -0
- package/src/call-context.js +3 -0
- package/src/cli-argv.js +3 -0
- package/src/coder-credential-proxy.js +4 -1
- package/src/coder-engine-registry.js +6 -3
- package/src/coder-engines/crush.js +58 -13
- package/src/coder-engines/omp.js +5 -0
- package/src/coder-engines/opencode2.js +10 -5
- package/src/coder-git-mediator.js +3 -0
- package/src/coder-lease.js +3 -0
- package/src/coder-lock.js +3 -0
- package/src/coder-orchestration.js +3 -0
- package/src/coder-process-supervisor.js +3 -0
- package/src/coder-providers.js +35 -42
- package/src/coder-result-owner-adapter.js +3 -0
- package/src/coder-result-quarantine.js +3 -0
- package/src/coder-result-registry-codec.js +3 -0
- package/src/coder-result-transitions.js +3 -0
- package/src/coder-result.js +3 -0
- package/src/coder-run-state.js +3 -0
- package/src/coder-sandbox.js +3 -0
- package/src/coder-session-engines.js +3 -0
- package/src/coder-session-inventory-codec.js +3 -0
- package/src/coder-session-owner-adapter.js +3 -0
- package/src/coder-session-slots.js +3 -0
- package/src/coder-session-store.js +3 -0
- package/src/coder-session-transitions.js +3 -0
- package/src/coder-state-backup.js +3 -0
- package/src/coder-state.js +3 -0
- package/src/coder-write-quota.js +3 -0
- package/src/commands/agent-help.js +3 -0
- package/src/commands/ask.js +35 -27
- package/src/commands/chat.js +36 -24
- package/src/commands/coder-state-backup.js +3 -0
- package/src/commands/coder.js +450 -1093
- package/src/commands/commit-msg.js +35 -19
- package/src/commands/completion.js +3 -0
- package/src/commands/config.js +22 -52
- package/src/commands/exec.js +4 -3
- package/src/commands/extract.js +3 -0
- package/src/commands/fetch.js +6 -0
- package/src/commands/init.js +9 -5
- package/src/commands/mcp.js +3 -0
- package/src/commands/migrate.js +24 -0
- package/src/commands/review.js +59 -58
- package/src/commands/status.js +59 -66
- package/src/commands/update.js +3 -0
- package/src/commands/usage.js +3 -0
- package/src/commands/write.js +37 -23
- package/src/config-defaults.js +3 -0
- package/src/config.js +4 -121
- package/src/fixed-kernel-lock.js +3 -0
- package/src/git.js +3 -0
- package/src/integrations/_atlassian.js +3 -0
- package/src/integrations/_contract.js +41 -20
- package/src/integrations/_registry.js +18 -14
- package/src/integrations/confluence/client.js +3 -0
- package/src/integrations/confluence/commands.js +7 -4
- package/src/integrations/confluence/index.js +11 -8
- package/src/integrations/github/client.js +3 -0
- package/src/integrations/github/commands.js +15 -5
- package/src/integrations/github/index.js +15 -12
- package/src/integrations/gitlab/client.js +3 -0
- package/src/integrations/gitlab/commands.js +11 -5
- package/src/integrations/gitlab/index.js +15 -12
- package/src/integrations/jira/adf.js +3 -0
- package/src/integrations/jira/client.js +3 -0
- package/src/integrations/jira/commands.js +16 -6
- package/src/integrations/jira/index.js +16 -13
- package/src/integrations/linear/client.js +3 -0
- package/src/integrations/linear/commands.js +16 -6
- package/src/integrations/linear/index.js +15 -12
- package/src/managed-root.js +3 -0
- package/src/marker-transaction.js +3 -0
- package/src/mcp/handlers.js +117 -148
- package/src/mcp/install.js +3 -0
- package/src/mcp/review-core.js +7 -0
- package/src/mcp/server.js +5 -2
- package/src/mcp/tools.js +61 -72
- package/src/migration/legacy-inventory.js +59 -0
- package/src/migration/migrate.js +698 -0
- package/src/model-engine-adapters.js +93 -0
- package/src/model-runtime.js +76 -0
- package/src/model-selection.js +122 -0
- package/src/model-usage.js +59 -0
- package/src/net-dns-worker.js +3 -0
- package/src/net.js +3 -0
- package/src/opencode-catalogue.js +3 -0
- package/src/opencode-config.js +3 -0
- package/src/opencode2-preflight.js +29 -54
- package/src/option-validation.js +3 -0
- package/src/owned-process-journal.js +3 -0
- package/src/owned-process-reconcile.js +3 -0
- package/src/paths.js +3 -0
- package/src/picker.js +3 -0
- package/src/provider-config.js +95 -0
- package/src/provider-contract.js +99 -0
- package/src/provider-errors.js +8 -5
- package/src/provider-registry.js +146 -0
- package/src/provider-security.js +55 -0
- package/src/response-format.js +3 -0
- package/src/review-defaults.js +4 -42
- package/src/review-executor.js +3 -0
- package/src/review-git.js +3 -0
- package/src/review-input.js +3 -0
- package/src/review-live.js +16 -15
- package/src/review-payload.js +3 -0
- package/src/review-pr-fetch.js +3 -0
- package/src/review-pr-identity.js +3 -0
- package/src/review-pr-metadata.js +3 -0
- package/src/review-pr-registry.js +3 -0
- package/src/review-pr.js +3 -0
- package/src/review-prompt.js +3 -0
- package/src/review-scoped.js +3 -0
- package/src/safety.js +3 -0
- package/src/secrets.js +10 -5
- package/src/transport-registry.js +70 -0
- package/src/transports/anthropic-messages.js +155 -0
- package/src/transports/openai-chat.js +185 -0
- package/src/transports/openai-responses.js +123 -0
- package/src/transports/result.js +75 -0
- package/src/update/artifact.js +3 -0
- package/src/update/cache.js +3 -0
- package/src/update/install.js +3 -0
- package/src/update/integrity.js +3 -0
- package/src/update/manifest.js +4 -1
- package/src/update/passive.js +6 -2
- package/src/usage-schema.js +16 -30
- package/src/usage.js +30 -47
- package/src/version.js +3 -0
- package/src/web.js +3 -0
- package/src/worktree-fingerprint.js +3 -0
- package/src/zai.js +6 -22
- package/templates/claude-full.md +34 -52
- package/templates/claude.md +14 -21
- package/templates/codex-full.md +29 -54
- package/templates/codex.md +14 -21
- package/src/client.js +0 -467
- package/src/coder-models.js +0 -3454
- package/src/commands/coder-models.js +0 -1193
- package/src/models.js +0 -200
- package/src/moonshot.js +0 -16
package/ARCHITECTURE.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
Triss is a Node.js CLI and MCP server. The CLI, MCP surface, and standalone
|
|
4
|
+
artifact use the same application modules; there is no separate hosted
|
|
5
|
+
control plane.
|
|
6
|
+
|
|
7
|
+
## Component map
|
|
8
|
+
|
|
9
|
+
| Area | Responsibility | Primary locations |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| CLI layer | Argument parsing, command routing, human and JSON output | `bin/triss.js`, `src/commands/` |
|
|
12
|
+
| MCP layer | Tool schemas, request handlers, cancellation, host installation | `src/mcp/` |
|
|
13
|
+
| Provider runtime | Canonical registry, immutable config snapshot, role/model resolution, effort mapping, transports, and normalized results | `src/provider-*.js`, `src/model-*.js`, `src/transport-*.js`, `src/transports/` |
|
|
14
|
+
| Coder engines | OpenCode, OpenCode 2, Crush, and OMP projections of the shared provider runtime | `src/commands/coder.js`, `src/coder-engines/`, `src/coder-providers.js` |
|
|
15
|
+
| Credential proxy | Parent-owned, short-lived credential mediation for child engines | `src/coder-credential-proxy.js` |
|
|
16
|
+
| Isolation policy | Worktree isolation, capability reporting, process ownership, bounded writes | `src/coder-sandbox.js`, `src/managed-root.js`, `src/coder-process-supervisor.js` |
|
|
17
|
+
| State and result stores | Session, run, result, lease, ownership, and recovery state machines | `src/coder-*.js`, `src/owned-process-*.js` |
|
|
18
|
+
| Updater | Passive discovery, manifest verification, transactional install and rollback | `src/update/`, `src/commands/update.js` |
|
|
19
|
+
| Integrations | GitHub, GitLab, Jira, Confluence, and Linear adapters | `src/integrations/` |
|
|
20
|
+
| Release artifacts | npm package, companion package, and deterministic standalone artifact | `package.json`, `packages/`, `scripts/release-gates.js`, `.github/workflows/publish.yml` |
|
|
21
|
+
|
|
22
|
+
## Dependency direction
|
|
23
|
+
|
|
24
|
+
Command and MCP adapters may call shared domain modules. Shared modules do not
|
|
25
|
+
import the CLI or MCP presentation layers. External input is validated and
|
|
26
|
+
bounded before it reaches providers, integrations, filesystem operations, or
|
|
27
|
+
child processes. Release-only acceptance support lives under `test/support/`
|
|
28
|
+
and is excluded from production packages.
|
|
29
|
+
|
|
30
|
+
## Large-module policy
|
|
31
|
+
|
|
32
|
+
Several modules currently combine too many responsibilities. Refactoring is
|
|
33
|
+
incremental: extract one cohesive boundary at a time, preserve public exports,
|
|
34
|
+
add characterization tests first, and avoid mixing a structural split with a
|
|
35
|
+
behavior change. Priority candidates are coder orchestration, model management,
|
|
36
|
+
updater installation, MCP installation, and MCP handlers.
|
|
37
|
+
|
|
38
|
+
Architecture decisions that change trust boundaries belong in `docs/adr/`.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,98 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.42.0] — 2026-08-29
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Unified provider profiles for `openai-compatible`, `zai`, `opencode-zen`,
|
|
15
|
+
`opencode-go`, `moonshot`, and `kimi-for-coding`, with explicit main and
|
|
16
|
+
small native-model roles.
|
|
17
|
+
- One shared provider, model, engine, and reasoning-effort selection contract
|
|
18
|
+
across CLI commands, MCP tools, integrations, and coder engines.
|
|
19
|
+
- Native OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages
|
|
20
|
+
transports behind normalized execution results and usage accounting.
|
|
21
|
+
- `triss migrate`, which discovers pre-0.42 state, resolves conflicts before
|
|
22
|
+
writing, performs an atomic canonical migration, verifies the production
|
|
23
|
+
resolver, removes legacy fields only after verification, and supports safe
|
|
24
|
+
cleanup resume.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Coder engines now project the shared provider registry instead of maintaining
|
|
29
|
+
separate provider identities, credentials, endpoints, and model defaults.
|
|
30
|
+
- Provider credentials and endpoints use field-level provenance checks before
|
|
31
|
+
credential-bearing engine launches.
|
|
32
|
+
- `triss status`, help, generated agent rules, documentation, and the website
|
|
33
|
+
report canonical provider IDs and concrete native model IDs.
|
|
34
|
+
- `triss-dsh-provider-bundle` is version-aligned at 0.42.0; its catalogue
|
|
35
|
+
routes are unchanged.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- Quoted values from external dotenv writers no longer disappear when they
|
|
40
|
+
contain literal backslashes or control characters that are invalid JSON;
|
|
41
|
+
Triss preserves the quoted payload while retaining JSON-compatible
|
|
42
|
+
round-tripping for values written by its own configuration commands.
|
|
43
|
+
|
|
44
|
+
### Removed
|
|
45
|
+
|
|
46
|
+
- Legacy provider aliases, public `flash`/`pro` presets, worker-specific
|
|
47
|
+
runtime configuration, and global coder model pins.
|
|
48
|
+
- The `coder models` and `coder model set` surfaces. Provider role models are
|
|
49
|
+
configured directly in canonical provider profiles.
|
|
50
|
+
- Compatibility readers from normal runtime paths. Pre-0.42 spellings remain
|
|
51
|
+
understood only by `triss migrate`.
|
|
52
|
+
|
|
53
|
+
### Upgrade from Triss < 0.42.0
|
|
54
|
+
|
|
55
|
+
Triss 0.42 replaces worker configuration and model presets with unified
|
|
56
|
+
provider profiles. After installing the update and before running model
|
|
57
|
+
commands:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
triss migrate
|
|
61
|
+
triss status
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Restart MCP hosts and agent sessions after migration. Do not downgrade to a
|
|
65
|
+
pre-0.42 release after migration.
|
|
66
|
+
|
|
67
|
+
### Artifact integrity (0.42.0)
|
|
68
|
+
|
|
69
|
+
- `triss-dsh-provider-bundle-0.42.0.tgz` — sha256
|
|
70
|
+
`e3e620037b4ddb9d2f55728b3c5cb5d8ecbd514499962b2c587bc41d3b1a7422`
|
|
71
|
+
— `sha512-0YvcF+7iKTDDNvx4cv/+QZOeHaMok2Rd7WNcWm2RIsYl01TgRtG0yaP7GamdXfY9NaowJmSx48r6RA6COZ+IoA==`
|
|
72
|
+
(computed with npm pack; the output is byte-deterministic).
|
|
73
|
+
- Root `triss-coworker-0.42.0.tgz` sha256 is reproducible via `npm pack` at
|
|
74
|
+
tag `v0.42.0`; the root tarball ships `CHANGELOG.md`, so its hash cannot be
|
|
75
|
+
recorded inside this file. Registry verification compares the packed
|
|
76
|
+
artifact with the published tarball byte-for-byte.
|
|
77
|
+
|
|
78
|
+
## [0.41.1] — 2026-08-29
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
|
|
82
|
+
- Passive CLI and MCP update checks now allow five seconds for GitHub Release
|
|
83
|
+
redirects and manifest delivery, preventing persistent timeout backoff from
|
|
84
|
+
suppressing update notifications on ordinary network connections.
|
|
85
|
+
|
|
86
|
+
### Changed
|
|
87
|
+
|
|
88
|
+
- `triss-dsh-provider-bundle` is version-aligned and republished unchanged;
|
|
89
|
+
its OpenCode Zen, OpenCode Go, and Z.AI routes are unchanged.
|
|
90
|
+
|
|
91
|
+
### Artifact integrity (0.41.1)
|
|
92
|
+
|
|
93
|
+
- `triss-dsh-provider-bundle-0.41.1.tgz` — sha256
|
|
94
|
+
`11937c36ee4627c8704c9cdc0704b16f91cebb5a8fea9ab4c7e81da6c22f73dc`
|
|
95
|
+
— `sha512-sOwR4L1nbWj+goYxnKiYybcxX4hKbjycYk4OE1nDfIa7kVZ2KwOybzqVY8jZtbnaBreWS0fQN9Vn6NmdnD0F/A==`
|
|
96
|
+
(computed with npm pack; the output is byte-deterministic).
|
|
97
|
+
- Root `triss-coworker-0.41.1.tgz` sha256 is reproducible via `npm pack` at
|
|
98
|
+
tag `v0.41.1`; the root tarball ships `CHANGELOG.md`, so its hash cannot be
|
|
99
|
+
recorded inside this file. Registry verification compares the packed
|
|
100
|
+
artifact with the published tarball byte-for-byte.
|
|
101
|
+
|
|
10
102
|
## [0.41.0] — 2026-08-28
|
|
11
103
|
|
|
12
104
|
### Changed
|
|
@@ -1738,7 +1830,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1738
1830
|
|
|
1739
1831
|
- Initial release of `triss-coworker`.
|
|
1740
1832
|
|
|
1741
|
-
[Unreleased]: https://github.com/ayleen/triss-coworker/compare/v0.
|
|
1833
|
+
[Unreleased]: https://github.com/ayleen/triss-coworker/compare/v0.42.0...HEAD
|
|
1834
|
+
[0.42.0]: https://github.com/ayleen/triss-coworker/compare/v0.41.1...v0.42.0
|
|
1835
|
+
[0.41.1]: https://github.com/ayleen/triss-coworker/compare/v0.41.0...v0.41.1
|
|
1742
1836
|
[0.41.0]: https://github.com/ayleen/triss-coworker/compare/v0.40.0...v0.41.0
|
|
1743
1837
|
[0.40.0]: https://github.com/ayleen/triss-coworker/compare/v0.39.2...v0.40.0
|
|
1744
1838
|
[0.39.2]: https://github.com/ayleen/triss-coworker/compare/v0.39.1...v0.39.2
|