@vibes.diy/api-types 2.2.13-dev.6 → 2.2.14
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/chat.d.ts +210 -0
- package/chat.js +18 -0
- package/chat.js.map +1 -1
- package/package.json +3 -3
- package/vibes-diy-api.d.ts +3 -1
- package/vibes-diy-api.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -39,6 +39,60 @@ export declare const resOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
39
39
|
}, {}>;
|
|
40
40
|
export type ResOpenChat = typeof resOpenChat.infer;
|
|
41
41
|
export declare function isResOpenChat(obj: unknown): obj is ResOpenChat;
|
|
42
|
+
export declare const selectedSlotInput: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
43
|
+
kind: "version";
|
|
44
|
+
fsId: string;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "draft";
|
|
47
|
+
files: ({
|
|
48
|
+
filename: string;
|
|
49
|
+
entryPoint?: boolean | undefined;
|
|
50
|
+
mimetype?: string | undefined;
|
|
51
|
+
type: "code-block";
|
|
52
|
+
lang: string;
|
|
53
|
+
content: string;
|
|
54
|
+
} | {
|
|
55
|
+
filename: string;
|
|
56
|
+
entryPoint?: boolean | undefined;
|
|
57
|
+
mimetype?: string | undefined;
|
|
58
|
+
type: "code-ref";
|
|
59
|
+
refId: string;
|
|
60
|
+
} | {
|
|
61
|
+
filename: string;
|
|
62
|
+
entryPoint?: boolean | undefined;
|
|
63
|
+
mimetype?: string | undefined;
|
|
64
|
+
type: "str-asset-block";
|
|
65
|
+
content: string;
|
|
66
|
+
} | {
|
|
67
|
+
filename: string;
|
|
68
|
+
entryPoint?: boolean | undefined;
|
|
69
|
+
mimetype?: string | undefined;
|
|
70
|
+
type: "str-asset-ref";
|
|
71
|
+
refId: string;
|
|
72
|
+
} | {
|
|
73
|
+
filename: string;
|
|
74
|
+
entryPoint?: boolean | undefined;
|
|
75
|
+
mimetype?: string | undefined;
|
|
76
|
+
type: "uint8-asset-block";
|
|
77
|
+
content: Uint8Array<ArrayBuffer>;
|
|
78
|
+
} | {
|
|
79
|
+
filename: string;
|
|
80
|
+
entryPoint?: boolean | undefined;
|
|
81
|
+
mimetype?: string | undefined;
|
|
82
|
+
type: "uint8-asset-ref";
|
|
83
|
+
refId: string;
|
|
84
|
+
})[];
|
|
85
|
+
}, {}>;
|
|
86
|
+
export type SelectedSlotInput = typeof selectedSlotInput.infer;
|
|
87
|
+
export declare const slotMute: import("arktype/internal/variants/string.ts").StringType<"off" | "on", {}>;
|
|
88
|
+
export declare const slotConfig: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
89
|
+
original?: "off" | "on" | undefined;
|
|
90
|
+
selected?: "off" | "on" | undefined;
|
|
91
|
+
last_edit?: "off" | "on" | undefined;
|
|
92
|
+
previous?: "off" | "on" | undefined;
|
|
93
|
+
compaction?: "off" | "on" | undefined;
|
|
94
|
+
}, {}>;
|
|
95
|
+
export type SlotConfig = typeof slotConfig.infer;
|
|
42
96
|
export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
43
97
|
type: "vibes.diy.req-prompt-chat-section";
|
|
44
98
|
mode: "chat";
|
|
@@ -75,6 +129,58 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
75
129
|
modalities?: string[] | undefined;
|
|
76
130
|
};
|
|
77
131
|
dryRun?: boolean | undefined;
|
|
132
|
+
selected?: {
|
|
133
|
+
kind: "version";
|
|
134
|
+
fsId: string;
|
|
135
|
+
} | {
|
|
136
|
+
kind: "draft";
|
|
137
|
+
files: ({
|
|
138
|
+
filename: string;
|
|
139
|
+
entryPoint?: boolean | undefined;
|
|
140
|
+
mimetype?: string | undefined;
|
|
141
|
+
type: "code-block";
|
|
142
|
+
lang: string;
|
|
143
|
+
content: string;
|
|
144
|
+
} | {
|
|
145
|
+
filename: string;
|
|
146
|
+
entryPoint?: boolean | undefined;
|
|
147
|
+
mimetype?: string | undefined;
|
|
148
|
+
type: "code-ref";
|
|
149
|
+
refId: string;
|
|
150
|
+
} | {
|
|
151
|
+
filename: string;
|
|
152
|
+
entryPoint?: boolean | undefined;
|
|
153
|
+
mimetype?: string | undefined;
|
|
154
|
+
type: "str-asset-block";
|
|
155
|
+
content: string;
|
|
156
|
+
} | {
|
|
157
|
+
filename: string;
|
|
158
|
+
entryPoint?: boolean | undefined;
|
|
159
|
+
mimetype?: string | undefined;
|
|
160
|
+
type: "str-asset-ref";
|
|
161
|
+
refId: string;
|
|
162
|
+
} | {
|
|
163
|
+
filename: string;
|
|
164
|
+
entryPoint?: boolean | undefined;
|
|
165
|
+
mimetype?: string | undefined;
|
|
166
|
+
type: "uint8-asset-block";
|
|
167
|
+
content: Uint8Array<ArrayBuffer>;
|
|
168
|
+
} | {
|
|
169
|
+
filename: string;
|
|
170
|
+
entryPoint?: boolean | undefined;
|
|
171
|
+
mimetype?: string | undefined;
|
|
172
|
+
type: "uint8-asset-ref";
|
|
173
|
+
refId: string;
|
|
174
|
+
})[];
|
|
175
|
+
} | undefined;
|
|
176
|
+
slots?: {
|
|
177
|
+
original?: "off" | "on" | undefined;
|
|
178
|
+
selected?: "off" | "on" | undefined;
|
|
179
|
+
last_edit?: "off" | "on" | undefined;
|
|
180
|
+
previous?: "off" | "on" | undefined;
|
|
181
|
+
compaction?: "off" | "on" | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
focusPath?: string | undefined;
|
|
78
184
|
}, {}>;
|
|
79
185
|
export declare function isReqCreationPromptChatSection(obj: unknown): obj is typeof reqCreationPromptChatSection.infer;
|
|
80
186
|
export declare const reqPromptApplicationChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -339,6 +445,58 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
339
445
|
modalities?: string[] | undefined;
|
|
340
446
|
};
|
|
341
447
|
dryRun?: boolean | undefined;
|
|
448
|
+
selected?: {
|
|
449
|
+
kind: "version";
|
|
450
|
+
fsId: string;
|
|
451
|
+
} | {
|
|
452
|
+
kind: "draft";
|
|
453
|
+
files: ({
|
|
454
|
+
filename: string;
|
|
455
|
+
entryPoint?: boolean | undefined;
|
|
456
|
+
mimetype?: string | undefined;
|
|
457
|
+
type: "code-block";
|
|
458
|
+
lang: string;
|
|
459
|
+
content: string;
|
|
460
|
+
} | {
|
|
461
|
+
filename: string;
|
|
462
|
+
entryPoint?: boolean | undefined;
|
|
463
|
+
mimetype?: string | undefined;
|
|
464
|
+
type: "code-ref";
|
|
465
|
+
refId: string;
|
|
466
|
+
} | {
|
|
467
|
+
filename: string;
|
|
468
|
+
entryPoint?: boolean | undefined;
|
|
469
|
+
mimetype?: string | undefined;
|
|
470
|
+
type: "str-asset-block";
|
|
471
|
+
content: string;
|
|
472
|
+
} | {
|
|
473
|
+
filename: string;
|
|
474
|
+
entryPoint?: boolean | undefined;
|
|
475
|
+
mimetype?: string | undefined;
|
|
476
|
+
type: "str-asset-ref";
|
|
477
|
+
refId: string;
|
|
478
|
+
} | {
|
|
479
|
+
filename: string;
|
|
480
|
+
entryPoint?: boolean | undefined;
|
|
481
|
+
mimetype?: string | undefined;
|
|
482
|
+
type: "uint8-asset-block";
|
|
483
|
+
content: Uint8Array<ArrayBuffer>;
|
|
484
|
+
} | {
|
|
485
|
+
filename: string;
|
|
486
|
+
entryPoint?: boolean | undefined;
|
|
487
|
+
mimetype?: string | undefined;
|
|
488
|
+
type: "uint8-asset-ref";
|
|
489
|
+
refId: string;
|
|
490
|
+
})[];
|
|
491
|
+
} | undefined;
|
|
492
|
+
slots?: {
|
|
493
|
+
original?: "off" | "on" | undefined;
|
|
494
|
+
selected?: "off" | "on" | undefined;
|
|
495
|
+
last_edit?: "off" | "on" | undefined;
|
|
496
|
+
previous?: "off" | "on" | undefined;
|
|
497
|
+
compaction?: "off" | "on" | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
focusPath?: string | undefined;
|
|
342
500
|
} | {
|
|
343
501
|
type: "vibes.diy.req-prompt-chat-section";
|
|
344
502
|
mode: "app";
|
|
@@ -552,6 +710,58 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
552
710
|
modalities?: string[] | undefined;
|
|
553
711
|
};
|
|
554
712
|
dryRun?: boolean | undefined;
|
|
713
|
+
selected?: {
|
|
714
|
+
kind: "version";
|
|
715
|
+
fsId: string;
|
|
716
|
+
} | {
|
|
717
|
+
kind: "draft";
|
|
718
|
+
files: ({
|
|
719
|
+
filename: string;
|
|
720
|
+
entryPoint?: boolean | undefined;
|
|
721
|
+
mimetype?: string | undefined;
|
|
722
|
+
type: "code-block";
|
|
723
|
+
lang: string;
|
|
724
|
+
content: string;
|
|
725
|
+
} | {
|
|
726
|
+
filename: string;
|
|
727
|
+
entryPoint?: boolean | undefined;
|
|
728
|
+
mimetype?: string | undefined;
|
|
729
|
+
type: "code-ref";
|
|
730
|
+
refId: string;
|
|
731
|
+
} | {
|
|
732
|
+
filename: string;
|
|
733
|
+
entryPoint?: boolean | undefined;
|
|
734
|
+
mimetype?: string | undefined;
|
|
735
|
+
type: "str-asset-block";
|
|
736
|
+
content: string;
|
|
737
|
+
} | {
|
|
738
|
+
filename: string;
|
|
739
|
+
entryPoint?: boolean | undefined;
|
|
740
|
+
mimetype?: string | undefined;
|
|
741
|
+
type: "str-asset-ref";
|
|
742
|
+
refId: string;
|
|
743
|
+
} | {
|
|
744
|
+
filename: string;
|
|
745
|
+
entryPoint?: boolean | undefined;
|
|
746
|
+
mimetype?: string | undefined;
|
|
747
|
+
type: "uint8-asset-block";
|
|
748
|
+
content: Uint8Array<ArrayBuffer>;
|
|
749
|
+
} | {
|
|
750
|
+
filename: string;
|
|
751
|
+
entryPoint?: boolean | undefined;
|
|
752
|
+
mimetype?: string | undefined;
|
|
753
|
+
type: "uint8-asset-ref";
|
|
754
|
+
refId: string;
|
|
755
|
+
})[];
|
|
756
|
+
} | undefined;
|
|
757
|
+
slots?: {
|
|
758
|
+
original?: "off" | "on" | undefined;
|
|
759
|
+
selected?: "off" | "on" | undefined;
|
|
760
|
+
last_edit?: "off" | "on" | undefined;
|
|
761
|
+
previous?: "off" | "on" | undefined;
|
|
762
|
+
compaction?: "off" | "on" | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
focusPath?: string | undefined;
|
|
555
765
|
} | {
|
|
556
766
|
type: "vibes.diy.req-prompt-chat-section";
|
|
557
767
|
mode: "app";
|
package/chat.js
CHANGED
|
@@ -39,6 +39,21 @@ export const resOpenChat = type({
|
|
|
39
39
|
export function isResOpenChat(obj) {
|
|
40
40
|
return !(resOpenChat(obj) instanceof type.errors);
|
|
41
41
|
}
|
|
42
|
+
export const selectedSlotInput = type({
|
|
43
|
+
kind: "'version'",
|
|
44
|
+
fsId: "string",
|
|
45
|
+
}).or(type({
|
|
46
|
+
kind: "'draft'",
|
|
47
|
+
files: vibeFile.array(),
|
|
48
|
+
}));
|
|
49
|
+
export const slotMute = type("'on' | 'off'");
|
|
50
|
+
export const slotConfig = type({
|
|
51
|
+
"original?": slotMute,
|
|
52
|
+
"selected?": slotMute,
|
|
53
|
+
"last_edit?": slotMute,
|
|
54
|
+
"previous?": slotMute,
|
|
55
|
+
"compaction?": slotMute,
|
|
56
|
+
});
|
|
42
57
|
export const reqCreationPromptChatSection = type({
|
|
43
58
|
type: "'vibes.diy.req-prompt-chat-section'",
|
|
44
59
|
mode: "'chat'",
|
|
@@ -47,6 +62,9 @@ export const reqCreationPromptChatSection = type({
|
|
|
47
62
|
outerTid: "string",
|
|
48
63
|
prompt: LLMRequest,
|
|
49
64
|
"dryRun?": "boolean",
|
|
65
|
+
"selected?": selectedSlotInput,
|
|
66
|
+
"slots?": slotConfig,
|
|
67
|
+
"focusPath?": "string",
|
|
50
68
|
});
|
|
51
69
|
export function isReqCreationPromptChatSection(obj) {
|
|
52
70
|
return !(reqCreationPromptChatSection(obj) instanceof type.errors);
|
package/chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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AAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,6BAA6B;IACnC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/api-types",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"@fireproof/core-types-base": "~0.24.19",
|
|
15
15
|
"@fireproof/core-types-protocols-cloud": "~0.24.19",
|
|
16
16
|
"@fireproof/core-types-protocols-dashboard": "~0.24.19",
|
|
17
|
-
"@vibes.diy/call-ai-v2": "2.2.
|
|
18
|
-
"@vibes.diy/vibe-types": "2.2.
|
|
17
|
+
"@vibes.diy/call-ai-v2": "2.2.14",
|
|
18
|
+
"@vibes.diy/vibe-types": "2.2.14",
|
|
19
19
|
"arktype": "~2.2.0"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
package/vibes-diy-api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Result } from "@adviser/cement";
|
|
2
2
|
import { VibesDiyError, ResError, VibeFile } from "./common.js";
|
|
3
3
|
import { ReqEnsureAppSlug, ResEnsureAppSlug, ReqListUserSlugAppSlug, ResListUserSlugAppSlug, ReqListRecentVibes, ResListRecentVibes, ReqGetChatDetails, ResGetChatDetails, ReqGetAppByFsId, ResGetAppByFsId, ReqSetModeFs, ResSetModeFs, ReqForkApp, ResForkApp, ReqListUserSlugBindings, ResListUserSlugBindings, ReqCreateUserSlugBinding, ResCreateUserSlugBinding, ReqDeleteUserSlugBinding, ResDeleteUserSlugBinding } from "./app.js";
|
|
4
|
-
import { ReqOpenChat, ResPromptChatSection, SectionEvent, ReqListModels, ResListModels, FSUpdate } from "./chat.js";
|
|
4
|
+
import { ReqOpenChat, ResPromptChatSection, SectionEvent, ReqListModels, ResListModels, FSUpdate, SelectedSlotInput } from "./chat.js";
|
|
5
5
|
import { ReqEnsureUserSettings, ResEnsureUserSettings, ReqListApplicationChats, ResListApplicationChats, ReqEnsureAppSettings, ResEnsureAppSettings } from "./settings.js";
|
|
6
6
|
import { ReqFPCloudToken, ResFPCloudToken } from "./fpcloud-token.js";
|
|
7
7
|
import { ReqCreateInvite, ResCreateInvite, ReqRevokeInvite, ResRevokeInvite, ReqRedeemInvite, ResRedeemInviteOK, ReqHasAccessInvite, ResHasAccessInvite, ReqInviteSetRole, ResInviteSetRole, ReqListInviteGrants, ResListInviteGrants } from "./invite-flow.js";
|
|
@@ -25,6 +25,8 @@ export interface LLMChat extends LLMChatEntry {
|
|
|
25
25
|
prompt(req: LLMRequest, opts?: {
|
|
26
26
|
inputImageBase64?: string;
|
|
27
27
|
dryRun?: boolean;
|
|
28
|
+
focusPath?: string;
|
|
29
|
+
selected?: SelectedSlotInput;
|
|
28
30
|
}): Promise<Result<ResPromptChatSection, VibesDiyError>>;
|
|
29
31
|
promptFS(req: FSUpdate | VibeFile[]): Promise<Result<ResPromptChatSection, VibesDiyError>>;
|
|
30
32
|
readonly sectionStream: ReadableStream<OnResponseTypes>;
|
package/vibes-diy-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vibes-diy-api.js","sourceRoot":"","sources":["../jsr/vibes-diy-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vibes-diy-api.js","sourceRoot":"","sources":["../jsr/vibes-diy-api.ts"],"names":[],"mappings":"AA2FA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,QAAQ;CAClB,CAAC,CAAC"}
|