opencode-swarm 7.138.0 → 7.138.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/{config-doctor-mb81xytp.js → config-doctor-m79sx8b2.js} +2 -2
- package/dist/cli/{curation-policy-qx23sc8b.js → curation-policy-dkx4s5va.js} +2 -2
- package/dist/cli/{curator-b9ascpbh.js → curator-jjf5x6bn.js} +14 -14
- package/dist/cli/{curator-llm-factory-r47q1hbd.js → curator-llm-factory-sprc6pm3.js} +14 -14
- package/dist/cli/{evidence-summary-service-1azhyeft.js → evidence-summary-service-6cttrkzw.js} +2 -2
- package/dist/cli/{guardrail-explain-ph1n3ryc.js → guardrail-explain-zs3hq02c.js} +15 -15
- package/dist/cli/{guardrail-log-ghgqaw3w.js → guardrail-log-90dnv508.js} +3 -3
- package/dist/cli/{hive-promoter-7x2zzhb7.js → hive-promoter-zkay2ffy.js} +14 -14
- package/dist/cli/{index-9zf5gfca.js → index-06zw53mf.js} +1 -1
- package/dist/cli/{index-bf0j2wd2.js → index-5fdztrpt.js} +2 -2
- package/dist/cli/{index-ag7ppc40.js → index-6f6nt0c9.js} +16 -16
- package/dist/cli/{index-7wzyf4dr.js → index-8xqnp3gw.js} +4 -4
- package/dist/cli/{index-7kgfvt3h.js → index-9vvskh03.js} +1 -1
- package/dist/cli/{index-whf5ecbw.js → index-aeyktf9q.js} +1 -1
- package/dist/cli/{index-z55s5719.js → index-d4t92fa3.js} +2 -2
- package/dist/cli/{index-xz0zjrdr.js → index-e2eedz1b.js} +1 -1
- package/dist/cli/{index-6nenabrm.js → index-e78pqbkj.js} +1 -1
- package/dist/cli/{index-k5jrywpr.js → index-gprxjmm7.js} +6 -1
- package/dist/cli/{index-cdx3aqj5.js → index-kqzzdxc1.js} +1 -1
- package/dist/cli/{index-sp7s1vk3.js → index-mnw8g9bs.js} +609 -213
- package/dist/cli/{index-4xs9e82s.js → index-mzqgtzxq.js} +3 -3
- package/dist/cli/{index-hmapndcz.js → index-navw2ezf.js} +5 -5
- package/dist/cli/{index-npgjk6vc.js → index-p7fn5byt.js} +1 -1
- package/dist/cli/{index-2vzgvscz.js → index-vmff7b40.js} +3 -3
- package/dist/cli/{index-ca6qmxd8.js → index-vp3mwsd1.js} +1 -1
- package/dist/cli/{index-fmh15wxb.js → index-y06a43sk.js} +1 -1
- package/dist/cli/index.js +14 -14
- package/dist/cli/{knowledge-escalator-pqskjp6y.js → knowledge-escalator-6y5x8vat.js} +3 -3
- package/dist/cli/{knowledge-events-ahpxnqjd.js → knowledge-events-bnr4weyn.js} +1 -1
- package/dist/cli/{knowledge-store-27aynbeg.js → knowledge-store-4mcmb2rj.js} +1 -1
- package/dist/cli/{knowledge-validator-4saz53kh.js → knowledge-validator-pf377mtx.js} +4 -4
- package/dist/cli/{scan-cursor-ngykkd7f.js → scan-cursor-we0561wc.js} +2 -2
- package/dist/cli/{schema-p82ntfy9.js → schema-1xtxr4d9.js} +1 -1
- package/dist/cli/{skill-generator-r19a1zje.js → skill-generator-kns0dae2.js} +5 -5
- package/dist/config/evidence-schema.d.ts +15 -0
- package/dist/index.js +20 -20
- package/dist/services/preflight-service.d.ts +2 -0
- package/dist/tools/pre-check-batch.d.ts +2 -0
- package/dist/tools/secretscan.d.ts +17 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* Returns deterministic structured result with per-check status + overall verdict.
|
|
12
12
|
* Callable by background flow (from preflight.requested events).
|
|
13
13
|
*/
|
|
14
|
+
import { runSecretscan } from '../tools/secretscan';
|
|
14
15
|
/** Preflight check types */
|
|
15
16
|
export type PreflightCheckType = 'lint' | 'tests' | 'secrets' | 'evidence' | 'version' | 'req_coverage';
|
|
16
17
|
/** Individual check status */
|
|
@@ -122,6 +123,7 @@ export declare const _internals: {
|
|
|
122
123
|
runVersionCheck: typeof runVersionCheck;
|
|
123
124
|
runLintCheck: typeof runLintCheck;
|
|
124
125
|
runTestsCheck: typeof runTestsCheck;
|
|
126
|
+
runSecretscan: typeof runSecretscan;
|
|
125
127
|
runSecretsCheck: typeof runSecretsCheck;
|
|
126
128
|
runEvidenceCheck: typeof runEvidenceCheck;
|
|
127
129
|
runRequirementCoverageCheck: typeof runRequirementCoverageCheck;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { tool } from '@opencode-ai/plugin';
|
|
7
7
|
import type { PluginConfig } from '../config';
|
|
8
|
+
import { saveEvidence } from '../evidence/manager.js';
|
|
8
9
|
import type { LintResult } from './lint';
|
|
9
10
|
import type { QualityBudgetResult } from './quality-budget';
|
|
10
11
|
import { qualityBudget } from './quality-budget';
|
|
@@ -17,6 +18,7 @@ export declare const _internals: {
|
|
|
17
18
|
runSastScanWrapped: typeof runSastScanWrapped;
|
|
18
19
|
runQualityBudgetWrapped: typeof runQualityBudgetWrapped;
|
|
19
20
|
getChangedLineRanges: typeof getChangedLineRanges;
|
|
21
|
+
saveEvidence: typeof saveEvidence;
|
|
20
22
|
};
|
|
21
23
|
export interface PreCheckBatchInput {
|
|
22
24
|
/** List of specific files to check (optional) */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
1
2
|
import { createSwarmTool } from './create-tool';
|
|
2
3
|
type SecretType = 'api_key' | 'aws_access_key' | 'aws_secret_key' | 'private_key' | 'password' | 'secret_token' | 'bearer_token' | 'basic_auth' | 'database_url' | 'jwt' | 'github_token' | 'slack_token' | 'stripe_key' | 'sendgrid_key' | 'twilio_key' | 'generic_token' | 'high_entropy';
|
|
3
4
|
type Confidence = 'high' | 'medium' | 'low';
|
|
@@ -17,8 +18,15 @@ export interface SecretscanResult {
|
|
|
17
18
|
count: number;
|
|
18
19
|
files_scanned: number;
|
|
19
20
|
skipped_files: number;
|
|
21
|
+
/** Files requested or discovered but not completely examined. */
|
|
22
|
+
incomplete_files: number;
|
|
23
|
+
incomplete_paths: IncompletePath[];
|
|
20
24
|
message?: string;
|
|
21
25
|
}
|
|
26
|
+
export interface IncompletePath {
|
|
27
|
+
path: string;
|
|
28
|
+
reason: 'cleanup_failed' | 'deadline' | 'directory_limit' | 'max_files' | 'non_file' | 'oversized' | 'read_error' | 'scope_escape' | 'symlink' | 'truncated';
|
|
29
|
+
}
|
|
22
30
|
export interface SecretscanErrorResult {
|
|
23
31
|
error: string;
|
|
24
32
|
scan_dir: string;
|
|
@@ -35,6 +43,7 @@ interface SecretPattern {
|
|
|
35
43
|
redactTemplate: (match: string) => string;
|
|
36
44
|
}
|
|
37
45
|
declare const SECRET_PATTERNS: SecretPattern[];
|
|
46
|
+
declare function yieldToEventLoop(): Promise<void>;
|
|
38
47
|
export declare const secretscan: ReturnType<typeof createSwarmTool>;
|
|
39
48
|
/**
|
|
40
49
|
* Run secretscan programmatically
|
|
@@ -55,5 +64,13 @@ export declare const _internals: {
|
|
|
55
64
|
runSecretscan: typeof runSecretscan;
|
|
56
65
|
runSecretscanOnFiles: typeof runSecretscanOnFiles;
|
|
57
66
|
SECRET_PATTERNS: typeof SECRET_PATTERNS;
|
|
67
|
+
now: () => number;
|
|
68
|
+
yieldToEventLoop: typeof yieldToEventLoop;
|
|
69
|
+
openFile: typeof fs.openSync;
|
|
70
|
+
fstatFile: typeof fs.fstatSync;
|
|
71
|
+
readFileChunk: typeof fs.readSync;
|
|
72
|
+
closeFile: typeof fs.closeSync;
|
|
73
|
+
lstatFile: typeof fs.lstatSync;
|
|
74
|
+
closeDirectory: (directory: fs.Dir) => void;
|
|
58
75
|
};
|
|
59
76
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.138.
|
|
3
|
+
"version": "7.138.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",
|