@commandgarden/cli 2.5.1 → 2.7.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.
Files changed (56) hide show
  1. package/dist/main.js +0 -0
  2. package/node_modules/@commandgarden/app/dist/client/assets/Slides-0sL-MDMf.js +31 -0
  3. package/node_modules/@commandgarden/app/dist/client/assets/index-Bzw5cF_s.js +461 -0
  4. package/node_modules/@commandgarden/app/dist/client/assets/index-DrFywqdr.css +1 -0
  5. package/node_modules/@commandgarden/app/dist/client/index.html +19 -19
  6. package/node_modules/@commandgarden/app/dist/server/journal/sources/git.source.d.ts +1 -1
  7. package/node_modules/@commandgarden/app/dist/server/journal/sources/git.source.js +2 -2
  8. package/node_modules/@commandgarden/app/dist/server/journal/sources/meetings.source.d.ts +12 -13
  9. package/node_modules/@commandgarden/app/dist/server/journal/sources/meetings.source.js +70 -17
  10. package/node_modules/@commandgarden/app/dist/server/store.js +35 -35
  11. package/node_modules/@commandgarden/app/package.json +42 -42
  12. package/node_modules/@commandgarden/chrome/dist/content-script.js.map +1 -1
  13. package/node_modules/@commandgarden/chrome/dist/manifest.json +16 -16
  14. package/node_modules/@commandgarden/chrome/dist/popup.html +218 -218
  15. package/node_modules/@commandgarden/chrome/dist/popup.js.map +1 -1
  16. package/node_modules/@commandgarden/chrome/dist/service-worker.js +68 -13
  17. package/node_modules/@commandgarden/chrome/dist/service-worker.js.map +2 -2
  18. package/node_modules/@commandgarden/chrome/package.json +25 -25
  19. package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.eval.js +100 -143
  20. package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.yaml +70 -70
  21. package/node_modules/@commandgarden/daemon/connectors/gcs-kb-content.yaml +58 -58
  22. package/node_modules/@commandgarden/daemon/connectors/gcs-kb-pages.yaml +47 -47
  23. package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.eval.js +115 -115
  24. package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.yaml +54 -54
  25. package/node_modules/@commandgarden/daemon/connectors/lib/msal-token.js +20 -20
  26. package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.eval.js +198 -186
  27. package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.yaml +42 -41
  28. package/node_modules/@commandgarden/daemon/connectors/saba-pending-training.eval.js +94 -94
  29. package/node_modules/@commandgarden/daemon/connectors/saba-pending-training.yaml +34 -34
  30. package/node_modules/@commandgarden/daemon/connectors/socket-security-news.yaml +63 -63
  31. package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.eval.js +437 -343
  32. package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.yaml +53 -47
  33. package/node_modules/@commandgarden/daemon/connectors/teams-rooms-availability.eval.js +547 -547
  34. package/node_modules/@commandgarden/daemon/connectors/teams-rooms-availability.yaml +48 -48
  35. package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.eval.js +52 -52
  36. package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.yaml +42 -42
  37. package/node_modules/@commandgarden/daemon/connectors/timetracking-report.eval.js +81 -81
  38. package/node_modules/@commandgarden/daemon/connectors/timetracking-report.yaml +52 -52
  39. package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.eval.js +27 -27
  40. package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.yaml +38 -38
  41. package/node_modules/@commandgarden/daemon/connectors/tokenmaster-clients-list.yaml +55 -55
  42. package/node_modules/@commandgarden/daemon/dist/audit-store.js +8 -8
  43. package/node_modules/@commandgarden/daemon/dist/ws-relay.js +1 -1
  44. package/node_modules/@commandgarden/daemon/package.json +32 -32
  45. package/node_modules/@commandgarden/shared/package.json +32 -32
  46. package/package.json +58 -58
  47. package/node_modules/@commandgarden/app/dist/client/assets/index-DCptfmmK.js +0 -397
  48. package/node_modules/@commandgarden/app/dist/client/assets/index-qunCIeG9.css +0 -1
  49. package/node_modules/@commandgarden/app/dist/server/daemon-client.test.js +0 -47
  50. package/node_modules/@commandgarden/app/dist/server/routes/routes.test.js +0 -137
  51. package/node_modules/@commandgarden/app/dist/server/store.test.js +0 -59
  52. package/node_modules/@commandgarden/chrome/dist/fetch-interceptor.js +0 -44
  53. package/node_modules/@commandgarden/daemon/dist/cdp-client.d.ts +0 -24
  54. package/node_modules/@commandgarden/daemon/dist/cdp-client.d.ts.map +0 -1
  55. package/node_modules/@commandgarden/daemon/dist/cdp-client.js +0 -150
  56. package/node_modules/@commandgarden/daemon/dist/cdp-client.js.map +0 -1
@@ -1,38 +1,38 @@
1
- site: tldrsec
2
- name: newsletter
3
- version: "1.0"
4
- description: "Latest newsletter issues from tl;dr sec — titles, summaries, authors, tags, and publish dates"
5
- access: read
6
-
7
- domains:
8
- - "tldrsec.com"
9
- capabilities:
10
- - navigate
11
- - js_evaluate
12
-
13
- args: []
14
-
15
- columns:
16
- - name: title
17
- type: string
18
- - name: slug
19
- type: string
20
- - name: url
21
- type: string
22
- - name: publishedAt
23
- type: string
24
- - name: excerpt
25
- type: string
26
- - name: authors
27
- type: string
28
- - name: tags
29
- type: string
30
-
31
- pipeline:
32
- - step: navigate
33
- url: "https://tldrsec.com/t/Newsletter"
34
- - step: wait
35
- selector: "body"
36
- timeout: 15000
37
- - step: js_evaluate
38
- file: tldrsec-newsletter.eval.js
1
+ site: tldrsec
2
+ name: newsletter
3
+ version: "1.0"
4
+ description: "Latest newsletter issues from tl;dr sec — titles, summaries, authors, tags, and publish dates"
5
+ access: read
6
+
7
+ domains:
8
+ - "tldrsec.com"
9
+ capabilities:
10
+ - navigate
11
+ - js_evaluate
12
+
13
+ args: []
14
+
15
+ columns:
16
+ - name: title
17
+ type: string
18
+ - name: slug
19
+ type: string
20
+ - name: url
21
+ type: string
22
+ - name: publishedAt
23
+ type: string
24
+ - name: excerpt
25
+ type: string
26
+ - name: authors
27
+ type: string
28
+ - name: tags
29
+ type: string
30
+
31
+ pipeline:
32
+ - step: navigate
33
+ url: "https://tldrsec.com/t/Newsletter"
34
+ - step: wait
35
+ selector: "body"
36
+ timeout: 15000
37
+ - step: js_evaluate
38
+ file: tldrsec-newsletter.eval.js
@@ -1,55 +1,55 @@
1
- site: tokenmaster
2
- name: clients-list
3
- version: "2.0"
4
- description: "List the clients managed by the current user in TokenMaster"
5
- access: read
6
-
7
- vars:
8
- domains:
9
- emea: tma.query.api.dvb.corpinter.net
10
- amap: tma.query.api.am.dvb.corpinter.net
11
- cn: tma.query.api.dvb.corpinter.net.cn
12
-
13
- args:
14
- - name: region
15
- type: string
16
- required: false
17
- default: "all"
18
- enum: [emea, amap, cn]
19
- help: "Region to query (emea, amap, cn, or 'all' for fan-out). Default: all"
20
-
21
- domains:
22
- - "tma.query.api.dvb.corpinter.net"
23
- - "tma.query.api.am.dvb.corpinter.net"
24
- - "tma.query.api.dvb.corpinter.net.cn"
25
- capabilities:
26
- - navigate
27
- - cookie_read
28
-
29
- columns:
30
- - name: id
31
- type: string
32
- - name: name
33
- type: string
34
- - name: status
35
- type: string
36
- - name: admins
37
- type: string
38
-
39
- pipeline:
40
- - step: navigate
41
- url: "https://${{ args.region | lookup(vars.domains) }}/v1/clients"
42
- - step: wait
43
- selector: "body"
44
- timeout: 30000
45
- - step: fetch
46
- url: "https://${{ args.region | lookup(vars.domains) }}/v1/clients"
47
- method: "GET"
48
- headers:
49
- Accept: "application/json"
50
- - step: map
51
- fields:
52
- id: "${{ row.id }}"
53
- name: "${{ row.name }}"
54
- status: "${{ row.status }}"
55
- admins: "${{ row.admins }}"
1
+ site: tokenmaster
2
+ name: clients-list
3
+ version: "2.0"
4
+ description: "List the clients managed by the current user in TokenMaster"
5
+ access: read
6
+
7
+ vars:
8
+ domains:
9
+ emea: tma.query.api.dvb.corpinter.net
10
+ amap: tma.query.api.am.dvb.corpinter.net
11
+ cn: tma.query.api.dvb.corpinter.net.cn
12
+
13
+ args:
14
+ - name: region
15
+ type: string
16
+ required: false
17
+ default: "all"
18
+ enum: [emea, amap, cn]
19
+ help: "Region to query (emea, amap, cn, or 'all' for fan-out). Default: all"
20
+
21
+ domains:
22
+ - "tma.query.api.dvb.corpinter.net"
23
+ - "tma.query.api.am.dvb.corpinter.net"
24
+ - "tma.query.api.dvb.corpinter.net.cn"
25
+ capabilities:
26
+ - navigate
27
+ - cookie_read
28
+
29
+ columns:
30
+ - name: id
31
+ type: string
32
+ - name: name
33
+ type: string
34
+ - name: status
35
+ type: string
36
+ - name: admins
37
+ type: string
38
+
39
+ pipeline:
40
+ - step: navigate
41
+ url: "https://${{ args.region | lookup(vars.domains) }}/v1/clients"
42
+ - step: wait
43
+ selector: "body"
44
+ timeout: 30000
45
+ - step: fetch
46
+ url: "https://${{ args.region | lookup(vars.domains) }}/v1/clients"
47
+ method: "GET"
48
+ headers:
49
+ Accept: "application/json"
50
+ - step: map
51
+ fields:
52
+ id: "${{ row.id }}"
53
+ name: "${{ row.name }}"
54
+ status: "${{ row.status }}"
55
+ admins: "${{ row.admins }}"
@@ -19,11 +19,11 @@ export class AuditStore {
19
19
  else {
20
20
  db = new SQL.Database();
21
21
  }
22
- db.run(`CREATE TABLE IF NOT EXISTS audit_events (
23
- id TEXT PRIMARY KEY, timestamp TEXT NOT NULL, type TEXT NOT NULL,
24
- user TEXT NOT NULL, connector TEXT NOT NULL, args TEXT NOT NULL,
25
- domains TEXT NOT NULL, capabilities TEXT NOT NULL, row_count INTEGER,
26
- columns TEXT, duration_ms INTEGER NOT NULL, error TEXT, denial_reason TEXT
22
+ db.run(`CREATE TABLE IF NOT EXISTS audit_events (
23
+ id TEXT PRIMARY KEY, timestamp TEXT NOT NULL, type TEXT NOT NULL,
24
+ user TEXT NOT NULL, connector TEXT NOT NULL, args TEXT NOT NULL,
25
+ domains TEXT NOT NULL, capabilities TEXT NOT NULL, row_count INTEGER,
26
+ columns TEXT, duration_ms INTEGER NOT NULL, error TEXT, denial_reason TEXT
27
27
  )`);
28
28
  const store = new AuditStore(db, dbPath);
29
29
  store.migrate();
@@ -77,9 +77,9 @@ export class AuditStore {
77
77
  }
78
78
  }
79
79
  insert(event) {
80
- this.db.run(`INSERT INTO audit_events (id, timestamp, type, user, connector, args, domains,
81
- capabilities, row_count, columns, duration_ms, error, denial_reason,
82
- correlation_id, connector_hash, steps, source, previous_value, new_value)
80
+ this.db.run(`INSERT INTO audit_events (id, timestamp, type, user, connector, args, domains,
81
+ capabilities, row_count, columns, duration_ms, error, denial_reason,
82
+ correlation_id, connector_hash, steps, source, previous_value, new_value)
83
83
  VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)`, [
84
84
  event.id, event.timestamp, event.type, event.user, event.connector,
85
85
  JSON.stringify(event.args), JSON.stringify(event.domains),
@@ -63,7 +63,7 @@ export class WsRelay {
63
63
  this.pendingApprovals.clear();
64
64
  });
65
65
  }
66
- async send(connector, args, approvalConfig, timeoutMs = 120_000, requestId) {
66
+ async send(connector, args, approvalConfig, timeoutMs = 300_000, requestId) {
67
67
  if (!this.ws)
68
68
  throw new Error('Extension not connected');
69
69
  const id = requestId ?? randomUUID();
@@ -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
+ }
@@ -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.5.1",
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.7.0",
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
+ }