@contractspec/bundle.workspace 3.7.5 → 4.0.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 (108) hide show
  1. package/README.md +55 -66
  2. package/dist/adapters/ai.d.ts +1 -1
  3. package/dist/adapters/factory.d.ts +1 -1
  4. package/dist/adapters/index.d.ts +5 -5
  5. package/dist/ai/agents/index.d.ts +4 -4
  6. package/dist/ai/agents/orchestrator.d.ts +1 -1
  7. package/dist/ai/agents/simple-agent.d.ts +1 -1
  8. package/dist/ai/agents/unified-adapter.d.ts +2 -2
  9. package/dist/ai/index.d.ts +1 -1
  10. package/dist/ai/providers.d.ts +1 -1
  11. package/dist/contracts/operations/init.operation.d.ts +2 -2
  12. package/dist/formatters/index.d.ts +1 -1
  13. package/dist/index.d.ts +5 -5
  14. package/dist/index.js +14194 -13988
  15. package/dist/node/index.js +14187 -13981
  16. package/dist/ports/index.d.ts +2 -2
  17. package/dist/services/action-drift/index.d.ts +1 -1
  18. package/dist/services/action-drift/types.d.ts +1 -1
  19. package/dist/services/action-pr/index.d.ts +1 -1
  20. package/dist/services/agent-guide/index.d.ts +3 -3
  21. package/dist/services/agent-guide/types.d.ts +1 -1
  22. package/dist/services/build.d.ts +1 -1
  23. package/dist/services/ci-check/checks/handlers.d.ts +1 -1
  24. package/dist/services/ci-check/checks/index.d.ts +7 -6
  25. package/dist/services/ci-check/checks/policy.d.ts +13 -0
  26. package/dist/services/ci-check/checks/policy.test.d.ts +1 -0
  27. package/dist/services/ci-check/checks/tests.d.ts +1 -1
  28. package/dist/services/ci-check/index.d.ts +1 -1
  29. package/dist/services/ci-check/types.d.ts +3 -3
  30. package/dist/services/ci-check/utils.d.ts +2 -0
  31. package/dist/services/config.d.ts +1 -1
  32. package/dist/services/create/ai-generator.d.ts +1 -1
  33. package/dist/services/create/index.d.ts +1 -1
  34. package/dist/services/doctor/checks/ai.d.ts +1 -1
  35. package/dist/services/doctor/checks/config.d.ts +1 -1
  36. package/dist/services/doctor/checks/deps.d.ts +1 -1
  37. package/dist/services/doctor/checks/index.d.ts +3 -3
  38. package/dist/services/doctor/checks/mcp.d.ts +1 -1
  39. package/dist/services/doctor/doctor-service.d.ts +24 -2
  40. package/dist/services/doctor/index.d.ts +1 -1
  41. package/dist/services/features/index.d.ts +1 -1
  42. package/dist/services/fix/fix-link-formatter.d.ts +1 -1
  43. package/dist/services/fix/fix-service.d.ts +1 -1
  44. package/dist/services/fix/format-applicator.d.ts +1 -1
  45. package/dist/services/fix/index.d.ts +2 -2
  46. package/dist/services/fix/strategies/implement-ai.d.ts +1 -1
  47. package/dist/services/fix/strategies/implement-skeleton.d.ts +1 -1
  48. package/dist/services/fix/strategies/index.d.ts +2 -2
  49. package/dist/services/fix/strategies/remove-reference.d.ts +1 -1
  50. package/dist/services/fix/types.d.ts +1 -1
  51. package/dist/services/formatter.d.ts +1 -1
  52. package/dist/services/hooks/index.d.ts +1 -1
  53. package/dist/services/impact/index.d.ts +2 -2
  54. package/dist/services/implementation/discovery.d.ts +1 -1
  55. package/dist/services/implementation/index.d.ts +1 -1
  56. package/dist/services/implementation/resolver/index.d.ts +3 -3
  57. package/dist/services/import/import-service.d.ts +2 -2
  58. package/dist/services/import/index.d.ts +3 -3
  59. package/dist/services/import/verify-service.d.ts +1 -1
  60. package/dist/services/index.d.ts +37 -37
  61. package/dist/services/layer-discovery.d.ts +1 -1
  62. package/dist/services/list.d.ts +3 -3
  63. package/dist/services/openapi/import-service.d.ts +1 -1
  64. package/dist/services/openapi/index.d.ts +3 -3
  65. package/dist/services/openapi/sync-service.d.ts +1 -1
  66. package/dist/services/quickstart/index.d.ts +1 -1
  67. package/dist/services/quickstart/quickstart-service.d.ts +1 -1
  68. package/dist/services/regenerator.d.ts +1 -1
  69. package/dist/services/rulesync.d.ts +1 -1
  70. package/dist/services/setup/index.d.ts +2 -2
  71. package/dist/services/setup/setup-service.d.ts +1 -1
  72. package/dist/services/setup/targets/agents-md.d.ts +1 -1
  73. package/dist/services/setup/targets/biome-config.d.ts +9 -0
  74. package/dist/services/setup/targets/cli-config.d.ts +1 -1
  75. package/dist/services/setup/targets/cursor-rules.d.ts +1 -1
  76. package/dist/services/setup/targets/index.d.ts +5 -4
  77. package/dist/services/setup/targets/mcp-claude.d.ts +1 -1
  78. package/dist/services/setup/targets/mcp-cursor.d.ts +1 -1
  79. package/dist/services/setup/targets/vscode-settings.d.ts +1 -1
  80. package/dist/services/setup/types.d.ts +1 -1
  81. package/dist/services/sync.d.ts +1 -1
  82. package/dist/services/test/index.d.ts +1 -1
  83. package/dist/services/test/test-generator-service.d.ts +2 -2
  84. package/dist/services/test/test-service.d.ts +1 -1
  85. package/dist/services/test-link/index.d.ts +2 -2
  86. package/dist/services/test-link/test-ref-validator.d.ts +1 -1
  87. package/dist/services/upgrade/index.d.ts +1 -1
  88. package/dist/services/upgrade/upgrade-service.d.ts +1 -1
  89. package/dist/services/validate/blueprint-validator.d.ts +1 -1
  90. package/dist/services/validate/implementation-agent-validator.d.ts +1 -1
  91. package/dist/services/validate/implementation-validator.d.ts +1 -1
  92. package/dist/services/validate/index.d.ts +3 -3
  93. package/dist/services/validate/tenant-validator.d.ts +1 -1
  94. package/dist/services/verification-cache/adapters/index.d.ts +1 -1
  95. package/dist/services/verification-cache/index.d.ts +2 -2
  96. package/dist/services/verify/index.d.ts +4 -4
  97. package/dist/services/versioning/changelog-formatter.d.ts +1 -1
  98. package/dist/services/versioning/conventional-commits.d.ts +1 -1
  99. package/dist/services/versioning/index.d.ts +3 -3
  100. package/dist/services/versioning/types.d.ts +2 -3
  101. package/dist/services/versioning/versioning-service.d.ts +1 -1
  102. package/dist/services/vibe/index.d.ts +5 -5
  103. package/dist/services/watch.d.ts +2 -2
  104. package/dist/services/workspace-info.d.ts +2 -2
  105. package/dist/templates/fix/index.d.ts +2 -2
  106. package/dist/templates/index.d.ts +9 -9
  107. package/dist/utils/index.d.ts +1 -1
  108. package/package.json +16 -14
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * List specs service.
3
3
  */
4
- import { scanSpecSource, type SpecScanResult } from '@contractspec/module.workspace';
5
- import type { FsAdapter } from '../ports/fs';
6
- import type { MaybeArray } from '@contractspec/lib.utils-typescript';
7
4
  import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
5
+ import type { MaybeArray } from '@contractspec/lib.utils-typescript';
6
+ import { type SpecScanResult, scanSpecSource } from '@contractspec/module.workspace';
7
+ import type { FsAdapter } from '../ports/fs';
8
8
  /**
9
9
  * Options for listing specs.
10
10
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * OpenAPI import service - imports specs from OpenAPI documents.
3
3
  */
4
+ import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
4
5
  import type { FsAdapter } from '../../ports/fs';
5
6
  import type { LoggerAdapter } from '../../ports/logger';
6
7
  import type { OpenApiImportServiceOptions, OpenApiImportServiceResult } from './types';
7
- import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
8
8
  /**
9
9
  * Import ContractSpec specs from an OpenAPI document.
10
10
  */
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * OpenAPI services for import, sync, validate, and export operations.
3
3
  */
4
- export * from './types';
4
+ export type { OpenApiExportOptions as LegacyOpenApiExportOptions, OpenApiExportResult as LegacyOpenApiExportResult, } from './export-service';
5
+ export { exportOpenApi } from './export-service';
5
6
  export * from './import-service';
6
7
  export * from './sync-service';
8
+ export * from './types';
7
9
  export * from './validate-service';
8
- export { exportOpenApi } from './export-service';
9
- export type { OpenApiExportOptions as LegacyOpenApiExportOptions, OpenApiExportResult as LegacyOpenApiExportResult, } from './export-service';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * OpenAPI sync service - syncs specs with OpenAPI sources.
3
3
  */
4
+ import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
4
5
  import type { FsAdapter } from '../../ports/fs';
5
6
  import type { LoggerAdapter } from '../../ports/logger';
6
7
  import type { OpenApiSyncServiceOptions, OpenApiSyncServiceResult } from './types';
7
- import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
8
8
  /**
9
9
  * Sync ContractSpec specs with OpenAPI sources.
10
10
  */
@@ -4,6 +4,6 @@
4
4
  * Provides functionality to install minimal necessary packages
5
5
  * for ContractSpec to work.
6
6
  */
7
- export * from './types';
8
7
  export * from './dependencies';
9
8
  export * from './quickstart-service';
9
+ export * from './types';
@@ -5,7 +5,7 @@
5
5
  * for ContractSpec to work across CLI, VS Code, and JetBrains.
6
6
  */
7
7
  import type { FsAdapter } from '../../ports/fs';
8
- import type { QuickstartOptions, QuickstartResult, QuickstartPromptCallbacks } from './types';
8
+ import type { QuickstartOptions, QuickstartPromptCallbacks, QuickstartResult } from './types';
9
9
  /**
10
10
  * Run the ContractSpec quickstart installation.
11
11
  */
@@ -5,8 +5,8 @@
5
5
  * This service does not perform module loading; callers provide resolved contexts/rules/sink.
6
6
  */
7
7
  import { RegeneratorService } from '@contractspec/lib.contracts-spec/regenerator';
8
- import type { ProposalSink, RegenerationContext, RegenerationRule } from '@contractspec/lib.contracts-spec/regenerator/types';
9
8
  import type { SignalAdapters } from '@contractspec/lib.contracts-spec/regenerator/adapters';
9
+ import type { ProposalSink, RegenerationContext, RegenerationRule } from '@contractspec/lib.contracts-spec/regenerator/types';
10
10
  export interface CreateRegeneratorOptions {
11
11
  contexts: RegenerationContext[];
12
12
  rules: RegenerationRule[];
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Service for synchronizing AI agent rules.
3
3
  */
4
- import type { RuleSyncPort, RuleSyncOptions, RuleSyncResult } from '../ports/rulesync';
5
4
  import type { FsAdapter } from '../ports/fs';
6
5
  import type { LoggerAdapter } from '../ports/logger';
6
+ import type { RuleSyncOptions, RuleSyncPort, RuleSyncResult } from '../ports/rulesync';
7
7
  export declare class RuleSyncService implements RuleSyncPort {
8
8
  private readonly fs;
9
9
  private readonly logger;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Provides unified setup functionality for CLI, VS Code extension, and walkthroughs.
5
5
  */
6
- export * from './types';
7
- export * from './setup-service';
8
6
  export * from './config-generators';
9
7
  export * from './file-merger';
8
+ export * from './setup-service';
9
+ export * from './types';
@@ -5,7 +5,7 @@
5
5
  * Supports both single projects and monorepos.
6
6
  */
7
7
  import type { FsAdapter } from '../../ports/fs';
8
- import type { SetupOptions, SetupResult, SetupPromptCallbacks } from './types';
8
+ import type { SetupOptions, SetupPromptCallbacks, SetupResult } from './types';
9
9
  /**
10
10
  * Run the ContractSpec setup.
11
11
  */
@@ -2,7 +2,7 @@
2
2
  * AGENTS.md setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup AGENTS.md
8
8
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Biome config setup target.
3
+ */
4
+ import type { FsAdapter } from '../../../ports/fs';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
+ /**
7
+ * Setup biome.jsonc and bundled local plugin assets.
8
+ */
9
+ export declare function setupBiomeConfig(fs: FsAdapter, options: SetupOptions, prompts: SetupPromptCallbacks): Promise<SetupFileResult>;
@@ -2,7 +2,7 @@
2
2
  * CLI config setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup .contractsrc.json
8
8
  *
@@ -2,7 +2,7 @@
2
2
  * Cursor rules setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup .cursor/rules/contractspec.mdc
8
8
  */
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * Setup target handlers.
3
3
  */
4
+ export { setupAgentsMd } from './agents-md';
5
+ export { setupBiomeConfig } from './biome-config';
4
6
  export { setupCliConfig } from './cli-config';
5
- export { setupVscodeSettings } from './vscode-settings';
6
- export { setupMcpCursor } from './mcp-cursor';
7
- export { setupMcpClaude } from './mcp-claude';
8
7
  export { setupCursorRules } from './cursor-rules';
9
- export { setupAgentsMd } from './agents-md';
8
+ export { setupMcpClaude } from './mcp-claude';
9
+ export { setupMcpCursor } from './mcp-cursor';
10
+ export { setupVscodeSettings } from './vscode-settings';
@@ -2,7 +2,7 @@
2
2
  * Claude Desktop MCP setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup Claude Desktop MCP config.
8
8
  * This modifies the user's global Claude config, so we're extra careful.
@@ -2,7 +2,7 @@
2
2
  * Cursor MCP setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup .cursor/mcp.json
8
8
  */
@@ -2,7 +2,7 @@
2
2
  * VS Code settings setup target.
3
3
  */
4
4
  import type { FsAdapter } from '../../../ports/fs';
5
- import type { SetupOptions, SetupFileResult, SetupPromptCallbacks } from '../types';
5
+ import type { SetupFileResult, SetupOptions, SetupPromptCallbacks } from '../types';
6
6
  /**
7
7
  * Setup .vscode/settings.json
8
8
  *
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Target components that can be configured during setup.
6
6
  */
7
- export type SetupTarget = 'cli-config' | 'vscode-settings' | 'mcp-cursor' | 'mcp-claude' | 'cursor-rules' | 'agents-md';
7
+ export type SetupTarget = 'cli-config' | 'biome-config' | 'vscode-settings' | 'mcp-cursor' | 'mcp-claude' | 'cursor-rules' | 'agents-md';
8
8
  /**
9
9
  * All available setup targets.
10
10
  */
@@ -4,11 +4,11 @@
4
4
  * Build (and optionally validate) all discovered specs, optionally repeating into
5
5
  * multiple output buckets (./generated/<bucket>/ or any output dir).
6
6
  */
7
+ import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
7
8
  import type { FsAdapter } from '../ports/fs';
8
9
  import type { LoggerAdapter } from '../ports/logger';
9
10
  import { type BuildSpecOptions } from './build';
10
11
  import { type ValidateSpecResult } from './validate';
11
- import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
12
12
  export interface SyncSpecsOptions {
13
13
  pattern?: string;
14
14
  outputDirs?: (string | undefined)[];
@@ -1,2 +1,2 @@
1
- export * from './test-service';
2
1
  export * from './test-generator-service';
2
+ export * from './test-service';
@@ -1,6 +1,6 @@
1
- import type { LanguageModel } from 'ai';
2
- import { type TestSpec } from '@contractspec/lib.contracts-spec/tests';
3
1
  import type { OperationSpec } from '@contractspec/lib.contracts-spec';
2
+ import { type TestSpec } from '@contractspec/lib.contracts-spec/tests';
3
+ import type { LanguageModel } from 'ai';
4
4
  import type { LoggerAdapter } from '../../ports/logger';
5
5
  export interface TestGeneratorOptions {
6
6
  model?: LanguageModel;
@@ -1,5 +1,5 @@
1
- import { type TestSpec, type TestRunResult } from '@contractspec/lib.contracts-spec/tests';
2
1
  import { OperationSpecRegistry } from '@contractspec/lib.contracts-spec';
2
+ import { type TestRunResult, type TestSpec } from '@contractspec/lib.contracts-spec/tests';
3
3
  import type { WorkspaceAdapters } from '../../ports/logger';
4
4
  export interface TestServiceOptions {
5
5
  registry?: string;
@@ -4,8 +4,8 @@
4
4
  * Builds bidirectional mappings between TestSpecs and their targets,
5
5
  * enabling contract-first test discovery instead of naming conventions.
6
6
  */
7
- import type { SpecInventory } from '../integrity';
8
7
  import type { SpecScanResult } from '@contractspec/module.workspace';
8
+ import type { SpecInventory } from '../integrity';
9
9
  /**
10
10
  * Test target extracted from a TestSpec.
11
11
  * Matches the TestTarget type from @contractspec/lib.contracts-spec.
@@ -76,5 +76,5 @@ export declare function getTestsForSpec(specKey: string, index: TestToTargetInde
76
76
  * @returns The target spec key, or undefined if no target
77
77
  */
78
78
  export declare function getTargetForTest(testKey: string, index: TestToTargetIndex): string | undefined;
79
+ export type { TestRefValidationOptions, TestRefValidationResult, } from './test-ref-validator';
79
80
  export { validateTestRefs } from './test-ref-validator';
80
- export type { TestRefValidationResult, TestRefValidationOptions, } from './test-ref-validator';
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Validates that OperationSpec.tests references point to existing TestSpecs.
5
5
  */
6
- import type { SpecLocation } from '../integrity';
7
6
  import type { RefInfo } from '@contractspec/module.workspace';
7
+ import type { SpecLocation } from '../integrity';
8
8
  /**
9
9
  * Options for test reference validation.
10
10
  */
@@ -4,4 +4,4 @@
4
4
  * Provides upgrade analysis and application for ContractSpec SDK and config.
5
5
  */
6
6
  export * from './types';
7
- export { analyzeUpgrades, applyConfigUpgrades, getPackageUpgradeCommand, getDefaultVersioningConfig, getDefaultHooksConfig, } from './upgrade-service';
7
+ export { analyzeUpgrades, applyConfigUpgrades, getDefaultHooksConfig, getDefaultVersioningConfig, getPackageUpgradeCommand, } from './upgrade-service';
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import type { FsAdapter } from '../../ports/fs';
10
10
  import type { LoggerAdapter } from '../../ports/logger';
11
- import type { UpgradeOptions, UpgradeAnalysisResult, UpgradeApplyResult, PackageUpgradeInfo } from './types';
11
+ import type { PackageUpgradeInfo, UpgradeAnalysisResult, UpgradeApplyResult, UpgradeOptions } from './types';
12
12
  interface ServiceAdapters {
13
13
  fs: FsAdapter;
14
14
  logger: LoggerAdapter;
@@ -1,5 +1,5 @@
1
- import { validateBlueprint as validateBlueprintSpec } from '@contractspec/lib.contracts-spec/app-config/validation';
2
1
  import type { AppBlueprintSpec } from '@contractspec/lib.contracts-spec/app-config/spec';
2
+ import { validateBlueprint as validateBlueprintSpec } from '@contractspec/lib.contracts-spec/app-config/validation';
3
3
  import type { FsAdapter } from '../../ports/fs';
4
4
  /**
5
5
  * Result of blueprint validation.
@@ -1,5 +1,5 @@
1
- import type { FsAdapter } from '../../ports/fs';
2
1
  import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
2
+ import type { FsAdapter } from '../../ports/fs';
3
3
  export interface ImplementationValidatorOptions {
4
4
  implementationPath?: string;
5
5
  }
@@ -4,9 +4,9 @@
4
4
  * Deterministic, static checks intended for reuse across CLI/VSCode/web tooling.
5
5
  * This does NOT execute spec modules.
6
6
  */
7
+ import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
7
8
  import type { SpecScanResult } from '@contractspec/module.workspace';
8
9
  import type { FsAdapter } from '../../ports/fs';
9
- import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
10
10
  export interface ValidateImplementationOptions {
11
11
  checkHandlers?: boolean;
12
12
  checkTests?: boolean;
@@ -1,5 +1,5 @@
1
- export * from './spec-validator';
2
- export * from './implementation-validator';
3
1
  export * from './blueprint-validator';
4
- export * from './tenant-validator';
5
2
  export * from './implementation-agent-validator';
3
+ export * from './implementation-validator';
4
+ export * from './spec-validator';
5
+ export * from './tenant-validator';
@@ -1,5 +1,5 @@
1
- import { validateConfig as validateTenantConfigSpecs } from '@contractspec/lib.contracts-spec/app-config/validation';
2
1
  import { type AppBlueprintSpec, type TenantAppConfig } from '@contractspec/lib.contracts-spec/app-config/spec';
2
+ import { validateConfig as validateTenantConfigSpecs } from '@contractspec/lib.contracts-spec/app-config/validation';
3
3
  import type { FsAdapter } from '../../ports/fs';
4
4
  export interface TenantValidationResult {
5
5
  config?: TenantAppConfig;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cache storage adapters.
3
3
  */
4
- export * from './in-memory';
5
4
  export * from './filesystem';
5
+ export * from './in-memory';
6
6
  export * from './workspace-state';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Verification cache services.
3
3
  */
4
- export * from './types';
5
- export * from './cache-service';
6
4
  export * from './adapters/index';
5
+ export * from './cache-service';
6
+ export * from './types';
@@ -10,8 +10,8 @@
10
10
  *
11
11
  * @module @contractspec/bundle.workspace/services/verify
12
12
  */
13
- export type { VerifyConfig, VerifyOptions, VerifyInput, VerifyResult, StructureCheck, BehaviorCheck, AIReviewResult, FieldMapping, FieldMatchType, IntentAlignment, SemanticVerificationResult, } from './types';
14
- export { VerifyService, createVerifyService, verifyService, } from './verify-service';
15
- export { verifyStructure } from './structure-verifier';
13
+ export { createQuickAIReview, verifySemanticFields, verifyWithAI, verifyWithAIEnhanced, } from './ai-verifier';
16
14
  export { verifyBehavior } from './behavior-verifier';
17
- export { verifyWithAI, createQuickAIReview, verifySemanticFields, verifyWithAIEnhanced, } from './ai-verifier';
15
+ export { verifyStructure } from './structure-verifier';
16
+ export type { AIReviewResult, BehaviorCheck, FieldMapping, FieldMatchType, IntentAlignment, SemanticVerificationResult, StructureCheck, VerifyConfig, VerifyInput, VerifyOptions, VerifyResult, } from './types';
17
+ export { createVerifyService, VerifyService, verifyService, } from './verify-service';
@@ -5,7 +5,7 @@
5
5
  * or JSON for programmatic use.
6
6
  */
7
7
  import type { ChangelogEntry } from '@contractspec/lib.contracts-spec';
8
- import type { VersionAnalyzeResult, ChangelogJsonExport } from './types';
8
+ import type { ChangelogJsonExport, VersionAnalyzeResult } from './types';
9
9
  /**
10
10
  * Format entries as Keep a Changelog markdown.
11
11
  *
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module versioning/conventional-commits
13
13
  */
14
- import type { VersionBumpType, ChangeEntry } from '@contractspec/lib.contracts-spec';
14
+ import type { ChangeEntry, VersionBumpType } from '@contractspec/lib.contracts-spec';
15
15
  /**
16
16
  * Parsed conventional commit message.
17
17
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Provides version analysis, version bumping, and changelog generation.
5
5
  */
6
- export * from './types';
7
- export { analyzeVersions, applyVersionBump, generateChangelogs, analyzeVersionsFromCommits, } from './versioning-service';
8
- export { formatKeepAChangelog, formatConventionalChangelog, formatChangelogJson, } from './changelog-formatter';
6
+ export { formatChangelogJson, formatConventionalChangelog, formatKeepAChangelog, } from './changelog-formatter';
9
7
  export * from './conventional-commits';
8
+ export * from './types';
9
+ export { analyzeVersions, analyzeVersionsFromCommits, applyVersionBump, generateChangelogs, } from './versioning-service';
@@ -3,9 +3,8 @@
3
3
  *
4
4
  * Types for version analysis, version bumping, and changelog generation.
5
5
  */
6
- import type { ChangelogDocBlock, ChangelogEntry, ChangeEntry, VersionBumpType, VersioningConfig } from '@contractspec/lib.contracts-spec';
7
- import type { ChangelogTier } from '@contractspec/lib.contracts-spec';
8
- export type { ChangelogDocBlock, ChangelogEntry, ChangeEntry, VersionBumpType, ChangelogTier, VersioningConfig, };
6
+ import type { ChangeEntry, ChangelogDocBlock, ChangelogEntry, ChangelogTier, VersionBumpType, VersioningConfig } from '@contractspec/lib.contracts-spec';
7
+ export type { ChangeEntry, ChangelogDocBlock, ChangelogEntry, ChangelogTier, VersionBumpType, VersioningConfig, };
9
8
  /** Options for version analysis */
10
9
  export interface VersionAnalyzeOptions {
11
10
  /** Git ref to compare against (branch, tag, commit) */
@@ -8,7 +8,7 @@ import { type ChangeEntry, type VersionBumpType } from '@contractspec/lib.contra
8
8
  import type { FsAdapter } from '../../ports/fs';
9
9
  import type { GitAdapter } from '../../ports/git';
10
10
  import type { LoggerAdapter } from '../../ports/logger';
11
- import type { VersionAnalyzeOptions, VersionAnalyzeResult, VersionBumpOptions, VersionBumpResult, ChangelogGenerateOptions, ChangelogGenerateResult } from './types';
11
+ import type { ChangelogGenerateOptions, ChangelogGenerateResult, VersionAnalyzeOptions, VersionAnalyzeResult, VersionBumpOptions, VersionBumpResult } from './types';
12
12
  interface ServiceAdapters {
13
13
  fs: FsAdapter;
14
14
  git: GitAdapter;
@@ -3,11 +3,11 @@
3
3
  *
4
4
  * Platform-agnostic workflow engine for managing ContractSpec workflows.
5
5
  */
6
- export type { Track, WorkflowContext, WorkflowStep, WorkflowStepResult, Workflow, WorkflowResult, VibeConfig, } from './types';
7
- export { DEFAULT_VIBE_CONFIG } from './types';
8
6
  export { loadVibeConfig } from './config';
9
- export { runWorkflow, type WorkflowLogger, type WorkflowPrompter, silentLogger, consoleLogger, } from './engine';
10
- export { loadWorkflows, getWorkflow } from './loader';
7
+ export { type ContextExportResult, exportContext } from './context';
11
8
  export { builtinWorkflows } from './definitions';
12
- export { exportContext, type ContextExportResult } from './context';
9
+ export { consoleLogger, runWorkflow, silentLogger, type WorkflowLogger, type WorkflowPrompter, } from './engine';
10
+ export { getWorkflow, loadWorkflows } from './loader';
13
11
  export { installPack, type PackInstallResult } from './pack';
12
+ export type { Track, VibeConfig, Workflow, WorkflowContext, WorkflowResult, WorkflowStep, WorkflowStepResult, } from './types';
13
+ export { DEFAULT_VIBE_CONFIG } from './types';
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * Provides a reusable watcher that can trigger validate/build on spec changes.
5
5
  */
6
+ import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
7
+ import type { FsAdapter } from '../ports/fs';
6
8
  import type { LoggerAdapter } from '../ports/logger';
7
9
  import type { Watcher, WatcherAdapter, WatchOptions } from '../ports/watcher';
8
- import type { FsAdapter } from '../ports/fs';
9
- import type { ResolvedContractsrcConfig } from '@contractspec/lib.contracts-spec';
10
10
  export interface WatchSpecsOptions extends WatchOptions {
11
11
  runValidate?: boolean;
12
12
  runBuild?: boolean;
@@ -4,7 +4,7 @@
4
4
  * Provides workspace detection and configuration loading
5
5
  * with support for monorepos.
6
6
  */
7
- import { getWorkspaceInfo, findWorkspaceRoot, findPackageRoot, detectPackageManager, type WorkspaceInfo, type PackageManager } from '../adapters/workspace';
7
+ import { detectPackageManager, findPackageRoot, findWorkspaceRoot, getWorkspaceInfo, type PackageManager, type WorkspaceInfo } from '../adapters/workspace';
8
8
  import type { FsAdapter } from '../ports/fs';
9
9
  /**
10
10
  * Monorepo configuration options.
@@ -60,4 +60,4 @@ export declare function mergeMonorepoConfigs(fs: FsAdapter, workspaceConfigPath:
60
60
  * Format workspace info for display.
61
61
  */
62
62
  export declare function formatWorkspaceInfo(info: ExtendedWorkspaceInfo): string;
63
- export { getWorkspaceInfo, findWorkspaceRoot, findPackageRoot, detectPackageManager, type WorkspaceInfo, type PackageManager, };
63
+ export { detectPackageManager, findPackageRoot, findWorkspaceRoot, getWorkspaceInfo, type PackageManager, type WorkspaceInfo, };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Skeleton templates for quickly creating spec stubs.
5
5
  */
6
- export { generateSkeletonOperation } from './skeleton-operation';
6
+ export { generateSkeletonCapability } from './skeleton-capability';
7
7
  export { generateSkeletonEvent } from './skeleton-event';
8
+ export { generateSkeletonOperation } from './skeleton-operation';
8
9
  export { generateSkeletonPresentation } from './skeleton-presentation';
9
- export { generateSkeletonCapability } from './skeleton-capability';
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * Spec templates for generation.
3
3
  */
4
- export * from './operation.template';
5
- export * from './event.template';
6
- export * from './presentation.template';
7
- export * from './workflow.template';
8
- export * from './migration.template';
9
- export * from './telemetry.template';
10
- export * from './experiment.template';
11
4
  export * from './app-config.template';
12
5
  export * from './data-view.template';
6
+ export * from './event.template';
7
+ export * from './experiment.template';
8
+ export * from './feature.template';
9
+ export * from './handler.template';
13
10
  export * from './integration.template';
14
11
  export * from './knowledge.template';
15
- export * from './handler.template';
12
+ export * from './migration.template';
13
+ export * from './operation.template';
14
+ export * from './presentation.template';
15
+ export * from './telemetry.template';
16
+ export * from './workflow.template';
16
17
  export * from './workflow-runner.template';
17
- export * from './feature.template';
@@ -1,3 +1,3 @@
1
+ export * from './filter';
1
2
  export * from './module-loader';
2
3
  export * from './validation';
3
- export * from './filter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/bundle.workspace",
3
- "version": "3.7.5",
3
+ "version": "4.0.0",
4
4
  "description": "Workspace utilities for monorepo development",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -24,8 +24,8 @@
24
24
  "dev": "contractspec-bun-build dev",
25
25
  "clean": "rimraf dist .turbo",
26
26
  "lint": "bun lint:fix",
27
- "lint:fix": "eslint src --fix",
28
- "lint:check": "eslint src",
27
+ "lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
28
+ "lint:check": "biome check .",
29
29
  "test": "bun test",
30
30
  "prebuild": "contractspec-bun-build prebuild",
31
31
  "typecheck": "tsc --noEmit"
@@ -33,18 +33,20 @@
33
33
  "dependencies": {
34
34
  "@ai-sdk/anthropic": "3.0.58",
35
35
  "@ai-sdk/openai": "3.0.41",
36
- "@contractspec/lib.ai-agent": "7.0.5",
37
- "@contractspec/lib.ai-providers": "3.7.5",
38
- "@contractspec/lib.contracts-spec": "3.7.5",
39
- "@contractspec/lib.contracts-integrations": "3.7.5",
40
- "@contractspec/lib.contracts-transformers": "3.7.5",
41
- "@contractspec/lib.source-extractors": "2.7.5",
42
- "@contractspec/module.workspace": "3.7.5",
43
- "@contractspec/lib.utils-typescript": "3.7.5",
36
+ "@contractspec/biome-config": "3.8.0",
37
+ "@contractspec/lib.ai-agent": "7.0.7",
38
+ "@contractspec/lib.ai-providers": "3.7.6",
39
+ "@contractspec/lib.contracts-spec": "4.0.0",
40
+ "@contractspec/lib.contracts-integrations": "3.7.7",
41
+ "@contractspec/lib.contracts-transformers": "3.7.7",
42
+ "@contractspec/lib.source-extractors": "2.7.7",
43
+ "@contractspec/module.workspace": "4.0.0",
44
+ "@contractspec/lib.utils-typescript": "3.7.6",
44
45
  "ai": "6.0.116",
45
46
  "chalk": "^5.6.2",
46
47
  "chokidar": "^5.0.0",
47
48
  "glob": "^13.0.6",
49
+ "js-yaml": "^4.1.1",
48
50
  "micromatch": "^4.0.8",
49
51
  "ollama-ai-provider": "^1.2.0",
50
52
  "ora": "^9.3.0",
@@ -52,12 +54,12 @@
52
54
  "zod": "^4.3.5"
53
55
  },
54
56
  "devDependencies": {
55
- "@contractspec/tool.typescript": "3.7.5",
56
- "@types/bun": "^1.3.10",
57
+ "@contractspec/tool.typescript": "3.7.6",
58
+ "@types/bun": "^1.3.11",
57
59
  "@types/micromatch": "^4.0.10",
58
60
  "@types/node": "^25.3.5",
59
61
  "typescript": "^5.9.3",
60
- "@contractspec/tool.bun": "3.7.5"
62
+ "@contractspec/tool.bun": "3.7.6"
61
63
  },
62
64
  "exports": {
63
65
  ".": {