opencode-swarm 7.0.0 → 7.0.1
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/dist/cli/index.d.ts +30 -0
- package/dist/cli/index.js +172 -56
- package/dist/commands/reset.d.ts +1 -1
- package/dist/config/cache-paths.d.ts +6 -0
- package/dist/index.js +535 -481
- package/dist/plan/checkpoint.d.ts +2 -2
- package/dist/tools/checkpoint.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Plan } from '../config/plan-schema';
|
|
2
2
|
/**
|
|
3
|
-
* Write SWARM_PLAN.json and SWARM_PLAN.md
|
|
3
|
+
* Write SWARM_PLAN.json and SWARM_PLAN.md inside the .swarm/ directory under the project root.
|
|
4
4
|
* Non-blocking: logs a warning on failure but never throws.
|
|
5
5
|
* @param directory - The working directory (project root)
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export interface ImportCheckpointResult {
|
|
|
14
14
|
error?: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Import a checkpoint from SWARM_PLAN.json
|
|
17
|
+
* Import a checkpoint from .swarm/SWARM_PLAN.json (with backward-compat fallback to project root).
|
|
18
18
|
* Validates the checkpoint against PlanSchema, persists it as the live plan
|
|
19
19
|
* via savePlan, and appends a 'plan_rebuilt' ledger event.
|
|
20
20
|
*
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
import type { ToolDefinition } from '@opencode-ai/plugin/tool';
|
|
2
|
+
/**
|
|
3
|
+
* Record a checkpoint without staging or committing changes.
|
|
4
|
+
* Writes only to .swarm/checkpoints.json with the current HEAD SHA.
|
|
5
|
+
* Used by spiral detection to avoid silently committing mid-flight user work.
|
|
6
|
+
*/
|
|
7
|
+
export declare function saveCheckpointRecord(label: string, directory: string): {
|
|
8
|
+
success: boolean;
|
|
9
|
+
sha?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
};
|
|
2
12
|
export declare const checkpoint: ToolDefinition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|