@runtypelabs/cli 2.12.3 → 2.12.4

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.
Files changed (2) hide show
  1. package/dist/index.js +38 -13
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -31559,6 +31559,28 @@ var MODEL_FAMILY_PROVIDER_IDS = {
31559
31559
  "vercel": "voyage/voyage-law-2"
31560
31560
  }
31561
31561
  };
31562
+ var PLATFORM_KEY_PROVIDER_MAP = {
31563
+ "mixlayer": true,
31564
+ "openai": true,
31565
+ "anthropic": true,
31566
+ "google": true,
31567
+ "xai": true,
31568
+ "vercel": true,
31569
+ "cloudflare": true,
31570
+ "azure": false,
31571
+ "openrouter": false,
31572
+ "togetherai": false,
31573
+ "bedrock": false,
31574
+ "vertex": false,
31575
+ "vertex-anthropic": false,
31576
+ "tinfoil": false,
31577
+ "generic-openai": false,
31578
+ "workers-ai": false,
31579
+ "mock": false
31580
+ };
31581
+ var PLATFORM_KEY_PROVIDERS = new Set(
31582
+ Object.entries(PLATFORM_KEY_PROVIDER_MAP).filter(([, v]) => v).map(([k]) => k)
31583
+ );
31562
31584
  var MANUAL_PROVIDER_MAP_OVERRIDES = {
31563
31585
  // Bedrock uses different model ID format
31564
31586
  "claude-sonnet-4-5": {
@@ -35213,6 +35235,15 @@ var RunPromptOptionsSchema = external_exports.object({
35213
35235
  variables: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
35214
35236
  responseFormat: external_exports.enum(["text", "json", "markdown"]).optional()
35215
35237
  });
35238
+ var SANDBOX_TTL_DEFAULT_SECONDS = 10 * 60;
35239
+ var SANDBOX_TTL_MAX_SECONDS = 2 * 60 * 60;
35240
+ var SANDBOX_TTL_OPTIONS = [
35241
+ { label: "10 min", value: 10 * 60 },
35242
+ { label: "30 min", value: 30 * 60 },
35243
+ { label: "1 hour", value: 60 * 60 },
35244
+ { label: "2 hours", value: 2 * 60 * 60 },
35245
+ { label: "Unlimited", value: null }
35246
+ ];
35216
35247
 
35217
35248
  // src/config/env.ts
35218
35249
  function getApiUrl() {
@@ -50075,24 +50106,23 @@ schedulesCommand.command("get <id>").description("Get schedule details").option(
50075
50106
  const { waitUntilExit } = render12(React12.createElement(App));
50076
50107
  await waitUntilExit();
50077
50108
  });
50078
- schedulesCommand.command("create").description("Create a new schedule").requiredOption("-f, --flow <id>", "Flow ID to schedule").requiredOption("-c, --cron <expression>", 'Cron expression (e.g. "0 9 * * *")').option("-n, --name <name>", "Schedule name").option("--json", "Output as JSON").option("--tty", "Force TTY mode").option("--no-tty", "Force non-TTY mode").action(async (options) => {
50109
+ schedulesCommand.command("create").description("Create a new recurring schedule for a flow").requiredOption("-f, --flow <id>", "Flow ID to schedule").requiredOption("-c, --cron <expression>", 'Cron expression (e.g. "0 9 * * *")').requiredOption("-z, --timezone <tz>", 'IANA timezone for the cron schedule (e.g. "America/Los_Angeles")').option("--json", "Output as JSON").option("--tty", "Force TTY mode").option("--no-tty", "Force non-TTY mode").action(async (options) => {
50079
50110
  const apiKey = await ensureAuth();
50080
50111
  if (!apiKey) return;
50081
50112
  const client = new ApiClient(apiKey);
50113
+ const payload = {
50114
+ target: { flowId: options.flow },
50115
+ trigger: { type: "recurring", cron: options.cron, timezone: options.timezone }
50116
+ };
50082
50117
  if (!isTTY(options) || options.json) {
50083
50118
  try {
50084
- const data = await client.post("/schedules", {
50085
- flowId: options.flow,
50086
- cronExpression: options.cron,
50087
- name: options.name
50088
- });
50119
+ const data = await client.post("/schedules", payload);
50089
50120
  if (options.json) {
50090
50121
  printJson(data);
50091
50122
  return;
50092
50123
  }
50093
50124
  console.log(` ID: ${data.id}`);
50094
50125
  if (data.name) console.log(` Name: ${data.name}`);
50095
- console.log(` Cron: ${data.cronExpression}`);
50096
50126
  if (data.nextRunAt) console.log(` Next run: ${data.nextRunAt}`);
50097
50127
  } catch (error51) {
50098
50128
  const message = error51 instanceof Error ? error51.message : "Unknown error";
@@ -50107,11 +50137,7 @@ schedulesCommand.command("create").description("Create a new schedule").required
50107
50137
  const [error51, setError] = useState26(null);
50108
50138
  const [result, setResult] = useState26(null);
50109
50139
  useEffect23(() => {
50110
- client.post("/schedules", {
50111
- flowId: options.flow,
50112
- cronExpression: options.cron,
50113
- name: options.name
50114
- }).then((data) => {
50140
+ client.post("/schedules", payload).then((data) => {
50115
50141
  setResult(data);
50116
50142
  setSuccess(true);
50117
50143
  setLoading(false);
@@ -50131,7 +50157,6 @@ schedulesCommand.command("create").description("Create a new schedule").required
50131
50157
  fields: [
50132
50158
  { label: "ID", value: result.id, color: "green" },
50133
50159
  { label: "Name", value: result.name },
50134
- { label: "Cron", value: result.cronExpression },
50135
50160
  { label: "Next run", value: result.nextRunAt }
50136
50161
  ]
50137
50162
  }) : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/cli",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "description": "Command-line interface for Runtype AI platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,8 +21,8 @@
21
21
  "micromatch": "^4.0.8",
22
22
  "yaml": "^2.8.3",
23
23
  "@runtypelabs/ink-components": "0.3.1",
24
- "@runtypelabs/terminal-animations": "0.2.0",
25
- "@runtypelabs/sdk": "1.21.0"
24
+ "@runtypelabs/sdk": "1.21.1",
25
+ "@runtypelabs/terminal-animations": "0.2.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/micromatch": "^4.0.9",
@@ -35,7 +35,7 @@
35
35
  "tsx": "^4.7.1",
36
36
  "typescript": "^5.3.3",
37
37
  "vitest": "^4.0.18",
38
- "@runtypelabs/shared": "1.6.0"
38
+ "@runtypelabs/shared": "1.6.1"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=18.0.0"