@keystrokehq/cli 0.1.88 → 0.1.90

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 { $r as toJSONSchema, Ar as ZodType, Br as lazy, Cr as parseStoredRouteManifest, Fr as array, Ir as boolean$1, Jr as string, Kr as preprocess, Lr as custom, Mr as _function, Nr as _null, Rr as discriminatedUnion, Ur as number, Vr as literal, Wr as object, Yr as union, cn as PromptResponseSchema, et as DEFAULT_CLOUD_PLATFORM_ORIGIN, fn as ROUTE_MANIFEST_REL_PATH, jr as _enum, ln as PublicModelsResponseSchema, mr as credentialInputSchema, qr as record, wr as requiredDisplayTextSchema, yr as normalizeCredentialList } from "./dist-CEmkrm9b.mjs";
4
- import "./dist-uPQD-3bl.mjs";
3
+ import { $r as toJSONSchema, Ar as ZodType, Br as lazy, Cr as parseStoredRouteManifest, Fr as array, Ir as boolean$1, Jr as string, Kr as preprocess, Lr as custom, Mr as _function, Nr as _null, Rr as discriminatedUnion, Ur as number, Vr as literal, Wr as object, Yr as union, cn as PromptResponseSchema, et as DEFAULT_CLOUD_PLATFORM_ORIGIN, fn as ROUTE_MANIFEST_REL_PATH, jr as _enum, ln as PublicModelsResponseSchema, mr as credentialInputSchema, qr as record, wr as requiredDisplayTextSchema, yr as normalizeCredentialList } from "./dist-Ddqfmys3.mjs";
4
+ import "./dist-HHZNDjZJ.mjs";
5
5
  import "./chunk-BZUGFHVS-CPWRFwK8.mjs";
6
6
  import "./chunk-DLL7UR66-BUYgzxnR.mjs";
7
7
  import "./chunk-TN7HHBQW-CSB_R-XD.mjs";
@@ -3487,7 +3487,7 @@ const tableRegistry$1 = {
3487
3487
  buildPgSchema$1(tableRegistry$1);
3488
3488
  buildSqliteSchema$1(tableRegistry$1);
3489
3489
  //#endregion
3490
- //#region ../../packages/agent/dist/schemas-4m3ayl5o.mjs
3490
+ //#region ../../packages/agent/dist/schemas-klJyQbd2.mjs
3491
3491
  const AGENT_MODEL_ID_PATTERN = /^[a-z0-9-]+\/.+/;
3492
3492
  const AgentModelIdSchema = custom((value) => typeof value === "string" && AGENT_MODEL_ID_PATTERN.test(value), "model must be vendor/model-id");
3493
3493
  const GatewayModelPricingSchema = object({
@@ -3517,8 +3517,20 @@ const ThinkingLevelSchema = _enum([
3517
3517
  object({
3518
3518
  systemPrompt: string(),
3519
3519
  model: AgentModelIdSchema,
3520
+ /**
3521
+ * Optional model used only for context compaction. Same `vendor/model-id` form as
3522
+ * `model`. When omitted, Keystroke uses {@link DEFAULT_COMPACTION_MODEL_ID}.
3523
+ */
3524
+ compactionModel: AgentModelIdSchema.optional(),
3520
3525
  thinkingLevel: ThinkingLevelSchema.optional()
3521
3526
  });
3527
+ [
3528
+ "You compress long agent conversation history into a compact context summary.",
3529
+ "Preserve durable facts, decisions, IDs, file paths, unresolved tasks, and recent tool outcomes.",
3530
+ "Omit chit-chat, repeated tool dumps, and superseded drafts.",
3531
+ "Write plain prose the primary agent can continue from. Do not call tools.",
3532
+ "Respond with ONLY the summary text."
3533
+ ].join("\n");
3522
3534
  //#endregion
3523
3535
  //#region ../../packages/action/dist/index.mjs
3524
3536
  const zodSchema$3 = custom((v) => v instanceof ZodType, "must be a Zod schema");
@@ -29904,6 +29916,7 @@ function agentManifestEntry(agent, options) {
29904
29916
  name: agent.name,
29905
29917
  description: agent.description,
29906
29918
  model: agent.model,
29919
+ ...agent.compactionModel !== void 0 ? { compactionModel: agent.compactionModel } : {},
29907
29920
  systemPrompt: agent.systemPrompt,
29908
29921
  toolCount: agent.tools?.length ?? 0,
29909
29922
  credentialCount: countAgentCredentials(agent),
@@ -30247,6 +30260,7 @@ function serializeRouteManifest(manifest) {
30247
30260
  name: entry.name,
30248
30261
  description: entry.description,
30249
30262
  model: entry.model,
30263
+ ...entry.compactionModel !== void 0 ? { compactionModel: entry.compactionModel } : {},
30250
30264
  systemPrompt: entry.systemPrompt,
30251
30265
  toolCount: entry.toolCount,
30252
30266
  credentialCount: entry.credentialCount,
@@ -30843,7 +30857,7 @@ async function buildStoredRouteManifestForProject(projectRoot, options) {
30843
30857
  entry,
30844
30858
  agent: await importAgentDefinition(entry.filePath, reload)
30845
30859
  })));
30846
- await validateAgentModelIds(loadedAgents.map(({ agent }) => agent.model));
30860
+ await validateAgentModelIds(loadedAgents.flatMap(({ agent }) => agent.compactionModel ? [agent.model, agent.compactionModel] : [agent.model]));
30847
30861
  const resolvedAgents = [];
30848
30862
  for (const { entry, agent } of loadedAgents) {
30849
30863
  const moduleFile = await sourcePaths.resolve("agents", "agent", dirs.agentsDir, entry.filePath);
@@ -31009,4 +31023,4 @@ async function emitStoredRouteManifestForProject(projectRoot) {
31009
31023
  //#endregion
31010
31024
  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 };
31011
31025
 
31012
- //# sourceMappingURL=dist-BBhY5irR.mjs.map
31026
+ //# sourceMappingURL=dist-5IqGzCCh.mjs.map