opencode-swarm 6.86.7 → 6.86.9
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 +28 -0
- package/dist/cli/index.js +430 -234
- package/dist/config/cache-paths.d.ts +11 -0
- package/dist/config/schema.d.ts +1 -0
- package/dist/db/global-db.d.ts +1 -1
- package/dist/db/project-db.d.ts +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4976 -4772
- package/dist/services/diagnose-service.d.ts +1 -1
- package/dist/services/version-check.d.ts +28 -0
- package/package.json +2 -2
- package/dist/tools/check-gate-status.prefix.test.d.ts +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface VersionCheckCache {
|
|
2
|
+
checkedAt: number;
|
|
3
|
+
npmLatest: string | null;
|
|
4
|
+
}
|
|
5
|
+
export declare function readVersionCache(): VersionCheckCache | null;
|
|
6
|
+
/**
|
|
7
|
+
* Compare two semver-ish version strings. Returns 1 if `a > b`, -1 if `a < b`,
|
|
8
|
+
* 0 if equal. Treats prerelease tags as lower than the release. Pure function.
|
|
9
|
+
*/
|
|
10
|
+
export declare function compareVersions(a: string, b: string): number;
|
|
11
|
+
/**
|
|
12
|
+
* Schedule a one-shot, fully detached version check. Returns immediately.
|
|
13
|
+
* Emits a deferred warning via `emitWarning` when a newer version is found.
|
|
14
|
+
*
|
|
15
|
+
* @param runningVersion The version of the currently-loaded plugin.
|
|
16
|
+
* @param emitWarning Callback used to surface the staleness notice.
|
|
17
|
+
* @param now Time source — overridable for tests.
|
|
18
|
+
* @param fetchImpl Fetcher — overridable for tests.
|
|
19
|
+
*/
|
|
20
|
+
export declare function scheduleVersionCheck(runningVersion: string, emitWarning: (msg: string) => void, options?: {
|
|
21
|
+
now?: () => number;
|
|
22
|
+
fetchImpl?: (signal: AbortSignal) => Promise<string | null>;
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* Test-only: reset the in-process latch so a subsequent schedule call runs.
|
|
26
|
+
*/
|
|
27
|
+
export declare function _resetVersionCheckLatchForTests(): void;
|
|
28
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.86.
|
|
3
|
+
"version": "6.86.9",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"clean": "bun -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
41
|
-
"build": "bun run clean && bun run scripts/copy-grammars.ts && bun build src/index.ts --outdir dist --target
|
|
41
|
+
"build": "bun run clean && bun run scripts/copy-grammars.ts && bun build src/index.ts --outdir dist --target node --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && bun run scripts/copy-grammars.ts --to-dist && tsc --emitDeclarationOnly",
|
|
42
42
|
"typecheck": "tsc --noEmit",
|
|
43
43
|
"test": "bun test",
|
|
44
44
|
"lint": "biome lint .",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|