@keystrokehq/keystroke 0.0.176 → 0.0.177
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/agent.cjs +9 -1
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.mjs +9 -1
- package/dist/agent.mjs.map +1 -1
- package/package.json +1 -11
package/dist/agent.cjs
CHANGED
|
@@ -13594,6 +13594,14 @@ function reindexSessions(db, sessionsDir) {
|
|
|
13594
13594
|
function ensureSessionsDir(sessionsDir) {
|
|
13595
13595
|
if (!(0, node_fs.existsSync)(sessionsDir)) (0, node_fs.mkdirSync)(sessionsDir, { recursive: true });
|
|
13596
13596
|
}
|
|
13597
|
+
/**
|
|
13598
|
+
* Identity helper for authoring agent tools. Generic over the parameter schema
|
|
13599
|
+
* so `execute`'s `params` is inferred as `Static<typeof parameters>` — no cast
|
|
13600
|
+
* needed inside `execute`.
|
|
13601
|
+
*/
|
|
13602
|
+
function defineTool$1(tool) {
|
|
13603
|
+
return tool;
|
|
13604
|
+
}
|
|
13597
13605
|
const memoryPathSchema = require_dist$2.String({ description: "Relative path under the memory dir (e.g. MEMORY.md, USER.md, archive/note.md)." });
|
|
13598
13606
|
const searchScopeSchema = require_dist$2.Union([
|
|
13599
13607
|
require_dist$2.Literal("archive"),
|
|
@@ -13651,7 +13659,7 @@ function applyEdit(content, oldText, newText) {
|
|
|
13651
13659
|
return `${content.slice(0, index)}${newText}${content.slice(index + oldText.length)}`;
|
|
13652
13660
|
}
|
|
13653
13661
|
function createMemoryTool(config, db) {
|
|
13654
|
-
return
|
|
13662
|
+
return defineTool$1({
|
|
13655
13663
|
name: "memory",
|
|
13656
13664
|
label: "Memory",
|
|
13657
13665
|
description: [
|