@girardmedia/bootspring 2.1.3 → 2.2.1

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 (65) hide show
  1. package/bin/bootspring.js +157 -83
  2. package/claude-commands/agent.md +34 -0
  3. package/claude-commands/bs.md +31 -0
  4. package/claude-commands/build.md +25 -0
  5. package/claude-commands/skill.md +31 -0
  6. package/claude-commands/todo.md +25 -0
  7. package/dist/core/index.d.ts +5814 -0
  8. package/dist/core.js +5779 -0
  9. package/dist/index.js +93883 -0
  10. package/dist/mcp/index.d.ts +1 -0
  11. package/dist/mcp-server.js +2298 -0
  12. package/generators/api-docs.js +3 -3
  13. package/generators/decisions.js +14 -14
  14. package/generators/health.js +6 -6
  15. package/generators/sprint.js +4 -4
  16. package/generators/templates/build-planning.template.js +2 -2
  17. package/generators/visual-doc-generator.js +1 -1
  18. package/package.json +22 -68
  19. package/cli/agent.js +0 -799
  20. package/cli/auth.js +0 -896
  21. package/cli/billing.js +0 -320
  22. package/cli/build.js +0 -1442
  23. package/cli/dashboard.js +0 -123
  24. package/cli/init.js +0 -669
  25. package/cli/mcp.js +0 -240
  26. package/cli/orchestrator.js +0 -240
  27. package/cli/project.js +0 -825
  28. package/cli/quality.js +0 -281
  29. package/cli/skill.js +0 -503
  30. package/cli/switch.js +0 -453
  31. package/cli/todo.js +0 -629
  32. package/cli/update.js +0 -132
  33. package/core/api-client.d.ts +0 -69
  34. package/core/api-client.js +0 -1482
  35. package/core/auth.d.ts +0 -98
  36. package/core/auth.js +0 -737
  37. package/core/build-orchestrator.js +0 -508
  38. package/core/build-state.js +0 -612
  39. package/core/config.d.ts +0 -106
  40. package/core/config.js +0 -1328
  41. package/core/context-loader.js +0 -580
  42. package/core/context.d.ts +0 -61
  43. package/core/context.js +0 -327
  44. package/core/entitlements.d.ts +0 -70
  45. package/core/entitlements.js +0 -322
  46. package/core/index.d.ts +0 -53
  47. package/core/index.js +0 -62
  48. package/core/mcp-config.js +0 -115
  49. package/core/policies.d.ts +0 -43
  50. package/core/policies.js +0 -113
  51. package/core/policy-matrix.js +0 -303
  52. package/core/project-activity.js +0 -175
  53. package/core/redaction.d.ts +0 -5
  54. package/core/redaction.js +0 -63
  55. package/core/self-update.js +0 -259
  56. package/core/session.js +0 -353
  57. package/core/task-extractor.js +0 -1098
  58. package/core/telemetry.d.ts +0 -55
  59. package/core/telemetry.js +0 -617
  60. package/core/tier-enforcement.js +0 -928
  61. package/core/utils.d.ts +0 -90
  62. package/core/utils.js +0 -455
  63. package/core/validation.js +0 -572
  64. package/mcp/server.d.ts +0 -57
  65. package/mcp/server.js +0 -264
package/core/auth.d.ts DELETED
@@ -1,98 +0,0 @@
1
- /**
2
- * Bootspring Auth Types
3
- * @module core/auth
4
- */
5
-
6
- export type Tier = 'free' | 'pro' | 'team' | 'enterprise' | 'custom';
7
-
8
- export interface User {
9
- id: string;
10
- email: string;
11
- name?: string;
12
- tier: Tier;
13
- }
14
-
15
- export interface Credentials {
16
- accessToken: string;
17
- refreshToken?: string;
18
- apiKey?: string;
19
- expiresAt?: number;
20
- user?: User;
21
- }
22
-
23
- export interface AuthConfig {
24
- defaultTier?: Tier;
25
- autoRefresh?: boolean;
26
- }
27
-
28
- /** Path to ~/.bootspring directory */
29
- export const BOOTSPRING_DIR: string;
30
-
31
- /** Ensure ~/.bootspring directory exists */
32
- export function ensureDir(): void;
33
-
34
- /** Get stored credentials */
35
- export function getCredentials(): Credentials | null;
36
-
37
- /** Save credentials (encrypted) */
38
- export function saveCredentials(credentials: Credentials): void;
39
-
40
- /** Clear credentials (logout) */
41
- export function clearCredentials(): void;
42
-
43
- /** Get access token */
44
- export function getToken(): string | null;
45
-
46
- /** Get API key */
47
- export function getApiKey(): string | null;
48
-
49
- /** Check if using API key auth */
50
- export function isApiKeyAuth(): boolean;
51
-
52
- /** Get refresh token */
53
- export function getRefreshToken(): string | null;
54
-
55
- /** Check if user is authenticated */
56
- export function isAuthenticated(): boolean;
57
-
58
- /** Get current user info */
59
- export function getUser(): User | null;
60
-
61
- /** Get user's subscription tier */
62
- export function getTier(): Tier;
63
-
64
- /**
65
- * Login with email/password
66
- * @param email - User email
67
- * @param password - User password
68
- * @returns Login result
69
- */
70
- export function login(email: string, password: string): Promise<{ success: boolean; error?: string }>;
71
-
72
- /**
73
- * Login with API key
74
- * @param apiKey - API key (bs_live_* or bs_test_*)
75
- * @returns Login result
76
- */
77
- export function loginWithApiKey(apiKey: string): Promise<{ success: boolean; error?: string }>;
78
-
79
- /** Save API key into local project config as a fallback credential */
80
- export function saveApiKeyToProject(apiKey: string): boolean;
81
-
82
- /**
83
- * Update stored tokens
84
- * @param tokens - New tokens to store
85
- */
86
- export function updateTokens(tokens: Partial<Credentials>): void;
87
-
88
- /** Logout and clear credentials */
89
- export function logout(): void;
90
-
91
- /** Get auth config */
92
- export function getConfig(): AuthConfig;
93
-
94
- /** Save auth config */
95
- export function saveConfig(config: AuthConfig): void;
96
-
97
- /** Get credentials file path */
98
- export function getCredentialsPath(): string;