opencode-swarm 7.188.7 → 7.188.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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{auto-checkpoint-1z9d2jrk.js → auto-checkpoint-8hn7sczv.js} +4 -4
- package/dist/cli/{checkpoint-f8165pv4.js → checkpoint-zagm80g6.js} +8 -8
- package/dist/cli/{coder-settlement-gaby6spt.js → coder-settlement-ea9wk0fa.js} +3 -3
- package/dist/cli/{config-doctor-4wgw6nak.js → config-doctor-482f83pc.js} +7 -7
- package/dist/cli/{core-y89texpp.js → core-jev9px23.js} +1 -1
- package/dist/cli/{curator-drift-rpwrx355.js → curator-drift-tzr8cq9d.js} +5 -5
- package/dist/cli/{curator-llm-factory-1qbcj7vs.js → curator-llm-factory-vwxengt1.js} +26 -26
- package/dist/cli/{curator-tkz65fvw.js → curator-sw5w1yxn.js} +26 -26
- package/dist/cli/{dispatch-qvcztbpf.js → dispatch-h8m1jntz.js} +47 -220
- package/dist/cli/{doctor-knowledge-receipt-phase-id-11q7en6t.js → doctor-knowledge-receipt-phase-id-78hqh9ds.js} +4 -4
- package/dist/cli/{evidence-summary-service-hn7vdm45.js → evidence-summary-service-dpx7844s.js} +9 -9
- package/dist/cli/{gate-evidence-sxh3r64f.js → gate-evidence-v5fbpnfe.js} +2 -2
- package/dist/cli/{guardrail-explain-e0wbeyk1.js → guardrail-explain-020gkz5c.js} +27 -27
- package/dist/cli/{guardrail-log-gzrj46h0.js → guardrail-log-z14b98cn.js} +3 -3
- package/dist/cli/{guardrail-reset-7z62s1j5.js → guardrail-reset-cg6kfk8r.js} +26 -26
- package/dist/cli/{hive-promoter-88d95wk8.js → hive-promoter-bse7dh34.js} +26 -26
- package/dist/cli/{index-7eajwwfg.js → index-0dp2ak7d.js} +1 -1
- package/dist/cli/{index-snwj9ptc.js → index-0e49htcs.js} +1 -1
- package/dist/cli/{index-61kszszd.js → index-0whh6em0.js} +2 -2
- package/dist/cli/{index-7k9hdn0b.js → index-2mmbzyqb.js} +1 -1
- package/dist/cli/{index-y3sk68m5.js → index-4xc838p0.js} +1 -1
- package/dist/cli/{index-5102w44y.js → index-64e9z08z.js} +2 -2
- package/dist/cli/{index-0j5ggeem.js → index-6nx6qf7v.js} +1 -1
- package/dist/cli/{index-2wctq2hn.js → index-7jtxt3qp.js} +1 -1
- package/dist/cli/{index-m9g7s9ee.js → index-804rs273.js} +1 -1
- package/dist/cli/{index-c016phsk.js → index-akkskstq.js} +4 -4
- package/dist/cli/{index-yj1cwps4.js → index-b2g020d7.js} +1 -1
- package/dist/cli/{index-xj3k6x1h.js → index-b913b1yc.js} +1 -1
- package/dist/cli/{index-c937rpbm.js → index-byfk6w9a.js} +3 -3
- package/dist/cli/{index-ytms8x1h.js → index-bzeegaem.js} +2 -2
- package/dist/cli/{index-vx8a8w3b.js → index-c0tjwb5k.js} +496 -201
- package/dist/cli/{index-kap459mr.js → index-cxybg712.js} +2 -2
- package/dist/cli/{index-03ad14qc.js → index-d1z2yrwq.js} +2 -2
- package/dist/cli/{index-ffmw6af9.js → index-ddgmj923.js} +26 -26
- package/dist/cli/{index-g39cmzpj.js → index-dhkgby53.js} +2 -2
- package/dist/cli/{index-eh0sg1pz.js → index-g0we5tpv.js} +3 -3
- package/dist/cli/{index-ghjg1rxe.js → index-gd602ztc.js} +1 -1
- package/dist/cli/{index-9tes309n.js → index-hjyakvcq.js} +1 -1
- package/dist/cli/{index-rw0c6qtt.js → index-kjb143pz.js} +3 -3
- package/dist/cli/{index-a4s5yrdd.js → index-ng5n8tp0.js} +3 -3
- package/dist/cli/{index-2vtrjm19.js → index-peyrzden.js} +28 -28
- package/dist/cli/{index-7zyktm9f.js → index-ps6fyxfc.js} +5 -5
- package/dist/cli/{index-xsdphmet.js → index-q6y176gs.js} +6 -6
- package/dist/cli/{index-pnfd3s7s.js → index-qdp9ny78.js} +1 -1
- package/dist/cli/{index-emh69vk9.js → index-sndyex1t.js} +304 -166
- package/dist/cli/{index-8sqyx5rh.js → index-t6tew3pf.js} +1 -1
- package/dist/cli/{index-y8z9x87e.js → index-v71w06rr.js} +1 -1
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-ejfb2e7c.js → knowledge-escalator-wah5yybk.js} +7 -7
- package/dist/cli/{knowledge-events-3fzfehwy.js → knowledge-events-akz8013r.js} +5 -5
- package/dist/cli/{knowledge-store-swxk4tr6.js → knowledge-store-hy12373e.js} +1 -1
- package/dist/cli/{knowledge-validator-0a1at9gm.js → knowledge-validator-yrqkdt1w.js} +2 -2
- package/dist/cli/{mcp-0ah7s1j0.js → mcp-0srnsd05.js} +1 -1
- package/dist/cli/{model-preflight-nfvapzyj.js → model-preflight-m3v8hn9k.js} +26 -26
- package/dist/cli/{pending-delegations-hynywgkj.js → pending-delegations-40txwk2h.js} +2 -2
- package/dist/cli/{pr-subscriptions-k86p5qcn.js → pr-subscriptions-w6n5s9c7.js} +1 -1
- package/dist/cli/{pr-workflow-gate-3ett6hjh.js → pr-workflow-gate-mx9t1p5j.js} +26 -26
- package/dist/cli/{scan-cursor-9961dhv1.js → scan-cursor-phbwfaya.js} +2 -2
- package/dist/cli/{schema-s5zbnzmv.js → schema-t1xwd728.js} +1 -1
- package/dist/cli/{scope-persistence-2w562h83.js → scope-persistence-m6qrwt3d.js} +5 -5
- package/dist/cli/{server-vrk0k61v.js → server-7pt2zhnc.js} +26 -26
- package/dist/cli/{skill-generator-bfcjzp20.js → skill-generator-pnv8efrw.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-8ykpp5m6.js → snapshot-coordination-init-514wtctt.js} +26 -26
- package/dist/cli/{speckit-checkoff-3x52vw64.js → speckit-checkoff-beh1nw7v.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-kjw1pqfc.js → worktree-collision-ownership-f5wca0gg.js} +2 -2
- package/dist/cli/{worktree-isolation-xdgm4ekx.js → worktree-isolation-bd6c5x8h.js} +26 -26
- package/dist/commands/recover.d.ts +1 -1
- package/dist/commands/registry.d.ts +1 -1
- package/dist/hooks/knowledge-receipt-ledger.d.ts +23 -0
- package/dist/hooks/knowledge-receipt-validator.d.ts +10 -0
- package/dist/index.js +213 -213
- package/dist/lang/backends/java.d.ts +39 -0
- package/dist/lang/default-backend.d.ts +15 -0
- package/dist/state.d.ts +48 -0
- package/dist/tools/test-runner.d.ts +31 -1
- package/dist/utils/windows-batch.d.ts +53 -0
- package/dist/workflow/session-view.d.ts +47 -0
- package/dist/workflow/stage-a-repair.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
LANGUAGE_REGISTRY,
|
|
4
4
|
buildGoBackend,
|
|
5
|
+
buildJavaBackend,
|
|
5
6
|
buildPythonBackend,
|
|
6
7
|
defaultBackendFor,
|
|
7
8
|
defaultBuildTestCommand,
|
|
@@ -10,10 +11,8 @@ import {
|
|
|
10
11
|
defaultSelectTestFramework,
|
|
11
12
|
defaultTestFilesFor,
|
|
12
13
|
detectProjectLanguages,
|
|
13
|
-
maskCommentsAndLiterals,
|
|
14
|
-
parseJavaImports,
|
|
15
14
|
tokenizeCommand
|
|
16
|
-
} from "./index-
|
|
15
|
+
} from "./index-c0tjwb5k.js";
|
|
17
16
|
import"./index-9nyqt3kb.js";
|
|
18
17
|
import"./index-2s7dvzff.js";
|
|
19
18
|
import {
|
|
@@ -25,8 +24,8 @@ import"./index-zgwm4ryv.js";
|
|
|
25
24
|
import"./index-a76rekgs.js";
|
|
26
25
|
|
|
27
26
|
// src/lang/dispatch.ts
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
27
|
+
import * as fs4 from "fs";
|
|
28
|
+
import * as path4 from "path";
|
|
30
29
|
|
|
31
30
|
// src/lang/registry-backend.ts
|
|
32
31
|
class LanguageBackendRegistry {
|
|
@@ -56,185 +55,13 @@ class LanguageBackendRegistry {
|
|
|
56
55
|
}
|
|
57
56
|
var LANGUAGE_BACKEND_REGISTRY = new LanguageBackendRegistry;
|
|
58
57
|
|
|
59
|
-
// src/lang/backends/java.ts
|
|
60
|
-
import * as fs from "fs";
|
|
61
|
-
import * as path from "path";
|
|
62
|
-
var PROFILE_ID = "java";
|
|
63
|
-
var MAX_ENTRY_POINT_DEPTH = 8;
|
|
64
|
-
var MAX_ENTRY_POINT_ENTRIES = 5000;
|
|
65
|
-
var MAX_ENTRY_POINT_FILE_BYTES = 256 * 1024;
|
|
66
|
-
var MAX_ENTRY_POINT_TOTAL_BYTES = 512 * 1024;
|
|
67
|
-
var IGNORED_ENTRY_POINT_DIRS = new Set([
|
|
68
|
-
".git",
|
|
69
|
-
".gradle",
|
|
70
|
-
"target",
|
|
71
|
-
"build",
|
|
72
|
-
"node_modules",
|
|
73
|
-
".idea",
|
|
74
|
-
"out",
|
|
75
|
-
"bin",
|
|
76
|
-
".venv",
|
|
77
|
-
"venv",
|
|
78
|
-
"dist"
|
|
79
|
-
]);
|
|
80
|
-
var DEFERRED_ENTRY_POINT_DIRS = new Set([
|
|
81
|
-
"test",
|
|
82
|
-
"tests",
|
|
83
|
-
"androidTest",
|
|
84
|
-
"integrationTest",
|
|
85
|
-
"testFixtures"
|
|
86
|
-
]);
|
|
87
|
-
function isMainClass(source) {
|
|
88
|
-
const masked = maskCommentsAndLiterals(source);
|
|
89
|
-
return /\b(?:public\s+static|static\s+public)\s+void\s+main\s*\(/.test(masked);
|
|
90
|
-
}
|
|
91
|
-
function scanForMainClasses(dir) {
|
|
92
|
-
const results = [];
|
|
93
|
-
const stack = [{ dir, depth: 0 }];
|
|
94
|
-
let entriesVisited = 0;
|
|
95
|
-
let totalBytes = 0;
|
|
96
|
-
while (stack.length > 0) {
|
|
97
|
-
const current = stack.pop();
|
|
98
|
-
if (!current || current.depth > MAX_ENTRY_POINT_DEPTH)
|
|
99
|
-
continue;
|
|
100
|
-
let entries;
|
|
101
|
-
try {
|
|
102
|
-
entries = fs.readdirSync(current.dir, { withFileTypes: true });
|
|
103
|
-
} catch {
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
const deferredDirs = [];
|
|
107
|
-
const preferredDirs = [];
|
|
108
|
-
for (const entry of entries) {
|
|
109
|
-
entriesVisited++;
|
|
110
|
-
if (entriesVisited > MAX_ENTRY_POINT_ENTRIES)
|
|
111
|
-
return results;
|
|
112
|
-
const full = path.join(current.dir, entry.name);
|
|
113
|
-
if (entry.isDirectory()) {
|
|
114
|
-
if (IGNORED_ENTRY_POINT_DIRS.has(entry.name))
|
|
115
|
-
continue;
|
|
116
|
-
if (DEFERRED_ENTRY_POINT_DIRS.has(entry.name)) {
|
|
117
|
-
deferredDirs.push(full);
|
|
118
|
-
} else {
|
|
119
|
-
preferredDirs.push(full);
|
|
120
|
-
}
|
|
121
|
-
} else if (entry.isFile() && entry.name.endsWith(".java")) {
|
|
122
|
-
let size;
|
|
123
|
-
try {
|
|
124
|
-
size = fs.statSync(full).size;
|
|
125
|
-
} catch {
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
if (size > MAX_ENTRY_POINT_FILE_BYTES)
|
|
129
|
-
continue;
|
|
130
|
-
if (totalBytes + size > MAX_ENTRY_POINT_TOTAL_BYTES)
|
|
131
|
-
return results;
|
|
132
|
-
try {
|
|
133
|
-
const source = fs.readFileSync(full, "utf-8");
|
|
134
|
-
totalBytes += size;
|
|
135
|
-
if (isMainClass(source)) {
|
|
136
|
-
results.push(path.relative(dir, full));
|
|
137
|
-
}
|
|
138
|
-
} catch {}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
for (const d of deferredDirs)
|
|
142
|
-
stack.push({ dir: d, depth: current.depth + 1 });
|
|
143
|
-
for (const d of preferredDirs)
|
|
144
|
-
stack.push({ dir: d, depth: current.depth + 1 });
|
|
145
|
-
}
|
|
146
|
-
return results;
|
|
147
|
-
}
|
|
148
|
-
function detectFramework(content) {
|
|
149
|
-
if (content.length === 0)
|
|
150
|
-
return null;
|
|
151
|
-
if (/\bspring-boot-starter-web\b|\bspring-boot\b|\bspring-web\b|\bspring-context\b/.test(content)) {
|
|
152
|
-
return { name: "spring", detectedVia: "spring-boot/spring dependency" };
|
|
153
|
-
}
|
|
154
|
-
if (/\bjakarta\.servlet\b|\bjavax\.servlet\b/.test(content)) {
|
|
155
|
-
return { name: "servlet", detectedVia: "jakarta/javax servlet dependency" };
|
|
156
|
-
}
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
function extractImports(_sourceFile, source) {
|
|
160
|
-
const seen = new Set;
|
|
161
|
-
for (const imp of parseJavaImports(source)) {
|
|
162
|
-
seen.add(imp.specifier);
|
|
163
|
-
}
|
|
164
|
-
return [...seen];
|
|
165
|
-
}
|
|
166
|
-
function wrapperExists(dir, name) {
|
|
167
|
-
return fs.existsSync(path.join(dir, name));
|
|
168
|
-
}
|
|
169
|
-
function resolveMvnwCommand(dir) {
|
|
170
|
-
const isWindows = process.platform === "win32";
|
|
171
|
-
const hasMvnwCmd = wrapperExists(dir, "mvnw.cmd");
|
|
172
|
-
return isWindows && hasMvnwCmd ? "mvnw.cmd" : "./mvnw";
|
|
173
|
-
}
|
|
174
|
-
function resolveGradlewCommand(dir) {
|
|
175
|
-
const isWindows = process.platform === "win32";
|
|
176
|
-
const hasGradlewBat = wrapperExists(dir, "gradlew.bat");
|
|
177
|
-
return isWindows && hasGradlewBat ? "gradlew.bat" : "./gradlew";
|
|
178
|
-
}
|
|
179
|
-
async function selectTestFramework(dir) {
|
|
180
|
-
if (wrapperExists(dir, "gradlew")) {
|
|
181
|
-
return {
|
|
182
|
-
name: "gradle",
|
|
183
|
-
cmd: [resolveGradlewCommand(dir), "test", "-q"],
|
|
184
|
-
cwd: dir,
|
|
185
|
-
detectedVia: "./gradlew",
|
|
186
|
-
filesIgnored: false
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
if (wrapperExists(dir, "mvnw")) {
|
|
190
|
-
return {
|
|
191
|
-
name: "maven",
|
|
192
|
-
cmd: [resolveMvnwCommand(dir), "test", "-q"],
|
|
193
|
-
cwd: dir,
|
|
194
|
-
detectedVia: "./mvnw",
|
|
195
|
-
filesIgnored: false
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID);
|
|
199
|
-
if (!profile)
|
|
200
|
-
return null;
|
|
201
|
-
return defaultSelectTestFramework(profile, dir);
|
|
202
|
-
}
|
|
203
|
-
async function selectEntryPoints(dir) {
|
|
204
|
-
await new Promise((resolve) => setImmediate(resolve));
|
|
205
|
-
return scanForMainClasses(dir);
|
|
206
|
-
}
|
|
207
|
-
async function selectFramework(dir) {
|
|
208
|
-
let content = "";
|
|
209
|
-
for (const file of ["pom.xml", "build.gradle", "build.gradle.kts"]) {
|
|
210
|
-
try {
|
|
211
|
-
content += `
|
|
212
|
-
${fs.readFileSync(path.join(dir, file), "utf-8")}`;
|
|
213
|
-
} catch {}
|
|
214
|
-
}
|
|
215
|
-
return detectFramework(content);
|
|
216
|
-
}
|
|
217
|
-
function buildJavaBackend() {
|
|
218
|
-
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID);
|
|
219
|
-
if (!profile) {
|
|
220
|
-
throw new Error("buildJavaBackend: java profile not in LANGUAGE_REGISTRY. " + "profiles.ts must be imported before this backend.");
|
|
221
|
-
}
|
|
222
|
-
return {
|
|
223
|
-
...defaultBackendFor(profile),
|
|
224
|
-
extractImports,
|
|
225
|
-
selectTestFramework,
|
|
226
|
-
selectEntryPoints,
|
|
227
|
-
selectFramework
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
|
|
231
58
|
// src/lang/backends/php.ts
|
|
232
|
-
import * as fs3 from "fs";
|
|
233
|
-
import * as path3 from "path";
|
|
234
|
-
|
|
235
|
-
// src/lang/framework-detector.ts
|
|
236
59
|
import * as fs2 from "fs";
|
|
237
60
|
import * as path2 from "path";
|
|
61
|
+
|
|
62
|
+
// src/lang/framework-detector.ts
|
|
63
|
+
import * as fs from "fs";
|
|
64
|
+
import * as path from "path";
|
|
238
65
|
function detectLaravelProject(directory) {
|
|
239
66
|
const signals = getLaravelSignals(directory);
|
|
240
67
|
const signalCount = [
|
|
@@ -251,21 +78,21 @@ function getLaravelSignals(directory) {
|
|
|
251
78
|
return { hasArtisanFile, hasLaravelFrameworkDep, hasConfigApp };
|
|
252
79
|
}
|
|
253
80
|
function checkArtisanFile(directory) {
|
|
254
|
-
const artisanPath =
|
|
255
|
-
if (!
|
|
81
|
+
const artisanPath = path.join(directory, "artisan");
|
|
82
|
+
if (!fs.existsSync(artisanPath))
|
|
256
83
|
return false;
|
|
257
84
|
try {
|
|
258
|
-
return
|
|
85
|
+
return fs.statSync(artisanPath).isFile();
|
|
259
86
|
} catch {
|
|
260
87
|
return false;
|
|
261
88
|
}
|
|
262
89
|
}
|
|
263
90
|
function checkLaravelFrameworkDep(directory) {
|
|
264
|
-
const composerPath =
|
|
265
|
-
if (!
|
|
91
|
+
const composerPath = path.join(directory, "composer.json");
|
|
92
|
+
if (!fs.existsSync(composerPath))
|
|
266
93
|
return false;
|
|
267
94
|
try {
|
|
268
|
-
const content =
|
|
95
|
+
const content = fs.readFileSync(composerPath, "utf-8");
|
|
269
96
|
const parsed = JSON.parse(content);
|
|
270
97
|
const require2 = parsed?.require ?? {};
|
|
271
98
|
return typeof require2["laravel/framework"] === "string";
|
|
@@ -274,12 +101,12 @@ function checkLaravelFrameworkDep(directory) {
|
|
|
274
101
|
}
|
|
275
102
|
}
|
|
276
103
|
function checkConfigApp(directory) {
|
|
277
|
-
return
|
|
104
|
+
return fs.existsSync(path.join(directory, "config", "app.php"));
|
|
278
105
|
}
|
|
279
106
|
|
|
280
107
|
// src/lang/backends/php.ts
|
|
281
|
-
var
|
|
282
|
-
async function
|
|
108
|
+
var PROFILE_ID = "php";
|
|
109
|
+
async function selectFramework(dir) {
|
|
283
110
|
if (detectLaravelProject(dir)) {
|
|
284
111
|
return {
|
|
285
112
|
name: "laravel",
|
|
@@ -288,7 +115,7 @@ async function selectFramework2(dir) {
|
|
|
288
115
|
}
|
|
289
116
|
return null;
|
|
290
117
|
}
|
|
291
|
-
async function
|
|
118
|
+
async function selectTestFramework(dir) {
|
|
292
119
|
if (detectLaravelProject(dir)) {
|
|
293
120
|
return {
|
|
294
121
|
name: "php-artisan",
|
|
@@ -297,7 +124,7 @@ async function selectTestFramework2(dir) {
|
|
|
297
124
|
detectedVia: "Laravel signals (artisan / composer.json / config/app.php)"
|
|
298
125
|
};
|
|
299
126
|
}
|
|
300
|
-
if (
|
|
127
|
+
if (fs2.existsSync(path2.join(dir, "Pest.php"))) {
|
|
301
128
|
return {
|
|
302
129
|
name: "pest",
|
|
303
130
|
cmd: [phpVendorBin("pest")],
|
|
@@ -305,7 +132,7 @@ async function selectTestFramework2(dir) {
|
|
|
305
132
|
detectedVia: "Pest.php"
|
|
306
133
|
};
|
|
307
134
|
}
|
|
308
|
-
if (
|
|
135
|
+
if (fs2.existsSync(path2.join(dir, "phpunit.xml"))) {
|
|
309
136
|
return {
|
|
310
137
|
name: "phpunit",
|
|
311
138
|
cmd: [phpVendorBin("phpunit")],
|
|
@@ -313,7 +140,7 @@ async function selectTestFramework2(dir) {
|
|
|
313
140
|
detectedVia: "phpunit.xml"
|
|
314
141
|
};
|
|
315
142
|
}
|
|
316
|
-
if (
|
|
143
|
+
if (fs2.existsSync(path2.join(dir, "phpunit.xml.dist"))) {
|
|
317
144
|
return {
|
|
318
145
|
name: "phpunit",
|
|
319
146
|
cmd: [phpVendorBin("phpunit")],
|
|
@@ -324,24 +151,24 @@ async function selectTestFramework2(dir) {
|
|
|
324
151
|
return null;
|
|
325
152
|
}
|
|
326
153
|
function phpVendorBin(name) {
|
|
327
|
-
return
|
|
154
|
+
return path2.join("vendor", "bin", process.platform === "win32" ? `${name}.bat` : name);
|
|
328
155
|
}
|
|
329
156
|
function buildPhpBackend() {
|
|
330
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
157
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID);
|
|
331
158
|
if (!profile) {
|
|
332
159
|
throw new Error("buildPhpBackend: php profile not in LANGUAGE_REGISTRY. " + "profiles.ts must be imported before this backend.");
|
|
333
160
|
}
|
|
334
161
|
return {
|
|
335
162
|
...defaultBackendFor(profile),
|
|
336
|
-
selectFramework
|
|
337
|
-
selectTestFramework
|
|
163
|
+
selectFramework,
|
|
164
|
+
selectTestFramework
|
|
338
165
|
};
|
|
339
166
|
}
|
|
340
167
|
|
|
341
168
|
// src/lang/backends/typescript.ts
|
|
342
|
-
import * as
|
|
343
|
-
import * as
|
|
344
|
-
var
|
|
169
|
+
import * as fs3 from "fs";
|
|
170
|
+
import * as path3 from "path";
|
|
171
|
+
var PROFILE_ID2 = "typescript";
|
|
345
172
|
var IMPORT_REGEX_ES = /import\s+[\s\S]*?\s+from\s+['"]([^'"]+)['"]/g;
|
|
346
173
|
var IMPORT_REGEX_BARE = /import\s+['"]([^'"]+)['"]/g;
|
|
347
174
|
var IMPORT_REGEX_REQUIRE = /require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
@@ -349,7 +176,7 @@ var IMPORT_REGEX_DYNAMIC = /import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
|
349
176
|
var IMPORT_REGEX_REEXPORT = /export\s+(?:\{[^}]*\}|\*)\s+from\s+['"]([^'"]+)['"]/g;
|
|
350
177
|
function readPackageJsonRaw(dir) {
|
|
351
178
|
try {
|
|
352
|
-
const content =
|
|
179
|
+
const content = fs3.readFileSync(path3.join(dir, "package.json"), "utf-8");
|
|
353
180
|
return JSON.parse(content);
|
|
354
181
|
} catch {
|
|
355
182
|
return null;
|
|
@@ -398,8 +225,8 @@ function selectionFromFramework(profile, fwName, dir, detectedVia) {
|
|
|
398
225
|
filesIgnored: false
|
|
399
226
|
};
|
|
400
227
|
}
|
|
401
|
-
async function
|
|
402
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
228
|
+
async function selectTestFramework2(dir) {
|
|
229
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID2);
|
|
403
230
|
if (!profile)
|
|
404
231
|
return null;
|
|
405
232
|
const pkg = readPackageJson(dir);
|
|
@@ -421,7 +248,7 @@ async function selectTestFramework3(dir) {
|
|
|
421
248
|
return defaultSelectTestFramework(profile, dir);
|
|
422
249
|
}
|
|
423
250
|
function buildTestCommand(framework, files, dir, opts) {
|
|
424
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
251
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID2);
|
|
425
252
|
if (!profile)
|
|
426
253
|
return null;
|
|
427
254
|
return defaultBuildTestCommand(profile, framework, files, dir, opts);
|
|
@@ -429,7 +256,7 @@ function buildTestCommand(framework, files, dir, opts) {
|
|
|
429
256
|
function parseTestOutput(framework, stdout, stderr, exitCode) {
|
|
430
257
|
return defaultParseTestOutput(framework, stdout, stderr, exitCode);
|
|
431
258
|
}
|
|
432
|
-
async function
|
|
259
|
+
async function selectFramework2(dir) {
|
|
433
260
|
const pkg = readPackageJson(dir);
|
|
434
261
|
if (!pkg)
|
|
435
262
|
return null;
|
|
@@ -455,7 +282,7 @@ async function selectFramework3(dir) {
|
|
|
455
282
|
}
|
|
456
283
|
return null;
|
|
457
284
|
}
|
|
458
|
-
async function
|
|
285
|
+
async function selectEntryPoints(dir) {
|
|
459
286
|
const pkg = readPackageJson(dir);
|
|
460
287
|
if (!pkg)
|
|
461
288
|
return [];
|
|
@@ -479,7 +306,7 @@ async function selectEntryPoints2(dir) {
|
|
|
479
306
|
}
|
|
480
307
|
return [...new Set(points.filter((p) => p.length > 0))];
|
|
481
308
|
}
|
|
482
|
-
function
|
|
309
|
+
function extractImports(_sourceFile, source) {
|
|
483
310
|
const out = new Set;
|
|
484
311
|
for (const re of [
|
|
485
312
|
IMPORT_REGEX_ES,
|
|
@@ -498,32 +325,32 @@ function extractImports2(_sourceFile, source) {
|
|
|
498
325
|
return [...out];
|
|
499
326
|
}
|
|
500
327
|
async function selectBuildCommand(dir) {
|
|
501
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
328
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID2);
|
|
502
329
|
if (!profile)
|
|
503
330
|
return null;
|
|
504
331
|
return defaultSelectBuildCommand(profile, dir);
|
|
505
332
|
}
|
|
506
333
|
async function testFilesFor(sourceFile, dir) {
|
|
507
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
334
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID2);
|
|
508
335
|
if (!profile)
|
|
509
336
|
return [];
|
|
510
337
|
return defaultTestFilesFor(profile, sourceFile, dir);
|
|
511
338
|
}
|
|
512
339
|
function buildTypescriptBackend() {
|
|
513
|
-
const profile = LANGUAGE_REGISTRY.get(
|
|
340
|
+
const profile = LANGUAGE_REGISTRY.get(PROFILE_ID2);
|
|
514
341
|
if (!profile) {
|
|
515
342
|
throw new Error("buildTypescriptBackend: typescript profile not in LANGUAGE_REGISTRY. " + "profiles.ts must be imported before this backend.");
|
|
516
343
|
}
|
|
517
344
|
return {
|
|
518
345
|
...profile,
|
|
519
|
-
selectTestFramework:
|
|
346
|
+
selectTestFramework: selectTestFramework2,
|
|
520
347
|
buildTestCommand,
|
|
521
348
|
parseTestOutput,
|
|
522
|
-
extractImports
|
|
349
|
+
extractImports,
|
|
523
350
|
selectBuildCommand,
|
|
524
351
|
testFilesFor,
|
|
525
|
-
selectFramework:
|
|
526
|
-
selectEntryPoints
|
|
352
|
+
selectFramework: selectFramework2,
|
|
353
|
+
selectEntryPoints
|
|
527
354
|
};
|
|
528
355
|
}
|
|
529
356
|
var _internals = {
|
|
@@ -583,7 +410,7 @@ var cache = new Map;
|
|
|
583
410
|
var insertCounter = 0;
|
|
584
411
|
async function tryReadDirectoryAsync(dir) {
|
|
585
412
|
try {
|
|
586
|
-
return new Set(await
|
|
413
|
+
return new Set(await fs4.promises.readdir(dir));
|
|
587
414
|
} catch {
|
|
588
415
|
return null;
|
|
589
416
|
}
|
|
@@ -596,7 +423,7 @@ async function manifestHash(dir, signal) {
|
|
|
596
423
|
const names = MANIFEST_FILES.filter((name) => entries.has(name));
|
|
597
424
|
const parts = await Promise.all(names.map(async (name) => {
|
|
598
425
|
try {
|
|
599
|
-
const stat = await
|
|
426
|
+
const stat = await fs4.promises.stat(path4.join(dir, name));
|
|
600
427
|
return `${name}:${stat.size}:${stat.mtimeMs}:${stat.ino}`;
|
|
601
428
|
} catch {
|
|
602
429
|
return null;
|
|
@@ -622,7 +449,7 @@ function cacheProfileKey(input, cacheKey) {
|
|
|
622
449
|
}
|
|
623
450
|
async function directoryFingerprint(dir) {
|
|
624
451
|
try {
|
|
625
|
-
const stat = await
|
|
452
|
+
const stat = await fs4.promises.stat(dir);
|
|
626
453
|
if (!stat.isDirectory())
|
|
627
454
|
return null;
|
|
628
455
|
return {
|
|
@@ -701,7 +528,7 @@ function throwIfAborted(signal) {
|
|
|
701
528
|
}
|
|
702
529
|
async function findManifestRoot(start, signal) {
|
|
703
530
|
throwIfAborted(signal);
|
|
704
|
-
const resolved =
|
|
531
|
+
const resolved = path4.resolve(start);
|
|
705
532
|
const key = await canonicalRootKeyFreshAsync(resolved);
|
|
706
533
|
throwIfAborted(signal);
|
|
707
534
|
const cached = manifestRootCache.get(key);
|
|
@@ -763,7 +590,7 @@ async function findManifestRoot(start, signal) {
|
|
|
763
590
|
}
|
|
764
591
|
}
|
|
765
592
|
}
|
|
766
|
-
const parent =
|
|
593
|
+
const parent = path4.dirname(cur);
|
|
767
594
|
if (parent === cur)
|
|
768
595
|
break;
|
|
769
596
|
cur = parent;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
backfillMembershipPhaseIds,
|
|
4
4
|
inspectMembershipPhaseIds
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-0whh6em0.js";
|
|
6
6
|
import"./index-m9zzj4ee.js";
|
|
7
7
|
import"./index-7hr5m7yp.js";
|
|
8
8
|
import"./index-2s7dvzff.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-64e9z08z.js";
|
|
10
10
|
import"./index-kbkk7vnh.js";
|
|
11
11
|
import"./index-0725jpp7.js";
|
|
12
12
|
import"./index-1xa8wq76.js";
|
|
@@ -15,9 +15,9 @@ import"./index-d3rjvm9e.js";
|
|
|
15
15
|
import"./index-fzpt2djt.js";
|
|
16
16
|
import"./index-p2tqzwh6.js";
|
|
17
17
|
import"./index-gx2vp8gx.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-hjyakvcq.js";
|
|
19
19
|
import"./index-zxdawwc7.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-gd602ztc.js";
|
|
21
21
|
import"./index-zfbxfm2m.js";
|
|
22
22
|
import"./index-bk5tah7q.js";
|
|
23
23
|
import"./index-gknz3bv1.js";
|
package/dist/cli/{evidence-summary-service-hn7vdm45.js → evidence-summary-service-dpx7844s.js}
RENAMED
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
loadEvidence,
|
|
6
6
|
mergeDurableGateEntriesFromEvidence,
|
|
7
7
|
readDurableGateEvidence
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-v71w06rr.js";
|
|
9
9
|
import"./index-8xabhfwr.js";
|
|
10
10
|
import"./index-txdagbh7.js";
|
|
11
11
|
import {
|
|
12
12
|
loadPlanJsonOnly
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ps6fyxfc.js";
|
|
14
14
|
import"./index-6b295cas.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-7jtxt3qp.js";
|
|
16
16
|
import"./index-zsrtt42s.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-b2g020d7.js";
|
|
18
|
+
import"./index-t6tew3pf.js";
|
|
19
|
+
import"./index-b913b1yc.js";
|
|
20
20
|
import"./index-g4fs6z4e.js";
|
|
21
21
|
import"./index-m9zzj4ee.js";
|
|
22
22
|
import"./index-7hr5m7yp.js";
|
|
23
23
|
import"./index-2s7dvzff.js";
|
|
24
24
|
import"./index-kbkk7vnh.js";
|
|
25
25
|
import"./index-0725jpp7.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-bzeegaem.js";
|
|
27
27
|
import"./index-wrdktgpy.js";
|
|
28
28
|
import"./index-ntda6tje.js";
|
|
29
29
|
import"./index-9tvjwv01.js";
|
|
@@ -40,9 +40,9 @@ import"./index-ejhxgyvm.js";
|
|
|
40
40
|
import"./index-7g4c7s5r.js";
|
|
41
41
|
import"./index-p2tqzwh6.js";
|
|
42
42
|
import"./index-gx2vp8gx.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-hjyakvcq.js";
|
|
44
44
|
import"./index-zxdawwc7.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-gd602ztc.js";
|
|
46
46
|
import"./index-zfbxfm2m.js";
|
|
47
47
|
import"./index-bk5tah7q.js";
|
|
48
48
|
import"./index-gknz3bv1.js";
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
transitionTaskWorkflowEvidence,
|
|
27
27
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
28
28
|
withTaskEvidenceTransaction
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-t6tew3pf.js";
|
|
30
|
+
import"./index-b913b1yc.js";
|
|
31
31
|
import"./index-g4fs6z4e.js";
|
|
32
32
|
import"./index-7hr5m7yp.js";
|
|
33
33
|
import"./index-2s7dvzff.js";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
4
|
+
} from "./index-d1z2yrwq.js";
|
|
5
|
+
import"./index-sndyex1t.js";
|
|
6
|
+
import"./index-2mmbzyqb.js";
|
|
7
|
+
import"./index-dhkgby53.js";
|
|
8
|
+
import"./index-v71w06rr.js";
|
|
9
|
+
import"./index-c0tjwb5k.js";
|
|
10
10
|
import"./index-k8sarme1.js";
|
|
11
11
|
import"./index-8xabhfwr.js";
|
|
12
12
|
import"./index-txdagbh7.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-0e49htcs.js";
|
|
14
14
|
import"./index-rdec0y3z.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-qdp9ny78.js";
|
|
16
|
+
import"./index-kjb143pz.js";
|
|
17
|
+
import"./index-byfk6w9a.js";
|
|
18
|
+
import"./index-q6y176gs.js";
|
|
19
19
|
import"./index-kaqdzhj3.js";
|
|
20
20
|
import"./index-9czp2dcg.js";
|
|
21
21
|
import"./index-cjapb4hy.js";
|
|
22
22
|
import"./index-f6exny9m.js";
|
|
23
23
|
import"./index-pt7h91zc.js";
|
|
24
24
|
import"./index-q7sjgr1y.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-ng5n8tp0.js";
|
|
26
|
+
import"./index-ps6fyxfc.js";
|
|
27
27
|
import"./index-6b295cas.js";
|
|
28
28
|
import"./index-9nyqt3kb.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-7jtxt3qp.js";
|
|
30
30
|
import"./index-zsrtt42s.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-b2g020d7.js";
|
|
32
|
+
import"./index-t6tew3pf.js";
|
|
33
|
+
import"./index-b913b1yc.js";
|
|
34
34
|
import"./index-g4fs6z4e.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-0dp2ak7d.js";
|
|
36
|
+
import"./index-cxybg712.js";
|
|
37
|
+
import"./index-0whh6em0.js";
|
|
38
38
|
import"./index-m9zzj4ee.js";
|
|
39
39
|
import"./index-7hr5m7yp.js";
|
|
40
40
|
import"./index-2s7dvzff.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-804rs273.js";
|
|
42
42
|
import"./index-q9kefh33.js";
|
|
43
43
|
import"./index-rtry5xyf.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-64e9z08z.js";
|
|
45
45
|
import"./index-kbkk7vnh.js";
|
|
46
46
|
import"./index-0725jpp7.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-4xc838p0.js";
|
|
48
|
+
import"./index-bzeegaem.js";
|
|
49
49
|
import"./index-wrdktgpy.js";
|
|
50
50
|
import"./index-x1eh2636.js";
|
|
51
51
|
import"./index-ntda6tje.js";
|
|
@@ -54,7 +54,7 @@ import"./index-ry16d01s.js";
|
|
|
54
54
|
import"./index-rdm3px0g.js";
|
|
55
55
|
import"./index-7pmbnjvj.js";
|
|
56
56
|
import"./index-1xa8wq76.js";
|
|
57
|
-
import"./index-
|
|
57
|
+
import"./index-akkskstq.js";
|
|
58
58
|
import"./index-vzm6zre7.js";
|
|
59
59
|
import"./index-ae75rja9.js";
|
|
60
60
|
import"./index-8q8783g0.js";
|
|
@@ -67,9 +67,9 @@ import"./index-ejhxgyvm.js";
|
|
|
67
67
|
import"./index-7g4c7s5r.js";
|
|
68
68
|
import"./index-p2tqzwh6.js";
|
|
69
69
|
import"./index-gx2vp8gx.js";
|
|
70
|
-
import"./index-
|
|
70
|
+
import"./index-hjyakvcq.js";
|
|
71
71
|
import"./index-zxdawwc7.js";
|
|
72
|
-
import"./index-
|
|
72
|
+
import"./index-gd602ztc.js";
|
|
73
73
|
import"./index-zfbxfm2m.js";
|
|
74
74
|
import"./index-bk5tah7q.js";
|
|
75
75
|
import"./index-gknz3bv1.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-6nx6qf7v.js";
|
|
5
|
+
import"./index-2mmbzyqb.js";
|
|
6
6
|
import"./index-2s7dvzff.js";
|
|
7
7
|
import"./index-wrdktgpy.js";
|
|
8
8
|
import"./index-1xa8wq76.js";
|
|
9
9
|
import"./index-d3rjvm9e.js";
|
|
10
10
|
import"./index-fzpt2djt.js";
|
|
11
11
|
import"./index-p2tqzwh6.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-gd602ztc.js";
|
|
13
13
|
import"./index-zfbxfm2m.js";
|
|
14
14
|
import"./index-bk5tah7q.js";
|
|
15
15
|
import"./index-gknz3bv1.js";
|