@commandgarden/cli 2.14.0 → 2.14.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/main.js +248 -278
- package/node_modules/@commandgarden/app/dist/client/assets/{Slides-DWQmJfkp.js → Slides-DMIm_HgI.js} +5 -5
- package/node_modules/@commandgarden/app/dist/client/assets/{index-C8yqRQk-.js → index-CupEN1w-.js} +53 -53
- package/node_modules/@commandgarden/app/dist/client/index.html +18 -18
- package/node_modules/@commandgarden/app/dist/server/daemon-client.test.js +47 -0
- package/node_modules/@commandgarden/app/dist/server/main.js +1 -1
- package/node_modules/@commandgarden/app/dist/server/routes/audit.js +16 -27
- package/node_modules/@commandgarden/app/dist/server/routes/config.js +2 -8
- package/node_modules/@commandgarden/app/dist/server/routes/connectors.js +26 -37
- package/node_modules/@commandgarden/app/dist/server/routes/routes.test.js +137 -0
- package/node_modules/@commandgarden/app/dist/server/routes/run.js +4 -3
- package/node_modules/@commandgarden/app/dist/server/routes/skills.js +2 -2
- package/node_modules/@commandgarden/app/dist/server/routes/status.js +1 -2
- package/node_modules/@commandgarden/app/dist/server/store.js +53 -53
- package/node_modules/@commandgarden/app/dist/server/store.test.js +59 -0
- package/node_modules/@commandgarden/app/package.json +42 -42
- package/node_modules/@commandgarden/chrome/dist/content-script.js.map +1 -1
- package/node_modules/@commandgarden/chrome/dist/fetch-interceptor.js +44 -0
- package/node_modules/@commandgarden/chrome/dist/manifest.json +26 -26
- package/node_modules/@commandgarden/chrome/dist/popup.html +218 -218
- package/node_modules/@commandgarden/chrome/dist/popup.js.map +1 -1
- package/node_modules/@commandgarden/chrome/dist/service-worker.js +40 -40
- package/node_modules/@commandgarden/chrome/dist/service-worker.js.map +2 -2
- package/node_modules/@commandgarden/chrome/package.json +26 -26
- package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.eval.js +100 -100
- package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.yaml +71 -71
- package/node_modules/@commandgarden/daemon/connectors/gcs-kb-content.yaml +61 -61
- package/node_modules/@commandgarden/daemon/connectors/gcs-kb-pages.yaml +54 -54
- package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.eval.js +115 -115
- package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.yaml +54 -54
- package/node_modules/@commandgarden/daemon/connectors/lib/msal-token.js +20 -20
- package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.eval.js +204 -204
- package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.yaml +42 -42
- package/node_modules/@commandgarden/daemon/connectors/saba-pending-training.eval.js +94 -94
- package/node_modules/@commandgarden/daemon/connectors/saba-pending-training.yaml +34 -34
- package/node_modules/@commandgarden/daemon/connectors/socket-security-news.yaml +63 -63
- package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.eval.js +437 -437
- package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.yaml +53 -53
- package/node_modules/@commandgarden/daemon/connectors/teams-rooms-availability.eval.js +547 -547
- package/node_modules/@commandgarden/daemon/connectors/teams-rooms-availability.yaml +48 -48
- package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.eval.js +52 -52
- package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.yaml +42 -42
- package/node_modules/@commandgarden/daemon/connectors/timetracking-report.eval.js +81 -81
- package/node_modules/@commandgarden/daemon/connectors/timetracking-report.yaml +52 -52
- package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.eval.js +27 -27
- package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.yaml +38 -38
- package/node_modules/@commandgarden/daemon/connectors/tokenmaster-clients-list.yaml +55 -55
- package/node_modules/@commandgarden/daemon/dist/audit-store.js +8 -8
- package/node_modules/@commandgarden/daemon/dist/auth.d.ts +0 -1
- package/node_modules/@commandgarden/daemon/dist/auth.d.ts.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/auth.js +0 -10
- package/node_modules/@commandgarden/daemon/dist/auth.js.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/cdp-client.d.ts +24 -0
- package/node_modules/@commandgarden/daemon/dist/cdp-client.d.ts.map +1 -0
- package/node_modules/@commandgarden/daemon/dist/cdp-client.js +150 -0
- package/node_modules/@commandgarden/daemon/dist/cdp-client.js.map +1 -0
- package/node_modules/@commandgarden/daemon/dist/main.js +5 -12
- package/node_modules/@commandgarden/daemon/dist/main.js.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/server.d.ts.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/server.js +0 -10
- package/node_modules/@commandgarden/daemon/dist/server.js.map +1 -1
- package/node_modules/@commandgarden/daemon/package.json +32 -32
- package/node_modules/@commandgarden/shared/dist/daemon-client.d.ts +1 -5
- package/node_modules/@commandgarden/shared/dist/daemon-client.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/daemon-client.js +14 -32
- package/node_modules/@commandgarden/shared/dist/daemon-client.js.map +1 -1
- package/node_modules/@commandgarden/shared/package.json +32 -32
- package/package.json +58 -58
- package/node_modules/@commandgarden/app/dist/server/routes/utils.d.ts +0 -2
- package/node_modules/@commandgarden/app/dist/server/routes/utils.js +0 -4
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@commandgarden/daemon",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/main.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"connectors"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc && node scripts/copy-connectors.mjs",
|
|
13
|
-
"start": "node dist/main.js",
|
|
14
|
-
"test": "vitest run",
|
|
15
|
-
"test:watch": "vitest"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@commandgarden/shared": "*",
|
|
19
|
-
"@fastify/websocket": "^11.0.0",
|
|
20
|
-
"fastify": "^5.0.0",
|
|
21
|
-
"sql.js": "^1.11.0",
|
|
22
|
-
"turndown": "^7.2.4",
|
|
23
|
-
"yaml": "^2.4.0"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@types/node": "^22.0.0",
|
|
27
|
-
"@types/turndown": "^5.0.6",
|
|
28
|
-
"@types/ws": "^8.5.0",
|
|
29
|
-
"typescript": "^5.4.0",
|
|
30
|
-
"vitest": "^2.0.0"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@commandgarden/daemon",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/main.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"connectors"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc && node scripts/copy-connectors.mjs",
|
|
13
|
+
"start": "node dist/main.js",
|
|
14
|
+
"test": "vitest run",
|
|
15
|
+
"test:watch": "vitest"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@commandgarden/shared": "*",
|
|
19
|
+
"@fastify/websocket": "^11.0.0",
|
|
20
|
+
"fastify": "^5.0.0",
|
|
21
|
+
"sql.js": "^1.11.0",
|
|
22
|
+
"turndown": "^7.2.4",
|
|
23
|
+
"yaml": "^2.4.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^22.0.0",
|
|
27
|
+
"@types/turndown": "^5.0.6",
|
|
28
|
+
"@types/ws": "^8.5.0",
|
|
29
|
+
"typescript": "^5.4.0",
|
|
30
|
+
"vitest": "^2.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -2,9 +2,7 @@ export declare function readToken(tokenPath: string): string | null;
|
|
|
2
2
|
export declare class DaemonClient {
|
|
3
3
|
private baseUrl;
|
|
4
4
|
private token;
|
|
5
|
-
|
|
6
|
-
constructor(baseUrl: string, token: string, tokenPath?: string | undefined);
|
|
7
|
-
private tryRefreshToken;
|
|
5
|
+
constructor(baseUrl: string, token: string);
|
|
8
6
|
get<T = Record<string, unknown>>(path: string): Promise<T>;
|
|
9
7
|
post<T = Record<string, unknown>>(path: string, body: unknown): Promise<T>;
|
|
10
8
|
status(): Promise<{
|
|
@@ -15,9 +13,7 @@ export declare class DaemonClient {
|
|
|
15
13
|
pipeRaw(path: string): Promise<Response>;
|
|
16
14
|
connectSSE(path: string, onEvent: (event: string, data: unknown) => void, signal?: AbortSignal): Promise<void>;
|
|
17
15
|
private sseHeaders;
|
|
18
|
-
private authHeaders;
|
|
19
16
|
private request;
|
|
20
|
-
private fetchWithRetry;
|
|
21
17
|
private rawFetch;
|
|
22
18
|
}
|
|
23
19
|
//# sourceMappingURL=daemon-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-client.d.ts","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAM1D;AAED,qBAAa,YAAY;IAErB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"daemon-client.d.ts","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAM1D;AAED,qBAAa,YAAY;IAErB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,KAAK;gBADL,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM;IAGjB,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1D,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1E,MAAM,IAAI,OAAO,CAAC;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,kBAAkB,EAAE,OAAO,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;IAcvF,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IASxC,UAAU,CACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,EAC/C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC;IAkDhB,OAAO,CAAC,UAAU;YAQJ,OAAO;IAuBrB,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -10,20 +10,9 @@ export function readToken(tokenPath) {
|
|
|
10
10
|
export class DaemonClient {
|
|
11
11
|
baseUrl;
|
|
12
12
|
token;
|
|
13
|
-
|
|
14
|
-
constructor(baseUrl, token, tokenPath) {
|
|
13
|
+
constructor(baseUrl, token) {
|
|
15
14
|
this.baseUrl = baseUrl;
|
|
16
15
|
this.token = token;
|
|
17
|
-
this.tokenPath = tokenPath;
|
|
18
|
-
}
|
|
19
|
-
tryRefreshToken() {
|
|
20
|
-
if (!this.tokenPath)
|
|
21
|
-
return false;
|
|
22
|
-
const fresh = readToken(this.tokenPath);
|
|
23
|
-
if (!fresh || fresh === this.token)
|
|
24
|
-
return false;
|
|
25
|
-
this.token = fresh;
|
|
26
|
-
return true;
|
|
27
16
|
}
|
|
28
17
|
async get(path) {
|
|
29
18
|
return this.request('GET', path);
|
|
@@ -46,20 +35,20 @@ export class DaemonClient {
|
|
|
46
35
|
return data;
|
|
47
36
|
}
|
|
48
37
|
async pipeRaw(path) {
|
|
49
|
-
const resp = await this.
|
|
38
|
+
const resp = await this.rawFetch(path, {
|
|
50
39
|
method: 'GET',
|
|
51
40
|
headers: this.sseHeaders(),
|
|
52
|
-
})
|
|
41
|
+
});
|
|
53
42
|
if (!resp.ok)
|
|
54
43
|
throw new Error(`SSE connection failed: HTTP ${resp.status}`);
|
|
55
44
|
return resp;
|
|
56
45
|
}
|
|
57
46
|
async connectSSE(path, onEvent, signal) {
|
|
58
|
-
const resp = await this.
|
|
47
|
+
const resp = await this.rawFetch(path, {
|
|
59
48
|
method: 'GET',
|
|
60
49
|
headers: this.sseHeaders(),
|
|
61
50
|
signal,
|
|
62
|
-
})
|
|
51
|
+
});
|
|
63
52
|
if (!resp.ok || !resp.body) {
|
|
64
53
|
throw new Error(`SSE connection failed: HTTP ${resp.status}`);
|
|
65
54
|
}
|
|
@@ -111,18 +100,18 @@ export class DaemonClient {
|
|
|
111
100
|
'Accept': 'text/event-stream',
|
|
112
101
|
};
|
|
113
102
|
}
|
|
114
|
-
authHeaders() {
|
|
115
|
-
return {
|
|
116
|
-
'Authorization': `Bearer ${this.token}`,
|
|
117
|
-
'X-CommandGarden': '1',
|
|
118
|
-
'Content-Type': 'application/json',
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
103
|
async request(method, path, body) {
|
|
122
|
-
const jsonBody = body ? JSON.stringify(body) : undefined;
|
|
123
104
|
let resp;
|
|
124
105
|
try {
|
|
125
|
-
resp = await this.
|
|
106
|
+
resp = await this.rawFetch(path, {
|
|
107
|
+
method,
|
|
108
|
+
headers: {
|
|
109
|
+
'Authorization': `Bearer ${this.token}`,
|
|
110
|
+
'X-CommandGarden': '1',
|
|
111
|
+
'Content-Type': 'application/json',
|
|
112
|
+
},
|
|
113
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
114
|
+
});
|
|
126
115
|
}
|
|
127
116
|
catch {
|
|
128
117
|
throw new Error('Cannot connect to daemon. Is it running? Try: cg daemon start');
|
|
@@ -133,13 +122,6 @@ export class DaemonClient {
|
|
|
133
122
|
}
|
|
134
123
|
return data;
|
|
135
124
|
}
|
|
136
|
-
async fetchWithRetry(path, initFn) {
|
|
137
|
-
let resp = await this.rawFetch(path, initFn());
|
|
138
|
-
if (resp.status === 401 && this.tryRefreshToken()) {
|
|
139
|
-
resp = await this.rawFetch(path, initFn());
|
|
140
|
-
}
|
|
141
|
-
return resp;
|
|
142
|
-
}
|
|
143
125
|
rawFetch(path, init) {
|
|
144
126
|
return fetch(`${this.baseUrl}${path}`, init);
|
|
145
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-client.js","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,UAAU,SAAS,CAAC,SAAiB;IACzC,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,OAAO,YAAY;IAEb;IACA;
|
|
1
|
+
{"version":3,"file":"daemon-client.js","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,UAAU,SAAS,CAAC,SAAiB;IACzC,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,OAAO,YAAY;IAEb;IACA;IAFV,YACU,OAAe,EACf,KAAa;QADb,YAAO,GAAP,OAAO,CAAQ;QACf,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IAEJ,KAAK,CAAC,GAAG,CAA8B,IAAY;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,IAAI,C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ACnF,CAAC;QACD,OAAO,IAAS,CAAC;IACnB,CAAC;IAEO,QAAQ,CAAC,IAAY,EAAE,IAAiB;QAC9C,OAAO,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@commandgarden/shared",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "Shared types and utilities for CommandGarden",
|
|
5
|
-
"private": true,
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "./dist/index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
|
-
"import": "./dist/index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsc",
|
|
20
|
-
"test": "vitest run",
|
|
21
|
-
"test:watch": "vitest"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"yaml": "^2.4.0",
|
|
25
|
-
"zod": "^3.23.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/node": "^26.0.0",
|
|
29
|
-
"typescript": "^5.4.0",
|
|
30
|
-
"vitest": "^2.0.0"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@commandgarden/shared",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared types and utilities for CommandGarden",
|
|
5
|
+
"private": true,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"test": "vitest run",
|
|
21
|
+
"test:watch": "vitest"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"yaml": "^2.4.0",
|
|
25
|
+
"zod": "^3.23.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^26.0.0",
|
|
29
|
+
"typescript": "^5.4.0",
|
|
30
|
+
"vitest": "^2.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@commandgarden/cli",
|
|
3
|
-
"version": "2.14.
|
|
4
|
-
"description": "Enterprise browser automation CLI",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "./dist/main.js",
|
|
8
|
-
"bin": {
|
|
9
|
-
"commandgarden": "dist/main.js",
|
|
10
|
-
"cg": "dist/main.js"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"browser-automation",
|
|
20
|
-
"cli",
|
|
21
|
-
"enterprise",
|
|
22
|
-
"commandgarden"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "tsup",
|
|
26
|
-
"prepack": "node scripts/prepare-bundle.mjs",
|
|
27
|
-
"start": "node dist/main.js",
|
|
28
|
-
"test": "vitest run",
|
|
29
|
-
"test:watch": "vitest"
|
|
30
|
-
},
|
|
31
|
-
"bundleDependencies": [
|
|
32
|
-
"@commandgarden/chrome",
|
|
33
|
-
"@commandgarden/daemon",
|
|
34
|
-
"@commandgarden/app",
|
|
35
|
-
"@commandgarden/shared"
|
|
36
|
-
],
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@commandgarden/app": "*",
|
|
39
|
-
"@commandgarden/chrome": "*",
|
|
40
|
-
"@commandgarden/daemon": "*",
|
|
41
|
-
"@commandgarden/shared": "*",
|
|
42
|
-
"@fastify/static": "^8.0.0",
|
|
43
|
-
"@fastify/websocket": "^11.0.0",
|
|
44
|
-
"sql.js": "^1.11.0",
|
|
45
|
-
"turndown": "^7.2.4",
|
|
46
|
-
"cli-table3": "^0.6.0",
|
|
47
|
-
"commander": "^12.0.0",
|
|
48
|
-
"fastify": "^5.0.0",
|
|
49
|
-
"yaml": "^2.4.0",
|
|
50
|
-
"zod": "^3.23.0"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/node": "^22.0.0",
|
|
54
|
-
"tsup": "^8.5.1",
|
|
55
|
-
"typescript": "^5.4.0",
|
|
56
|
-
"vitest": "^2.0.0"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@commandgarden/cli",
|
|
3
|
+
"version": "2.14.2",
|
|
4
|
+
"description": "Enterprise browser automation CLI",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./dist/main.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"commandgarden": "dist/main.js",
|
|
10
|
+
"cg": "dist/main.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"browser-automation",
|
|
20
|
+
"cli",
|
|
21
|
+
"enterprise",
|
|
22
|
+
"commandgarden"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup",
|
|
26
|
+
"prepack": "node scripts/prepare-bundle.mjs",
|
|
27
|
+
"start": "node dist/main.js",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest"
|
|
30
|
+
},
|
|
31
|
+
"bundleDependencies": [
|
|
32
|
+
"@commandgarden/chrome",
|
|
33
|
+
"@commandgarden/daemon",
|
|
34
|
+
"@commandgarden/app",
|
|
35
|
+
"@commandgarden/shared"
|
|
36
|
+
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@commandgarden/app": "*",
|
|
39
|
+
"@commandgarden/chrome": "*",
|
|
40
|
+
"@commandgarden/daemon": "*",
|
|
41
|
+
"@commandgarden/shared": "*",
|
|
42
|
+
"@fastify/static": "^8.0.0",
|
|
43
|
+
"@fastify/websocket": "^11.0.0",
|
|
44
|
+
"sql.js": "^1.11.0",
|
|
45
|
+
"turndown": "^7.2.4",
|
|
46
|
+
"cli-table3": "^0.6.0",
|
|
47
|
+
"commander": "^12.0.0",
|
|
48
|
+
"fastify": "^5.0.0",
|
|
49
|
+
"yaml": "^2.4.0",
|
|
50
|
+
"zod": "^3.23.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^22.0.0",
|
|
54
|
+
"tsup": "^8.5.1",
|
|
55
|
+
"typescript": "^5.4.0",
|
|
56
|
+
"vitest": "^2.0.0"
|
|
57
|
+
}
|
|
58
|
+
}
|