opencode-swarm 7.144.8 → 7.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/{config-doctor-zbqfp0v6.js → config-doctor-dzsv3pqy.js} +2 -2
- package/dist/cli/{core-pz9gwatq.js → core-qkh9me8x.js} +2 -2
- package/dist/cli/{curation-policy-a511r0qz.js → curation-policy-5x6346tf.js} +7 -7
- package/dist/cli/{curator-drift-ckjm272w.js → curator-drift-yn5d0mvq.js} +3 -3
- package/dist/cli/{curator-llm-factory-3nq3p02z.js → curator-llm-factory-q5p4578g.js} +32 -31
- package/dist/cli/{curator-sk0dyvke.js → curator-zssndq5x.js} +32 -31
- package/dist/cli/dispatch-ndxbsk98.js +1 -1
- package/dist/cli/{evidence-summary-service-abwrjqd0.js → evidence-summary-service-dqcpapj8.js} +14 -13
- package/dist/cli/{gate-evidence-aa7vvtcd.js → gate-evidence-bkdqryqg.js} +9 -8
- package/dist/cli/guardrail-explain-kspf83x5.js +65 -0
- package/dist/cli/{guardrail-log-jw5mzs0d.js → guardrail-log-qg4sq6gr.js} +4 -4
- package/dist/cli/{hive-promoter-m20j63yg.js → hive-promoter-3h7dhnek.js} +32 -31
- package/dist/cli/{index-r14qx363.js → index-0jr9zn34.js} +1 -1
- package/dist/cli/{index-7qb0hn8n.js → index-0pcq32y2.js} +1 -1
- package/dist/cli/{index-nmy6rss1.js → index-2dnqazyr.js} +1 -1
- package/dist/cli/{index-r2rkwvzq.js → index-4e5a28h7.js} +2 -2
- package/dist/cli/index-4evasm2b.js +514 -0
- package/dist/cli/{index-k7fk9fjs.js → index-4zwjc9sb.js} +10 -29
- package/dist/cli/{index-c2rpht77.js → index-6ezbzd5e.js} +2504 -1993
- package/dist/cli/{index-xp5g9eps.js → index-6hqhyb0f.js} +4 -4
- package/dist/cli/{index-9s8drsf9.js → index-6q3agdmr.js} +4 -21
- package/dist/cli/{index-hkdgkkhb.js → index-77ef8gye.js} +2 -2
- package/dist/cli/{index-0v1f2sdb.js → index-7g276m9m.js} +2 -2
- package/dist/cli/{index-tffg4mwr.js → index-apjdytwx.js} +3 -3
- package/dist/cli/{index-xx8tm58n.js → index-b3xret0a.js} +5 -5
- package/dist/cli/{index-cx51wy0c.js → index-c13ttmak.js} +8 -8
- package/dist/cli/{index-d1dbpxxk.js → index-e00wbqw5.js} +2 -2
- package/dist/cli/{index-cwtpqm5f.js → index-e1pxav9g.js} +1 -1
- package/dist/cli/{index-n4hwcsbd.js → index-ffdwj1an.js} +5 -5
- package/dist/cli/{index-vdha477y.js → index-fp464as8.js} +1 -1
- package/dist/cli/{index-8dbzaf0m.js → index-h4hasck4.js} +4 -4
- package/dist/cli/{index-t72g4a7y.js → index-hfzcztv6.js} +34 -33
- package/dist/cli/{index-wknz5c8q.js → index-jy9bwa9k.js} +2 -2
- package/dist/cli/{index-bv44950t.js → index-k6pdsct6.js} +1 -1
- package/dist/cli/{index-t2ntgzts.js → index-kp87kr1a.js} +3 -3
- package/dist/cli/{index-sxe5nyq4.js → index-mkks7jwg.js} +13 -15
- package/dist/cli/{index-f9vvg5xb.js → index-pa86tpgt.js} +67 -2
- package/dist/cli/{index-3k3nbs52.js → index-qfawexc8.js} +9 -9
- package/dist/cli/{index-jdxnzbah.js → index-s6cwsnrw.js} +8 -8
- package/dist/cli/{index-h1p08s3n.js → index-s72naw1j.js} +1 -1
- package/dist/cli/{index-z4fssj97.js → index-v64kjqvg.js} +15 -15
- package/dist/cli/{index-6z5jtf7d.js → index-wk54ey3h.js} +4 -4
- package/dist/cli/{index-gfvkttvd.js → index-zfhe7vbb.js} +1 -1
- package/dist/cli/{index-1jsmmx7y.js → index-zz5qsjd1.js} +64 -35
- package/dist/cli/index.js +32 -31
- package/dist/cli/{knowledge-escalator-mg8qb7tm.js → knowledge-escalator-w1mbaktt.js} +14 -13
- package/dist/cli/{knowledge-events-3zxf8xpb.js → knowledge-events-a0dj6gy6.js} +12 -11
- package/dist/cli/{knowledge-link-4cg4776a.js → knowledge-link-mzdjvjsd.js} +6 -6
- package/dist/cli/{knowledge-store-awnm8s6c.js → knowledge-store-8kk3rghx.js} +7 -7
- package/dist/cli/{knowledge-validator-3ke5scx3.js → knowledge-validator-91ym56e0.js} +9 -9
- package/dist/cli/{pending-delegations-9h1jmtw1.js → pending-delegations-6vsrmw5w.js} +6 -6
- package/dist/cli/{pr-subscriptions-8pg34pev.js → pr-subscriptions-zc3skxde.js} +6 -6
- package/dist/cli/{runner-cqecp1na.js → runner-jj32v8bk.js} +8 -7
- package/dist/cli/{scan-cursor-00rbxkb4.js → scan-cursor-12jxwd14.js} +8 -8
- package/dist/cli/{schema-5nmkp1pc.js → schema-nq9tcz87.js} +1 -1
- package/dist/cli/{scope-persistence-6m79atw9.js → scope-persistence-dv6z7n08.js} +8 -7
- package/dist/cli/{skill-generator-gv70s796.js → skill-generator-drscnzq9.js} +16 -15
- package/dist/cli/{telemetry-cybx6cfz.js → telemetry-z54dgdrh.js} +1 -1
- package/dist/cli/{workspace-snapshot-d89zm6wm.js → workspace-snapshot-q21mgbsh.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-vy0kxa98.js → worktree-collision-ownership-rfyyjjct.js} +9 -9
- package/dist/cli/{worktree-isolation-bne0p54w.js → worktree-isolation-4tehtym5.js} +32 -31
- package/dist/cli/{worktree-provisioning-owner-zzkjycp1.js → worktree-provisioning-owner-72cyddz5.js} +3 -3
- package/dist/commands/close.d.ts +8 -1
- package/dist/config/evidence-schema.d.ts +6 -6
- package/dist/config/plan-schema.d.ts +2 -2
- package/dist/config/schema.d.ts +7 -7
- package/dist/evidence/task-file.d.ts +16 -16
- package/dist/index.js +560 -530
- package/dist/memory/schema.d.ts +3 -3
- package/dist/observability/catalog.d.ts +5 -4
- package/dist/observability/envelope.d.ts +2 -2
- package/dist/services/swarm-residue.d.ts +151 -0
- package/dist/telemetry.d.ts +20 -1
- package/dist/tools/knowledge-receipt.d.ts +1 -1
- package/dist/utils/atomic-write.d.ts +185 -0
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-hvtyr2fz.js +0 -64
- package/dist/cli/{index-f36ybbsv.js → index-b30x236n.js} +3 -3
- package/dist/cli/{index-fv0s19g9.js → index-w8pgjr75.js} +3 -3
package/dist/config/schema.d.ts
CHANGED
|
@@ -435,8 +435,8 @@ export type AutoReviewConfig = z.infer<typeof AutoReviewConfigSchema>;
|
|
|
435
435
|
export declare const AdversarialDetectionConfigSchema: z.ZodObject<{
|
|
436
436
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
437
437
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
438
|
-
ignore: "ignore";
|
|
439
438
|
gate: "gate";
|
|
439
|
+
ignore: "ignore";
|
|
440
440
|
warn: "warn";
|
|
441
441
|
}>>;
|
|
442
442
|
pairs: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
@@ -1571,10 +1571,10 @@ export declare const ExternalSkillCandidateSourceTypeSchema: z.ZodEnum<{
|
|
|
1571
1571
|
export type ExternalSkillCandidateSourceType = z.infer<typeof ExternalSkillCandidateSourceTypeSchema>;
|
|
1572
1572
|
/** Evaluation verdict for an external skill candidate. */
|
|
1573
1573
|
export declare const ExternalSkillCandidateEvaluationVerdictSchema: z.ZodEnum<{
|
|
1574
|
+
quarantined: "quarantined";
|
|
1574
1575
|
passed: "passed";
|
|
1575
1576
|
pending: "pending";
|
|
1576
1577
|
promoted: "promoted";
|
|
1577
|
-
quarantined: "quarantined";
|
|
1578
1578
|
in_review: "in_review";
|
|
1579
1579
|
rejected: "rejected";
|
|
1580
1580
|
revoked: "revoked";
|
|
@@ -1618,20 +1618,20 @@ export declare const ExternalSkillCandidateSchema: z.ZodObject<{
|
|
|
1618
1618
|
skill_body: z.ZodString;
|
|
1619
1619
|
risk_flags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1620
1620
|
evaluation_verdict: z.ZodDefault<z.ZodEnum<{
|
|
1621
|
+
quarantined: "quarantined";
|
|
1621
1622
|
passed: "passed";
|
|
1622
1623
|
pending: "pending";
|
|
1623
1624
|
promoted: "promoted";
|
|
1624
|
-
quarantined: "quarantined";
|
|
1625
1625
|
in_review: "in_review";
|
|
1626
1626
|
rejected: "rejected";
|
|
1627
1627
|
revoked: "revoked";
|
|
1628
1628
|
}>>;
|
|
1629
1629
|
evaluation_history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1630
1630
|
verdict: z.ZodEnum<{
|
|
1631
|
+
quarantined: "quarantined";
|
|
1631
1632
|
passed: "passed";
|
|
1632
1633
|
pending: "pending";
|
|
1633
1634
|
promoted: "promoted";
|
|
1634
|
-
quarantined: "quarantined";
|
|
1635
1635
|
in_review: "in_review";
|
|
1636
1636
|
rejected: "rejected";
|
|
1637
1637
|
revoked: "revoked";
|
|
@@ -1641,10 +1641,10 @@ export declare const ExternalSkillCandidateSchema: z.ZodObject<{
|
|
|
1641
1641
|
reason: z.ZodOptional<z.ZodString>;
|
|
1642
1642
|
candidate_id: z.ZodOptional<z.ZodString>;
|
|
1643
1643
|
original_verdict: z.ZodOptional<z.ZodEnum<{
|
|
1644
|
+
quarantined: "quarantined";
|
|
1644
1645
|
passed: "passed";
|
|
1645
1646
|
pending: "pending";
|
|
1646
1647
|
promoted: "promoted";
|
|
1647
|
-
quarantined: "quarantined";
|
|
1648
1648
|
in_review: "in_review";
|
|
1649
1649
|
rejected: "rejected";
|
|
1650
1650
|
revoked: "revoked";
|
|
@@ -1657,8 +1657,8 @@ export declare const ExternalSkillCandidateSchema: z.ZodObject<{
|
|
|
1657
1657
|
total_flags: z.ZodNumber;
|
|
1658
1658
|
findings: z.ZodArray<z.ZodObject<{
|
|
1659
1659
|
severity: z.ZodEnum<{
|
|
1660
|
-
error: "error";
|
|
1661
1660
|
warning: "warning";
|
|
1661
|
+
error: "error";
|
|
1662
1662
|
}>;
|
|
1663
1663
|
category: z.ZodString;
|
|
1664
1664
|
}, z.core.$strip>>;
|
|
@@ -2033,8 +2033,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2033
2033
|
adversarial_detection: z.ZodOptional<z.ZodObject<{
|
|
2034
2034
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2035
2035
|
policy: z.ZodDefault<z.ZodEnum<{
|
|
2036
|
-
ignore: "ignore";
|
|
2037
2036
|
gate: "gate";
|
|
2037
|
+
ignore: "ignore";
|
|
2038
2038
|
warn: "warn";
|
|
2039
2039
|
}>>;
|
|
2040
2040
|
pairs: z.ZodDefault<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* This module deliberately holds no schema/validation logic — each caller keeps
|
|
18
18
|
* its own taskId validation and read/merge semantics.
|
|
19
19
|
*/
|
|
20
|
-
import { renameSync, unlinkSync } from 'node:fs';
|
|
21
20
|
/**
|
|
22
21
|
* Relative path (under `.swarm/`) of the flat task evidence file.
|
|
23
22
|
* This is also the lock key — it MUST be identical across all writers to the
|
|
@@ -26,26 +25,27 @@ import { renameSync, unlinkSync } from 'node:fs';
|
|
|
26
25
|
export declare function taskEvidenceRelPath(taskId: string): string;
|
|
27
26
|
/** Absolute path of the flat task evidence file under `<directory>/.swarm/`. */
|
|
28
27
|
export declare function taskEvidencePath(directory: string, taskId: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* Dependency-injection seam for testing. Tests can temporarily replace these
|
|
31
|
-
* to exercise failure paths (e.g. EPERM on renameSync) without mock.module leakage.
|
|
32
|
-
* Restore each entry in afterEach via the saved original reference.
|
|
33
|
-
*/
|
|
34
|
-
export declare const _internals: {
|
|
35
|
-
renameSync: typeof renameSync;
|
|
36
|
-
unlinkSync: typeof unlinkSync;
|
|
37
|
-
};
|
|
38
28
|
/**
|
|
39
29
|
* Atomic write: write to a unique temp file, then rename over the target.
|
|
40
30
|
* The rename is atomic on POSIX and Windows, so readers never observe a torn
|
|
41
31
|
* file. The temp file is cleaned up in `finally` (no-op once renamed away).
|
|
42
32
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* the
|
|
33
|
+
* Delegates to the canonical writer core (`src/utils/atomic-write.ts`, issue
|
|
34
|
+
* #2035) via the ANY-ROOT variant: this shared writer serves dual
|
|
35
|
+
* destinations — `.swarm/evidence/**` files AND the linked/hive knowledge
|
|
36
|
+
* stores whose directories live outside any `.swarm` root (knowledge-store /
|
|
37
|
+
* knowledge-link / memory-link / family migrations) — so `.swarm` root
|
|
38
|
+
* containment (the canonical entry point's contract) is inapplicable here.
|
|
39
|
+
* Everything else is canonical: registered `canonical-v1` temp grammar,
|
|
40
|
+
* fsync-before-rename, bounded Windows rename retry, exact own-temp cleanup,
|
|
41
|
+
* and swarm-artifact-cache invalidation after a successful rename — the
|
|
42
|
+
* cache's stat-based staleness check can collide on a same-size rewrite that
|
|
43
|
+
* lands within one filesystem timestamp tick (issue #1729), which would
|
|
44
|
+
* otherwise let a read immediately following this write observe the pre-write
|
|
45
|
+
* content instead of what was just committed.
|
|
46
|
+
*
|
|
47
|
+
* Failure-injection tests target `src/utils/atomic-write.ts:_internals`
|
|
48
|
+
* (renameSync/unlinkSync) — the seam moved there with the implementation.
|
|
49
49
|
*/
|
|
50
50
|
export declare function atomicWriteFile(targetPath: string, content: string): Promise<void>;
|
|
51
51
|
/**
|