@runtypelabs/cli 2.40.14 → 2.40.16
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 +85 -24
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20278,11 +20278,12 @@ function date4(params) {
|
|
|
20278
20278
|
return _coercedDate(ZodDate, params);
|
|
20279
20279
|
}
|
|
20280
20280
|
|
|
20281
|
-
// ../shared/dist/chunk-
|
|
20281
|
+
// ../shared/dist/chunk-G3CLBFD7.mjs
|
|
20282
20282
|
var REPLAY_FROM_START = Object.freeze({
|
|
20283
20283
|
row: 0,
|
|
20284
20284
|
sub: Number.POSITIVE_INFINITY
|
|
20285
20285
|
});
|
|
20286
|
+
var RUN_ORIGINS = ["dashboard", "api", "internal"];
|
|
20286
20287
|
var RUN_STATUSES = [
|
|
20287
20288
|
"queued",
|
|
20288
20289
|
"running",
|
|
@@ -20336,13 +20337,23 @@ var runListRowSchema = external_exports.object({
|
|
|
20336
20337
|
outputTokens: num("Output tokens reported."),
|
|
20337
20338
|
totalCost: str("Metered cost as a decimal string."),
|
|
20338
20339
|
selfReportedCost: str("Cost the producer reported."),
|
|
20339
|
-
|
|
20340
|
-
|
|
20340
|
+
origin: external_exports.enum(RUN_ORIGINS).nullable().describe(
|
|
20341
|
+
`Where the run was dispatched from, taken from the caller's authenticated principal and never from a request field: dashboard for a Clerk session, api for a management API key, internal for a Runtype worker. NULL means the header states nothing about it, which is not "unknown caller": headers written before this field shipped, lanes that never see an auth principal, and every backfilled row carry no origin stamp.`
|
|
20342
|
+
),
|
|
20343
|
+
storeResults: external_exports.boolean().nullable().describe(
|
|
20344
|
+
'The persistence posture the dispatch declared. FALSE means the run wrote no control-plane row, no journal outputs and no span content, so a surface that reports a missing transcript keys on this and never on origin. NULL means the header states nothing, which is not "true": a lane that takes no such flag carries no stamp, and an ingested (OTLP) run declared none. A row served from the legacy control-plane lane answers true, because that row exists only when the run stored.'
|
|
20345
|
+
),
|
|
20346
|
+
inlineDefinition: external_exports.boolean().nullable().describe(
|
|
20347
|
+
"True when the dispatch carried a complete inline agent definition (name and model) beside or instead of an agentId, so the run executed that inline config and no stored version; such a row stamps no agentVersionId. False when the run executed the saved definition by reference. NULL when the header states nothing: a flow run, a lane that resolves no agent definition, or a row that predates the field."
|
|
20348
|
+
),
|
|
20349
|
+
// WHY(packages/shared/src/context-management-config-schema.ts): `.meta` is zod-core; `.openapi` exists only on shim-built instances.
|
|
20350
|
+
test: external_exports.boolean().nullable().meta({ deprecated: true }).describe(
|
|
20351
|
+
'DEPRECATED: a derived alias of origin, kept for one release \u2014 read origin instead. True when the run came from the dashboard, i.e. origin === "dashboard"; NULL exactly when origin is NULL. It is never derived from storeResults, which defaults to false across the whole flow lane and which an API caller sets for its own privacy reasons: reading it as "test" labelled production runs as tests. A run whose header predates origin therefore reads NULL rather than claiming either answer.'
|
|
20341
20352
|
),
|
|
20342
20353
|
stopReason: external_exports.string().nullish().describe("Stop reason from the terminal frame."),
|
|
20343
20354
|
iterations: external_exports.number().nullish().describe("Loop iterations from the terminal frame."),
|
|
20344
20355
|
inputPreview: external_exports.string().nullish().describe(
|
|
20345
|
-
`The run's first user message, secret-scrubbed and cut to ${RUN_INPUT_PREVIEW_MAX_CHARS} characters, so a list can say what a run was asked to do without reading content. Absent means no input text is recorded for this run, which is not an empty message: the span store holds no run-level input at all, so a run with no control-plane row (a flow leg, a storeResults:false
|
|
20356
|
+
`The run's first user message, secret-scrubbed and cut to ${RUN_INPUT_PREVIEW_MAX_CHARS} characters, so a list can say what a run was asked to do without reading content. Absent means no input text is recorded for this run, which is not an empty message: the span store holds no run-level input at all, so a run with no control-plane row (a flow leg, a storeResults:false run) has none.`
|
|
20346
20357
|
),
|
|
20347
20358
|
agentVersionId: ovStr("Agent version that ran."),
|
|
20348
20359
|
agentVersionLabel: ovStr("Version label."),
|
|
@@ -20543,19 +20554,6 @@ var UNSUCCESSFUL_STATUS_SET = new Set(
|
|
|
20543
20554
|
UNSUCCESSFUL_AGENT_EXECUTION_STATUSES
|
|
20544
20555
|
);
|
|
20545
20556
|
|
|
20546
|
-
// ../shared/dist/chunk-O334JSPV.mjs
|
|
20547
|
-
var CANONICAL_LOG_COLUMN_SET = {
|
|
20548
|
-
// @snake-case-ok-start: R2 SQL / Iceberg column naming convention
|
|
20549
|
-
event_id: true,
|
|
20550
|
-
retention_class: true,
|
|
20551
|
-
retention_key: true,
|
|
20552
|
-
canonicalized_at: true,
|
|
20553
|
-
source_ingest_id: true,
|
|
20554
|
-
source_ingest_ts: true
|
|
20555
|
-
// @snake-case-ok-end
|
|
20556
|
-
};
|
|
20557
|
-
var CANONICAL_LOG_COLUMNS = Object.keys(CANONICAL_LOG_COLUMN_SET);
|
|
20558
|
-
|
|
20559
20557
|
// ../shared/dist/chunk-CTJEYKNH.mjs
|
|
20560
20558
|
var BUILTIN_TOOLS_LEAN = [
|
|
20561
20559
|
{ "id": "gpt-image-2-5", "name": "GPT Image 2.5", "category": "image_generation", "providers": ["multi"], "defaultConfig": { "size": "1024x1024", "quality": "low", "outputFormat": "png", "background": "auto" }, "requiresApiKey": true, "executionHint": "platform", "platformKeySupport": true },
|
|
@@ -23143,6 +23141,13 @@ function resolveModelOptionalSettings(model) {
|
|
|
23143
23141
|
return [];
|
|
23144
23142
|
}
|
|
23145
23143
|
|
|
23144
|
+
// ../shared/dist/chunk-CABFF4K3.mjs
|
|
23145
|
+
var MANAGED_DEPLOYMENT_SOURCE_LIMITS = {
|
|
23146
|
+
maxCompressedBytes: 25 * 1024 * 1024,
|
|
23147
|
+
maxExpandedBytes: 100 * 1024 * 1024,
|
|
23148
|
+
maxRegularFiles: 1e3
|
|
23149
|
+
};
|
|
23150
|
+
|
|
23146
23151
|
// ../shared/dist/chunk-EOJ3KTQ2.mjs
|
|
23147
23152
|
var textPartSchema = external_exports.object({ type: external_exports.literal("text"), text: external_exports.string() }).passthrough();
|
|
23148
23153
|
var imagePartSchema = external_exports.object({ type: external_exports.literal("image"), image: external_exports.string(), mimeType: external_exports.string().optional() }).passthrough();
|
|
@@ -23299,6 +23304,61 @@ var resolvedEdgeAuthSnapshotSchema = edgeAuthSnapshotSchema.extend({
|
|
|
23299
23304
|
var CONTAINER_SANDBOX_INSTANCE_TYPE = "standard-4";
|
|
23300
23305
|
var MAX_SANDBOX_EXECUTE_CONTAINMENT_WINDOW_MS = 30 * 60 * 1e3;
|
|
23301
23306
|
|
|
23307
|
+
// ../shared/dist/chunk-R7QGO7VU.mjs
|
|
23308
|
+
var MANAGED_INGRESS_LIMITS = Object.freeze({
|
|
23309
|
+
requestBodyBytes: 10 * 1024 * 1024,
|
|
23310
|
+
responseBodyBytes: 25 * 1024 * 1024,
|
|
23311
|
+
upstreamHeaderTimeoutMs: 6e4,
|
|
23312
|
+
totalRequestMs: 5 * 6e4
|
|
23313
|
+
});
|
|
23314
|
+
var MANAGED_INGRESS_PORT_HEADER = "x-runtype-managed-port";
|
|
23315
|
+
var MANAGED_INGRESS_TOKEN_PREFIX = "sbdt_";
|
|
23316
|
+
var MANAGED_INGRESS_TOKEN_DISPLAY_LENGTH = MANAGED_INGRESS_TOKEN_PREFIX.length + 6;
|
|
23317
|
+
var MANAGED_INGRESS_STRIPPED_REQUEST_HEADERS = Object.freeze([
|
|
23318
|
+
"cf-connecting-ip",
|
|
23319
|
+
"cf-ray",
|
|
23320
|
+
"cf-worker",
|
|
23321
|
+
"true-client-ip",
|
|
23322
|
+
"x-daytona-preview-token",
|
|
23323
|
+
"x-forwarded-for",
|
|
23324
|
+
"x-forwarded-host",
|
|
23325
|
+
"x-forwarded-proto",
|
|
23326
|
+
"x-real-ip",
|
|
23327
|
+
"x-runtype-deployment-generation",
|
|
23328
|
+
"x-runtype-deployment-id",
|
|
23329
|
+
"x-runtype-deployment-token",
|
|
23330
|
+
"x-runtype-ingress",
|
|
23331
|
+
"x-runtype-internal",
|
|
23332
|
+
MANAGED_INGRESS_PORT_HEADER
|
|
23333
|
+
]);
|
|
23334
|
+
var MANAGED_INGRESS_HOP_BY_HOP_HEADERS = Object.freeze([
|
|
23335
|
+
"connection",
|
|
23336
|
+
"keep-alive",
|
|
23337
|
+
"proxy-authenticate",
|
|
23338
|
+
"proxy-authorization",
|
|
23339
|
+
"te",
|
|
23340
|
+
"trailer",
|
|
23341
|
+
"transfer-encoding",
|
|
23342
|
+
"upgrade"
|
|
23343
|
+
]);
|
|
23344
|
+
var MANAGED_INGRESS_STRIPPED_RESPONSE_HEADERS = Object.freeze([
|
|
23345
|
+
"access-control-allow-credentials",
|
|
23346
|
+
"access-control-allow-headers",
|
|
23347
|
+
"access-control-allow-methods",
|
|
23348
|
+
"access-control-allow-origin",
|
|
23349
|
+
"content-length"
|
|
23350
|
+
]);
|
|
23351
|
+
var MANAGED_INGRESS_RESERVED_PORTS = Object.freeze([
|
|
23352
|
+
22,
|
|
23353
|
+
2375,
|
|
23354
|
+
2376,
|
|
23355
|
+
6443,
|
|
23356
|
+
8787,
|
|
23357
|
+
8789,
|
|
23358
|
+
9229,
|
|
23359
|
+
9300
|
|
23360
|
+
]);
|
|
23361
|
+
|
|
23302
23362
|
// ../shared/dist/chunk-KNCWLVL2.mjs
|
|
23303
23363
|
var MANAGED_SANDBOX_CAPABILITIES = [
|
|
23304
23364
|
"inspect-without-start",
|
|
@@ -23325,13 +23385,6 @@ var MANAGED_PROFILE_IDENTITY_FIELDS = Object.freeze([
|
|
|
23325
23385
|
"environment"
|
|
23326
23386
|
]);
|
|
23327
23387
|
|
|
23328
|
-
// ../shared/dist/chunk-CABFF4K3.mjs
|
|
23329
|
-
var MANAGED_DEPLOYMENT_SOURCE_LIMITS = {
|
|
23330
|
-
maxCompressedBytes: 25 * 1024 * 1024,
|
|
23331
|
-
maxExpandedBytes: 100 * 1024 * 1024,
|
|
23332
|
-
maxRegularFiles: 1e3
|
|
23333
|
-
};
|
|
23334
|
-
|
|
23335
23388
|
// ../shared/dist/chunk-NBGTI2DK.mjs
|
|
23336
23389
|
var apiReleaseChannelSchema = external_exports.enum(["staging", "production"]);
|
|
23337
23390
|
var API_ARTIFACT_SCRIPT_PATTERN = /^api-[a-z0-9][a-z0-9-]{0,62}$/;
|
|
@@ -69584,6 +69637,10 @@ async function configureWithNativeCli(agent, options) {
|
|
|
69584
69637
|
cwd: tmpdir()
|
|
69585
69638
|
});
|
|
69586
69639
|
if (inspection.error?.includes("ENOENT")) {
|
|
69640
|
+
if (agent === "codex") {
|
|
69641
|
+
const adapter = options.adapter ?? await loadAddMcpAdapter();
|
|
69642
|
+
return configureWithFallbackWriter(agent, { force: options.force, adapter });
|
|
69643
|
+
}
|
|
69587
69644
|
return {
|
|
69588
69645
|
configured: false,
|
|
69589
69646
|
changed: false,
|
|
@@ -69608,6 +69665,10 @@ async function configureWithNativeCli(agent, options) {
|
|
|
69608
69665
|
cwd: tmpdir()
|
|
69609
69666
|
});
|
|
69610
69667
|
if (installation.error?.includes("ENOENT")) {
|
|
69668
|
+
if (agent === "codex") {
|
|
69669
|
+
const adapter = options.adapter ?? await loadAddMcpAdapter();
|
|
69670
|
+
return configureWithFallbackWriter(agent, { force: options.force, adapter });
|
|
69671
|
+
}
|
|
69611
69672
|
return {
|
|
69612
69673
|
configured: false,
|
|
69613
69674
|
changed: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.16",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@modelcontextprotocol/client": "2.0.0",
|
|
12
12
|
"@modelcontextprotocol/core": "2.0.0",
|
|
13
13
|
"@runtypelabs/ink-components": "0.3.7",
|
|
14
|
-
"@runtypelabs/sdk": "10.1.
|
|
14
|
+
"@runtypelabs/sdk": "10.1.4",
|
|
15
15
|
"@runtypelabs/terminal-animations": "0.2.4",
|
|
16
16
|
"add-mcp": "2.0.0",
|
|
17
17
|
"chalk": "^5.3.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@modelcontextprotocol/server": "2.0.0",
|
|
35
35
|
"@runtypelabs/persona": "4.22.0",
|
|
36
|
-
"@runtypelabs/shared": "3.
|
|
36
|
+
"@runtypelabs/shared": "3.58.2",
|
|
37
37
|
"@types/express": "^5.0.6",
|
|
38
38
|
"@types/micromatch": "^4.0.9",
|
|
39
39
|
"@types/node": "^25.3.3",
|