@commandgarden/cli 1.2.3 → 1.3.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/main.js +8907 -8895
- package/node_modules/@commandgarden/app/dist/client/assets/index-B-_w54e9.css +1 -0
- package/node_modules/@commandgarden/app/dist/client/assets/index-Bb1BOK1E.js +252 -0
- package/node_modules/@commandgarden/app/dist/client/index.html +19 -19
- package/node_modules/@commandgarden/app/dist/server/daemon-client.test.js +47 -0
- package/node_modules/@commandgarden/app/dist/server/main.d.ts +1 -0
- package/node_modules/@commandgarden/app/dist/server/main.js +3 -3
- package/node_modules/@commandgarden/app/dist/server/routes/audit.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/config.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/connectors.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/goals.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/goals.js +31 -0
- package/node_modules/@commandgarden/app/dist/server/routes/index.d.ts +4 -0
- package/node_modules/@commandgarden/app/dist/server/routes/index.js +4 -0
- package/node_modules/@commandgarden/app/dist/server/routes/preferences.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/routes.test.js +137 -0
- package/node_modules/@commandgarden/app/dist/server/routes/run.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/status.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/timetracking-cache.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/timetracking-cache.js +35 -0
- package/node_modules/@commandgarden/app/dist/server/store.d.ts +47 -0
- package/node_modules/@commandgarden/app/dist/server/store.js +112 -10
- package/node_modules/@commandgarden/app/dist/server/store.test.js +59 -0
- package/node_modules/@commandgarden/app/package.json +42 -41
- package/node_modules/@commandgarden/daemon/connectors/lib/msal-token.js +20 -0
- package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.eval.js +341 -338
- package/node_modules/@commandgarden/daemon/connectors/teams-room-availability.yaml +46 -45
- package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.eval.js +52 -0
- package/node_modules/@commandgarden/daemon/connectors/timetracking-projects.yaml +42 -0
- package/node_modules/@commandgarden/daemon/connectors/timetracking-report.eval.js +81 -60
- package/node_modules/@commandgarden/daemon/connectors/timetracking-report.yaml +52 -48
- package/node_modules/@commandgarden/daemon/dist/audit-store.js +8 -8
- 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/config.js +1 -1
- package/node_modules/@commandgarden/daemon/dist/config.js.map +1 -1
- package/node_modules/@commandgarden/daemon/package.json +30 -30
- package/node_modules/@commandgarden/shared/dist/daemon-client.d.ts +19 -0
- package/node_modules/@commandgarden/shared/dist/daemon-client.d.ts.map +1 -0
- package/node_modules/@commandgarden/shared/dist/daemon-client.js +129 -0
- package/node_modules/@commandgarden/shared/dist/daemon-client.js.map +1 -0
- package/node_modules/@commandgarden/shared/dist/index.d.ts +1 -0
- package/node_modules/@commandgarden/shared/dist/index.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/index.js +2 -0
- package/node_modules/@commandgarden/shared/dist/index.js.map +1 -1
- package/node_modules/@commandgarden/shared/package.json +32 -32
- package/package.json +55 -55
- package/node_modules/@commandgarden/app/dist/client/assets/index-58UrF1aG.js +0 -197
- package/node_modules/@commandgarden/app/dist/client/assets/index-DErcb2Kp.css +0 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@commandgarden/app",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "vite build && tsc -p tsconfig.server.json",
|
|
11
|
-
"dev": "concurrently \"vite\" \"tsx watch src/server/main.ts\"",
|
|
12
|
-
"start": "node dist/server/main.js",
|
|
13
|
-
"test": "vitest run",
|
|
14
|
-
"test:watch": "vitest"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@commandgarden/shared": "*",
|
|
18
|
-
"fastify": "^
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"react": "^18.3.0",
|
|
23
|
-
"react-dom": "^
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"@types/
|
|
29
|
-
"@types/react
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@commandgarden/app",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "vite build && tsc -p tsconfig.server.json",
|
|
11
|
+
"dev": "concurrently \"vite\" \"tsx watch src/server/main.ts\"",
|
|
12
|
+
"start": "node dist/server/main.js",
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:watch": "vitest"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@commandgarden/shared": "*",
|
|
18
|
+
"@fastify/static": "^8.0.0",
|
|
19
|
+
"fastify": "^5.0.0",
|
|
20
|
+
"lucide-react": "^1.23.0",
|
|
21
|
+
"react": "^18.3.0",
|
|
22
|
+
"react-dom": "^18.3.0",
|
|
23
|
+
"react-router-dom": "^6.23.0",
|
|
24
|
+
"sql.js": "^1.11.0",
|
|
25
|
+
"yaml": "^2.4.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^22.0.0",
|
|
29
|
+
"@types/react": "^18.3.0",
|
|
30
|
+
"@types/react-dom": "^18.3.0",
|
|
31
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
32
|
+
"autoprefixer": "^10.4.0",
|
|
33
|
+
"concurrently": "^9.0.0",
|
|
34
|
+
"daisyui": "^4.12.0",
|
|
35
|
+
"postcss": "^8.4.0",
|
|
36
|
+
"tailwindcss": "^3.4.0",
|
|
37
|
+
"tsx": "^4.0.0",
|
|
38
|
+
"typescript": "^5.4.0",
|
|
39
|
+
"vite": "^5.4.0",
|
|
40
|
+
"vitest": "^2.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Shared MSAL token polling snippet for eval.js files.
|
|
2
|
+
// Paste this into any eval.js that needs an authenticated session.
|
|
3
|
+
// Polls sessionStorage for a valid access token for up to 60s.
|
|
4
|
+
|
|
5
|
+
const __deadline = Date.now() + 60000;
|
|
6
|
+
let token;
|
|
7
|
+
while (Date.now() < __deadline) {
|
|
8
|
+
const k = Object.keys(sessionStorage).find(x => x.includes('accesstoken'));
|
|
9
|
+
if (k) {
|
|
10
|
+
try {
|
|
11
|
+
const tokenData = JSON.parse(sessionStorage.getItem(k));
|
|
12
|
+
if (Number(tokenData.expiresOn) > Math.floor(Date.now() / 1000) + 30) {
|
|
13
|
+
token = tokenData.secret;
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
} catch (_) {}
|
|
17
|
+
}
|
|
18
|
+
await new Promise(r => setTimeout(r, 1000));
|
|
19
|
+
}
|
|
20
|
+
if (!token) throw new Error('No valid MSAL access token after 60s — log in and retry');
|