@augurworks/augur 0.15.4 → 0.15.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.
- package/package.json +1 -1
- package/scripts/connect.mjs +9 -2
- package/src/_worker.js +6 -3
package/package.json
CHANGED
package/scripts/connect.mjs
CHANGED
|
@@ -112,8 +112,15 @@ if (NO_WAIT) {
|
|
|
112
112
|
process.exit(0);
|
|
113
113
|
}
|
|
114
114
|
console.log(` ${C.dim}You can stop waiting (Ctrl-C) and run \`augur connect\` again after they approve —`);
|
|
115
|
-
console.log(` it collects the token for this same code.
|
|
116
|
-
console.log(
|
|
115
|
+
console.log(` it collects the token for this same code.${C.off}`);
|
|
116
|
+
console.log("");
|
|
117
|
+
// Addressed to an agent, in the second person, because the polite version above was
|
|
118
|
+
// read and ignored: an agent whose person only sees its messages once it finishes its
|
|
119
|
+
// turn kept polling here for the code's whole life, twice, and nobody ever saw the code.
|
|
120
|
+
console.log(` ${C.warn}AGENTS: if your person reads your messages only after you finish, do not wait here.`);
|
|
121
|
+
console.log(` Stop now, send them the first line above, and run \`augur connect\` again once they say`);
|
|
122
|
+
console.log(` they have approved — it collects the token then. (\`augur connect --no-wait\` does`);
|
|
123
|
+
console.log(` exactly that in one step.)${C.off}`);
|
|
117
124
|
console.log("");
|
|
118
125
|
|
|
119
126
|
const deadline = Date.now() + (expiresInMs || 300000);
|
package/src/_worker.js
CHANGED
|
@@ -9133,9 +9133,12 @@ function doorText(f) {
|
|
|
9133
9133
|
+ ` ${f.connect}\n\n`
|
|
9134
9134
|
+ `It prints a link and a code. The owner of this workspace opens the link in a\n`
|
|
9135
9135
|
+ `browser they are already signed in to and enters the code. The token lands on\n`
|
|
9136
|
-
+ `that machine, and every verb below uses it from then on
|
|
9137
|
-
+ `
|
|
9138
|
-
+ `
|
|
9136
|
+
+ `that machine, and every verb below uses it from then on.\n\n`
|
|
9137
|
+
+ `AGENTS: if your person reads your messages only after you finish your turn, run\n`
|
|
9138
|
+
+ `it with --no-wait. It prints the line and exits; send them that line, end your\n`
|
|
9139
|
+
+ `turn, and run the same command again once they say they approved — the token is\n`
|
|
9140
|
+
+ `collected then, for that same code. Do not poll for the approval in one turn:\n`
|
|
9141
|
+
+ `the code lives five minutes and nobody sees it until you stop.\n\n`
|
|
9139
9142
|
+ `With no\n`
|
|
9140
9143
|
+ `source tree yet, \`npx @augurworks/augur clone --space ${f.workspace}\` then fetches one (it reads\n`
|
|
9141
9144
|
+ `the origin from the pairing).\n\n`
|