opencode-swarm 7.140.4 → 7.140.6
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/.opencode/skills/plan/SKILL.md +40 -12
- package/.opencode/skills/swarm-pr-review/SKILL.md +2 -4
- package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +54 -0
- package/dist/agents/architect.d.ts +2 -1
- package/dist/background/candidate-contract.d.ts +1 -1
- package/dist/background/pending-delegations.d.ts +5 -0
- package/dist/background/pr-review-trigger-contract.d.ts +36 -0
- package/dist/cli/{config-doctor-qqe6172n.js → config-doctor-y5qeh18c.js} +3 -3
- package/dist/cli/{core-52k057mf.js → core-pwd9604e.js} +2 -2
- package/dist/cli/{curation-policy-9291bdat.js → curation-policy-avvb56x2.js} +6 -6
- package/dist/cli/curator-llm-factory-96pnc23w.js +61 -0
- package/dist/cli/{curator-04xqq68e.js → curator-q1nchgpg.js} +36 -36
- package/dist/cli/{evidence-summary-service-em58myd7.js → evidence-summary-service-18142mr3.js} +14 -11
- package/dist/cli/gate-evidence-smn2wqft.js +51 -0
- package/dist/cli/guardrail-explain-kyd89z8z.js +62 -0
- package/dist/cli/{guardrail-log-vb5zkegf.js → guardrail-log-cahp1ews.js} +4 -4
- package/dist/cli/{hive-promoter-z09khawt.js → hive-promoter-vcbcvcsh.js} +36 -36
- package/dist/cli/{index-ysa38bnr.js → index-1p72dtym.js} +3 -3
- package/dist/cli/{index-s8g7jh1k.js → index-2778hhh7.js} +2 -2
- package/dist/cli/{index-v3xhc7kg.js → index-4s7xgzbm.js} +1 -1
- package/dist/cli/{index-wk8s1m7b.js → index-4zxrkk1h.js} +217 -15
- package/dist/cli/{index-hz0refz4.js → index-56rqw2hs.js} +70 -29
- package/dist/cli/{index-djbhe0yh.js → index-5qd5vt2d.js} +38 -38
- package/dist/cli/{index-35qep0v7.js → index-912qz4y0.js} +88 -88
- package/dist/cli/{index-2rb3x0fk.js → index-92n3d5ky.js} +7 -7
- package/dist/cli/{index-ryq97w1x.js → index-bjqpdr83.js} +4 -4
- package/dist/cli/{index-c5kr20nz.js → index-c432knmy.js} +1 -1
- package/dist/cli/{index-v3x7j9ey.js → index-dtqjxfw9.js} +2 -2
- package/dist/cli/{index-hfwzxh3j.js → index-e58e3v0v.js} +12 -10
- package/dist/cli/{index-bfhwtdsw.js → index-epvhf50h.js} +3 -3
- package/dist/cli/{index-vrmkg8fm.js → index-fejfzy2j.js} +9 -9
- package/dist/cli/{index-mpytsq6k.js → index-h01wb18g.js} +2 -2
- package/dist/cli/{index-hxvkfx6t.js → index-jqsfsqbx.js} +15 -2
- package/dist/cli/{index-bn17ycxn.js → index-m9xrdjn0.js} +1 -1
- package/dist/cli/{index-a1fjhx4w.js → index-nakkgkkt.js} +37922 -35984
- package/dist/cli/index-p04qrwck.js +43 -0
- package/dist/cli/{index-arza4m4j.js → index-p2ty3eee.js} +2 -2
- package/dist/cli/{index-4hp8nvwb.js → index-p8kk34am.js} +3 -3
- package/dist/cli/{index-1kyex7z2.js → index-qwm6vdyv.js} +32 -1
- package/dist/cli/{index-dtam929z.js → index-qy1nq52t.js} +1 -1
- package/dist/cli/{index-rrb6cz2f.js → index-s1v0wza5.js} +6 -2
- package/dist/cli/{index-w4etfamq.js → index-t5pytnca.js} +2 -2
- package/dist/cli/{index-tj04dj06.js → index-thp186x0.js} +2 -2
- package/dist/cli/index-tjqzr3jc.js +623 -0
- package/dist/cli/{index-mrpfd1jx.js → index-vh05t3w5.js} +1 -1
- package/dist/cli/{index-7begd9aq.js → index-y9q9f6ms.js} +4 -4
- package/dist/cli/{index-v1an91bq.js → index-z0z9pe7b.js} +5 -5
- package/dist/cli/{index-hfjvepk2.js → index-z3s0a44b.js} +3 -3
- package/dist/cli/{index-pp5m7xga.js → index-zd4qhnr7.js} +70 -34
- package/dist/cli/{index-b8zgtz81.js → index-zsrtt42s.js} +34 -1
- package/dist/cli/index.js +35 -35
- package/dist/cli/{knowledge-escalator-gdjnwszd.js → knowledge-escalator-gj58za4g.js} +12 -12
- package/dist/cli/{knowledge-events-581x4q7n.js → knowledge-events-3m5jnnv6.js} +10 -10
- package/dist/cli/{knowledge-link-axx45d1h.js → knowledge-link-m9p80f4r.js} +5 -5
- package/dist/cli/{knowledge-store-ttg33482.js → knowledge-store-0vy8wbzd.js} +6 -6
- package/dist/cli/{knowledge-validator-8kywqt8b.js → knowledge-validator-mvcs8wf6.js} +8 -8
- package/dist/cli/{pending-delegations-btwqsvz4.js → pending-delegations-cxx9tezp.js} +4 -4
- package/dist/cli/{pr-subscriptions-83y1cdwv.js → pr-subscriptions-2sfnb599.js} +4 -4
- package/dist/cli/{runner-fh3r41nw.js → runner-mky3vvht.js} +6 -6
- package/dist/cli/{scan-cursor-j8ytdpam.js → scan-cursor-wznc7p7p.js} +7 -7
- package/dist/cli/{schema-6xfqtpvn.js → schema-k596bhds.js} +2 -2
- package/dist/cli/{scope-persistence-8c72jrgp.js → scope-persistence-0ny5fn07.js} +10 -5
- package/dist/cli/{skill-generator-n8vm1yhn.js → skill-generator-vrks0jjj.js} +14 -14
- package/dist/cli/{telemetry-fb44gpba.js → telemetry-0x6kszvk.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-f28r473k.js → worktree-collision-ownership-wm5pse49.js} +8 -8
- package/dist/cli/worktree-isolation-zgk7314k.js +102 -0
- package/dist/cli/worktree-provisioning-owner-sjh7te1h.js +22 -0
- package/dist/commands/acknowledge-spec-drift.d.ts +4 -5
- package/dist/config/evidence-schema.d.ts +3 -3
- package/dist/config/index.d.ts +2 -2
- package/dist/config/plan-schema.d.ts +8 -0
- package/dist/config/schema.d.ts +2 -2
- package/dist/council/council-evidence-writer.d.ts +1 -1
- package/dist/gate-evidence.d.ts +117 -4
- package/dist/hooks/delegation-gate.d.ts +21 -0
- package/dist/hooks/pr-workflow-gate.d.ts +20 -0
- package/dist/index.js +775 -748
- package/dist/plan/ledger.d.ts +55 -0
- package/dist/plan/manager.d.ts +9 -0
- package/dist/plan/planning-profile.d.ts +27 -0
- package/dist/services/spec-drift-recovery.d.ts +84 -0
- package/dist/session/snapshot-writer.d.ts +3 -1
- package/dist/state.d.ts +19 -17
- package/dist/summaries/schema.d.ts +2 -2
- package/dist/tools/convene-council.d.ts +6 -6
- package/dist/tools/save-plan.d.ts +8 -0
- package/dist/tools/submit-phase-council-verdicts.d.ts +6 -6
- package/dist/tools/tool-metadata.d.ts +28 -28
- package/dist/tools/update-task-status.d.ts +13 -0
- package/dist/tools/write-final-council-evidence.d.ts +6 -6
- package/dist/types/events.d.ts +29 -1
- package/dist/workflow/coder-settlement.d.ts +62 -0
- package/dist/workflow/task-repair.d.ts +30 -0
- package/dist/workflow/task-terminal.d.ts +52 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-cfm8fhdw.js +0 -61
- package/dist/cli/gate-evidence-ezxfkb22.js +0 -32
- package/dist/cli/guardrail-explain-pn1bcgfz.js +0 -62
- package/dist/cli/index-d181x9zr.js +0 -71
- package/dist/cli/index-dtyeabmj.js +0 -239
|
@@ -37,6 +37,11 @@ export interface UpdateTaskStatusArgs {
|
|
|
37
37
|
status: string;
|
|
38
38
|
working_directory?: string;
|
|
39
39
|
force?: boolean;
|
|
40
|
+
expected_state?: string;
|
|
41
|
+
expected_generation?: number;
|
|
42
|
+
target_state?: 'idle';
|
|
43
|
+
reason?: string;
|
|
44
|
+
transition_id?: string;
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
42
47
|
* Result from executing update_task_status
|
|
@@ -69,6 +74,14 @@ export declare function validateTaskId(taskId: string): string | undefined;
|
|
|
69
74
|
export interface ReviewerGateResult {
|
|
70
75
|
blocked: boolean;
|
|
71
76
|
reason: string;
|
|
77
|
+
requiredGates?: string[];
|
|
78
|
+
satisfiedGates?: string[];
|
|
79
|
+
missingGates?: string[];
|
|
80
|
+
source?: 'durable_exact_task' | 'legacy_compat' | 'turbo_policy';
|
|
81
|
+
corrupt?: boolean;
|
|
82
|
+
contradictorySignals?: string[];
|
|
83
|
+
generation?: number;
|
|
84
|
+
nextAction?: string;
|
|
72
85
|
}
|
|
73
86
|
declare function hasPassedDurableGateEvidence(workingDirectory: string, taskId: string): boolean;
|
|
74
87
|
/**
|
|
@@ -9,23 +9,23 @@ export declare const ArgsSchema: z.ZodObject<{
|
|
|
9
9
|
verdicts: z.ZodArray<z.ZodObject<{
|
|
10
10
|
agent: z.ZodEnum<{
|
|
11
11
|
reviewer: "reviewer";
|
|
12
|
-
|
|
12
|
+
critic: "critic";
|
|
13
13
|
explorer: "explorer";
|
|
14
|
+
test_engineer: "test_engineer";
|
|
14
15
|
sme: "sme";
|
|
15
|
-
critic: "critic";
|
|
16
16
|
}>;
|
|
17
17
|
verdict: z.ZodEnum<{
|
|
18
18
|
APPROVE: "APPROVE";
|
|
19
|
-
REJECT: "REJECT";
|
|
20
19
|
CONCERNS: "CONCERNS";
|
|
20
|
+
REJECT: "REJECT";
|
|
21
21
|
}>;
|
|
22
22
|
confidence: z.ZodNumber;
|
|
23
23
|
findings: z.ZodArray<z.ZodObject<{
|
|
24
24
|
severity: z.ZodEnum<{
|
|
25
|
-
LOW: "LOW";
|
|
26
|
-
MEDIUM: "MEDIUM";
|
|
27
|
-
HIGH: "HIGH";
|
|
28
25
|
CRITICAL: "CRITICAL";
|
|
26
|
+
HIGH: "HIGH";
|
|
27
|
+
MEDIUM: "MEDIUM";
|
|
28
|
+
LOW: "LOW";
|
|
29
29
|
}>;
|
|
30
30
|
category: z.ZodString;
|
|
31
31
|
location: z.ZodString;
|
package/dist/types/events.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface CoderRetryCircuitBreakerEvent {
|
|
|
47
47
|
type: 'coder_retry_circuit_breaker';
|
|
48
48
|
timestamp: string;
|
|
49
49
|
taskId: string;
|
|
50
|
+
generation?: number;
|
|
51
|
+
retryEpoch: number;
|
|
50
52
|
rejectionCount: number;
|
|
51
53
|
rejectionHistory: string[];
|
|
52
54
|
phase: number;
|
|
@@ -89,6 +91,32 @@ export interface SpecDriftAcknowledgedEvent {
|
|
|
89
91
|
acknowledgedBy: string;
|
|
90
92
|
previousHash: string;
|
|
91
93
|
newHash: string | null;
|
|
94
|
+
markerHash: string;
|
|
95
|
+
transitionId: string;
|
|
96
|
+
}
|
|
97
|
+
export interface SpecDriftRepairedEvent {
|
|
98
|
+
type: 'spec_drift_repaired';
|
|
99
|
+
timestamp: string;
|
|
100
|
+
phase: number;
|
|
101
|
+
planTitle: string;
|
|
102
|
+
repairedBy: string;
|
|
103
|
+
previousHash: string;
|
|
104
|
+
newHash: string | null;
|
|
105
|
+
markerHash: string;
|
|
106
|
+
transitionId: string;
|
|
107
|
+
}
|
|
108
|
+
export interface TaskWorkflowRepairedEvent {
|
|
109
|
+
type: 'task_workflow_repaired';
|
|
110
|
+
timestamp: string;
|
|
111
|
+
taskId: string;
|
|
112
|
+
transitionId: string;
|
|
113
|
+
reason: string;
|
|
114
|
+
actor: string;
|
|
115
|
+
oldPlanStatus: string;
|
|
116
|
+
newPlanStatus: 'in_progress';
|
|
117
|
+
oldWorkflowState: string;
|
|
118
|
+
newWorkflowState: 'idle';
|
|
119
|
+
generation: number;
|
|
92
120
|
}
|
|
93
121
|
/**
|
|
94
122
|
* Emitted whenever savePlan removes one or more tasks from the prior plan
|
|
@@ -155,4 +183,4 @@ export interface PrmHardStopDeliveredEvent {
|
|
|
155
183
|
level: number;
|
|
156
184
|
occurrenceCount: number;
|
|
157
185
|
}
|
|
158
|
-
export type V619Event = SoundingBoardConsultedEvent | ArchitectLoopDetectedEvent | PrecedentManipulationDetectedEvent | CoderSelfAuditEvent | CoderRetryCircuitBreakerEvent | AgentConflictDetectedEvent | AuthorityHandoffResolvedEvent | SpecStaleDetectedEvent | SpecDriftAcknowledgedEvent | TaskRemovedEvent | PrmPatternDetectedEvent | PrmCourseCorrectionInjectedEvent | PrmEscalationTriggeredEvent | PrmHardStopEvent | PrmHardStopDeliveredEvent;
|
|
186
|
+
export type V619Event = SoundingBoardConsultedEvent | ArchitectLoopDetectedEvent | PrecedentManipulationDetectedEvent | CoderSelfAuditEvent | CoderRetryCircuitBreakerEvent | AgentConflictDetectedEvent | AuthorityHandoffResolvedEvent | SpecStaleDetectedEvent | SpecDriftAcknowledgedEvent | SpecDriftRepairedEvent | TaskWorkflowRepairedEvent | TaskRemovedEvent | PrmPatternDetectedEvent | PrmCourseCorrectionInjectedEvent | PrmEscalationTriggeredEvent | PrmHardStopEvent | PrmHardStopDeliveredEvent;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { BackgroundTaskChangeContext, BackgroundWorktreeDescriptor } from '../background/pending-delegations.js';
|
|
2
|
+
import { type TaskEvidence } from '../gate-evidence.js';
|
|
3
|
+
import type { MergeOperationProvenance } from '../worktree/merge.js';
|
|
4
|
+
type CoderSettlementState = 'ABORTED' | 'COMMITTED' | 'DISPATCHED' | 'PREPARED';
|
|
5
|
+
interface CoderSettlementWal {
|
|
6
|
+
version: 1;
|
|
7
|
+
state: CoderSettlementState;
|
|
8
|
+
taskId: string;
|
|
9
|
+
transitionId: string;
|
|
10
|
+
actor: string;
|
|
11
|
+
processId: number;
|
|
12
|
+
runtimeId: string;
|
|
13
|
+
expectedGeneration: number;
|
|
14
|
+
context: BackgroundTaskChangeContext;
|
|
15
|
+
worktree?: BackgroundWorktreeDescriptor;
|
|
16
|
+
observedFiles?: string[];
|
|
17
|
+
mergeProvenance?: MergeOperationProvenance;
|
|
18
|
+
accepted?: boolean;
|
|
19
|
+
testEngineerExempt?: boolean;
|
|
20
|
+
settlementFailed?: boolean;
|
|
21
|
+
cleanupComplete?: boolean;
|
|
22
|
+
recordedAt: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CoderSettlementResult {
|
|
25
|
+
evidence: TaskEvidence;
|
|
26
|
+
accepted: boolean;
|
|
27
|
+
alreadyApplied: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare function parseWal(raw: string): CoderSettlementWal;
|
|
30
|
+
export declare function beginCoderSettlement(options: {
|
|
31
|
+
directory: string;
|
|
32
|
+
taskId: string;
|
|
33
|
+
transitionId: string;
|
|
34
|
+
actor: string;
|
|
35
|
+
expectedGeneration: number;
|
|
36
|
+
context: BackgroundTaskChangeContext;
|
|
37
|
+
worktree?: BackgroundWorktreeDescriptor;
|
|
38
|
+
}): Promise<void>;
|
|
39
|
+
export declare function settleCoderDispatch(options: {
|
|
40
|
+
directory: string;
|
|
41
|
+
taskId: string;
|
|
42
|
+
transitionId: string;
|
|
43
|
+
accepted: boolean;
|
|
44
|
+
testEngineerExempt: boolean;
|
|
45
|
+
settlementFailed?: boolean;
|
|
46
|
+
}): Promise<CoderSettlementResult>;
|
|
47
|
+
export declare function recordCoderMergeProvenance(options: {
|
|
48
|
+
directory: string;
|
|
49
|
+
taskId: string;
|
|
50
|
+
transitionId: string;
|
|
51
|
+
provenance: MergeOperationProvenance;
|
|
52
|
+
observedFiles: string[];
|
|
53
|
+
}): Promise<void>;
|
|
54
|
+
export declare function completeCoderSettlementCleanup(directory: string, taskId: string, transitionId: string): Promise<void>;
|
|
55
|
+
export declare function recoverCoderSettlement(directory: string, taskId: string): Promise<CoderSettlementResult | null>;
|
|
56
|
+
export declare function releaseCoderDispatchOwnership(directory: string, taskId: string, transitionId: string): void;
|
|
57
|
+
export declare function assertNoUnsettledCoderDispatch(directory: string, taskId: string): Promise<void>;
|
|
58
|
+
export declare const _internals: {
|
|
59
|
+
parseWal: typeof parseWal;
|
|
60
|
+
liveDispatches: Set<string>;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { loadPlanJsonOnly } from '../plan/manager.js';
|
|
2
|
+
export interface TaskRepairResult<TPlan> {
|
|
3
|
+
plan: TPlan;
|
|
4
|
+
alreadyApplied: boolean;
|
|
5
|
+
generation: number;
|
|
6
|
+
transitionId: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Lazily finish an exact PREPARED repair before another operation reasons about
|
|
10
|
+
* the task. This reads only the exact per-task WAL path; it never scans.
|
|
11
|
+
*/
|
|
12
|
+
export declare function recoverPreparedTaskRepair(directory: string, taskId: string, actor: string): Promise<TaskRepairResult<NonNullable<Awaited<ReturnType<typeof loadPlanJsonOnly>>>> | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Execute or lazily finish one exact-task repair while the caller holds the
|
|
15
|
+
* plan lock. Lock ordering is therefore always plan -> exact task evidence.
|
|
16
|
+
* The PREPARED marker is written before the plan projection changes, making a
|
|
17
|
+
* retry able to finish a new-plan/old-evidence partial commit without scanning.
|
|
18
|
+
*/
|
|
19
|
+
export declare function repairTaskWorkflowUnderPlanLock<TPlan>(options: {
|
|
20
|
+
directory: string;
|
|
21
|
+
taskId: string;
|
|
22
|
+
actor: string;
|
|
23
|
+
reason: string;
|
|
24
|
+
transitionId: string;
|
|
25
|
+
expectedState: string;
|
|
26
|
+
expectedGeneration: number;
|
|
27
|
+
currentPlanStatus: string;
|
|
28
|
+
currentPlan: TPlan;
|
|
29
|
+
updatePlan: () => Promise<TPlan>;
|
|
30
|
+
}): Promise<TaskRepairResult<TPlan>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Plan } from '../config/plan-schema.js';
|
|
2
|
+
import { type TaskEvidence, withTaskEvidenceTransaction } from '../gate-evidence.js';
|
|
3
|
+
import type { TaskWorkflowState } from '../state.js';
|
|
4
|
+
type TerminalPlanStatus = 'blocked' | 'completed';
|
|
5
|
+
type TerminalWorkflowState = 'blocked' | 'complete';
|
|
6
|
+
type TerminalWalState = 'ABORTED' | 'COMMITTED' | 'PREPARED';
|
|
7
|
+
interface TaskTerminalWal {
|
|
8
|
+
version: 1;
|
|
9
|
+
state: TerminalWalState;
|
|
10
|
+
taskId: string;
|
|
11
|
+
transitionId: string;
|
|
12
|
+
actor: string;
|
|
13
|
+
oldPlanStatus: string;
|
|
14
|
+
newPlanStatus: TerminalPlanStatus;
|
|
15
|
+
oldWorkflowState: TaskWorkflowState;
|
|
16
|
+
newWorkflowState: TerminalWorkflowState;
|
|
17
|
+
generation: number;
|
|
18
|
+
qaExempt: boolean;
|
|
19
|
+
recordedAt: string;
|
|
20
|
+
}
|
|
21
|
+
export interface TaskTerminalResult<TPlan> {
|
|
22
|
+
plan: TPlan;
|
|
23
|
+
evidence: TaskEvidence;
|
|
24
|
+
alreadyApplied: boolean;
|
|
25
|
+
transitionId: string;
|
|
26
|
+
}
|
|
27
|
+
declare function applyTerminalEvidence(transaction: Parameters<Parameters<typeof withTaskEvidenceTransaction>[3]>[0], wal: TaskTerminalWal): Promise<TaskEvidence>;
|
|
28
|
+
/** Narrow dependency-injection seam for crash-window failure tests. */
|
|
29
|
+
export declare const _internals: {
|
|
30
|
+
applyTerminalEvidence: typeof applyTerminalEvidence;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Lazily close the only recoverable terminal crash window: the plan was
|
|
34
|
+
* persisted to completed/blocked after PREPARED, but exact-task evidence was
|
|
35
|
+
* not. A PREPARED record whose plan and evidence are both still old is safely
|
|
36
|
+
* aborted rather than executing an abandoned status request.
|
|
37
|
+
*/
|
|
38
|
+
export declare function recoverPreparedTaskTerminal(directory: string, taskId: string, actor: string): Promise<TaskTerminalResult<Plan> | null>;
|
|
39
|
+
/** Commit a terminal plan/evidence transition while the caller holds plan.json. */
|
|
40
|
+
export declare function commitTaskTerminalUnderPlanLock<TPlan>(options: {
|
|
41
|
+
directory: string;
|
|
42
|
+
taskId: string;
|
|
43
|
+
actor: string;
|
|
44
|
+
transitionId: string;
|
|
45
|
+
currentPlanStatus: string;
|
|
46
|
+
targetStatus: TerminalPlanStatus;
|
|
47
|
+
qaExempt: boolean;
|
|
48
|
+
currentPlan: TPlan;
|
|
49
|
+
validateEvidence?: (evidence: TaskEvidence | null) => Promise<void> | void;
|
|
50
|
+
updatePlan: () => Promise<TPlan>;
|
|
51
|
+
}): Promise<TaskTerminalResult<TPlan>>;
|
|
52
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.140.
|
|
3
|
+
"version": "7.140.6",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-a1fjhx4w.js";
|
|
5
|
-
import"./index-41hkt36g.js";
|
|
6
|
-
import"./index-c5kr20nz.js";
|
|
7
|
-
import"./index-ysa38bnr.js";
|
|
8
|
-
import"./index-arza4m4j.js";
|
|
9
|
-
import"./index-hz0refz4.js";
|
|
10
|
-
import"./index-w4etfamq.js";
|
|
11
|
-
import"./index-y8552snf.js";
|
|
12
|
-
import"./index-4905hd2m.js";
|
|
13
|
-
import"./index-134d35c1.js";
|
|
14
|
-
import"./index-hfjvepk2.js";
|
|
15
|
-
import"./index-v1an91bq.js";
|
|
16
|
-
import"./index-mpytsq6k.js";
|
|
17
|
-
import"./index-v2xrer41.js";
|
|
18
|
-
import"./index-c8s9a3zh.js";
|
|
19
|
-
import"./index-9ss2m4rs.js";
|
|
20
|
-
import"./index-bn17ycxn.js";
|
|
21
|
-
import"./index-ryq97w1x.js";
|
|
22
|
-
import"./index-556ja8an.js";
|
|
23
|
-
import"./index-wk8s1m7b.js";
|
|
24
|
-
import"./index-1kyex7z2.js";
|
|
25
|
-
import"./index-b8zgtz81.js";
|
|
26
|
-
import"./index-v3x7j9ey.js";
|
|
27
|
-
import"./index-rrb6cz2f.js";
|
|
28
|
-
import"./index-74hpm6sh.js";
|
|
29
|
-
import"./index-dtyeabmj.js";
|
|
30
|
-
import"./index-8fwhhayc.js";
|
|
31
|
-
import"./index-q1exe2b3.js";
|
|
32
|
-
import"./index-2rb3x0fk.js";
|
|
33
|
-
import"./index-k46me75h.js";
|
|
34
|
-
import"./index-ee3x66a5.js";
|
|
35
|
-
import"./index-7begd9aq.js";
|
|
36
|
-
import"./index-dtam929z.js";
|
|
37
|
-
import"./index-rtry5xyf.js";
|
|
38
|
-
import"./index-vrmkg8fm.js";
|
|
39
|
-
import"./index-ae75rja9.js";
|
|
40
|
-
import"./index-mrpfd1jx.js";
|
|
41
|
-
import"./index-4hp8nvwb.js";
|
|
42
|
-
import"./index-ed5ykebp.js";
|
|
43
|
-
import"./index-35qep0v7.js";
|
|
44
|
-
import"./index-7g4c7s5r.js";
|
|
45
|
-
import"./index-4nt52yr9.js";
|
|
46
|
-
import"./index-pp5m7xga.js";
|
|
47
|
-
import"./index-gprxjmm7.js";
|
|
48
|
-
import"./index-n832052r.js";
|
|
49
|
-
import"./index-d181x9zr.js";
|
|
50
|
-
import"./index-4rhhvd1a.js";
|
|
51
|
-
import"./index-zgwm4ryv.js";
|
|
52
|
-
import"./index-tj04dj06.js";
|
|
53
|
-
import"./index-hxvkfx6t.js";
|
|
54
|
-
import"./index-zjygnfay.js";
|
|
55
|
-
import"./index-bk5tah7q.js";
|
|
56
|
-
import"./index-bfhwtdsw.js";
|
|
57
|
-
import"./index-bpmtbmy9.js";
|
|
58
|
-
import"./index-a76rekgs.js";
|
|
59
|
-
export {
|
|
60
|
-
createCuratorLLMDelegate
|
|
61
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
DEFAULT_REQUIRED_GATES,
|
|
4
|
-
deriveRequiredGates,
|
|
5
|
-
expandRequiredGates,
|
|
6
|
-
hasPassedAllGates,
|
|
7
|
-
isValidTaskId,
|
|
8
|
-
readTaskEvidence,
|
|
9
|
-
readTaskEvidenceRaw,
|
|
10
|
-
recordAgentDispatch,
|
|
11
|
-
recordGateEvidence
|
|
12
|
-
} from "./index-dtyeabmj.js";
|
|
13
|
-
import"./index-4hp8nvwb.js";
|
|
14
|
-
import"./index-ed5ykebp.js";
|
|
15
|
-
import"./index-35qep0v7.js";
|
|
16
|
-
import"./index-7g4c7s5r.js";
|
|
17
|
-
import"./index-4nt52yr9.js";
|
|
18
|
-
import"./index-zgwm4ryv.js";
|
|
19
|
-
import"./index-bfhwtdsw.js";
|
|
20
|
-
import"./index-bpmtbmy9.js";
|
|
21
|
-
import"./index-a76rekgs.js";
|
|
22
|
-
export {
|
|
23
|
-
recordGateEvidence,
|
|
24
|
-
recordAgentDispatch,
|
|
25
|
-
readTaskEvidenceRaw,
|
|
26
|
-
readTaskEvidence,
|
|
27
|
-
isValidTaskId,
|
|
28
|
-
hasPassedAllGates,
|
|
29
|
-
expandRequiredGates,
|
|
30
|
-
deriveRequiredGates,
|
|
31
|
-
DEFAULT_REQUIRED_GATES
|
|
32
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
handleGuardrailExplain
|
|
4
|
-
} from "./index-s8g7jh1k.js";
|
|
5
|
-
import"./index-a1fjhx4w.js";
|
|
6
|
-
import"./index-41hkt36g.js";
|
|
7
|
-
import"./index-c5kr20nz.js";
|
|
8
|
-
import"./index-ysa38bnr.js";
|
|
9
|
-
import"./index-arza4m4j.js";
|
|
10
|
-
import"./index-hz0refz4.js";
|
|
11
|
-
import"./index-w4etfamq.js";
|
|
12
|
-
import"./index-y8552snf.js";
|
|
13
|
-
import"./index-4905hd2m.js";
|
|
14
|
-
import"./index-134d35c1.js";
|
|
15
|
-
import"./index-hfjvepk2.js";
|
|
16
|
-
import"./index-v1an91bq.js";
|
|
17
|
-
import"./index-mpytsq6k.js";
|
|
18
|
-
import"./index-v2xrer41.js";
|
|
19
|
-
import"./index-c8s9a3zh.js";
|
|
20
|
-
import"./index-9ss2m4rs.js";
|
|
21
|
-
import"./index-bn17ycxn.js";
|
|
22
|
-
import"./index-ryq97w1x.js";
|
|
23
|
-
import"./index-556ja8an.js";
|
|
24
|
-
import"./index-wk8s1m7b.js";
|
|
25
|
-
import"./index-1kyex7z2.js";
|
|
26
|
-
import"./index-b8zgtz81.js";
|
|
27
|
-
import"./index-v3x7j9ey.js";
|
|
28
|
-
import"./index-rrb6cz2f.js";
|
|
29
|
-
import"./index-74hpm6sh.js";
|
|
30
|
-
import"./index-dtyeabmj.js";
|
|
31
|
-
import"./index-8fwhhayc.js";
|
|
32
|
-
import"./index-q1exe2b3.js";
|
|
33
|
-
import"./index-2rb3x0fk.js";
|
|
34
|
-
import"./index-k46me75h.js";
|
|
35
|
-
import"./index-ee3x66a5.js";
|
|
36
|
-
import"./index-7begd9aq.js";
|
|
37
|
-
import"./index-dtam929z.js";
|
|
38
|
-
import"./index-rtry5xyf.js";
|
|
39
|
-
import"./index-vrmkg8fm.js";
|
|
40
|
-
import"./index-ae75rja9.js";
|
|
41
|
-
import"./index-mrpfd1jx.js";
|
|
42
|
-
import"./index-4hp8nvwb.js";
|
|
43
|
-
import"./index-ed5ykebp.js";
|
|
44
|
-
import"./index-35qep0v7.js";
|
|
45
|
-
import"./index-7g4c7s5r.js";
|
|
46
|
-
import"./index-4nt52yr9.js";
|
|
47
|
-
import"./index-pp5m7xga.js";
|
|
48
|
-
import"./index-gprxjmm7.js";
|
|
49
|
-
import"./index-n832052r.js";
|
|
50
|
-
import"./index-d181x9zr.js";
|
|
51
|
-
import"./index-4rhhvd1a.js";
|
|
52
|
-
import"./index-zgwm4ryv.js";
|
|
53
|
-
import"./index-tj04dj06.js";
|
|
54
|
-
import"./index-hxvkfx6t.js";
|
|
55
|
-
import"./index-zjygnfay.js";
|
|
56
|
-
import"./index-bk5tah7q.js";
|
|
57
|
-
import"./index-bfhwtdsw.js";
|
|
58
|
-
import"./index-bpmtbmy9.js";
|
|
59
|
-
import"./index-a76rekgs.js";
|
|
60
|
-
export {
|
|
61
|
-
handleGuardrailExplain
|
|
62
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
exports_external,
|
|
4
|
-
init_zod
|
|
5
|
-
} from "./index-bpmtbmy9.js";
|
|
6
|
-
|
|
7
|
-
// src/config/plan-schema.ts
|
|
8
|
-
init_zod();
|
|
9
|
-
var ExecutionProfileSchema = exports_external.object({
|
|
10
|
-
parallelization_enabled: exports_external.boolean().default(false),
|
|
11
|
-
max_concurrent_tasks: exports_external.number().int().min(1).max(64).default(10),
|
|
12
|
-
council_parallel: exports_external.boolean().default(true),
|
|
13
|
-
locked: exports_external.boolean().default(false),
|
|
14
|
-
auto_proceed: exports_external.boolean().default(false),
|
|
15
|
-
commit_after_each_completed_task: exports_external.boolean().default(false)
|
|
16
|
-
});
|
|
17
|
-
var TaskStatusSchema = exports_external.enum([
|
|
18
|
-
"pending",
|
|
19
|
-
"in_progress",
|
|
20
|
-
"completed",
|
|
21
|
-
"blocked",
|
|
22
|
-
"closed"
|
|
23
|
-
]);
|
|
24
|
-
var TaskSizeSchema = exports_external.enum(["small", "medium", "large"]);
|
|
25
|
-
var PhaseStatusSchema = exports_external.enum([
|
|
26
|
-
"pending",
|
|
27
|
-
"in_progress",
|
|
28
|
-
"complete",
|
|
29
|
-
"completed",
|
|
30
|
-
"blocked",
|
|
31
|
-
"closed"
|
|
32
|
-
]);
|
|
33
|
-
var MigrationStatusSchema = exports_external.enum([
|
|
34
|
-
"native",
|
|
35
|
-
"migrated",
|
|
36
|
-
"migration_failed"
|
|
37
|
-
]);
|
|
38
|
-
var TaskSchema = exports_external.object({
|
|
39
|
-
id: exports_external.string(),
|
|
40
|
-
phase: exports_external.number().int().min(1),
|
|
41
|
-
status: TaskStatusSchema.default("pending"),
|
|
42
|
-
size: TaskSizeSchema.default("small"),
|
|
43
|
-
description: exports_external.string().min(1),
|
|
44
|
-
depends: exports_external.array(exports_external.string()).default([]),
|
|
45
|
-
acceptance: exports_external.string().optional(),
|
|
46
|
-
files_touched: exports_external.array(exports_external.string()).default([]),
|
|
47
|
-
evidence_path: exports_external.string().optional(),
|
|
48
|
-
blocked_reason: exports_external.string().optional(),
|
|
49
|
-
fr_refs: exports_external.array(exports_external.string()).optional()
|
|
50
|
-
});
|
|
51
|
-
var PhaseSchema = exports_external.object({
|
|
52
|
-
id: exports_external.number().int().min(1),
|
|
53
|
-
name: exports_external.string().min(1),
|
|
54
|
-
status: PhaseStatusSchema.default("pending"),
|
|
55
|
-
tasks: exports_external.array(TaskSchema).default([]),
|
|
56
|
-
type: exports_external.enum(["code", "non-code"]).optional(),
|
|
57
|
-
required_agents: exports_external.array(exports_external.string()).optional()
|
|
58
|
-
});
|
|
59
|
-
var PlanSchema = exports_external.object({
|
|
60
|
-
schema_version: exports_external.literal("1.0.0"),
|
|
61
|
-
title: exports_external.string().min(1),
|
|
62
|
-
swarm: exports_external.string().min(1),
|
|
63
|
-
current_phase: exports_external.number().int().min(1).optional(),
|
|
64
|
-
phases: exports_external.array(PhaseSchema).min(1),
|
|
65
|
-
migration_status: MigrationStatusSchema.optional(),
|
|
66
|
-
specMtime: exports_external.string().optional(),
|
|
67
|
-
specHash: exports_external.string().optional(),
|
|
68
|
-
execution_profile: ExecutionProfileSchema.optional()
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export { ExecutionProfileSchema, TaskStatusSchema, TaskSizeSchema, PhaseStatusSchema, MigrationStatusSchema, TaskSchema, PhaseSchema, PlanSchema };
|