@usecontextlayer/cli 0.16.0 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 803 Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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 resourcesForConsumer, f as execa, i as joinSlate, l as secretNameSchema, n as saveLocalConnection, o as slateResourceConfigurationSchema, s as ownerSchema, t as prepareLocalResourceConfiguration, u as databaseQuerySchema } from "./resources-B-EYHG1j.mjs";
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.0";
4087
+ var version = "0.16.2";
4086
4088
  //#endregion
4087
4089
  //#region secrets.ts
4088
4090
  const secretOptionsSchema = ownerOptionsSchema.extend({ stdin: boolean().default(false) });