pantheon-cli 0.2.5 → 0.2.7

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 (2) hide show
  1. package/dist/pantheon.mjs +24 -5
  2. package/package.json +1 -1
package/dist/pantheon.mjs CHANGED
@@ -22882,7 +22882,9 @@ If you are an agent:
22882
22882
  - The only space list is pantheon_list_spaces. Never answer /pantheon-spaces from memory.
22883
22883
 
22884
22884
  Tutorial
22885
- 1. Human runs pantheon connect <code> once on this machine
22885
+ 1. Human runs pantheon connect <code> --host <url> once on this machine
22886
+ Overview shows that line with the code and URL already filled in.
22887
+ The code goes before --host, or it is mistaken for the code.
22886
22888
  2. Reload MCP in Cursor, Claude, or ChatGPT.app (Chat or Codex).
22887
22889
  ChatGPT Classic cannot run local MCP \u2014 use the new ChatGPT.app instead.
22888
22890
  Replit Desktop uses the HTTPS MCP URL from Settings \u2192 Replit Desktop.
@@ -24106,10 +24108,10 @@ function hint2(message) {
24106
24108
  return "Open Overview and click Generate new code, then run pantheon connect again.";
24107
24109
  }
24108
24110
  if (text2.includes("could not reach") || text2.includes("fetch")) {
24109
- return "Start the web app (pnpm dev) or pass --host with your Pantheon URL.";
24111
+ return "Copy the connect command from Overview \u2014 it carries --host with your Pantheon URL. Running the app yourself? Start it, or pass --host http://localhost:3000.";
24110
24112
  }
24111
24113
  if (text2.includes("not connected")) {
24112
- return "Run pantheon connect <code> from the dashboard first.";
24114
+ return "Run the pantheon connect line from Overview first \u2014 it includes your code and --host.";
24113
24115
  }
24114
24116
  if (text2.includes("authentication") || text2.includes("403") || text2.includes("401")) {
24115
24117
  return "Reconnect GitHub on the web app and generate a new pairing code.";
@@ -24206,20 +24208,37 @@ var AGENT_VERBS = /* @__PURE__ */ new Set([
24206
24208
  ]);
24207
24209
  var argv = process.argv.slice(2).filter((part) => part !== "--");
24208
24210
  var [cmd, ...rest] = argv;
24211
+ var VALUE_FLAGS = /* @__PURE__ */ new Set(["--host", "--home"]);
24209
24212
  function flag(name) {
24213
+ const inline = rest.find((part) => part.startsWith(`${name}=`));
24214
+ if (inline) return inline.slice(name.length + 1);
24210
24215
  const index = rest.indexOf(name);
24211
24216
  if (index === -1) return void 0;
24212
24217
  return rest[index + 1];
24213
24218
  }
24219
+ function positional() {
24220
+ for (let i = 0; i < rest.length; i += 1) {
24221
+ const part = rest[i];
24222
+ if (VALUE_FLAGS.has(part)) {
24223
+ i += 1;
24224
+ continue;
24225
+ }
24226
+ if (part.startsWith("-")) continue;
24227
+ return part;
24228
+ }
24229
+ return void 0;
24230
+ }
24214
24231
  async function main() {
24215
24232
  if (!cmd || cmd === "help" || cmd === "--help" || cmd === "-h") {
24216
24233
  process.stdout.write(GUIDE);
24217
24234
  return;
24218
24235
  }
24219
24236
  if (cmd === "connect") {
24220
- const code = rest.find((part) => !part.startsWith("-"));
24237
+ const code = positional();
24221
24238
  if (!code) {
24222
- printError(new Error("Missing pairing code. Usage: pantheon connect <code>"));
24239
+ printError(
24240
+ new Error("Missing pairing code. Usage: pantheon connect <code> --host <url>")
24241
+ );
24223
24242
  process.exit(1);
24224
24243
  }
24225
24244
  await connect({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Carry agent conscience between AI coding agents. Hand off a conversation in one agent, resume it in another.",
5
5
  "license": "MIT",
6
6
  "type": "module",