@grekt/cli 6.37.0 → 6.39.0
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/index.js +51 -20
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -5,42 +5,61 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
8
11
|
var __reExport = (target, mod, secondTarget) => {
|
|
9
|
-
|
|
12
|
+
var keys = __getOwnPropNames(mod);
|
|
13
|
+
for (let key of keys)
|
|
10
14
|
if (!__hasOwnProp.call(target, key) && key !== "default")
|
|
11
15
|
__defProp(target, key, {
|
|
12
|
-
get: (
|
|
16
|
+
get: __accessProp.bind(mod, key),
|
|
13
17
|
enumerable: true
|
|
14
18
|
});
|
|
15
19
|
if (secondTarget) {
|
|
16
|
-
for (let key of
|
|
20
|
+
for (let key of keys)
|
|
17
21
|
if (!__hasOwnProp.call(secondTarget, key) && key !== "default")
|
|
18
22
|
__defProp(secondTarget, key, {
|
|
19
|
-
get: (
|
|
23
|
+
get: __accessProp.bind(mod, key),
|
|
20
24
|
enumerable: true
|
|
21
25
|
});
|
|
22
26
|
return secondTarget;
|
|
23
27
|
}
|
|
24
28
|
};
|
|
29
|
+
var __toESMCache_node;
|
|
30
|
+
var __toESMCache_esm;
|
|
25
31
|
var __toESM = (mod, isNodeMode, target) => {
|
|
32
|
+
var canCache = mod != null && typeof mod === "object";
|
|
33
|
+
if (canCache) {
|
|
34
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
35
|
+
var cached = cache.get(mod);
|
|
36
|
+
if (cached)
|
|
37
|
+
return cached;
|
|
38
|
+
}
|
|
26
39
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
27
40
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
28
41
|
for (let key of __getOwnPropNames(mod))
|
|
29
42
|
if (!__hasOwnProp.call(to, key))
|
|
30
43
|
__defProp(to, key, {
|
|
31
|
-
get: (
|
|
44
|
+
get: __accessProp.bind(mod, key),
|
|
32
45
|
enumerable: true
|
|
33
46
|
});
|
|
47
|
+
if (canCache)
|
|
48
|
+
cache.set(mod, to);
|
|
34
49
|
return to;
|
|
35
50
|
};
|
|
36
51
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
52
|
+
var __returnValue = (v) => v;
|
|
53
|
+
function __exportSetter(name, newValue) {
|
|
54
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
55
|
+
}
|
|
37
56
|
var __export = (target, all) => {
|
|
38
57
|
for (var name in all)
|
|
39
58
|
__defProp(target, name, {
|
|
40
59
|
get: all[name],
|
|
41
60
|
enumerable: true,
|
|
42
61
|
configurable: true,
|
|
43
|
-
set: (
|
|
62
|
+
set: __exportSetter.bind(all, name)
|
|
44
63
|
});
|
|
45
64
|
};
|
|
46
65
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
@@ -16763,7 +16782,7 @@ var require_braces = __commonJS((exports2, module2) => {
|
|
|
16763
16782
|
module2.exports = braces;
|
|
16764
16783
|
});
|
|
16765
16784
|
|
|
16766
|
-
// node_modules/picomatch/lib/constants.js
|
|
16785
|
+
// node_modules/micromatch/node_modules/picomatch/lib/constants.js
|
|
16767
16786
|
var require_constants3 = __commonJS((exports2, module2) => {
|
|
16768
16787
|
var path8 = __require("path");
|
|
16769
16788
|
var WIN_SLASH = "\\\\/";
|
|
@@ -16903,7 +16922,7 @@ var require_constants3 = __commonJS((exports2, module2) => {
|
|
|
16903
16922
|
};
|
|
16904
16923
|
});
|
|
16905
16924
|
|
|
16906
|
-
// node_modules/picomatch/lib/utils.js
|
|
16925
|
+
// node_modules/micromatch/node_modules/picomatch/lib/utils.js
|
|
16907
16926
|
var require_utils4 = __commonJS((exports2) => {
|
|
16908
16927
|
var path8 = __require("path");
|
|
16909
16928
|
var win322 = process.platform === "win32";
|
|
@@ -16963,7 +16982,7 @@ var require_utils4 = __commonJS((exports2) => {
|
|
|
16963
16982
|
};
|
|
16964
16983
|
});
|
|
16965
16984
|
|
|
16966
|
-
// node_modules/picomatch/lib/scan.js
|
|
16985
|
+
// node_modules/micromatch/node_modules/picomatch/lib/scan.js
|
|
16967
16986
|
var require_scan = __commonJS((exports2, module2) => {
|
|
16968
16987
|
var utils = require_utils4();
|
|
16969
16988
|
var {
|
|
@@ -17278,7 +17297,7 @@ var require_scan = __commonJS((exports2, module2) => {
|
|
|
17278
17297
|
module2.exports = scan;
|
|
17279
17298
|
});
|
|
17280
17299
|
|
|
17281
|
-
// node_modules/picomatch/lib/parse.js
|
|
17300
|
+
// node_modules/micromatch/node_modules/picomatch/lib/parse.js
|
|
17282
17301
|
var require_parse6 = __commonJS((exports2, module2) => {
|
|
17283
17302
|
var constants2 = require_constants3();
|
|
17284
17303
|
var utils = require_utils4();
|
|
@@ -18056,7 +18075,7 @@ var require_parse6 = __commonJS((exports2, module2) => {
|
|
|
18056
18075
|
module2.exports = parse6;
|
|
18057
18076
|
});
|
|
18058
18077
|
|
|
18059
|
-
// node_modules/picomatch/lib/picomatch.js
|
|
18078
|
+
// node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
|
|
18060
18079
|
var require_picomatch = __commonJS((exports2, module2) => {
|
|
18061
18080
|
var path8 = __require("path");
|
|
18062
18081
|
var scan = require_scan();
|
|
@@ -103753,19 +103772,30 @@ var untrustCommand = new Command("untrust").description("Remove trusted status f
|
|
|
103753
103772
|
});
|
|
103754
103773
|
|
|
103755
103774
|
// src/auth/oauth/oauth.ts
|
|
103775
|
+
import { spawn } from "child_process";
|
|
103756
103776
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
103757
103777
|
var LOGIN_TIMEOUT_MS = 5 * 60 * 1000;
|
|
103758
103778
|
var POLL_INTERVAL_MS = 2000;
|
|
103759
103779
|
function openBrowser(url) {
|
|
103760
103780
|
const platform5 = process.platform;
|
|
103761
103781
|
try {
|
|
103782
|
+
let command;
|
|
103783
|
+
let args;
|
|
103762
103784
|
if (platform5 === "darwin") {
|
|
103763
|
-
|
|
103785
|
+
command = "open";
|
|
103786
|
+
args = [url];
|
|
103764
103787
|
} else if (platform5 === "win32") {
|
|
103765
|
-
|
|
103788
|
+
command = "rundll32";
|
|
103789
|
+
args = ["url.dll,FileProtocolHandler", url];
|
|
103766
103790
|
} else {
|
|
103767
|
-
|
|
103791
|
+
command = "xdg-open";
|
|
103792
|
+
args = [url];
|
|
103768
103793
|
}
|
|
103794
|
+
const child = spawn(command, args, {
|
|
103795
|
+
detached: true,
|
|
103796
|
+
stdio: "ignore"
|
|
103797
|
+
});
|
|
103798
|
+
child.unref();
|
|
103769
103799
|
return true;
|
|
103770
103800
|
} catch {
|
|
103771
103801
|
return false;
|
|
@@ -103966,7 +103996,7 @@ var whoamiCommand = new Command("whoami").description("Show current user").actio
|
|
|
103966
103996
|
// package.json
|
|
103967
103997
|
var package_default = {
|
|
103968
103998
|
name: "@grekt/cli",
|
|
103969
|
-
version: "6.
|
|
103999
|
+
version: "6.39.0",
|
|
103970
104000
|
description: "AI tools versioned, synced, and shared across tools and teams",
|
|
103971
104001
|
type: "module",
|
|
103972
104002
|
bin: {
|
|
@@ -103993,11 +104023,10 @@ var package_default = {
|
|
|
103993
104023
|
deploy: "bun run scripts/deploy.ts",
|
|
103994
104024
|
release: "bun run build:all && bun run deploy",
|
|
103995
104025
|
typecheck: "tsc --noEmit",
|
|
103996
|
-
test: "
|
|
103997
|
-
"test:watch": "
|
|
103998
|
-
"test:coverage": "
|
|
104026
|
+
test: "vitest run",
|
|
104027
|
+
"test:watch": "vitest watch",
|
|
104028
|
+
"test:coverage": "vitest run --coverage",
|
|
103999
104029
|
"test:e2e": "bun test spec/",
|
|
104000
|
-
"test:e2e:watch": "bun test spec/ --watch",
|
|
104001
104030
|
prepare: "husky"
|
|
104002
104031
|
},
|
|
104003
104032
|
dependencies: {
|
|
@@ -104023,7 +104052,9 @@ var package_default = {
|
|
|
104023
104052
|
"bun-types": "^1.3.6",
|
|
104024
104053
|
husky: "^9.1.7",
|
|
104025
104054
|
"semantic-release": "^25.0.2",
|
|
104026
|
-
typescript: "^5.7.2"
|
|
104055
|
+
typescript: "^5.7.2",
|
|
104056
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
104057
|
+
vitest: "^4.0.18"
|
|
104027
104058
|
},
|
|
104028
104059
|
engines: {
|
|
104029
104060
|
node: ">=18.0.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grekt/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.39.0",
|
|
4
4
|
"description": "AI tools versioned, synced, and shared across tools and teams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,11 +27,10 @@
|
|
|
27
27
|
"deploy": "bun run scripts/deploy.ts",
|
|
28
28
|
"release": "bun run build:all && bun run deploy",
|
|
29
29
|
"typecheck": "tsc --noEmit",
|
|
30
|
-
"test": "
|
|
31
|
-
"test:watch": "
|
|
32
|
-
"test:coverage": "
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest watch",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
33
33
|
"test:e2e": "bun test spec/",
|
|
34
|
-
"test:e2e:watch": "bun test spec/ --watch",
|
|
35
34
|
"prepare": "husky"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
@@ -57,7 +56,9 @@
|
|
|
57
56
|
"bun-types": "^1.3.6",
|
|
58
57
|
"husky": "^9.1.7",
|
|
59
58
|
"semantic-release": "^25.0.2",
|
|
60
|
-
"typescript": "^5.7.2"
|
|
59
|
+
"typescript": "^5.7.2",
|
|
60
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
61
|
+
"vitest": "^4.0.18"
|
|
61
62
|
},
|
|
62
63
|
"engines": {
|
|
63
64
|
"node": ">=18.0.0"
|