opencode-swarm 7.184.10 → 7.184.12
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 +26 -24
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/delegation-lifecycle.d.ts +6 -2
- package/dist/background/pending-delegations.d.ts +23 -1
- package/dist/cli/auto-checkpoint-7y3x5cv2.js +183 -0
- package/dist/cli/checkpoint-j39f718z.js +51 -0
- package/dist/cli/{coder-settlement-b47vmcm9.js → coder-settlement-12ytzqvs.js} +13 -11
- package/dist/cli/{config-doctor-3j3m2ccc.js → config-doctor-vphp4shw.js} +2 -2
- package/dist/cli/{core-td5kj2w8.js → core-5a1awn37.js} +3 -3
- package/dist/cli/{curation-policy-xe77n9zj.js → curation-policy-1rzheh1x.js} +6 -5
- package/dist/cli/{curator-drift-wxyhgz7y.js → curator-drift-ex0qxt9p.js} +9 -9
- package/dist/cli/curator-llm-factory-ktkat73z.js +81 -0
- package/dist/cli/{curator-c7we2apv.js → curator-x2hxjdac.js} +48 -42
- package/dist/cli/{dispatch-cv89p2y1.js → dispatch-0ejzwb45.js} +2 -1
- package/dist/cli/{evidence-summary-service-2t1ttdgj.js → evidence-summary-service-pfksvp16.js} +24 -19
- package/dist/cli/{gate-evidence-5w2q1h5w.js → gate-evidence-8n8kb8tb.js} +8 -6
- package/dist/cli/guardrail-explain-px94swcz.js +82 -0
- package/dist/cli/{guardrail-log-5zwqdhaf.js → guardrail-log-xevw9xht.js} +7 -7
- package/dist/cli/{guardrail-reset-qnq1swzf.js → guardrail-reset-18wvqbga.js} +48 -42
- package/dist/cli/hive-promoter-5r35f3ap.js +96 -0
- package/dist/cli/{index-260174fq.js → index-27wzbb3n.js} +4 -4
- package/dist/cli/{index-b6saxkqj.js → index-2cbt4b7t.js} +2 -2
- package/dist/cli/{index-tzyppdv7.js → index-2p1an48j.js} +3 -3
- package/dist/cli/index-2y9b45jj.js +24 -0
- package/dist/cli/index-34ysgky0.js +954 -0
- package/dist/cli/{index-1g2bm6ht.js → index-39ng38sp.js} +1 -1
- package/dist/cli/{index-hk0eh9qb.js → index-4g4sr4ah.js} +1 -1
- package/dist/cli/{index-cjh92zm9.js → index-53fy0aq2.js} +52 -46
- package/dist/cli/{index-7849gy4s.js → index-5w404j07.js} +8 -6
- package/dist/cli/index-5y1qxw0x.js +963 -0
- package/dist/cli/{index-35cdceqf.js → index-6cjpmvpa.js} +2 -20
- package/dist/cli/{index-yyvkeev1.js → index-74e43s33.js} +4 -4
- package/dist/cli/index-7bxssqaf.js +2676 -0
- package/dist/cli/index-7pmbnjvj.js +11 -0
- package/dist/cli/{index-j4efx148.js → index-7r3pkgma.js} +5 -5
- package/dist/cli/{index-kg2mb1m5.js → index-7rzgdcvc.js} +2 -2
- package/dist/cli/{index-hamqvzqn.js → index-9nyqt3kb.js} +10 -2682
- package/dist/cli/{index-hs26e3k6.js → index-a53f5t61.js} +2 -2
- package/dist/cli/{index-ta2kp4xy.js → index-azyhws0s.js} +9 -9
- package/dist/cli/{index-0mj7hc2z.js → index-bntwj2tp.js} +5 -5
- package/dist/cli/{index-aae38s4x.js → index-cftva3pa.js} +2 -11
- package/dist/cli/{index-8n2dh26k.js → index-cvam011t.js} +1 -1
- package/dist/cli/{index-3rfc2v1d.js → index-d42kjvwy.js} +2 -2
- package/dist/cli/{index-gnryhmak.js → index-dftztz4y.js} +1 -1
- package/dist/cli/{index-45h58v8d.js → index-dze05t9h.js} +7 -7
- package/dist/cli/{index-54f1payv.js → index-eqfmabtd.js} +2 -2
- package/dist/cli/{index-4szb7qpv.js → index-fbp7dqfe.js} +10 -38
- package/dist/cli/{index-0ajyhjht.js → index-fxf3zhtq.js} +1 -1
- package/dist/cli/index-g4fs6z4e.js +37 -0
- package/dist/cli/{index-bt1k1ek3.js → index-hfs97j0c.js} +1 -1
- package/dist/cli/{index-nh5fxxc9.js → index-jtg0zsnx.js} +4 -2
- package/dist/cli/{index-9jz73x8x.js → index-kcbkce43.js} +48 -42
- package/dist/cli/{index-07fqfseh.js → index-m1pqenq9.js} +2 -2
- package/dist/cli/{index-be5h97z8.js → index-mfqge140.js} +1 -1
- package/dist/cli/{index-3wgvpxmv.js → index-n572fdtf.js} +2969 -3838
- package/dist/cli/{index-5m1b70z3.js → index-pwcbtbhd.js} +4 -4
- package/dist/cli/{index-95vytkv6.js → index-rbvndg2d.js} +3 -3
- package/dist/cli/{index-thcyqqdq.js → index-ryafwy2b.js} +1 -1
- package/dist/cli/{index-0d7e94zg.js → index-s7rap90y.js} +7 -7
- package/dist/cli/{index-q7q00ppx.js → index-tyzmjw2s.js} +7 -7
- package/dist/cli/{index-bhj3zx43.js → index-vk49btd6.js} +1 -1
- package/dist/cli/{index-fn1y9jpv.js → index-w33zgxn6.js} +3 -3
- package/dist/cli/{index-x1gyqgze.js → index-w6w6ny06.js} +2 -2
- package/dist/cli/{index-f336fv53.js → index-x0jybm74.js} +3 -3
- package/dist/cli/{index-pj877ads.js → index-ymhs7hng.js} +5 -5
- package/dist/cli/{index-19e61hgv.js → index-yvmvsej2.js} +55 -971
- package/dist/cli/{index-x119gdak.js → index-yx5z4200.js} +2 -2
- package/dist/cli/{index-dqpq8m9w.js → index-yydv4jfy.js} +2 -2
- package/dist/cli/{index-fxtgxe04.js → index-zmtpnyff.js} +8 -8
- package/dist/cli/{index-djnxehe7.js → index-zzebc1td.js} +44 -16
- package/dist/cli/index.js +49 -43
- package/dist/cli/{knowledge-escalator-912nwxb4.js → knowledge-escalator-z5qb6y6s.js} +13 -12
- package/dist/cli/{knowledge-events-hvzj872f.js → knowledge-events-gv173j4d.js} +11 -10
- package/dist/cli/{knowledge-link-8tetyje0.js → knowledge-link-vvyfhhmr.js} +5 -4
- package/dist/cli/{knowledge-store-sqx0axb6.js → knowledge-store-g4sjhep5.js} +6 -5
- package/dist/cli/{knowledge-validator-d8m7p2vg.js → knowledge-validator-8whkrsrb.js} +8 -7
- package/dist/cli/{mcp-nxxy0dq0.js → mcp-x25b3q1g.js} +1 -1
- package/dist/cli/{model-preflight-2mmep72y.js → model-preflight-b21njmda.js} +48 -42
- package/dist/cli/{pending-delegations-fat9r7w1.js → pending-delegations-f6rmrqzn.js} +16 -12
- package/dist/cli/{pr-subscriptions-8xv7gaeb.js → pr-subscriptions-nmbme4kp.js} +14 -12
- package/dist/cli/{pr-workflow-gate-g9exsspv.js → pr-workflow-gate-mtzfsmkg.js} +48 -42
- package/dist/cli/{runner-ff0bj9w0.js → runner-cwmgb9rw.js} +6 -5
- package/dist/cli/{scan-cursor-h9tza4z6.js → scan-cursor-gmpjsr3a.js} +7 -6
- package/dist/cli/{schema-1p9cw863.js → schema-rvxnxp4n.js} +1 -1
- package/dist/cli/{scope-persistence-xv6b7daq.js → scope-persistence-fqenprq7.js} +17 -15
- package/dist/cli/{server-z5401cje.js → server-ws1my2dz.js} +62 -54
- package/dist/cli/{skill-generator-72n07p92.js → skill-generator-pt1epeer.js} +15 -14
- package/dist/cli/{snapshot-coordination-init-xjyv8kxx.js → snapshot-coordination-init-9zrktnh5.js} +48 -42
- package/dist/cli/{speckit-checkoff-828xrjfd.js → speckit-checkoff-k13zhgh5.js} +4 -4
- package/dist/cli/{telemetry-39zmx4fp.js → telemetry-n6y2sjhg.js} +1 -1
- package/dist/cli/{workspace-snapshot-nrbvjh1c.js → workspace-snapshot-gnwak61t.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-cr6vv3xk.js → worktree-collision-ownership-mw3rkc4v.js} +18 -16
- package/dist/cli/{worktree-isolation-6yycqkc6.js → worktree-isolation-0rtrpf0b.js} +48 -42
- package/dist/index.js +541 -541
- package/dist/plan/auto-checkpoint.d.ts +56 -0
- package/dist/plan/manager.d.ts +8 -12
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-1260n9ty.js +0 -75
- package/dist/cli/guardrail-explain-qeywnmza.js +0 -76
- package/dist/cli/hive-promoter-c3c6tz3b.js +0 -90
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-n572fdtf.js";
|
|
18
18
|
import {
|
|
19
19
|
checkFileAuthority,
|
|
20
20
|
classifyFile,
|
|
21
21
|
isInDeclaredScope,
|
|
22
22
|
redactPath,
|
|
23
23
|
redactShellCommand
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-2p1an48j.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
derivePlanId,
|
|
4
|
-
derivePlanIdentityHash
|
|
5
|
-
} from "./index-aae38s4x.js";
|
|
6
2
|
import {
|
|
7
3
|
getProjectDb,
|
|
8
4
|
projectDbExists,
|
|
9
5
|
withImmediateTransaction,
|
|
10
6
|
withProjectDbReadOnly
|
|
11
|
-
} from "./index-
|
|
7
|
+
} from "./index-pwcbtbhd.js";
|
|
8
|
+
import {
|
|
9
|
+
derivePlanId,
|
|
10
|
+
derivePlanIdentityHash
|
|
11
|
+
} from "./index-7pmbnjvj.js";
|
|
12
12
|
import {
|
|
13
13
|
withEvidenceLock
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-6cjpmvpa.js";
|
|
15
15
|
import {
|
|
16
16
|
assertProjectRoot
|
|
17
17
|
} from "./index-t7hmqgjy.js";
|
|
18
18
|
import {
|
|
19
19
|
emit
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-w6w6ny06.js";
|
|
21
21
|
import {
|
|
22
22
|
ExecutionProfileSchema,
|
|
23
23
|
PlanSchema,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
init_loader,
|
|
29
29
|
loadPluginConfig
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-vk49btd6.js";
|
|
31
31
|
import {
|
|
32
32
|
init_package,
|
|
33
33
|
package_default
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-39ng38sp.js";
|
|
35
35
|
import {
|
|
36
36
|
criticalWarn,
|
|
37
37
|
init_logger,
|
|
@@ -229,9 +229,9 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
229
229
|
"src/evidence/task-file.ts (pre-#2035; migrated-to=src/evidence/task-file.ts:atomicWriteFile)",
|
|
230
230
|
"src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWrite)",
|
|
231
231
|
"src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWriteSync)",
|
|
232
|
-
"src/plan/manager.ts:
|
|
233
|
-
"src/plan/manager.ts:
|
|
234
|
-
"src/plan/manager.ts:
|
|
232
|
+
"src/plan/manager.ts:695",
|
|
233
|
+
"src/plan/manager.ts:2122",
|
|
234
|
+
"src/plan/manager.ts:2182",
|
|
235
235
|
"src/review/evidence.ts:175",
|
|
236
236
|
"src/turbo/lean/evidence.ts:182",
|
|
237
237
|
"src/summaries/manager.ts:163",
|
|
@@ -286,7 +286,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
286
286
|
"src/tools/spec-write.ts:98",
|
|
287
287
|
"src/sdd/effective-spec.ts:1377",
|
|
288
288
|
"src/background/lane-output-store.ts:353",
|
|
289
|
-
"src/background/pending-delegations.ts:
|
|
289
|
+
"src/background/pending-delegations.ts:1507",
|
|
290
290
|
"src/background/delegation-health.ts:391",
|
|
291
291
|
"src/tools/submit-phase-council-verdicts.ts:458",
|
|
292
292
|
"src/summaries/store.ts (pre-#2035; migrated-to=src/summaries/store.ts:writeRawSidecar)",
|
|
@@ -361,7 +361,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
361
361
|
token: "instance",
|
|
362
362
|
quarantineEligible: true,
|
|
363
363
|
parsesTarget: true,
|
|
364
|
-
producers: ["src/plan/manager.ts:
|
|
364
|
+
producers: ["src/plan/manager.ts:2381", "src/plan/manager.ts:2443"],
|
|
365
365
|
note: "plan-durability (invariant 5) fd-write paths; grammars registered, writers unchanged in this PR"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getProjectDb,
|
|
5
5
|
projectDbExists,
|
|
6
6
|
withImmediateTransaction
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-pwcbtbhd.js";
|
|
8
8
|
|
|
9
9
|
// src/db/coordination-store.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -366,13 +366,4 @@ function deleteCoordinationImports(directory, sources) {
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
|
|
370
|
-
import { createHash as createHash2 } from "crypto";
|
|
371
|
-
function derivePlanId(plan) {
|
|
372
|
-
return `${plan.swarm}-${plan.title}`.replace(/[^a-zA-Z0-9-_]/g, "_");
|
|
373
|
-
}
|
|
374
|
-
function derivePlanIdentityHash(plan) {
|
|
375
|
-
return createHash2("sha256").update(JSON.stringify([plan.swarm, plan.title]), "utf8").digest("hex");
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export { MAX_COORDINATION_STATE_LIST_ROWS, getCoordinationStateRaw, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports, derivePlanId, derivePlanIdentityHash };
|
|
369
|
+
export { MAX_COORDINATION_STATE_LIST_ROWS, getCoordinationStateRaw, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-vk49btd6.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-39ng38sp.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
} from "./index-ae75rja9.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveKnowledgeStoreDir
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-4g4sr4ah.js";
|
|
15
15
|
import {
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-2y9b45jj.js";
|
|
18
18
|
import {
|
|
19
19
|
require_proper_lockfile
|
|
20
20
|
} from "./index-7g4c7s5r.js";
|
|
21
21
|
import {
|
|
22
22
|
readCachedParsedFile
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-bntwj2tp.js";
|
|
24
24
|
import {
|
|
25
25
|
init_knowledge_types,
|
|
26
26
|
isActiveStatus
|
|
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
739
739
|
const {
|
|
740
740
|
readAuthoritativeKnowledgeCounterRollups,
|
|
741
741
|
effectiveRetrievalOutcomes
|
|
742
|
-
} = await import("./knowledge-events-
|
|
742
|
+
} = await import("./knowledge-events-gv173j4d.js");
|
|
743
743
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
744
744
|
const flagIds = new Set;
|
|
745
745
|
for (const e of atFloor) {
|
|
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
809
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
810
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
809
|
+
const { quarantineEntry } = await import("./knowledge-validator-8whkrsrb.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-rvxnxp4n.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-x0jybm74.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-dze05t9h.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-4g4sr4ah.js";
|
|
9
9
|
import {
|
|
10
10
|
init_git_executable,
|
|
11
11
|
resolveGitExecutableAsync
|
|
@@ -2,25 +2,28 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-rbvndg2d.js";
|
|
6
|
+
import {
|
|
7
|
+
isSpawnCwdMissing,
|
|
8
|
+
isSpawnCwdUnreadable
|
|
9
|
+
} from "./index-g4fs6z4e.js";
|
|
6
10
|
import {
|
|
7
11
|
validateSwarmPath
|
|
8
|
-
} from "./index-
|
|
12
|
+
} from "./index-dftztz4y.js";
|
|
9
13
|
import {
|
|
10
|
-
bunSpawn
|
|
11
|
-
classifySpawnFailure
|
|
14
|
+
bunSpawn
|
|
12
15
|
} from "./index-2s7dvzff.js";
|
|
13
16
|
import {
|
|
14
17
|
atomicWriteFile,
|
|
15
18
|
taskEvidencePath,
|
|
16
19
|
withTaskEvidenceLock
|
|
17
|
-
} from "./index-
|
|
20
|
+
} from "./index-2y9b45jj.js";
|
|
18
21
|
import {
|
|
19
22
|
assertProjectRoot
|
|
20
23
|
} from "./index-t7hmqgjy.js";
|
|
21
24
|
import {
|
|
22
25
|
telemetry
|
|
23
|
-
} from "./index-
|
|
26
|
+
} from "./index-w6w6ny06.js";
|
|
24
27
|
import {
|
|
25
28
|
advisoryWarn,
|
|
26
29
|
init_git_executable,
|
|
@@ -410,37 +413,6 @@ function recoveryReadErrored(directory) {
|
|
|
410
413
|
return readRecoveryRecords(directory).errored;
|
|
411
414
|
}
|
|
412
415
|
|
|
413
|
-
// src/utils/git-binary-missing-error.ts
|
|
414
|
-
class GitUnavailableError extends Error {
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
class GitBinaryMissingError extends GitUnavailableError {
|
|
418
|
-
name = "GitBinaryMissingError";
|
|
419
|
-
constructor(message = "git binary is not available", options) {
|
|
420
|
-
super(message, options);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
class GitSpawnCwdError extends GitUnavailableError {
|
|
425
|
-
name = "GitSpawnCwdError";
|
|
426
|
-
cwd;
|
|
427
|
-
fault;
|
|
428
|
-
constructor(cwd, fault, options) {
|
|
429
|
-
super(fault === "missing" ? `git could not start: working directory no longer exists: ${cwd}` : `git could not start: working directory could not be inspected (permission denied): ${cwd}`, options);
|
|
430
|
-
this.cwd = cwd;
|
|
431
|
-
this.fault = fault;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
function isGitBinaryMissing(err, cwd) {
|
|
435
|
-
return classifySpawnFailure(err, cwd) === "binary-missing";
|
|
436
|
-
}
|
|
437
|
-
function isSpawnCwdMissing(err, cwd) {
|
|
438
|
-
return classifySpawnFailure(err, cwd) === "cwd-missing";
|
|
439
|
-
}
|
|
440
|
-
function isSpawnCwdUnreadable(err, cwd) {
|
|
441
|
-
return classifySpawnFailure(err, cwd) === "cwd-unreadable";
|
|
442
|
-
}
|
|
443
|
-
|
|
444
416
|
// src/worktree/merge.ts
|
|
445
417
|
init_git_executable();
|
|
446
418
|
var _internals = {
|
|
@@ -2521,4 +2493,4 @@ function compareTaskWorkflowStateRank(left, right) {
|
|
|
2521
2493
|
return WORKFLOW_STATE_RANK[left] - WORKFLOW_STATE_RANK[right];
|
|
2522
2494
|
}
|
|
2523
2495
|
|
|
2524
|
-
export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords,
|
|
2496
|
+
export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, transitionTaskWorkflowEvidenceWithStatus, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordTodoScanEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
classifySpawnFailure
|
|
4
|
+
} from "./index-2s7dvzff.js";
|
|
5
|
+
|
|
6
|
+
// src/utils/git-binary-missing-error.ts
|
|
7
|
+
class GitUnavailableError extends Error {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class GitBinaryMissingError extends GitUnavailableError {
|
|
11
|
+
name = "GitBinaryMissingError";
|
|
12
|
+
constructor(message = "git binary is not available", options) {
|
|
13
|
+
super(message, options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class GitSpawnCwdError extends GitUnavailableError {
|
|
18
|
+
name = "GitSpawnCwdError";
|
|
19
|
+
cwd;
|
|
20
|
+
fault;
|
|
21
|
+
constructor(cwd, fault, options) {
|
|
22
|
+
super(fault === "missing" ? `git could not start: working directory no longer exists: ${cwd}` : `git could not start: working directory could not be inspected (permission denied): ${cwd}`, options);
|
|
23
|
+
this.cwd = cwd;
|
|
24
|
+
this.fault = fault;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function isGitBinaryMissing(err, cwd) {
|
|
28
|
+
return classifySpawnFailure(err, cwd) === "binary-missing";
|
|
29
|
+
}
|
|
30
|
+
function isSpawnCwdMissing(err, cwd) {
|
|
31
|
+
return classifySpawnFailure(err, cwd) === "cwd-missing";
|
|
32
|
+
}
|
|
33
|
+
function isSpawnCwdUnreadable(err, cwd) {
|
|
34
|
+
return classifySpawnFailure(err, cwd) === "cwd-unreadable";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { GitBinaryMissingError, GitSpawnCwdError, isGitBinaryMissing, isSpawnCwdMissing, isSpawnCwdUnreadable };
|
|
@@ -8,9 +8,11 @@ import {
|
|
|
8
8
|
resolveContainedExistingPath
|
|
9
9
|
} from "./index-txdagbh7.js";
|
|
10
10
|
import {
|
|
11
|
-
atomicWriteFile
|
|
11
|
+
atomicWriteFile
|
|
12
|
+
} from "./index-2y9b45jj.js";
|
|
13
|
+
import {
|
|
12
14
|
withEvidenceLock
|
|
13
|
-
} from "./index-
|
|
15
|
+
} from "./index-6cjpmvpa.js";
|
|
14
16
|
import {
|
|
15
17
|
assertProjectRoot
|
|
16
18
|
} from "./index-t7hmqgjy.js";
|
|
@@ -23,69 +23,75 @@ import {
|
|
|
23
23
|
resolveFallbackModel,
|
|
24
24
|
resolvePrimaryAgentNames,
|
|
25
25
|
stripSwarmPrefix
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-nh5fxxc9.js";
|
|
26
|
+
} from "./index-n572fdtf.js";
|
|
27
|
+
import"./index-2p1an48j.js";
|
|
28
|
+
import"./index-ryafwy2b.js";
|
|
29
|
+
import"./index-34ysgky0.js";
|
|
30
|
+
import"./index-7bxssqaf.js";
|
|
31
|
+
import"./index-mfqge140.js";
|
|
32
|
+
import"./index-jtg0zsnx.js";
|
|
34
33
|
import"./index-txdagbh7.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-6b295cas.js";
|
|
37
|
-
import"./index-yyvkeev1.js";
|
|
38
|
-
import"./index-pj877ads.js";
|
|
39
|
-
import"./index-54f1payv.js";
|
|
34
|
+
import"./index-eqfmabtd.js";
|
|
40
35
|
import {
|
|
41
36
|
createExplorerAgent
|
|
42
37
|
} from "./index-rdec0y3z.js";
|
|
43
|
-
import"./index-
|
|
38
|
+
import"./index-w33zgxn6.js";
|
|
39
|
+
import"./index-s7rap90y.js";
|
|
40
|
+
import"./index-74e43s33.js";
|
|
41
|
+
import"./index-ymhs7hng.js";
|
|
42
|
+
import"./index-m1pqenq9.js";
|
|
43
|
+
import"./index-tyzmjw2s.js";
|
|
44
44
|
import"./index-cjapb4hy.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-0d7e94zg.js";
|
|
47
|
-
import"./index-07fqfseh.js";
|
|
48
|
-
import"./index-dqpq8m9w.js";
|
|
45
|
+
import"./index-yydv4jfy.js";
|
|
49
46
|
import"./index-pt7h91zc.js";
|
|
50
47
|
import"./index-q7sjgr1y.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
48
|
+
import"./index-5y1qxw0x.js";
|
|
49
|
+
import"./index-yvmvsej2.js";
|
|
50
|
+
import"./index-6b295cas.js";
|
|
51
|
+
import"./index-9nyqt3kb.js";
|
|
52
|
+
import"./index-cvam011t.js";
|
|
53
|
+
import"./index-zsrtt42s.js";
|
|
54
|
+
import"./index-2cbt4b7t.js";
|
|
55
|
+
import"./index-fbp7dqfe.js";
|
|
56
|
+
import"./index-rbvndg2d.js";
|
|
57
|
+
import"./index-g4fs6z4e.js";
|
|
58
|
+
import"./index-zzebc1td.js";
|
|
59
|
+
import"./index-zmtpnyff.js";
|
|
60
|
+
import"./index-dftztz4y.js";
|
|
57
61
|
import"./index-2s7dvzff.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
62
|
+
import"./index-27wzbb3n.js";
|
|
63
|
+
import"./index-fxf3zhtq.js";
|
|
60
64
|
import"./index-rtry5xyf.js";
|
|
61
|
-
import"./index-
|
|
65
|
+
import"./index-d42kjvwy.js";
|
|
62
66
|
import"./index-frcemc0b.js";
|
|
63
67
|
import"./index-0725jpp7.js";
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
70
|
-
import"./index-rdm3px0g.js";
|
|
68
|
+
import"./index-5w404j07.js";
|
|
69
|
+
import"./index-azyhws0s.js";
|
|
70
|
+
import"./index-7rzgdcvc.js";
|
|
71
|
+
import"./index-7r3pkgma.js";
|
|
72
|
+
import"./index-cftva3pa.js";
|
|
73
|
+
import"./index-pwcbtbhd.js";
|
|
71
74
|
import"./index-ry16d01s.js";
|
|
72
|
-
import"./index-
|
|
73
|
-
import"./index-
|
|
75
|
+
import"./index-rdm3px0g.js";
|
|
76
|
+
import"./index-7pmbnjvj.js";
|
|
77
|
+
import"./index-yx5z4200.js";
|
|
78
|
+
import"./index-dze05t9h.js";
|
|
74
79
|
import"./index-vzm6zre7.js";
|
|
75
80
|
import"./index-ae75rja9.js";
|
|
76
|
-
import"./index-
|
|
77
|
-
import"./index-
|
|
81
|
+
import"./index-4g4sr4ah.js";
|
|
82
|
+
import"./index-2y9b45jj.js";
|
|
83
|
+
import"./index-6cjpmvpa.js";
|
|
78
84
|
import"./index-t7hmqgjy.js";
|
|
79
|
-
import"./index-
|
|
85
|
+
import"./index-w6w6ny06.js";
|
|
80
86
|
import"./index-mc72pk74.js";
|
|
81
87
|
import"./index-c1ggtmpm.js";
|
|
82
88
|
import"./index-ejhxgyvm.js";
|
|
83
89
|
import"./index-7g4c7s5r.js";
|
|
84
|
-
import"./index-
|
|
90
|
+
import"./index-bntwj2tp.js";
|
|
85
91
|
import"./index-gx2vp8gx.js";
|
|
86
|
-
import"./index-
|
|
92
|
+
import"./index-vk49btd6.js";
|
|
87
93
|
import"./index-zxdawwc7.js";
|
|
88
|
-
import"./index-
|
|
94
|
+
import"./index-39ng38sp.js";
|
|
89
95
|
import"./index-48jvqqfa.js";
|
|
90
96
|
import"./index-bk5tah7q.js";
|
|
91
97
|
import"./index-gknz3bv1.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-dftztz4y.js";
|
|
5
5
|
import {
|
|
6
6
|
bunSpawn
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./index-mc72pk74.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteSwarmFile
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-bntwj2tp.js";
|
|
15
15
|
import {
|
|
16
16
|
init_git_executable,
|
|
17
17
|
resolveGitExecutable
|