@runtypelabs/cli 2.59.9 → 2.59.11
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.
|
@@ -14,9 +14,9 @@ import open from "open";
|
|
|
14
14
|
import { createServer } from "node:http";
|
|
15
15
|
import { execFileSync } from "child_process";
|
|
16
16
|
import { createServer as createServer$1 } from "node:net";
|
|
17
|
-
// ../../node_modules/.pnpm/@runtypelabs+persona@4.
|
|
17
|
+
// ../../node_modules/.pnpm/@runtypelabs+persona@4.38.1/node_modules/@runtypelabs/persona/dist/codegen.js
|
|
18
18
|
function e(e) {
|
|
19
|
-
return e?.cdnBase?.trim().replace(/\/+$/, ``).replace(/[\\'"<>`]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase().padStart(2, `0`)}`) || `https://cdn.jsdelivr.net/npm/@runtypelabs/persona@4.
|
|
19
|
+
return e?.cdnBase?.trim().replace(/\/+$/, ``).replace(/[\\'"<>`]/g, (e) => `%${e.charCodeAt(0).toString(16).toUpperCase().padStart(2, `0`)}`) || `https://cdn.jsdelivr.net/npm/@runtypelabs/persona@4.38.1/dist`;
|
|
20
20
|
}
|
|
21
21
|
function t(e) {
|
|
22
22
|
if (e !== void 0) return typeof e == `string` ? e : Array.isArray(e) ? `[${e.map((e) => e.toString()).join(`, `)}]` : e.toString();
|
|
@@ -130,7 +130,7 @@ object({
|
|
|
130
130
|
reason: string().nullable().optional(),
|
|
131
131
|
revealed: array(string()).optional()
|
|
132
132
|
});
|
|
133
|
-
// ../shared/dist/chunk-
|
|
133
|
+
// ../shared/dist/chunk-CNvw2TrD.mjs
|
|
134
134
|
/** Every change kind a scrub report can name; a leaf so the data-source contracts reach it without the scrubber. */
|
|
135
135
|
const METADATA_SCRUB_CHANGE_KIND_NAMES = [
|
|
136
136
|
"url_redirected",
|
|
@@ -157,6 +157,60 @@ function sortKeys(value) {
|
|
|
157
157
|
function canonicalJson(value) {
|
|
158
158
|
return JSON.stringify(sortKeys(value)) ?? "null";
|
|
159
159
|
}
|
|
160
|
+
const synthesizerContractSchema = object({
|
|
161
|
+
source: _enum([
|
|
162
|
+
"add_tool",
|
|
163
|
+
"declared",
|
|
164
|
+
"observed",
|
|
165
|
+
"none"
|
|
166
|
+
]),
|
|
167
|
+
/** The JSON Schema a successful answer must validate against; null when no schema is known. */
|
|
168
|
+
schema: record(string(), unknown()).nullable()
|
|
169
|
+
});
|
|
170
|
+
/** One recorded exchange a synthesizer grounds on, by id and the saved connection it was recorded under. */
|
|
171
|
+
const synthesizerGroundingExchangeSchema = object({
|
|
172
|
+
id: string().min(1),
|
|
173
|
+
grant: string().nullable()
|
|
174
|
+
});
|
|
175
|
+
object({
|
|
176
|
+
variantId: string().min(1),
|
|
177
|
+
/** The server tool a call reaches after the overlay, or the name of a synthesized `add_tool`. */
|
|
178
|
+
tool: string().min(1),
|
|
179
|
+
added: boolean(),
|
|
180
|
+
readOnly: boolean(),
|
|
181
|
+
definition: object({
|
|
182
|
+
name: string(),
|
|
183
|
+
description: string(),
|
|
184
|
+
inputSchema: record(string(), unknown())
|
|
185
|
+
}),
|
|
186
|
+
contract: synthesizerContractSchema,
|
|
187
|
+
grounding: object({
|
|
188
|
+
exchanges: array(synthesizerGroundingExchangeSchema).max(40),
|
|
189
|
+
/** The server tools the exchanges come from: the tool itself, or a synthesized `add_tool`'s grounding tools. */
|
|
190
|
+
tools: array(string().min(1)).max(8),
|
|
191
|
+
worldFacts: array(string().min(1).max(2e3)).max(32),
|
|
192
|
+
/** The run's recorded schema reads, so a real collection, field or option id is known (D5); absent on older plans. */
|
|
193
|
+
schemaExchanges: array(synthesizerGroundingExchangeSchema).max(64).optional(),
|
|
194
|
+
linkedListExchanges: array(synthesizerGroundingExchangeSchema).max(32).optional()
|
|
195
|
+
}),
|
|
196
|
+
/** Tools the variant lists, so a designed error's `recoverySteps` can only name a real one. */
|
|
197
|
+
listedTools: array(string()).max(400),
|
|
198
|
+
promptVersion: number().int().positive()
|
|
199
|
+
});
|
|
200
|
+
object({ plausible: boolean().nullable() });
|
|
201
|
+
object({
|
|
202
|
+
exchangeId: string(),
|
|
203
|
+
plausible: boolean().nullable()
|
|
204
|
+
});
|
|
205
|
+
const resynthesizeToolName = string().min(1).max(255);
|
|
206
|
+
object({ tools: union([resynthesizeToolName, array(resynthesizeToolName).min(1).max(64)]).optional().describe("A server tool whose frozen answers to discard; repeat for several. Omit to discard every tool's.") });
|
|
207
|
+
object({ discarded: number().int().nonnegative() });
|
|
208
|
+
/** A tool's synthesized answers and how reviewers judged them, for the profile and the report caveats. */
|
|
209
|
+
const synthesisReviewStatsSchema = object({
|
|
210
|
+
answers: number().int().nonnegative(),
|
|
211
|
+
reviewed: number().int().nonnegative(),
|
|
212
|
+
plausible: number().int().nonnegative()
|
|
213
|
+
});
|
|
160
214
|
/** Most episodes one run may plan, across every round. */
|
|
161
215
|
const MAX_EPISODES_PER_RUN = 1e3;
|
|
162
216
|
/** Most characters in a simulated user's profile. */
|
|
@@ -184,7 +238,7 @@ const productKindSchema = _enum([
|
|
|
184
238
|
"external",
|
|
185
239
|
"spec_only"
|
|
186
240
|
]);
|
|
187
|
-
// ../shared/dist/chunk-
|
|
241
|
+
// ../shared/dist/chunk-LPsD799a.mjs
|
|
188
242
|
/** The manifest file at the root of a candidate's source bundle. */
|
|
189
243
|
const CANDIDATE_MANIFEST_FILENAME = "runtype-candidate.json";
|
|
190
244
|
const candidateRuntimeSchema = _enum([
|
|
@@ -2515,60 +2569,6 @@ const simulationReportSchema = object({
|
|
|
2515
2569
|
regression: boolean(),
|
|
2516
2570
|
createdAt: isoDate
|
|
2517
2571
|
});
|
|
2518
|
-
const synthesizerContractSchema = object({
|
|
2519
|
-
source: _enum([
|
|
2520
|
-
"add_tool",
|
|
2521
|
-
"declared",
|
|
2522
|
-
"observed",
|
|
2523
|
-
"none"
|
|
2524
|
-
]),
|
|
2525
|
-
/** The JSON Schema a successful answer must validate against; null when no schema is known. */
|
|
2526
|
-
schema: record(string(), unknown()).nullable()
|
|
2527
|
-
});
|
|
2528
|
-
/** One recorded exchange a synthesizer grounds on, by id and the saved connection it was recorded under. */
|
|
2529
|
-
const synthesizerGroundingExchangeSchema = object({
|
|
2530
|
-
id: string().min(1),
|
|
2531
|
-
grant: string().nullable()
|
|
2532
|
-
});
|
|
2533
|
-
object({
|
|
2534
|
-
variantId: string().min(1),
|
|
2535
|
-
/** The server tool a call reaches after the overlay, or the name of a synthesized `add_tool`. */
|
|
2536
|
-
tool: string().min(1),
|
|
2537
|
-
added: boolean(),
|
|
2538
|
-
readOnly: boolean(),
|
|
2539
|
-
definition: object({
|
|
2540
|
-
name: string(),
|
|
2541
|
-
description: string(),
|
|
2542
|
-
inputSchema: record(string(), unknown())
|
|
2543
|
-
}),
|
|
2544
|
-
contract: synthesizerContractSchema,
|
|
2545
|
-
grounding: object({
|
|
2546
|
-
exchanges: array(synthesizerGroundingExchangeSchema).max(40),
|
|
2547
|
-
/** The server tools the exchanges come from: the tool itself, or a synthesized `add_tool`'s grounding tools. */
|
|
2548
|
-
tools: array(string().min(1)).max(8),
|
|
2549
|
-
worldFacts: array(string().min(1).max(2e3)).max(32),
|
|
2550
|
-
/** The run's recorded schema reads, so a real collection, field or option id is known (D5); absent on older plans. */
|
|
2551
|
-
schemaExchanges: array(synthesizerGroundingExchangeSchema).max(64).optional(),
|
|
2552
|
-
linkedListExchanges: array(synthesizerGroundingExchangeSchema).max(32).optional()
|
|
2553
|
-
}),
|
|
2554
|
-
/** Tools the variant lists, so a designed error's `recoverySteps` can only name a real one. */
|
|
2555
|
-
listedTools: array(string()).max(400),
|
|
2556
|
-
promptVersion: number().int().positive()
|
|
2557
|
-
});
|
|
2558
|
-
object({ plausible: boolean().nullable() });
|
|
2559
|
-
object({
|
|
2560
|
-
exchangeId: string(),
|
|
2561
|
-
plausible: boolean().nullable()
|
|
2562
|
-
});
|
|
2563
|
-
const resynthesizeToolName = string().min(1).max(255);
|
|
2564
|
-
object({ tools: union([resynthesizeToolName, array(resynthesizeToolName).min(1).max(64)]).optional().describe("A server tool whose frozen answers to discard; repeat for several. Omit to discard every tool's.") });
|
|
2565
|
-
object({ discarded: number().int().nonnegative() });
|
|
2566
|
-
/** A tool's synthesized answers and how reviewers judged them, for the profile and the report caveats. */
|
|
2567
|
-
const synthesisReviewStatsSchema = object({
|
|
2568
|
-
answers: number().int().nonnegative(),
|
|
2569
|
-
reviewed: number().int().nonnegative(),
|
|
2570
|
-
plausible: number().int().nonnegative()
|
|
2571
|
-
});
|
|
2572
2572
|
const exchangeWorldSchema = string().regex(/^(live|synthetic:[A-Za-z0-9_-]+)$/);
|
|
2573
2573
|
const exchangeSourceSchema = _enum([
|
|
2574
2574
|
"simulation",
|
package/dist/index.js
CHANGED
|
@@ -246,7 +246,7 @@ const COMMAND_REGISTRY = [
|
|
|
246
246
|
name: "persona",
|
|
247
247
|
term: "persona",
|
|
248
248
|
description: "Set up Persona: create an agent, client token, and embed snippet",
|
|
249
|
-
load: async () => (await import("./chunk-
|
|
249
|
+
load: async () => (await import("./chunk-C3GmwZiH.js")).personaCommand
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
name: "analytics",
|
|
@@ -358,7 +358,7 @@ const COMMAND_REGISTRY = [
|
|
|
358
358
|
name: "simulations",
|
|
359
359
|
term: "simulations",
|
|
360
360
|
description: "Simulations: sandbox candidates, recorded tool exchanges and reports",
|
|
361
|
-
load: async () => (await import("./chunk-
|
|
361
|
+
load: async () => (await import("./chunk-CrhwBwqZ.js")).simulationsCommand
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
name: "apps",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/cli",
|
|
3
|
-
"version": "2.59.
|
|
3
|
+
"version": "2.59.11",
|
|
4
4
|
"description": "Command-line interface for Runtype AI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@runtypelabs/device-bridge": "0.2.5",
|
|
40
40
|
"@runtypelabs/mcp-cli": "0.4.1",
|
|
41
41
|
"@runtypelabs/model-execution": "0.42.2",
|
|
42
|
-
"@runtypelabs/persona": "4.
|
|
43
|
-
"@runtypelabs/shared": "3.121.
|
|
42
|
+
"@runtypelabs/persona": "4.38.1",
|
|
43
|
+
"@runtypelabs/shared": "3.121.2",
|
|
44
44
|
"@types/express": "^5.0.6",
|
|
45
45
|
"@types/micromatch": "^4.0.9",
|
|
46
46
|
"@types/node": "^25.3.3",
|