@swmansion/argent 0.20.1-next.4 → 0.20.1-next.5

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.
@@ -122457,7 +122457,6 @@ Use when you need to zoom in or out on a map, image, or zoomable view. Returns {
122457
122457
 
122458
122458
  // ../tool-server/src/tools/gesture-rotate/index.ts
122459
122459
  init_zod();
122460
- init_src();
122461
122460
  var zodSchema22 = external_exports.object({
122462
122461
  udid: external_exports.string().describe("Target device id from `list-devices` (iOS UDID or Android serial)."),
122463
122462
  centerX: external_exports.number().describe(
@@ -122483,16 +122482,6 @@ var zodSchema22 = external_exports.object({
122483
122482
  }).refine((p) => p.radius !== void 0 || p.radiusX !== void 0, {
122484
122483
  message: "Pass radius, or both radiusX and radiusY."
122485
122484
  });
122486
- var inputSchema = {
122487
- ...zodObjectToJsonSchema(zodSchema22),
122488
- anyOf: [
122489
- { required: ["radiusX", "radiusY"] },
122490
- {
122491
- required: ["radius"],
122492
- not: { anyOf: [{ required: ["radiusX"] }, { required: ["radiusY"] }] }
122493
- }
122494
- ]
122495
- };
122496
122485
  var capability14 = {
122497
122486
  apple: { simulator: true, device: true },
122498
122487
  appleRemote: { simulator: true },
@@ -122517,9 +122506,9 @@ var gestureRotateTool = {
122517
122506
  endAngle > startAngle = clockwise rotation. Typical values: radius 0.15, startAngle 0, endAngle 90 for a 90\xB0 clockwise turn. A single radius applies to both axes, so on a non-square screen it traces a physical ellipse (finger separation varies through the turn); pass radiusX+radiusY (fractions of width/height with radiusX\xB7width = radiusY\xB7height) for a physically circular orbit instead.
122518
122507
  Auto-generates interpolated frames at ~60fps.
122519
122508
  Unlike gesture-pinch which moves fingers linearly to zoom, this orbits fingers in an arc to change orientation.
122520
- Use when you need to rotate a map, image picker, or any rotateable UI element. Returns { rotated: true, timestampMs }. Fails if the simulator-server / emulator backend is not reachable for the given device.`,
122509
+ Use when you need to rotate a map, image picker, or any rotateable UI element. Returns { rotated: true, timestampMs }. Fails if the simulator-server / emulator backend is not reachable for the given device.
122510
+ Size the orbit with radius, or with radiusX and radiusY together (the pair overrides radius); one half of the pair alone, or none of the three, is rejected.`,
122521
122511
  zodSchema: zodSchema22,
122522
- inputSchema,
122523
122512
  capability: capability14,
122524
122513
  services: (params) => ({
122525
122514
  simulatorServer: simulatorServerRef(resolveDevice(params.udid))
@@ -148397,7 +148386,7 @@ var zodSchema65 = external_exports.object({
148397
148386
  "Path to the flow .yaml as readable by the tool-server. Internal \u2014 the argent client derives it from project_root and name automatically; leave unset."
148398
148387
  ),
148399
148388
  flow_path: external_exports.string().optional().describe(
148400
- "Absolute path to a co-located flow .yaml on the client and tool server's shared filesystem. This must be supplied through the file-input boundary. For remote execution, pass name + project_root instead."
148389
+ "Omit when name is set. Absolute path to a co-located flow .yaml on the client and tool server's shared filesystem. This must be supplied through the file-input boundary. For remote execution, pass name + project_root instead."
148401
148390
  ),
148402
148391
  device: external_exports.string().optional().describe(
148403
148392
  "Device id to run against (iOS UDID, Android/Vega serial, Chromium id) \u2014 the id list-devices reports. Auto-detected when omitted, but only when exactly one booted device matches (optionally narrowed by `platform`); with several booted the run fails and lists them, so pass this explicitly whenever more than one device is up."
@@ -148420,14 +148409,6 @@ var zodSchema65 = external_exports.object({
148420
148409
  });
148421
148410
  }
148422
148411
  });
148423
- var inputSchema2 = {
148424
- ...zodObjectToJsonSchema(zodSchema65),
148425
- // Zod's JSON Schema conversion cannot represent superRefine. `oneOf` makes
148426
- // the same exactly-one source rule visible to MCP and HTTP clients: neither
148427
- // branch matches when both fields are absent, and both branches match (which
148428
- // is invalid for oneOf) when both fields are present.
148429
- oneOf: [{ required: ["name"] }, { required: ["flow_path"] }]
148430
- };
148431
148412
  var fileInputs3 = [
148432
148413
  {
148433
148414
  target: "flow_path",
@@ -148768,10 +148749,10 @@ off <id>\`, or \`retired <id> (same app relaunched)\` when the instance it left
148768
148749
  a relaunch that retired an older owned instance names both.
148769
148750
 
148770
148751
  If a fragment has an execution prerequisite and prerequisiteAcknowledged is not set to true, the tool
148771
- returns a notice with the prerequisite instead of running.`,
148752
+ returns a notice with the prerequisite instead of running.
148753
+ Pass exactly one flow source: name for a saved flow under project_root, or flow_path for an explicit YAML \u2014 both together, or neither, fails the call.`,
148772
148754
  longRunning: true,
148773
148755
  zodSchema: zodSchema65,
148774
- inputSchema: inputSchema2,
148775
148756
  fileInputs: fileInputs3,
148776
148757
  services: () => ({}),
148777
148758
  async execute(_services, params, ctx) {
@@ -149564,7 +149545,6 @@ async function resolveFlowSource(params, fileInput, flowPathInput) {
149564
149545
  // ../tool-server/src/tools/flows/flow-read-prerequisite.ts
149565
149546
  init_zod();
149566
149547
  var fs50 = __toESM(require("node:fs/promises"));
149567
- init_src();
149568
149548
  var zodSchema66 = external_exports.object({
149569
149549
  name: external_exports.string().optional().describe(
149570
149550
  'Name of a saved flow to inspect from `.argent/flows` (e.g. "settings-explore"). Omit when flow_path is set.'
@@ -149576,7 +149556,7 @@ var zodSchema66 = external_exports.object({
149576
149556
  "Path to the flow .yaml as readable by the tool-server. Internal \u2014 the argent client derives it from project_root and name automatically; leave unset."
149577
149557
  ),
149578
149558
  flow_path: external_exports.string().optional().describe(
149579
- "Absolute path to a co-located flow .yaml on the client and tool server's shared filesystem. This must be supplied through the file-input boundary. Pass the same flow source here as to flow-execute, so the prerequisite you read belongs to the flow that will run; for remote reads, pass name + project_root instead."
149559
+ "Omit when name is set. Absolute path to a co-located flow .yaml on the client and tool server's shared filesystem. This must be supplied through the file-input boundary. Pass the same flow source here as to flow-execute, so the prerequisite you read belongs to the flow that will run; for remote reads, pass name + project_root instead."
149580
149560
  )
149581
149561
  }).superRefine((params, ctx) => {
149582
149562
  if (params.name === void 0 === (params.flow_path === void 0)) {
@@ -149587,14 +149567,6 @@ var zodSchema66 = external_exports.object({
149587
149567
  });
149588
149568
  }
149589
149569
  });
149590
- var inputSchema3 = {
149591
- ...zodObjectToJsonSchema(zodSchema66),
149592
- // Zod's JSON Schema conversion cannot represent superRefine. `oneOf` makes
149593
- // the same exactly-one source rule visible to MCP and HTTP clients — the
149594
- // identical addition flow-execute makes, so the pre-flight read advertises
149595
- // the same contract as the run it precedes.
149596
- oneOf: [{ required: ["name"] }, { required: ["flow_path"] }]
149597
- };
149598
149570
  var fileInputs4 = [
149599
149571
  {
149600
149572
  target: "flow_path",
@@ -149622,9 +149594,9 @@ Returns the prerequisite description so you can verify the required state is met
149622
149594
  Use when you need to check what app/simulator state is required before executing a flow; pass the same flow
149623
149595
  source (name or flow_path) you will pass to flow-execute, so the prerequisite you read is the contract of
149624
149596
  the flow that will actually run.
149625
- Fails if the flow file does not exist.`,
149597
+ Fails if the flow file does not exist.
149598
+ Address the flow exactly as you will address it in flow-execute: name or flow_path, one and only one; supplying both or neither is rejected.`,
149626
149599
  zodSchema: zodSchema66,
149627
- inputSchema: inputSchema3,
149628
149600
  fileInputs: fileInputs4,
149629
149601
  services: () => ({}),
149630
149602
  async execute(_services, params, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.20.1-next.4",
3
+ "version": "0.20.1-next.5",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",