@isaacthoman/pulpo 0.183.0 → 0.185.0
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 +72 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25014,6 +25014,57 @@ var shelfMutationSchema = external_exports.object({
|
|
|
25014
25014
|
])
|
|
25015
25015
|
});
|
|
25016
25016
|
|
|
25017
|
+
// ../../packages/contracts/dist/workspace-screen.js
|
|
25018
|
+
var WORKSPACE_SCREEN_WIDTH = 1280;
|
|
25019
|
+
var WORKSPACE_SCREEN_HEIGHT = 800;
|
|
25020
|
+
var WORKSPACE_SCREEN_FRAME_WAIT_MAX_MS = 1e4;
|
|
25021
|
+
var WORKSPACE_SCREEN_INPUT_MAX_EVENTS = 64;
|
|
25022
|
+
var WORKSPACE_SCREEN_INPUT_MAX_TEXT = 2e3;
|
|
25023
|
+
var workspaceScreenStatusSchema = external_exports.object({
|
|
25024
|
+
/**
|
|
25025
|
+
* `ready`: the chat has a running workspace with a screen. `none`: no workspace is running for
|
|
25026
|
+
* the chat (none was started yet, or it was deleted after sitting idle). `unavailable`: this
|
|
25027
|
+
* instance has the screen turned off, or its workspace image has none.
|
|
25028
|
+
*/
|
|
25029
|
+
state: external_exports.enum(["ready", "none", "unavailable"]),
|
|
25030
|
+
width: external_exports.number().int().positive(),
|
|
25031
|
+
height: external_exports.number().int().positive(),
|
|
25032
|
+
/** A viewer holds control right now, in this tab or another. */
|
|
25033
|
+
controlled: external_exports.boolean()
|
|
25034
|
+
});
|
|
25035
|
+
var workspaceScreenFrameQuerySchema = external_exports.object({
|
|
25036
|
+
/** The frame the viewer already shows; the answer waits until the picture differs from it. */
|
|
25037
|
+
after: external_exports.string().regex(/^[a-f0-9]{8,64}$/).optional(),
|
|
25038
|
+
waitMs: external_exports.coerce.number().int().min(0).max(WORKSPACE_SCREEN_FRAME_WAIT_MAX_MS).optional()
|
|
25039
|
+
});
|
|
25040
|
+
var workspaceScreenControlSchema = external_exports.object({
|
|
25041
|
+
/** True takes control or renews it; false gives it back. */
|
|
25042
|
+
held: external_exports.boolean()
|
|
25043
|
+
});
|
|
25044
|
+
var screenX = external_exports.number().finite().min(0).max(WORKSPACE_SCREEN_WIDTH);
|
|
25045
|
+
var screenY = external_exports.number().finite().min(0).max(WORKSPACE_SCREEN_HEIGHT);
|
|
25046
|
+
var screenButton = external_exports.enum(["left", "middle", "right"]).default("left");
|
|
25047
|
+
var workspaceScreenInputEventSchema = external_exports.discriminatedUnion("type", [
|
|
25048
|
+
external_exports.object({ type: external_exports.literal("move"), x: screenX, y: screenY }),
|
|
25049
|
+
external_exports.object({ type: external_exports.literal("down"), x: screenX, y: screenY, button: screenButton }),
|
|
25050
|
+
external_exports.object({ type: external_exports.literal("up"), x: screenX, y: screenY, button: screenButton }),
|
|
25051
|
+
/** A whole click at once, for viewers that only know taps. */
|
|
25052
|
+
external_exports.object({ type: external_exports.literal("click"), x: screenX, y: screenY, button: screenButton, count: external_exports.union([external_exports.literal(1), external_exports.literal(2), external_exports.literal(3)]).default(1) }),
|
|
25053
|
+
/** Wheel notches at a point; positive `dy` moves down the page, positive `dx` to the right. */
|
|
25054
|
+
external_exports.object({
|
|
25055
|
+
type: external_exports.literal("scroll"),
|
|
25056
|
+
x: screenX,
|
|
25057
|
+
y: screenY,
|
|
25058
|
+
dx: external_exports.number().int().min(-20).max(20).default(0),
|
|
25059
|
+
dy: external_exports.number().int().min(-20).max(20).default(0)
|
|
25060
|
+
}).refine((value) => value.dx !== 0 || value.dy !== 0, "Scroll by at least one notch"),
|
|
25061
|
+
external_exports.object({ type: external_exports.literal("text"), text: external_exports.string().min(1).max(WORKSPACE_SCREEN_INPUT_MAX_TEXT) }),
|
|
25062
|
+
external_exports.object({ type: external_exports.literal("key"), keys: external_exports.string().min(1).max(100) })
|
|
25063
|
+
]);
|
|
25064
|
+
var workspaceScreenInputSchema = external_exports.object({
|
|
25065
|
+
events: external_exports.array(workspaceScreenInputEventSchema).min(1).max(WORKSPACE_SCREEN_INPUT_MAX_EVENTS)
|
|
25066
|
+
});
|
|
25067
|
+
|
|
25017
25068
|
// ../../packages/contracts/dist/message-reports.js
|
|
25018
25069
|
var MESSAGE_REPORT_CONTEXT_MAX_LENGTH = 2e3;
|
|
25019
25070
|
var messageReportInputSchema = external_exports.object({
|
|
@@ -25113,7 +25164,7 @@ var signupInputSchema = external_exports.object({
|
|
|
25113
25164
|
password: external_exports.string().min(8).max(1024)
|
|
25114
25165
|
});
|
|
25115
25166
|
var setupInputSchema = signupInputSchema;
|
|
25116
|
-
var sessionAppTypeSchema = external_exports.enum(["web", "mobile", "desktop", "cli", "unknown"]);
|
|
25167
|
+
var sessionAppTypeSchema = external_exports.enum(["web", "mobile", "desktop", "cli", "search", "unknown"]);
|
|
25117
25168
|
var sessionPlatformSchema = external_exports.enum(["ios", "android", "windows", "macos", "linux", "unknown"]);
|
|
25118
25169
|
var nativeDeviceSchema = external_exports.object({
|
|
25119
25170
|
deviceLabel: external_exports.string().trim().min(1).max(120),
|
|
@@ -25134,6 +25185,11 @@ var deviceSessionSchema = external_exports.object({
|
|
|
25134
25185
|
isCurrent: external_exports.boolean()
|
|
25135
25186
|
});
|
|
25136
25187
|
var deviceSessionListSchema = external_exports.object({ sessions: external_exports.array(deviceSessionSchema) });
|
|
25188
|
+
var searchConnectInputSchema = external_exports.object({
|
|
25189
|
+
codeChallenge: external_exports.string().regex(/^[A-Za-z0-9_-]{43}$/),
|
|
25190
|
+
state: external_exports.string().regex(/^[A-Za-z0-9_-]{32,128}$/)
|
|
25191
|
+
});
|
|
25192
|
+
var searchSessionUserSchema = userSchema.pick({ id: true, name: true, email: true });
|
|
25137
25193
|
var nativeLoginInputSchema = loginInputSchema.and(nativeDeviceSchema);
|
|
25138
25194
|
var nativeSignupInputSchema = signupInputSchema.and(nativeDeviceSchema);
|
|
25139
25195
|
var nativeSetupInputSchema = setupInputSchema.and(nativeDeviceSchema);
|
|
@@ -26093,6 +26149,12 @@ var agentSettingsSchema = external_exports.object({
|
|
|
26093
26149
|
billWorkspaces: external_exports.boolean().default(false),
|
|
26094
26150
|
/** Lets desktop apps lend the agent the computer they run on ("This computer"). */
|
|
26095
26151
|
computerAccess: external_exports.boolean().default(true),
|
|
26152
|
+
/**
|
|
26153
|
+
* Gives cloud workspaces a screen: the agent can open a browser and other apps there and work in
|
|
26154
|
+
* their windows with the app tools, and the chat's owner can watch and take over. Needs a
|
|
26155
|
+
* workspace image that includes the desktop; with an older image the tools fail and say so.
|
|
26156
|
+
*/
|
|
26157
|
+
workspaceDesktop: external_exports.boolean().default(false),
|
|
26096
26158
|
workspacePricePerMinuteMicros: external_exports.number().int().min(0).max(1e9).default(1e4)
|
|
26097
26159
|
});
|
|
26098
26160
|
var episodicMemoryProfileSchema = external_exports.enum(["embeddinggemma", "qwen3-embedding"]);
|
|
@@ -37208,7 +37270,7 @@ async function runModelTest(input2) {
|
|
|
37208
37270
|
}
|
|
37209
37271
|
|
|
37210
37272
|
// src/index.ts
|
|
37211
|
-
var CLI_VERSION = true ? "0.
|
|
37273
|
+
var CLI_VERSION = true ? "0.185.0" : "0.1.0";
|
|
37212
37274
|
var CLI_BUNDLED = true;
|
|
37213
37275
|
var commandIo = /* @__PURE__ */ new WeakMap();
|
|
37214
37276
|
var commandClientFactory = /* @__PURE__ */ new WeakMap();
|
|
@@ -37242,6 +37304,12 @@ var COMMAND_CAPABILITIES = {
|
|
|
37242
37304
|
backup: "backups",
|
|
37243
37305
|
job: "operations"
|
|
37244
37306
|
};
|
|
37307
|
+
function parseModelCallCursor(cursor) {
|
|
37308
|
+
const [startedAt, id] = cursor.split("|", 2);
|
|
37309
|
+
if (Number.isNaN(Date.parse(startedAt ?? "")) || id !== void 0 && !external_exports.uuid().safeParse(id).success) {
|
|
37310
|
+
throw new Error("--cursor must be the nextCursor from the previous page");
|
|
37311
|
+
}
|
|
37312
|
+
}
|
|
37245
37313
|
function globalOptions(command) {
|
|
37246
37314
|
return command.optsWithGlobals();
|
|
37247
37315
|
}
|
|
@@ -37851,9 +37919,9 @@ function createProgram(io = processIo, dependencies = {}) {
|
|
|
37851
37919
|
const { client } = await clientFor(command);
|
|
37852
37920
|
emit(io, command, await client.request("/api/management/v1/usage/summary"));
|
|
37853
37921
|
});
|
|
37854
|
-
usage.command("requests").description("List model calls with request-log IDs and a pagination cursor").addOption(new Option("--range <range>", "time range").choices(["24h", "7d", "30d", "90d", "all"]).default("24h")).option("--limit <count>", "page size (1-100)", "50").option("--cursor <
|
|
37922
|
+
usage.command("requests").description("List model calls with request-log IDs and a pagination cursor").addOption(new Option("--range <range>", "time range").choices(["24h", "7d", "30d", "90d", "all"]).default("24h")).option("--limit <count>", "page size (1-100)", "50").option("--cursor <cursor>", "nextCursor from the previous page").option("--status <statuses>", "comma-separated model-call statuses").option("--origin <origin>", "call source").option("--model <id>", "catalog or upstream model ID").option("--identity <id>", "user or API key ID").action(async (options2, command) => {
|
|
37855
37923
|
const limit = external_exports.coerce.number().int().min(1).max(100).parse(options2.limit);
|
|
37856
|
-
if (options2.cursor)
|
|
37924
|
+
if (options2.cursor) parseModelCallCursor(options2.cursor);
|
|
37857
37925
|
const query = new URLSearchParams({ range: options2.range, limit: String(limit) });
|
|
37858
37926
|
for (const key of ["cursor", "status", "origin", "model", "identity"]) {
|
|
37859
37927
|
if (options2[key]) query.set(key, options2[key]);
|