@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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, r as __exportAll, t as __commonJSMin } from "./chunk-D0VCBZRD.mjs";
|
|
2
2
|
import { E as toolParameters, _ as agentPaths$1, c as isAction, f as resolveActionTool, o as getRunSignal, s as getWorkflowRunHandle, u as isWithinActionExecution, w as sessionTranscriptPath } from "./dist-C0jCNa3e.mjs";
|
|
3
|
-
import { $t as IsBase, An as IsMultipleOf$1, At as Boolean$1, Bn as Keys$1, Bt as Unknown, Cn as IsGreaterThan$1, Ct as IsLiteralBigInt, Dn as IsLessThan$1, Dt as Literal, En as IsLessEqualThan$1, Et as IsLiteralString, Fn as IsString$1, Ft as hash_exports, Gt as IsNever, Hn as guard_exports, Ht as Union, In as IsSymbol$1, It as Unreachable, Jt as IsFunction$2, Kt as IsRef$1, Ln as IsUndefined$1, Lt as IsIntersect, Mn as IsNumber$1, Mt as IsBigInt$2, Nn as IsObject$1, Nt as IsCodec, On as IsMaxLength$2, Ot as IsIterator$2, Pn as IsObjectNotArray$1, Pt as Hash, Qt as Base, Rn as IsUnsafePropertyKey, Rt as IsEnum$1, Sn as IsGreaterEqualThan$1, St as IsLiteral, Tn as IsIterator$1, Tt as IsLiteralNumber, Ut as IsObject$2, Vn as Symbols, Vt as IsUnion, Wt as _Object_, Xt as IsAsyncIterator$2, Yt as IsConstructor$2, Zt as IsArray$2, _n as IsClassInstance, _t as String$1, an as IsMap, at as Options, bn as IsEqual$1, bt as Number$1, c as defineSandbox, cn as Entries$2, ct as IsVoid, dn as EveryAll, dt as RecordPattern, en as IsOptional,
|
|
3
|
+
import { $t as IsBase, An as IsMultipleOf$1, At as Boolean$1, Bn as Keys$1, Bt as Unknown, Cn as IsGreaterThan$1, Ct as IsLiteralBigInt, Dn as IsLessThan$1, Dt as Literal, En as IsLessEqualThan$1, Et as IsLiteralString, Fn as IsString$1, Ft as hash_exports, Gt as IsNever, Hn as guard_exports, Ht as Union, In as IsSymbol$1, It as Unreachable, Jt as IsFunction$2, Kt as IsRef$1, Ln as IsUndefined$1, Lt as IsIntersect, Mn as IsNumber$1, Mt as IsBigInt$2, Nn as IsObject$1, Nt as IsCodec, On as IsMaxLength$2, Ot as IsIterator$2, Pn as IsObjectNotArray$1, Pt as Hash, Qt as Base, Rn as IsUnsafePropertyKey, Rt as IsEnum$1, Sn as IsGreaterEqualThan$1, St as IsLiteral, Tn as IsIterator$1, Tt as IsLiteralNumber, Ut as IsObject$2, Vn as Symbols, Vt as IsUnion, Wt as _Object_, Xt as IsAsyncIterator$2, Yt as IsConstructor$2, Zt as IsArray$2, _n as IsClassInstance, _t as String$1, an as IsMap, at as Options, bn as IsEqual$1, bt as Number$1, c as defineSandbox, cn as Entries$2, ct as IsVoid, dn as EveryAll, dt as RecordPattern, en as IsOptional, fn as HasPropertyKey$1, ft as RecordValue, gn as IsBoolean$1, gt as IsString$2, hn as IsBigInt$1, ht as TemplateLiteralDecode, i as defineSkill, in as Get$3, it as Instantiate, jn as IsNull$1, jt as IsBoolean$2, kn as IsMinLength$2, kt as IsInteger$2, l as materializeSandbox, ln as EntriesRegExp, lt as IsUndefined$2, mn as IsAsyncIterator$1, mt as EnumToUnion, n as createSandbox, nn as IsPromise, nt as resolveSandboxRoot, o as materializeSkills, on as IsSet, ot as Compare, pn as IsArray$1, pt as IsTuple, qt as Ref$1, r as defaultWorkspacesRoot, rn as IsSchema$1, rt as Evaluate$1, sn as IsTypeArray, st as IsTemplateLiteral, t as createInvokeToolBridge, tn as Optional, tt as ensureWorkspaceDir, u as packAssetDirs, un as Every$1, ut as IsRecord, vn as IsConstructor$1, vt as IsSymbol$2, wn as IsInteger$1, wt as IsLiteralBoolean, xn as IsFunction$1, xt as IsNull$2, yn as IsDeepEqual$1, yt as IsNumber$2, zn as IsValueLike, zt as IsCyclic } from "./dist-Bw1Kqz5_.mjs";
|
|
4
4
|
import "./env-api-keys-24ayFQZr.mjs";
|
|
5
5
|
import { i as getModel, t as AssistantMessageEventStream } from "./event-stream-C7YBbzsc.mjs";
|
|
6
6
|
import "./json-parse-C01lczI5.mjs";
|
|
@@ -13583,6 +13583,14 @@ function reindexSessions(db, sessionsDir) {
|
|
|
13583
13583
|
function ensureSessionsDir(sessionsDir) {
|
|
13584
13584
|
if (!existsSync(sessionsDir)) mkdirSync(sessionsDir, { recursive: true });
|
|
13585
13585
|
}
|
|
13586
|
+
/**
|
|
13587
|
+
* Identity helper for authoring agent tools. Generic over the parameter schema
|
|
13588
|
+
* so `execute`'s `params` is inferred as `Static<typeof parameters>` — no cast
|
|
13589
|
+
* needed inside `execute`.
|
|
13590
|
+
*/
|
|
13591
|
+
function defineTool$1(tool) {
|
|
13592
|
+
return tool;
|
|
13593
|
+
}
|
|
13586
13594
|
const memoryPathSchema = String$1({ description: "Relative path under the memory dir (e.g. MEMORY.md, USER.md, archive/note.md)." });
|
|
13587
13595
|
const searchScopeSchema = Union([
|
|
13588
13596
|
Literal("archive"),
|