@keystrokehq/cli 0.1.182 → 0.1.184

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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as __require, r as __toESM, t as __commonJSMin } from "./chunk-DiodbrVj.mjs";
3
- import { $a as number, Ba as ZodType, Ga as array, Ha as _function, Ja as discriminatedUnion, Ka as boolean$1, Mn as PROJECT_MANIFEST_REL_PATH, Qa as looseObject, Qt as ListBrainDocumentsQuerySchema, Ra as number$1, Ta as PublicModelsResponseSchema, Ua as _null, Va as _enum, Wa as any, Xa as lazy, Ya as intersection, Za as literal, _a as normalizeCredentialList, ao as union, co as datetime, eo as object, fr as PromptResponseSchema, g as BrainDocumentIdSchema, ga as getOpenApiJsonSchema, ha as credentialInputSchema, io as string, lo as safeParse$1, no as preprocess, nr as ProjectArtifactIndexSchema, oo as unknown, qa as custom, ra as parseStoredRouteManifest, ro as record, sa as zodToStoredJsonSchema, so as url, ta as parseProjectManifest, to as optional, uo as NEVER, va as requiredDisplayTextSchema, ya as DEFAULT_CLOUD_PLATFORM_ORIGIN, za as ZodIssueCode } from "./dist-TgqInfge.mjs";
3
+ import { $a as number, Ba as ZodType, Ga as array, Ha as _function, Ja as discriminatedUnion, Ka as boolean$1, Mn as PROJECT_MANIFEST_REL_PATH, Qa as looseObject, Qt as ListBrainDocumentsQuerySchema, Ra as number$1, Ta as PublicModelsResponseSchema, Ua as _null, Va as _enum, Wa as any, Xa as lazy, Ya as intersection, Za as literal, _a as normalizeCredentialList, ao as union, co as datetime, eo as object, fr as PromptResponseSchema, g as BrainDocumentIdSchema, ga as getOpenApiJsonSchema, ha as credentialInputSchema, io as string, lo as safeParse$1, no as preprocess, nr as ProjectArtifactIndexSchema, oo as unknown, qa as custom, ra as parseStoredRouteManifest, ro as record, sa as zodToStoredJsonSchema, so as url, ta as parseProjectManifest, to as optional, uo as NEVER, va as requiredDisplayTextSchema, ya as DEFAULT_CLOUD_PLATFORM_ORIGIN, za as ZodIssueCode } from "./dist-BHaxjUlc.mjs";
4
4
  import "./chunk-4RUAZWKT-D60fyWAB.mjs";
5
5
  import "./chunk-SAI2SPQQ-CVRoDNs9.mjs";
6
6
  import "./chunk-WNH3HOQA-BCZUOjCJ.mjs";
@@ -15246,7 +15246,7 @@ var PrimaryKey = class {
15246
15246
  }
15247
15247
  };
15248
15248
  //#endregion
15249
- //#region ../../packages/platform-database/dist/mcp-oauth-BkKV9WA_.mjs
15249
+ //#region ../../packages/platform-database/dist/mcp-oauth-BRKArKbL.mjs
15250
15250
  const users = pgTable("users", {
15251
15251
  id: text$1("id").primaryKey(),
15252
15252
  name: text$1("name").notNull(),
@@ -15346,7 +15346,9 @@ const authJwksSqlite = sqliteTable("jwks", {
15346
15346
  const authSessions = pgTable("sessions", {
15347
15347
  id: text$1("id").primaryKey(),
15348
15348
  expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
15349
- token: text$1("token").notNull().unique(),
15349
+ token: text$1("token_hash").unique(),
15350
+ tokenCiphertext: text$1("token_ciphertext"),
15351
+ legacyToken: text$1("token").unique(),
15350
15352
  createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
15351
15353
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull(),
15352
15354
  ipAddress: text$1("ip_address"),
@@ -15357,7 +15359,9 @@ const authSessions = pgTable("sessions", {
15357
15359
  const authSessionsSqlite = sqliteTable("sessions", {
15358
15360
  id: text("id").primaryKey(),
15359
15361
  expiresAt: integer("expires_at", { mode: "timestamp_ms" }).notNull(),
15360
- token: text("token").notNull().unique(),
15362
+ token: text("token_hash").unique(),
15363
+ tokenCiphertext: text("token_ciphertext"),
15364
+ legacyToken: text("token").unique(),
15361
15365
  createdAt: integer("created_at", { mode: "timestamp_ms" }).notNull(),
15362
15366
  updatedAt: integer("updated_at", { mode: "timestamp_ms" }).notNull(),
15363
15367
  ipAddress: text("ip_address"),
@@ -15395,10 +15399,9 @@ const authVerificationsSqlite = sqliteTable("verification", {
15395
15399
  * `oauthAccessToken`, `oauthConsent`) and by field name (the JS property keys
15396
15400
  * below); the physical table/column names are ours to choose.
15397
15401
  *
15398
- * Note: access/refresh tokens are stored as opaque plaintext bearer strings
15399
- * (the Better Auth mcp plugin looks them up directly and cannot hash them),
15400
- * consistent with how the `sessions` table stores session tokens. They are
15401
- * short-lived; rely on DB access controls + at-rest encryption.
15402
+ * Access and refresh tokens are HMAC-SHA-256 hashed by the auth adapter. The
15403
+ * plugin only looks them up, so their plaintext is returned once at issuance
15404
+ * and never needs to be recovered from the database.
15402
15405
  */
15403
15406
  const mcpOauthClient = pgTable("mcp_oauth_client", {
15404
15407
  id: text$1("id").primaryKey(),
@@ -47736,4 +47739,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
47736
47739
  //#endregion
47737
47740
  export { withMcpReadClient as $, serializeRouteManifest as A, validatePollGroups as B, isModularManifestEmitCacheHit as C, stopBrowserUseSession as Ct, pollRouteFromSourceSlug as D, event as Dt, pollGroupRouteFromId as E, configureTelemetry as Et, triggerManifestAttachments as F, webhookManifestAttachmentSchemasFromBindings as G, validateTriggerAttachments as H, tryReadProjectManifest as I, workflowKeyForAttachment as J, webhookMatchSchemaForBindings as K, validateAttachmentTargets as L, sha256File as M, splitStoredRouteManifest as N, projectActionsFingerprint as O, flushTelemetry as Ot, toStoredRouteManifest as P, assertPublicHttpUrl as Q, validateImportedTriggerAttachment as R, integrationPackagesFingerprint as S, runAgentBrowser as St, pollGroupId as T, captureException as Tt, validateUniqueAttachmentSlugs as U, validateProjectModules as V, validateUniqueTriggerSourceSlugs as W, attachmentSlugFromRecord as X, workflowRouteFromKey as Y, PublicHttpUrlError as Z, emitStoredRouteManifestForProject as _, defaultBrowserProfilesRoot as _t, buildPollGroups as a, classifyCall as at, importTriggerAttachments as b, resolveBrowserContext as bt, collectAgentAppSlugs as c, locateWorkflow as ct, countAgentCredentials as d, entryIdFromFile as dt, artifactIndexFromModules as et, discoverAgentEntries as f, readKeystrokeIgnoreDirective as ft, discoverWorkflows as g, agentBrowserProfilePath as gt, discoverWorkflowEntries as h, walkTypeScriptFiles as ht, agentRouteFromKey as i, packDirFromDisk as it, sha256Bytes as j, schemaToJson as k, shutdownTelemetry as kt, collectAgentToolSlugs as l, discoverEntries as lt, discoverTriggerAttachments as m, validateUniqueModuleKeys as mt, agentKeyForAttachment as n, moduleBlobRefsFromModules as nt, buildStoredRouteManifestForProject as o, computeCallSiteIds as ot, discoverSkillManifestEntries as p, shouldSkipKeystrokeModuleFile as pt, webhookRouteFromEndpoint as q, agentManifestEntry as r, mapInParallelBatches as rt, buildStoredRouteManifestFromContext as s, diagnoseWorkflowSource as st, actionsCatalogFingerprint as t, collectArtifactModules as tt, contentHashForModule as u, discoverModuleFileEntries as ut, hashDirectoryContents as v, deleteBrowserUseProfile as vt, persistModularRouteManifest as w, alias as wt, importWorkflowDefinition as x, resolveBrowserProvider as xt, importAgentDefinition as y, openCloudBrowserLogin as yt, validateImportedWorkflowDefinition as z };
47738
47741
 
47739
- //# sourceMappingURL=dist-D14gxQto.mjs.map
47742
+ //# sourceMappingURL=dist-aGL2P8SI.mjs.map