@runtypelabs/cli 2.22.3 → 2.22.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.
- package/dist/index.js +43 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21348,6 +21348,49 @@ var runtimeArtifactManifestSchema = external_exports.object({
|
|
|
21348
21348
|
reasons: external_exports.array(runtimeArtifactEligibilityReasonSchema)
|
|
21349
21349
|
})
|
|
21350
21350
|
});
|
|
21351
|
+
var edgeAuthSnapshotSchema = external_exports.object({
|
|
21352
|
+
/**
|
|
21353
|
+
* Schema version. A plain positive int (not a literal) so a consumer pinned
|
|
21354
|
+
* to v1 can still parse a future v(N) record whose only delta is additive
|
|
21355
|
+
* optional fields. Producer writes {@link EDGE_AUTH_SNAPSHOT_SCHEMA_VERSION}.
|
|
21356
|
+
*/
|
|
21357
|
+
schemaVersion: external_exports.number().int().positive(),
|
|
21358
|
+
/** Resolved Runtype user id (`user_…`). */
|
|
21359
|
+
userId: external_exports.string().min(1),
|
|
21360
|
+
/** Resolved org id (`org_…`); null for a personal (no-org) credential. */
|
|
21361
|
+
orgId: external_exports.string().min(1).nullable(),
|
|
21362
|
+
/** Effective permission scopes for the credential (e.g. `["*"]`). */
|
|
21363
|
+
scopes: external_exports.array(external_exports.string()),
|
|
21364
|
+
/**
|
|
21365
|
+
* Test credential? Normalized across types: API key → prefix-derived
|
|
21366
|
+
* `isTestKey`; client token → `environment === 'test'`. The consumer routes
|
|
21367
|
+
* test credentials to the API (never the edge fast path).
|
|
21368
|
+
*/
|
|
21369
|
+
isTestKey: external_exports.boolean(),
|
|
21370
|
+
/**
|
|
21371
|
+
* Mirror of the platform-key spend ceiling (`getPlatformKeyAccessStatus`'s
|
|
21372
|
+
* `blocked`, per-org). A best-effort copy bounded by the record's short TTL;
|
|
21373
|
+
* the authoritative spend gate stays on the API path.
|
|
21374
|
+
*/
|
|
21375
|
+
spendExceeded: external_exports.boolean(),
|
|
21376
|
+
/**
|
|
21377
|
+
* Demotion backstop (decision D): when true the edge must fall back to the
|
|
21378
|
+
* API. Always `false` from the producer; flipped asynchronously by the
|
|
21379
|
+
* control plane (out of scope for the write-through producer).
|
|
21380
|
+
*/
|
|
21381
|
+
forceFallback: external_exports.boolean(),
|
|
21382
|
+
/**
|
|
21383
|
+
* Credential expiry as epoch MILLISECONDS (same unit as the signed-context
|
|
21384
|
+
* `exp`), or `null` for no expiry. The edge MUST reject a record whose
|
|
21385
|
+
* `expiresAt <= now` even on a KV hit: the producer also caps the KV TTL at
|
|
21386
|
+
* the remaining lifetime, but KV's 60s minimum TTL means a near-expiry record
|
|
21387
|
+
* can briefly outlive the credential, so the field is the precise gate.
|
|
21388
|
+
* Optional for additive-compat with records written before this field existed
|
|
21389
|
+
* (a v1 consumer treats an absent value as "no expiry recorded"). API keys
|
|
21390
|
+
* populate it from their `expiresAt`; client tokens have no expiry (null).
|
|
21391
|
+
*/
|
|
21392
|
+
expiresAt: external_exports.number().int().positive().nullable().optional()
|
|
21393
|
+
});
|
|
21351
21394
|
var EMIT_ARTIFACT_MARKDOWN_TOOL_ID = "emit_artifact_markdown";
|
|
21352
21395
|
var EMIT_ARTIFACT_COMPONENT_TOOL_ID = "emit_artifact_component";
|
|
21353
21396
|
var EMIT_ARTIFACT_MARKDOWN_FULL_ID = `builtin:${EMIT_ARTIFACT_MARKDOWN_TOOL_ID}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.5",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react": "^19.2.4",
|
|
24
24
|
"rosie-skills": "0.8.1",
|
|
25
25
|
"yaml": "^2.9.0",
|
|
26
|
-
"@runtypelabs/sdk": "4.19.2",
|
|
27
26
|
"@runtypelabs/ink-components": "0.3.2",
|
|
27
|
+
"@runtypelabs/sdk": "4.21.0",
|
|
28
28
|
"@runtypelabs/terminal-animations": "0.2.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tsx": "^4.7.1",
|
|
40
40
|
"typescript": "^5.3.3",
|
|
41
41
|
"vitest": "^4.1.0",
|
|
42
|
-
"@runtypelabs/shared": "1.35.
|
|
42
|
+
"@runtypelabs/shared": "1.35.4"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=22.0.0"
|