@rovecode-labs/sdk 0.1.0 → 0.2.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/index.d.ts +13 -0
- package/dist/index.js +188 -185
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,19 @@ export interface RovecodeClient {
|
|
|
80
80
|
};
|
|
81
81
|
agent: { tree(sessionId: string): AgentNode[] };
|
|
82
82
|
events: { subscribe(fn: (e: SdkEvent) => void): () => void };
|
|
83
|
+
/** learning surface: graph of learned knowledge, skill drafts from session
|
|
84
|
+
* transcripts, nudges for repeated work. Drafts are proposals — save is explicit. */
|
|
85
|
+
learn: {
|
|
86
|
+
graph(): LearningGraph;
|
|
87
|
+
draftSkill(sessionId: string): SkillDraft | null;
|
|
88
|
+
saveSkill(draft: SkillDraft, opts?: { overwrite?: boolean }): { ok: true; path: string } | { ok: false; reason: string };
|
|
89
|
+
nudges(opts?: { last?: number; minRepeat?: number }): LearningNudge[];
|
|
90
|
+
};
|
|
91
|
+
/** scoped memory blocks: "memory" = project MEMORY.md, "user" = home USER.md */
|
|
92
|
+
memory: {
|
|
93
|
+
read(block: "memory" | "user"): string;
|
|
94
|
+
add(block: "memory" | "user", text: string): BlockEditResult;
|
|
95
|
+
};
|
|
83
96
|
close(): Promise<void>;
|
|
84
97
|
}
|
|
85
98
|
|