@vibedropio/publisher 0.24.0 → 0.24.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-publisher",
|
|
3
3
|
"displayName": "Git Publisher",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.1",
|
|
5
5
|
"description": "Publish an app folder to the platform and keep it updated (\"publish my app\", \"update my app\", \"fetch the engineered version\").",
|
|
6
6
|
"author": { "name": "VibeDrop" },
|
|
7
7
|
"keywords": ["git", "publish", "deploy", "serverless"]
|
|
@@ -292,7 +292,7 @@ folder. Never `init` or `sync` an empty new folder in its place: that makes a se
|
|
|
292
292
|
In a sandbox (Claude Cowork, Claude Code on the web) a `NETWORK` error, or `CONNECT tunnel failed,
|
|
293
293
|
response 403`, usually means the sandbox's network does not allow the platform. Tell the person that
|
|
294
294
|
their Claude settings must allow the platform's domain and its storage (`*.s3.<region>.amazonaws.com`)
|
|
295
|
-
under Settings → Capabilities, or that their
|
|
295
|
+
under Settings → Capabilities, or that the owner of their Claude organization must, on a Team or Enterprise plan.
|
|
296
296
|
Do not retry until they say it is done.
|
|
297
297
|
|
|
298
298
|
## 6. Interrupted earlier?
|
package/dist/publisher.cjs
CHANGED
|
@@ -24201,12 +24201,25 @@ Waiting (it expires in ${Math.round(expiresInSeconds / 60)} minutes)...
|
|
|
24201
24201
|
`
|
|
24202
24202
|
);
|
|
24203
24203
|
}
|
|
24204
|
+
function givenToken(ctx, isEndpointStated) {
|
|
24205
|
+
const explicit = str2(ctx.flags["token"]);
|
|
24206
|
+
const given = explicit ?? process.env["GIT_PUBLISHER_TOKEN"];
|
|
24207
|
+
if (given && !isEndpointStated) {
|
|
24208
|
+
throw new PublisherError(
|
|
24209
|
+
"LOCAL_STATE",
|
|
24210
|
+
`a token was given (${explicit ? "--token" : "GIT_PUBLISHER_TOKEN"}) but no endpoint was stated: login does not send a given token to the endpoint that the portal names; pass --endpoint <url> or --profile <name>, or set GIT_PUBLISHER_ENDPOINT`,
|
|
24211
|
+
{ details: { next: { action: "bind-endpoint", ask: null, command: null, profiles: [] } } }
|
|
24212
|
+
);
|
|
24213
|
+
}
|
|
24214
|
+
return given;
|
|
24215
|
+
}
|
|
24204
24216
|
async function login(ctx) {
|
|
24205
24217
|
if (ctx.flags["continue"] === true) {
|
|
24206
24218
|
return continueLogin(ctx);
|
|
24207
24219
|
}
|
|
24208
24220
|
const clock = stopwatch();
|
|
24209
24221
|
const target = resolveLoginEndpoint(ctx.input);
|
|
24222
|
+
const given = givenToken(ctx, "endpoint" in target);
|
|
24210
24223
|
const endpoint = "endpoint" in target ? target.endpoint : await discoverEndpoint(portalBase(process.env, str2(ctx.flags["portal"])));
|
|
24211
24224
|
if (!endpoint) {
|
|
24212
24225
|
throw new PublisherError("INVALID_REQUEST", "login requires --endpoint (or --profile naming a stored one)");
|
|
@@ -24214,7 +24227,6 @@ async function login(ctx) {
|
|
|
24214
24227
|
clock.lap("discovery");
|
|
24215
24228
|
const profile2 = str2(ctx.flags["profile"]);
|
|
24216
24229
|
const setDefault = ctx.flags["set-default"] === true;
|
|
24217
|
-
const given = str2(ctx.flags["token"]) ?? process.env["GIT_PUBLISHER_TOKEN"];
|
|
24218
24230
|
if (given) {
|
|
24219
24231
|
return finish(ctx, { endpoint, token: given, signIn: null, profile: profile2, setDefault }, clock);
|
|
24220
24232
|
}
|
|
@@ -25460,7 +25472,7 @@ Which endpoint a command uses, first hit wins:
|
|
|
25460
25472
|
With several profiles and no default, a command FAILS and lists them rather than guessing.
|
|
25461
25473
|
Tokens come from --token, GIT_PUBLISHER_TOKEN, or the credentials file. A token from --token or
|
|
25462
25474
|
GIT_PUBLISHER_TOKEN is used only with --endpoint, --profile, GIT_PUBLISHER_ENDPOINT or
|
|
25463
|
-
GIT_PUBLISHER_PROFILE, never with an endpoint the folder
|
|
25475
|
+
GIT_PUBLISHER_PROFILE, never with an endpoint the folder, a default profile or the portal supplied.
|
|
25464
25476
|
`;
|
|
25465
25477
|
|
|
25466
25478
|
// src/main.ts
|