@urateam/cli 0.1.1 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Jon Becker
6
+ Licensed Work: urateam
7
+ The Licensed Work is (c) 2026 Jon Becker.
8
+ Additional Use Grant: You may make use of the Licensed Work, provided that
9
+ you do not use the Licensed Work for a Managed Service.
10
+ A "Managed Service" is a commercial offering that allows
11
+ third parties to access the functionality of the Licensed
12
+ Work by performing an action directly or indirectly that
13
+ would otherwise violate the licensor's rights.
14
+ Change Date: 2030-04-11
15
+ Change License: Apache License, Version 2.0
16
+
17
+ For information about alternative licensing arrangements for the Licensed Work,
18
+ please contact licensing@urateam.dev.
19
+
20
+ Notice
21
+
22
+ Business Source License 1.1 (BUSL-1.1)
23
+ https://mariadb.com/bsl11/
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
package/dist/index.js CHANGED
@@ -1,4 +1,18 @@
1
1
  #!/usr/bin/env node
2
+ // Auto-load .env file from the current working directory before any command
3
+ // imports read process.env. Uses Node 22's built-in loadEnvFile (no deps).
4
+ // Silently skips if .env is absent (ENOENT). Warns on other errors
5
+ // (e.g., malformed content) so the user knows why their vars aren't loading.
6
+ // Existing env vars always win — loadEnvFile doesn't override them.
7
+ try {
8
+ process.loadEnvFile();
9
+ }
10
+ catch (err) {
11
+ const code = err?.code;
12
+ if (code !== "ENOENT") {
13
+ console.warn(`warning: failed to load .env from ${process.cwd()}: ${err instanceof Error ? err.message : String(err)}`);
14
+ }
15
+ }
2
16
  import { Command } from "commander";
3
17
  import { runCommand } from "./commands/run.js";
4
18
  import { devCommand } from "./commands/dev.js";
@@ -10,7 +24,7 @@ const program = new Command();
10
24
  program
11
25
  .name("ura")
12
26
  .description("urateam CLI")
13
- .version("0.1.0");
27
+ .version("0.1.4");
14
28
  program.addCommand(runCommand);
15
29
  program.addCommand(devCommand);
16
30
  program.addCommand(webhookCommand);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,KAAK,CAAC;KACX,WAAW,CAAC,aAAa,CAAC;KAC1B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC/B,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AACnC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAClC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AACjC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAEnC,OAAO,CAAC,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,4EAA4E;AAC5E,2EAA2E;AAC3E,mEAA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nC,OAAO,CAAC,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urateam/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,24 +15,24 @@
15
15
  "url": "https://github.com/JonB32/urateam.git",
16
16
  "directory": "packages/cli"
17
17
  },
18
- "scripts": {
19
- "build": "tsc",
20
- "test": "vitest run",
21
- "dev": "tsx src/index.ts"
22
- },
23
18
  "dependencies": {
24
19
  "@hono/node-server": "^1.14.0",
25
- "@urateam/core": "workspace:*",
26
- "@urateam/dashboard": "workspace:*",
27
20
  "@linear/sdk": "^29.0.0",
28
21
  "better-sqlite3": "^11.8.0",
29
22
  "commander": "^13.1.0",
30
- "postgres": "^3.4.0"
23
+ "postgres": "^3.4.0",
24
+ "@urateam/dashboard": "0.1.4",
25
+ "@urateam/core": "0.1.4"
31
26
  },
32
27
  "devDependencies": {
33
28
  "@types/better-sqlite3": "^7.6.0",
34
29
  "@types/node": "^22.0.0",
35
30
  "vitest": "^3.0.0",
36
31
  "typescript": "^5.7.0"
32
+ },
33
+ "scripts": {
34
+ "build": "tsc",
35
+ "test": "vitest run",
36
+ "dev": "tsx src/index.ts"
37
37
  }
38
- }
38
+ }