opencode-swarm 7.103.3 → 7.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/{config-doctor-4rxjsg22.js → config-doctor-5m8z8jeg.js} +2 -2
- package/dist/cli/{guardrail-explain-7c857j83.js → guardrail-explain-2zat1bxh.js} +5 -5
- package/dist/cli/{guardrail-log-vg0atkrx.js → guardrail-log-zhshjbpk.js} +3 -3
- package/dist/cli/{index-9zb70qfe.js → index-0derejrq.js} +1 -1
- package/dist/cli/{index-h0h4qjmc.js → index-5tywmqeh.js} +1 -1
- package/dist/cli/{index-fhn62ce4.js → index-e7nhwa9k.js} +8 -6
- package/dist/cli/{index-60prdx3j.js → index-fk8ta8zw.js} +2 -2
- package/dist/cli/{index-m9keg83x.js → index-kcbcy6wq.js} +1 -1
- package/dist/cli/{index-ye6zt96v.js → index-n3ys2eny.js} +655 -55
- package/dist/cli/{index-ga7et2xw.js → index-t1vfvtg9.js} +21 -0
- package/dist/cli/index.js +4 -4
- package/dist/cli/{schema-az0hgfv0.js → schema-yxkdx5g5.js} +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/memory.d.ts +1 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/schema.d.ts +22 -0
- package/dist/council/types.d.ts +9 -0
- package/dist/graph/import-extractor.d.ts +1 -1
- package/dist/index.js +68 -33
- package/dist/lang/symbol-visibility.d.ts +2 -0
- package/dist/memory/config.d.ts +20 -0
- package/dist/memory/gateway.d.ts +1 -0
- package/dist/memory/index.d.ts +2 -1
- package/dist/memory/maintenance.d.ts +4 -1
- package/dist/memory/provider-pool.d.ts +23 -0
- package/dist/memory/provider.d.ts +53 -0
- package/dist/memory/reward.d.ts +39 -0
- package/dist/memory/schema.d.ts +2 -0
- package/dist/memory/scoring.d.ts +2 -0
- package/dist/memory/sqlite-provider.d.ts +53 -1
- package/dist/memory/types.d.ts +5 -0
- package/dist/tools/convene-council.d.ts +2 -0
- package/dist/tools/repo-graph/builder.d.ts +4 -2
- package/dist/tools/submit-phase-council-verdicts.d.ts +1 -0
- package/dist/tools/symbols.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1568,6 +1568,27 @@ var MemoryConfigSchema = exports_external.object({
|
|
|
1568
1568
|
tokenBudget: 1000
|
|
1569
1569
|
}
|
|
1570
1570
|
}),
|
|
1571
|
+
learning: exports_external.object({
|
|
1572
|
+
learningRate: exports_external.number().min(0).max(1).default(0.1),
|
|
1573
|
+
propagationFactor: exports_external.number().min(0).max(1).default(0.3),
|
|
1574
|
+
qValueBoostWeight: exports_external.number().min(0).max(1).default(0.1),
|
|
1575
|
+
suppressionThreshold: exports_external.number().min(0).max(1).default(0.15),
|
|
1576
|
+
promotionThreshold: exports_external.number().min(0).max(1).default(0.85),
|
|
1577
|
+
propagationTokenOverlapThreshold: exports_external.number().min(0).max(1).default(0.4),
|
|
1578
|
+
propagationEmbeddingCosineThreshold: exports_external.number().min(0).max(1).default(0.7),
|
|
1579
|
+
propagationFanout: exports_external.number().int().min(0).max(1000).default(20),
|
|
1580
|
+
propagationLookbackDays: exports_external.number().int().min(1).max(3650).default(30)
|
|
1581
|
+
}).default({
|
|
1582
|
+
learningRate: 0.1,
|
|
1583
|
+
propagationFactor: 0.3,
|
|
1584
|
+
qValueBoostWeight: 0.1,
|
|
1585
|
+
suppressionThreshold: 0.15,
|
|
1586
|
+
promotionThreshold: 0.85,
|
|
1587
|
+
propagationTokenOverlapThreshold: 0.4,
|
|
1588
|
+
propagationEmbeddingCosineThreshold: 0.7,
|
|
1589
|
+
propagationFanout: 20,
|
|
1590
|
+
propagationLookbackDays: 30
|
|
1591
|
+
}),
|
|
1571
1592
|
writes: exports_external.object({
|
|
1572
1593
|
mode: exports_external.literal("propose").default("propose")
|
|
1573
1594
|
}).default({ mode: "propose" }),
|
package/dist/cli/index.js
CHANGED
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-n3ys2eny.js";
|
|
11
|
+
import"./index-kcbcy6wq.js";
|
|
12
12
|
import"./index-ydgy7vg5.js";
|
|
13
13
|
import"./index-vwyjkzgs.js";
|
|
14
14
|
import"./index-f7nma02k.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-5tywmqeh.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_AGENT_CONFIGS
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-t1vfvtg9.js";
|
|
19
19
|
import"./index-k2rmw9sz.js";
|
|
20
20
|
import"./index-8w4d325g.js";
|
|
21
21
|
import"./index-v4fcn4tr.js";
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { handleHistoryCommand } from './history';
|
|
|
34
34
|
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeRetryHardeningCommand, handleKnowledgeUnactionableCommand, } from './knowledge';
|
|
35
35
|
export { handleLearningCommand } from './learning';
|
|
36
36
|
export { handleLinkCommand } from './link';
|
|
37
|
-
export { handleMemoryCommand, handleMemoryExportCommand, handleMemoryImportCommand, handleMemoryMigrateCommand, handleMemoryStatusCommand, } from './memory';
|
|
37
|
+
export { handleMemoryCommand, handleMemoryExportCommand, handleMemoryImportCommand, handleMemoryMigrateCommand, handleMemoryStatusCommand, handleMemoryValueLogCommand, } from './memory';
|
|
38
38
|
export { handlePlanCommand } from './plan';
|
|
39
39
|
export { handlePreflightCommand } from './preflight';
|
|
40
40
|
export { handlePromoteCommand } from './promote';
|
|
@@ -3,6 +3,7 @@ export declare function handleMemoryConsolidationLogCommand(directory: string, a
|
|
|
3
3
|
export declare function handleMemoryStatusCommand(directory: string, _args: string[]): Promise<string>;
|
|
4
4
|
export declare function handleMemoryPendingCommand(directory: string, args: string[]): Promise<string>;
|
|
5
5
|
export declare function handleMemoryRecallLogCommand(directory: string, args: string[]): Promise<string>;
|
|
6
|
+
export declare function handleMemoryValueLogCommand(directory: string, args: string[]): Promise<string>;
|
|
6
7
|
export declare function handleMemoryStaleCommand(directory: string, args: string[]): Promise<string>;
|
|
7
8
|
export declare function handleMemoryCompactCommand(directory: string, args: string[]): Promise<string>;
|
|
8
9
|
export declare function handleMemoryMigrateCommand(directory: string, _args: string[]): Promise<string>;
|
|
@@ -798,6 +798,14 @@ export declare const COMMAND_REGISTRY: {
|
|
|
798
798
|
readonly category: "diagnostics";
|
|
799
799
|
readonly toolPolicy: "agent";
|
|
800
800
|
};
|
|
801
|
+
readonly 'memory value-log': {
|
|
802
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
803
|
+
readonly description: "Show Swarm memory Q-value and reward updates";
|
|
804
|
+
readonly subcommandOf: "memory";
|
|
805
|
+
readonly args: "--limit <n>";
|
|
806
|
+
readonly category: "diagnostics";
|
|
807
|
+
readonly toolPolicy: "agent";
|
|
808
|
+
};
|
|
801
809
|
readonly 'memory compact': {
|
|
802
810
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
803
811
|
readonly description: "Compact deleted, superseded, and expired scratch memories";
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -645,6 +645,17 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
645
645
|
tokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
646
646
|
}, z.core.$strip>>;
|
|
647
647
|
}, z.core.$strip>>;
|
|
648
|
+
learning: z.ZodDefault<z.ZodObject<{
|
|
649
|
+
learningRate: z.ZodDefault<z.ZodNumber>;
|
|
650
|
+
propagationFactor: z.ZodDefault<z.ZodNumber>;
|
|
651
|
+
qValueBoostWeight: z.ZodDefault<z.ZodNumber>;
|
|
652
|
+
suppressionThreshold: z.ZodDefault<z.ZodNumber>;
|
|
653
|
+
promotionThreshold: z.ZodDefault<z.ZodNumber>;
|
|
654
|
+
propagationTokenOverlapThreshold: z.ZodDefault<z.ZodNumber>;
|
|
655
|
+
propagationEmbeddingCosineThreshold: z.ZodDefault<z.ZodNumber>;
|
|
656
|
+
propagationFanout: z.ZodDefault<z.ZodNumber>;
|
|
657
|
+
propagationLookbackDays: z.ZodDefault<z.ZodNumber>;
|
|
658
|
+
}, z.core.$strip>>;
|
|
648
659
|
writes: z.ZodDefault<z.ZodObject<{
|
|
649
660
|
mode: z.ZodDefault<z.ZodLiteral<"propose">>;
|
|
650
661
|
}, z.core.$strip>>;
|
|
@@ -1830,6 +1841,17 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
1830
1841
|
tokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
1831
1842
|
}, z.core.$strip>>;
|
|
1832
1843
|
}, z.core.$strip>>;
|
|
1844
|
+
learning: z.ZodDefault<z.ZodObject<{
|
|
1845
|
+
learningRate: z.ZodDefault<z.ZodNumber>;
|
|
1846
|
+
propagationFactor: z.ZodDefault<z.ZodNumber>;
|
|
1847
|
+
qValueBoostWeight: z.ZodDefault<z.ZodNumber>;
|
|
1848
|
+
suppressionThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1849
|
+
promotionThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1850
|
+
propagationTokenOverlapThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1851
|
+
propagationEmbeddingCosineThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1852
|
+
propagationFanout: z.ZodDefault<z.ZodNumber>;
|
|
1853
|
+
propagationLookbackDays: z.ZodDefault<z.ZodNumber>;
|
|
1854
|
+
}, z.core.$strip>>;
|
|
1833
1855
|
writes: z.ZodDefault<z.ZodObject<{
|
|
1834
1856
|
mode: z.ZodDefault<z.ZodLiteral<"propose">>;
|
|
1835
1857
|
}, z.core.$strip>>;
|
package/dist/council/types.d.ts
CHANGED
|
@@ -31,6 +31,15 @@ export interface CouncilMemberVerdict {
|
|
|
31
31
|
/** Criteria IDs that failed */
|
|
32
32
|
criteriaUnmet: string[];
|
|
33
33
|
durationMs: number;
|
|
34
|
+
/**
|
|
35
|
+
* Optional session id of the dispatched agent that produced this verdict.
|
|
36
|
+
* When supplied, the memory reward pathway rewards this member's own
|
|
37
|
+
* recall bundle in addition to the submitting session's, so sub-agent
|
|
38
|
+
* recalls are not silently skipped. Unvalidated caller input — the
|
|
39
|
+
* reward pathway must confirm this resolves to a real tracked session
|
|
40
|
+
* before trusting it.
|
|
41
|
+
*/
|
|
42
|
+
sessionId?: string;
|
|
34
43
|
}
|
|
35
44
|
export interface CouncilSynthesis {
|
|
36
45
|
taskId: string;
|
|
@@ -29,7 +29,7 @@ export interface ExtractImportsOptions {
|
|
|
29
29
|
content?: string;
|
|
30
30
|
}
|
|
31
31
|
/** Source file extensions we know how to scan. */
|
|
32
|
-
export declare const SOURCE_EXTENSIONS: readonly [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".go", ".rs"];
|
|
32
|
+
export declare const SOURCE_EXTENSIONS: readonly [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py", ".pyw", ".go", ".rs"];
|
|
33
33
|
export declare function getLanguageFromExtension(ext: string): string | null;
|
|
34
34
|
/**
|
|
35
35
|
* Extract import edges for a single file. Returns an empty array when the
|