runpane 2.4.229 → 2.4.231
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/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +6 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +34 -1
- package/dist/commands.js.map +1 -1
- package/dist/devices.d.ts +10 -0
- package/dist/devices.d.ts.map +1 -0
- package/dist/devices.js +167 -0
- package/dist/devices.js.map +1 -0
- package/dist/docs-index.json +1 -1
- package/dist/generated/contract.d.ts +688 -5
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +1150 -50
- package/dist/generated/contract.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +15 -1
- package/dist/mcp.js.map +1 -1
- package/dist/updateCapacity.d.ts +1 -1
- package/dist/updateCapacity.d.ts.map +1 -1
- package/dist/updateCapacity.js +2 -0
- package/dist/updateCapacity.js.map +1 -1
- package/package.json +1 -1
package/dist/devices.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runDevicesList = runDevicesList;
|
|
4
|
+
exports.runDevicesOpen = runDevicesOpen;
|
|
5
|
+
exports.runDevicesScreenshot = runDevicesScreenshot;
|
|
6
|
+
exports.runDevicesAct = runDevicesAct;
|
|
7
|
+
exports.runDevicesRun = runDevicesRun;
|
|
8
|
+
exports.runDevicesClose = runDevicesClose;
|
|
9
|
+
exports.runDevicesUsage = runDevicesUsage;
|
|
10
|
+
exports.runDevicesFree = runDevicesFree;
|
|
11
|
+
const boundaryDecoder_1 = require("./boundaryDecoder");
|
|
12
|
+
const daemonActions_1 = require("./daemonActions");
|
|
13
|
+
const daemonClient_1 = require("./daemonClient");
|
|
14
|
+
const errors_1 = require("./errors");
|
|
15
|
+
// `runpane devices`: phone simulators and emulators for the calling tab's Pane (docs/DEVICES.md).
|
|
16
|
+
// Pane fills in the Pane, device and machine from the caller; nothing here names them.
|
|
17
|
+
const summarySchema = boundaryDecoder_1.boundary.object({
|
|
18
|
+
name: boundaryDecoder_1.boundary.string,
|
|
19
|
+
platform: boundaryDecoder_1.boundary.string,
|
|
20
|
+
os: boundaryDecoder_1.boundary.string,
|
|
21
|
+
machine: boundaryDecoder_1.boundary.string,
|
|
22
|
+
state: boundaryDecoder_1.boundary.string,
|
|
23
|
+
heldBy: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.object({ paneId: boundaryDecoder_1.boundary.string, paneName: boundaryDecoder_1.boundary.string })),
|
|
24
|
+
});
|
|
25
|
+
const listSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), devices: boundaryDecoder_1.boundary.array(summarySchema) });
|
|
26
|
+
const openSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), device: summarySchema });
|
|
27
|
+
const screenshotSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), path: boundaryDecoder_1.boundary.string });
|
|
28
|
+
const actSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), exitCode: boundaryDecoder_1.boundary.number, output: boundaryDecoder_1.boundary.string });
|
|
29
|
+
const runSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), jobId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string), state: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string), exitCode: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.number), logTail: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string) });
|
|
30
|
+
const freeSchema = boundaryDecoder_1.boundary.object({ ok: boundaryDecoder_1.boundary.literal(true), shutdown: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string), deleted: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string), checkouts: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string), freedBytes: boundaryDecoder_1.boundary.number });
|
|
31
|
+
/** `--platform` for screenshot, act, run and close. */
|
|
32
|
+
function targetPlatform(parsed, command) {
|
|
33
|
+
const platform = parsed.devicePlatform;
|
|
34
|
+
if (platform === undefined)
|
|
35
|
+
return {};
|
|
36
|
+
if (platform !== 'ios' && platform !== 'android') {
|
|
37
|
+
throw new errors_1.RunpaneError('ERR_DEVICE_INVALID_REQUEST', `runpane devices ${command} takes --platform ios or --platform android, not "${platform}". Nothing ran.`, `Run \`runpane devices ${command} --platform ios\`, or leave --platform out for the device opened last.`);
|
|
38
|
+
}
|
|
39
|
+
return { platform };
|
|
40
|
+
}
|
|
41
|
+
/** Prints the daemon's result as JSON with --json, otherwise as `text`. */
|
|
42
|
+
function print(parsed, result, text) {
|
|
43
|
+
console.log(parsed.json ? JSON.stringify(result, null, 2) : text);
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Splits one command line into words: an MCP call passes the text after `--` as one string.
|
|
48
|
+
* Quotes group words; a backslash escapes the next character outside single quotes.
|
|
49
|
+
*/
|
|
50
|
+
function splitCommandLine(line) {
|
|
51
|
+
const words = [];
|
|
52
|
+
let current = '';
|
|
53
|
+
let quote;
|
|
54
|
+
let started = false;
|
|
55
|
+
for (let index = 0; index < line.length; index += 1) {
|
|
56
|
+
const char = line[index];
|
|
57
|
+
if (quote) {
|
|
58
|
+
if (char === quote)
|
|
59
|
+
quote = undefined;
|
|
60
|
+
else if (char === '\\' && quote === '"' && index + 1 < line.length)
|
|
61
|
+
current += line[++index];
|
|
62
|
+
else
|
|
63
|
+
current += char;
|
|
64
|
+
}
|
|
65
|
+
else if (char === '"' || char === '\'') {
|
|
66
|
+
quote = char;
|
|
67
|
+
started = true;
|
|
68
|
+
}
|
|
69
|
+
else if (char === '\\' && index + 1 < line.length) {
|
|
70
|
+
current += line[++index];
|
|
71
|
+
started = true;
|
|
72
|
+
}
|
|
73
|
+
else if (/\s/.test(char)) {
|
|
74
|
+
if (started)
|
|
75
|
+
words.push(current);
|
|
76
|
+
current = '';
|
|
77
|
+
started = false;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
current += char;
|
|
81
|
+
started = true;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (quote)
|
|
85
|
+
throw new errors_1.RunpaneError('ERR_DEVICE_INVALID_REQUEST', `The command has an unclosed ${quote} quote. Nothing ran.`, 'Close the quote and try again.');
|
|
86
|
+
if (started)
|
|
87
|
+
words.push(current);
|
|
88
|
+
return words;
|
|
89
|
+
}
|
|
90
|
+
/** The words after `--`: as given by a shell, or split from the one string an MCP call sends. */
|
|
91
|
+
function commandWords(parsed) {
|
|
92
|
+
const words = parsed.execCommand ?? [];
|
|
93
|
+
return words.length === 1 ? splitCommandLine(words[0]) : words;
|
|
94
|
+
}
|
|
95
|
+
async function runDevicesList(parsed) {
|
|
96
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:list', [{}], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir });
|
|
97
|
+
const { devices } = (0, boundaryDecoder_1.decodeBoundary)(result, listSchema);
|
|
98
|
+
return print(parsed, result, devices.length === 0
|
|
99
|
+
? 'No simulators or emulators here. Install Xcode or Android Studio, or link a Mac for iOS.'
|
|
100
|
+
: devices.map(device => `${device.platform}\t${device.name}\t${device.os}\t${device.machine}\t${device.state}${device.heldBy ? `\theld by ${device.heldBy.paneName}` : ''}`).join('\n'));
|
|
101
|
+
}
|
|
102
|
+
/** First use installs the helpers, may create a device, and cold-boots it (over 2 minutes on Windows). */
|
|
103
|
+
const OPEN_TIMEOUT_MS = 10 * 60_000;
|
|
104
|
+
/** agent-device installs apps and waits on screens. */
|
|
105
|
+
const ACT_TIMEOUT_MS = 5 * 60_000;
|
|
106
|
+
/** Pane waits this long for a run's command by default, and syncing to a linked Mac comes on top. */
|
|
107
|
+
const RUN_WAIT_MS = 120_000;
|
|
108
|
+
const SYNC_ALLOWANCE_MS = 5 * 60_000;
|
|
109
|
+
async function runDevicesOpen(parsed) {
|
|
110
|
+
const platform = parsed.devicePlatform;
|
|
111
|
+
if (platform !== 'ios' && platform !== 'android') {
|
|
112
|
+
throw new errors_1.RunpaneError('ERR_DEVICE_INVALID_REQUEST', 'runpane devices open needs --platform ios or --platform android. Nothing was opened.', 'Run `runpane devices open --platform ios`.');
|
|
113
|
+
}
|
|
114
|
+
const request = parsed.deviceName ? { platform, device: parsed.deviceName } : { platform };
|
|
115
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:open', [request], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir, timeoutMs: OPEN_TIMEOUT_MS });
|
|
116
|
+
const { device } = (0, boundaryDecoder_1.decodeBoundary)(result, openSchema);
|
|
117
|
+
return print(parsed, result, `Opened ${device.name} · ${device.os} on ${device.machine}.`);
|
|
118
|
+
}
|
|
119
|
+
async function runDevicesScreenshot(parsed) {
|
|
120
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:screenshot', [targetPlatform(parsed, 'screenshot')], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir });
|
|
121
|
+
return print(parsed, result, (0, boundaryDecoder_1.decodeBoundary)(result, screenshotSchema).path);
|
|
122
|
+
}
|
|
123
|
+
async function runDevicesAct(parsed) {
|
|
124
|
+
const args = commandWords(parsed);
|
|
125
|
+
if (args.length === 0) {
|
|
126
|
+
throw new errors_1.RunpaneError('ERR_DEVICE_ACT_EMPTY', 'runpane devices act needs an agent-device command after --. Nothing ran.', 'Run `runpane devices act -- snapshot -i`.');
|
|
127
|
+
}
|
|
128
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:act', [{ args, ...targetPlatform(parsed, 'act') }], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir, timeoutMs: ACT_TIMEOUT_MS });
|
|
129
|
+
const { exitCode, output } = (0, boundaryDecoder_1.decodeBoundary)(result, actSchema);
|
|
130
|
+
print(parsed, result, output);
|
|
131
|
+
return parsed.json ? 0 : exitCode;
|
|
132
|
+
}
|
|
133
|
+
async function runDevicesRun(parsed) {
|
|
134
|
+
const words = parsed.execCommand ?? [];
|
|
135
|
+
const command = words.length === 1 ? words[0] : words.join(' ');
|
|
136
|
+
const request = { ...targetPlatform(parsed, 'run') };
|
|
137
|
+
if (command.trim())
|
|
138
|
+
request.command = command;
|
|
139
|
+
if (parsed.deviceBackground)
|
|
140
|
+
request.background = true;
|
|
141
|
+
if (parsed.deviceWaitMs !== undefined)
|
|
142
|
+
request.waitMs = parsed.deviceWaitMs;
|
|
143
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:run', [request], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir, timeoutMs: (request.waitMs ?? RUN_WAIT_MS) + SYNC_ALLOWANCE_MS });
|
|
144
|
+
const run = (0, boundaryDecoder_1.decodeBoundary)(result, runSchema);
|
|
145
|
+
const still = run.state === 'running' ? `\nStill running as job ${run.jobId ?? ''}.` : '';
|
|
146
|
+
print(parsed, result, `${run.logTail ?? ''}${still}`);
|
|
147
|
+
return parsed.json ? 0 : run.exitCode ?? 0;
|
|
148
|
+
}
|
|
149
|
+
async function runDevicesClose(parsed) {
|
|
150
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:close', [targetPlatform(parsed, 'close')], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir });
|
|
151
|
+
return print(parsed, result, 'Closed. The device stays warm for 10 minutes.');
|
|
152
|
+
}
|
|
153
|
+
async function runDevicesUsage(parsed) {
|
|
154
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:usage', [{}], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir });
|
|
155
|
+
return print(parsed, result, JSON.stringify(result, null, 2));
|
|
156
|
+
}
|
|
157
|
+
async function runDevicesFree(parsed) {
|
|
158
|
+
if (parsed.deviceIdle === parsed.all) {
|
|
159
|
+
throw new errors_1.RunpaneError('ERR_DEVICE_INVALID_REQUEST', 'runpane devices free needs exactly one of --idle or --all. Nothing was changed.', 'Run `runpane devices free --idle --yes`.');
|
|
160
|
+
}
|
|
161
|
+
await (0, daemonActions_1.confirmMutation)(parsed);
|
|
162
|
+
// Each device waits for its shutdown before it is deleted.
|
|
163
|
+
const result = await (0, daemonClient_1.invokeDaemon)('runpane:devices:free', [{ mode: parsed.all ? 'all' : 'idle' }], boundaryDecoder_1.boundary.json, { paneDir: parsed.paneDir, timeoutMs: OPEN_TIMEOUT_MS });
|
|
164
|
+
const freed = (0, boundaryDecoder_1.decodeBoundary)(result, freeSchema);
|
|
165
|
+
return print(parsed, result, `Shut down ${freed.shutdown.length}, deleted ${freed.deleted.length} devices and ${freed.checkouts.length} checkouts, freed ${Math.round(freed.freedBytes / 1_000_000)} MB.`);
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=devices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":";;AAuFA,wCAMC;AAUD,wCASC;AAED,oDAGC;AAED,sCASC;AAED,sCAYC;AAED,0CAGC;AAED,0CAGC;AAED,wCASC;AAnKD,uDAA6E;AAE7E,mDAAkD;AAClD,iDAA8C;AAC9C,qCAAwC;AAExC,kGAAkG;AAClG,uFAAuF;AAEvF,MAAM,aAAa,GAAG,0BAAQ,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,0BAAQ,CAAC,MAAM;IACrB,QAAQ,EAAE,0BAAQ,CAAC,MAAM;IACzB,EAAE,EAAE,0BAAQ,CAAC,MAAM;IACnB,OAAO,EAAE,0BAAQ,CAAC,MAAM;IACxB,KAAK,EAAE,0BAAQ,CAAC,MAAM;IACtB,MAAM,EAAE,0BAAQ,CAAC,QAAQ,CAAC,0BAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE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