@keystrokehq/cli 0.1.120 → 0.1.121

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.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { g as emitStoredRouteManifestForProject } from "./dist-CPKiOMpO.mjs";
3
+ export { emitStoredRouteManifestForProject };
@@ -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 { Br as custom, Dr as requiredDisplayTextSchema, Er as parseStoredRouteManifest, Fr as _function, Ir as _null, Kr as number, Nr as ZodType, Pr as _enum, Qr as union, Rr as array, Sr as normalizeCredentialList, Ur as lazy, Vr as discriminatedUnion, Wr as literal, Xr as record, Yr as preprocess, Zr as string, _r as credentialInputSchema, dn as PromptResponseSchema, fn as PublicModelsResponseSchema, hn as ROUTE_MANIFEST_REL_PATH, ni as toJSONSchema, qr as object, tt as DEFAULT_CLOUD_PLATFORM_ORIGIN, ut as FilePartSchema, zr as boolean$1 } from "./dist-Cv14W_rK.mjs";
4
- import "./dist-Dapwh1K9.mjs";
3
+ import { $r as number, Br as ZodType, Gr as array, Hr as _function, Jr as discriminatedUnion, Kr as boolean$1, Nr as parseStoredRouteManifest, Pr as requiredDisplayTextSchema, Ur as _null, Vr as _enum, Xr as lazy, Zr as literal, ai as union, bn as ROUTE_MANIFEST_REL_PATH, ei as object, fn as PromptResponseSchema, gn as PublicModelsResponseSchema, ii as string, kr as normalizeCredentialList, li as toJSONSchema, ni as preprocess, qr as custom, ri as record, tt as DEFAULT_CLOUD_PLATFORM_ORIGIN, ut as FilePartSchema, wr as credentialInputSchema } from "./dist-CPu6Uh2o.mjs";
4
+ import "./dist-_HOtlAw_.mjs";
5
5
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
6
6
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
7
7
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -13767,6 +13767,42 @@ const projectArtifactsSqlite = sqliteTable("project_artifacts", {
13767
13767
  createdAt: integer$1("created_at", { mode: "timestamp_ms" }).notNull(),
13768
13768
  updatedAt: integer$1("updated_at", { mode: "timestamp_ms" }).notNull()
13769
13769
  }, (table) => [index$1("project_artifacts_project_id_idx").on(table.projectId)]);
13770
+ const publishedForms = pgTable("published_forms", {
13771
+ id: text("id").primaryKey(),
13772
+ organizationId: text("organization_id").notNull().references(() => organizations.id, { onDelete: "cascade" }),
13773
+ projectId: text("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
13774
+ workflowSlug: text("workflow_slug").notNull(),
13775
+ token: text("token").notNull(),
13776
+ enabled: boolean("enabled").notNull().default(true),
13777
+ title: text("title"),
13778
+ description: text("description"),
13779
+ fieldConfig: jsonb("field_config").$type().notNull().default({}),
13780
+ createdByUserId: text("created_by_user_id").references(() => users.id, { onDelete: "set null" }),
13781
+ createdAt: timestamp("created_at", { withTimezone: true }).notNull(),
13782
+ updatedAt: timestamp("updated_at", { withTimezone: true }).notNull()
13783
+ }, (table) => [
13784
+ uniqueIndex("published_forms_token_unique").on(table.token),
13785
+ uniqueIndex("published_forms_workflow_unique").on(table.organizationId, table.projectId, table.workflowSlug),
13786
+ index("published_forms_project_id_idx").on(table.projectId)
13787
+ ]);
13788
+ const publishedFormsSqlite = sqliteTable("published_forms", {
13789
+ id: text$1("id").primaryKey(),
13790
+ organizationId: text$1("organization_id").notNull().references(() => organizationsSqlite.id, { onDelete: "cascade" }),
13791
+ projectId: text$1("project_id").notNull().references(() => projectsSqlite.id, { onDelete: "cascade" }),
13792
+ workflowSlug: text$1("workflow_slug").notNull(),
13793
+ token: text$1("token").notNull(),
13794
+ enabled: integer$1("enabled", { mode: "boolean" }).notNull().default(true),
13795
+ title: text$1("title"),
13796
+ description: text$1("description"),
13797
+ fieldConfig: text$1("field_config", { mode: "json" }).$type().notNull().default({}),
13798
+ createdByUserId: text$1("created_by_user_id").references(() => usersSqlite.id, { onDelete: "set null" }),
13799
+ createdAt: integer$1("created_at", { mode: "timestamp_ms" }).notNull(),
13800
+ updatedAt: integer$1("updated_at", { mode: "timestamp_ms" }).notNull()
13801
+ }, (table) => [
13802
+ uniqueIndex$1("published_forms_token_unique").on(table.token),
13803
+ uniqueIndex$1("published_forms_workflow_unique").on(table.organizationId, table.projectId, table.workflowSlug),
13804
+ index$1("published_forms_project_id_idx").on(table.projectId)
13805
+ ]);
13770
13806
  const projectUsers = pgTable("project_users", {
13771
13807
  projectId: text("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
13772
13808
  userId: text("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
@@ -14719,6 +14755,10 @@ const tableRegistry = {
14719
14755
  pg: projectArtifacts,
14720
14756
  sqlite: projectArtifactsSqlite
14721
14757
  },
14758
+ publishedForms: {
14759
+ pg: publishedForms,
14760
+ sqlite: publishedFormsSqlite
14761
+ },
14722
14762
  users: {
14723
14763
  pg: users,
14724
14764
  sqlite: usersSqlite
@@ -31831,4 +31871,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
31831
31871
  //#endregion
31832
31872
  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 };
31833
31873
 
31834
- //# sourceMappingURL=dist-DEf7Qj_S.mjs.map
31874
+ //# sourceMappingURL=dist-CPKiOMpO.mjs.map