agentstuff 0.1.3 → 0.1.4

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +24 -18
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -13,7 +13,7 @@ agentstuff setup
13
13
 
14
14
  Setup starts with two paths: a complete guided setup or a fast desktop repair. Complete setup walks through the iPhone, desktop integration, and terminal shortcut as separate numbered steps. Existing configuration is detected at every step, so you can show the current pairing code, rotate it, keep a healthy integration, or change the shortcut without redoing unrelated setup.
15
15
 
16
- When run from an Agentstuff development checkout, the wizard can build and install the iOS development app with Xcode. A configured `AGENTSTUFF_MOBILE_INSTALL_URL` enables the public mobile-download option. Until a TestFlight or App Store build is configured, npm cannot install a signed iOS app by itself.
16
+ The public wizard sends users to the App Store for the signed iPhone app. Source-build controls are hidden from normal setup and are available to contributors only when `AGENTSTUFF_DEVELOPER_SETUP=1` is explicitly set in a development checkout.
17
17
 
18
18
  Open a new terminal and start a live session:
19
19
 
package/dist/index.js CHANGED
@@ -39572,7 +39572,7 @@ var runWith2 = (command, config) => {
39572
39572
  // package.json
39573
39573
  var package_default = {
39574
39574
  name: "agentstuff",
39575
- version: "0.1.3",
39575
+ version: "0.1.4",
39576
39576
  description: "Continue terminal agent sessions securely from your phone",
39577
39577
  license: "UNLICENSED",
39578
39578
  type: "module",
@@ -82200,6 +82200,7 @@ var MobileInstallUrl = String4.pipe(check(makeFilter2((value2) => {
82200
82200
  }
82201
82201
  }, { expected: "an HTTP(S) mobile install URL" })));
82202
82202
  var decodeMobileInstallUrl = decodeUnknownOption2(MobileInstallUrl);
82203
+ var decodeDeveloperSetup = decodeUnknownOption2(Literal2("1"));
82203
82204
  var setupSections = (mode) => ({
82204
82205
  desktop: mode === "complete" || mode === "repair",
82205
82206
  shortcut: mode === "complete",
@@ -82282,27 +82283,32 @@ var configureShortcut = fn2("Setup.configureShortcut")(function* (options, exist
82282
82283
  }
82283
82284
  return none2();
82284
82285
  });
82286
+ var mobileSetupChoices = (options) => [
82287
+ { title: "Agentstuff is already installed", value: "installed", description: "Open the app and continue to secure pairing" },
82288
+ ...options.developmentEnabled && options.hasProject ? [{
82289
+ title: "Build the development app",
82290
+ value: "development",
82291
+ description: "Developer mode \xB7 uses Xcode and a connected iPhone"
82292
+ }] : [],
82293
+ {
82294
+ title: "Get Agentstuff from the App Store",
82295
+ value: "download",
82296
+ description: options.installUrl === undefined ? "The public iPhone release is not available yet" : "Open the App Store installation page",
82297
+ disabled: options.installUrl === undefined
82298
+ },
82299
+ { title: "Set up the phone later", value: "skip", description: "Continue with desktop setup" }
82300
+ ];
82285
82301
  var prepareMobileApp = fn2("Setup.prepareMobileApp")(function* (yes) {
82286
82302
  const project = findMobileProject();
82287
82303
  const installUrl = getOrUndefined(decodeMobileInstallUrl(process.env.AGENTSTUFF_MOBILE_INSTALL_URL));
82304
+ const developmentEnabled = isSome2(decodeDeveloperSetup(process.env.AGENTSTUFF_DEVELOPER_SETUP));
82288
82305
  const choice5 = yes ? "installed" : yield* exports_Prompt.select({
82289
- message: "Is Agentstuff installed on your iPhone?",
82290
- choices: [
82291
- { title: "Yes, open it now", value: "installed", description: "Continue to secure pairing" },
82292
- {
82293
- title: "Build and install from this checkout",
82294
- value: "development",
82295
- description: project === undefined ? "Run setup from the project checkout to enable this" : "Uses Xcode and a connected iPhone",
82296
- disabled: project === undefined
82297
- },
82298
- {
82299
- title: "Open the mobile download",
82300
- value: "download",
82301
- description: installUrl === undefined ? "No public iOS build has been configured yet" : "Opens the iOS installation page",
82302
- disabled: installUrl === undefined
82303
- },
82304
- { title: "Skip phone pairing for now", value: "skip", description: "Run agentstuff setup again later" }
82305
- ]
82306
+ message: "Set up Agentstuff on your iPhone",
82307
+ choices: mobileSetupChoices({
82308
+ developmentEnabled,
82309
+ hasProject: project !== undefined,
82310
+ installUrl
82311
+ })
82306
82312
  });
82307
82313
  if (choice5 === "skip")
82308
82314
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentstuff",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Continue terminal agent sessions securely from your phone",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",