opencode-swarm 7.137.5 → 7.138.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.
Files changed (35) hide show
  1. package/dist/cli/{config-doctor-kv6hgx4a.js → config-doctor-mb81xytp.js} +2 -2
  2. package/dist/cli/{curation-policy-92ecp6y6.js → curation-policy-qx23sc8b.js} +2 -2
  3. package/dist/cli/{curator-dwnsf527.js → curator-b9ascpbh.js} +12 -12
  4. package/dist/cli/{curator-llm-factory-9p2eajyj.js → curator-llm-factory-r47q1hbd.js} +12 -12
  5. package/dist/cli/{guardrail-explain-8r62kbz8.js → guardrail-explain-ph1n3ryc.js} +13 -13
  6. package/dist/cli/{guardrail-log-evq3pke7.js → guardrail-log-ghgqaw3w.js} +3 -3
  7. package/dist/cli/{hive-promoter-9f8e7csh.js → hive-promoter-7x2zzhb7.js} +12 -12
  8. package/dist/cli/{index-akka5gyb.js → index-2vzgvscz.js} +2 -2
  9. package/dist/cli/{index-g691qtx1.js → index-4xs9e82s.js} +3 -3
  10. package/dist/cli/{index-qdk110fr.js → index-6nenabrm.js} +1 -1
  11. package/dist/cli/{index-gmkjwk07.js → index-7kgfvt3h.js} +1 -1
  12. package/dist/cli/{index-5ykb4nfj.js → index-7wzyf4dr.js} +4 -4
  13. package/dist/cli/{index-w8kddryz.js → index-9zf5gfca.js} +1 -1
  14. package/dist/cli/{index-fc3pppmj.js → index-ag7ppc40.js} +14 -14
  15. package/dist/cli/{index-yrqf3b44.js → index-bf0j2wd2.js} +2 -2
  16. package/dist/cli/{index-ywyxtq1a.js → index-ca6qmxd8.js} +1 -1
  17. package/dist/cli/{index-891ym5hz.js → index-cdx3aqj5.js} +1 -1
  18. package/dist/cli/{index-cyew7vak.js → index-hmapndcz.js} +5 -5
  19. package/dist/cli/{index-ahkb1nty.js → index-npgjk6vc.js} +1 -1
  20. package/dist/cli/{index-s1d1k64e.js → index-sp7s1vk3.js} +1423 -1054
  21. package/dist/cli/{index-a2xw89st.js → index-whf5ecbw.js} +1 -1
  22. package/dist/cli/{index-sww6s8r5.js → index-xz0zjrdr.js} +1 -1
  23. package/dist/cli/{index-k7m0q2nz.js → index-z55s5719.js} +2 -2
  24. package/dist/cli/index.js +12 -12
  25. package/dist/cli/{knowledge-escalator-av6ve14j.js → knowledge-escalator-pqskjp6y.js} +3 -3
  26. package/dist/cli/{knowledge-events-3h7a1edr.js → knowledge-events-ahpxnqjd.js} +1 -1
  27. package/dist/cli/{knowledge-store-595cq24n.js → knowledge-store-27aynbeg.js} +1 -1
  28. package/dist/cli/{knowledge-validator-cvdj3atv.js → knowledge-validator-4saz53kh.js} +4 -4
  29. package/dist/cli/{scan-cursor-0sbrsd5q.js → scan-cursor-ngykkd7f.js} +2 -2
  30. package/dist/cli/{schema-8gp25rde.js → schema-p82ntfy9.js} +1 -1
  31. package/dist/cli/{skill-generator-gdqvy68y.js → skill-generator-r19a1zje.js} +5 -5
  32. package/dist/commands/close.d.ts +22 -0
  33. package/dist/index.js +288 -279
  34. package/dist/services/session-reflection.d.ts +171 -0
  35. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-5ykb4nfj.js";
5
+ } from "./index-7wzyf4dr.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-en4fb04r.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  init_schema,
4
4
  stripKnownSwarmPrefix
5
- } from "./index-qdk110fr.js";
5
+ } from "./index-6nenabrm.js";
6
6
  import {
7
7
  init_constants
8
8
  } from "./index-3jcyn8g6.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-gmkjwk07.js";
4
+ } from "./index-7kgfvt3h.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-5ykb4nfj.js";
12
+ } from "./index-7wzyf4dr.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-en4fb04r.js";
package/dist/cli/index.js CHANGED
@@ -6,39 +6,39 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-s1d1k64e.js";
9
+ } from "./index-sp7s1vk3.js";
10
10
  import"./index-vm4xw9z3.js";
11
11
  import"./index-rrxcfxrd.js";
12
- import"./index-sww6s8r5.js";
13
- import"./index-ywyxtq1a.js";
12
+ import"./index-xz0zjrdr.js";
13
+ import"./index-ca6qmxd8.js";
14
14
  import"./index-fmh15wxb.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-g691qtx1.js";
20
- import"./index-cyew7vak.js";
21
- import"./index-a2xw89st.js";
19
+ import"./index-4xs9e82s.js";
20
+ import"./index-hmapndcz.js";
21
+ import"./index-whf5ecbw.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-k7m0q2nz.js";
28
- import"./index-gmkjwk07.js";
27
+ import"./index-z55s5719.js";
28
+ import"./index-7kgfvt3h.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-5ykb4nfj.js";
31
- import"./index-891ym5hz.js";
30
+ import"./index-7wzyf4dr.js";
31
+ import"./index-cdx3aqj5.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-en4fb04r.js";
34
34
  import"./index-tqshdzaw.js";
35
- import"./index-ahkb1nty.js";
35
+ import"./index-npgjk6vc.js";
36
36
  import"./index-k5jrywpr.js";
37
37
  import"./index-n832052r.js";
38
38
  import {
39
39
  init_package,
40
40
  package_default
41
- } from "./index-qdk110fr.js";
41
+ } from "./index-6nenabrm.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-cyew7vak.js";
12
- import"./index-5ykb4nfj.js";
13
- import"./index-891ym5hz.js";
11
+ } from "./index-hmapndcz.js";
12
+ import"./index-7wzyf4dr.js";
13
+ import"./index-cdx3aqj5.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-891ym5hz.js";
31
+ } from "./index-cdx3aqj5.js";
32
32
  import"./index-ae75rja9.js";
33
33
  import"./index-en4fb04r.js";
34
34
  import"./index-tqshdzaw.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-5ykb4nfj.js";
44
+ } from "./index-7wzyf4dr.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-k7m0q2nz.js";
27
- import"./index-gmkjwk07.js";
26
+ } from "./index-z55s5719.js";
27
+ import"./index-7kgfvt3h.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-5ykb4nfj.js";
30
- import"./index-891ym5hz.js";
29
+ import"./index-7wzyf4dr.js";
30
+ import"./index-cdx3aqj5.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-a2xw89st.js";
8
- import"./index-5ykb4nfj.js";
7
+ } from "./index-whf5ecbw.js";
8
+ import"./index-7wzyf4dr.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-en4fb04r.js";
11
11
  import"./index-tqshdzaw.js";
@@ -95,7 +95,7 @@ import {
95
95
  resolveGeneratedAgentRole,
96
96
  resolveGuardrailsConfig,
97
97
  stripKnownSwarmPrefix
98
- } from "./index-qdk110fr.js";
98
+ } from "./index-6nenabrm.js";
99
99
  import"./index-bk5tah7q.js";
100
100
  import"./index-3jcyn8g6.js";
101
101
  import"./index-bpmtbmy9.js";
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-g691qtx1.js";
37
- import"./index-k7m0q2nz.js";
38
- import"./index-gmkjwk07.js";
36
+ } from "./index-4xs9e82s.js";
37
+ import"./index-z55s5719.js";
38
+ import"./index-7kgfvt3h.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-5ykb4nfj.js";
41
- import"./index-891ym5hz.js";
40
+ import"./index-7wzyf4dr.js";
41
+ import"./index-cdx3aqj5.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-en4fb04r.js";
44
44
  import"./index-tqshdzaw.js";
@@ -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;