rivet-design 0.23.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/dist/agent-variants/contracts.d.ts +330 -330
- package/dist/agent-variants/workItemInput.d.ts +192 -192
- 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/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/server.d.ts.map +1 -1
- package/dist/server.js +1 -5
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +2 -2
- 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/IntegrationsClient.d.ts +3 -3
- 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/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/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/profiles/DesignProfiles.d.ts +30 -30
- package/dist/services/profiles/ProfileImports.d.ts +1 -1
- package/dist/services/profiles/ProfilePlanning.d.ts +4 -4
- package/dist/services/profiles/ReferenceReader.d.ts +3 -3
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/storage/profiles/ProfilePlans.d.ts +15 -15
- package/dist/storage/profiles/ProfileRecords.d.ts +11 -11
- package/dist/storage/profiles/planSchema.d.ts +4 -4
- package/dist/storage/profiles/schema.d.ts +7 -7
- package/dist/types/cosmos-profile.d.ts +6 -6
- package/dist/types/cosmos.d.ts +10 -10
- package/dist/types/design-profile.d.ts +17 -17
- package/dist/types/guidance-references.d.ts +6 -6
- package/dist/types/guidance.d.ts +80 -80
- package/dist/types/reference-connectors.d.ts +10 -10
- package/dist/types/reference-onboarding.d.ts +63 -63
- package/dist/types/reference-pages.d.ts +10 -10
- package/dist/types/variant-reference.d.ts +4 -4
- package/package.json +2 -1
- package/src/ui/dist/assets/{LibraryEntry-B9ZkJUtN.js → LibraryEntry-BUwOgHmJ.js} +1 -1
- package/src/ui/dist/assets/main-DQKavyjz.js +435 -0
- package/src/ui/dist/index.html +1 -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/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/src/ui/dist/assets/main-Dls3YqrM.js +0 -435
|
@@ -3,13 +3,7 @@ type PRTitleContext = {
|
|
|
3
3
|
filesChanged: string[];
|
|
4
4
|
branchName: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
type TextGenerationOptions = {
|
|
10
|
-
isGatewayLlmEnabled?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const generatePRTitle: (context: PRTitleContext, options?: TextGenerationOptions) => Promise<string>;
|
|
13
|
-
export declare const generatePRDescription: (context: PRDescriptionContext, options?: TextGenerationOptions) => Promise<string>;
|
|
6
|
+
export declare const generatePRTitle: (context: PRTitleContext) => Promise<string>;
|
|
7
|
+
export declare const generatePRDescription: (context: PRTitleContext) => Promise<string>;
|
|
14
8
|
export {};
|
|
15
9
|
//# sourceMappingURL=PRTitleGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRTitleGenerator.d.ts","sourceRoot":"","sources":["../../src/services/PRTitleGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PRTitleGenerator.d.ts","sourceRoot":"","sources":["../../src/services/PRTitleGenerator.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG;IACpB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,SAAS,cAAc,KACtB,OAAO,CAAC,MAAM,CAAmC,CAAC;AAErD,eAAO,MAAM,qBAAqB,GAChC,SAAS,cAAc,KACtB,OAAO,CAAC,MAAM,CAiChB,CAAC"}
|
|
@@ -1,98 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generatePRDescription = exports.generatePRTitle = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const log = (0, logger_1.createLogger)('PRTitleGenerator');
|
|
8
|
-
const HAIKU_MODEL = 'claude-haiku-4-5-20251001';
|
|
9
|
-
const TITLE_MAX_TOKENS = 100;
|
|
10
|
-
const DESCRIPTION_MAX_TOKENS = 1024;
|
|
11
|
-
const MAX_COMMIT_LOG_LENGTH = 4000;
|
|
12
|
-
const MAX_DIFF_LENGTH = 12000;
|
|
13
|
-
const truncateCommitLog = (commitMessages) => {
|
|
14
|
-
const commitLog = commitMessages.join('\n');
|
|
15
|
-
return commitLog.length > MAX_COMMIT_LOG_LENGTH
|
|
16
|
-
? commitLog.slice(0, MAX_COMMIT_LOG_LENGTH) + '\n... (truncated)'
|
|
17
|
-
: commitLog;
|
|
18
|
-
};
|
|
19
|
-
const generatePRTitle = async (context, options) => {
|
|
20
|
-
const { commitMessages, filesChanged, branchName } = context;
|
|
21
|
-
if (options?.isGatewayLlmEnabled === false) {
|
|
22
|
-
return `Rivet: ${branchName}`;
|
|
23
|
-
}
|
|
24
|
-
try {
|
|
25
|
-
const gateway = new GatewayClient_1.GatewayClient();
|
|
26
|
-
const truncatedLog = truncateCommitLog(commitMessages);
|
|
27
|
-
const prompt = (0, gitPrompts_1.buildPRTitlePrompt)(truncatedLog, filesChanged);
|
|
28
|
-
const rawText = await gateway.sendMessage({
|
|
29
|
-
model: HAIKU_MODEL,
|
|
30
|
-
maxTokens: TITLE_MAX_TOKENS,
|
|
31
|
-
temperature: 0.3,
|
|
32
|
-
prompt,
|
|
33
|
-
});
|
|
34
|
-
const title = rawText.replace(/^["']|["']$/g, '').trim();
|
|
35
|
-
log.info(`Generated PR title: ${title}`);
|
|
36
|
-
return title;
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
log.warn('LLM PR title generation failed, using fallback:', error);
|
|
40
|
-
return `Rivet: ${branchName}`;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
4
|
+
const MAX_COMMIT_COUNT = 10;
|
|
5
|
+
const MAX_FILE_COUNT = 15;
|
|
6
|
+
const generatePRTitle = async (context) => `Rivet: ${context.branchName}`;
|
|
43
7
|
exports.generatePRTitle = generatePRTitle;
|
|
44
|
-
const generatePRDescription = async (context
|
|
45
|
-
const { commitMessages, filesChanged,
|
|
46
|
-
if (options?.isGatewayLlmEnabled === false) {
|
|
47
|
-
return buildFallbackDescription(commitMessages, filesChanged, branchName);
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
const gateway = new GatewayClient_1.GatewayClient();
|
|
51
|
-
const truncatedLog = truncateCommitLog(commitMessages);
|
|
52
|
-
const truncatedDiff = diff.length > MAX_DIFF_LENGTH
|
|
53
|
-
? diff.slice(0, MAX_DIFF_LENGTH) + '\n... (diff truncated)'
|
|
54
|
-
: diff;
|
|
55
|
-
const prompt = (0, gitPrompts_1.buildPRDescriptionPrompt)(truncatedLog, filesChanged, truncatedDiff);
|
|
56
|
-
const rawText = await gateway.sendMessage({
|
|
57
|
-
model: HAIKU_MODEL,
|
|
58
|
-
maxTokens: DESCRIPTION_MAX_TOKENS,
|
|
59
|
-
temperature: 0.3,
|
|
60
|
-
prompt,
|
|
61
|
-
});
|
|
62
|
-
const description = rawText.trim();
|
|
63
|
-
log.info('Generated PR description');
|
|
64
|
-
return description;
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
log.warn('LLM PR description generation failed, using fallback:', error);
|
|
68
|
-
return buildFallbackDescription(commitMessages, filesChanged, branchName);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
exports.generatePRDescription = generatePRDescription;
|
|
72
|
-
const buildFallbackDescription = (commitMessages, filesChanged, branchName) => {
|
|
8
|
+
const generatePRDescription = async (context) => {
|
|
9
|
+
const { commitMessages, filesChanged, branchName } = context;
|
|
73
10
|
const lines = [`Changes on \`${branchName}\`:`];
|
|
74
11
|
if (commitMessages.length > 0) {
|
|
75
12
|
lines.push('');
|
|
76
13
|
lines.push('## Changes');
|
|
77
|
-
for (const msg of commitMessages.slice(0,
|
|
14
|
+
for (const msg of commitMessages.slice(0, MAX_COMMIT_COUNT)) {
|
|
78
15
|
lines.push(`- ${msg}`);
|
|
79
16
|
}
|
|
80
|
-
if (commitMessages.length >
|
|
81
|
-
lines.push(`- ... and ${commitMessages.length -
|
|
17
|
+
if (commitMessages.length > MAX_COMMIT_COUNT) {
|
|
18
|
+
lines.push(`- ... and ${commitMessages.length - MAX_COMMIT_COUNT} more commits`);
|
|
82
19
|
}
|
|
83
20
|
}
|
|
84
21
|
if (filesChanged.length > 0) {
|
|
85
22
|
lines.push('');
|
|
86
23
|
lines.push('## Files');
|
|
87
|
-
for (const file of filesChanged.slice(0,
|
|
24
|
+
for (const file of filesChanged.slice(0, MAX_FILE_COUNT)) {
|
|
88
25
|
lines.push(`- \`${file}\``);
|
|
89
26
|
}
|
|
90
|
-
if (filesChanged.length >
|
|
91
|
-
lines.push(`- ... and ${filesChanged.length -
|
|
27
|
+
if (filesChanged.length > MAX_FILE_COUNT) {
|
|
28
|
+
lines.push(`- ... and ${filesChanged.length - MAX_FILE_COUNT} more files`);
|
|
92
29
|
}
|
|
93
30
|
}
|
|
94
31
|
lines.push('');
|
|
95
32
|
lines.push('Made with [Rivet](https://rivet.design)');
|
|
96
33
|
return lines.join('\n');
|
|
97
34
|
};
|
|
35
|
+
exports.generatePRDescription = generatePRDescription;
|
|
98
36
|
//# sourceMappingURL=PRTitleGenerator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PRTitleGenerator.js","sourceRoot":"","sources":["../../src/services/PRTitleGenerator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"PRTitleGenerator.js","sourceRoot":"","sources":["../../src/services/PRTitleGenerator.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,cAAc,GAAG,EAAE,CAAC;AAQnB,MAAM,eAAe,GAAG,KAAK,EAClC,OAAuB,EACN,EAAE,CAAC,UAAU,OAAO,CAAC,UAAU,EAAE,CAAC;AAFxC,QAAA,eAAe,mBAEyB;AAE9C,MAAM,qBAAqB,GAAG,KAAK,EACxC,OAAuB,EACN,EAAE;IACnB,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC7D,MAAM,KAAK,GAAG,CAAC,gBAAgB,UAAU,KAAK,CAAC,CAAC;IAEhD,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACzB,KAAK,MAAM,GAAG,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,EAAE,CAAC;YAC5D,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;QACzB,CAAC;QACD,IAAI,cAAc,CAAC,MAAM,GAAG,gBAAgB,EAAE,CAAC;YAC7C,KAAK,CAAC,IAAI,CACR,aAAa,cAAc,CAAC,MAAM,GAAG,gBAAgB,eAAe,CACrE,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACvB,KAAK,MAAM,IAAI,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,EAAE,CAAC;YACzD,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;QAC9B,CAAC;QACD,IAAI,YAAY,CAAC,MAAM,GAAG,cAAc,EAAE,CAAC;YACzC,KAAK,CAAC,IAAI,CACR,aAAa,YAAY,CAAC,MAAM,GAAG,cAAc,aAAa,CAC/D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC,CAAC;AAnCW,QAAA,qBAAqB,yBAmChC"}
|
|
@@ -19,10 +19,7 @@ export declare class SessionService {
|
|
|
19
19
|
private baseBranch;
|
|
20
20
|
private startingSha?;
|
|
21
21
|
private lastKnownPrUrl?;
|
|
22
|
-
|
|
23
|
-
constructor(projectPath: string, isGitEnabled?: boolean, baseBranch?: string, options?: {
|
|
24
|
-
isGatewayLlmEnabled?: boolean;
|
|
25
|
-
});
|
|
22
|
+
constructor(projectPath: string, isGitEnabled?: boolean, baseBranch?: string);
|
|
26
23
|
initializeSession(): Promise<void>;
|
|
27
24
|
commitModification(change: ChangeRecord): Promise<void>;
|
|
28
25
|
publishChanges(): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionService.d.ts","sourceRoot":"","sources":["../../src/services/SessionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAmB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,mBAAmB,EAAE,SAAS,CAAC;CACnD,CAAC;AAIF,qBAAa,cAAc;IACzB,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,QAAQ,CAAC,CAAW;IAC5B,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,cAAc,CAAC,CAAgB;
|
|
1
|
+
{"version":3,"file":"SessionService.d.ts","sourceRoot":"","sources":["../../src/services/SessionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAmB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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
17
17
|
lastKnownPrUrl;
|
|
18
|
-
|
|
19
|
-
constructor(projectPath, isGitEnabled = false, baseBranch = 'main', options) {
|
|
18
|
+
constructor(projectPath, isGitEnabled = false, baseBranch = 'main') {
|
|
20
19
|
this.gitService = new LocalGitService_1.LocalGitService();
|
|
21
20
|
this.projectPath = projectPath;
|
|
22
21
|
this.isGitEnabled = isGitEnabled;
|
|
23
22
|
this.baseBranch = baseBranch;
|
|
24
|
-
this.isGatewayLlmEnabled = options?.isGatewayLlmEnabled ?? true;
|
|
25
23
|
}
|
|
26
24
|
async initializeSession() {
|
|
27
25
|
if (!this.isGitEnabled) {
|
|
@@ -50,13 +48,11 @@ class SessionService {
|
|
|
50
48
|
return;
|
|
51
49
|
}
|
|
52
50
|
try {
|
|
53
|
-
const diff = await this.gitService.getUnstagedDiff(this.projectPath);
|
|
54
51
|
const filesChanged = change.files.map((f) => f.filePath);
|
|
55
52
|
const commitMessage = await (0, CommitMessageGenerator_1.generateCommitMessage)({
|
|
56
|
-
diff,
|
|
57
53
|
instruction: change.description,
|
|
58
54
|
filesChanged,
|
|
59
|
-
}
|
|
55
|
+
});
|
|
60
56
|
const commitSha = await this.gitService.commitChange(this.projectPath, change, undefined, commitMessage);
|
|
61
57
|
log.info(`Successfully committed modification with SHA: ${commitSha} on branch: ${this.branchName}`);
|
|
62
58
|
}
|
|
@@ -71,15 +67,9 @@ class SessionService {
|
|
|
71
67
|
throw new Error('Git tracking not enabled or branch not created');
|
|
72
68
|
}
|
|
73
69
|
try {
|
|
74
|
-
const [commitMessages, diffStats
|
|
70
|
+
const [commitMessages, diffStats] = await Promise.all([
|
|
75
71
|
this.gitService.getCommitLog(this.projectPath, this.baseBranch),
|
|
76
72
|
this.gitService.getDiffStats(this.projectPath, this.baseBranch),
|
|
77
|
-
this.gitService
|
|
78
|
-
.getDiff(this.projectPath, this.baseBranch, 'HEAD')
|
|
79
|
-
.catch((err) => {
|
|
80
|
-
log.warn('Failed to fetch diff for PR description:', err);
|
|
81
|
-
return '';
|
|
82
|
-
}),
|
|
83
73
|
]);
|
|
84
74
|
const filesChanged = diffStats.files.map((f) => f.file);
|
|
85
75
|
const titleContext = {
|
|
@@ -87,10 +77,9 @@ class SessionService {
|
|
|
87
77
|
filesChanged,
|
|
88
78
|
branchName: this.branchName,
|
|
89
79
|
};
|
|
90
|
-
const llmOptions = { isGatewayLlmEnabled: this.isGatewayLlmEnabled };
|
|
91
80
|
const [title, description] = await Promise.all([
|
|
92
|
-
(0, PRTitleGenerator_1.generatePRTitle)(titleContext
|
|
93
|
-
(0, PRTitleGenerator_1.generatePRDescription)(
|
|
81
|
+
(0, PRTitleGenerator_1.generatePRTitle)(titleContext),
|
|
82
|
+
(0, PRTitleGenerator_1.generatePRDescription)(titleContext),
|
|
94
83
|
]);
|
|
95
84
|
await this.gitService.pushBranch(this.projectPath, this.branchName);
|
|
96
85
|
log.info(`Pushed branch ${this.branchName} to origin`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionService.js","sourceRoot":"","sources":["../../src/services/SessionService.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAC/C,qEAAiE;AACjE,uDAA8D;AAC9D,yDAA4E;AAa5E,MAAM,GAAG,GAAG,IAAA,qBAAY,EAAC,gBAAgB,CAAC,CAAC;AAE3C,MAAa,cAAc;IACjB,UAAU,CAAkB;IAC5B,WAAW,CAAS;IACpB,UAAU,CAAU;IACpB,QAAQ,CAAY;IACpB,YAAY,CAAU;IACtB,UAAU,CAAS;IACnB,WAAW,CAAU;IACrB,cAAc,CAAiB;
|
|
1
|
+
{"version":3,"file":"SessionService.js","sourceRoot":"","sources":["../../src/services/SessionService.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAC/C,qEAAiE;AACjE,uDAA8D;AAC9D,yDAA4E;AAa5E,MAAM,GAAG,GAAG,IAAA,qBAAY,EAAC,gBAAgB,CAAC,CAAC;AAE3C,MAAa,cAAc;IACjB,UAAU,CAAkB;IAC5B,WAAW,CA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C;YACH,MAAM,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACvD,GAAG,CAAC,IAAI,CAAC,gCAAgC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC9D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;YAChD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,mBAAmB,CAC/B,iBAAyB;QAEzB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAChE,IAAI,CAAC,WAAW,CACjB,CAAC;QACF,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAE5D,IAAI,iBAAiB,KAAK,YAAY,EAAE,CAAC;YACvC,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF;AA1QD,wCA0QC"}
|
|
@@ -32,11 +32,11 @@ export declare class DesignProfiles {
|
|
|
32
32
|
isEnabled: boolean;
|
|
33
33
|
attachments?: {
|
|
34
34
|
path: string;
|
|
35
|
-
source: string;
|
|
36
35
|
hash: string;
|
|
37
36
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
38
37
|
bytes: number;
|
|
39
|
-
representation: "
|
|
38
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
39
|
+
source: string;
|
|
40
40
|
alt: string;
|
|
41
41
|
title?: string | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
@@ -49,13 +49,13 @@ export declare class DesignProfiles {
|
|
|
49
49
|
url: string;
|
|
50
50
|
kind: "url" | "repository";
|
|
51
51
|
intent: string;
|
|
52
|
-
digest?: string | undefined;
|
|
53
52
|
files?: {
|
|
54
53
|
name: string;
|
|
55
54
|
content: string;
|
|
56
55
|
path?: string | undefined;
|
|
57
56
|
sha256?: string | undefined;
|
|
58
57
|
}[] | undefined;
|
|
58
|
+
digest?: string | undefined;
|
|
59
59
|
revision?: string | undefined;
|
|
60
60
|
})[] | undefined;
|
|
61
61
|
verifier?: {
|
|
@@ -69,11 +69,11 @@ export declare class DesignProfiles {
|
|
|
69
69
|
isEnabled: boolean;
|
|
70
70
|
attachments?: {
|
|
71
71
|
path: string;
|
|
72
|
-
source: string;
|
|
73
72
|
hash: string;
|
|
74
73
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
75
74
|
bytes: number;
|
|
76
|
-
representation: "
|
|
75
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
76
|
+
source: string;
|
|
77
77
|
alt: string;
|
|
78
78
|
title?: string | undefined;
|
|
79
79
|
page?: number | undefined;
|
|
@@ -86,13 +86,13 @@ export declare class DesignProfiles {
|
|
|
86
86
|
url: string;
|
|
87
87
|
kind: "url" | "repository";
|
|
88
88
|
intent: string;
|
|
89
|
-
digest?: string | undefined;
|
|
90
89
|
files?: {
|
|
91
90
|
name: string;
|
|
92
91
|
content: string;
|
|
93
92
|
path?: string | undefined;
|
|
94
93
|
sha256?: string | undefined;
|
|
95
94
|
}[] | undefined;
|
|
95
|
+
digest?: string | undefined;
|
|
96
96
|
revision?: string | undefined;
|
|
97
97
|
})[] | undefined;
|
|
98
98
|
verifier?: {
|
|
@@ -112,11 +112,11 @@ export declare class DesignProfiles {
|
|
|
112
112
|
isEnabled: boolean;
|
|
113
113
|
attachments?: {
|
|
114
114
|
path: string;
|
|
115
|
-
source: string;
|
|
116
115
|
hash: string;
|
|
117
116
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
118
117
|
bytes: number;
|
|
119
|
-
representation: "
|
|
118
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
119
|
+
source: string;
|
|
120
120
|
alt: string;
|
|
121
121
|
title?: string | undefined;
|
|
122
122
|
page?: number | undefined;
|
|
@@ -129,13 +129,13 @@ export declare class DesignProfiles {
|
|
|
129
129
|
url: string;
|
|
130
130
|
kind: "url" | "repository";
|
|
131
131
|
intent: string;
|
|
132
|
-
digest?: string | undefined;
|
|
133
132
|
files?: {
|
|
134
133
|
name: string;
|
|
135
134
|
content: string;
|
|
136
135
|
path?: string | undefined;
|
|
137
136
|
sha256?: string | undefined;
|
|
138
137
|
}[] | undefined;
|
|
138
|
+
digest?: string | undefined;
|
|
139
139
|
revision?: string | undefined;
|
|
140
140
|
})[] | undefined;
|
|
141
141
|
verifier?: {
|
|
@@ -157,11 +157,11 @@ export declare class DesignProfiles {
|
|
|
157
157
|
isEnabled: boolean;
|
|
158
158
|
attachments?: {
|
|
159
159
|
path: string;
|
|
160
|
-
source: string;
|
|
161
160
|
hash: string;
|
|
162
161
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
163
162
|
bytes: number;
|
|
164
|
-
representation: "
|
|
163
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
164
|
+
source: string;
|
|
165
165
|
alt: string;
|
|
166
166
|
title?: string | undefined;
|
|
167
167
|
page?: number | undefined;
|
|
@@ -174,13 +174,13 @@ export declare class DesignProfiles {
|
|
|
174
174
|
url: string;
|
|
175
175
|
kind: "url" | "repository";
|
|
176
176
|
intent: string;
|
|
177
|
-
digest?: string | undefined;
|
|
178
177
|
files?: {
|
|
179
178
|
name: string;
|
|
180
179
|
content: string;
|
|
181
180
|
path?: string | undefined;
|
|
182
181
|
sha256?: string | undefined;
|
|
183
182
|
}[] | undefined;
|
|
183
|
+
digest?: string | undefined;
|
|
184
184
|
revision?: string | undefined;
|
|
185
185
|
})[] | undefined;
|
|
186
186
|
verifier?: {
|
|
@@ -203,11 +203,11 @@ export declare class DesignProfiles {
|
|
|
203
203
|
markdown: string;
|
|
204
204
|
attachments?: {
|
|
205
205
|
path: string;
|
|
206
|
-
source: string;
|
|
207
206
|
hash: string;
|
|
208
207
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
209
208
|
bytes: number;
|
|
210
|
-
representation: "
|
|
209
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
210
|
+
source: string;
|
|
211
211
|
alt: string;
|
|
212
212
|
title?: string | undefined;
|
|
213
213
|
page?: number | undefined;
|
|
@@ -220,13 +220,13 @@ export declare class DesignProfiles {
|
|
|
220
220
|
url: string;
|
|
221
221
|
kind: "url" | "repository";
|
|
222
222
|
intent: string;
|
|
223
|
-
digest?: string | undefined;
|
|
224
223
|
files?: {
|
|
225
224
|
name: string;
|
|
226
225
|
content: string;
|
|
227
226
|
path?: string | undefined;
|
|
228
227
|
sha256?: string | undefined;
|
|
229
228
|
}[] | undefined;
|
|
229
|
+
digest?: string | undefined;
|
|
230
230
|
revision?: string | undefined;
|
|
231
231
|
})[] | undefined;
|
|
232
232
|
}[];
|
|
@@ -243,9 +243,9 @@ export declare class DesignProfiles {
|
|
|
243
243
|
id: string;
|
|
244
244
|
total: number;
|
|
245
245
|
collections: {
|
|
246
|
-
description: string | null;
|
|
247
246
|
url: string | null;
|
|
248
247
|
title: string;
|
|
248
|
+
description: string | null;
|
|
249
249
|
id: string;
|
|
250
250
|
children: string[];
|
|
251
251
|
total: number | null;
|
|
@@ -286,9 +286,9 @@ export declare class DesignProfiles {
|
|
|
286
286
|
collections: {
|
|
287
287
|
includedCollectionIds: string[];
|
|
288
288
|
referenceCount: number;
|
|
289
|
-
description: string | null;
|
|
290
289
|
url: string | null;
|
|
291
290
|
title: string;
|
|
291
|
+
description: string | null;
|
|
292
292
|
id: string;
|
|
293
293
|
children: string[];
|
|
294
294
|
total: number | null;
|
|
@@ -325,9 +325,9 @@ export declare class DesignProfiles {
|
|
|
325
325
|
collections: {
|
|
326
326
|
includedCollectionIds: string[];
|
|
327
327
|
referenceCount: number;
|
|
328
|
-
description: string | null;
|
|
329
328
|
url: string | null;
|
|
330
329
|
title: string;
|
|
330
|
+
description: string | null;
|
|
331
331
|
id: string;
|
|
332
332
|
children: string[];
|
|
333
333
|
total: number | null;
|
|
@@ -386,9 +386,9 @@ export declare class DesignProfiles {
|
|
|
386
386
|
collections: {
|
|
387
387
|
includedCollectionIds: string[];
|
|
388
388
|
referenceCount: number;
|
|
389
|
-
description: string | null;
|
|
390
389
|
url: string | null;
|
|
391
390
|
title: string;
|
|
391
|
+
description: string | null;
|
|
392
392
|
id: string;
|
|
393
393
|
children: string[];
|
|
394
394
|
total: number | null;
|
|
@@ -418,7 +418,7 @@ export declare class DesignProfiles {
|
|
|
418
418
|
};
|
|
419
419
|
sources: {
|
|
420
420
|
id: string;
|
|
421
|
-
provider: "
|
|
421
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
422
422
|
remoteId: string;
|
|
423
423
|
resolvedRemoteId: string | null;
|
|
424
424
|
title: string;
|
|
@@ -489,7 +489,7 @@ export declare class DesignProfiles {
|
|
|
489
489
|
pendingIndex: number;
|
|
490
490
|
};
|
|
491
491
|
id: string;
|
|
492
|
-
provider: "
|
|
492
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
493
493
|
remoteId: string;
|
|
494
494
|
resolvedRemoteId: string | null;
|
|
495
495
|
title: string;
|
|
@@ -559,7 +559,7 @@ export declare class DesignProfiles {
|
|
|
559
559
|
};
|
|
560
560
|
sources: {
|
|
561
561
|
id: string;
|
|
562
|
-
provider: "
|
|
562
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
563
563
|
remoteId: string;
|
|
564
564
|
resolvedRemoteId: string | null;
|
|
565
565
|
title: string;
|
|
@@ -612,7 +612,7 @@ export declare class DesignProfiles {
|
|
|
612
612
|
}): Promise<{
|
|
613
613
|
source: {
|
|
614
614
|
id: string;
|
|
615
|
-
provider: "
|
|
615
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
616
616
|
remoteId: string;
|
|
617
617
|
resolvedRemoteId: string | null;
|
|
618
618
|
title: string;
|
|
@@ -629,7 +629,7 @@ export declare class DesignProfiles {
|
|
|
629
629
|
}): Promise<{
|
|
630
630
|
source: {
|
|
631
631
|
id: string;
|
|
632
|
-
provider: "
|
|
632
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
633
633
|
remoteId: string;
|
|
634
634
|
resolvedRemoteId: string | null;
|
|
635
635
|
title: string;
|
|
@@ -649,7 +649,7 @@ export declare class DesignProfiles {
|
|
|
649
649
|
addVariant(input: ProfileVariantInput): Promise<{
|
|
650
650
|
source: {
|
|
651
651
|
id: string;
|
|
652
|
-
provider: "
|
|
652
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
653
653
|
remoteId: string;
|
|
654
654
|
resolvedRemoteId: string | null;
|
|
655
655
|
title: string;
|
|
@@ -671,7 +671,7 @@ export declare class DesignProfiles {
|
|
|
671
671
|
} | {
|
|
672
672
|
source: {
|
|
673
673
|
id: string;
|
|
674
|
-
provider: "
|
|
674
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
675
675
|
remoteId: string;
|
|
676
676
|
resolvedRemoteId: string | null;
|
|
677
677
|
title: string;
|
|
@@ -709,7 +709,7 @@ export declare class DesignProfiles {
|
|
|
709
709
|
};
|
|
710
710
|
sources: {
|
|
711
711
|
id: string;
|
|
712
|
-
provider: "
|
|
712
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
713
713
|
remoteId: string;
|
|
714
714
|
resolvedRemoteId: string | null;
|
|
715
715
|
title: string;
|
|
@@ -799,15 +799,15 @@ export declare class DesignProfiles {
|
|
|
799
799
|
} | null;
|
|
800
800
|
id: string;
|
|
801
801
|
revision: number;
|
|
802
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
802
803
|
title: string;
|
|
803
804
|
text: string;
|
|
804
|
-
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
805
805
|
remoteId: string;
|
|
806
806
|
media: {
|
|
807
807
|
hash: string;
|
|
808
808
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
809
809
|
bytes: number;
|
|
810
|
-
representation: "
|
|
810
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
811
811
|
page?: number | undefined;
|
|
812
812
|
}[];
|
|
813
813
|
url?: string | undefined;
|
|
@@ -884,11 +884,11 @@ export declare class DesignProfiles {
|
|
|
884
884
|
title: string;
|
|
885
885
|
id: string;
|
|
886
886
|
url?: string | undefined;
|
|
887
|
+
reason?: string | undefined;
|
|
887
888
|
image?: {
|
|
888
889
|
hash: string;
|
|
889
890
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
890
891
|
} | undefined;
|
|
891
|
-
reason?: string | undefined;
|
|
892
892
|
}[] | undefined;
|
|
893
893
|
failedUploadCount?: number | undefined;
|
|
894
894
|
}>;
|
|
@@ -16,7 +16,7 @@ export declare class ProfileImports {
|
|
|
16
16
|
}): {
|
|
17
17
|
source: {
|
|
18
18
|
id: string;
|
|
19
|
-
provider: "
|
|
19
|
+
provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
|
|
20
20
|
remoteId: string;
|
|
21
21
|
resolvedRemoteId: string | null;
|
|
22
22
|
title: string;
|
|
@@ -20,9 +20,9 @@ export declare class ProfilePlanning {
|
|
|
20
20
|
id: string;
|
|
21
21
|
total: number;
|
|
22
22
|
collections: {
|
|
23
|
-
description: string | null;
|
|
24
23
|
url: string | null;
|
|
25
24
|
title: string;
|
|
25
|
+
description: string | null;
|
|
26
26
|
id: string;
|
|
27
27
|
children: string[];
|
|
28
28
|
total: number | null;
|
|
@@ -51,15 +51,15 @@ export declare class ProfilePlanning {
|
|
|
51
51
|
discoveryId: string;
|
|
52
52
|
sources: {
|
|
53
53
|
references: {
|
|
54
|
+
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
54
55
|
title: string;
|
|
55
56
|
text: string;
|
|
56
|
-
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
57
57
|
remoteId: string;
|
|
58
58
|
media: {
|
|
59
59
|
hash: string;
|
|
60
60
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
61
61
|
bytes: number;
|
|
62
|
-
representation: "
|
|
62
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
63
63
|
page?: number | undefined;
|
|
64
64
|
}[];
|
|
65
65
|
url?: string | undefined;
|
|
@@ -75,9 +75,9 @@ export declare class ProfilePlanning {
|
|
|
75
75
|
unsupportedReason?: string | undefined;
|
|
76
76
|
}[];
|
|
77
77
|
collection: {
|
|
78
|
-
description: string | null;
|
|
79
78
|
url: string | null;
|
|
80
79
|
title: string;
|
|
80
|
+
description: string | null;
|
|
81
81
|
id: string;
|
|
82
82
|
children: string[];
|
|
83
83
|
total: number | null;
|
|
@@ -17,9 +17,9 @@ export declare class ReferenceReader {
|
|
|
17
17
|
total: number | null;
|
|
18
18
|
nextCursor: string | null;
|
|
19
19
|
collections: {
|
|
20
|
-
description: string | null;
|
|
21
20
|
url: string | null;
|
|
22
21
|
title: string;
|
|
22
|
+
description: string | null;
|
|
23
23
|
id: string;
|
|
24
24
|
children: string[];
|
|
25
25
|
total: number | null;
|
|
@@ -41,15 +41,15 @@ export declare class ReferenceReader {
|
|
|
41
41
|
}): Promise<{
|
|
42
42
|
accountId: string;
|
|
43
43
|
references: {
|
|
44
|
+
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
44
45
|
title: string;
|
|
45
46
|
text: string;
|
|
46
|
-
provider: "arena" | "pinterest" | "x" | "cosmos";
|
|
47
47
|
remoteId: string;
|
|
48
48
|
media: {
|
|
49
49
|
hash: string;
|
|
50
50
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
51
51
|
bytes: number;
|
|
52
|
-
representation: "
|
|
52
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
53
53
|
page?: number | undefined;
|
|
54
54
|
}[];
|
|
55
55
|
url?: string | undefined;
|
|
@@ -9,10 +9,10 @@ export declare const profileReferences: (comment: CommentChangeItem, dataUrl?: s
|
|
|
9
9
|
title: string;
|
|
10
10
|
id: string;
|
|
11
11
|
url?: string | undefined;
|
|
12
|
+
reason?: string | undefined;
|
|
12
13
|
image?: {
|
|
13
14
|
hash: string;
|
|
14
15
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
15
16
|
} | undefined;
|
|
16
|
-
reason?: string | undefined;
|
|
17
17
|
}[] | undefined;
|
|
18
18
|
//# sourceMappingURL=profileContext.d.ts.map
|