@join-pantheon/cli 0.37.0 → 0.37.1
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.js +2 -2
- package/dist/flag-signin.js +5 -0
- package/dist/onboard-copy.js +2 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -66,7 +66,7 @@ import { inviteBlock } from "./onboard-copy.js";
|
|
|
66
66
|
import { spawn } from "node:child_process";
|
|
67
67
|
import { EXIT, exitCodeFor, exitReason, inviteRefusalCode } from "./exit-codes.js";
|
|
68
68
|
import { QUEUED_SEND_DEADLINE_MS } from "./hud-queue.js";
|
|
69
|
-
import { awaitLink, enterCode, inviteIndexes, requestCode, resumeArgs, resumedArgv } from "./flag-signin.js";
|
|
69
|
+
import { awaitLink, enterCode, inviteIndexes, requestCode, resumeArgs, resumedArgv, unreachableWhy } from "./flag-signin.js";
|
|
70
70
|
const argv = process.argv.slice(2);
|
|
71
71
|
for (let i = argv.length - 1; i >= 1; i--) {
|
|
72
72
|
const m = /^(--[a-z][a-z0-9-]*)=(.*)$/i.exec(argv[i]);
|
|
@@ -143,7 +143,7 @@ async function flagSignIn(which, relay, joining) {
|
|
|
143
143
|
post: (path, body) => fetch(`${base}${path}`, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(body), signal: AbortSignal.timeout(FLAG_SIGNIN_POST_MS) })
|
|
144
144
|
.then(async (x) => ({ status: x.status, j: await relayJson(x, `${base}${path}`) }))
|
|
145
145
|
.catch(async (e) => { why = await describeRelayFailure(e, relay); return null; }),
|
|
146
|
-
unreachable: () => why,
|
|
146
|
+
unreachable: () => unreachableWhy(why, process.env),
|
|
147
147
|
identity: () => identity(),
|
|
148
148
|
saveLocked: (fn) => withConfigLock(() => { const next = fn(identity()); save({ ...next, relay: next.relay || relay }); return next; }),
|
|
149
149
|
newKeypair,
|
package/dist/flag-signin.js
CHANGED
|
@@ -219,6 +219,11 @@ function needsUsername(cmd, deps, email, suggested, why) {
|
|
|
219
219
|
json: { needs: "username", email, suggested, next: nxt },
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
+
export function unreachableWhy(why, env) {
|
|
223
|
+
if (env.CODEX_SANDBOX_NETWORK_DISABLED !== "1")
|
|
224
|
+
return why;
|
|
225
|
+
return `${why || "no network"}. This shell has no network (Codex's sandbox): run the same command in a terminal of your own, or allow Codex network access`;
|
|
226
|
+
}
|
|
222
227
|
export async function enterCode(o) {
|
|
223
228
|
const { deps, cmd } = o;
|
|
224
229
|
const prior = deps.identity();
|
package/dist/onboard-copy.js
CHANGED
|
@@ -61,7 +61,8 @@ export function agentRequest(invite, o) {
|
|
|
61
61
|
`First ask me for my email and for the username my teammates will see (it can't be changed later).${invite ? " Don't open the invite link: it holds a one-time secret, and the installer takes it as it is." : ""}`,
|
|
62
62
|
`On a Mac or Linux: download the installer and read it before running it — curl -fsSL ${base}/install.sh -o pantheon-install.sh — then run: sh pantheon-install.sh ${verb} ${flags}`,
|
|
63
63
|
`On Windows: curl.exe -fsSL ${base}/install.ps1 -o pantheon-install.ps1, read it, then run: powershell -NoProfile -Command "Set-Item Env:PANTHEON_ARGS '${psVerb} ${flags}'; Get-Content -Raw pantheon-install.ps1 | iex"`,
|
|
64
|
-
`It emails me a 6-digit code (it may land in spam). Ask me for it, then run the exact command it prints next (it names Pantheon by its full path, since this shell may not find \`pantheon\` yet), with the code in place of <the 6-digit code
|
|
64
|
+
`It emails me a 6-digit code (it may land in spam). Ask me for it, then run the exact command it prints next (it names Pantheon by its full path, since this shell may not find \`pantheon\` yet), with the code in place of <the 6-digit code>.`,
|
|
65
|
+
`If this shell can't go online (Codex keeps it offline unless I allow it, and may turn the request down by itself), don't retry or look for a way around it: give me the same commands to run in a terminal of my own, without the --email and --username part. There it asks me for my email, the code and my username itself. Then I quit and reopen you once.`,
|
|
65
66
|
"What it changes, to tell me before running it:",
|
|
66
67
|
...INSTALL_CHANGES.slice(0, 3).map((c) => `- ${c}`),
|
|
67
68
|
].join("\n");
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@join-pantheon/cli",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@join-pantheon/cli",
|
|
9
|
-
"version": "0.37.
|
|
9
|
+
"version": "0.37.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@join-pantheon/cli",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"description": "Let your coding agent collaborate directly with your teammates' agents — ask, agree an interface, and deliver, without a human relaying messages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|