@girardmedia/bootspring 2.0.24 → 2.0.26

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.
@@ -2569,7 +2569,7 @@ declare namespace preseed {
2569
2569
  /**
2570
2570
  * Run the org command
2571
2571
  */
2572
- declare function run(args?: never[]): Promise<number | void>;
2572
+ declare function run(args?: string[]): Promise<number>;
2573
2573
 
2574
2574
  declare const org_run: typeof run;
2575
2575
  declare namespace org {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { a as auth, s as session, t as telemetry, u as utils } from './auth-CBTbIygo.js';
2
2
  export { c as config, a as context } from './context-an_6brlN.js';
3
3
  export { M as MCPCapabilities, a as MCPContent, b as MCPInputSchema, c as MCPPrompt, d as MCPPromptArgument, e as MCPPropertySchema, f as MCPResource, g as MCPTool, h as MCPToolResult, i as mcp } from './index-QqbeEiDm.js';
4
- export { i as cli } from './index-DlXygBAE.js';
4
+ export { i as cli } from './index-DJD8HAyK.js';
5
5
  import 'zod';
6
6
  import 'events';
7
7
 
@@ -408,6 +408,203 @@ interface SkillRecommendation {
408
408
  relevance: number;
409
409
  }
410
410
 
411
+ /**
412
+ * Bootspring Policy Types
413
+ * Type definitions for organization policies and access control
414
+ * @package bootspring
415
+ */
416
+ /**
417
+ * Subscription tiers
418
+ */
419
+ type Tier = 'free' | 'pro' | 'team' | 'enterprise';
420
+ /**
421
+ * Policy profile types
422
+ */
423
+ type PolicyProfile = 'startup' | 'regulated' | 'enterprise';
424
+ /**
425
+ * Member roles within an organization
426
+ */
427
+ type MemberRole = 'owner' | 'admin' | 'member' | 'viewer';
428
+ /**
429
+ * Policy scope categories
430
+ */
431
+ interface PolicyScopeCategory {
432
+ external?: string;
433
+ premium?: string;
434
+ ai?: string;
435
+ parallel?: string;
436
+ custom?: string;
437
+ technical?: string;
438
+ business?: string;
439
+ enterprise?: string;
440
+ telemetry?: string;
441
+ cloudSync?: string;
442
+ teamSharing?: string;
443
+ auditLogs?: string;
444
+ apiAccess?: string;
445
+ all: string;
446
+ }
447
+ /**
448
+ * All policy scopes
449
+ */
450
+ interface PolicyScopes {
451
+ skills: PolicyScopeCategory;
452
+ workflows: PolicyScopeCategory;
453
+ agents: PolicyScopeCategory;
454
+ features: PolicyScopeCategory;
455
+ }
456
+ /**
457
+ * Usage limits per tier
458
+ */
459
+ interface PolicyLimits {
460
+ skillsPerDay: number;
461
+ workflowsPerDay: number;
462
+ agentInvocationsPerDay: number;
463
+ teamMembers?: number;
464
+ }
465
+ /**
466
+ * Tier policy defaults
467
+ */
468
+ interface TierPolicy {
469
+ allowed: string[];
470
+ blocked: string[];
471
+ limits: PolicyLimits;
472
+ }
473
+ /**
474
+ * Profile override settings
475
+ */
476
+ interface ProfileOverrides {
477
+ requireApproval?: string[];
478
+ auditAll?: boolean;
479
+ dataResidency?: boolean;
480
+ ssoRequired?: boolean;
481
+ approvalWorkflow?: boolean;
482
+ }
483
+ /**
484
+ * Profile policy configuration
485
+ */
486
+ interface ProfilePolicy {
487
+ overrides: ProfileOverrides;
488
+ additionalBlocked: string[];
489
+ }
490
+ /**
491
+ * Role permissions
492
+ */
493
+ interface RolePermissions {
494
+ canManageOrg: boolean;
495
+ canManageMembers: boolean;
496
+ canManagePolicies: boolean;
497
+ canManageBilling: boolean;
498
+ canUseAllFeatures: boolean;
499
+ }
500
+ /**
501
+ * Member policy overrides
502
+ */
503
+ interface MemberOverrides {
504
+ additionalAllowed?: string[];
505
+ additionalBlocked?: string[];
506
+ limits?: Partial<PolicyLimits>;
507
+ overrides?: ProfileOverrides;
508
+ }
509
+ /**
510
+ * Effective policy after merging tier, profile, and member overrides
511
+ */
512
+ interface EffectivePolicy {
513
+ tier: Tier;
514
+ profile: PolicyProfile;
515
+ allowed: string[];
516
+ blocked: string[];
517
+ limits: PolicyLimits;
518
+ overrides: ProfileOverrides;
519
+ }
520
+ /**
521
+ * Policy access check result
522
+ */
523
+ interface PolicyAccessResult {
524
+ allowed: boolean;
525
+ scope: string;
526
+ code?: string;
527
+ reason?: string;
528
+ requiresApproval?: boolean;
529
+ }
530
+ /**
531
+ * Organization member
532
+ */
533
+ interface OrgMember {
534
+ userId: string;
535
+ email?: string;
536
+ role: MemberRole;
537
+ policyOverrides?: MemberOverrides;
538
+ }
539
+ /**
540
+ * Organization
541
+ */
542
+ interface Organization {
543
+ id: string;
544
+ name: string;
545
+ tier: Tier;
546
+ policyProfile: PolicyProfile;
547
+ settings?: Record<string, unknown>;
548
+ members?: OrgMember[];
549
+ memberCount?: number;
550
+ createdAt?: string;
551
+ policy?: {
552
+ allowExternalSkills?: boolean;
553
+ blockedWorkflows?: string[];
554
+ };
555
+ }
556
+ /**
557
+ * Organization context with resolved policy
558
+ */
559
+ interface OrgContext {
560
+ hasOrg: boolean;
561
+ orgId: string | null;
562
+ org: Organization | null;
563
+ member: OrgMember | null;
564
+ policy: EffectivePolicy | null;
565
+ role?: MemberRole;
566
+ }
567
+ /**
568
+ * Organization policy access result
569
+ */
570
+ interface OrgPolicyAccessResult extends PolicyAccessResult {
571
+ hasOrgPolicy: boolean;
572
+ orgId?: string;
573
+ tier?: Tier;
574
+ profile?: PolicyProfile;
575
+ }
576
+ /**
577
+ * Organization policy summary
578
+ */
579
+ interface OrgPolicySummary {
580
+ hasOrg: boolean;
581
+ message?: string;
582
+ orgId?: string;
583
+ orgName?: string;
584
+ tier?: Tier;
585
+ profile?: PolicyProfile;
586
+ role?: MemberRole;
587
+ allowedScopes?: number;
588
+ blockedScopes?: number;
589
+ limits?: PolicyLimits;
590
+ overrides?: string[];
591
+ }
592
+ /**
593
+ * Options for organization operations
594
+ */
595
+ interface OrgOptions {
596
+ orgId?: string | undefined;
597
+ userId?: string | undefined;
598
+ apiKey?: string | undefined;
599
+ }
600
+ /**
601
+ * Cache entry structure
602
+ */
603
+ interface CacheEntry<T> {
604
+ data: T;
605
+ timestamp: number;
606
+ }
607
+
411
608
  /**
412
609
  * Bootspring Type Definitions
413
610
  * @package bootspring
@@ -451,4 +648,4 @@ type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
451
648
 
452
649
  declare const VERSION = "2.0.21";
453
650
 
454
- export { type ActiveRemediation, type Agent, type AgentAnalysis, type AgentProfile, type AgentSuggestion, type AsyncResult, type BackendConfig, type BootspringConfig, type CodebaseAnalysis, type DeepPartial, type FileContext, type FrontendConfig, type PackageJsonInfo, type ParallelExecution, type ParallelPhaseProgress, type ParallelPhaseState, type PathConfig, type PhaseAgents, type PluginConfig, type ProjectConfig, type ProjectContext, type RemediationStep, type Result, type SeedConfig, type SessionInfo, type SignalProgress, type Skill, type SkillCategory, type SkillRecommendation, type SkillSearchResult, type StackConfig, type TechnicalTrigger, type TelemetryEvent, VERSION, type WithOptional, type WithRequired, type Workflow, type WorkflowFailure, type WorkflowHistoryEntry, type WorkflowPhase, type WorkflowState, type WorkflowSuggestion };
651
+ export { type ActiveRemediation, type Agent, type AgentAnalysis, type AgentProfile, type AgentSuggestion, type AsyncResult, type BackendConfig, type BootspringConfig, type CacheEntry, type CodebaseAnalysis, type DeepPartial, type EffectivePolicy, type FileContext, type FrontendConfig, type MemberOverrides, type MemberRole, type OrgContext, type OrgMember, type OrgOptions, type OrgPolicyAccessResult, type OrgPolicySummary, type Organization, type PackageJsonInfo, type ParallelExecution, type ParallelPhaseProgress, type ParallelPhaseState, type PathConfig, type PhaseAgents, type PluginConfig, type PolicyAccessResult, type PolicyLimits, type PolicyProfile, type PolicyScopeCategory, type PolicyScopes, type ProfileOverrides, type ProfilePolicy, type ProjectConfig, type ProjectContext, type RemediationStep, type Result, type RolePermissions, type SeedConfig, type SessionInfo, type SignalProgress, type Skill, type SkillCategory, type SkillRecommendation, type SkillSearchResult, type StackConfig, type TechnicalTrigger, type TelemetryEvent, type Tier, type TierPolicy, VERSION, type WithOptional, type WithRequired, type Workflow, type WorkflowFailure, type WorkflowHistoryEntry, type WorkflowPhase, type WorkflowState, type WorkflowSuggestion };