@runtypelabs/cli 2.40.12 → 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 +325 -259
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -610,106 +610,6 @@ var OAuthManager = class {
|
|
|
610
610
|
// src/auth/api-key-manager.ts
|
|
611
611
|
import { RuntypeApiError } from "@runtypelabs/sdk";
|
|
612
612
|
|
|
613
|
-
// ../shared/dist/chunk-P5NYF5TN.mjs
|
|
614
|
-
var REPLAY_FROM_START = Object.freeze({
|
|
615
|
-
row: 0,
|
|
616
|
-
sub: Number.POSITIVE_INFINITY
|
|
617
|
-
});
|
|
618
|
-
|
|
619
|
-
// ../shared/dist/chunk-2NMGSD35.mjs
|
|
620
|
-
var GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
621
|
-
var GEN_AI_AGENT_ID = "gen_ai.agent.id";
|
|
622
|
-
var GEN_AI_AGENT_NAME = "gen_ai.agent.name";
|
|
623
|
-
var GEN_AI_CONVERSATION_ID = "gen_ai.conversation.id";
|
|
624
|
-
var GEN_AI_REQUEST_MODEL = "gen_ai.request.model";
|
|
625
|
-
var GEN_AI_RESPONSE_MODEL_NAME = "gen_ai.response.model";
|
|
626
|
-
var GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
627
|
-
var GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
628
|
-
var GEN_AI_USAGE_CACHE_READ_TOKENS = "gen_ai.usage.cache_read.input_tokens";
|
|
629
|
-
var GEN_AI_USAGE_CACHE_CREATION_TOKENS = "gen_ai.usage.cache_creation.input_tokens";
|
|
630
|
-
var GEN_AI_TOOL_NAME = "gen_ai.tool.name";
|
|
631
|
-
var GEN_AI_TOOL_TYPE = "gen_ai.tool.type";
|
|
632
|
-
var GEN_AI_TOOL_CALL_ID = "gen_ai.tool.call.id";
|
|
633
|
-
var GEN_AI_ATTRIBUTES = {
|
|
634
|
-
operationName: GEN_AI_OPERATION_NAME,
|
|
635
|
-
agentId: GEN_AI_AGENT_ID,
|
|
636
|
-
agentName: GEN_AI_AGENT_NAME,
|
|
637
|
-
conversationId: GEN_AI_CONVERSATION_ID,
|
|
638
|
-
requestModel: GEN_AI_REQUEST_MODEL,
|
|
639
|
-
usageInputTokens: GEN_AI_USAGE_INPUT_TOKENS,
|
|
640
|
-
usageOutputTokens: GEN_AI_USAGE_OUTPUT_TOKENS,
|
|
641
|
-
/** Input tokens served from the provider's prompt cache, when the provider reports them. */
|
|
642
|
-
usageCacheReadTokens: GEN_AI_USAGE_CACHE_READ_TOKENS,
|
|
643
|
-
/** Input tokens written INTO the provider's prompt cache, when the provider reports them. */
|
|
644
|
-
usageCacheCreationTokens: GEN_AI_USAGE_CACHE_CREATION_TOKENS,
|
|
645
|
-
/** The model the provider reported having SERVED; the more accurate one to price. */
|
|
646
|
-
responseModel: GEN_AI_RESPONSE_MODEL_NAME,
|
|
647
|
-
toolName: GEN_AI_TOOL_NAME,
|
|
648
|
-
toolType: GEN_AI_TOOL_TYPE,
|
|
649
|
-
toolCallId: GEN_AI_TOOL_CALL_ID
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
// ../shared/dist/chunk-GYGZIK4G.mjs
|
|
653
|
-
var RUNTYPE_ITERATION = "runtype.iteration";
|
|
654
|
-
var RUNTYPE_TOTAL_COST = "runtype.total_cost";
|
|
655
|
-
var RUNTYPE_TURN_INDEX = "runtype.turn.index";
|
|
656
|
-
var RUNTYPE_LEGACY_ATTRIBUTE_ALIASES = {
|
|
657
|
-
[RUNTYPE_ITERATION]: ["runtype.agent.iteration"],
|
|
658
|
-
[RUNTYPE_TOTAL_COST]: ["runtype.agent.totalCost"],
|
|
659
|
-
[RUNTYPE_TURN_INDEX]: ["runtype.agent.turnIndex"]
|
|
660
|
-
};
|
|
661
|
-
var GEN_AI_TOOL_CALL_ARGUMENTS = "gen_ai.tool.call.arguments";
|
|
662
|
-
var GEN_AI_TOOL_CALL_RESULT = "gen_ai.tool.call.result";
|
|
663
|
-
var GEN_AI_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
664
|
-
var GEN_AI_OUTPUT_MESSAGES = "gen_ai.output.messages";
|
|
665
|
-
var GEN_AI_CONTENT_ATTRIBUTES = {
|
|
666
|
-
/** Chat history sent to the model, as semconv structured messages. */
|
|
667
|
-
inputMessages: GEN_AI_INPUT_MESSAGES,
|
|
668
|
-
/** Messages the model produced (includes reasoning content parts). */
|
|
669
|
-
outputMessages: GEN_AI_OUTPUT_MESSAGES,
|
|
670
|
-
/** System instructions, when separate from the input messages. */
|
|
671
|
-
systemInstructions: "gen_ai.system_instructions",
|
|
672
|
-
/** `execute_tool` span: the arguments the tool was called with. */
|
|
673
|
-
toolCallArguments: GEN_AI_TOOL_CALL_ARGUMENTS,
|
|
674
|
-
/** `execute_tool` span: the result the tool returned. */
|
|
675
|
-
toolCallResult: GEN_AI_TOOL_CALL_RESULT
|
|
676
|
-
};
|
|
677
|
-
var GEN_AI_CONTENT_ATTRIBUTE_ALIASES = {
|
|
678
|
-
[GEN_AI_INPUT_MESSAGES]: ["ai.prompt.messages", "ai.prompt"],
|
|
679
|
-
[GEN_AI_OUTPUT_MESSAGES]: ["ai.response.text", "ai.response.object"],
|
|
680
|
-
[GEN_AI_TOOL_CALL_ARGUMENTS]: ["flue.tool.call.arguments", "ai.toolCall.args"],
|
|
681
|
-
[GEN_AI_TOOL_CALL_RESULT]: ["flue.tool.call.result", "ai.toolCall.result"]
|
|
682
|
-
};
|
|
683
|
-
var OPENINFERENCE_CONTENT_PREFIXES = [
|
|
684
|
-
"llm.input_messages.",
|
|
685
|
-
"llm.output_messages.",
|
|
686
|
-
"llm.prompts",
|
|
687
|
-
"llm.prompt_template.",
|
|
688
|
-
"llm.choices",
|
|
689
|
-
"llm.function_call",
|
|
690
|
-
"retrieval.documents.",
|
|
691
|
-
"embedding.embeddings.",
|
|
692
|
-
"input.value",
|
|
693
|
-
"output.value"
|
|
694
|
-
];
|
|
695
|
-
var AI_SDK_CONTENT_PREFIXES = ["ai.response.toolCalls"];
|
|
696
|
-
var MASTRA_CONTENT_PREFIXES = ["mastra.metadata.body"];
|
|
697
|
-
var CLOUDFLARE_AGENTS_CONTENT_PREFIXES = [
|
|
698
|
-
"cloudflare.agents.metadata.",
|
|
699
|
-
"cloudflare.agents.runtime_context."
|
|
700
|
-
];
|
|
701
|
-
var GEN_AI_CONTENT_ATTRIBUTE_PREFIXES = [
|
|
702
|
-
...OPENINFERENCE_CONTENT_PREFIXES,
|
|
703
|
-
...AI_SDK_CONTENT_PREFIXES,
|
|
704
|
-
...MASTRA_CONTENT_PREFIXES,
|
|
705
|
-
...CLOUDFLARE_AGENTS_CONTENT_PREFIXES
|
|
706
|
-
];
|
|
707
|
-
var GEN_AI_CONTENT_ATTRIBUTE_NAMES = /* @__PURE__ */ new Set([
|
|
708
|
-
...Object.values(GEN_AI_CONTENT_ATTRIBUTES),
|
|
709
|
-
...Object.values(GEN_AI_CONTENT_ATTRIBUTE_ALIASES).flat()
|
|
710
|
-
]);
|
|
711
|
-
var GEN_AI_RESPONSE_MODEL = GEN_AI_ATTRIBUTES.responseModel;
|
|
712
|
-
|
|
713
613
|
// ../../node_modules/.pnpm/zod@4.6.4/node_modules/zod/v4/classic/external.js
|
|
714
614
|
var external_exports = {};
|
|
715
615
|
__export(external_exports, {
|
|
@@ -20378,6 +20278,260 @@ function date4(params) {
|
|
|
20378
20278
|
return _coercedDate(ZodDate, params);
|
|
20379
20279
|
}
|
|
20380
20280
|
|
|
20281
|
+
// ../shared/dist/chunk-G3CLBFD7.mjs
|
|
20282
|
+
var REPLAY_FROM_START = Object.freeze({
|
|
20283
|
+
row: 0,
|
|
20284
|
+
sub: Number.POSITIVE_INFINITY
|
|
20285
|
+
});
|
|
20286
|
+
var RUN_ORIGINS = ["dashboard", "api", "internal"];
|
|
20287
|
+
var RUN_STATUSES = [
|
|
20288
|
+
"queued",
|
|
20289
|
+
"running",
|
|
20290
|
+
"awaiting",
|
|
20291
|
+
"completed",
|
|
20292
|
+
"failed",
|
|
20293
|
+
"cancelled"
|
|
20294
|
+
];
|
|
20295
|
+
var runStatusSchema = external_exports.enum(RUN_STATUSES);
|
|
20296
|
+
var RUN_COMPLETENESS_VALUES = [
|
|
20297
|
+
"partial",
|
|
20298
|
+
"complete",
|
|
20299
|
+
"conflicted",
|
|
20300
|
+
"expired",
|
|
20301
|
+
"deleted"
|
|
20302
|
+
];
|
|
20303
|
+
var RUN_SOURCES = ["hosted", "ingested"];
|
|
20304
|
+
var RUN_KINDS = ["agent", "flow"];
|
|
20305
|
+
var RUN_STALE_AFTER_MS = 25 * 60 * 60 * 1e3;
|
|
20306
|
+
var RUN_INPUT_PREVIEW_MAX_CHARS = 160;
|
|
20307
|
+
var ABSENT = "Absent means the overlay did not answer, which is not false and not null.";
|
|
20308
|
+
var str = (d2) => external_exports.string().nullable().describe(d2);
|
|
20309
|
+
var num = (d2) => external_exports.number().nullable().describe(d2);
|
|
20310
|
+
var ovStr = (d2) => external_exports.string().nullish().describe(`${d2} ${ABSENT}`);
|
|
20311
|
+
var ovNum = (d2) => external_exports.number().nullish().describe(`${d2} ${ABSENT}`);
|
|
20312
|
+
var ovAny = (d2) => external_exports.unknown().optional().describe(`${d2} ${ABSENT}`);
|
|
20313
|
+
var runListRowSchema = external_exports.object({
|
|
20314
|
+
executionId: external_exports.string().describe("Runtime execution id; the key for /v1/logs and /v1/runs/{id}."),
|
|
20315
|
+
traceId: str("Trace id in the span store; null on a row the control-plane arm served."),
|
|
20316
|
+
startedAt: external_exports.string().describe("ISO instant the run started."),
|
|
20317
|
+
endedAt: str("ISO instant the run ended; null while it is still running."),
|
|
20318
|
+
durationMs: num("Wall-clock duration in milliseconds."),
|
|
20319
|
+
status: runStatusSchema.describe("Customer-facing status, derived by runStatusFrom."),
|
|
20320
|
+
kind: external_exports.enum(RUN_KINDS).describe("Whether an agent or a flow ran."),
|
|
20321
|
+
agentId: str("Agent that ran."),
|
|
20322
|
+
flowId: str("Flow that ran."),
|
|
20323
|
+
conversationId: str("Conversation this run belongs to."),
|
|
20324
|
+
surfaceId: str("Product surface that entered this run."),
|
|
20325
|
+
surfaceType: str("Surface family (api, chat, webhook, schedule, ...)."),
|
|
20326
|
+
recordId: str("Record this run processed."),
|
|
20327
|
+
batchExecutionId: str("Batch this run belongs to."),
|
|
20328
|
+
parentExecutionId: str("Run that spawned this one."),
|
|
20329
|
+
parentToolCallId: str("Parent's tool call that spawned this run."),
|
|
20330
|
+
rootExecutionId: str("Outermost run of the tree."),
|
|
20331
|
+
source: external_exports.enum(RUN_SOURCES).describe("hosted, or ingested for an OTLP export. An ingested run is never reported running."),
|
|
20332
|
+
fidelityTier: str("Fidelity of the projection behind this row."),
|
|
20333
|
+
completeness: external_exports.enum(RUN_COMPLETENESS_VALUES).nullable().describe("Storage completeness; null on a row the control-plane arm served."),
|
|
20334
|
+
retentionElided: external_exports.boolean().optional().describe("Retention removed the spans; the run still lists and reads as completed."),
|
|
20335
|
+
spanCount: num("Spans the projection wrote."),
|
|
20336
|
+
inputTokens: num("Input tokens reported."),
|
|
20337
|
+
outputTokens: num("Output tokens reported."),
|
|
20338
|
+
totalCost: str("Metered cost as a decimal string."),
|
|
20339
|
+
selfReportedCost: str("Cost the producer reported."),
|
|
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.'
|
|
20352
|
+
),
|
|
20353
|
+
stopReason: external_exports.string().nullish().describe("Stop reason from the terminal frame."),
|
|
20354
|
+
iterations: external_exports.number().nullish().describe("Loop iterations from the terminal frame."),
|
|
20355
|
+
inputPreview: external_exports.string().nullish().describe(
|
|
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.`
|
|
20357
|
+
),
|
|
20358
|
+
agentVersionId: ovStr("Agent version that ran."),
|
|
20359
|
+
agentVersionLabel: ovStr("Version label."),
|
|
20360
|
+
agentVersionNumber: ovNum("Version number, for a version chip and version grouping."),
|
|
20361
|
+
agentTargetResolution: ovStr("How the run chose its version: alias, version or legacy-live-row."),
|
|
20362
|
+
otelProducer: ovAny("Framework identity the producer reported, for a versionless run group."),
|
|
20363
|
+
lastHeartbeatAt: ovStr("Last heartbeat."),
|
|
20364
|
+
expiresAt: ovStr("Budget expiry."),
|
|
20365
|
+
cancelRequestedAt: ovStr("Cancel request."),
|
|
20366
|
+
progress: ovAny("Live progress document."),
|
|
20367
|
+
pendingApproval: ovAny("Approval awaiting a human."),
|
|
20368
|
+
budgetExhausted: external_exports.boolean().nullish().describe(`Budget exhausted. ${ABSENT}`),
|
|
20369
|
+
inputMessages: ovAny("Messages the run started from.")
|
|
20370
|
+
});
|
|
20371
|
+
var RUN_LIST_FULL_ONLY_FIELDS = [
|
|
20372
|
+
"stopReason",
|
|
20373
|
+
"iterations",
|
|
20374
|
+
"inputPreview",
|
|
20375
|
+
"agentVersionId",
|
|
20376
|
+
"agentVersionLabel",
|
|
20377
|
+
"agentVersionNumber",
|
|
20378
|
+
"agentTargetResolution",
|
|
20379
|
+
"otelProducer",
|
|
20380
|
+
"lastHeartbeatAt",
|
|
20381
|
+
"expiresAt",
|
|
20382
|
+
"cancelRequestedAt",
|
|
20383
|
+
"progress",
|
|
20384
|
+
"pendingApproval",
|
|
20385
|
+
"budgetExhausted",
|
|
20386
|
+
"inputMessages"
|
|
20387
|
+
];
|
|
20388
|
+
function runListCompactOmitSentence() {
|
|
20389
|
+
const fields = [...RUN_LIST_FULL_ONLY_FIELDS];
|
|
20390
|
+
const last = fields.pop();
|
|
20391
|
+
return `full (the default) returns every field. compact omits exactly these ${fields.length + 1}: ${fields.join(", ")} and ${last}. The status is still overlay-corrected on a compact page; only the fields differ.`;
|
|
20392
|
+
}
|
|
20393
|
+
var RUN_LIST_VIEWS = ["compact", "full"];
|
|
20394
|
+
var RUN_LIST_OVERLAY_MODES = ["live", "none"];
|
|
20395
|
+
var MAX_RUN_LIST_IDS = 100;
|
|
20396
|
+
var MAX_RUN_LIST_LIMIT = 100;
|
|
20397
|
+
var DEFAULT_RUN_LIST_WINDOW_MS = 24 * 60 * 60 * 1e3;
|
|
20398
|
+
var MAX_RUN_LIST_WINDOW_MS = 400 * 24 * 60 * 60 * 1e3;
|
|
20399
|
+
var RUN_STATUS_FILTERS = ["running", "completed", "failed"];
|
|
20400
|
+
var RUN_STATUS_FILTER_MESSAGE = "status accepts only running, completed or failed. queued, awaiting and cancelled exist only in the live overlay, which may never change which rows a page holds, so the server cannot filter on them.";
|
|
20401
|
+
var runStatusFilterSchema = external_exports.enum(RUN_STATUS_FILTERS, {
|
|
20402
|
+
error: () => RUN_STATUS_FILTER_MESSAGE
|
|
20403
|
+
});
|
|
20404
|
+
var repeatable = () => external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]);
|
|
20405
|
+
var runListQuerySchema = external_exports.object({
|
|
20406
|
+
agentId: repeatable().optional().describe("Filter by agent id; repeat for a set."),
|
|
20407
|
+
flowId: repeatable().optional().describe("Filter by flow id; repeat for a set."),
|
|
20408
|
+
conversationId: external_exports.string().optional().describe("Filter by conversation id."),
|
|
20409
|
+
surfaceId: external_exports.string().optional().describe("Filter by surface id."),
|
|
20410
|
+
surfaceType: external_exports.string().optional().describe("Filter by surface family."),
|
|
20411
|
+
recordId: external_exports.string().optional().describe("Filter by record id."),
|
|
20412
|
+
batchExecutionId: repeatable().optional().describe("Filter by batch id; repeat for a set."),
|
|
20413
|
+
parentExecutionId: external_exports.string().optional().describe("Runs spawned by this execution."),
|
|
20414
|
+
rootExecutionId: external_exports.string().optional().describe("Runs in this execution tree."),
|
|
20415
|
+
executionId: repeatable().optional().describe(`Read specific runs by id; at most ${MAX_RUN_LIST_IDS} per request.`),
|
|
20416
|
+
source: external_exports.enum(RUN_SOURCES).optional().describe("Filter by producing lane."),
|
|
20417
|
+
status: runStatusFilterSchema.optional().describe(RUN_STATUS_FILTER_MESSAGE),
|
|
20418
|
+
from: external_exports.string().optional().describe("Window start (ISO 8601). Defaults to 24 hours ago."),
|
|
20419
|
+
to: external_exports.string().optional().describe("Window end (ISO 8601). Defaults to now."),
|
|
20420
|
+
view: external_exports.enum(RUN_LIST_VIEWS).optional().describe(
|
|
20421
|
+
runListCompactOmitSentence()
|
|
20422
|
+
),
|
|
20423
|
+
overlay: external_exports.enum(RUN_LIST_OVERLAY_MODES).optional().describe("live adds control-plane fields; defaults to live for a session, none for an API key."),
|
|
20424
|
+
limit: external_exports.string().optional().describe(`Page size, at most ${MAX_RUN_LIST_LIMIT}.`),
|
|
20425
|
+
cursor: external_exports.string().optional().describe("Keyset cursor from a previous page.")
|
|
20426
|
+
});
|
|
20427
|
+
var SCHEDULE_RUN_LINK_KINDS = ["run", "records", "none"];
|
|
20428
|
+
var scheduleRunLinkSchema = external_exports.object({
|
|
20429
|
+
kind: external_exports.enum(SCHEDULE_RUN_LINK_KINDS).describe(
|
|
20430
|
+
"run: one execution, readable at GET /v1/runs/{executionId}. records: a batch, whose per-record runs are GET /v1/runs?batchExecutionId=. none: no readable run was recorded for this scheduled run."
|
|
20431
|
+
),
|
|
20432
|
+
executionId: external_exports.string().nullable().describe(
|
|
20433
|
+
"The RUNTIME execution id, which is what GET /v1/runs/{executionId} keys on. Null unless kind is run."
|
|
20434
|
+
),
|
|
20435
|
+
agentExecutionRowId: external_exports.string().nullable().describe(
|
|
20436
|
+
"The agent_executions ROW id the scheduled run stored. Provenance only: a different id space from executionId, and never a /v1/runs key."
|
|
20437
|
+
),
|
|
20438
|
+
batchExecutionId: external_exports.string().nullable().describe("The batch whose per-record runs are GET /v1/runs?batchExecutionId=.")
|
|
20439
|
+
});
|
|
20440
|
+
|
|
20441
|
+
// ../shared/dist/chunk-2NMGSD35.mjs
|
|
20442
|
+
var GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
20443
|
+
var GEN_AI_AGENT_ID = "gen_ai.agent.id";
|
|
20444
|
+
var GEN_AI_AGENT_NAME = "gen_ai.agent.name";
|
|
20445
|
+
var GEN_AI_CONVERSATION_ID = "gen_ai.conversation.id";
|
|
20446
|
+
var GEN_AI_REQUEST_MODEL = "gen_ai.request.model";
|
|
20447
|
+
var GEN_AI_RESPONSE_MODEL_NAME = "gen_ai.response.model";
|
|
20448
|
+
var GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
20449
|
+
var GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
20450
|
+
var GEN_AI_USAGE_CACHE_READ_TOKENS = "gen_ai.usage.cache_read.input_tokens";
|
|
20451
|
+
var GEN_AI_USAGE_CACHE_CREATION_TOKENS = "gen_ai.usage.cache_creation.input_tokens";
|
|
20452
|
+
var GEN_AI_TOOL_NAME = "gen_ai.tool.name";
|
|
20453
|
+
var GEN_AI_TOOL_TYPE = "gen_ai.tool.type";
|
|
20454
|
+
var GEN_AI_TOOL_CALL_ID = "gen_ai.tool.call.id";
|
|
20455
|
+
var GEN_AI_ATTRIBUTES = {
|
|
20456
|
+
operationName: GEN_AI_OPERATION_NAME,
|
|
20457
|
+
agentId: GEN_AI_AGENT_ID,
|
|
20458
|
+
agentName: GEN_AI_AGENT_NAME,
|
|
20459
|
+
conversationId: GEN_AI_CONVERSATION_ID,
|
|
20460
|
+
requestModel: GEN_AI_REQUEST_MODEL,
|
|
20461
|
+
usageInputTokens: GEN_AI_USAGE_INPUT_TOKENS,
|
|
20462
|
+
usageOutputTokens: GEN_AI_USAGE_OUTPUT_TOKENS,
|
|
20463
|
+
/** Input tokens served from the provider's prompt cache, when the provider reports them. */
|
|
20464
|
+
usageCacheReadTokens: GEN_AI_USAGE_CACHE_READ_TOKENS,
|
|
20465
|
+
/** Input tokens written INTO the provider's prompt cache, when the provider reports them. */
|
|
20466
|
+
usageCacheCreationTokens: GEN_AI_USAGE_CACHE_CREATION_TOKENS,
|
|
20467
|
+
/** The model the provider reported having SERVED; the more accurate one to price. */
|
|
20468
|
+
responseModel: GEN_AI_RESPONSE_MODEL_NAME,
|
|
20469
|
+
toolName: GEN_AI_TOOL_NAME,
|
|
20470
|
+
toolType: GEN_AI_TOOL_TYPE,
|
|
20471
|
+
toolCallId: GEN_AI_TOOL_CALL_ID
|
|
20472
|
+
};
|
|
20473
|
+
|
|
20474
|
+
// ../shared/dist/chunk-GYGZIK4G.mjs
|
|
20475
|
+
var RUNTYPE_ITERATION = "runtype.iteration";
|
|
20476
|
+
var RUNTYPE_TOTAL_COST = "runtype.total_cost";
|
|
20477
|
+
var RUNTYPE_TURN_INDEX = "runtype.turn.index";
|
|
20478
|
+
var RUNTYPE_LEGACY_ATTRIBUTE_ALIASES = {
|
|
20479
|
+
[RUNTYPE_ITERATION]: ["runtype.agent.iteration"],
|
|
20480
|
+
[RUNTYPE_TOTAL_COST]: ["runtype.agent.totalCost"],
|
|
20481
|
+
[RUNTYPE_TURN_INDEX]: ["runtype.agent.turnIndex"]
|
|
20482
|
+
};
|
|
20483
|
+
var GEN_AI_TOOL_CALL_ARGUMENTS = "gen_ai.tool.call.arguments";
|
|
20484
|
+
var GEN_AI_TOOL_CALL_RESULT = "gen_ai.tool.call.result";
|
|
20485
|
+
var GEN_AI_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
20486
|
+
var GEN_AI_OUTPUT_MESSAGES = "gen_ai.output.messages";
|
|
20487
|
+
var GEN_AI_CONTENT_ATTRIBUTES = {
|
|
20488
|
+
/** Chat history sent to the model, as semconv structured messages. */
|
|
20489
|
+
inputMessages: GEN_AI_INPUT_MESSAGES,
|
|
20490
|
+
/** Messages the model produced (includes reasoning content parts). */
|
|
20491
|
+
outputMessages: GEN_AI_OUTPUT_MESSAGES,
|
|
20492
|
+
/** System instructions, when separate from the input messages. */
|
|
20493
|
+
systemInstructions: "gen_ai.system_instructions",
|
|
20494
|
+
/** `execute_tool` span: the arguments the tool was called with. */
|
|
20495
|
+
toolCallArguments: GEN_AI_TOOL_CALL_ARGUMENTS,
|
|
20496
|
+
/** `execute_tool` span: the result the tool returned. */
|
|
20497
|
+
toolCallResult: GEN_AI_TOOL_CALL_RESULT
|
|
20498
|
+
};
|
|
20499
|
+
var GEN_AI_CONTENT_ATTRIBUTE_ALIASES = {
|
|
20500
|
+
[GEN_AI_INPUT_MESSAGES]: ["ai.prompt.messages", "ai.prompt"],
|
|
20501
|
+
[GEN_AI_OUTPUT_MESSAGES]: ["ai.response.text", "ai.response.object"],
|
|
20502
|
+
[GEN_AI_TOOL_CALL_ARGUMENTS]: ["flue.tool.call.arguments", "ai.toolCall.args"],
|
|
20503
|
+
[GEN_AI_TOOL_CALL_RESULT]: ["flue.tool.call.result", "ai.toolCall.result"]
|
|
20504
|
+
};
|
|
20505
|
+
var OPENINFERENCE_CONTENT_PREFIXES = [
|
|
20506
|
+
"llm.input_messages.",
|
|
20507
|
+
"llm.output_messages.",
|
|
20508
|
+
"llm.prompts",
|
|
20509
|
+
"llm.prompt_template.",
|
|
20510
|
+
"llm.choices",
|
|
20511
|
+
"llm.function_call",
|
|
20512
|
+
"retrieval.documents.",
|
|
20513
|
+
"embedding.embeddings.",
|
|
20514
|
+
"input.value",
|
|
20515
|
+
"output.value"
|
|
20516
|
+
];
|
|
20517
|
+
var AI_SDK_CONTENT_PREFIXES = ["ai.response.toolCalls"];
|
|
20518
|
+
var MASTRA_CONTENT_PREFIXES = ["mastra.metadata.body"];
|
|
20519
|
+
var CLOUDFLARE_AGENTS_CONTENT_PREFIXES = [
|
|
20520
|
+
"cloudflare.agents.metadata.",
|
|
20521
|
+
"cloudflare.agents.runtime_context."
|
|
20522
|
+
];
|
|
20523
|
+
var GEN_AI_CONTENT_ATTRIBUTE_PREFIXES = [
|
|
20524
|
+
...OPENINFERENCE_CONTENT_PREFIXES,
|
|
20525
|
+
...AI_SDK_CONTENT_PREFIXES,
|
|
20526
|
+
...MASTRA_CONTENT_PREFIXES,
|
|
20527
|
+
...CLOUDFLARE_AGENTS_CONTENT_PREFIXES
|
|
20528
|
+
];
|
|
20529
|
+
var GEN_AI_CONTENT_ATTRIBUTE_NAMES = /* @__PURE__ */ new Set([
|
|
20530
|
+
...Object.values(GEN_AI_CONTENT_ATTRIBUTES),
|
|
20531
|
+
...Object.values(GEN_AI_CONTENT_ATTRIBUTE_ALIASES).flat()
|
|
20532
|
+
]);
|
|
20533
|
+
var GEN_AI_RESPONSE_MODEL = GEN_AI_ATTRIBUTES.responseModel;
|
|
20534
|
+
|
|
20381
20535
|
// ../shared/dist/chunk-7LZATPNB.mjs
|
|
20382
20536
|
var AGENT_EXECUTION_STATUSES = [
|
|
20383
20537
|
"queued",
|
|
@@ -20400,19 +20554,6 @@ var UNSUCCESSFUL_STATUS_SET = new Set(
|
|
|
20400
20554
|
UNSUCCESSFUL_AGENT_EXECUTION_STATUSES
|
|
20401
20555
|
);
|
|
20402
20556
|
|
|
20403
|
-
// ../shared/dist/chunk-O334JSPV.mjs
|
|
20404
|
-
var CANONICAL_LOG_COLUMN_SET = {
|
|
20405
|
-
// @snake-case-ok-start: R2 SQL / Iceberg column naming convention
|
|
20406
|
-
event_id: true,
|
|
20407
|
-
retention_class: true,
|
|
20408
|
-
retention_key: true,
|
|
20409
|
-
canonicalized_at: true,
|
|
20410
|
-
source_ingest_id: true,
|
|
20411
|
-
source_ingest_ts: true
|
|
20412
|
-
// @snake-case-ok-end
|
|
20413
|
-
};
|
|
20414
|
-
var CANONICAL_LOG_COLUMNS = Object.keys(CANONICAL_LOG_COLUMN_SET);
|
|
20415
|
-
|
|
20416
20557
|
// ../shared/dist/chunk-CTJEYKNH.mjs
|
|
20417
20558
|
var BUILTIN_TOOLS_LEAN = [
|
|
20418
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 },
|
|
@@ -23000,6 +23141,13 @@ function resolveModelOptionalSettings(model) {
|
|
|
23000
23141
|
return [];
|
|
23001
23142
|
}
|
|
23002
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
|
+
|
|
23003
23151
|
// ../shared/dist/chunk-EOJ3KTQ2.mjs
|
|
23004
23152
|
var textPartSchema = external_exports.object({ type: external_exports.literal("text"), text: external_exports.string() }).passthrough();
|
|
23005
23153
|
var imagePartSchema = external_exports.object({ type: external_exports.literal("image"), image: external_exports.string(), mimeType: external_exports.string().optional() }).passthrough();
|
|
@@ -23077,7 +23225,7 @@ var conversationSourceSchema = external_exports.object({
|
|
|
23077
23225
|
importedAt: external_exports.string().datetime({ offset: true }).optional()
|
|
23078
23226
|
});
|
|
23079
23227
|
|
|
23080
|
-
// ../shared/dist/chunk-
|
|
23228
|
+
// ../shared/dist/chunk-QOMOTJ3F.mjs
|
|
23081
23229
|
var edgeAuthSnapshotSchema = external_exports.object({
|
|
23082
23230
|
/**
|
|
23083
23231
|
* Schema version. A plain positive int (not a literal) so a consumer pinned
|
|
@@ -23156,6 +23304,61 @@ var resolvedEdgeAuthSnapshotSchema = edgeAuthSnapshotSchema.extend({
|
|
|
23156
23304
|
var CONTAINER_SANDBOX_INSTANCE_TYPE = "standard-4";
|
|
23157
23305
|
var MAX_SANDBOX_EXECUTE_CONTAINMENT_WINDOW_MS = 30 * 60 * 1e3;
|
|
23158
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
|
+
|
|
23159
23362
|
// ../shared/dist/chunk-KNCWLVL2.mjs
|
|
23160
23363
|
var MANAGED_SANDBOX_CAPABILITIES = [
|
|
23161
23364
|
"inspect-without-start",
|
|
@@ -23182,13 +23385,6 @@ var MANAGED_PROFILE_IDENTITY_FIELDS = Object.freeze([
|
|
|
23182
23385
|
"environment"
|
|
23183
23386
|
]);
|
|
23184
23387
|
|
|
23185
|
-
// ../shared/dist/chunk-CABFF4K3.mjs
|
|
23186
|
-
var MANAGED_DEPLOYMENT_SOURCE_LIMITS = {
|
|
23187
|
-
maxCompressedBytes: 25 * 1024 * 1024,
|
|
23188
|
-
maxExpandedBytes: 100 * 1024 * 1024,
|
|
23189
|
-
maxRegularFiles: 1e3
|
|
23190
|
-
};
|
|
23191
|
-
|
|
23192
23388
|
// ../shared/dist/chunk-NBGTI2DK.mjs
|
|
23193
23389
|
var apiReleaseChannelSchema = external_exports.enum(["staging", "production"]);
|
|
23194
23390
|
var API_ARTIFACT_SCRIPT_PATTERN = /^api-[a-z0-9][a-z0-9-]{0,62}$/;
|
|
@@ -40248,144 +40444,6 @@ var mcpConnectionFailureSchema = external_exports.object({
|
|
|
40248
40444
|
retryable: external_exports.boolean(),
|
|
40249
40445
|
diagnosticId: external_exports.string().max(64)
|
|
40250
40446
|
});
|
|
40251
|
-
var RUN_STATUSES = [
|
|
40252
|
-
"queued",
|
|
40253
|
-
"running",
|
|
40254
|
-
"awaiting",
|
|
40255
|
-
"completed",
|
|
40256
|
-
"failed",
|
|
40257
|
-
"cancelled"
|
|
40258
|
-
];
|
|
40259
|
-
var runStatusSchema = external_exports.enum(RUN_STATUSES);
|
|
40260
|
-
var RUN_COMPLETENESS_VALUES = [
|
|
40261
|
-
"partial",
|
|
40262
|
-
"complete",
|
|
40263
|
-
"conflicted",
|
|
40264
|
-
"expired",
|
|
40265
|
-
"deleted"
|
|
40266
|
-
];
|
|
40267
|
-
var RUN_SOURCES = ["hosted", "ingested"];
|
|
40268
|
-
var RUN_KINDS = ["agent", "flow"];
|
|
40269
|
-
var RUN_STALE_AFTER_MS = 25 * 60 * 60 * 1e3;
|
|
40270
|
-
var ABSENT = "Absent means the overlay did not answer, which is not false and not null.";
|
|
40271
|
-
var str = (d2) => external_exports.string().nullable().describe(d2);
|
|
40272
|
-
var num = (d2) => external_exports.number().nullable().describe(d2);
|
|
40273
|
-
var ovStr = (d2) => external_exports.string().nullish().describe(`${d2} ${ABSENT}`);
|
|
40274
|
-
var ovNum = (d2) => external_exports.number().nullish().describe(`${d2} ${ABSENT}`);
|
|
40275
|
-
var ovAny = (d2) => external_exports.unknown().optional().describe(`${d2} ${ABSENT}`);
|
|
40276
|
-
var runListRowSchema = external_exports.object({
|
|
40277
|
-
executionId: external_exports.string().describe("Runtime execution id; the key for /v1/logs and /v1/runs/{id}."),
|
|
40278
|
-
traceId: str("Trace id in the span store; null on a row the control-plane arm served."),
|
|
40279
|
-
startedAt: external_exports.string().describe("ISO instant the run started."),
|
|
40280
|
-
endedAt: str("ISO instant the run ended; null while it is still running."),
|
|
40281
|
-
durationMs: num("Wall-clock duration in milliseconds."),
|
|
40282
|
-
status: runStatusSchema.describe("Customer-facing status, derived by runStatusFrom."),
|
|
40283
|
-
kind: external_exports.enum(RUN_KINDS).describe("Whether an agent or a flow ran."),
|
|
40284
|
-
agentId: str("Agent that ran."),
|
|
40285
|
-
flowId: str("Flow that ran."),
|
|
40286
|
-
conversationId: str("Conversation this run belongs to."),
|
|
40287
|
-
surfaceId: str("Product surface that entered this run."),
|
|
40288
|
-
surfaceType: str("Surface family (api, chat, webhook, schedule, ...)."),
|
|
40289
|
-
recordId: str("Record this run processed."),
|
|
40290
|
-
batchExecutionId: str("Batch this run belongs to."),
|
|
40291
|
-
parentExecutionId: str("Run that spawned this one."),
|
|
40292
|
-
parentToolCallId: str("Parent's tool call that spawned this run."),
|
|
40293
|
-
rootExecutionId: str("Outermost run of the tree."),
|
|
40294
|
-
source: external_exports.enum(RUN_SOURCES).describe("hosted, or ingested for an OTLP export. An ingested run is never reported running."),
|
|
40295
|
-
fidelityTier: str("Fidelity of the projection behind this row."),
|
|
40296
|
-
completeness: external_exports.enum(RUN_COMPLETENESS_VALUES).nullable().describe("Storage completeness; null on a row the control-plane arm served."),
|
|
40297
|
-
retentionElided: external_exports.boolean().optional().describe("Retention removed the spans; the run still lists and reads as completed."),
|
|
40298
|
-
spanCount: num("Spans the projection wrote."),
|
|
40299
|
-
inputTokens: num("Input tokens reported."),
|
|
40300
|
-
outputTokens: num("Output tokens reported."),
|
|
40301
|
-
totalCost: str("Metered cost as a decimal string."),
|
|
40302
|
-
selfReportedCost: str("Cost the producer reported."),
|
|
40303
|
-
test: external_exports.boolean().nullable().describe(
|
|
40304
|
-
"True when the run was dispatched with storeResults: false, so it has no control-plane row and no overlay. NULL means the header states nothing about it, which is not false: headers written before this field shipped, and lanes that take no such flag, carry no dispatch stamp and are never backfilled."
|
|
40305
|
-
),
|
|
40306
|
-
stopReason: external_exports.string().nullish().describe("Stop reason from the terminal frame."),
|
|
40307
|
-
iterations: external_exports.number().nullish().describe("Loop iterations from the terminal frame."),
|
|
40308
|
-
agentVersionId: ovStr("Agent version that ran."),
|
|
40309
|
-
agentVersionLabel: ovStr("Version label."),
|
|
40310
|
-
agentVersionNumber: ovNum("Version number, for a version chip and version grouping."),
|
|
40311
|
-
agentTargetResolution: ovStr("How the run chose its version: alias, version or legacy-live-row."),
|
|
40312
|
-
otelProducer: ovAny("Framework identity the producer reported, for a versionless run group."),
|
|
40313
|
-
lastHeartbeatAt: ovStr("Last heartbeat."),
|
|
40314
|
-
expiresAt: ovStr("Budget expiry."),
|
|
40315
|
-
cancelRequestedAt: ovStr("Cancel request."),
|
|
40316
|
-
progress: ovAny("Live progress document."),
|
|
40317
|
-
pendingApproval: ovAny("Approval awaiting a human."),
|
|
40318
|
-
budgetExhausted: external_exports.boolean().nullish().describe(`Budget exhausted. ${ABSENT}`),
|
|
40319
|
-
inputMessages: ovAny("Messages the run started from.")
|
|
40320
|
-
});
|
|
40321
|
-
var RUN_LIST_FULL_ONLY_FIELDS = [
|
|
40322
|
-
"stopReason",
|
|
40323
|
-
"iterations",
|
|
40324
|
-
"agentVersionId",
|
|
40325
|
-
"agentVersionLabel",
|
|
40326
|
-
"agentVersionNumber",
|
|
40327
|
-
"agentTargetResolution",
|
|
40328
|
-
"otelProducer",
|
|
40329
|
-
"lastHeartbeatAt",
|
|
40330
|
-
"expiresAt",
|
|
40331
|
-
"cancelRequestedAt",
|
|
40332
|
-
"progress",
|
|
40333
|
-
"pendingApproval",
|
|
40334
|
-
"budgetExhausted",
|
|
40335
|
-
"inputMessages"
|
|
40336
|
-
];
|
|
40337
|
-
function runListCompactOmitSentence() {
|
|
40338
|
-
const fields = [...RUN_LIST_FULL_ONLY_FIELDS];
|
|
40339
|
-
const last = fields.pop();
|
|
40340
|
-
return `full (the default) returns every field. compact omits exactly these ${fields.length + 1}: ${fields.join(", ")} and ${last}. The status is still overlay-corrected on a compact page; only the fields differ.`;
|
|
40341
|
-
}
|
|
40342
|
-
var RUN_LIST_VIEWS = ["compact", "full"];
|
|
40343
|
-
var RUN_LIST_OVERLAY_MODES = ["live", "none"];
|
|
40344
|
-
var MAX_RUN_LIST_IDS = 100;
|
|
40345
|
-
var MAX_RUN_LIST_LIMIT = 100;
|
|
40346
|
-
var DEFAULT_RUN_LIST_WINDOW_MS = 24 * 60 * 60 * 1e3;
|
|
40347
|
-
var MAX_RUN_LIST_WINDOW_MS = 400 * 24 * 60 * 60 * 1e3;
|
|
40348
|
-
var RUN_STATUS_FILTERS = ["running", "completed", "failed"];
|
|
40349
|
-
var RUN_STATUS_FILTER_MESSAGE = "status accepts only running, completed or failed. queued, awaiting and cancelled exist only in the live overlay, which may never change which rows a page holds, so the server cannot filter on them.";
|
|
40350
|
-
var runStatusFilterSchema = external_exports.enum(RUN_STATUS_FILTERS, {
|
|
40351
|
-
error: () => RUN_STATUS_FILTER_MESSAGE
|
|
40352
|
-
});
|
|
40353
|
-
var repeatable = () => external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]);
|
|
40354
|
-
var runListQuerySchema = external_exports.object({
|
|
40355
|
-
agentId: repeatable().optional().describe("Filter by agent id; repeat for a set."),
|
|
40356
|
-
flowId: repeatable().optional().describe("Filter by flow id; repeat for a set."),
|
|
40357
|
-
conversationId: external_exports.string().optional().describe("Filter by conversation id."),
|
|
40358
|
-
surfaceId: external_exports.string().optional().describe("Filter by surface id."),
|
|
40359
|
-
surfaceType: external_exports.string().optional().describe("Filter by surface family."),
|
|
40360
|
-
recordId: external_exports.string().optional().describe("Filter by record id."),
|
|
40361
|
-
batchExecutionId: repeatable().optional().describe("Filter by batch id; repeat for a set."),
|
|
40362
|
-
parentExecutionId: external_exports.string().optional().describe("Runs spawned by this execution."),
|
|
40363
|
-
rootExecutionId: external_exports.string().optional().describe("Runs in this execution tree."),
|
|
40364
|
-
executionId: repeatable().optional().describe(`Read specific runs by id; at most ${MAX_RUN_LIST_IDS} per request.`),
|
|
40365
|
-
source: external_exports.enum(RUN_SOURCES).optional().describe("Filter by producing lane."),
|
|
40366
|
-
status: runStatusFilterSchema.optional().describe(RUN_STATUS_FILTER_MESSAGE),
|
|
40367
|
-
from: external_exports.string().optional().describe("Window start (ISO 8601). Defaults to 24 hours ago."),
|
|
40368
|
-
to: external_exports.string().optional().describe("Window end (ISO 8601). Defaults to now."),
|
|
40369
|
-
view: external_exports.enum(RUN_LIST_VIEWS).optional().describe(
|
|
40370
|
-
runListCompactOmitSentence()
|
|
40371
|
-
),
|
|
40372
|
-
overlay: external_exports.enum(RUN_LIST_OVERLAY_MODES).optional().describe("live adds control-plane fields; defaults to live for a session, none for an API key."),
|
|
40373
|
-
limit: external_exports.string().optional().describe(`Page size, at most ${MAX_RUN_LIST_LIMIT}.`),
|
|
40374
|
-
cursor: external_exports.string().optional().describe("Keyset cursor from a previous page.")
|
|
40375
|
-
});
|
|
40376
|
-
var SCHEDULE_RUN_LINK_KINDS = ["run", "records", "none"];
|
|
40377
|
-
var scheduleRunLinkSchema = external_exports.object({
|
|
40378
|
-
kind: external_exports.enum(SCHEDULE_RUN_LINK_KINDS).describe(
|
|
40379
|
-
"run: one execution, readable at GET /v1/runs/{executionId}. records: a batch, whose per-record runs are GET /v1/runs?batchExecutionId=. none: no readable run was recorded for this scheduled run."
|
|
40380
|
-
),
|
|
40381
|
-
executionId: external_exports.string().nullable().describe(
|
|
40382
|
-
"The RUNTIME execution id, which is what GET /v1/runs/{executionId} keys on. Null unless kind is run."
|
|
40383
|
-
),
|
|
40384
|
-
agentExecutionRowId: external_exports.string().nullable().describe(
|
|
40385
|
-
"The agent_executions ROW id the scheduled run stored. Provenance only: a different id space from executionId, and never a /v1/runs key."
|
|
40386
|
-
),
|
|
40387
|
-
batchExecutionId: external_exports.string().nullable().describe("The batch whose per-record runs are GET /v1/runs?batchExecutionId=.")
|
|
40388
|
-
});
|
|
40389
40447
|
|
|
40390
40448
|
// src/config/effective-context.ts
|
|
40391
40449
|
init_credential_store();
|
|
@@ -69579,6 +69637,10 @@ async function configureWithNativeCli(agent, options) {
|
|
|
69579
69637
|
cwd: tmpdir()
|
|
69580
69638
|
});
|
|
69581
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
|
+
}
|
|
69582
69644
|
return {
|
|
69583
69645
|
configured: false,
|
|
69584
69646
|
changed: false,
|
|
@@ -69603,6 +69665,10 @@ async function configureWithNativeCli(agent, options) {
|
|
|
69603
69665
|
cwd: tmpdir()
|
|
69604
69666
|
});
|
|
69605
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
|
+
}
|
|
69606
69672
|
return {
|
|
69607
69673
|
configured: false,
|
|
69608
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",
|