@usecontextlayer/cli 0.16.1 → 0.16.2
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.mjs +4 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/{resources-B-EYHG1j.mjs → resources--XCCMeP6.mjs} +3 -2
- package/dist/resources--XCCMeP6.mjs.map +1 -0
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.mts.map +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +2 -2
- package/dist/resources-B-EYHG1j.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as __commonJSMin } from "./rolldown-runtime-EAsCxrDo.mjs";
|
|
3
3
|
import { S as uuid, a as login, b as unknown, c as array, d as hostname, f as literal, g as record, h as object, i as listOrganizations, l as boolean, n as getAccessToken, p as looseObject, r as getCurrentUser, t as LoginRequiredError, v as string, x as url, y as union } from "./auth-DOsE8GwJ.mjs";
|
|
4
|
-
import { a as env, c as
|
|
4
|
+
import { a as env, c as ownerSchema, d as databaseQuerySchema, i as joinSlate, l as resourcesForConsumer, n as saveLocalConnection, o as noCommitSchema, p as execa, s as slateResourceConfigurationSchema, t as prepareLocalResourceConfiguration, u as secretNameSchema } from "./resources--XCCMeP6.mjs";
|
|
5
5
|
import { cp, readFile, writeFile } from "node:fs/promises";
|
|
6
6
|
import path, { join } from "node:path";
|
|
7
7
|
import { EventEmitter } from "node:events";
|
|
@@ -3968,6 +3968,7 @@ async function assignSlateConnection(target, slug, connectionId) {
|
|
|
3968
3968
|
},
|
|
3969
3969
|
method: "POST"
|
|
3970
3970
|
});
|
|
3971
|
+
if (response.status === 409 && noCommitSchema.safeParse(await response.json()).success) throw new Error("Nothing has been pushed to this slate yet. Push to main before configuring hosted resources.");
|
|
3971
3972
|
if (!response.ok) throw new Error(`Connection assignment failed: HTTP ${response.status}`);
|
|
3972
3973
|
const assignment = object({
|
|
3973
3974
|
connection_id: string(),
|
|
@@ -3999,6 +4000,7 @@ async function listSlateConnections(target) {
|
|
|
3999
4000
|
},
|
|
4000
4001
|
method: "POST"
|
|
4001
4002
|
});
|
|
4003
|
+
if (response.status === 409 && noCommitSchema.safeParse(await response.json()).success) throw new Error("Nothing has been pushed to this slate yet. Push to main before configuring hosted resources.");
|
|
4002
4004
|
if (!response.ok) throw new Error(`Slate connections request failed: HTTP ${response.status}`);
|
|
4003
4005
|
const { connections } = slateConnectionsSchema.parse(await response.json());
|
|
4004
4006
|
if (!connections.length) {
|
|
@@ -4082,7 +4084,7 @@ async function gitCredential(operation) {
|
|
|
4082
4084
|
}
|
|
4083
4085
|
//#endregion
|
|
4084
4086
|
//#region package.json
|
|
4085
|
-
var version = "0.16.
|
|
4087
|
+
var version = "0.16.2";
|
|
4086
4088
|
//#endregion
|
|
4087
4089
|
//#region secrets.ts
|
|
4088
4090
|
const secretOptionsSchema = ownerOptionsSchema.extend({ stdin: boolean().default(false) });
|