@contractspec/bundle.workspace 4.4.0 → 4.5.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.
- package/dist/index.js +873 -552
- package/dist/node/index.js +873 -552
- package/dist/services/adoption/catalog-core.d.ts +2 -0
- package/dist/services/adoption/catalog-entry.d.ts +2 -0
- package/dist/services/adoption/catalog-runtime.d.ts +2 -0
- package/dist/services/adoption/catalog-shared.d.ts +2 -0
- package/dist/services/adoption/catalog-solutions.d.ts +2 -0
- package/dist/services/adoption/catalog-ui.d.ts +2 -0
- package/dist/services/adoption/catalog.d.ts +3 -0
- package/dist/services/adoption/index.d.ts +6 -0
- package/dist/services/adoption/resolve.d.ts +6 -0
- package/dist/services/adoption/resolve.test.d.ts +1 -0
- package/dist/services/adoption/tokens.d.ts +6 -0
- package/dist/services/adoption/types.d.ts +99 -0
- package/dist/services/adoption/workspace-scan.d.ts +8 -0
- package/dist/services/adoption/workspace.d.ts +3 -0
- package/dist/services/connect/adoption.d.ts +10 -0
- package/dist/services/connect/types.d.ts +1 -1
- package/dist/services/deps.d.ts +1 -1
- package/dist/services/doctor/checks/config.test.d.ts +1 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/integrity.d.ts +1 -1
- package/dist/services/onboarding/catalog.d.ts +4 -0
- package/dist/services/onboarding/index.d.ts +4 -0
- package/dist/services/onboarding/journey.d.ts +11 -0
- package/dist/services/onboarding/render.d.ts +5 -0
- package/dist/services/onboarding/service.d.ts +5 -0
- package/dist/services/onboarding/service.test.d.ts +1 -0
- package/dist/services/onboarding/types.d.ts +71 -0
- package/dist/services/setup/config-generators.d.ts +4 -0
- package/dist/services/setup/index.d.ts +3 -0
- package/dist/services/setup/managed-markdown.d.ts +8 -0
- package/dist/services/setup/targets/agents-md.d.ts +2 -0
- package/dist/services/setup/targets/index.d.ts +1 -0
- package/dist/services/setup/targets/usage-md.d.ts +5 -0
- package/dist/services/setup/targets/usage-md.test.d.ts +1 -0
- package/dist/services/setup/types.d.ts +2 -2
- package/dist/services/validate/spec-validator.d.ts +1 -1
- package/dist/services/validate/spec-validator.test.d.ts +1 -0
- package/dist/services/versioning/index.d.ts +1 -0
- package/dist/services/versioning/release-authoring.d.ts +14 -0
- package/dist/services/versioning/release-authoring.test.d.ts +1 -0
- package/dist/services/versioning/release-files.d.ts +7 -0
- package/dist/services/versioning/release-service.types.d.ts +53 -1
- package/dist/templates/additional-contracts.template.d.ts +40 -0
- package/dist/templates/advanced-contracts.template.d.ts +39 -0
- package/dist/templates/index.d.ts +3 -0
- package/dist/templates/theme.template.d.ts +12 -0
- package/dist/templates/theme.template.test.d.ts +1 -0
- package/dist/types.d.ts +16 -11
- package/package.json +10 -9
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type Stability = 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
2
|
+
interface BaseTemplateData {
|
|
3
|
+
key: string;
|
|
4
|
+
version: string;
|
|
5
|
+
description: string;
|
|
6
|
+
owners: string[];
|
|
7
|
+
tags: string[];
|
|
8
|
+
stability: Stability;
|
|
9
|
+
title?: string;
|
|
10
|
+
domain?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ExampleSpecTemplateData extends BaseTemplateData {
|
|
13
|
+
packageName?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AgentSpecTemplateData {
|
|
16
|
+
key: string;
|
|
17
|
+
version: string;
|
|
18
|
+
description: string;
|
|
19
|
+
owners: string[];
|
|
20
|
+
tags: string[];
|
|
21
|
+
stability: Stability;
|
|
22
|
+
instructions: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ProductIntentSpecTemplateData extends BaseTemplateData {
|
|
25
|
+
id?: string;
|
|
26
|
+
question: string;
|
|
27
|
+
}
|
|
28
|
+
export interface HarnessScenarioSpecTemplateData extends BaseTemplateData {
|
|
29
|
+
}
|
|
30
|
+
export interface HarnessSuiteSpecTemplateData extends BaseTemplateData {
|
|
31
|
+
scenarioKey: string;
|
|
32
|
+
scenarioVersion?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function generateExampleSpec(data: ExampleSpecTemplateData): string;
|
|
35
|
+
export declare function generateAgentSpec(data: AgentSpecTemplateData): string;
|
|
36
|
+
export declare function generateProductIntentSpec(data: ProductIntentSpecTemplateData): string;
|
|
37
|
+
export declare function generateHarnessScenarioSpec(data: HarnessScenarioSpecTemplateData): string;
|
|
38
|
+
export declare function generateHarnessSuiteSpec(data: HarnessSuiteSpecTemplateData): string;
|
|
39
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Spec templates for generation.
|
|
3
3
|
*/
|
|
4
|
+
export * from './additional-contracts.template';
|
|
5
|
+
export * from './advanced-contracts.template';
|
|
4
6
|
export * from './app-config.template';
|
|
5
7
|
export * from './data-view.template';
|
|
6
8
|
export * from './data-view-renderer.template';
|
|
@@ -15,6 +17,7 @@ export * from './migration.template';
|
|
|
15
17
|
export * from './operation.template';
|
|
16
18
|
export * from './presentation.template';
|
|
17
19
|
export * from './telemetry.template';
|
|
20
|
+
export * from './theme.template';
|
|
18
21
|
export * from './workflow.template';
|
|
19
22
|
export * from './workflow-devkit.template';
|
|
20
23
|
export * from './workflow-runner.template';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ThemeSpecParams {
|
|
2
|
+
key: string;
|
|
3
|
+
version: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
domain: string;
|
|
7
|
+
owners: string[];
|
|
8
|
+
tags: string[];
|
|
9
|
+
stability: 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
10
|
+
scopes: Array<'global' | 'tenant' | 'user'>;
|
|
11
|
+
}
|
|
12
|
+
export declare function generateThemeSpec(params: ThemeSpecParams): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type SpecType = 'operation' | 'event' | 'presentation' | 'form' | 'feature' | 'workflow' | 'data-view' | 'migration' | 'telemetry' | 'experiment' | 'app-config' | 'integration' | 'knowledge';
|
|
2
1
|
export type OpKind = 'command' | 'query';
|
|
3
2
|
export type PresentationKind = 'web_component' | 'markdown' | 'data';
|
|
4
3
|
export type Stability = 'experimental' | 'beta' | 'stable' | 'deprecated';
|
|
@@ -194,7 +193,7 @@ export interface ExperimentSpecData extends BaseSpecData {
|
|
|
194
193
|
}
|
|
195
194
|
export interface AppConfigMappingData {
|
|
196
195
|
slot: string;
|
|
197
|
-
|
|
196
|
+
key: string;
|
|
198
197
|
version?: string;
|
|
199
198
|
}
|
|
200
199
|
export interface AppConfigFeatureFlagData {
|
|
@@ -208,15 +207,21 @@ export interface AppRouteConfigData {
|
|
|
208
207
|
label?: string;
|
|
209
208
|
dataView?: string;
|
|
210
209
|
workflow?: string;
|
|
211
|
-
|
|
210
|
+
guardKey?: string;
|
|
212
211
|
guardVersion?: string;
|
|
213
212
|
featureFlag?: string;
|
|
214
|
-
|
|
213
|
+
experimentKey?: string;
|
|
215
214
|
experimentVersion?: string;
|
|
216
215
|
}
|
|
217
|
-
export interface AppBlueprintSpecData
|
|
216
|
+
export interface AppBlueprintSpecData {
|
|
217
|
+
key: string;
|
|
218
|
+
version: string;
|
|
218
219
|
title: string;
|
|
220
|
+
description: string;
|
|
219
221
|
domain: string;
|
|
222
|
+
owners: string[];
|
|
223
|
+
tags: string[];
|
|
224
|
+
stability: Stability;
|
|
220
225
|
appId: string;
|
|
221
226
|
capabilitiesEnabled: string[];
|
|
222
227
|
capabilitiesDisabled: string[];
|
|
@@ -225,27 +230,27 @@ export interface AppBlueprintSpecData extends BaseSpecData {
|
|
|
225
230
|
dataViews: AppConfigMappingData[];
|
|
226
231
|
workflows: AppConfigMappingData[];
|
|
227
232
|
policyRefs: {
|
|
228
|
-
|
|
233
|
+
key: string;
|
|
229
234
|
version?: string;
|
|
230
235
|
}[];
|
|
231
236
|
theme?: {
|
|
232
|
-
|
|
237
|
+
key: string;
|
|
233
238
|
version: string;
|
|
234
239
|
};
|
|
235
240
|
themeFallbacks: {
|
|
236
|
-
|
|
241
|
+
key: string;
|
|
237
242
|
version: string;
|
|
238
243
|
}[];
|
|
239
244
|
telemetry?: {
|
|
240
|
-
|
|
245
|
+
key: string;
|
|
241
246
|
version?: string;
|
|
242
247
|
};
|
|
243
248
|
activeExperiments: {
|
|
244
|
-
|
|
249
|
+
key: string;
|
|
245
250
|
version?: string;
|
|
246
251
|
}[];
|
|
247
252
|
pausedExperiments: {
|
|
248
|
-
|
|
253
|
+
key: string;
|
|
249
254
|
version?: string;
|
|
250
255
|
}[];
|
|
251
256
|
featureFlags: AppConfigFeatureFlagData[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/bundle.workspace",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Workspace utilities for monorepo development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ai-sdk/anthropic": "3.0.68",
|
|
35
35
|
"@ai-sdk/openai": "3.0.52",
|
|
36
|
-
"@contractspec/biome-config": "3.8.
|
|
37
|
-
"@contractspec/integration.runtime": "3.9.
|
|
38
|
-
"@contractspec/lib.ai-agent": "8.0.
|
|
36
|
+
"@contractspec/biome-config": "3.8.8",
|
|
37
|
+
"@contractspec/integration.runtime": "3.9.2",
|
|
38
|
+
"@contractspec/lib.ai-agent": "8.0.8",
|
|
39
39
|
"@contractspec/lib.ai-providers": "3.7.13",
|
|
40
|
-
"@contractspec/lib.contracts-spec": "5.
|
|
41
|
-
"@contractspec/lib.contracts-integrations": "3.8.
|
|
42
|
-
"@contractspec/lib.contracts-transformers": "3.7.
|
|
43
|
-
"@contractspec/lib.
|
|
44
|
-
"@contractspec/
|
|
40
|
+
"@contractspec/lib.contracts-spec": "5.4.0",
|
|
41
|
+
"@contractspec/lib.contracts-integrations": "3.8.12",
|
|
42
|
+
"@contractspec/lib.contracts-transformers": "3.7.20",
|
|
43
|
+
"@contractspec/lib.surface-runtime": "0.5.20",
|
|
44
|
+
"@contractspec/lib.source-extractors": "2.7.20",
|
|
45
|
+
"@contractspec/module.workspace": "4.3.0",
|
|
45
46
|
"@contractspec/lib.utils-typescript": "3.7.13",
|
|
46
47
|
"ai": "6.0.156",
|
|
47
48
|
"chalk": "^5.6.2",
|