@keystrokehq/cli 0.1.56 → 0.1.58

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as __require, t as __commonJSMin } from "./chunk-DiodbrVj.mjs";
3
- import { $n as normalizeCredentialList, Cr as object, Dr as string, Jn as credentialInputSchema, Kt as PromptResponseSchema, Mr as toJSONSchema, Or as union, Sr as number, Tr as preprocess, W as DEFAULT_CLOUD_PLATFORM_ORIGIN, Xt as ROUTE_MANIFEST_REL_PATH, _r as custom, br as literal, dr as _enum, fr as _function, gr as boolean$1, hr as array, ir as requiredDisplayTextSchema, qt as PublicModelsResponseSchema, rr as parseStoredRouteManifest, ur as ZodType, vr as discriminatedUnion } from "./dist-BOMPr8bd.mjs";
4
- import "./dist-BzB-gu5C.mjs";
3
+ import { Ar as discriminatedUnion, Br as union, Cr as _enum, Dr as array, Fr as object, Lr as preprocess, Mr as literal, Or as boolean$1, Pr as number, Sr as ZodType, Wr as toJSONSchema, dr as normalizeCredentialList, gr as requiredDisplayTextSchema, hr as parseStoredRouteManifest, in as PublicModelsResponseSchema, kr as custom, or as credentialInputSchema, rn as PromptResponseSchema, sn as ROUTE_MANIFEST_REL_PATH, tt as DEFAULT_CLOUD_PLATFORM_ORIGIN, wr as _function, zr as string } from "./dist-BlTFBcc6.mjs";
4
+ import "./dist-DJH7K67b.mjs";
5
5
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
6
6
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
7
7
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -3368,6 +3368,8 @@ const billingWallet = pgTable("billing_wallet", {
3368
3368
  workflowTimeoutMs: integer("workflow_timeout_ms"),
3369
3369
  pollTimeoutMs: integer("poll_timeout_ms"),
3370
3370
  logRetentionDays: integer("log_retention_days"),
3371
+ autoTopupEnabled: integer("auto_topup_enabled").notNull().default(0),
3372
+ autoTopupThresholdMicroCredits: bigint("auto_topup_threshold_micro_credits", { mode: "number" }),
3371
3373
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
3372
3374
  });
3373
3375
  const billingWalletSqlite = sqliteTable("billing_wallet", {
@@ -3384,6 +3386,8 @@ const billingWalletSqlite = sqliteTable("billing_wallet", {
3384
3386
  workflowTimeoutMs: integer$1("workflow_timeout_ms"),
3385
3387
  pollTimeoutMs: integer$1("poll_timeout_ms"),
3386
3388
  logRetentionDays: integer$1("log_retention_days"),
3389
+ autoTopupEnabled: integer$1("auto_topup_enabled").notNull().default(0),
3390
+ autoTopupThresholdMicroCredits: integer$1("auto_topup_threshold_micro_credits"),
3387
3391
  updatedAt: integer$1("updated_at", { mode: "timestamp_ms" }).notNull()
3388
3392
  });
3389
3393
  /**
@@ -20731,32 +20735,6 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
20731
20735
  exports.visitAsync = visit.visitAsync;
20732
20736
  })))();
20733
20737
  //#endregion
20734
- //#region ../../packages/memory/dist/index.mjs
20735
- const memoryPathSchema = string().describe("Relative path under the memory dir (e.g. MEMORY.md, USER.md, archive/note.md).");
20736
- const searchScopeSchema = _enum([
20737
- "archive",
20738
- "sessions",
20739
- "all"
20740
- ]).describe("Where to look: all (default) = archive/*.md plus every saved session transcript across all past chats; archive = long-form notes only; sessions = all past session transcripts only. USER.md and MEMORY.md are in the system snapshot — use read for those.");
20741
- const searchQuerySchema = string().describe("Keywords to find across archive notes and/or all past session transcripts. Plain words, case-insensitive; multiple words match if ANY word appears. Use when the user references an earlier chat or prior decision. Returns ranked snippets — use read on a hit path for the full file.");
20742
- object({
20743
- action: _enum([
20744
- "list",
20745
- "read",
20746
- "write",
20747
- "edit",
20748
- "search"
20749
- ]).describe("list: archive/*.md filenames; read: { path }; write: { path, content }; edit: { path, oldText, newText }; search: { query, scope?, limit?, full? }."),
20750
- path: memoryPathSchema.optional(),
20751
- content: string().describe("Full file content (write).").optional(),
20752
- oldText: string().describe("Exact text to replace, first match (edit).").optional(),
20753
- newText: string().describe("Replacement text; empty string deletes oldText (edit).").optional(),
20754
- query: searchQuerySchema.optional(),
20755
- scope: searchScopeSchema.optional(),
20756
- limit: number().int().min(1).max(50).optional(),
20757
- full: boolean$1().describe("When true, return complete archive note files for archive hits, ignored for session hits (search).").optional()
20758
- });
20759
- //#endregion
20760
20738
  //#region ../../packages/workflow/dist/index.mjs
20761
20739
  const zodSchema$2 = custom((v) => v instanceof ZodType, "must be a Zod schema");
20762
20740
  /** Runtime validation for an unbranded workflow definition. */
@@ -20791,6 +20769,32 @@ registerWorkflowRunGetter(() => {
20791
20769
  workflowRunner: store.workflowRunner
20792
20770
  };
20793
20771
  });
20772
+ //#endregion
20773
+ //#region ../../packages/memory/dist/index.mjs
20774
+ const memoryPathSchema = string().describe("Relative path under the memory dir (e.g. MEMORY.md, USER.md, archive/note.md).");
20775
+ const searchScopeSchema = _enum([
20776
+ "archive",
20777
+ "sessions",
20778
+ "all"
20779
+ ]).describe("Where to look: all (default) = archive/*.md plus every saved session transcript across all past chats; archive = long-form notes only; sessions = all past session transcripts only. USER.md and MEMORY.md are in the system snapshot — use read for those.");
20780
+ const searchQuerySchema = string().describe("Keywords to find across archive notes and/or all past session transcripts. Plain words, case-insensitive; multiple words match if ANY word appears. Use when the user references an earlier chat or prior decision. Returns ranked snippets — use read on a hit path for the full file.");
20781
+ object({
20782
+ action: _enum([
20783
+ "list",
20784
+ "read",
20785
+ "write",
20786
+ "edit",
20787
+ "search"
20788
+ ]).describe("list: archive/*.md filenames; read: { path }; write: { path, content }; edit: { path, oldText, newText }; search: { query, scope?, limit?, full? }."),
20789
+ path: memoryPathSchema.optional(),
20790
+ content: string().describe("Full file content (write).").optional(),
20791
+ oldText: string().describe("Exact text to replace, first match (edit).").optional(),
20792
+ newText: string().describe("Replacement text; empty string deletes oldText (edit).").optional(),
20793
+ query: searchQuerySchema.optional(),
20794
+ scope: searchScopeSchema.optional(),
20795
+ limit: number().int().min(1).max(50).optional(),
20796
+ full: boolean$1().describe("When true, return complete archive note files for archive hits, ignored for session hits (search).").optional()
20797
+ });
20794
20798
  new AsyncLocalStorage();
20795
20799
  [
20796
20800
  "You are an expert chat title generator.",
@@ -31015,4 +31019,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
31015
31019
  //#endregion
31016
31020
  export { validatePollGroups as A, attachmentSlugFromRecord as B, pollRouteFromSourceSlug as C, validateAttachmentTargets as D, toStoredRouteManifest as E, webhookManifestAttachmentSchemasFromBindings as F, packAssetDirs as G, computeCallSiteIds as H, webhookMatchSchemaForBindings as I, entryIdFromFile as J, discoverEntries as K, webhookRouteFromEndpoint as L, validateTriggerAttachments as M, validateUniqueAttachmentSlugs as N, validateImportedTriggerAttachment as O, validateUniqueTriggerSourceSlugs as P, walkTypeScriptFiles as Q, workflowKeyForAttachment as R, pollGroupRouteFromId as S, serializeRouteManifest as T, diagnoseWorkflowSource as U, classifyCall as V, locateWorkflow as W, shouldSkipKeystrokeModuleFile as X, readKeystrokeIgnoreDirective as Y, validateUniqueModuleKeys as Z, importAgentDefinition as _, buildStoredRouteManifestForProject as a, persistStoredRouteManifest as b, collectAgentAppSlugs as c, discoverAgentEntries as d, discoverSkillManifestEntries as f, emitStoredRouteManifestForProject as g, discoverWorkflows as h, buildPollGroups as i, validateProjectModules as j, validateImportedWorkflowDefinition as k, collectAgentToolSlugs as l, discoverWorkflowEntries as m, agentManifestEntry as n, buildStoredRouteManifestFromContext as o, discoverTriggerAttachments as p, discoverModuleFileEntries as q, agentRouteFromKey as r, buildWebhookBindingsByRoute as s, agentKeyForAttachment as t, countAgentCredentials as u, importTriggerAttachments as v, schemaToJson as w, pollGroupId as x, importWorkflowDefinition as y, workflowRouteFromKey as z };
31017
31021
 
31018
- //# sourceMappingURL=dist-DPWhoGsR.mjs.map
31022
+ //# sourceMappingURL=dist-Ddc25Zjn.mjs.map