rivet-design 0.22.0 → 0.23.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/rivet.js +6 -0
- package/dist/agent-variants/SessionStore.d.ts +2 -21
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +15 -279
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +0 -3
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +1 -62
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -12
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +1205 -2732
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +2 -84
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/directionBriefs.d.ts +7 -0
- package/dist/agent-variants/directionBriefs.d.ts.map +1 -0
- package/dist/agent-variants/directionBriefs.js +51 -0
- package/dist/agent-variants/directionBriefs.js.map +1 -0
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/index.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.d.ts +0 -1
- package/dist/agent-variants/runPlan.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.js +0 -4
- package/dist/agent-variants/runPlan.js.map +1 -1
- package/dist/agent-variants/sourceContext.d.ts +0 -2
- package/dist/agent-variants/sourceContext.d.ts.map +1 -1
- package/dist/agent-variants/sourceContext.js +1 -35
- package/dist/agent-variants/sourceContext.js.map +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +0 -3
- package/dist/agent-variants/variantsTelemetry.d.ts.map +1 -1
- package/dist/agent-variants/variantsTelemetry.js.map +1 -1
- package/dist/agent-variants/workItemInput.d.ts +662 -662
- package/dist/cli/commands/context.d.ts +3 -1
- package/dist/cli/commands/context.d.ts.map +1 -1
- package/dist/cli/commands/context.js +38 -1
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contextRequest.d.ts +1 -0
- package/dist/cli/commands/contextRequest.d.ts.map +1 -1
- package/dist/cli/commands/contextRequest.js +65 -5
- package/dist/cli/commands/contextRequest.js.map +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +1 -0
- package/dist/cli/commands/guidanceReferences.d.ts.map +1 -1
- package/dist/cli/commands/guidanceReferences.js +5 -4
- package/dist/cli/commands/guidanceReferences.js.map +1 -1
- package/dist/cli/commands/guidanceVerifierPackage.d.ts +9 -0
- package/dist/cli/commands/guidanceVerifierPackage.d.ts.map +1 -0
- package/dist/cli/commands/guidanceVerifierPackage.js +41 -0
- package/dist/cli/commands/guidanceVerifierPackage.js.map +1 -0
- package/dist/cli/commands/mcpServe.d.ts +1 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +457 -326
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/variants.js +2 -2
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/handoffStore.d.ts +0 -1
- package/dist/cli/handoffStore.d.ts.map +1 -1
- package/dist/cli/handoffStore.js +1 -11
- package/dist/cli/handoffStore.js.map +1 -1
- package/dist/cli/router.d.ts +3 -1
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +4 -3
- package/dist/cli/router.js.map +1 -1
- package/dist/config/flags.d.ts +0 -3
- package/dist/config/flags.d.ts.map +1 -1
- package/dist/config/flags.js +0 -1
- package/dist/config/flags.js.map +1 -1
- package/dist/config/proxy.d.ts +0 -2
- package/dist/config/proxy.d.ts.map +1 -1
- package/dist/config/proxy.js +1 -10
- package/dist/config/proxy.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +0 -1
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +1 -2
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index-core.d.ts +1 -2
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +1 -3
- package/dist/index-core.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +1 -11
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +0 -38
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/routes/git.d.ts +0 -1
- package/dist/routes/git.d.ts.map +1 -1
- package/dist/routes/git.js +2 -7
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/library/guidance.d.ts.map +1 -1
- package/dist/routes/library/guidance.js +7 -0
- package/dist/routes/library/guidance.js.map +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -8
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +6 -12
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +1 -116
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/CommitMessageGenerator.d.ts +1 -5
- package/dist/services/CommitMessageGenerator.d.ts.map +1 -1
- package/dist/services/CommitMessageGenerator.js +9 -38
- package/dist/services/CommitMessageGenerator.js.map +1 -1
- package/dist/services/GuidanceVerifierRunner.d.ts +15 -0
- package/dist/services/GuidanceVerifierRunner.d.ts.map +1 -0
- package/dist/services/GuidanceVerifierRunner.js +373 -0
- package/dist/services/GuidanceVerifierRunner.js.map +1 -0
- package/dist/services/HubDiscovery.d.ts +2 -2
- package/dist/services/IntegrationsClient.d.ts +6 -6
- package/dist/services/LocalGitService.d.ts +0 -3
- package/dist/services/LocalGitService.d.ts.map +1 -1
- package/dist/services/LocalGitService.js +0 -41
- package/dist/services/LocalGitService.js.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -2
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +1 -78
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/OperatingSystemServices.d.ts.map +1 -1
- package/dist/services/OperatingSystemServices.js +12 -5
- package/dist/services/OperatingSystemServices.js.map +1 -1
- package/dist/services/PRTitleGenerator.d.ts +2 -8
- package/dist/services/PRTitleGenerator.d.ts.map +1 -1
- package/dist/services/PRTitleGenerator.js +12 -74
- package/dist/services/PRTitleGenerator.js.map +1 -1
- package/dist/services/ProjectRegistry.d.ts +2 -2
- package/dist/services/SessionService.d.ts +1 -4
- package/dist/services/SessionService.d.ts.map +1 -1
- package/dist/services/SessionService.js +5 -16
- package/dist/services/SessionService.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +1 -9
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +0 -28
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +1 -9
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +16 -140
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +0 -6
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +1 -28
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +0 -1
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -3
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +1 -33
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/guidanceDelivery.d.ts +0 -5
- package/dist/services/guidanceDelivery.d.ts.map +1 -1
- package/dist/services/guidanceDelivery.js +1 -20
- package/dist/services/guidanceDelivery.js.map +1 -1
- package/dist/services/guidanceReferences.d.ts.map +1 -1
- package/dist/services/guidanceReferences.js +2 -76
- package/dist/services/guidanceReferences.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +61 -46
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +71 -17
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfileImports.d.ts +1 -1
- package/dist/services/profiles/ProfilePlanning.d.ts +9 -9
- package/dist/services/profiles/ReferenceReader.d.ts +5 -5
- package/dist/services/profiles/profileContext.d.ts +2 -2
- package/dist/services/retainedTextFiles.d.ts +8 -0
- package/dist/services/retainedTextFiles.d.ts.map +1 -0
- package/dist/services/retainedTextFiles.js +95 -0
- package/dist/services/retainedTextFiles.js.map +1 -0
- package/dist/services/staticProjectTarget.d.ts +0 -1
- package/dist/services/staticProjectTarget.d.ts.map +1 -1
- package/dist/services/staticProjectTarget.js +1 -5
- package/dist/services/staticProjectTarget.js.map +1 -1
- package/dist/services/templates/designCatalog.d.ts +0 -4
- package/dist/services/templates/designCatalog.d.ts.map +1 -1
- package/dist/services/templates/designCatalog.js +1 -27
- package/dist/services/templates/designCatalog.js.map +1 -1
- package/dist/storage/profiles/ProfilePlans.d.ts +33 -33
- package/dist/storage/profiles/ProfileRecords.d.ts +60 -11
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
- package/dist/storage/profiles/ProfileRecords.js +74 -17
- package/dist/storage/profiles/ProfileRecords.js.map +1 -1
- package/dist/storage/profiles/guidanceVerifier.d.ts +3 -0
- package/dist/storage/profiles/guidanceVerifier.d.ts.map +1 -0
- package/dist/storage/profiles/guidanceVerifier.js +30 -0
- package/dist/storage/profiles/guidanceVerifier.js.map +1 -0
- package/dist/storage/profiles/migrations.d.ts +2 -2
- package/dist/storage/profiles/migrations.d.ts.map +1 -1
- package/dist/storage/profiles/migrations.js +3 -0
- package/dist/storage/profiles/migrations.js.map +1 -1
- package/dist/storage/profiles/planSchema.d.ts +9 -9
- package/dist/storage/profiles/schema.d.ts +35 -8
- package/dist/storage/profiles/schema.d.ts.map +1 -1
- package/dist/storage/profiles/schema.js +1 -0
- package/dist/storage/profiles/schema.js.map +1 -1
- package/dist/types/change-types.d.ts +0 -25
- package/dist/types/change-types.d.ts.map +1 -1
- package/dist/types/cosmos-profile.d.ts +18 -18
- package/dist/types/cosmos.d.ts +30 -30
- package/dist/types/design-profile.d.ts +33 -33
- package/dist/types/guidance-references.d.ts +22 -6
- package/dist/types/guidance-references.d.ts.map +1 -1
- package/dist/types/guidance-references.js +44 -30
- package/dist/types/guidance-references.js.map +1 -1
- package/dist/types/guidance-verifier.d.ts +265 -0
- package/dist/types/guidance-verifier.d.ts.map +1 -0
- package/dist/types/guidance-verifier.js +71 -0
- package/dist/types/guidance-verifier.js.map +1 -0
- package/dist/types/guidance.d.ts +508 -93
- package/dist/types/guidance.d.ts.map +1 -1
- package/dist/types/guidance.js +13 -2
- package/dist/types/guidance.js.map +1 -1
- package/dist/types/reference-connectors.d.ts +30 -30
- package/dist/types/reference-onboarding.d.ts +111 -111
- package/dist/types/reference-pages.d.ts +10 -10
- package/dist/types/variant-reference.d.ts +8 -8
- package/dist/types/x-bookmarks.d.ts +10 -10
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +19 -6
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/codex-skill.d.ts +1 -1
- package/dist/utils/skills/codex-skill.d.ts.map +1 -1
- package/dist/utils/skills/codex-skill.js +1 -1
- package/package.json +2 -2
- package/src/ui/dist/assets/{LibraryEntry-CjxmVfhv.js → LibraryEntry-BUwOgHmJ.js} +8 -8
- package/src/ui/dist/assets/main-CXP-A-qy.css +1 -0
- package/src/ui/dist/assets/main-DQKavyjz.js +435 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/agent-variants/directionAuthoring.d.ts +0 -27
- package/dist/agent-variants/directionAuthoring.d.ts.map +0 -1
- package/dist/agent-variants/directionAuthoring.js +0 -380
- package/dist/agent-variants/directionAuthoring.js.map +0 -1
- package/dist/prompts/gitPrompts.d.ts +0 -4
- package/dist/prompts/gitPrompts.d.ts.map +0 -1
- package/dist/prompts/gitPrompts.js +0 -61
- package/dist/prompts/gitPrompts.js.map +0 -1
- package/dist/services/ComponentSearchService.d.ts +0 -13
- package/dist/services/ComponentSearchService.d.ts.map +0 -1
- package/dist/services/ComponentSearchService.js +0 -167
- package/dist/services/ComponentSearchService.js.map +0 -1
- package/dist/services/GatewayClient.d.ts +0 -44
- package/dist/services/GatewayClient.d.ts.map +0 -1
- package/dist/services/GatewayClient.js +0 -204
- package/dist/services/GatewayClient.js.map +0 -1
- package/dist/types/style-manipulation-types.d.ts +0 -63
- package/dist/types/style-manipulation-types.d.ts.map +0 -1
- package/dist/types/style-manipulation-types.js +0 -68
- package/dist/types/style-manipulation-types.js.map +0 -1
- package/dist/types/token-types.d.ts +0 -24
- package/dist/types/token-types.d.ts.map +0 -1
- package/dist/types/token-types.js +0 -3
- package/dist/types/token-types.js.map +0 -1
- package/src/ui/dist/assets/main-CdSzrhWD.js +0 -435
- package/src/ui/dist/assets/main-DVb3ws41.css +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuidanceVerification } from '../../types/guidance-verifier';
|
|
1
2
|
import { type ReferenceDiscoveryRequest, type ReferenceProvider } from '../../types/reference-connectors';
|
|
2
3
|
import type { ReferenceConnectorClient } from './ReferenceReader';
|
|
3
4
|
import { IntegrationsClient } from '../IntegrationsClient';
|
|
@@ -25,17 +26,17 @@ export declare class DesignProfiles {
|
|
|
25
26
|
private opening;
|
|
26
27
|
constructor(options: DesignProfilesOptions);
|
|
27
28
|
listGuidance(expectedAccountId?: string): Promise<{
|
|
28
|
-
id: string;
|
|
29
29
|
title: string;
|
|
30
|
+
id: string;
|
|
30
31
|
markdown: string;
|
|
31
32
|
isEnabled: boolean;
|
|
32
33
|
attachments?: {
|
|
33
34
|
path: string;
|
|
34
|
-
source: string;
|
|
35
35
|
hash: string;
|
|
36
36
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
37
37
|
bytes: number;
|
|
38
|
-
representation: "
|
|
38
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
39
|
+
source: string;
|
|
39
40
|
alt: string;
|
|
40
41
|
title?: string | undefined;
|
|
41
42
|
page?: number | undefined;
|
|
@@ -48,28 +49,31 @@ export declare class DesignProfiles {
|
|
|
48
49
|
url: string;
|
|
49
50
|
kind: "url" | "repository";
|
|
50
51
|
intent: string;
|
|
51
|
-
digest?: string | undefined;
|
|
52
52
|
files?: {
|
|
53
53
|
name: string;
|
|
54
54
|
content: string;
|
|
55
55
|
path?: string | undefined;
|
|
56
56
|
sha256?: string | undefined;
|
|
57
57
|
}[] | undefined;
|
|
58
|
+
digest?: string | undefined;
|
|
58
59
|
revision?: string | undefined;
|
|
59
60
|
})[] | undefined;
|
|
61
|
+
verifier?: {
|
|
62
|
+
isStale: boolean;
|
|
63
|
+
} | undefined;
|
|
60
64
|
}[]>;
|
|
61
65
|
getGuidance(id: string, expectedAccountId?: string): Promise<{
|
|
62
|
-
id: string;
|
|
63
66
|
title: string;
|
|
67
|
+
id: string;
|
|
64
68
|
markdown: string;
|
|
65
69
|
isEnabled: boolean;
|
|
66
70
|
attachments?: {
|
|
67
71
|
path: string;
|
|
68
|
-
source: string;
|
|
69
72
|
hash: string;
|
|
70
73
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
71
74
|
bytes: number;
|
|
72
|
-
representation: "
|
|
75
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
76
|
+
source: string;
|
|
73
77
|
alt: string;
|
|
74
78
|
title?: string | undefined;
|
|
75
79
|
page?: number | undefined;
|
|
@@ -82,15 +86,18 @@ export declare class DesignProfiles {
|
|
|
82
86
|
url: string;
|
|
83
87
|
kind: "url" | "repository";
|
|
84
88
|
intent: string;
|
|
85
|
-
digest?: string | undefined;
|
|
86
89
|
files?: {
|
|
87
90
|
name: string;
|
|
88
91
|
content: string;
|
|
89
92
|
path?: string | undefined;
|
|
90
93
|
sha256?: string | undefined;
|
|
91
94
|
}[] | undefined;
|
|
95
|
+
digest?: string | undefined;
|
|
92
96
|
revision?: string | undefined;
|
|
93
97
|
})[] | undefined;
|
|
98
|
+
verifier?: {
|
|
99
|
+
isStale: boolean;
|
|
100
|
+
} | undefined;
|
|
94
101
|
}>;
|
|
95
102
|
addGuidance(input: GuidanceUpload, expectedAccountId?: string): Promise<{
|
|
96
103
|
guidanceWarning?: {
|
|
@@ -99,17 +106,17 @@ export declare class DesignProfiles {
|
|
|
99
106
|
documentCount: number;
|
|
100
107
|
byteCount: number;
|
|
101
108
|
} | undefined;
|
|
102
|
-
id: string;
|
|
103
109
|
title: string;
|
|
110
|
+
id: string;
|
|
104
111
|
markdown: string;
|
|
105
112
|
isEnabled: boolean;
|
|
106
113
|
attachments?: {
|
|
107
114
|
path: string;
|
|
108
|
-
source: string;
|
|
109
115
|
hash: string;
|
|
110
116
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
111
117
|
bytes: number;
|
|
112
|
-
representation: "
|
|
118
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
119
|
+
source: string;
|
|
113
120
|
alt: string;
|
|
114
121
|
title?: string | undefined;
|
|
115
122
|
page?: number | undefined;
|
|
@@ -122,15 +129,18 @@ export declare class DesignProfiles {
|
|
|
122
129
|
url: string;
|
|
123
130
|
kind: "url" | "repository";
|
|
124
131
|
intent: string;
|
|
125
|
-
digest?: string | undefined;
|
|
126
132
|
files?: {
|
|
127
133
|
name: string;
|
|
128
134
|
content: string;
|
|
129
135
|
path?: string | undefined;
|
|
130
136
|
sha256?: string | undefined;
|
|
131
137
|
}[] | undefined;
|
|
138
|
+
digest?: string | undefined;
|
|
132
139
|
revision?: string | undefined;
|
|
133
140
|
})[] | undefined;
|
|
141
|
+
verifier?: {
|
|
142
|
+
isStale: boolean;
|
|
143
|
+
} | undefined;
|
|
134
144
|
}>;
|
|
135
145
|
updateGuidance(input: GuidanceUploadUpdate & {
|
|
136
146
|
id: string;
|
|
@@ -141,17 +151,17 @@ export declare class DesignProfiles {
|
|
|
141
151
|
documentCount: number;
|
|
142
152
|
byteCount: number;
|
|
143
153
|
} | undefined;
|
|
144
|
-
id: string;
|
|
145
154
|
title: string;
|
|
155
|
+
id: string;
|
|
146
156
|
markdown: string;
|
|
147
157
|
isEnabled: boolean;
|
|
148
158
|
attachments?: {
|
|
149
159
|
path: string;
|
|
150
|
-
source: string;
|
|
151
160
|
hash: string;
|
|
152
161
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
153
162
|
bytes: number;
|
|
154
|
-
representation: "
|
|
163
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
164
|
+
source: string;
|
|
155
165
|
alt: string;
|
|
156
166
|
title?: string | undefined;
|
|
157
167
|
page?: number | undefined;
|
|
@@ -164,15 +174,18 @@ export declare class DesignProfiles {
|
|
|
164
174
|
url: string;
|
|
165
175
|
kind: "url" | "repository";
|
|
166
176
|
intent: string;
|
|
167
|
-
digest?: string | undefined;
|
|
168
177
|
files?: {
|
|
169
178
|
name: string;
|
|
170
179
|
content: string;
|
|
171
180
|
path?: string | undefined;
|
|
172
181
|
sha256?: string | undefined;
|
|
173
182
|
}[] | undefined;
|
|
183
|
+
digest?: string | undefined;
|
|
174
184
|
revision?: string | undefined;
|
|
175
185
|
})[] | undefined;
|
|
186
|
+
verifier?: {
|
|
187
|
+
isStale: boolean;
|
|
188
|
+
} | undefined;
|
|
176
189
|
}>;
|
|
177
190
|
removeGuidance(id: string, expectedAccountId?: string): Promise<void>;
|
|
178
191
|
private importGuidanceImages;
|
|
@@ -185,16 +198,16 @@ export declare class DesignProfiles {
|
|
|
185
198
|
} | undefined;
|
|
186
199
|
accountId: string;
|
|
187
200
|
guidance: {
|
|
188
|
-
id: string;
|
|
189
201
|
title: string;
|
|
202
|
+
id: string;
|
|
190
203
|
markdown: string;
|
|
191
204
|
attachments?: {
|
|
192
205
|
path: string;
|
|
193
|
-
source: string;
|
|
194
206
|
hash: string;
|
|
195
207
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
196
208
|
bytes: number;
|
|
197
|
-
representation: "
|
|
209
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
210
|
+
source: string;
|
|
198
211
|
alt: string;
|
|
199
212
|
title?: string | undefined;
|
|
200
213
|
page?: number | undefined;
|
|
@@ -207,17 +220,19 @@ export declare class DesignProfiles {
|
|
|
207
220
|
url: string;
|
|
208
221
|
kind: "url" | "repository";
|
|
209
222
|
intent: string;
|
|
210
|
-
digest?: string | undefined;
|
|
211
223
|
files?: {
|
|
212
224
|
name: string;
|
|
213
225
|
content: string;
|
|
214
226
|
path?: string | undefined;
|
|
215
227
|
sha256?: string | undefined;
|
|
216
228
|
}[] | undefined;
|
|
229
|
+
digest?: string | undefined;
|
|
217
230
|
revision?: string | undefined;
|
|
218
231
|
})[] | undefined;
|
|
219
232
|
}[];
|
|
220
233
|
}>;
|
|
234
|
+
prepareGuidanceVerification(id: string, expectedAccountId?: string): Promise<GuidanceVerification>;
|
|
235
|
+
private materializeGuidance;
|
|
221
236
|
private guidanceAccount;
|
|
222
237
|
private withGuidanceRecords;
|
|
223
238
|
discoverReferences({ signal, ...input }: ReferenceDiscoveryRequest & {
|
|
@@ -228,18 +243,18 @@ export declare class DesignProfiles {
|
|
|
228
243
|
id: string;
|
|
229
244
|
total: number;
|
|
230
245
|
collections: {
|
|
231
|
-
id: string;
|
|
232
|
-
description: string | null;
|
|
233
246
|
url: string | null;
|
|
234
247
|
title: string;
|
|
248
|
+
description: string | null;
|
|
249
|
+
id: string;
|
|
235
250
|
children: string[];
|
|
236
251
|
total: number | null;
|
|
237
252
|
parentId: string | null;
|
|
238
253
|
}[];
|
|
239
254
|
profile: {
|
|
240
|
-
id: string;
|
|
241
255
|
url: string;
|
|
242
256
|
title: string;
|
|
257
|
+
id: string;
|
|
243
258
|
username: string;
|
|
244
259
|
};
|
|
245
260
|
createdAt: string;
|
|
@@ -257,9 +272,9 @@ export declare class DesignProfiles {
|
|
|
257
272
|
revision: string;
|
|
258
273
|
discoveryId: string;
|
|
259
274
|
profile: {
|
|
260
|
-
id: string;
|
|
261
275
|
url: string;
|
|
262
276
|
title: string;
|
|
277
|
+
id: string;
|
|
263
278
|
username: string;
|
|
264
279
|
};
|
|
265
280
|
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
@@ -271,10 +286,10 @@ export declare class DesignProfiles {
|
|
|
271
286
|
collections: {
|
|
272
287
|
includedCollectionIds: string[];
|
|
273
288
|
referenceCount: number;
|
|
274
|
-
id: string;
|
|
275
|
-
description: string | null;
|
|
276
289
|
url: string | null;
|
|
277
290
|
title: string;
|
|
291
|
+
description: string | null;
|
|
292
|
+
id: string;
|
|
278
293
|
children: string[];
|
|
279
294
|
total: number | null;
|
|
280
295
|
parentId: string | null;
|
|
@@ -296,9 +311,9 @@ export declare class DesignProfiles {
|
|
|
296
311
|
revision: string;
|
|
297
312
|
discoveryId: string;
|
|
298
313
|
profile: {
|
|
299
|
-
id: string;
|
|
300
314
|
url: string;
|
|
301
315
|
title: string;
|
|
316
|
+
id: string;
|
|
302
317
|
username: string;
|
|
303
318
|
};
|
|
304
319
|
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
@@ -310,10 +325,10 @@ export declare class DesignProfiles {
|
|
|
310
325
|
collections: {
|
|
311
326
|
includedCollectionIds: string[];
|
|
312
327
|
referenceCount: number;
|
|
313
|
-
id: string;
|
|
314
|
-
description: string | null;
|
|
315
328
|
url: string | null;
|
|
316
329
|
title: string;
|
|
330
|
+
description: string | null;
|
|
331
|
+
id: string;
|
|
317
332
|
children: string[];
|
|
318
333
|
total: number | null;
|
|
319
334
|
parentId: string | null;
|
|
@@ -357,9 +372,9 @@ export declare class DesignProfiles {
|
|
|
357
372
|
revision: string;
|
|
358
373
|
discoveryId: string;
|
|
359
374
|
profile: {
|
|
360
|
-
id: string;
|
|
361
375
|
url: string;
|
|
362
376
|
title: string;
|
|
377
|
+
id: string;
|
|
363
378
|
username: string;
|
|
364
379
|
};
|
|
365
380
|
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
@@ -371,10 +386,10 @@ export declare class DesignProfiles {
|
|
|
371
386
|
collections: {
|
|
372
387
|
includedCollectionIds: string[];
|
|
373
388
|
referenceCount: number;
|
|
374
|
-
id: string;
|
|
375
|
-
description: string | null;
|
|
376
389
|
url: string | null;
|
|
377
390
|
title: string;
|
|
391
|
+
description: string | null;
|
|
392
|
+
id: string;
|
|
378
393
|
children: string[];
|
|
379
394
|
total: number | null;
|
|
380
395
|
parentId: string | null;
|
|
@@ -403,7 +418,7 @@ export declare class DesignProfiles {
|
|
|
403
418
|
};
|
|
404
419
|
sources: {
|
|
405
420
|
id: string;
|
|
406
|
-
provider: "
|
|
421
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
407
422
|
remoteId: string;
|
|
408
423
|
resolvedRemoteId: string | null;
|
|
409
424
|
title: string;
|
|
@@ -474,7 +489,7 @@ export declare class DesignProfiles {
|
|
|
474
489
|
pendingIndex: number;
|
|
475
490
|
};
|
|
476
491
|
id: string;
|
|
477
|
-
provider: "
|
|
492
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
478
493
|
remoteId: string;
|
|
479
494
|
resolvedRemoteId: string | null;
|
|
480
495
|
title: string;
|
|
@@ -544,7 +559,7 @@ export declare class DesignProfiles {
|
|
|
544
559
|
};
|
|
545
560
|
sources: {
|
|
546
561
|
id: string;
|
|
547
|
-
provider: "
|
|
562
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
548
563
|
remoteId: string;
|
|
549
564
|
resolvedRemoteId: string | null;
|
|
550
565
|
title: string;
|
|
@@ -597,7 +612,7 @@ export declare class DesignProfiles {
|
|
|
597
612
|
}): Promise<{
|
|
598
613
|
source: {
|
|
599
614
|
id: string;
|
|
600
|
-
provider: "
|
|
615
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
601
616
|
remoteId: string;
|
|
602
617
|
resolvedRemoteId: string | null;
|
|
603
618
|
title: string;
|
|
@@ -614,7 +629,7 @@ export declare class DesignProfiles {
|
|
|
614
629
|
}): Promise<{
|
|
615
630
|
source: {
|
|
616
631
|
id: string;
|
|
617
|
-
provider: "
|
|
632
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
618
633
|
remoteId: string;
|
|
619
634
|
resolvedRemoteId: string | null;
|
|
620
635
|
title: string;
|
|
@@ -634,7 +649,7 @@ export declare class DesignProfiles {
|
|
|
634
649
|
addVariant(input: ProfileVariantInput): Promise<{
|
|
635
650
|
source: {
|
|
636
651
|
id: string;
|
|
637
|
-
provider: "
|
|
652
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
638
653
|
remoteId: string;
|
|
639
654
|
resolvedRemoteId: string | null;
|
|
640
655
|
title: string;
|
|
@@ -656,7 +671,7 @@ export declare class DesignProfiles {
|
|
|
656
671
|
} | {
|
|
657
672
|
source: {
|
|
658
673
|
id: string;
|
|
659
|
-
provider: "
|
|
674
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
660
675
|
remoteId: string;
|
|
661
676
|
resolvedRemoteId: string | null;
|
|
662
677
|
title: string;
|
|
@@ -694,7 +709,7 @@ export declare class DesignProfiles {
|
|
|
694
709
|
};
|
|
695
710
|
sources: {
|
|
696
711
|
id: string;
|
|
697
|
-
provider: "
|
|
712
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
698
713
|
remoteId: string;
|
|
699
714
|
resolvedRemoteId: string | null;
|
|
700
715
|
title: string;
|
|
@@ -773,8 +788,8 @@ export declare class DesignProfiles {
|
|
|
773
788
|
description: string;
|
|
774
789
|
revision: number;
|
|
775
790
|
runtime: "claude" | "codex" | "cursor" | "user";
|
|
776
|
-
referenceId: string;
|
|
777
791
|
evidence: "observation" | "preference";
|
|
792
|
+
referenceId: string;
|
|
778
793
|
usage?: {
|
|
779
794
|
inputTokens?: number | undefined;
|
|
780
795
|
outputTokens?: number | undefined;
|
|
@@ -784,15 +799,15 @@ export declare class DesignProfiles {
|
|
|
784
799
|
} | null;
|
|
785
800
|
id: string;
|
|
786
801
|
revision: number;
|
|
802
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
787
803
|
title: string;
|
|
788
804
|
text: string;
|
|
789
|
-
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
790
805
|
remoteId: string;
|
|
791
806
|
media: {
|
|
792
807
|
hash: string;
|
|
793
808
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
794
809
|
bytes: number;
|
|
795
|
-
representation: "
|
|
810
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
796
811
|
page?: number | undefined;
|
|
797
812
|
}[];
|
|
798
813
|
url?: string | undefined;
|
|
@@ -836,9 +851,9 @@ export declare class DesignProfiles {
|
|
|
836
851
|
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
837
852
|
requestId: string;
|
|
838
853
|
selected: {
|
|
839
|
-
id: string;
|
|
840
854
|
reason: string;
|
|
841
855
|
revision: number;
|
|
856
|
+
id: string;
|
|
842
857
|
sourceTitles: string[];
|
|
843
858
|
url?: string | undefined;
|
|
844
859
|
title?: string | undefined;
|
|
@@ -866,14 +881,14 @@ export declare class DesignProfiles {
|
|
|
866
881
|
allocation?: "equal-share" | undefined;
|
|
867
882
|
} | undefined;
|
|
868
883
|
suppliedReferences?: {
|
|
869
|
-
id: string;
|
|
870
884
|
title: string;
|
|
885
|
+
id: string;
|
|
871
886
|
url?: string | undefined;
|
|
887
|
+
reason?: string | undefined;
|
|
872
888
|
image?: {
|
|
873
889
|
hash: string;
|
|
874
890
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
875
891
|
} | undefined;
|
|
876
|
-
reason?: string | undefined;
|
|
877
892
|
}[] | undefined;
|
|
878
893
|
failedUploadCount?: number | undefined;
|
|
879
894
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignProfiles.d.ts","sourceRoot":"","sources":["../../../src/services/profiles/DesignProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAS3D,OAAO,EAEL,KAAK,cAAc,IAAI,eAAe,EACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DesignProfiles.d.ts","sourceRoot":"","sources":["../../../src/services/profiles/DesignProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAS3D,OAAO,EAEL,KAAK,cAAc,IAAI,eAAe,EACvC,MAAM,4BAA4B,CAAC;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AC;IAgB3D,aAAa,CAAC,KAAK,EAAE;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,eAAe,CAAC;KAC1B,GAAG,OAAO,CAAC,eAAe,CAAC;IA0BtB,OAAO,CAAC,KAAK,EAAE,gBAAgB,EAAE,SAAS,qBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsE7D,kBAAkB;IAiF1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAcd,OAAO;IA8ErB,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,OAAO;YAkBD,KAAK;YAQL,SAAS;CAqExB"}
|
|
@@ -15,6 +15,7 @@ const design_profile_2 = require("../../types/design-profile");
|
|
|
15
15
|
const guidance_1 = require("../../types/guidance");
|
|
16
16
|
const guidanceImages_1 = require("../guidanceImages");
|
|
17
17
|
const guidanceReferences_1 = require("../guidanceReferences");
|
|
18
|
+
const retainedTextFiles_1 = require("../retainedTextFiles");
|
|
18
19
|
const promises_1 = __importDefault(require("fs/promises"));
|
|
19
20
|
const path_1 = __importDefault(require("path"));
|
|
20
21
|
const os_1 = __importDefault(require("os"));
|
|
@@ -123,23 +124,7 @@ class DesignProfiles {
|
|
|
123
124
|
if (selection.mode === 'off')
|
|
124
125
|
return { accountId, guidance: [] };
|
|
125
126
|
return this.withGuidanceRecords(async (records) => {
|
|
126
|
-
const guidance = await (
|
|
127
|
-
documents: records.resolveGuidance(selection),
|
|
128
|
-
dataDirectory: records.directory,
|
|
129
|
-
});
|
|
130
|
-
const media = new ProfileMedia_1.ProfileMedia(records.directory);
|
|
131
|
-
const paths = new Map();
|
|
132
|
-
for (const document of guidance) {
|
|
133
|
-
for (const image of document.attachments ?? []) {
|
|
134
|
-
try {
|
|
135
|
-
image.path = paths.get(image.hash) ?? (await media.resolve(image));
|
|
136
|
-
paths.set(image.hash, image.path);
|
|
137
|
-
}
|
|
138
|
-
catch {
|
|
139
|
-
throw (0, guidanceImages_1.guidanceAssetError)(image.source, `Required image for "${document.title}" is missing or unreadable. Update the document to restore it.`);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
127
|
+
const guidance = await this.materializeGuidance(records, records.resolveGuidance(selection));
|
|
143
128
|
const warning = (0, guidance_1.guidanceWarning)(guidance);
|
|
144
129
|
return {
|
|
145
130
|
accountId,
|
|
@@ -148,6 +133,75 @@ class DesignProfiles {
|
|
|
148
133
|
};
|
|
149
134
|
}, accountId);
|
|
150
135
|
}
|
|
136
|
+
async prepareGuidanceVerification(id, expectedAccountId) {
|
|
137
|
+
return this.withGuidanceRecords(async (records) => {
|
|
138
|
+
const { source, sourceDigest, verifier } = records.getGuidanceVerifier(id);
|
|
139
|
+
const [resolvedSource] = await this.materializeGuidance(records, [
|
|
140
|
+
source,
|
|
141
|
+
]);
|
|
142
|
+
const resolved = {
|
|
143
|
+
source: resolvedSource,
|
|
144
|
+
sourceDigest,
|
|
145
|
+
execution: 'host_required',
|
|
146
|
+
};
|
|
147
|
+
if (!verifier)
|
|
148
|
+
return {
|
|
149
|
+
...resolved,
|
|
150
|
+
verifierState: 'missing',
|
|
151
|
+
nextAction: {
|
|
152
|
+
action: 'create_context_verifier',
|
|
153
|
+
instructions: 'Author and execute a focused verifier against this source and the user-selected target. Record observable checks and evidence before offering to save it for reuse.',
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
if (verifier.sourceDigest !== sourceDigest)
|
|
157
|
+
return {
|
|
158
|
+
...resolved,
|
|
159
|
+
verifier,
|
|
160
|
+
verifierState: 'stale',
|
|
161
|
+
nextAction: {
|
|
162
|
+
action: 'revise_context_verifier',
|
|
163
|
+
instructions: 'The source changed after this verifier was saved. Revise and execute a temporary recipe against the supplied source before offering to replace the saved verifier.',
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
return {
|
|
167
|
+
...resolved,
|
|
168
|
+
verifier,
|
|
169
|
+
verifierState: 'ready',
|
|
170
|
+
...(verifier.package
|
|
171
|
+
? {
|
|
172
|
+
packageDirectory: await (0, retainedTextFiles_1.materializeTextFiles)({
|
|
173
|
+
files: verifier.package.files,
|
|
174
|
+
directory: path_1.default.join(records.directory, 'guidance-verifiers'),
|
|
175
|
+
}),
|
|
176
|
+
}
|
|
177
|
+
: {}),
|
|
178
|
+
nextAction: {
|
|
179
|
+
action: 'run_context_verifier',
|
|
180
|
+
instructions: 'Execute the saved verifier against this source and the user-selected target. Report pass, fail, or unable to verify with evidence. Retrieval has not executed any checks.',
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
}, expectedAccountId);
|
|
184
|
+
}
|
|
185
|
+
async materializeGuidance(records, documents) {
|
|
186
|
+
const guidance = await (0, guidanceReferences_1.materializeGuidanceReferences)({
|
|
187
|
+
documents,
|
|
188
|
+
dataDirectory: records.directory,
|
|
189
|
+
});
|
|
190
|
+
const media = new ProfileMedia_1.ProfileMedia(records.directory);
|
|
191
|
+
const paths = new Map();
|
|
192
|
+
for (const document of guidance) {
|
|
193
|
+
for (const image of document.attachments ?? []) {
|
|
194
|
+
try {
|
|
195
|
+
image.path = paths.get(image.hash) ?? (await media.resolve(image));
|
|
196
|
+
paths.set(image.hash, image.path);
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
throw (0, guidanceImages_1.guidanceAssetError)(image.source, `Required image for "${document.title}" is missing or unreadable. Update the document to restore it.`);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return guidance;
|
|
204
|
+
}
|
|
151
205
|
guidanceAccount(expectedAccountId) {
|
|
152
206
|
const accountId = this.options.accountId();
|
|
153
207
|
if (expectedAccountId && expectedAccountId !== accountId)
|