@vibes.diy/api-types 14.3.327 → 14.3.329
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/capi-conversion-msg.d.ts +1 -0
- package/capi-conversion-msg.js +1 -0
- package/chat.d.ts +6 -0
- package/chat.js +1 -0
- package/look-packages.d.ts +6 -0
- package/look-packages.js +21 -0
- package/package.json +4 -4
package/capi-conversion-msg.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const evtCapiConversion: import("arktype/internal/variants/object
|
|
|
6
6
|
outcome: "applied" | "error" | "no-code";
|
|
7
7
|
customPrompt: boolean;
|
|
8
8
|
chipPrompt?: boolean | undefined;
|
|
9
|
+
agentOwnBuild?: boolean | undefined;
|
|
9
10
|
at: string;
|
|
10
11
|
}, {}>;
|
|
11
12
|
export type EvtCapiConversion = typeof evtCapiConversion.infer;
|
package/capi-conversion-msg.js
CHANGED
package/chat.d.ts
CHANGED
|
@@ -370,6 +370,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
370
370
|
agentModel?: string | undefined;
|
|
371
371
|
agentStep?: "first-build" | undefined;
|
|
372
372
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
373
|
+
agentOwnBuild?: boolean | undefined;
|
|
373
374
|
varietyPin?: {
|
|
374
375
|
archetype: string;
|
|
375
376
|
flourishes: string[];
|
|
@@ -554,6 +555,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
554
555
|
agentModel?: string | undefined;
|
|
555
556
|
agentStep?: "first-build" | undefined;
|
|
556
557
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
558
|
+
agentOwnBuild?: boolean | undefined;
|
|
557
559
|
varietyPin?: {
|
|
558
560
|
archetype: string;
|
|
559
561
|
flourishes: string[];
|
|
@@ -1321,6 +1323,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
1321
1323
|
agentModel?: string | undefined;
|
|
1322
1324
|
agentStep?: "first-build" | undefined;
|
|
1323
1325
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
1326
|
+
agentOwnBuild?: boolean | undefined;
|
|
1324
1327
|
varietyPin?: {
|
|
1325
1328
|
archetype: string;
|
|
1326
1329
|
flourishes: string[];
|
|
@@ -1505,6 +1508,7 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
1505
1508
|
agentModel?: string | undefined;
|
|
1506
1509
|
agentStep?: "first-build" | undefined;
|
|
1507
1510
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
1511
|
+
agentOwnBuild?: boolean | undefined;
|
|
1508
1512
|
varietyPin?: {
|
|
1509
1513
|
archetype: string;
|
|
1510
1514
|
flourishes: string[];
|
|
@@ -2146,6 +2150,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2146
2150
|
agentModel?: string | undefined;
|
|
2147
2151
|
agentStep?: "first-build" | undefined;
|
|
2148
2152
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
2153
|
+
agentOwnBuild?: boolean | undefined;
|
|
2149
2154
|
varietyPin?: {
|
|
2150
2155
|
archetype: string;
|
|
2151
2156
|
flourishes: string[];
|
|
@@ -2330,6 +2335,7 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2330
2335
|
agentModel?: string | undefined;
|
|
2331
2336
|
agentStep?: "first-build" | undefined;
|
|
2332
2337
|
agentDispatchedSource?: "gold" | "suggestion" | undefined;
|
|
2338
|
+
agentOwnBuild?: boolean | undefined;
|
|
2333
2339
|
varietyPin?: {
|
|
2334
2340
|
archetype: string;
|
|
2335
2341
|
flourishes: string[];
|
package/chat.js
CHANGED
|
@@ -156,6 +156,7 @@ export const reqCreationPromptChatSection = lazyType(() => type({
|
|
|
156
156
|
"agentModel?": "string",
|
|
157
157
|
"agentStep?": "'first-build'",
|
|
158
158
|
"agentDispatchedSource?": "'suggestion' | 'gold'",
|
|
159
|
+
"agentOwnBuild?": "boolean",
|
|
159
160
|
"varietyPin?": varietyPin,
|
|
160
161
|
"stylePin?": "string",
|
|
161
162
|
"imageSurvey?": "boolean",
|
package/look-packages.d.ts
CHANGED
|
@@ -26,4 +26,10 @@ export declare function isLookPackage(id: unknown): id is string;
|
|
|
26
26
|
export declare function lookPackageById(id: string): LookPackage | undefined;
|
|
27
27
|
export declare function lookPackageAliases(id: string | undefined, importedSpecifiers: Iterable<string>): Record<string, string>;
|
|
28
28
|
export declare function lookAliasedSpecifiers(importedSpecifiers: Iterable<string>, aliases: Record<string, string>): string[];
|
|
29
|
+
export declare function pushedSkinLook(args: {
|
|
30
|
+
readonly pushed: Iterable<string>;
|
|
31
|
+
readonly previous: Iterable<string> | undefined;
|
|
32
|
+
readonly stored: string | undefined;
|
|
33
|
+
}): LookPackage | undefined;
|
|
34
|
+
export declare function sourceSkinLooks(sources: Iterable<string>): readonly LookPackage[];
|
|
29
35
|
export declare function sourceLookPackage(sources: Iterable<string>): LookPackage | undefined;
|
package/look-packages.js
CHANGED
|
@@ -138,12 +138,33 @@ export function lookAliasedSpecifiers(importedSpecifiers, aliases) {
|
|
|
138
138
|
return target === undefined ? uiAsDefaultLook(s) : target.slice("alias:".length);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
+
export function pushedSkinLook(args) {
|
|
142
|
+
const before = args.previous === undefined ? [] : sourceSkinLooks(args.previous).map((p) => p.id);
|
|
143
|
+
const skin = sourceSkinLooks(args.pushed).find((p) => before.includes(p.id) === false);
|
|
144
|
+
if (skin === undefined)
|
|
145
|
+
return undefined;
|
|
146
|
+
if (args.stored === undefined || args.stored === skin.id)
|
|
147
|
+
return undefined;
|
|
148
|
+
return skin;
|
|
149
|
+
}
|
|
141
150
|
function escapeRegExp(s) {
|
|
142
151
|
return s.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
|
|
143
152
|
}
|
|
144
153
|
const FAMILY_IMPORT = new RegExp(`from[ \\t]*["'](${FAMILY_PKGS.map(escapeRegExp).join("|")})(?:${LOOK_PACKAGE_ENTRIES.filter((e) => e !== "")
|
|
145
154
|
.map(escapeRegExp)
|
|
146
155
|
.join("|")})?["']`);
|
|
156
|
+
export function sourceSkinLooks(sources) {
|
|
157
|
+
const found = [];
|
|
158
|
+
const all = new RegExp(FAMILY_IMPORT.source, "g");
|
|
159
|
+
for (const source of sources) {
|
|
160
|
+
for (const match of source.matchAll(all)) {
|
|
161
|
+
const look = LOOK_PACKAGES.find((p) => p.pkg === uiAsDefaultLook(match[1]));
|
|
162
|
+
if (look !== undefined && look.id !== DEFAULT_LOOK_PACKAGE.id && found.includes(look) === false)
|
|
163
|
+
found.push(look);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return found;
|
|
167
|
+
}
|
|
147
168
|
export function sourceLookPackage(sources) {
|
|
148
169
|
for (const source of sources) {
|
|
149
170
|
const pkg = FAMILY_IMPORT.exec(source)?.[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/api-types",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.329",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@adviser/cement": "~0.5.37",
|
|
27
27
|
"@cloudflare/workers-types": "~5.20261101.1",
|
|
28
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
29
|
-
"@vibes.diy/identity": "14.3.
|
|
30
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
28
|
+
"@vibes.diy/call-ai-v2": "14.3.329",
|
|
29
|
+
"@vibes.diy/identity": "14.3.329",
|
|
30
|
+
"@vibes.diy/vibe-types": "14.3.329",
|
|
31
31
|
"arktype": "~2.2.9"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|