opencode-swarm 7.180.1 → 7.181.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/README.md +14 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-b57917a3.js → coder-settlement-ee8bmg83.js} +4 -4
- package/dist/cli/{config-doctor-ebat06eq.js → config-doctor-mnmxzg86.js} +3 -3
- package/dist/cli/{core-8k41qh0d.js → core-m9yymv84.js} +2 -2
- package/dist/cli/{curator-8yb3qkxs.js → curator-7nmwpcxy.js} +23 -23
- package/dist/cli/{curator-drift-3av9hffm.js → curator-drift-q42fr0c9.js} +5 -5
- package/dist/cli/{curator-llm-factory-htgqafq0.js → curator-llm-factory-s1b2p162.js} +23 -23
- package/dist/cli/{evidence-summary-service-s258ea5t.js → evidence-summary-service-m2b0mxmr.js} +9 -9
- package/dist/cli/{gate-evidence-fqxpf3xz.js → gate-evidence-4y2x85g4.js} +3 -3
- package/dist/cli/{guardrail-explain-r0qxa4zy.js → guardrail-explain-nvmf3y7j.js} +24 -24
- package/dist/cli/{guardrail-log-j2wdmvmy.js → guardrail-log-202rfw7b.js} +4 -4
- package/dist/cli/{guardrail-reset-wb2eqbvf.js → guardrail-reset-7nt7z18b.js} +23 -23
- package/dist/cli/{hive-promoter-kxpc3r17.js → hive-promoter-segsykns.js} +23 -23
- package/dist/cli/{index-z2zrcecq.js → index-3qhx9dx0.js} +2500 -1345
- package/dist/cli/{index-3bbjpbmn.js → index-4h54k8h3.js} +2 -2
- package/dist/cli/{index-v7fx8q3z.js → index-908yea8v.js} +1 -1
- package/dist/cli/{index-v0par978.js → index-9j5jjqks.js} +1 -1
- package/dist/cli/{index-n5carmk0.js → index-a7z6jygf.js} +2 -2
- package/dist/cli/{index-bhmrgbyv.js → index-b2zbak7v.js} +6 -2
- package/dist/cli/{index-xj5z92qz.js → index-basp4sxt.js} +1 -1
- package/dist/cli/{index-yf7tdhpz.js → index-cyyvc1cd.js} +1 -1
- package/dist/cli/{index-wx3wz7ya.js → index-edb3sgxg.js} +2 -2
- package/dist/cli/{index-2q5m4m2r.js → index-g5wjasjn.js} +3 -3
- package/dist/cli/{index-rp4akjrm.js → index-g9ax7jyf.js} +15 -4
- package/dist/cli/{index-dzm5nfh7.js → index-gqe4sm73.js} +1 -1
- package/dist/cli/{index-855qxtdm.js → index-gydvqmtg.js} +4 -4
- package/dist/cli/{index-3zvp7t5d.js → index-hxe22tx3.js} +5 -5
- package/dist/cli/{index-tnhk72rs.js → index-jqjdejqe.js} +2 -2
- package/dist/cli/{index-z2xf153n.js → index-kjstkfgh.js} +3 -3
- package/dist/cli/{index-rejpbgxp.js → index-m65tnv4j.js} +1 -1
- package/dist/cli/{index-600aqfvm.js → index-na3br902.js} +23 -23
- package/dist/cli/{index-cj64vp08.js → index-pee6ykkg.js} +1 -1
- package/dist/cli/{index-xd0e4amf.js → index-q1prchye.js} +5 -5
- package/dist/cli/{index-k5vwnnym.js → index-r6p6x0pb.js} +16 -7
- package/dist/cli/{index-k6f0nryj.js → index-rw0wy2y7.js} +3 -3
- package/dist/cli/{index-gw5egd8j.js → index-rxs0rrv1.js} +25 -25
- package/dist/cli/{index-g062wnw1.js → index-tczqm089.js} +1 -1
- package/dist/cli/{index-50v672wd.js → index-vs83acgx.js} +3 -3
- package/dist/cli/{index-w872yykk.js → index-y4zjbrqs.js} +4 -0
- package/dist/cli/{index-gy3tcmk4.js → index-yhx94xpr.js} +4 -4
- package/dist/cli/{index-as4xaams.js → index-ztph1v9m.js} +1 -1
- package/dist/cli/index.js +24 -24
- package/dist/cli/{knowledge-escalator-n30h6ran.js → knowledge-escalator-r9chkas8.js} +7 -7
- package/dist/cli/{knowledge-events-k2qqase2.js → knowledge-events-5j2n6age.js} +5 -5
- package/dist/cli/{knowledge-store-zy226v5a.js → knowledge-store-mybx9bmx.js} +1 -1
- package/dist/cli/{knowledge-validator-qgyxdpc9.js → knowledge-validator-v1sj9tv4.js} +2 -2
- package/dist/cli/{mcp-pj7acze3.js → mcp-7yx5230p.js} +1 -1
- package/dist/cli/{model-preflight-61xgqwcs.js → model-preflight-ckvv1arg.js} +1 -1
- package/dist/cli/{pending-delegations-sgnnyw55.js → pending-delegations-amjfmc7t.js} +2 -2
- package/dist/cli/{pr-subscriptions-7fb7xm3q.js → pr-subscriptions-rctqs0gk.js} +1 -1
- package/dist/cli/{pr-workflow-gate-5dqcrkz6.js → pr-workflow-gate-9he8ys4e.js} +23 -23
- package/dist/cli/{runner-p9hstpxn.js → runner-tzgwvvn1.js} +1 -1
- package/dist/cli/{scan-cursor-jc7wwb7e.js → scan-cursor-pxqkphrh.js} +2 -2
- package/dist/cli/{schema-5k68crjb.js → schema-n8pk3f80.js} +6 -2
- package/dist/cli/{scope-persistence-xeg4khwk.js → scope-persistence-p992x2yd.js} +6 -6
- package/dist/cli/{server-ej6tzd7t.js → server-ywrd2q6z.js} +23 -23
- package/dist/cli/{skill-generator-nspt9b3n.js → skill-generator-cdppktqx.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-3rs3zpaa.js → snapshot-coordination-init-z42ev5g9.js} +23 -23
- package/dist/cli/{speckit-checkoff-dqf636ya.js → speckit-checkoff-6ynv46bn.js} +4 -4
- package/dist/cli/{worktree-collision-ownership-rbzgbvj4.js → worktree-collision-ownership-65971p3m.js} +2 -2
- package/dist/cli/{worktree-isolation-6zpnzr70.js → worktree-isolation-xf7dfc46.js} +23 -23
- package/dist/commands/harness-opt.d.ts +44 -0
- package/dist/commands/registry.d.ts +56 -0
- package/dist/config/schema.d.ts +20 -0
- package/dist/gate-evidence.d.ts +21 -0
- package/dist/harness/store.d.ts +9 -0
- package/dist/index.js +263 -251
- package/dist/services/harness-optimizer/comparative.d.ts +81 -0
- package/dist/services/harness-optimizer/controller.d.ts +126 -0
- package/dist/services/harness-optimizer/execution.d.ts +68 -0
- package/dist/services/harness-optimizer/index.d.ts +10 -0
- package/dist/services/harness-optimizer/lineage.d.ts +70 -0
- package/dist/services/harness-optimizer/manifest.d.ts +65 -0
- package/dist/services/harness-optimizer/oracle.d.ts +40 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/recover-rework-task.d.ts +5 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/dist/workflow/rework-recovery.d.ts +38 -0
- package/dist/workflow/stage-a-repair.d.ts +42 -0
- package/opencode-swarm.schema.json +42 -0
- package/package.json +1 -1
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-3qhx9dx0.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-jqjdejqe.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -4660,7 +4660,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4660
4660
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4661
4661
|
if (candidates.length === 0)
|
|
4662
4662
|
return 0;
|
|
4663
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4663
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-ee8bmg83.js");
|
|
4664
4664
|
let transferred = 0;
|
|
4665
4665
|
for (const record of candidates) {
|
|
4666
4666
|
try {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
SWARM_WORKTREE_DIR_NAME,
|
|
22
22
|
init_constants
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-y4zjbrqs.js";
|
|
24
24
|
import {
|
|
25
25
|
init_logger,
|
|
26
26
|
log
|
|
@@ -242,7 +242,7 @@ var _internals2 = {
|
|
|
242
242
|
symlinkSync: fs2.symlinkSync
|
|
243
243
|
},
|
|
244
244
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
245
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
245
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-p992x2yd.js");
|
|
246
246
|
return realWrite(directory, taskId, files);
|
|
247
247
|
},
|
|
248
248
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
PluginConfigSchema,
|
|
13
13
|
init_schema,
|
|
14
14
|
stripKnownSwarmPrefix
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-g9ax7jyf.js";
|
|
16
16
|
import {
|
|
17
17
|
ALL_AGENT_NAMES,
|
|
18
18
|
TOOL_NAME_SET,
|
|
19
19
|
init_constants,
|
|
20
20
|
init_tool_metadata
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-y4zjbrqs.js";
|
|
22
22
|
import {
|
|
23
23
|
log
|
|
24
24
|
} from "./index-zgwm4ryv.js";
|
|
@@ -935,6 +935,10 @@ function validateConfigKey(path2, value) {
|
|
|
935
935
|
emitObjectTypeMismatch("harness_evolution", value, findings);
|
|
936
936
|
break;
|
|
937
937
|
}
|
|
938
|
+
case "harness_opt": {
|
|
939
|
+
emitObjectTypeMismatch("harness_opt", value, findings);
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
938
942
|
case "phase_complete": {
|
|
939
943
|
emitObjectTypeMismatch("phase_complete", value, findings);
|
|
940
944
|
break;
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
init_loader,
|
|
27
27
|
loadPluginConfig
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-basp4sxt.js";
|
|
29
29
|
import {
|
|
30
30
|
init_package,
|
|
31
31
|
package_default
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-g9ax7jyf.js";
|
|
33
33
|
import {
|
|
34
34
|
criticalWarn,
|
|
35
35
|
init_logger,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./index-7g4c7s5r.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPluginConfigWithMeta
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-basp4sxt.js";
|
|
30
30
|
import {
|
|
31
31
|
KnowledgeConfigSchema,
|
|
32
32
|
init_schema
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-g9ax7jyf.js";
|
|
34
34
|
import {
|
|
35
35
|
init_logger,
|
|
36
36
|
warn
|
|
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
let bumps = 0;
|
|
2815
2815
|
if (deltas.length > 0) {
|
|
2816
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2816
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-mybx9bmx.js");
|
|
2817
2817
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2818
2818
|
}
|
|
2819
2819
|
return {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ALL_AGENT_NAMES,
|
|
4
4
|
SUMMARIZER_EXEMPT_TOOL_NAMES,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-y4zjbrqs.js";
|
|
7
7
|
import {
|
|
8
8
|
OUTCOME_BLOCK_THRESHOLD,
|
|
9
9
|
init_knowledge_types
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.
|
|
24
|
+
version: "7.181.1",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -327,7 +327,7 @@ function resolveExternalSkillsConfig(input) {
|
|
|
327
327
|
};
|
|
328
328
|
return merged;
|
|
329
329
|
}
|
|
330
|
-
var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
|
|
330
|
+
var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, HarnessOptConfigSchema, DEFAULT_HARNESS_OPT_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
|
|
331
331
|
var init_schema = __esm(() => {
|
|
332
332
|
init_zod();
|
|
333
333
|
init_package();
|
|
@@ -1305,6 +1305,16 @@ var init_schema = __esm(() => {
|
|
|
1305
1305
|
max_output_bytes: exports_external.number().int().min(1024).max(1048576).default(262144)
|
|
1306
1306
|
}).strict();
|
|
1307
1307
|
DEFAULT_HARNESS_EVOLUTION_CONFIG = Object.freeze(HarnessEvolutionConfigSchema.parse({}));
|
|
1308
|
+
HarnessOptConfigSchema = exports_external.object({
|
|
1309
|
+
enabled: exports_external.boolean().default(false),
|
|
1310
|
+
max_rounds: exports_external.number().int().min(1).max(50).default(5),
|
|
1311
|
+
max_transient_retries: exports_external.number().int().min(0).max(10).default(2),
|
|
1312
|
+
max_wall_clock_ms: exports_external.number().int().min(1e4).max(86400000).default(3600000),
|
|
1313
|
+
max_spend_usd: exports_external.number().finite().nonnegative().max(1000).optional(),
|
|
1314
|
+
run_ablation_arm: exports_external.boolean().default(true),
|
|
1315
|
+
run_simple_agent_arm: exports_external.boolean().default(true)
|
|
1316
|
+
}).strict();
|
|
1317
|
+
DEFAULT_HARNESS_OPT_CONFIG = Object.freeze(HarnessOptConfigSchema.parse({}));
|
|
1308
1318
|
SkillImproverConfigSchema = exports_external.object({
|
|
1309
1319
|
enabled: exports_external.boolean().default(false),
|
|
1310
1320
|
model: exports_external.string().nullable().default(null),
|
|
@@ -1776,6 +1786,7 @@ var init_schema = __esm(() => {
|
|
|
1776
1786
|
skillPropagation: SkillPropagationConfigSchema.optional().describe("Skill propagation gate/injection settings."),
|
|
1777
1787
|
skill_improver: SkillImproverConfigSchema.optional().describe("Low-frequency, expensive-model skill improvement loop (issue #629, v2)."),
|
|
1778
1788
|
harness_evolution: HarnessEvolutionConfigSchema.optional().describe("Declarative, non-executing HarnessOpt mutation policy (issue #1825)."),
|
|
1789
|
+
harness_opt: HarnessOptConfigSchema.optional().describe("Governed HarnessOpt optimization capstone (issue #2503). Disabled by default; /swarm harness-opt run requires enabled: true plus --confirm."),
|
|
1779
1790
|
spec_writer: SpecWriterConfigSchema.optional().describe("Spec writer agent (v2) \u2014 independent model for .swarm/spec.md authorship."),
|
|
1780
1791
|
tool_output: exports_external.object({
|
|
1781
1792
|
truncation_enabled: exports_external.boolean().default(true),
|
|
@@ -1967,4 +1978,4 @@ var init_schema = __esm(() => {
|
|
|
1967
1978
|
});
|
|
1968
1979
|
});
|
|
1969
1980
|
|
|
1970
|
-
export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
|
|
1981
|
+
export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, HarnessOptConfigSchema, DEFAULT_HARNESS_OPT_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, PrFeedbackLoopConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, ReviewRoutingConfigSchema, DEFAULT_REVIEW_ROUTING_CONFIG, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DashboardConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-rw0wy2y7.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
loadPluginConfigWithMeta,
|
|
47
47
|
loadPluginConfigWithMetaAsync,
|
|
48
48
|
resetConfigAdvisoryDedup
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-basp4sxt.js";
|
|
50
50
|
import"./index-zxdawwc7.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
TurboConfigSchema,
|
|
73
73
|
WorktreeIsolationConfigSchema,
|
|
74
74
|
resolveAutoReviewConfig
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-g9ax7jyf.js";
|
|
76
76
|
import {
|
|
77
77
|
ALL_AGENT_NAMES,
|
|
78
78
|
ALL_SUBAGENT_NAMES,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
QA_AGENTS,
|
|
83
83
|
isQAAgent,
|
|
84
84
|
isSubagent
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-y4zjbrqs.js";
|
|
86
86
|
import"./index-bk5tah7q.js";
|
|
87
87
|
import"./index-gknz3bv1.js";
|
|
88
88
|
import"./index-zpsr8rpc.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-g5wjasjn.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-yhx94xpr.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-v1sj9tv4.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-n8pk3f80.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-gydvqmtg.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
init_schema,
|
|
10
10
|
stripKnownSwarmPrefix
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-g9ax7jyf.js";
|
|
12
12
|
import {
|
|
13
13
|
init_constants
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-y4zjbrqs.js";
|
|
15
15
|
import {
|
|
16
16
|
getPathFlavor,
|
|
17
17
|
init_path_identity,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-r6p6x0pb.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
20
|
} from "./index-gc6h1fmf.js";
|
|
@@ -499,7 +499,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
|
|
|
499
499
|
awaitingMergeByCallID,
|
|
500
500
|
cleanupStandardWorktreeForCallId,
|
|
501
501
|
standardWorktreeByCallID
|
|
502
|
-
} = await import("./worktree-isolation-
|
|
502
|
+
} = await import("./worktree-isolation-xf7dfc46.js");
|
|
503
503
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
504
504
|
if (hasResidue)
|
|
505
505
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -631,7 +631,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
631
631
|
awaitingMergeByCallID,
|
|
632
632
|
finishStandardWorktreeDispatch,
|
|
633
633
|
standardWorktreeByCallID
|
|
634
|
-
} = await import("./worktree-isolation-
|
|
634
|
+
} = await import("./worktree-isolation-xf7dfc46.js");
|
|
635
635
|
const descriptor = wal.worktree;
|
|
636
636
|
const reconstructedDispatch = {
|
|
637
637
|
callID: descriptor.callID,
|
|
@@ -1346,4 +1346,4 @@ function createModelEvaluationExecutor(dispatcher, parentSessionId) {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
1349
|
-
export { resolveExecutableFromPath, runExternalTool, pLimit, captureWorkingTreeFingerprint, runEvaluation, _internals3 as _internals, createModelEvaluationExecutor };
|
|
1349
|
+
export { resolveExecutableFromPath, runExternalTool, pLimit, captureWorkingTreeFingerprint, withDisposableWorktree, runEvaluation, _internals3 as _internals, createModelEvaluationExecutor };
|
|
@@ -23,46 +23,46 @@ import {
|
|
|
23
23
|
resolveFallbackModel,
|
|
24
24
|
resolvePrimaryAgentNames,
|
|
25
25
|
stripSwarmPrefix
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-3qhx9dx0.js";
|
|
27
|
+
import"./index-jqjdejqe.js";
|
|
28
28
|
import"./index-hamqvzqn.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-m65tnv4j.js";
|
|
30
30
|
import"./index-nhxykfyy.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-b2zbak7v.js";
|
|
32
|
+
import"./index-q1prchye.js";
|
|
33
33
|
import"./index-s0zgz4p1.js";
|
|
34
34
|
import"./index-txdagbh7.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-tczqm089.js";
|
|
36
36
|
import"./index-6b295cas.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
37
|
+
import"./index-vs83acgx.js";
|
|
38
|
+
import"./index-hxe22tx3.js";
|
|
39
|
+
import"./index-cyyvc1cd.js";
|
|
40
40
|
import {
|
|
41
41
|
createExplorerAgent
|
|
42
42
|
} from "./index-rdec0y3z.js";
|
|
43
43
|
import"./index-y30y1rkg.js";
|
|
44
44
|
import"./index-cjapb4hy.js";
|
|
45
45
|
import"./index-zsrtt42s.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-kjstkfgh.js";
|
|
47
47
|
import"./index-bdpgfep1.js";
|
|
48
48
|
import"./index-92m05mew.js";
|
|
49
49
|
import"./index-pt7h91zc.js";
|
|
50
50
|
import"./index-q7sjgr1y.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
51
|
+
import"./index-908yea8v.js";
|
|
52
|
+
import"./index-r6p6x0pb.js";
|
|
53
|
+
import"./index-a7z6jygf.js";
|
|
54
|
+
import"./index-9j5jjqks.js";
|
|
55
|
+
import"./index-g5wjasjn.js";
|
|
56
56
|
import"./index-gc6h1fmf.js";
|
|
57
57
|
import"./index-2s7dvzff.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-gqe4sm73.js";
|
|
59
59
|
import"./index-6gcxgx84.js";
|
|
60
60
|
import"./index-rtry5xyf.js";
|
|
61
|
-
import"./index-
|
|
61
|
+
import"./index-rw0wy2y7.js";
|
|
62
62
|
import"./index-frcemc0b.js";
|
|
63
63
|
import"./index-0725jpp7.js";
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
64
|
+
import"./index-pee6ykkg.js";
|
|
65
|
+
import"./index-edb3sgxg.js";
|
|
66
66
|
import"./index-38cfx8g8.js";
|
|
67
67
|
import"./index-91dhg3wr.js";
|
|
68
68
|
import"./index-vmthakz0.js";
|
|
@@ -70,7 +70,7 @@ import"./index-bv4b8tpa.js";
|
|
|
70
70
|
import"./index-rdm3px0g.js";
|
|
71
71
|
import"./index-ry16d01s.js";
|
|
72
72
|
import"./index-516j9vsk.js";
|
|
73
|
-
import"./index-
|
|
73
|
+
import"./index-yhx94xpr.js";
|
|
74
74
|
import"./index-vzm6zre7.js";
|
|
75
75
|
import"./index-ae75rja9.js";
|
|
76
76
|
import"./index-12ewkms0.js";
|
|
@@ -82,10 +82,10 @@ import"./index-ejhxgyvm.js";
|
|
|
82
82
|
import"./index-7g4c7s5r.js";
|
|
83
83
|
import"./index-989v83pb.js";
|
|
84
84
|
import"./index-gx2vp8gx.js";
|
|
85
|
-
import"./index-
|
|
85
|
+
import"./index-basp4sxt.js";
|
|
86
86
|
import"./index-zxdawwc7.js";
|
|
87
|
-
import"./index-
|
|
88
|
-
import"./index-
|
|
87
|
+
import"./index-g9ax7jyf.js";
|
|
88
|
+
import"./index-y4zjbrqs.js";
|
|
89
89
|
import"./index-bk5tah7q.js";
|
|
90
90
|
import"./index-gknz3bv1.js";
|
|
91
91
|
import"./index-zpsr8rpc.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./index-s0zgz4p1.js";
|
|
7
7
|
import {
|
|
8
8
|
readEffectiveSpecSync
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-tczqm089.js";
|
|
10
10
|
import {
|
|
11
11
|
validateWorkspaceRoot
|
|
12
12
|
} from "./index-6b295cas.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-r6p6x0pb.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
replayFromLedgerWithStatus,
|
|
59
59
|
takeSnapshotEvent,
|
|
60
60
|
takeSnapshotWithRetry
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-edb3sgxg.js";
|
|
62
62
|
import {
|
|
63
63
|
appendCoreEventSync
|
|
64
64
|
} from "./index-38cfx8g8.js";
|
|
@@ -2940,7 +2940,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
2940
2940
|
if (status === "completed") {
|
|
2941
2941
|
try {
|
|
2942
2942
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
2943
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
2943
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-6ynv46bn.js");
|
|
2944
2944
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
2945
2945
|
taskId,
|
|
2946
2946
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -2965,7 +2965,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
2965
2965
|
break;
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
|
-
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-
|
|
2968
|
+
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-p992x2yd.js");
|
|
2969
2969
|
const canonicalScope = readDeclaredScopeFilesFromBindings({
|
|
2970
2970
|
directory,
|
|
2971
2971
|
taskId,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-a7z6jygf.js";
|
|
6
6
|
import {
|
|
7
7
|
validateSwarmPath
|
|
8
8
|
} from "./index-gc6h1fmf.js";
|
|
@@ -1783,7 +1783,8 @@ var TaskWorkflowMetadataSchema = exports_external.object({
|
|
|
1783
1783
|
lastOutcome: exports_external.enum(TASK_WORKFLOW_OUTCOMES).default("none"),
|
|
1784
1784
|
lastTransitionId: exports_external.string().min(1).nullable().optional().default(null),
|
|
1785
1785
|
updatedAt: exports_external.string(),
|
|
1786
|
-
forcedCompletion: exports_external.boolean().optional()
|
|
1786
|
+
forcedCompletion: exports_external.boolean().optional(),
|
|
1787
|
+
supervisedRecovery: exports_external.boolean().optional()
|
|
1787
1788
|
});
|
|
1788
1789
|
var TaskEvidenceSchema = exports_external.object({
|
|
1789
1790
|
taskId: exports_external.string(),
|
|
@@ -1934,7 +1935,8 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
|
|
|
1934
1935
|
lastOutcome: outcome,
|
|
1935
1936
|
lastTransitionId: event.transitionId ?? current.lastTransitionId,
|
|
1936
1937
|
updatedAt: context.nowIso,
|
|
1937
|
-
...current.forcedCompletion === true ? { forcedCompletion: true } : {}
|
|
1938
|
+
...current.forcedCompletion === true ? { forcedCompletion: true } : {},
|
|
1939
|
+
...current.supervisedRecovery === true ? { supervisedRecovery: true } : {}
|
|
1938
1940
|
};
|
|
1939
1941
|
switch (event.type) {
|
|
1940
1942
|
case "dispatch_attempted":
|
|
@@ -1965,20 +1967,23 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
|
|
|
1965
1967
|
state: "rework_required",
|
|
1966
1968
|
retryCount: Math.min(current.retryCount + 1, 3),
|
|
1967
1969
|
retryHistory: [...current.retryHistory, outcome].slice(-3),
|
|
1968
|
-
retryEpoch: current.retryEpoch || current.generation + 1
|
|
1970
|
+
retryEpoch: current.retryEpoch || current.generation + 1,
|
|
1971
|
+
supervisedRecovery: undefined
|
|
1969
1972
|
};
|
|
1970
1973
|
}
|
|
1971
1974
|
return {
|
|
1972
1975
|
...base,
|
|
1973
1976
|
generation: current.generation + 1,
|
|
1974
|
-
state: "coder_delegated"
|
|
1977
|
+
state: "coder_delegated",
|
|
1978
|
+
supervisedRecovery: undefined
|
|
1975
1979
|
};
|
|
1976
1980
|
case "stage_a_passed":
|
|
1977
|
-
if (current.state !== "coder_delegated" && current.state !== "pre_check_passed") {
|
|
1981
|
+
if (current.state !== "coder_delegated" && current.state !== "pre_check_passed" && !(current.state === "rework_required" && event.supervisedRecovery === true)) {
|
|
1978
1982
|
throw new Error(`TASK_WORKFLOW_CODER_MUTATION_REQUIRED: cannot pass Stage A from ${current.state}`);
|
|
1979
1983
|
}
|
|
1980
1984
|
return {
|
|
1981
1985
|
...base,
|
|
1986
|
+
...event.supervisedRecovery === true ? { supervisedRecovery: true } : {},
|
|
1982
1987
|
state: "pre_check_passed"
|
|
1983
1988
|
};
|
|
1984
1989
|
case "stage_a_failed":
|
|
@@ -2034,7 +2039,11 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
|
|
|
2034
2039
|
state: "closed"
|
|
2035
2040
|
};
|
|
2036
2041
|
case "repair_idle": {
|
|
2037
|
-
const {
|
|
2042
|
+
const {
|
|
2043
|
+
forcedCompletion: _cleared,
|
|
2044
|
+
supervisedRecovery: _clearedMarker,
|
|
2045
|
+
...withoutForced
|
|
2046
|
+
} = base;
|
|
2038
2047
|
return {
|
|
2039
2048
|
...withoutForced,
|
|
2040
2049
|
generation: current.generation + 1,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-basp4sxt.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-g9ax7jyf.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-y4zjbrqs.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|