@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.
- package/bin/bootspring.js +157 -83
- package/claude-commands/agent.md +34 -0
- package/claude-commands/bs.md +31 -0
- package/claude-commands/build.md +25 -0
- package/claude-commands/skill.md +31 -0
- package/claude-commands/todo.md +25 -0
- package/dist/core/index.d.ts +5814 -0
- package/dist/core.js +5779 -0
- package/dist/index.js +93883 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp-server.js +2298 -0
- package/generators/api-docs.js +3 -3
- package/generators/decisions.js +14 -14
- package/generators/health.js +6 -6
- package/generators/sprint.js +4 -4
- package/generators/templates/build-planning.template.js +2 -2
- package/generators/visual-doc-generator.js +1 -1
- package/package.json +22 -68
- package/cli/agent.js +0 -799
- package/cli/auth.js +0 -896
- package/cli/billing.js +0 -320
- package/cli/build.js +0 -1442
- package/cli/dashboard.js +0 -123
- package/cli/init.js +0 -669
- package/cli/mcp.js +0 -240
- package/cli/orchestrator.js +0 -240
- package/cli/project.js +0 -825
- package/cli/quality.js +0 -281
- package/cli/skill.js +0 -503
- package/cli/switch.js +0 -453
- package/cli/todo.js +0 -629
- package/cli/update.js +0 -132
- package/core/api-client.d.ts +0 -69
- package/core/api-client.js +0 -1482
- package/core/auth.d.ts +0 -98
- package/core/auth.js +0 -737
- package/core/build-orchestrator.js +0 -508
- package/core/build-state.js +0 -612
- package/core/config.d.ts +0 -106
- package/core/config.js +0 -1328
- package/core/context-loader.js +0 -580
- package/core/context.d.ts +0 -61
- package/core/context.js +0 -327
- package/core/entitlements.d.ts +0 -70
- package/core/entitlements.js +0 -322
- package/core/index.d.ts +0 -53
- package/core/index.js +0 -62
- package/core/mcp-config.js +0 -115
- package/core/policies.d.ts +0 -43
- package/core/policies.js +0 -113
- package/core/policy-matrix.js +0 -303
- package/core/project-activity.js +0 -175
- package/core/redaction.d.ts +0 -5
- package/core/redaction.js +0 -63
- package/core/self-update.js +0 -259
- package/core/session.js +0 -353
- package/core/task-extractor.js +0 -1098
- package/core/telemetry.d.ts +0 -55
- package/core/telemetry.js +0 -617
- package/core/tier-enforcement.js +0 -928
- package/core/utils.d.ts +0 -90
- package/core/utils.js +0 -455
- package/core/validation.js +0 -572
- package/mcp/server.d.ts +0 -57
- 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;
|