opencode-swarm 7.113.0 → 7.113.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/{curator-llm-factory-3t0ehhfe.js → curator-llm-factory-nmhzc774.js} +2 -2
- package/dist/cli/{curator-pdcpw4x6.js → curator-nm2c9y1p.js} +2 -2
- package/dist/cli/{guardrail-explain-xsfdc49z.js → guardrail-explain-q1np1xaw.js} +3 -3
- package/dist/cli/{hive-promoter-4htgk6zb.js → hive-promoter-z4dezw62.js} +2 -2
- package/dist/cli/{index-h88ktb5r.js → index-h389ed8y.js} +8 -2
- package/dist/cli/{index-v96kmbkw.js → index-ky8eb4q6.js} +1 -1
- package/dist/cli/{index-bsvwnzh7.js → index-npd9rypp.js} +31 -34
- package/dist/cli/{index-6gdxwfsh.js → index-rqpm9cwe.js} +3 -3
- package/dist/cli/index.js +2 -2
- package/dist/cli/{skill-generator-0my4jrx6.js → skill-generator-nnwn4sq0.js} +1 -1
- package/dist/config/project-init.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/sast/rules/index.d.ts +0 -9
- package/dist/utils/gitignore-warning.d.ts +8 -4
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ export interface SastRule {
|
|
|
9
9
|
languages: string[];
|
|
10
10
|
description: string;
|
|
11
11
|
remediation?: string;
|
|
12
|
-
query?: string;
|
|
13
12
|
pattern?: RegExp;
|
|
14
13
|
validate?: (match: SastMatch, context: SastContext) => boolean;
|
|
15
14
|
}
|
|
@@ -25,8 +24,6 @@ export interface SastContext {
|
|
|
25
24
|
filePath: string;
|
|
26
25
|
content: string;
|
|
27
26
|
language: string;
|
|
28
|
-
parser?: unknown;
|
|
29
|
-
tree?: unknown;
|
|
30
27
|
}
|
|
31
28
|
export interface SastFinding {
|
|
32
29
|
rule_id: string;
|
|
@@ -46,7 +43,6 @@ export declare const _internals: {
|
|
|
46
43
|
getRuleById: typeof getRuleById;
|
|
47
44
|
findPatternMatches: typeof findPatternMatches;
|
|
48
45
|
executeRulesSync: typeof executeRulesSync;
|
|
49
|
-
executeRules: typeof executeRules;
|
|
50
46
|
getRuleStats: typeof getRuleStats;
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
@@ -70,11 +66,6 @@ declare function findPatternMatches(content: string, pattern: RegExp): SastMatch
|
|
|
70
66
|
* This is the primary execution method for offline SAST
|
|
71
67
|
*/
|
|
72
68
|
export declare function executeRulesSync(filePath: string, content: string, language: string): SastFinding[];
|
|
73
|
-
/**
|
|
74
|
-
* Execute rules against a file (async version with tree-sitter support)
|
|
75
|
-
* Falls back to pattern matching if tree-sitter is unavailable
|
|
76
|
-
*/
|
|
77
|
-
export declare function executeRules(filePath: string, content: string, language: string): Promise<SastFinding[]>;
|
|
78
69
|
/**
|
|
79
70
|
* Get statistics about rules
|
|
80
71
|
*/
|
|
@@ -31,14 +31,15 @@ export declare function resetSwarmGitExcludedState(): void;
|
|
|
31
31
|
/**
|
|
32
32
|
* Checks whether `.swarm/` is covered by `.gitignore` or `.git/info/exclude`
|
|
33
33
|
* in the git repo rooted at or above `directory`. If not covered, emits a
|
|
34
|
-
* single
|
|
34
|
+
* single advisory via `advisoryWarn` (buffered for `/swarm diagnose` + debug
|
|
35
|
+
* log). Fires at most once per process.
|
|
35
36
|
*
|
|
36
37
|
* Never throws — any file-system error silently skips the check.
|
|
37
38
|
*
|
|
38
39
|
* @deprecated Use `ensureSwarmGitExcluded` instead. This function only recognises
|
|
39
40
|
* `.git` as a directory and does NOT handle Git worktrees or submodules.
|
|
40
41
|
*/
|
|
41
|
-
export declare function warnIfSwarmNotGitignored(directory: string,
|
|
42
|
+
export declare function warnIfSwarmNotGitignored(directory: string, _quiet?: boolean): void;
|
|
42
43
|
export interface EnsureSwarmGitExcludedOptions {
|
|
43
44
|
quiet?: boolean;
|
|
44
45
|
}
|
|
@@ -83,7 +84,10 @@ export declare const ENSURE_SWARM_GIT_EXCLUDED_PER_CALL_TIMEOUT_MS = 1500;
|
|
|
83
84
|
*
|
|
84
85
|
* Never throws. Fires at most once per process.
|
|
85
86
|
*
|
|
86
|
-
* quiet option:
|
|
87
|
-
*
|
|
87
|
+
* quiet option: deprecated/no-op since epic #1752 PR2 — cosmetic advisories now
|
|
88
|
+
* route through `advisoryWarn` (buffered for `/swarm diagnose` + debug log)
|
|
89
|
+
* regardless of quiet. The exclude write always runs; the tracked-file warning
|
|
90
|
+
* (step 6) is intentionally always emitted as raw `console.warn` because it is
|
|
91
|
+
* a must-see security/hygiene remediation, not a recoverable advisory.
|
|
88
92
|
*/
|
|
89
93
|
export declare function ensureSwarmGitExcluded(directory: string, options?: EnsureSwarmGitExcludedOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.113.
|
|
3
|
+
"version": "7.113.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",
|