opencode-swarm 7.68.2 → 7.69.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/index.js +1461 -752
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/knowledge.d.ts +10 -0
- package/dist/commands/registry.d.ts +15 -0
- package/dist/hooks/micro-reflector.d.ts +1 -0
- package/dist/hooks/skill-scoring.d.ts +3 -1
- package/dist/index.js +498 -89
- package/dist/services/skill-generator.d.ts +14 -0
- package/dist/services/skill-improver.d.ts +8 -0
- package/dist/services/status-service.d.ts +6 -0
- package/dist/services/trajectory-cluster.d.ts +33 -1
- package/package.json +1 -1
package/dist/commands/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export { handleExportCommand } from './export';
|
|
|
26
26
|
export { handleFullAutoCommand } from './full-auto';
|
|
27
27
|
export { handleHandoffCommand } from './handoff';
|
|
28
28
|
export { handleHistoryCommand } from './history';
|
|
29
|
-
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, } from './knowledge';
|
|
29
|
+
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeRetryHardeningCommand, handleKnowledgeUnactionableCommand, } from './knowledge';
|
|
30
30
|
export { handleLearningCommand } from './learning';
|
|
31
31
|
export { handleMemoryCommand, handleMemoryExportCommand, handleMemoryImportCommand, handleMemoryMigrateCommand, handleMemoryStatusCommand, } from './memory';
|
|
32
32
|
export { handlePlanCommand } from './plan';
|
|
@@ -20,3 +20,13 @@ export declare function handleKnowledgeMigrateCommand(directory: string, args: s
|
|
|
20
20
|
* Lists entries from .swarm/knowledge.jsonl with id, category, confidence, truncated text.
|
|
21
21
|
*/
|
|
22
22
|
export declare function handleKnowledgeListCommand(directory: string, _args: string[]): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Handles /swarm knowledge unactionable command.
|
|
25
|
+
* Lists entries from the unactionable queue with retire_candidate status.
|
|
26
|
+
*/
|
|
27
|
+
export declare function handleKnowledgeUnactionableCommand(directory: string, _args: string[]): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Handles /swarm knowledge retry-hardening [id] command.
|
|
30
|
+
* Resets retire_candidate flags so the next scheduled hardening pass re-attempts them.
|
|
31
|
+
*/
|
|
32
|
+
export declare function handleKnowledgeRetryHardeningCommand(directory: string, args: string[]): Promise<string>;
|
|
@@ -523,6 +523,21 @@ export declare const COMMAND_REGISTRY: {
|
|
|
523
523
|
readonly args: "<entry-id>";
|
|
524
524
|
readonly category: "utility";
|
|
525
525
|
};
|
|
526
|
+
readonly 'knowledge unactionable': {
|
|
527
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
528
|
+
readonly description: "List unactionable knowledge entries pending hardening";
|
|
529
|
+
readonly subcommandOf: "knowledge";
|
|
530
|
+
readonly details: "Lists entries from .swarm/knowledge-unactionable.jsonl that failed the actionability gate. Shows pending entries (awaiting next hardening pass) and retire candidates (hardening failed). Use `/swarm knowledge retry-hardening` to reset retire candidates.";
|
|
531
|
+
readonly category: "utility";
|
|
532
|
+
};
|
|
533
|
+
readonly 'knowledge retry-hardening': {
|
|
534
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
535
|
+
readonly description: "Reset retire candidates for re-hardening [id]";
|
|
536
|
+
readonly subcommandOf: "knowledge";
|
|
537
|
+
readonly details: "Resets the retire_candidate flag on unactionable entries so the next scheduled hardening pass re-attempts LLM enrichment. Without arguments, resets all retire candidates. With an ID prefix, resets only the matching entry.";
|
|
538
|
+
readonly args: "[entry-id]";
|
|
539
|
+
readonly category: "utility";
|
|
540
|
+
};
|
|
526
541
|
readonly knowledge: {
|
|
527
542
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
528
543
|
readonly description: "List knowledge entries";
|
|
@@ -45,6 +45,7 @@ export declare function resolveInsightCandidatesPath(directory: string): string;
|
|
|
45
45
|
export declare function classifyOutcome(transcript: string, trajectory: TrajectoryEntry[]): MicroOutcome;
|
|
46
46
|
/** Read a task's trajectory slice. Fail-open: [] when absent/corrupt. */
|
|
47
47
|
export declare function readTaskTrajectory(directory: string, taskId: string): Promise<TrajectoryEntry[]>;
|
|
48
|
+
export declare const INSIGHT_CANDIDATES_MAX_ENTRIES = 500;
|
|
48
49
|
/** Build the bounded micro-reflection prompt (≤ MICRO_PROMPT_INPUT_CAP chars). */
|
|
49
50
|
export declare function buildMicroPrompt(params: {
|
|
50
51
|
agent: string;
|
|
@@ -41,6 +41,8 @@ export interface SkillMetadata {
|
|
|
41
41
|
name: string;
|
|
42
42
|
/** Short description from frontmatter, or a fallback when absent. */
|
|
43
43
|
description: string;
|
|
44
|
+
/** Skill type from frontmatter (directive or workflow). */
|
|
45
|
+
skillType?: 'directive' | 'workflow';
|
|
44
46
|
}
|
|
45
47
|
export declare const _internals: {
|
|
46
48
|
computeSkillRelevanceScore: typeof computeSkillRelevanceScore;
|
|
@@ -113,7 +115,7 @@ declare function computeContextMatchScore(taskDescription: string, skillPath: st
|
|
|
113
115
|
* @param usageHistory - Pre-loaded usage entries for this skill.
|
|
114
116
|
* @returns Composite score in [0, 1]. Returns contextScore only when history is empty.
|
|
115
117
|
*/
|
|
116
|
-
export declare function computeSkillRelevanceScore(skillPath: string, taskDescription: string, usageHistory: SkillUsageEntry[]): number;
|
|
118
|
+
export declare function computeSkillRelevanceScore(skillPath: string, taskDescription: string, usageHistory: SkillUsageEntry[], metadata?: SkillMetadata): number;
|
|
117
119
|
/**
|
|
118
120
|
* Rank an array of skill paths by relevance to a task context.
|
|
119
121
|
*
|