opencode-swarm 7.137.5 → 7.138.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/{config-doctor-kv6hgx4a.js → config-doctor-m79sx8b2.js} +2 -2
- package/dist/cli/{curation-policy-92ecp6y6.js → curation-policy-dkx4s5va.js} +2 -2
- package/dist/cli/{curator-dwnsf527.js → curator-jjf5x6bn.js} +14 -14
- package/dist/cli/{curator-llm-factory-9p2eajyj.js → curator-llm-factory-sprc6pm3.js} +14 -14
- package/dist/cli/{evidence-summary-service-1azhyeft.js → evidence-summary-service-6cttrkzw.js} +2 -2
- package/dist/cli/{guardrail-explain-8r62kbz8.js → guardrail-explain-zs3hq02c.js} +15 -15
- package/dist/cli/{guardrail-log-evq3pke7.js → guardrail-log-90dnv508.js} +3 -3
- package/dist/cli/{hive-promoter-9f8e7csh.js → hive-promoter-zkay2ffy.js} +14 -14
- package/dist/cli/{index-w8kddryz.js → index-06zw53mf.js} +1 -1
- package/dist/cli/{index-yrqf3b44.js → index-5fdztrpt.js} +2 -2
- package/dist/cli/{index-fc3pppmj.js → index-6f6nt0c9.js} +16 -16
- package/dist/cli/{index-5ykb4nfj.js → index-8xqnp3gw.js} +4 -4
- package/dist/cli/{index-gmkjwk07.js → index-9vvskh03.js} +1 -1
- package/dist/cli/{index-a2xw89st.js → index-aeyktf9q.js} +1 -1
- package/dist/cli/{index-k7m0q2nz.js → index-d4t92fa3.js} +2 -2
- package/dist/cli/{index-sww6s8r5.js → index-e2eedz1b.js} +1 -1
- package/dist/cli/{index-qdk110fr.js → index-e78pqbkj.js} +1 -1
- package/dist/cli/{index-k5jrywpr.js → index-gprxjmm7.js} +6 -1
- package/dist/cli/{index-891ym5hz.js → index-kqzzdxc1.js} +1 -1
- package/dist/cli/{index-s1d1k64e.js → index-mnw8g9bs.js} +1996 -1231
- package/dist/cli/{index-g691qtx1.js → index-mzqgtzxq.js} +3 -3
- package/dist/cli/{index-cyew7vak.js → index-navw2ezf.js} +5 -5
- package/dist/cli/{index-ahkb1nty.js → index-p7fn5byt.js} +1 -1
- package/dist/cli/{index-akka5gyb.js → index-vmff7b40.js} +3 -3
- package/dist/cli/{index-ywyxtq1a.js → index-vp3mwsd1.js} +1 -1
- package/dist/cli/{index-fmh15wxb.js → index-y06a43sk.js} +1 -1
- package/dist/cli/index.js +14 -14
- package/dist/cli/{knowledge-escalator-av6ve14j.js → knowledge-escalator-6y5x8vat.js} +3 -3
- package/dist/cli/{knowledge-events-3h7a1edr.js → knowledge-events-bnr4weyn.js} +1 -1
- package/dist/cli/{knowledge-store-595cq24n.js → knowledge-store-4mcmb2rj.js} +1 -1
- package/dist/cli/{knowledge-validator-cvdj3atv.js → knowledge-validator-pf377mtx.js} +4 -4
- package/dist/cli/{scan-cursor-0sbrsd5q.js → scan-cursor-we0561wc.js} +2 -2
- package/dist/cli/{schema-8gp25rde.js → schema-1xtxr4d9.js} +1 -1
- package/dist/cli/{skill-generator-gdqvy68y.js → skill-generator-kns0dae2.js} +5 -5
- package/dist/commands/close.d.ts +22 -0
- package/dist/config/evidence-schema.d.ts +15 -0
- package/dist/index.js +291 -282
- package/dist/services/preflight-service.d.ts +2 -0
- package/dist/services/session-reflection.d.ts +171 -0
- package/dist/tools/pre-check-batch.d.ts +2 -0
- package/dist/tools/secretscan.d.ts +17 -0
- package/package.json +1 -1
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-d4t92fa3.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-8xqnp3gw.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-kqzzdxc1.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-8xqnp3gw.js";
|
|
10
10
|
import {
|
|
11
11
|
countEntryContradictionsInWindow,
|
|
12
12
|
countEntryViolationsInWindow,
|
|
13
13
|
readKnowledgeEvents,
|
|
14
14
|
recordKnowledgeEvent
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-kqzzdxc1.js";
|
|
16
16
|
import {
|
|
17
17
|
init_knowledge_types,
|
|
18
18
|
isActiveStatus
|
|
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
190
190
|
alreadyInactive: true
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
193
|
+
const { quarantineEntry } = await import("./knowledge-validator-pf377mtx.js");
|
|
194
194
|
let policyConfig;
|
|
195
195
|
try {
|
|
196
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
197
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
196
|
+
const { KnowledgeConfigSchema } = await import("./schema-1xtxr4d9.js");
|
|
197
|
+
const { loadPluginConfigWithMeta } = await import("./index-vmff7b40.js");
|
|
198
198
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
199
199
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
200
200
|
} catch {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-p7fn5byt.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
NoteEvidenceSchema,
|
|
23
23
|
ReviewEvidenceSchema,
|
|
24
24
|
TestEvidenceSchema
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-gprxjmm7.js";
|
|
26
26
|
import {
|
|
27
27
|
DeltaSpecSchema,
|
|
28
28
|
ObligationSchema,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
TurboConfigSchema,
|
|
55
55
|
WorktreeIsolationConfigSchema,
|
|
56
56
|
resolveAutoReviewConfig
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-e78pqbkj.js";
|
|
58
58
|
import"./index-bk5tah7q.js";
|
|
59
59
|
import {
|
|
60
60
|
MigrationStatusSchema,
|
package/dist/cli/index.js
CHANGED
|
@@ -6,39 +6,39 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-mnw8g9bs.js";
|
|
10
10
|
import"./index-vm4xw9z3.js";
|
|
11
11
|
import"./index-rrxcfxrd.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-e2eedz1b.js";
|
|
13
|
+
import"./index-vp3mwsd1.js";
|
|
14
|
+
import"./index-y06a43sk.js";
|
|
15
15
|
import"./index-ngqxzkqm.js";
|
|
16
16
|
import"./index-y8552snf.js";
|
|
17
17
|
import"./index-4905hd2m.js";
|
|
18
18
|
import"./index-134d35c1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-mzqgtzxq.js";
|
|
20
|
+
import"./index-navw2ezf.js";
|
|
21
|
+
import"./index-aeyktf9q.js";
|
|
22
22
|
import"./index-6mjf4vr1.js";
|
|
23
23
|
import"./index-c8s9a3zh.js";
|
|
24
24
|
import"./index-9ss2m4rs.js";
|
|
25
25
|
import"./index-wsdnttf4.js";
|
|
26
26
|
import"./index-39k6y018.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-d4t92fa3.js";
|
|
28
|
+
import"./index-9vvskh03.js";
|
|
29
29
|
import"./index-rtry5xyf.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-8xqnp3gw.js";
|
|
31
|
+
import"./index-kqzzdxc1.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-p7fn5byt.js";
|
|
36
|
+
import"./index-gprxjmm7.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-e78pqbkj.js";
|
|
42
42
|
import"./index-bk5tah7q.js";
|
|
43
43
|
import"./index-8fwhhayc.js";
|
|
44
44
|
import"./index-q1exe2b3.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-navw2ezf.js";
|
|
12
|
+
import"./index-8xqnp3gw.js";
|
|
13
|
+
import"./index-kqzzdxc1.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-en4fb04r.js";
|
|
16
16
|
import"./index-tqshdzaw.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
resolveKnowledgeCounterBaselinePath,
|
|
29
29
|
resolveKnowledgeEventsPath,
|
|
30
30
|
resolveLegacyApplicationLogPath
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-kqzzdxc1.js";
|
|
32
32
|
import"./index-ae75rja9.js";
|
|
33
33
|
import"./index-en4fb04r.js";
|
|
34
34
|
import"./index-tqshdzaw.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-d4t92fa3.js";
|
|
27
|
+
import"./index-9vvskh03.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-8xqnp3gw.js";
|
|
30
|
+
import"./index-kqzzdxc1.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-en4fb04r.js";
|
|
33
33
|
import"./index-tqshdzaw.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-aeyktf9q.js";
|
|
8
|
+
import"./index-8xqnp3gw.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-en4fb04r.js";
|
|
11
11
|
import"./index-tqshdzaw.js";
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-mzqgtzxq.js";
|
|
37
|
+
import"./index-d4t92fa3.js";
|
|
38
|
+
import"./index-9vvskh03.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-8xqnp3gw.js";
|
|
41
|
+
import"./index-kqzzdxc1.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-en4fb04r.js";
|
|
44
44
|
import"./index-tqshdzaw.js";
|
package/dist/commands/close.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ interface CloseCommandOptions {
|
|
|
31
31
|
}
|
|
32
32
|
interface CurationCounts {
|
|
33
33
|
stored: number;
|
|
34
|
+
/** Issue #2077: surfaced for the reflection knowledge-delta report. */
|
|
35
|
+
reinforced: number;
|
|
34
36
|
skipped: number;
|
|
35
37
|
rejected: number;
|
|
36
38
|
quarantined: number;
|
|
@@ -90,6 +92,14 @@ export interface CloseStageContext {
|
|
|
90
92
|
hivePromoted: number;
|
|
91
93
|
sessionKnowledgeCreated: number;
|
|
92
94
|
fallbackKnowledgeCreated: number;
|
|
95
|
+
/** Issue #2077: FR-015 dedup drop count (retro lessons dropped as already-known). */
|
|
96
|
+
dedupDropped: number;
|
|
97
|
+
/** Issue #2077: false when the dedup knowledge read failed (fail-open). */
|
|
98
|
+
dedupAvailable: boolean;
|
|
99
|
+
/** Issue #2077: total retro lessons before dedup. */
|
|
100
|
+
retroLessonTotal: number;
|
|
101
|
+
/** Issue #2077: full-auto state computed once, reused at reflection + menu render. */
|
|
102
|
+
fullAuto: boolean;
|
|
93
103
|
originalStatuses: Map<string, string>;
|
|
94
104
|
guaranteeResult: {
|
|
95
105
|
closedPhaseIds: number[];
|
|
@@ -219,11 +229,23 @@ declare function acquireFinalizeLock(directory: string): Promise<{
|
|
|
219
229
|
acquired: boolean;
|
|
220
230
|
release?: () => Promise<void>;
|
|
221
231
|
}>;
|
|
232
|
+
/**
|
|
233
|
+
* Issue #2077: detect full-auto state for the action-menu prompt suppression.
|
|
234
|
+
* Combines the in-memory session flag (hasActiveFullAuto) with the durable
|
|
235
|
+
* run state (isFullAutoRunActive reads .swarm/full-auto-state.json) so a
|
|
236
|
+
* process restart mid-run does not silently re-enable the interactive menu
|
|
237
|
+
* prompt. The durable check is sync and takes a state lock; if it throws,
|
|
238
|
+
* fall back to the in-memory flag alone. Caller MUST guard with a defined
|
|
239
|
+
* sessionID to avoid the cross-session leak (hasActiveFullAuto(undefined)
|
|
240
|
+
* scans all sessions).
|
|
241
|
+
*/
|
|
242
|
+
declare function detectFullAuto(directory: string, sessionID: string): boolean;
|
|
222
243
|
export declare const _internals: {
|
|
223
244
|
ACTIVE_STATE_DIRS_TO_CLEAN: string[];
|
|
224
245
|
countSessionKnowledgeEntries: typeof countSessionKnowledgeEntries;
|
|
225
246
|
CLOSE_SKILL_REVIEW_TIMEOUT_MS: number;
|
|
226
247
|
CLOSE_REFLECTION_TIMEOUT_MS: number;
|
|
248
|
+
detectFullAuto: typeof detectFullAuto;
|
|
227
249
|
guaranteeAllPlansComplete: typeof guaranteeAllPlansComplete;
|
|
228
250
|
getGitRepositoryStatus: typeof getGitRepositoryStatus;
|
|
229
251
|
resetToMainAfterMerge: typeof resetToMainAfterMerge;
|
|
@@ -546,6 +546,11 @@ export declare const SecretscanEvidenceSchema: z.ZodObject<{
|
|
|
546
546
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
547
547
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
548
548
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
549
|
+
incomplete_files: z.ZodNumber;
|
|
550
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
551
|
+
path: z.ZodString;
|
|
552
|
+
reason: z.ZodString;
|
|
553
|
+
}, z.core.$strip>>;
|
|
549
554
|
}, z.core.$strip>;
|
|
550
555
|
export type SecretscanEvidence = z.infer<typeof SecretscanEvidenceSchema>;
|
|
551
556
|
export declare const MutationGateEvidenceSchema: z.ZodObject<{
|
|
@@ -1034,6 +1039,11 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1034
1039
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
1035
1040
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
1036
1041
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
1042
|
+
incomplete_files: z.ZodNumber;
|
|
1043
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
1044
|
+
path: z.ZodString;
|
|
1045
|
+
reason: z.ZodString;
|
|
1046
|
+
}, z.core.$strip>>;
|
|
1037
1047
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1048
|
task_id: z.ZodOptional<z.ZodString>;
|
|
1039
1049
|
agent: z.ZodOptional<z.ZodString>;
|
|
@@ -1519,6 +1529,11 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1519
1529
|
scan_directory: z.ZodOptional<z.ZodString>;
|
|
1520
1530
|
files_scanned: z.ZodDefault<z.ZodNumber>;
|
|
1521
1531
|
skipped_files: z.ZodDefault<z.ZodNumber>;
|
|
1532
|
+
incomplete_files: z.ZodNumber;
|
|
1533
|
+
incomplete_paths: z.ZodArray<z.ZodObject<{
|
|
1534
|
+
path: z.ZodString;
|
|
1535
|
+
reason: z.ZodString;
|
|
1536
|
+
}, z.core.$strip>>;
|
|
1522
1537
|
}, z.core.$strip>, z.ZodObject<{
|
|
1523
1538
|
task_id: z.ZodOptional<z.ZodString>;
|
|
1524
1539
|
agent: z.ZodOptional<z.ZodString>;
|