@swmansion/argent 0.31.1-next.16 → 0.31.1-next.18
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-cmds.mjs +1 -1
- package/dist/installer.mjs +6 -1
- package/dist/tool-server.cjs +37 -26
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -35740,7 +35740,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
35740
35740
|
var SESSION_ID2 = randomUUID5();
|
|
35741
35741
|
function readCliVersion() {
|
|
35742
35742
|
if (true) {
|
|
35743
|
-
return "0.31.1-next.
|
|
35743
|
+
return "0.31.1-next.18";
|
|
35744
35744
|
}
|
|
35745
35745
|
return "0.0.0";
|
|
35746
35746
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16915,7 +16915,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16915
16915
|
var SESSION_ID = randomUUID4();
|
|
16916
16916
|
function readCliVersion() {
|
|
16917
16917
|
if (true) {
|
|
16918
|
-
return "0.31.1-next.
|
|
16918
|
+
return "0.31.1-next.18";
|
|
16919
16919
|
}
|
|
16920
16920
|
return "0.0.0";
|
|
16921
16921
|
}
|
|
@@ -21791,6 +21791,11 @@ function getManagedContentTargets(adapters, root, scope) {
|
|
|
21791
21791
|
addManagedTarget(targets.skillTargets, adapter.name, path18.join(kiroBase, "skills"), root);
|
|
21792
21792
|
break;
|
|
21793
21793
|
}
|
|
21794
|
+
case "Devin Desktop": {
|
|
21795
|
+
const devinBase = scope === "global" ? path18.join(process.env.XDG_CONFIG_HOME || path18.join(homedir4(), ".config"), "devin") : path18.join(root, ".devin");
|
|
21796
|
+
addManagedTarget(targets.skillTargets, adapter.name, path18.join(devinBase, "skills"), root);
|
|
21797
|
+
break;
|
|
21798
|
+
}
|
|
21794
21799
|
}
|
|
21795
21800
|
}
|
|
21796
21801
|
return targets;
|
package/dist/tool-server.cjs
CHANGED
|
@@ -83951,8 +83951,8 @@ async function resolveRuntimeKindCached(serial, avdName) {
|
|
|
83951
83951
|
androidRuntimeKindCache.set(serial, { avdName, kind });
|
|
83952
83952
|
return kind;
|
|
83953
83953
|
}
|
|
83954
|
-
async function getAndroidRuntimeKind(serial) {
|
|
83955
|
-
const serials = await listAndroidSerials();
|
|
83954
|
+
async function getAndroidRuntimeKind(serial, options = {}) {
|
|
83955
|
+
const serials = await listAndroidSerials(options);
|
|
83956
83956
|
const ready2 = serials.find((d) => d.serial === serial && d.state === "device");
|
|
83957
83957
|
if (!ready2) {
|
|
83958
83958
|
androidRuntimeKindCache.delete(serial);
|
|
@@ -83961,8 +83961,8 @@ async function getAndroidRuntimeKind(serial) {
|
|
|
83961
83961
|
const avdName = serial.startsWith("emulator-") ? await readAvdName(serial) : null;
|
|
83962
83962
|
return resolveRuntimeKindCached(serial, avdName);
|
|
83963
83963
|
}
|
|
83964
|
-
async function isAndroidTv(serial) {
|
|
83965
|
-
return await getAndroidRuntimeKind(serial) === "tv";
|
|
83964
|
+
async function isAndroidTv(serial, options = {}) {
|
|
83965
|
+
return await getAndroidRuntimeKind(serial, options) === "tv";
|
|
83966
83966
|
}
|
|
83967
83967
|
function getCachedAndroidRuntimeKind(serial) {
|
|
83968
83968
|
return androidRuntimeKindCache.get(serial)?.kind;
|
|
@@ -101024,7 +101024,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
101024
101024
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
101025
101025
|
function readCliVersion() {
|
|
101026
101026
|
if (true) {
|
|
101027
|
-
return "0.31.1-next.
|
|
101027
|
+
return "0.31.1-next.18";
|
|
101028
101028
|
}
|
|
101029
101029
|
return "0.0.0";
|
|
101030
101030
|
}
|
|
@@ -144285,6 +144285,8 @@ Supports \`{{secret:<NAME>}}\` placeholders like \`keyboard\`; the value is neve
|
|
|
144285
144285
|
// ../tool-server/src/tools/rotate/index.ts
|
|
144286
144286
|
init_zod();
|
|
144287
144287
|
init_device_info();
|
|
144288
|
+
init_adb();
|
|
144289
|
+
init_capability();
|
|
144288
144290
|
var zodSchema26 = external_exports.object({
|
|
144289
144291
|
udid: external_exports.string().describe("Target device id from `list-devices` (iOS UDID or Android serial)."),
|
|
144290
144292
|
orientation: external_exports.enum(["Portrait", "LandscapeLeft", "LandscapeRight", "PortraitUpsideDown"]).describe("Target orientation")
|
|
@@ -144294,28 +144296,37 @@ var capability19 = {
|
|
|
144294
144296
|
appleRemote: { simulator: true },
|
|
144295
144297
|
android: { emulator: true, device: true, unknown: true }
|
|
144296
144298
|
};
|
|
144297
|
-
|
|
144298
|
-
|
|
144299
|
-
|
|
144300
|
-
|
|
144301
|
-
|
|
144302
|
-
|
|
144303
|
-
|
|
144304
|
-
|
|
144299
|
+
async function isAndroidTvForRotate(serial) {
|
|
144300
|
+
return isAndroidTv(serial, { devicesTimeoutMs: ADB_DEVICES_TIMEOUT_MS }).catch(() => false);
|
|
144301
|
+
}
|
|
144302
|
+
function createRotateTool(registry2) {
|
|
144303
|
+
return {
|
|
144304
|
+
id: "rotate",
|
|
144305
|
+
interaction: {
|
|
144306
|
+
startedMsg: ({ params }) => `Rotating device to ${params.orientation}`,
|
|
144307
|
+
completedMsg: ({ params }) => `Rotated device to ${params.orientation}`,
|
|
144308
|
+
failedMsg: ({ failureSignal: failureSignal2 }) => `Failed to rotate device: ${failureSignal2.error_code}`
|
|
144309
|
+
},
|
|
144310
|
+
description: `Set the device orientation to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown.
|
|
144305
144311
|
Use to test layout in a different orientation. Re-run \`describe\` afterwards: frame coordinates change with the orientation.
|
|
144306
144312
|
On an unfolded foldable iOS simulator (the iPhone Duo), the value sets the orientation of the device, not of the UI: \`Portrait\` gives a landscape UI and \`LandscapeLeft\` gives a portrait UI. To fold or unfold the device, use \`fold\`.
|
|
144307
|
-
Returns { orientation }. Fails if the target device is not booted.`,
|
|
144308
|
-
|
|
144309
|
-
|
|
144310
|
-
|
|
144311
|
-
|
|
144312
|
-
|
|
144313
|
-
|
|
144314
|
-
|
|
144315
|
-
|
|
144316
|
-
|
|
144317
|
-
|
|
144318
|
-
|
|
144313
|
+
Returns { orientation }. Fails on a TV target, or if the target device is not booted.`,
|
|
144314
|
+
zodSchema: zodSchema26,
|
|
144315
|
+
capability: capability19,
|
|
144316
|
+
// The simulator-server is resolved in execute, after the Android TV check, so a
|
|
144317
|
+
// TV is refused without first starting one.
|
|
144318
|
+
services: () => ({}),
|
|
144319
|
+
async execute(_services, params) {
|
|
144320
|
+
const device = resolveDevice(params.udid);
|
|
144321
|
+
if (device.platform === "android" && await isAndroidTvForRotate(device.id))
|
|
144322
|
+
throw new UnsupportedOperationError("rotate", device, "Android TV has a fixed orientation");
|
|
144323
|
+
const ref = simulatorServerRef(device);
|
|
144324
|
+
const api = await registry2.resolveService(ref.urn, ref.options);
|
|
144325
|
+
await sendCommand(api, { cmd: "rotate", direction: params.orientation });
|
|
144326
|
+
return { orientation: params.orientation };
|
|
144327
|
+
}
|
|
144328
|
+
};
|
|
144329
|
+
}
|
|
144319
144330
|
|
|
144320
144331
|
// ../tool-server/src/tools/shake/schema.ts
|
|
144321
144332
|
init_zod();
|
|
@@ -178811,7 +178822,7 @@ function createRegistry() {
|
|
|
178811
178822
|
registry2.registerTool(buttonTool);
|
|
178812
178823
|
registry2.registerTool(createKeyboardTool(registry2));
|
|
178813
178824
|
registry2.registerTool(createPasteTool(registry2));
|
|
178814
|
-
registry2.registerTool(
|
|
178825
|
+
registry2.registerTool(createRotateTool(registry2));
|
|
178815
178826
|
registry2.registerTool(shakeTool);
|
|
178816
178827
|
registry2.registerTool(foldTool);
|
|
178817
178828
|
registry2.registerTool(createTvRemoteTool(registry2));
|
package/package.json
CHANGED