opencode-swarm 7.7.0 → 7.8.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/README.md +3 -1
- package/dist/agents/index.d.ts +11 -3
- package/dist/cli/index.js +788 -358
- package/dist/commands/full-auto.d.ts +13 -2
- package/dist/config/evidence-schema.d.ts +3 -3
- package/dist/config/schema.d.ts +82 -9
- package/dist/full-auto/cadence.d.ts +64 -0
- package/dist/full-auto/input-probe.d.ts +22 -0
- package/dist/full-auto/oversight.d.ts +93 -0
- package/dist/full-auto/phase-approval.d.ts +7 -0
- package/dist/full-auto/policy.d.ts +85 -0
- package/dist/full-auto/state.d.ts +121 -0
- package/dist/hooks/full-auto-delegation.d.ts +28 -0
- package/dist/hooks/full-auto-input-probe.d.ts +27 -0
- package/dist/hooks/full-auto-intercept.d.ts +1 -1
- package/dist/hooks/full-auto-permission.d.ts +39 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/utils.d.ts +40 -0
- package/dist/index.js +3936 -1209
- package/dist/state.d.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,7 +98,9 @@ Swarm has two independent mode systems:
|
|
|
98
98
|
|------|--------|-------|------------|
|
|
99
99
|
| **Balanced** (default) | High | Medium | Everyday development |
|
|
100
100
|
| **Turbo** | Medium | Fast | Rapid iteration; skips Stage B gates for non-Tier-3 files |
|
|
101
|
-
| **Full-Auto** |
|
|
101
|
+
| **Full-Auto** | Deterministic policy + critic oversight | Fast | Unattended multi-interaction runs |
|
|
102
|
+
|
|
103
|
+
Full-Auto reduces approval friction by deterministically allowing safe operations (read-only tools, in-scope writes, safe shell) and routing every ambiguous or high-risk action (writes to plugin/build/guardrail paths, network, dependency changes, plan/phase mutations, subagent delegation) through the read-only `critic_oversight` agent before it executes. Denials are returned to the agent as structured signals so it can choose a safer path; repeated denials pause the run; phase completion requires an APPROVED oversight record. See [docs/modes.md](docs/modes.md#full-auto) for `mode`, `permission_policy`, `denials`, and `oversight` config keys, fail-closed semantics, and recovery from a paused run.
|
|
102
104
|
|
|
103
105
|
**Project mode** — persistent via `execution_mode` config key:
|
|
104
106
|
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -3,9 +3,17 @@ import { type PluginConfig } from '../config';
|
|
|
3
3
|
import { type AgentDefinition } from './architect';
|
|
4
4
|
export type { AgentDefinition } from './architect';
|
|
5
5
|
/**
|
|
6
|
-
* Strip the swarm prefix from an agent name to get the base
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Strip the user-defined swarm prefix from an agent name to get the base
|
|
7
|
+
* canonical role.
|
|
8
|
+
*
|
|
9
|
+
* The `swarmPrefix` argument is the swarm ID that the USER configured in
|
|
10
|
+
* their `swarms` map — it is an arbitrary string, NOT one of a known list.
|
|
11
|
+
* Examples of valid prefixes: "banana", "acme-prod", "customer123",
|
|
12
|
+
* "mySwarm". The plugin must not assume any fixed set of swarm names.
|
|
13
|
+
*
|
|
14
|
+
* Example: agentName="banana_coder" with swarmPrefix="banana" -> "coder".
|
|
15
|
+
*
|
|
16
|
+
* Returns the name unchanged if `swarmPrefix` is empty or does not match.
|
|
9
17
|
*/
|
|
10
18
|
export declare function stripSwarmPrefix(agentName: string, swarmPrefix?: string): string;
|
|
11
19
|
/**
|