opencode-zen-freex 0.2.3 → 0.2.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.
- package/MAINTAINING.md +22 -12
- package/package.json +1 -1
package/MAINTAINING.md
CHANGED
|
@@ -187,24 +187,34 @@ either way, so one stays in place whichever is installed. It does mean the two
|
|
|
187
187
|
are mutually exclusive — installing both leaves two plugins claiming one
|
|
188
188
|
provider id, and which one wins is down to load order. Pick one.
|
|
189
189
|
|
|
190
|
-
To publish: bump `version`, `npm publish
|
|
191
|
-
|
|
190
|
+
To publish: bump `version`, commit, `npm publish` in a terminal, and tag — in
|
|
191
|
+
that order, so the tarball, the commit the tag names, and the tree both were
|
|
192
|
+
built from are one thing. `magpie plugin add opencode-zen-freex` installs it by
|
|
193
|
+
that name.
|
|
192
194
|
|
|
193
|
-
**The second factor is a browser, not a password.** Run `npm publish
|
|
194
|
-
account has 2FA on, the command stops
|
|
195
|
+
**The second factor is a browser, not a password.** Run `npm publish` in a
|
|
196
|
+
terminal. When the account has 2FA on, the command stops and offers the whole
|
|
197
|
+
exchange at once:
|
|
195
198
|
|
|
196
199
|
```
|
|
200
|
+
Authenticate your account at:
|
|
197
201
|
https://www.npmjs.com/auth/cli/...
|
|
202
|
+
Press ENTER to open in the browser...
|
|
198
203
|
```
|
|
199
204
|
|
|
200
|
-
|
|
201
|
-
Nothing is typed back into the terminal and nothing is passed to a
|
|
202
|
-
address is tied to the browser session that printed it and
|
|
203
|
-
time, so it is read out of the running command
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
Press ENTER, authorize in the browser, and the same command carries on by
|
|
206
|
+
itself. Nothing is typed back into the terminal and nothing is passed to a
|
|
207
|
+
script: the address is tied to the browser session that printed it and differs
|
|
208
|
+
every time, so it is read out of the running command rather than composed in
|
|
209
|
+
advance. Whoever is at the browser authorizes, so the command can be started for
|
|
210
|
+
them and left waiting — the one thing it needs from them is the ENTER that opens
|
|
211
|
+
it.
|
|
212
|
+
|
|
213
|
+
Both halves of that depend on the command having a terminal. Run as a background
|
|
214
|
+
job or piped into a file, npm has no browser to offer, redacts the address to
|
|
215
|
+
`https://www.npmjs.com/auth/cli/***` and exits `EOTP` rather than waiting, so a
|
|
216
|
+
log of the failed attempt cannot be used to finish it — start it again in a
|
|
217
|
+
terminal.
|
|
208
218
|
|
|
209
219
|
An account with no second factor to give publishes in one step. So does
|
|
210
220
|
`npm login --auth-type=web`, which is the same browser exchange kept as a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-zen-freex",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "OpenCode Zen's free models, for hosts that are not OpenCode: the public credential, automatic discovery and native streaming protocols",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|