@vreko/cli 3.1.9 → 3.2.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/{InitApp-XAHILEYM.js → InitApp-YM5CK55D.js} +3 -3
- package/dist/{InitApp-XAHILEYM.js.map → InitApp-YM5CK55D.js.map} +1 -1
- package/dist/{auth-YUOZ5X5P.js → auth-HP6IY25M.js} +9 -9
- package/dist/{auth-YUOZ5X5P.js.map → auth-HP6IY25M.js.map} +1 -1
- package/dist/{chunk-3KI4MRVU.js → chunk-3YXBGNHD.js} +3 -3
- package/dist/{chunk-3KI4MRVU.js.map → chunk-3YXBGNHD.js.map} +1 -1
- package/dist/{chunk-A57QYXVY.js → chunk-53BJRUUT.js} +4 -4
- package/dist/{chunk-A57QYXVY.js.map → chunk-53BJRUUT.js.map} +1 -1
- package/dist/{chunk-TJMLS25C.js → chunk-FROYVC6U.js} +4 -4
- package/dist/{chunk-TJMLS25C.js.map → chunk-FROYVC6U.js.map} +1 -1
- package/dist/{chunk-WFE5TEHG.js → chunk-IERTYZXC.js} +2 -2
- package/dist/{chunk-WFE5TEHG.js.map → chunk-IERTYZXC.js.map} +1 -1
- package/dist/{dist-BEOOZSLV.js → dist-JDTWHZQL.js} +3 -3
- package/dist/{dist-BEOOZSLV.js.map → dist-JDTWHZQL.js.map} +1 -1
- package/dist/{dist-VE7FA5YB.js → dist-NJCJFUQI.js} +3 -3
- package/dist/{dist-VE7FA5YB.js.map → dist-NJCJFUQI.js.map} +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/init-command-LXEBDSYX.js +7 -0
- package/dist/{init-command-JUVD7TN3.js.map → init-command-LXEBDSYX.js.map} +1 -1
- package/dist/{init-core-PNDHWMCD.js → init-core-ETGVVENN.js} +4 -4
- package/dist/{init-core-PNDHWMCD.js.map → init-core-ETGVVENN.js.map} +1 -1
- package/node_modules/@vreko/auth/.turbo/turbo-build.log +27 -26
- package/node_modules/@vreko/auth/.turbo/turbo-test.log +13 -13
- package/node_modules/@vreko/auth/CLAUDE.md +7 -7
- package/node_modules/@vreko/claims-ledger/.turbo/turbo-build.log +1 -1
- package/node_modules/@vreko/claims-ledger/.turbo/turbo-test.log +27 -27
- package/node_modules/@vreko/mcp-config/.turbo/turbo-build.log +2 -2
- package/node_modules/@vreko/mcp-config/CLAUDE.md +2 -2
- package/node_modules/@vreko/sentry-privacy/.turbo/turbo-build.log +2 -2
- package/package.json +2 -2
- package/dist/init-command-JUVD7TN3.js +0 -7
- /package/dist/{._InitApp-XAHILEYM.js → ._InitApp-YM5CK55D.js} +0 -0
- /package/dist/{._InitApp-XAHILEYM.js.map → ._InitApp-YM5CK55D.js.map} +0 -0
- /package/dist/{._auth-YUOZ5X5P.js → ._auth-HP6IY25M.js} +0 -0
- /package/dist/{._auth-YUOZ5X5P.js.map → ._auth-HP6IY25M.js.map} +0 -0
- /package/dist/{._chunk-3KI4MRVU.js → ._chunk-3YXBGNHD.js} +0 -0
- /package/dist/{._chunk-3KI4MRVU.js.map → ._chunk-3YXBGNHD.js.map} +0 -0
- /package/dist/{._chunk-A57QYXVY.js → ._chunk-53BJRUUT.js} +0 -0
- /package/dist/{._chunk-A57QYXVY.js.map → ._chunk-53BJRUUT.js.map} +0 -0
- /package/dist/{._chunk-TJMLS25C.js → ._chunk-FROYVC6U.js} +0 -0
- /package/dist/{._chunk-TJMLS25C.js.map → ._chunk-FROYVC6U.js.map} +0 -0
- /package/dist/{._chunk-WFE5TEHG.js → ._chunk-IERTYZXC.js} +0 -0
- /package/dist/{._chunk-WFE5TEHG.js.map → ._chunk-IERTYZXC.js.map} +0 -0
- /package/dist/{._dist-BEOOZSLV.js → ._dist-JDTWHZQL.js} +0 -0
- /package/dist/{._dist-BEOOZSLV.js.map → ._dist-JDTWHZQL.js.map} +0 -0
- /package/dist/{._dist-VE7FA5YB.js → ._dist-NJCJFUQI.js} +0 -0
- /package/dist/{._dist-VE7FA5YB.js.map → ._dist-NJCJFUQI.js.map} +0 -0
- /package/dist/{._init-command-JUVD7TN3.js → ._init-command-LXEBDSYX.js} +0 -0
- /package/dist/{._init-command-JUVD7TN3.js.map → ._init-command-LXEBDSYX.js.map} +0 -0
- /package/dist/{._init-core-PNDHWMCD.js → ._init-core-ETGVVENN.js} +0 -0
- /package/dist/{._init-core-PNDHWMCD.js.map → ._init-core-ETGVVENN.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export { createInitCommand } from './chunk-53BJRUUT.js';
|
|
3
|
+
import './chunk-EWOJGXRX.js';
|
|
4
|
+
|
|
5
|
+
process.env.VREKO_CLI='true';process.env.NODE_NO_WARNINGS='1';
|
|
6
|
+
//# sourceMappingURL=init-command-LXEBDSYX.js.map
|
|
7
|
+
//# sourceMappingURL=init-command-LXEBDSYX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"init-command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"init-command-LXEBDSYX.js"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { createInitCommand } from './chunk-
|
|
2
|
+
export { createInitCommand } from './chunk-FROYVC6U.js';
|
|
3
3
|
import './chunk-GRMRYWYS.js';
|
|
4
4
|
import './chunk-HEUTZR52.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-3YXBGNHD.js';
|
|
6
6
|
import './chunk-AV5Y3YR6.js';
|
|
7
7
|
import './chunk-AHZGBIQG.js';
|
|
8
8
|
import './chunk-BZ7DRTR7.js';
|
|
9
9
|
import './chunk-EWOJGXRX.js';
|
|
10
10
|
|
|
11
11
|
process.env.VREKO_CLI='true';process.env.NODE_NO_WARNINGS='1';
|
|
12
|
-
//# sourceMappingURL=init-core-
|
|
13
|
-
//# sourceMappingURL=init-core-
|
|
12
|
+
//# sourceMappingURL=init-core-ETGVVENN.js.map
|
|
13
|
+
//# sourceMappingURL=init-core-ETGVVENN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"init-core-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"init-core-ETGVVENN.js"}
|
|
@@ -17,62 +17,63 @@ dist/auth.js (1:0): Module level directives cause errors when bundled, "use clie
|
|
|
17
17
|
dist/security/session-security.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/security/session-security.js" was ignored.
|
|
18
18
|
dist/client.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/client.js" was ignored.
|
|
19
19
|
dist/client.js (2:0): Module level directives cause errors when bundled, "use client" in "dist/client.js" was ignored.
|
|
20
|
-
dist/index.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/index.js" was ignored.
|
|
21
20
|
dist/chunk-F4AZ5GM7.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-F4AZ5GM7.js" was ignored.
|
|
22
|
-
dist/
|
|
21
|
+
dist/index.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/index.js" was ignored.
|
|
23
22
|
dist/chunk-LCQDZ4PZ.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-LCQDZ4PZ.js" was ignored.
|
|
24
|
-
dist/
|
|
25
|
-
dist/lib/audit.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/audit.js" was ignored.
|
|
26
|
-
dist/chunk-W3CIYHBC.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-W3CIYHBC.js" was ignored.
|
|
23
|
+
dist/chunk-LKDZ3PMB.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-LKDZ3PMB.js" was ignored.
|
|
27
24
|
dist/chunk-LX4G2BOS.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-LX4G2BOS.js" was ignored.
|
|
28
|
-
dist/lib/
|
|
25
|
+
dist/lib/audit.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/audit.js" was ignored.
|
|
29
26
|
dist/lib/helper.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/helper.js" was ignored.
|
|
27
|
+
dist/lib/organization.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/organization.js" was ignored.
|
|
28
|
+
dist/chunk-W3CIYHBC.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-W3CIYHBC.js" was ignored.
|
|
29
|
+
dist/workspace.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/workspace.js" was ignored.
|
|
30
30
|
dist/chunk-4WMVVIVE.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-4WMVVIVE.js" was ignored.
|
|
31
31
|
dist/chunk-OIVAH7IC.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-OIVAH7IC.js" was ignored.
|
|
32
32
|
dist/lib/tier-utils.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/tier-utils.js" was ignored.
|
|
33
|
+
ESM dist/security/hmac-header.js 198.00 B
|
|
33
34
|
ESM dist/security/api-key-security.js 389.00 B
|
|
35
|
+
ESM dist/auth.js 276.00 B
|
|
34
36
|
ESM dist/security/csrf-protection.js 6.38 KB
|
|
35
37
|
ESM dist/security/rate-limiting.js 5.99 KB
|
|
36
38
|
ESM dist/security/session-security.js 7.45 KB
|
|
37
|
-
ESM dist/
|
|
38
|
-
ESM dist/auth.js 276.00 B
|
|
39
|
+
ESM dist/client.js 1.27 KB
|
|
39
40
|
ESM dist/chunk-F4AZ5GM7.js 2.06 KB
|
|
40
41
|
ESM dist/index.js 36.51 KB
|
|
41
42
|
ESM dist/chunk-LCQDZ4PZ.js 4.88 KB
|
|
42
|
-
ESM dist/workspace.js 22.54 KB
|
|
43
|
-
ESM dist/chunk-LX4G2BOS.js 4.54 KB
|
|
44
|
-
ESM dist/client.js 1.27 KB
|
|
45
|
-
ESM dist/lib/helper.js 699.00 B
|
|
46
|
-
ESM dist/chunk-W3CIYHBC.js 3.48 KB
|
|
47
43
|
ESM dist/chunk-LKDZ3PMB.js 23.37 KB
|
|
48
|
-
ESM dist/
|
|
44
|
+
ESM dist/lib/helper.js 699.00 B
|
|
45
|
+
ESM dist/chunk-LX4G2BOS.js 4.54 KB
|
|
46
|
+
ESM dist/lib/audit.js 193.00 B
|
|
49
47
|
ESM dist/lib/organization.js 190.00 B
|
|
48
|
+
ESM dist/chunk-W3CIYHBC.js 3.48 KB
|
|
49
|
+
ESM dist/workspace.js 22.54 KB
|
|
50
50
|
ESM dist/chunk-OIVAH7IC.js 234.00 B
|
|
51
51
|
ESM dist/lib/tier-utils.js 1.94 KB
|
|
52
|
-
ESM dist/
|
|
53
|
-
ESM dist/security/csrf-protection.js.map 19.00 KB
|
|
54
|
-
ESM dist/security/api-key-security.js.map 80.00 B
|
|
52
|
+
ESM dist/chunk-4WMVVIVE.js 1.14 KB
|
|
55
53
|
ESM dist/security/hmac-header.js.map 75.00 B
|
|
56
|
-
ESM dist/security/
|
|
54
|
+
ESM dist/security/api-key-security.js.map 80.00 B
|
|
55
|
+
ESM dist/security/csrf-protection.js.map 19.00 KB
|
|
57
56
|
ESM dist/auth.js.map 68.00 B
|
|
58
|
-
ESM dist/index.js.map 109.38 KB
|
|
59
|
-
ESM dist/security/session-security.js.map 21.93 KB
|
|
60
|
-
ESM dist/chunk-LCQDZ4PZ.js.map 17.12 KB
|
|
61
57
|
ESM dist/client.js.map 5.40 KB
|
|
62
|
-
ESM dist/
|
|
58
|
+
ESM dist/security/rate-limiting.js.map 18.25 KB
|
|
63
59
|
ESM dist/chunk-F4AZ5GM7.js.map 7.19 KB
|
|
60
|
+
ESM dist/index.js.map 109.38 KB
|
|
61
|
+
ESM dist/chunk-LCQDZ4PZ.js.map 17.12 KB
|
|
62
|
+
ESM dist/lib/audit.js.map 69.00 B
|
|
64
63
|
ESM dist/lib/helper.js.map 1.49 KB
|
|
65
|
-
ESM dist/chunk-
|
|
64
|
+
ESM dist/chunk-LKDZ3PMB.js.map 56.58 KB
|
|
66
65
|
ESM dist/lib/organization.js.map 76.00 B
|
|
66
|
+
ESM dist/security/session-security.js.map 21.93 KB
|
|
67
|
+
ESM dist/chunk-LX4G2BOS.js.map 12.44 KB
|
|
67
68
|
ESM dist/chunk-W3CIYHBC.js.map 11.08 KB
|
|
68
|
-
ESM dist/
|
|
69
|
+
ESM dist/workspace.js.map 56.83 KB
|
|
69
70
|
ESM dist/chunk-4WMVVIVE.js.map 2.14 KB
|
|
70
71
|
ESM dist/chunk-OIVAH7IC.js.map 78.00 B
|
|
71
|
-
ESM dist/lib/audit.js.map 69.00 B
|
|
72
72
|
ESM dist/lib/tier-utils.js.map 5.21 KB
|
|
73
|
-
ESM ⚡️ Build success in
|
|
73
|
+
ESM ⚡️ Build success in 890ms
|
|
74
74
|
|
|
75
75
|
> @vreko/auth@0.1.2 postbuild /Users/user1/WebstormProjects/Vreko-Site/packages/auth
|
|
76
76
|
> echo 'Auth package built successfully'
|
|
77
77
|
|
|
78
78
|
Auth package built successfully
|
|
79
|
+
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
> @vreko/auth@0.1.2 test /Users/user1/WebstormProjects/Vreko-Site/packages/auth
|
|
3
3
|
> vitest
|
|
4
4
|
|
|
5
|
-
7:
|
|
5
|
+
7:55:06 AM [vite] warning: `esbuild` option was specified by "vitest" plugin. This option is deprecated, please use `oxc` instead.
|
|
6
6
|
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
|
7
7
|
|
|
8
8
|
RUN v3.2.6 /Users/user1/WebstormProjects/Vreko-Site/packages/auth
|
|
9
9
|
|
|
10
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > returns 401 UNAUTHORIZED when no session is present
|
|
11
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > does not insert a row when unauthenticated (auth gate is not skipped)
|
|
12
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > stores the session userId — not any value provided externally (IDOR prevention)
|
|
10
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > returns 401 UNAUTHORIZED when no session is present 1485ms
|
|
11
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > does not insert a row when unauthenticated (auth gate is not skipped) 2ms
|
|
12
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > stores the session userId — not any value provided externally (IDOR prevention) 3ms
|
|
13
13
|
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > createApiKey > returns 200 with a key when session is valid 1ms
|
|
14
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > returns 401 UNAUTHORIZED when no session is present
|
|
15
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > does not call DB update when unauthenticated (no bypass possible)
|
|
16
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > returns 404 NOT_FOUND when the key belongs to a different user (ownership check)
|
|
14
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > returns 401 UNAUTHORIZED when no session is present 2ms
|
|
15
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > does not call DB update when unauthenticated (no bypass possible) 1ms
|
|
16
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > returns 404 NOT_FOUND when the key belongs to a different user (ownership check) 4ms
|
|
17
17
|
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > runs the DB UPDATE even when ownership fails — the check is in the WHERE, not pre-flight 1ms
|
|
18
18
|
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > deleteApiKey > returns 200 and revokes when the caller owns the key 2ms
|
|
19
19
|
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > accepts unauthenticated requests — intentional service-to-service design 1ms
|
|
20
20
|
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false for a key that does not exist 1ms
|
|
21
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false for a revoked key (WHERE revokedAt IS NULL filters it out)
|
|
22
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false for an expired key (WHERE expiresAt >= now filters it out)
|
|
23
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false when prefix matches but Argon2id hash verification fails
|
|
24
|
-
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:true with userId and key metadata when verification succeeds
|
|
21
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false for a revoked key (WHERE revokedAt IS NULL filters it out) 0ms
|
|
22
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false for an expired key (WHERE expiresAt >= now filters it out) 0ms
|
|
23
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:false when prefix matches but Argon2id hash verification fails 0ms
|
|
24
|
+
✓ |@vreko/auth| test/security/api-key-plugin.security.test.ts > apiKeyPlugin — security properties > verifyApiKey > returns isValid:true with userId and key metadata when verification succeeds 0ms
|
|
25
25
|
|
|
26
26
|
Test Files 1 passed (1)
|
|
27
27
|
Tests 15 passed (15)
|
|
28
|
-
Start at 07:
|
|
29
|
-
Duration
|
|
28
|
+
Start at 07:55:06
|
|
29
|
+
Duration 2.52s (transform 123ms, setup 0ms, collect 92ms, tests 1.51s, environment 0ms, prepare 137ms)
|
|
30
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# packages/auth - Authentication
|
|
2
2
|
|
|
3
|
-
**Package**: `@
|
|
3
|
+
**Package**: `@vreko/auth`
|
|
4
4
|
**Purpose**: Better Auth configuration, adapters, plugins, and shared auth utilities for the Vreko monorepo.
|
|
5
5
|
|
|
6
6
|
## Overview
|
|
@@ -35,20 +35,20 @@ src/
|
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
37
|
// Server-side
|
|
38
|
-
import { auth } from '@
|
|
38
|
+
import { auth } from '@vreko/auth';
|
|
39
39
|
|
|
40
40
|
// Client-side
|
|
41
|
-
import { authClient } from '@
|
|
41
|
+
import { authClient } from '@vreko/auth/client';
|
|
42
42
|
|
|
43
43
|
// Types
|
|
44
|
-
import type { Session, User } from '@
|
|
44
|
+
import type { Session, User } from '@vreko/auth';
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
## Usage in Apps
|
|
48
48
|
|
|
49
49
|
### API Server (`apps/api`)
|
|
50
50
|
```typescript
|
|
51
|
-
import { auth } from '@
|
|
51
|
+
import { auth } from '@vreko/auth';
|
|
52
52
|
// Mount auth routes at /api/auth/*
|
|
53
53
|
app.on(['GET', 'POST'], '/api/auth/*', (c) => auth.handler(c.req.raw));
|
|
54
54
|
```
|
|
@@ -56,11 +56,11 @@ app.on(['GET', 'POST'], '/api/auth/*', (c) => auth.handler(c.req.raw));
|
|
|
56
56
|
### Web App (`apps/web`)
|
|
57
57
|
```typescript
|
|
58
58
|
// Server components
|
|
59
|
-
import { auth } from '@
|
|
59
|
+
import { auth } from '@vreko/auth';
|
|
60
60
|
const session = await auth.api.getSession({ headers: request.headers });
|
|
61
61
|
|
|
62
62
|
// Client components
|
|
63
|
-
import { authClient } from '@
|
|
63
|
+
import { authClient } from '@vreko/auth/client';
|
|
64
64
|
const { data: session } = authClient.useSession();
|
|
65
65
|
```
|
|
66
66
|
|
|
@@ -11,7 +11,7 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
ESM dist/index.js 13.94 KB
|
|
13
13
|
ESM dist/index.js.map 35.00 KB
|
|
14
|
-
ESM ⚡️ Build success in
|
|
14
|
+
ESM ⚡️ Build success in 36ms
|
|
15
15
|
|
|
16
16
|
> @vreko/claims-ledger@0.1.2 postbuild /Users/user1/WebstormProjects/Vreko-Site/packages/claims-ledger
|
|
17
17
|
> tsc --project tsconfig.build.json && test -f dist/index.d.ts
|
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
> @vreko/claims-ledger@0.1.2 test /Users/user1/WebstormProjects/Vreko-Site/packages/claims-ledger
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
7:54:24 AM [vite] warning: `esbuild` option was specified by "vitest" plugin. This option is deprecated, please use `oxc` instead.
|
|
6
6
|
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
|
7
7
|
|
|
8
8
|
RUN v3.2.6 /Users/user1/WebstormProjects/Vreko-Site/packages/claims-ledger
|
|
9
9
|
|
|
10
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should mark deferred-manual claims as expired after 30 days
|
|
11
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should mark deferred-observational claims as expired after 7 days
|
|
12
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark immediate claims as expired
|
|
13
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark already-resolved claims
|
|
10
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should mark deferred-manual claims as expired after 30 days 5ms
|
|
11
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should mark deferred-observational claims as expired after 7 days 1ms
|
|
12
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark immediate claims as expired 0ms
|
|
13
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark already-resolved claims 0ms
|
|
14
14
|
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should handle mixed claims correctly 1ms
|
|
15
15
|
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should call onExpired callback with expired IDs 1ms
|
|
16
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > startPeriodic > should run initial sweep immediately
|
|
17
|
-
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > custom TTL > should respect custom TTL configuration
|
|
18
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should append a valid claim
|
|
19
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should write multiple claims
|
|
20
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should emit onClaimMade callback
|
|
16
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > startPeriodic > should run initial sweep immediately 12ms
|
|
17
|
+
✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > custom TTL > should respect custom TTL configuration 1ms
|
|
18
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should append a valid claim 9ms
|
|
19
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should write multiple claims 8ms
|
|
20
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should emit onClaimMade callback 2ms
|
|
21
21
|
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer rejects invalid > should reject unregistered claimant 2ms
|
|
22
22
|
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer rejects invalid > should reject invalid claim structure 1ms
|
|
23
23
|
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer rejects invalid > should reject unregistered claim type 1ms
|
|
24
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should return claims by claimant
|
|
25
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should return newest first
|
|
26
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect since filter
|
|
27
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect limit
|
|
28
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 100% honesty rate
|
|
29
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 0% honesty rate
|
|
30
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 50% honesty rate
|
|
31
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should handle expired claims
|
|
32
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should exclude unresolved from rate calculation
|
|
24
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should return claims by claimant 294ms
|
|
25
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should return newest first 6ms
|
|
26
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect since filter 7ms
|
|
27
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect limit 25ms
|
|
28
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 100% honesty rate 31ms
|
|
29
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 0% honesty rate 167ms
|
|
30
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 50% honesty rate 63ms
|
|
31
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should handle expired claims 69ms
|
|
32
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should exclude unresolved from rate calculation 46ms
|
|
33
33
|
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should resolve a claim 3ms
|
|
34
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should mark claim as expired
|
|
35
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should emit onOutcomeRecorded callback
|
|
36
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should return unresolved claims
|
|
37
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should filter by olderThan
|
|
38
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by subject > should return claims by subject
|
|
39
|
-
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > stats > should return storage stats
|
|
34
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should mark claim as expired 84ms
|
|
35
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should emit onOutcomeRecorded callback 13ms
|
|
36
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should return unresolved claims 6ms
|
|
37
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should filter by olderThan 8ms
|
|
38
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by subject > should return claims by subject 5ms
|
|
39
|
+
✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > stats > should return storage stats 4ms
|
|
40
40
|
|
|
41
41
|
Test Files 2 passed (2)
|
|
42
42
|
Tests 30 passed (30)
|
|
43
|
-
Start at
|
|
44
|
-
Duration
|
|
43
|
+
Start at 07:54:25
|
|
44
|
+
Duration 5.82s (transform 785ms, setup 0ms, collect 1.52s, tests 880ms, environment 0ms, prepare 1.47s)
|
|
45
45
|
|
|
@@ -11,7 +11,7 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
ESM dist/index.js 49.62 KB
|
|
13
13
|
ESM dist/index.js.map 139.16 KB
|
|
14
|
-
ESM ⚡️ Build success in
|
|
14
|
+
ESM ⚡️ Build success in 746ms
|
|
15
15
|
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in
|
|
16
|
+
DTS ⚡️ Build success in 5339ms
|
|
17
17
|
DTS dist/index.d.ts 22.05 KB
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @vreko/mcp-config
|
|
2
2
|
|
|
3
3
|
**Purpose**: AI client detection and MCP configuration for Vreko
|
|
4
4
|
**Role**: Shared module for VS Code extension and CLI to detect/configure AI assistants
|
|
@@ -43,7 +43,7 @@ This package provides utilities to:
|
|
|
43
43
|
## Usage Examples
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
|
-
import { detectAIClients, writeClientConfig, getVrekoMCPConfig } from '@
|
|
46
|
+
import { detectAIClients, writeClientConfig, getVrekoMCPConfig } from '@vreko/mcp-config';
|
|
47
47
|
|
|
48
48
|
// Detect installed AI assistants
|
|
49
49
|
const result = detectAIClients();
|
|
@@ -11,7 +11,7 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
ESM dist/index.js 5.72 KB
|
|
13
13
|
ESM dist/index.js.map 12.78 KB
|
|
14
|
-
ESM ⚡️ Build success in
|
|
14
|
+
ESM ⚡️ Build success in 125ms
|
|
15
15
|
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in
|
|
16
|
+
DTS ⚡️ Build success in 5966ms
|
|
17
17
|
DTS dist/index.d.ts 880.00 B
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vreko/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Vreko CLI — AI-aware developer intelligence for the command line",
|
|
5
5
|
"homepage": "https://vreko.dev",
|
|
6
6
|
"repository": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"p-retry": "6.2.0",
|
|
81
81
|
"pino": "9.5.0",
|
|
82
82
|
"pino-pretty": "11.3.0",
|
|
83
|
-
"better-sqlite3": "
|
|
83
|
+
"better-sqlite3": "12.11.1",
|
|
84
84
|
"posthog-node": "3.6.3",
|
|
85
85
|
"quick-lru": "7.0.0",
|
|
86
86
|
"typescript": "5.9.2",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
export { createInitCommand } from './chunk-A57QYXVY.js';
|
|
3
|
-
import './chunk-EWOJGXRX.js';
|
|
4
|
-
|
|
5
|
-
process.env.VREKO_CLI='true';process.env.NODE_NO_WARNINGS='1';
|
|
6
|
-
//# sourceMappingURL=init-command-JUVD7TN3.js.map
|
|
7
|
-
//# sourceMappingURL=init-command-JUVD7TN3.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|