@runtypelabs/cli 2.33.4 → 2.33.5

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 +48 -14
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -33170,7 +33170,7 @@ var CONTEXT_STEP_TYPES = [
33170
33170
  ];
33171
33171
  var FLOW_STEP_TYPES = ["prompt", ...CONTEXT_STEP_TYPES];
33172
33172
 
33173
- // ../shared/dist/chunk-MATCHJ7V.mjs
33173
+ // ../shared/dist/chunk-XCUZAGPM.mjs
33174
33174
  function getNestedValue(obj, path20) {
33175
33175
  let normalizedPath = path20;
33176
33176
  normalizedPath = normalizedPath.replace(/^\$\.?/, "");
@@ -33227,6 +33227,15 @@ var SYSTEM_VARIABLES = /* @__PURE__ */ new Set([
33227
33227
  // it as undeclared and the executors don't report it as "unresolved" before
33228
33228
  // injection runs.
33229
33229
  "_tools",
33230
+ // Multi-tenancy identity vars. `createContextVariables` populates both
33231
+ // spread-conditionally (`_endUser` for the individual human, `_tenant` for the
33232
+ // customer org between `_user` and `_endUser`), and the dispatch schema
33233
+ // documents them — but they were missing here, so `{{_endUser.email}}` /
33234
+ // `{{_tenant.id}}` validated as UNDECLARED_VARIABLE_REFERENCE with a
33235
+ // remediation ("declare it as a flow input") that is impossible: the `inputs`
33236
+ // schema rejects keys starting with `_`.
33237
+ "_endUser",
33238
+ "_tenant",
33230
33239
  ...MESSAGE_VARIABLES
33231
33240
  ]);
33232
33241
  var SECRET_REF_PATTERN = /\{\{secret:([A-Z][A-Z0-9_]*[A-Z0-9])\}\}/g;
@@ -40384,14 +40393,16 @@ var API_INPROCESS_CAPABILITY_MATRIX = {
40384
40393
  // flow lane to legacy for the common case — the opposite of runtime-primary.
40385
40394
  // The runtime lane already carries Layer-1 resilience natively
40386
40395
  // (`withModelCallResilience`: TTFT + idle watchdog + bounded same-model
40387
- // retry — packages/runtime prompt-executor.ts), so the residual delta is
40388
- // narrow: on a retryable platform-key failure that survives Layer 1 with no
40389
- // partial output, the runtime surfaces the step error where legacy would
40390
- // additionally swap upstream/model. That is an availability nicety, not a
40391
- // semantic difference — and unlike the folds above it cannot silently
40392
- // produce a WRONG result. `hasImplicitPlatformFallbackCandidate` is still
40393
- // computed for decision attribution. Rollback lever: flip this bit to `true`
40394
- // (plus its test) to restore the fold.
40396
+ // retry — packages/runtime prompt-executor.ts), and since the fallback-chain
40397
+ // port it ALSO synthesizes the implicit chain itself: on a retryable
40398
+ // platform-key failure that survives Layer 1 with no partial output, the
40399
+ // runtime flow engine runs the SAME shared gate and chain builder as legacy
40400
+ // (`shouldSynthesizePlatformDefaultFallback` / `getPlatformDefaultStallFallback`,
40401
+ // applied in packages/runtime flow-engine.ts) and swaps upstream/model too —
40402
+ // so the residual delta the original rationale described is closed.
40403
+ // `hasImplicitPlatformFallbackCandidate` is still computed for decision
40404
+ // attribution. Rollback lever: flip this bit to `true` (plus its test) to
40405
+ // restore the fold.
40395
40406
  implicitPlatformFallback: false,
40396
40407
  // §A1 parity-audit BRIDGE fold: a prompt step's `toolIds` carrying a
40397
40408
  // reference class the runtime lane can neither materialize at export nor
@@ -40440,11 +40451,17 @@ var VENDORED_EXPORT_CAPABILITY_MATRIX = {
40440
40451
  "wait-until",
40441
40452
  "crawl",
40442
40453
  // ── Hosted-service / DB-backed record & email steps (BYOC §7.2). A
40443
- // self-contained container has no hosted RecordStore / EmailSender; the
40444
- // Hosted endpoints are PROPOSED, not built, and S0 shows send-email /
40445
- // record steps fail in BOTH default and wired configs (no Bundled mode).
40446
- // Graduation lever: build the Hosted endpoints OR ship a Bundled
40447
- // RecordStore/EmailSender in the standard export — then remove.
40454
+ // self-contained container has no hosted RecordStore / EmailSender, and S0
40455
+ // shows send-email / record steps fail in BOTH default and wired configs
40456
+ // (no Bundled mode). The Hosted ENDPOINTS themselves are now built and
40457
+ // mounted (`/v1/runtime/email`, `/v1/runtime/records`, `/v1/runtime/search`)
40458
+ // and the runtime ships `HostedEmailSender` against them — so that half of
40459
+ // the original graduation lever is met. What is still missing is the
40460
+ // fulfillment: the standard export wires no EmailSender / RecordStore (the
40461
+ // runtime falls back to its NoOp sender), and a Hosted client needs a
40462
+ // customer-supplied Runtype API key an export does not carry. Graduation
40463
+ // lever: wire a Hosted or Bundled RecordStore/EmailSender into the standard
40464
+ // export — then remove.
40448
40465
  "send-email",
40449
40466
  "upsert-record",
40450
40467
  "update-record",
@@ -45087,10 +45104,27 @@ var credentialProxyConfigSchema = external_exports.object({
45087
45104
  });
45088
45105
  var LOCAL_INFERENCE_PROTOCOL_VERSION = 1;
45089
45106
  var LocalInferenceSurfaceSchema = external_exports.enum(["playground", "flows", "agents"]);
45107
+ var LocalModelCapabilitiesSchema = external_exports.object({
45108
+ streaming: external_exports.boolean(),
45109
+ structuredOutput: external_exports.enum(["none", "json", "json_schema"]),
45110
+ tools: external_exports.enum(["none", "single", "parallel"]),
45111
+ vision: external_exports.boolean(),
45112
+ maxContextTokens: external_exports.number().int().positive().optional(),
45113
+ maxOutputTokens: external_exports.number().int().positive().optional(),
45114
+ supportedSampling: external_exports.array(external_exports.enum(["temperature", "top_p", "seed"])).optional()
45115
+ });
45116
+ var LocalInferenceModelSnapshotSchema = external_exports.object({
45117
+ backend: external_exports.literal("ollama"),
45118
+ model: external_exports.string().trim().min(1).max(256),
45119
+ capabilities: LocalModelCapabilitiesSchema,
45120
+ capabilityRevision: external_exports.string().regex(/^sha256:[0-9a-f]{64}$/)
45121
+ });
45090
45122
  var LocalInferenceSelectionSchema = external_exports.object({
45091
45123
  sessionId: external_exports.string().uuid(),
45092
45124
  model: external_exports.string().trim().min(1).max(256),
45093
45125
  backend: external_exports.literal("ollama"),
45126
+ /** Optional only for protocol-v1 dashboards during the rolling upgrade. */
45127
+ capabilityRevision: external_exports.string().regex(/^sha256:[0-9a-f]{64}$/).optional(),
45094
45128
  /**
45095
45129
  * Dashboard surface that created the session. Optional during the rolling
45096
45130
  * upgrade from protocol v1 clients; new clients always send it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/cli",
3
- "version": "2.33.4",
3
+ "version": "2.33.5",
4
4
  "description": "Command-line interface for Runtype AI platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,9 +26,9 @@
26
26
  "react": "^19.2.8",
27
27
  "rosie-skills": "0.8.1",
28
28
  "yaml": "^2.9.0",
29
- "@runtypelabs/sdk": "6.6.3",
30
- "@runtypelabs/terminal-animations": "0.2.3",
31
- "@runtypelabs/ink-components": "0.3.6"
29
+ "@runtypelabs/ink-components": "0.3.6",
30
+ "@runtypelabs/sdk": "7.0.0",
31
+ "@runtypelabs/terminal-animations": "0.2.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@modelcontextprotocol/server": "2.0.0",
@@ -43,7 +43,7 @@
43
43
  "tsx": "^4.7.1",
44
44
  "typescript": "^6.0.3",
45
45
  "vitest": "^4.1.0",
46
- "@runtypelabs/shared": "3.18.0"
46
+ "@runtypelabs/shared": "3.19.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=22.12.0"