@vreko/cli 3.1.9 → 3.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.
Files changed (53) hide show
  1. package/dist/{InitApp-XAHILEYM.js → InitApp-YM5CK55D.js} +3 -3
  2. package/dist/{InitApp-XAHILEYM.js.map → InitApp-YM5CK55D.js.map} +1 -1
  3. package/dist/{auth-YUOZ5X5P.js → auth-HP6IY25M.js} +9 -9
  4. package/dist/{auth-YUOZ5X5P.js.map → auth-HP6IY25M.js.map} +1 -1
  5. package/dist/{chunk-3KI4MRVU.js → chunk-3YXBGNHD.js} +3 -3
  6. package/dist/{chunk-3KI4MRVU.js.map → chunk-3YXBGNHD.js.map} +1 -1
  7. package/dist/{chunk-A57QYXVY.js → chunk-53BJRUUT.js} +4 -4
  8. package/dist/{chunk-A57QYXVY.js.map → chunk-53BJRUUT.js.map} +1 -1
  9. package/dist/{chunk-TJMLS25C.js → chunk-FROYVC6U.js} +4 -4
  10. package/dist/{chunk-TJMLS25C.js.map → chunk-FROYVC6U.js.map} +1 -1
  11. package/dist/{chunk-WFE5TEHG.js → chunk-IERTYZXC.js} +2 -2
  12. package/dist/{chunk-WFE5TEHG.js.map → chunk-IERTYZXC.js.map} +1 -1
  13. package/dist/{dist-BEOOZSLV.js → dist-JDTWHZQL.js} +3 -3
  14. package/dist/{dist-BEOOZSLV.js.map → dist-JDTWHZQL.js.map} +1 -1
  15. package/dist/{dist-VE7FA5YB.js → dist-NJCJFUQI.js} +3 -3
  16. package/dist/{dist-VE7FA5YB.js.map → dist-NJCJFUQI.js.map} +1 -1
  17. package/dist/index.js +10 -10
  18. package/dist/index.js.map +1 -1
  19. package/dist/init-command-LXEBDSYX.js +7 -0
  20. package/dist/{init-command-JUVD7TN3.js.map → init-command-LXEBDSYX.js.map} +1 -1
  21. package/dist/{init-core-PNDHWMCD.js → init-core-ETGVVENN.js} +4 -4
  22. package/dist/{init-core-PNDHWMCD.js.map → init-core-ETGVVENN.js.map} +1 -1
  23. package/node_modules/@vreko/auth/.turbo/turbo-build.log +27 -26
  24. package/node_modules/@vreko/auth/.turbo/turbo-test.log +13 -13
  25. package/node_modules/@vreko/auth/CLAUDE.md +7 -7
  26. package/node_modules/@vreko/claims-ledger/.turbo/turbo-build.log +1 -1
  27. package/node_modules/@vreko/claims-ledger/.turbo/turbo-test.log +27 -27
  28. package/node_modules/@vreko/mcp-config/.turbo/turbo-build.log +2 -2
  29. package/node_modules/@vreko/mcp-config/CLAUDE.md +2 -2
  30. package/node_modules/@vreko/sentry-privacy/.turbo/turbo-build.log +2 -2
  31. package/package.json +6 -6
  32. package/scripts/publish-clean.mjs +32 -35
  33. package/dist/init-command-JUVD7TN3.js +0 -7
  34. /package/dist/{._InitApp-XAHILEYM.js → ._InitApp-YM5CK55D.js} +0 -0
  35. /package/dist/{._InitApp-XAHILEYM.js.map → ._InitApp-YM5CK55D.js.map} +0 -0
  36. /package/dist/{._auth-YUOZ5X5P.js → ._auth-HP6IY25M.js} +0 -0
  37. /package/dist/{._auth-YUOZ5X5P.js.map → ._auth-HP6IY25M.js.map} +0 -0
  38. /package/dist/{._chunk-3KI4MRVU.js → ._chunk-3YXBGNHD.js} +0 -0
  39. /package/dist/{._chunk-3KI4MRVU.js.map → ._chunk-3YXBGNHD.js.map} +0 -0
  40. /package/dist/{._chunk-A57QYXVY.js → ._chunk-53BJRUUT.js} +0 -0
  41. /package/dist/{._chunk-A57QYXVY.js.map → ._chunk-53BJRUUT.js.map} +0 -0
  42. /package/dist/{._chunk-TJMLS25C.js → ._chunk-FROYVC6U.js} +0 -0
  43. /package/dist/{._chunk-TJMLS25C.js.map → ._chunk-FROYVC6U.js.map} +0 -0
  44. /package/dist/{._chunk-WFE5TEHG.js → ._chunk-IERTYZXC.js} +0 -0
  45. /package/dist/{._chunk-WFE5TEHG.js.map → ._chunk-IERTYZXC.js.map} +0 -0
  46. /package/dist/{._dist-BEOOZSLV.js → ._dist-JDTWHZQL.js} +0 -0
  47. /package/dist/{._dist-BEOOZSLV.js.map → ._dist-JDTWHZQL.js.map} +0 -0
  48. /package/dist/{._dist-VE7FA5YB.js → ._dist-NJCJFUQI.js} +0 -0
  49. /package/dist/{._dist-VE7FA5YB.js.map → ._dist-NJCJFUQI.js.map} +0 -0
  50. /package/dist/{._init-command-JUVD7TN3.js → ._init-command-LXEBDSYX.js} +0 -0
  51. /package/dist/{._init-command-JUVD7TN3.js.map → ._init-command-LXEBDSYX.js.map} +0 -0
  52. /package/dist/{._init-core-PNDHWMCD.js → ._init-core-ETGVVENN.js} +0 -0
  53. /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-JUVD7TN3.js"}
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-TJMLS25C.js';
2
+ export { createInitCommand } from './chunk-FROYVC6U.js';
3
3
  import './chunk-GRMRYWYS.js';
4
4
  import './chunk-HEUTZR52.js';
5
- import './chunk-3KI4MRVU.js';
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-PNDHWMCD.js.map
13
- //# sourceMappingURL=init-core-PNDHWMCD.js.map
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-PNDHWMCD.js"}
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/chunk-LKDZ3PMB.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/chunk-LKDZ3PMB.js" was ignored.
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/workspace.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/workspace.js" was ignored.
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/organization.js (1:0): Module level directives cause errors when bundled, "use client" in "dist/lib/organization.js" was ignored.
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/security/hmac-header.js 198.00 B
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/chunk-4WMVVIVE.js 1.14 KB
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/lib/audit.js 193.00 B
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/rate-limiting.js.map 18.25 KB
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/workspace.js.map 56.83 KB
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-LX4G2BOS.js.map 12.44 KB
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/chunk-LKDZ3PMB.js.map 56.58 KB
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 1199ms
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:07:28 AM [vite] warning: `esbuild` option was specified by "vitest" plugin. This option is deprecated, please use `oxc` instead.
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 1995ms
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) 1ms
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) 2ms
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 1ms
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) 2ms
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) 5ms
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) 1ms
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) 1ms
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 1ms
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 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) 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:07:28
29
- Duration 4.08s (transform 340ms, setup 0ms, collect 284ms, tests 2.02s, environment 0ms, prepare 445ms)
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**: `@snapback/auth`
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 '@snapback/auth';
38
+ import { auth } from '@vreko/auth';
39
39
 
40
40
  // Client-side
41
- import { authClient } from '@snapback/auth/client';
41
+ import { authClient } from '@vreko/auth/client';
42
42
 
43
43
  // Types
44
- import type { Session, User } from '@snapback/auth';
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 '@snapback/auth';
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 '@snapback/auth';
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 '@snapback/auth/client';
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 268ms
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
- 6:40:43 AM [vite] warning: `esbuild` option was specified by "vitest" plugin. This option is deprecated, please use `oxc` instead.
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 6ms
11
- ✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should mark deferred-observational claims as expired after 7 days 2ms
12
- ✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark immediate claims as expired 1ms
13
- ✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > sweep > should not mark already-resolved claims 1ms
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 14ms
17
- ✓ |@vreko/claims-ledger| test/sweeper.test.ts > ExpiredClaimSweeper > custom TTL > should respect custom TTL configuration 2ms
18
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should append a valid claim 14ms
19
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should write multiple claims 4ms
20
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > writer appends > should emit onClaimMade callback 10ms
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 3ms
25
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should return newest first 3ms
26
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect since filter 4ms
27
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by claimant > should respect limit 15ms
28
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 100% honesty rate 51ms
29
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 0% honesty rate 51ms
30
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should compute 50% honesty rate 51ms
31
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should handle expired claims 13ms
32
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > honestyRate > should exclude unresolved from rate calculation 11ms
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 3ms
35
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > outcome resolution > should emit onOutcomeRecorded callback 3ms
36
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should return unresolved claims 15ms
37
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > unresolved claims > should filter by olderThan 4ms
38
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > query by subject > should return claims by subject 4ms
39
- ✓ |@vreko/claims-ledger| test/ledger.test.ts > claims-ledger > stats > should return storage stats 3ms
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 06:40:43
44
- Duration 4.22s (transform 726ms, setup 0ms, collect 1.21s, tests 299ms, environment 0ms, prepare 754ms)
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 931ms
14
+ ESM ⚡️ Build success in 746ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6024ms
16
+ DTS ⚡️ Build success in 5339ms
17
17
  DTS dist/index.d.ts 22.05 KB
@@ -1,4 +1,4 @@
1
- # @snapback/mcp-config
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 '@snapback/mcp-config';
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 43ms
14
+ ESM ⚡️ Build success in 125ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4515ms
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.1.9",
3
+ "version": "3.3.0",
4
4
  "description": "Vreko CLI — AI-aware developer intelligence for the command line",
5
5
  "homepage": "https://vreko.dev",
6
6
  "repository": {
@@ -41,11 +41,10 @@
41
41
  "LICENSE"
42
42
  ],
43
43
  "dependencies": {
44
- "@asteasolutions/zod-to-openapi": "7.3.4",
45
44
  "@babel/parser": "7.28.5",
46
45
  "@babel/traverse": "7.28.5",
47
- "@better-auth/passkey": "1.6.18",
48
- "@better-auth/sso": "1.6.18",
46
+ "@better-auth/passkey": "1.6.19",
47
+ "@better-auth/sso": "1.6.19",
49
48
  "@clack/prompts": "^1.1.0",
50
49
  "@electric-sql/pglite": "0.2.0",
51
50
  "@hubspot/api-client": "13.0.0",
@@ -62,7 +61,7 @@
62
61
  "@sentry/node": "10.32.1",
63
62
  "@sindresorhus/slugify": "3.0.0",
64
63
  "@typescript-eslint/parser": "8.46.2",
65
- "better-auth": "1.6.18",
64
+ "better-auth": "1.6.19",
66
65
  "boxen": "8.0.1",
67
66
  "chalk": "4.1.2",
68
67
  "chokidar": "4.0.3",
@@ -80,7 +79,7 @@
80
79
  "p-retry": "6.2.0",
81
80
  "pino": "9.5.0",
82
81
  "pino-pretty": "11.3.0",
83
- "better-sqlite3": "9.6.0",
82
+ "better-sqlite3": "12.11.1",
84
83
  "posthog-node": "3.6.3",
85
84
  "quick-lru": "7.0.0",
86
85
  "typescript": "5.9.2",
@@ -110,6 +109,7 @@
110
109
  "keytar": "7.9.0"
111
110
  },
112
111
  "bundledDependencies": [
112
+ "@asteasolutions/zod-to-openapi",
113
113
  "@vreko/auth",
114
114
  "@vreko/claims-ledger",
115
115
  "@vreko/intelligence",
@@ -61,55 +61,52 @@ try {
61
61
  mkdirSync(tmpDir, { recursive: true });
62
62
  execFileSync("tar", ["-xzf", tgzPath, "-C", tmpDir]);
63
63
 
64
- // Step 3: Strip unresolvable dep fields from bundled @vreko/* package.jsons.
64
+ // Step 3: Strip unresolvable dep fields from ALL bundled packages' package.jsons.
65
65
  // Their code is already inlined into dist/index.js via tsup noExternal, or the
66
66
  // daemon bundles its own deps. npm doesn't need to resolve their transitive deps
67
- // and the catalog:/workspace:* specs cause empty stub directories that shadow
68
- // real packages.
69
- const vrekoModDir = join(tmpDir, "package", "node_modules", "@vreko");
70
- if (existsSync(vrekoModDir)) {
71
- const pkgs = readdirSync(vrekoModDir);
72
- console.log(`🔧 Stripping catalog: deps from ${pkgs.length} bundled @vreko packages...`);
73
- for (const pkg of pkgs) {
74
- const pkgJsonPath = join(vrekoModDir, pkg, "package.json");
75
- if (!existsSync(pkgJsonPath)) continue;
76
- const pkgJson = JSON.parse(readFileSync(pkgJsonPath, "utf8"));
77
- const stripped =
78
- "dependencies" in pkgJson ||
79
- "devDependencies" in pkgJson ||
80
- "peerDependencies" in pkgJson ||
81
- "optionalDependencies" in pkgJson;
82
- if (stripped) {
83
- delete pkgJson.dependencies;
84
- delete pkgJson.devDependencies;
85
- delete pkgJson.peerDependencies;
86
- delete pkgJson.optionalDependencies;
87
- delete pkgJson.peerDependenciesMeta;
88
- writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2) + "\n");
89
- console.log(` cleaned: @vreko/${pkg}`);
90
- }
67
+ // and the catalog:/workspace:* specs (or peer dep conflicts) cause install failures.
68
+ const extractedRootPkg = JSON.parse(readFileSync(join(tmpDir, "package", "package.json"), "utf8"));
69
+ const allBundled = extractedRootPkg.bundledDependencies || [];
70
+ const nodeModulesDir = join(tmpDir, "package", "node_modules");
71
+ console.log(`🔧 Stripping dep fields from ${allBundled.length} bundled packages...`);
72
+ for (const bundledPkg of allBundled) {
73
+ const pkgJsonPath = join(nodeModulesDir, bundledPkg, "package.json");
74
+ if (!existsSync(pkgJsonPath)) continue;
75
+ const pkgJson = JSON.parse(readFileSync(pkgJsonPath, "utf8"));
76
+ const hasDeps =
77
+ "dependencies" in pkgJson ||
78
+ "devDependencies" in pkgJson ||
79
+ "peerDependencies" in pkgJson ||
80
+ "optionalDependencies" in pkgJson;
81
+ if (hasDeps) {
82
+ delete pkgJson.dependencies;
83
+ delete pkgJson.devDependencies;
84
+ delete pkgJson.peerDependencies;
85
+ delete pkgJson.optionalDependencies;
86
+ delete pkgJson.peerDependenciesMeta;
87
+ writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2) + "\n");
88
+ console.log(` cleaned: ${bundledPkg}`);
91
89
  }
92
90
  }
93
91
 
94
- // Step 3b: Fix root package.json — strip bundled @vreko/* from dependencies.
95
- // pnpm rewrites workspace:* to local semvers; those semvers don't exist on npm.
96
- // npm will 404 trying to resolve them even when the package is in bundledDependencies.
97
- // Rule: a bundled @vreko/* package ships via bundledDependencies; it must not appear
98
- // in dependencies at all. External (published) @vreko/* like @vreko/contracts are NOT
99
- // in bundledDependencies and must remain in dependencies at their real semver.
92
+ // Step 3b: Fix root package.json — strip ALL bundled packages from dependencies.
93
+ // pnpm rewrites workspace:* to local semvers (don't exist on npm) and some bundled
94
+ // third-party packages carry peer dep conflicts. A bundled package ships via
95
+ // bundledDependencies; it must not appear in dependencies so npm never tries to
96
+ // resolve it from the registry.
100
97
  const rootPkgPath = join(tmpDir, "package", "package.json");
101
98
  const rootPkg = JSON.parse(readFileSync(rootPkgPath, "utf8"));
102
99
  const bundledSet = new Set(rootPkg.bundledDependencies || []);
103
100
  const removedFromDeps = [];
104
101
  for (const key of Object.keys(rootPkg.dependencies || {})) {
105
- if (key.startsWith("@vreko/") && bundledSet.has(key)) {
102
+ if (bundledSet.has(key)) {
106
103
  delete rootPkg.dependencies[key];
107
104
  removedFromDeps.push(key);
108
105
  }
109
106
  }
110
107
  if (removedFromDeps.length > 0) {
111
108
  writeFileSync(rootPkgPath, JSON.stringify(rootPkg, null, 2) + "\n");
112
- console.log(`🔧 Removed ${removedFromDeps.length} bundled @vreko/* from root dependencies:`);
109
+ console.log(`🔧 Removed ${removedFromDeps.length} bundled packages from root dependencies:`);
113
110
  for (const k of removedFromDeps) console.log(` stripped: ${k}`);
114
111
  }
115
112
 
@@ -143,9 +140,9 @@ try {
143
140
  if (v.startsWith("workspace:")) failures.push(`3a FAIL: ${k} still has workspace:${v.slice(10)}`);
144
141
  }
145
142
 
146
- // 3b: no bundled @vreko/* appears in dependencies (local semvers don't exist on npm)
143
+ // 3b: no bundled package appears in dependencies (avoids registry resolution conflicts)
147
144
  for (const key of Object.keys(verifyDeps)) {
148
- if (key.startsWith("@vreko/") && verifyBundled.has(key)) {
145
+ if (verifyBundled.has(key)) {
149
146
  failures.push(`3b FAIL: bundled ${key} still in dependencies as ${verifyDeps[key]}`);
150
147
  }
151
148
  }
@@ -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