opencode-swarm 7.145.0 → 7.145.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/background/workspace-snapshot.d.ts +29 -0
- package/dist/cli/{config-doctor-dzsv3pqy.js → config-doctor-96jmxr7s.js} +3 -3
- package/dist/cli/{core-qkh9me8x.js → core-w78pc1hh.js} +3 -3
- package/dist/cli/{curation-policy-5x6346tf.js → curation-policy-smyc2mrm.js} +5 -5
- package/dist/cli/{curator-zssndq5x.js → curator-59hzdxrv.js} +30 -30
- package/dist/cli/{curator-llm-factory-q5p4578g.js → curator-llm-factory-g794pv51.js} +30 -30
- package/dist/cli/{evidence-summary-service-dqcpapj8.js → evidence-summary-service-41m0cna6.js} +13 -13
- package/dist/cli/{gate-evidence-bkdqryqg.js → gate-evidence-7aywx7qa.js} +8 -8
- package/dist/cli/{guardrail-explain-kspf83x5.js → guardrail-explain-j88dhm6w.js} +31 -31
- package/dist/cli/{guardrail-log-qg4sq6gr.js → guardrail-log-xcb3ke8s.js} +4 -4
- package/dist/cli/{hive-promoter-3h7dhnek.js → hive-promoter-nnnx5692.js} +30 -30
- package/dist/cli/{index-0pcq32y2.js → index-17e73wac.js} +1 -1
- package/dist/cli/{index-4e5a28h7.js → index-19v4tccw.js} +2 -2
- package/dist/cli/{index-fp464as8.js → index-2qrd8mfa.js} +1 -1
- package/dist/cli/{index-wk54ey3h.js → index-34tawmyx.js} +1 -1
- package/dist/cli/{index-s6cwsnrw.js → index-41t3hgaa.js} +10 -10
- package/dist/cli/{index-zfhe7vbb.js → index-7axx11dt.js} +1 -1
- package/dist/cli/{index-h4hasck4.js → index-8ef23wex.js} +4 -4
- package/dist/cli/{index-4zwjc9sb.js → index-90w06fqr.js} +100 -3
- package/dist/cli/{index-kp87kr1a.js → index-b7ntt9cw.js} +3 -3
- package/dist/cli/{index-6ezbzd5e.js → index-bst6epnr.js} +298 -160
- package/dist/cli/{index-apjdytwx.js → index-cqfp05jb.js} +3 -3
- package/dist/cli/{index-zz5qsjd1.js → index-dppzthm9.js} +64 -36
- package/dist/cli/{index-s72naw1j.js → index-dzan8czb.js} +1 -1
- package/dist/cli/{index-e00wbqw5.js → index-evpgszmp.js} +2 -2
- package/dist/cli/{index-c13ttmak.js → index-ff66fbjt.js} +10 -10
- package/dist/cli/{index-jy9bwa9k.js → index-fwnhh6s7.js} +2 -2
- package/dist/cli/{index-77ef8gye.js → index-gey2257h.js} +1 -1
- package/dist/cli/{index-pa86tpgt.js → index-gf03198s.js} +1 -1
- package/dist/cli/{index-v64kjqvg.js → index-kxzgnz2h.js} +17 -17
- package/dist/cli/{index-6q3agdmr.js → index-mpf01swm.js} +1 -1
- package/dist/cli/{index-mkks7jwg.js → index-mrkgxfeh.js} +3 -3
- package/dist/cli/{index-7g276m9m.js → index-neh8azwc.js} +2 -2
- package/dist/cli/{index-qfawexc8.js → index-qpke2x5h.js} +6 -6
- package/dist/cli/{index-ffdwj1an.js → index-rtkttser.js} +1 -1
- package/dist/cli/{index-b3xret0a.js → index-sfemjcb8.js} +5 -5
- package/dist/cli/{index-k6pdsct6.js → index-tm0bezd9.js} +1 -1
- package/dist/cli/{index-0jr9zn34.js → index-tw8ck794.js} +1 -1
- package/dist/cli/{index-hfzcztv6.js → index-xz4x17z0.js} +32 -32
- package/dist/cli/{index-2dnqazyr.js → index-ymyke19q.js} +1 -1
- package/dist/cli/{index-b30x236n.js → index-z9yhhk6q.js} +96 -8
- package/dist/cli/{index-6hqhyb0f.js → index-zpp507z0.js} +18 -4
- package/dist/cli/index.js +30 -30
- package/dist/cli/{knowledge-escalator-w1mbaktt.js → knowledge-escalator-s6acdpwj.js} +13 -13
- package/dist/cli/{knowledge-events-a0dj6gy6.js → knowledge-events-jprkz49t.js} +11 -11
- package/dist/cli/{knowledge-link-mzdjvjsd.js → knowledge-link-zvtmj756.js} +4 -4
- package/dist/cli/{knowledge-store-8kk3rghx.js → knowledge-store-mc4awds4.js} +5 -5
- package/dist/cli/{knowledge-validator-91ym56e0.js → knowledge-validator-pe4ncrvj.js} +7 -7
- package/dist/cli/model-preflight-77dwxfv5.js +170 -0
- package/dist/cli/{pending-delegations-6vsrmw5w.js → pending-delegations-epzht3d7.js} +3 -3
- package/dist/cli/{pr-subscriptions-zc3skxde.js → pr-subscriptions-2ahy8g87.js} +3 -3
- package/dist/cli/{runner-jj32v8bk.js → runner-ra9pjhp2.js} +5 -5
- package/dist/cli/{scan-cursor-12jxwd14.js → scan-cursor-hdzhqwzj.js} +6 -6
- package/dist/cli/{schema-nq9tcz87.js → schema-pg85z06v.js} +1 -1
- package/dist/cli/{scope-persistence-dv6z7n08.js → scope-persistence-v8we8ja7.js} +9 -6
- package/dist/cli/{skill-generator-drscnzq9.js → skill-generator-ctskfct2.js} +15 -15
- package/dist/cli/{telemetry-z54dgdrh.js → telemetry-c21dgffc.js} +1 -1
- package/dist/cli/{workspace-snapshot-q21mgbsh.js → workspace-snapshot-kznz5e13.js} +4 -2
- package/dist/cli/{worktree-collision-ownership-rfyyjjct.js → worktree-collision-ownership-f7se4wbf.js} +8 -8
- package/dist/cli/{worktree-isolation-4tehtym5.js → worktree-isolation-j4qb7mgb.js} +32 -30
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +4 -0
- package/dist/index.js +307 -293
- package/dist/observability/catalog.d.ts +2 -2
- package/dist/scope/scope-binding.d.ts +16 -0
- package/dist/services/model-preflight.d.ts +151 -0
- package/dist/services/session-reflection.d.ts +24 -0
- package/dist/telemetry.d.ts +12 -1
- package/dist/tools/placeholder-scan.d.ts +64 -0
- package/dist/tools/sast-scan.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cli/{curator-drift-yn5d0mvq.js → curator-drift-r50x1rac.js} +1 -1
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qpke2x5h.js";
|
|
10
10
|
import {
|
|
11
11
|
queryHistoricalOutcomes,
|
|
12
12
|
readKnowledgeEvents,
|
|
13
13
|
recordKnowledgeEvent
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ff66fbjt.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-pe4ncrvj.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-pg85z06v.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-b7ntt9cw.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-19v4tccw.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-tm0bezd9.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -85,51 +85,48 @@ import {
|
|
|
85
85
|
handleWriteRetroCommand,
|
|
86
86
|
normalizeSwarmCommandInput,
|
|
87
87
|
resolveCommand
|
|
88
|
-
} from "./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
88
|
+
} from "./index-bst6epnr.js";
|
|
89
|
+
import"./index-34tawmyx.js";
|
|
90
|
+
import"./index-ymyke19q.js";
|
|
91
|
+
import"./index-tw8ck794.js";
|
|
92
|
+
import"./index-kxzgnz2h.js";
|
|
93
|
+
import"./index-fwnhh6s7.js";
|
|
92
94
|
import"./index-134d35c1.js";
|
|
93
95
|
import"./index-abtrcs16.js";
|
|
94
|
-
import"./index-wk54ey3h.js";
|
|
95
|
-
import"./index-jy9bwa9k.js";
|
|
96
96
|
import"./index-y8552snf.js";
|
|
97
|
-
import"./index-
|
|
97
|
+
import"./index-sfemjcb8.js";
|
|
98
|
+
import"./index-evpgszmp.js";
|
|
98
99
|
import"./index-70ha9e09.js";
|
|
99
100
|
import"./index-c8s9a3zh.js";
|
|
100
101
|
import"./index-9ss2m4rs.js";
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-fp464as8.js";
|
|
102
|
+
import"./index-z9yhhk6q.js";
|
|
103
|
+
import"./index-gey2257h.js";
|
|
104
|
+
import"./index-mrkgxfeh.js";
|
|
105
|
+
import"./index-8ef23wex.js";
|
|
106
|
+
import"./index-2qrd8mfa.js";
|
|
107
107
|
import"./index-rtry5xyf.js";
|
|
108
108
|
import"./index-zsrtt42s.js";
|
|
109
|
-
import"./index-
|
|
109
|
+
import"./index-rtkttser.js";
|
|
110
110
|
import"./index-e1pxav9g.js";
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
111
|
+
import"./index-41t3hgaa.js";
|
|
112
|
+
import"./index-zpp507z0.js";
|
|
113
|
+
import"./index-90w06fqr.js";
|
|
114
|
+
import"./index-cqfp05jb.js";
|
|
115
115
|
import"./index-556ja8an.js";
|
|
116
116
|
import"./index-7sy3aa9m.js";
|
|
117
117
|
import"./index-wx8zdh4a.js";
|
|
118
118
|
import"./index-3g0xk6tk.js";
|
|
119
119
|
import"./index-85gkedsf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-qpke2x5h.js";
|
|
121
|
+
import"./index-ff66fbjt.js";
|
|
122
|
+
import"./index-neh8azwc.js";
|
|
123
123
|
import"./index-gprxjmm7.js";
|
|
124
124
|
import"./index-n832052r.js";
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-z6xqpmqg.js";
|
|
127
|
-
import"./index-zj6t9zgx.js";
|
|
128
|
-
import"./index-0pcq32y2.js";
|
|
125
|
+
import"./index-17e73wac.js";
|
|
129
126
|
import {
|
|
130
127
|
init_schema,
|
|
131
128
|
stripKnownSwarmPrefix
|
|
132
|
-
} from "./index-
|
|
129
|
+
} from "./index-7axx11dt.js";
|
|
133
130
|
import {
|
|
134
131
|
AGENT_TOOL_MAP,
|
|
135
132
|
ORCHESTRATOR_NAME,
|
|
@@ -137,14 +134,17 @@ import {
|
|
|
137
134
|
} from "./index-v3y3qg48.js";
|
|
138
135
|
import"./index-9e6fdz2h.js";
|
|
139
136
|
import"./index-4rhhvd1a.js";
|
|
137
|
+
import"./index-w8pgjr75.js";
|
|
138
|
+
import"./index-z6xqpmqg.js";
|
|
139
|
+
import"./index-zj6t9zgx.js";
|
|
140
140
|
import"./index-zjygnfay.js";
|
|
141
141
|
import"./index-ae75rja9.js";
|
|
142
|
-
import"./index-
|
|
143
|
-
import"./index-
|
|
142
|
+
import"./index-dzan8czb.js";
|
|
143
|
+
import"./index-mpf01swm.js";
|
|
144
144
|
import"./index-bk5tah7q.js";
|
|
145
145
|
import"./index-4evasm2b.js";
|
|
146
|
-
import"./index-
|
|
147
|
-
import"./index-
|
|
146
|
+
import"./index-gf03198s.js";
|
|
147
|
+
import"./index-dppzthm9.js";
|
|
148
148
|
import"./index-7g4c7s5r.js";
|
|
149
149
|
import"./index-bpmtbmy9.js";
|
|
150
150
|
import"./index-ed5ykebp.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
bunSpawn
|
|
4
|
-
} from "./index-zj6t9zgx.js";
|
|
5
2
|
import {
|
|
6
3
|
init_git_executable,
|
|
7
4
|
resolveGitExecutable
|
|
8
5
|
} from "./index-9e6fdz2h.js";
|
|
6
|
+
import {
|
|
7
|
+
bunSpawn
|
|
8
|
+
} from "./index-zj6t9zgx.js";
|
|
9
9
|
|
|
10
10
|
// src/background/workspace-snapshot.ts
|
|
11
11
|
import * as child_process from "child_process";
|
|
@@ -870,6 +870,90 @@ function parsePorcelainPaths(output) {
|
|
|
870
870
|
}
|
|
871
871
|
return [...new Set(paths)];
|
|
872
872
|
}
|
|
873
|
+
var SWARM_VISIBLE_CODE_EXTENSIONS = new Set([
|
|
874
|
+
".js",
|
|
875
|
+
".jsx",
|
|
876
|
+
".mjs",
|
|
877
|
+
".cjs",
|
|
878
|
+
".ts",
|
|
879
|
+
".tsx",
|
|
880
|
+
".py",
|
|
881
|
+
".pyw",
|
|
882
|
+
".go",
|
|
883
|
+
".rs",
|
|
884
|
+
".php",
|
|
885
|
+
".pl",
|
|
886
|
+
".java",
|
|
887
|
+
".kt",
|
|
888
|
+
".swift",
|
|
889
|
+
".scala",
|
|
890
|
+
".c",
|
|
891
|
+
".h",
|
|
892
|
+
".cpp",
|
|
893
|
+
".cs",
|
|
894
|
+
".rb",
|
|
895
|
+
".lua",
|
|
896
|
+
".r",
|
|
897
|
+
".sh",
|
|
898
|
+
".bash",
|
|
899
|
+
".zsh",
|
|
900
|
+
".ps1",
|
|
901
|
+
".psm1",
|
|
902
|
+
".bat",
|
|
903
|
+
".cmd",
|
|
904
|
+
".vb",
|
|
905
|
+
".fs"
|
|
906
|
+
]);
|
|
907
|
+
function isSwarmRuntimePath(p) {
|
|
908
|
+
if (p === ".swarm")
|
|
909
|
+
return true;
|
|
910
|
+
if (!p.startsWith(".swarm/"))
|
|
911
|
+
return false;
|
|
912
|
+
const dot = p.lastIndexOf(".");
|
|
913
|
+
const extension = dot === -1 ? "" : p.slice(dot).toLowerCase();
|
|
914
|
+
return !SWARM_VISIBLE_CODE_EXTENSIONS.has(extension);
|
|
915
|
+
}
|
|
916
|
+
function filterSwarmRuntimePorcelain(output) {
|
|
917
|
+
const records = output.split("\x00");
|
|
918
|
+
const kept = [];
|
|
919
|
+
for (let index = 0;index < records.length; index++) {
|
|
920
|
+
const record = records[index];
|
|
921
|
+
if (!record) {
|
|
922
|
+
continue;
|
|
923
|
+
}
|
|
924
|
+
if (record.startsWith("# ")) {
|
|
925
|
+
kept.push(record);
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
let primaryPath = null;
|
|
929
|
+
if (record.startsWith("? ")) {
|
|
930
|
+
primaryPath = record.slice(2);
|
|
931
|
+
} else if (record.startsWith("1 ")) {
|
|
932
|
+
primaryPath = porcelainV2PathAfterFields(record, 8);
|
|
933
|
+
} else if (record.startsWith("2 ")) {
|
|
934
|
+
primaryPath = porcelainV2PathAfterFields(record, 9);
|
|
935
|
+
} else if (record.startsWith("u ")) {
|
|
936
|
+
primaryPath = porcelainV2PathAfterFields(record, 10);
|
|
937
|
+
}
|
|
938
|
+
if (primaryPath !== null && isSwarmRuntimePath(primaryPath)) {
|
|
939
|
+
if (record.startsWith("2 ")) {
|
|
940
|
+
index += 1;
|
|
941
|
+
}
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
if (record.startsWith("2 ") && primaryPath !== null) {
|
|
945
|
+
const originalRecord = records[index + 1];
|
|
946
|
+
kept.push(record);
|
|
947
|
+
if (typeof originalRecord === "string" && originalRecord !== "" && isSwarmRuntimePath(originalRecord)) {
|
|
948
|
+
kept.push(primaryPath);
|
|
949
|
+
index += 1;
|
|
950
|
+
}
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
kept.push(record);
|
|
954
|
+
}
|
|
955
|
+
return kept.join("\x00");
|
|
956
|
+
}
|
|
873
957
|
function parsePorcelainV2Snapshot(output) {
|
|
874
958
|
const records = output.split("\x00");
|
|
875
959
|
const headers = [];
|
|
@@ -967,13 +1051,14 @@ function captureWorkspaceSnapshot(directory, optionsOrScope = null, prHeadShaArg
|
|
|
967
1051
|
})();
|
|
968
1052
|
const resolveCurrentPrHeadSha = typeof optionsOrScope === "object" && optionsOrScope !== null && optionsOrScope.resolveCurrentPrHeadSha === true;
|
|
969
1053
|
const upstreamBefore = resolveCurrentPrHeadSha ? runGit(directory, ["rev-parse", "@{upstream}"]) : null;
|
|
970
|
-
const
|
|
1054
|
+
const porcelainRaw = runGit(directory, [
|
|
971
1055
|
"status",
|
|
972
1056
|
"--porcelain=v2",
|
|
973
1057
|
"--branch",
|
|
974
1058
|
"-z",
|
|
975
1059
|
"--untracked-files=all"
|
|
976
1060
|
]);
|
|
1061
|
+
const porcelain = porcelainRaw === null ? null : filterSwarmRuntimePorcelain(porcelainRaw);
|
|
977
1062
|
const snapshot = porcelain === null ? null : parsePorcelainV2Snapshot(porcelain);
|
|
978
1063
|
const upstreamAfter = resolveCurrentPrHeadSha ? runGit(directory, ["rev-parse", "@{upstream}"]) : null;
|
|
979
1064
|
const prHeadSha = resolveCurrentPrHeadSha ? upstreamBefore && upstreamBefore === upstreamAfter ? upstreamBefore : null : configuredPrHeadSha;
|
|
@@ -994,7 +1079,8 @@ function captureWorkspaceSnapshot(directory, optionsOrScope = null, prHeadShaArg
|
|
|
994
1079
|
function changedFilesSinceSnapshot(directory, baseline) {
|
|
995
1080
|
if (!baseline?.gitHead || baseline.changedFiles == null)
|
|
996
1081
|
return null;
|
|
997
|
-
|
|
1082
|
+
const baselineDirt = baseline.changedFiles.filter((p) => !isSwarmRuntimePath(p));
|
|
1083
|
+
if (baselineDirt.length > 0)
|
|
998
1084
|
return null;
|
|
999
1085
|
const current = captureWorkspaceSnapshot(directory);
|
|
1000
1086
|
if (!current.gitHead || current.changedFiles == null)
|
|
@@ -1010,8 +1096,10 @@ function changedFilesSinceSnapshot(directory, baseline) {
|
|
|
1010
1096
|
]);
|
|
1011
1097
|
if (committed === null)
|
|
1012
1098
|
return null;
|
|
1013
|
-
for (const changedPath of parseNulPaths(committed))
|
|
1014
|
-
|
|
1099
|
+
for (const changedPath of parseNulPaths(committed)) {
|
|
1100
|
+
if (!isSwarmRuntimePath(changedPath))
|
|
1101
|
+
changed.add(changedPath);
|
|
1102
|
+
}
|
|
1015
1103
|
}
|
|
1016
1104
|
return [...changed];
|
|
1017
1105
|
}
|
|
@@ -1062,4 +1150,4 @@ var _internals = {
|
|
|
1062
1150
|
readChangedFileSync: (filePath) => fs.readFileSync(filePath)
|
|
1063
1151
|
};
|
|
1064
1152
|
|
|
1065
|
-
export { readGitTextAtRevision, resolveCurrentGitHead, resolveCurrentGitHeadAsync, resolveExactMergeBase, resolveExactMergeBaseAsync, resolvePrReviewDiffStats, resolvePrReviewDiffStatsAsync, resolveCurrentUpstreamRemoteRef, resolveCurrentUpstreamPushTarget, resolveCurrentUpstreamPushTargetAsync, resolveExactRemoteBranchHead, resolveExactRemoteBranchHeadAsync, resolveGitControlStateDigest, resolveGitControlStateDigestAsync, resolveIsWorkingTreeClean, resolveIsWorkingTreeCleanAsync, resolveCommitCountSince, resolveCommitCountSinceAsync, resolveIsExactSingleChildCommit, resolveIsExactSingleChildCommitAsync, resolveRemoteRefsContainingHead, resolveRemoteRefsContainingHeadAsync, resolvePrFeedbackTrackingCandidatesAsync, switchPrFeedbackTrackingCandidateAsync, resolvePrWorkflowRevisionDigestDetailed, resolvePrWorkflowRevisionDigest, resolvePrWorkflowRevisionDigestDetailedAsync, resolvePrWorkflowRevisionDigestAsync, parsePorcelainPaths, parsePorcelainV2Snapshot, captureWorkspaceSnapshot, changedFilesSinceSnapshot, workspaceSnapshotMatches, compareWorkspaceSnapshot, compareWorkspaceSnapshots, digest, _internals };
|
|
1153
|
+
export { readGitTextAtRevision, resolveCurrentGitHead, resolveCurrentGitHeadAsync, resolveExactMergeBase, resolveExactMergeBaseAsync, resolvePrReviewDiffStats, resolvePrReviewDiffStatsAsync, resolveCurrentUpstreamRemoteRef, resolveCurrentUpstreamPushTarget, resolveCurrentUpstreamPushTargetAsync, resolveExactRemoteBranchHead, resolveExactRemoteBranchHeadAsync, resolveGitControlStateDigest, resolveGitControlStateDigestAsync, resolveIsWorkingTreeClean, resolveIsWorkingTreeCleanAsync, resolveCommitCountSince, resolveCommitCountSinceAsync, resolveIsExactSingleChildCommit, resolveIsExactSingleChildCommitAsync, resolveRemoteRefsContainingHead, resolveRemoteRefsContainingHeadAsync, resolvePrFeedbackTrackingCandidatesAsync, switchPrFeedbackTrackingCandidateAsync, resolvePrWorkflowRevisionDigestDetailed, resolvePrWorkflowRevisionDigest, resolvePrWorkflowRevisionDigestDetailedAsync, resolvePrWorkflowRevisionDigestAsync, parsePorcelainPaths, isSwarmRuntimePath, parsePorcelainV2Snapshot, captureWorkspaceSnapshot, changedFilesSinceSnapshot, workspaceSnapshotMatches, compareWorkspaceSnapshot, compareWorkspaceSnapshots, digest, _internals };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
bunSpawn
|
|
4
|
-
} from "./index-zj6t9zgx.js";
|
|
5
2
|
import {
|
|
6
3
|
SWARM_WORKTREE_DIR_NAME,
|
|
7
4
|
init_constants
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
advisoryWarn,
|
|
15
12
|
init_warning_buffer
|
|
16
13
|
} from "./index-4rhhvd1a.js";
|
|
14
|
+
import {
|
|
15
|
+
bunSpawn
|
|
16
|
+
} from "./index-zj6t9zgx.js";
|
|
17
17
|
import {
|
|
18
18
|
log
|
|
19
19
|
} from "./index-zgwm4ryv.js";
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-v8we8ja7.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -139,6 +139,7 @@ async function removeLaneProfileFromDiskReal(worktreePath, laneIndex) {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
var WORKTREE_TIMEOUT_MS = 30000;
|
|
142
|
+
var WORKTREE_VERIFICATION_TIMEOUT_MS = 5000;
|
|
142
143
|
var WIN_PATH_BUDGET = 250;
|
|
143
144
|
var GIT_SPAWN_FAILURE_EXIT_CODE = 1;
|
|
144
145
|
async function runGit(args, cwd, timeoutMs = WORKTREE_TIMEOUT_MS) {
|
|
@@ -399,6 +400,19 @@ async function provisionWorktree(directory, id, sessionId, options) {
|
|
|
399
400
|
error: `Failed to create worktree: ${addResult.stderr.trim() || addResult.stdout.trim()}`
|
|
400
401
|
};
|
|
401
402
|
}
|
|
403
|
+
const revParseResult = await runGit(["rev-parse", "--git-dir"], worktreePath, WORKTREE_VERIFICATION_TIMEOUT_MS);
|
|
404
|
+
if (revParseResult.exitCode !== 0) {
|
|
405
|
+
const removeResult = await removeWorktree(worktreePath, directory, {
|
|
406
|
+
force: true,
|
|
407
|
+
worktreeDir: options.worktreeDir
|
|
408
|
+
}).catch((removalError) => ({
|
|
409
|
+
error: removalError instanceof Error ? removalError.message : String(removalError)
|
|
410
|
+
}));
|
|
411
|
+
const removalNote = "error" in removeResult ? `The lane could NOT be removed (${removeResult.error}) \u2014 it may collide with the next provisioning attempt; clear ${worktreePath} manually if retries fail.` : "The lane was removed; retry the dispatch.";
|
|
412
|
+
return {
|
|
413
|
+
error: `WORKTREE_VERIFICATION_FAILED: lane ${worktreePath} did not register as a usable git worktree (git rev-parse --git-dir failed in the lane: ${revParseResult.stderr.trim() || revParseResult.stdout.trim() || `exit ${revParseResult.exitCode}`}). ${removalNote}`
|
|
414
|
+
};
|
|
415
|
+
}
|
|
402
416
|
const strategy = options.depsStrategy ?? "skip";
|
|
403
417
|
if (strategy !== "skip") {
|
|
404
418
|
const hostDepDir = path.join(directory, "node_modules");
|
package/dist/cli/index.js
CHANGED
|
@@ -11,65 +11,65 @@ import {
|
|
|
11
11
|
readCachePackageVersion,
|
|
12
12
|
resolveCommand,
|
|
13
13
|
safeRealpathSync
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
} from "./index-bst6epnr.js";
|
|
15
|
+
import"./index-34tawmyx.js";
|
|
16
|
+
import"./index-ymyke19q.js";
|
|
17
|
+
import"./index-tw8ck794.js";
|
|
18
|
+
import"./index-kxzgnz2h.js";
|
|
19
|
+
import"./index-fwnhh6s7.js";
|
|
18
20
|
import"./index-134d35c1.js";
|
|
19
21
|
import"./index-abtrcs16.js";
|
|
20
|
-
import"./index-wk54ey3h.js";
|
|
21
|
-
import"./index-jy9bwa9k.js";
|
|
22
22
|
import"./index-y8552snf.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-sfemjcb8.js";
|
|
24
|
+
import"./index-evpgszmp.js";
|
|
24
25
|
import"./index-70ha9e09.js";
|
|
25
26
|
import"./index-c8s9a3zh.js";
|
|
26
27
|
import"./index-9ss2m4rs.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-fp464as8.js";
|
|
28
|
+
import"./index-z9yhhk6q.js";
|
|
29
|
+
import"./index-gey2257h.js";
|
|
30
|
+
import"./index-mrkgxfeh.js";
|
|
31
|
+
import"./index-8ef23wex.js";
|
|
32
|
+
import"./index-2qrd8mfa.js";
|
|
33
33
|
import"./index-rtry5xyf.js";
|
|
34
34
|
import"./index-zsrtt42s.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-rtkttser.js";
|
|
36
36
|
import"./index-e1pxav9g.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
37
|
+
import"./index-41t3hgaa.js";
|
|
38
|
+
import"./index-zpp507z0.js";
|
|
39
|
+
import"./index-90w06fqr.js";
|
|
40
|
+
import"./index-cqfp05jb.js";
|
|
41
41
|
import"./index-556ja8an.js";
|
|
42
42
|
import"./index-7sy3aa9m.js";
|
|
43
43
|
import"./index-wx8zdh4a.js";
|
|
44
44
|
import"./index-3g0xk6tk.js";
|
|
45
45
|
import"./index-85gkedsf.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-qpke2x5h.js";
|
|
47
|
+
import"./index-ff66fbjt.js";
|
|
48
|
+
import"./index-neh8azwc.js";
|
|
49
49
|
import"./index-gprxjmm7.js";
|
|
50
50
|
import"./index-n832052r.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-z6xqpmqg.js";
|
|
53
|
-
import"./index-zj6t9zgx.js";
|
|
54
|
-
import"./index-0pcq32y2.js";
|
|
51
|
+
import"./index-17e73wac.js";
|
|
55
52
|
import {
|
|
56
53
|
init_package,
|
|
57
54
|
package_default
|
|
58
|
-
} from "./index-
|
|
55
|
+
} from "./index-7axx11dt.js";
|
|
59
56
|
import {
|
|
60
57
|
DEFAULT_AGENT_CONFIGS,
|
|
61
58
|
init_constants
|
|
62
59
|
} from "./index-v3y3qg48.js";
|
|
63
60
|
import"./index-9e6fdz2h.js";
|
|
64
61
|
import"./index-4rhhvd1a.js";
|
|
62
|
+
import"./index-w8pgjr75.js";
|
|
63
|
+
import"./index-z6xqpmqg.js";
|
|
64
|
+
import"./index-zj6t9zgx.js";
|
|
65
65
|
import"./index-zjygnfay.js";
|
|
66
66
|
import"./index-ae75rja9.js";
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
67
|
+
import"./index-dzan8czb.js";
|
|
68
|
+
import"./index-mpf01swm.js";
|
|
69
69
|
import"./index-bk5tah7q.js";
|
|
70
70
|
import"./index-4evasm2b.js";
|
|
71
|
-
import"./index-
|
|
72
|
-
import"./index-
|
|
71
|
+
import"./index-gf03198s.js";
|
|
72
|
+
import"./index-dppzthm9.js";
|
|
73
73
|
import"./index-7g4c7s5r.js";
|
|
74
74
|
import"./index-bpmtbmy9.js";
|
|
75
75
|
import"./index-ed5ykebp.js";
|
|
@@ -9,28 +9,28 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-sfemjcb8.js";
|
|
13
|
+
import"./index-qpke2x5h.js";
|
|
14
|
+
import"./index-ff66fbjt.js";
|
|
15
|
+
import"./index-neh8azwc.js";
|
|
16
16
|
import"./index-gprxjmm7.js";
|
|
17
17
|
import"./index-n832052r.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-zj6t9zgx.js";
|
|
21
|
-
import"./index-0pcq32y2.js";
|
|
22
|
-
import"./index-zfhe7vbb.js";
|
|
18
|
+
import"./index-17e73wac.js";
|
|
19
|
+
import"./index-7axx11dt.js";
|
|
23
20
|
import"./index-v3y3qg48.js";
|
|
24
21
|
import"./index-9e6fdz2h.js";
|
|
25
22
|
import"./index-4rhhvd1a.js";
|
|
23
|
+
import"./index-w8pgjr75.js";
|
|
24
|
+
import"./index-z6xqpmqg.js";
|
|
25
|
+
import"./index-zj6t9zgx.js";
|
|
26
26
|
import"./index-zjygnfay.js";
|
|
27
27
|
import"./index-ae75rja9.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-dzan8czb.js";
|
|
29
|
+
import"./index-mpf01swm.js";
|
|
30
30
|
import"./index-bk5tah7q.js";
|
|
31
31
|
import"./index-4evasm2b.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-gf03198s.js";
|
|
33
|
+
import"./index-dppzthm9.js";
|
|
34
34
|
import"./index-7g4c7s5r.js";
|
|
35
35
|
import"./index-bpmtbmy9.js";
|
|
36
36
|
import"./index-ed5ykebp.js";
|
|
@@ -29,26 +29,26 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-ff66fbjt.js";
|
|
33
|
+
import"./index-neh8azwc.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-zj6t9zgx.js";
|
|
39
|
-
import"./index-0pcq32y2.js";
|
|
40
|
-
import"./index-zfhe7vbb.js";
|
|
36
|
+
import"./index-17e73wac.js";
|
|
37
|
+
import"./index-7axx11dt.js";
|
|
41
38
|
import"./index-v3y3qg48.js";
|
|
42
39
|
import"./index-9e6fdz2h.js";
|
|
43
40
|
import"./index-4rhhvd1a.js";
|
|
41
|
+
import"./index-w8pgjr75.js";
|
|
42
|
+
import"./index-z6xqpmqg.js";
|
|
43
|
+
import"./index-zj6t9zgx.js";
|
|
44
44
|
import"./index-zjygnfay.js";
|
|
45
45
|
import"./index-ae75rja9.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-dzan8czb.js";
|
|
47
|
+
import"./index-mpf01swm.js";
|
|
48
48
|
import"./index-bk5tah7q.js";
|
|
49
49
|
import"./index-4evasm2b.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
50
|
+
import"./index-gf03198s.js";
|
|
51
|
+
import"./index-dppzthm9.js";
|
|
52
52
|
import"./index-7g4c7s5r.js";
|
|
53
53
|
import"./index-bpmtbmy9.js";
|
|
54
54
|
import"./index-ed5ykebp.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-dzan8czb.js";
|
|
16
|
+
import"./index-mpf01swm.js";
|
|
17
17
|
import"./index-4evasm2b.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-gf03198s.js";
|
|
19
|
+
import"./index-dppzthm9.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
21
|
import"./index-bpmtbmy9.js";
|
|
22
22
|
import"./index-ed5ykebp.js";
|
|
@@ -41,16 +41,16 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-qpke2x5h.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-dzan8czb.js";
|
|
49
|
+
import"./index-mpf01swm.js";
|
|
50
50
|
import"./index-bk5tah7q.js";
|
|
51
51
|
import"./index-4evasm2b.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-gf03198s.js";
|
|
53
|
+
import"./index-dppzthm9.js";
|
|
54
54
|
import"./index-7g4c7s5r.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
56
|
import"./index-ed5ykebp.js";
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-8ef23wex.js";
|
|
27
|
+
import"./index-2qrd8mfa.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-qpke2x5h.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-dzan8czb.js";
|
|
32
|
+
import"./index-mpf01swm.js";
|
|
33
33
|
import"./index-bk5tah7q.js";
|
|
34
34
|
import"./index-4evasm2b.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-gf03198s.js";
|
|
36
|
+
import"./index-dppzthm9.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
38
|
import"./index-bpmtbmy9.js";
|
|
39
39
|
import"./index-ed5ykebp.js";
|