@vibes.diy/api-types 14.3.78 → 14.3.80
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/agent-chat.d.ts +33 -0
- package/agent-chat.js +26 -0
- package/agent-chat.js.map +1 -1
- package/app.d.ts +63 -54
- package/chat.d.ts +1050 -919
- package/chat.js +27 -0
- package/chat.js.map +1 -1
- package/common.d.ts +2 -0
- package/common.js +7 -1
- package/common.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/prefilled-prompts.d.ts +2 -8
- package/prefilled-prompts.js +25 -12
- package/prefilled-prompts.js.map +1 -1
- package/prompt.d.ts +18 -0
- package/prompt.js +1 -0
- package/prompt.js.map +1 -1
- package/related-vibes.d.ts +0 -40
- package/related-vibes.js +0 -27
- package/related-vibes.js.map +1 -1
- package/shard-policy.d.ts +3 -1
- package/shard-policy.js +3 -1
- package/shard-policy.js.map +1 -1
- package/vibe-activity.d.ts +78 -0
- package/vibe-activity.js +49 -0
- package/vibe-activity.js.map +1 -0
- package/vibes-diy-api.d.ts +7 -3
- package/vibes-diy-api.js.map +1 -1
package/agent-chat.d.ts
CHANGED
|
@@ -26,3 +26,36 @@ export declare const withVibeToolInput: import("arktype/internal/variants/object
|
|
|
26
26
|
}[];
|
|
27
27
|
}, {}>;
|
|
28
28
|
export type WithVibeToolInput = typeof withVibeToolInput.infer;
|
|
29
|
+
export declare const reqListAgentDiscussions: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
30
|
+
type: "vibes.diy.req-list-agent-discussions";
|
|
31
|
+
auth: {
|
|
32
|
+
type: "clerk" | "device-id" | "guest" | "ucan";
|
|
33
|
+
token: string;
|
|
34
|
+
};
|
|
35
|
+
ownerHandle: string;
|
|
36
|
+
limit?: number | undefined;
|
|
37
|
+
cursor?: string | undefined;
|
|
38
|
+
}, {}>;
|
|
39
|
+
export type ReqListAgentDiscussions = typeof reqListAgentDiscussions.infer;
|
|
40
|
+
export declare function isReqListAgentDiscussions(obj: unknown): obj is ReqListAgentDiscussions;
|
|
41
|
+
export declare const agentDiscussionItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
42
|
+
chatId: string;
|
|
43
|
+
ownerHandle: string;
|
|
44
|
+
created: string;
|
|
45
|
+
lastActivity: string;
|
|
46
|
+
summary: string;
|
|
47
|
+
}, {}>;
|
|
48
|
+
export type AgentDiscussionItem = typeof agentDiscussionItem.infer;
|
|
49
|
+
export declare const resListAgentDiscussions: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
50
|
+
type: "vibes.diy.res-list-agent-discussions";
|
|
51
|
+
items: {
|
|
52
|
+
chatId: string;
|
|
53
|
+
ownerHandle: string;
|
|
54
|
+
created: string;
|
|
55
|
+
lastActivity: string;
|
|
56
|
+
summary: string;
|
|
57
|
+
}[];
|
|
58
|
+
nextCursor?: string | undefined;
|
|
59
|
+
}, {}>;
|
|
60
|
+
export type ResListAgentDiscussions = typeof resListAgentDiscussions.infer;
|
|
61
|
+
export declare function isResListAgentDiscussions(obj: unknown): obj is ResListAgentDiscussions;
|
package/agent-chat.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
|
+
import { dashAuthType } from "./common.js";
|
|
2
3
|
import { lazyType } from "./lazy-type.js";
|
|
3
4
|
export const AGENT_CHAT_APP_SLUG = "~agent";
|
|
4
5
|
export function isAgentChatAppSlug(appSlug) {
|
|
@@ -20,4 +21,29 @@ export const withVibeToolInput = lazyType(() => type({
|
|
|
20
21
|
appSlug: nonBlank,
|
|
21
22
|
calls: type({ tool: "string", "input?": "unknown" }).onUndeclaredKey("delete").array(),
|
|
22
23
|
}).onUndeclaredKey("delete"));
|
|
24
|
+
export const reqListAgentDiscussions = lazyType(() => type({
|
|
25
|
+
type: "'vibes.diy.req-list-agent-discussions'",
|
|
26
|
+
auth: dashAuthType,
|
|
27
|
+
ownerHandle: "string",
|
|
28
|
+
"limit?": "number",
|
|
29
|
+
"cursor?": "string",
|
|
30
|
+
}));
|
|
31
|
+
export function isReqListAgentDiscussions(obj) {
|
|
32
|
+
return !(reqListAgentDiscussions(obj) instanceof type.errors);
|
|
33
|
+
}
|
|
34
|
+
export const agentDiscussionItem = lazyType(() => type({
|
|
35
|
+
chatId: "string",
|
|
36
|
+
ownerHandle: "string",
|
|
37
|
+
created: "string",
|
|
38
|
+
lastActivity: "string",
|
|
39
|
+
summary: "string",
|
|
40
|
+
}));
|
|
41
|
+
export const resListAgentDiscussions = lazyType(() => type({
|
|
42
|
+
type: "'vibes.diy.res-list-agent-discussions'",
|
|
43
|
+
items: agentDiscussionItem.array(),
|
|
44
|
+
"nextCursor?": "string",
|
|
45
|
+
}));
|
|
46
|
+
export function isResListAgentDiscussions(obj) {
|
|
47
|
+
return !(resListAgentDiscussions(obj) instanceof type.errors);
|
|
48
|
+
}
|
|
23
49
|
//# sourceMappingURL=agent-chat.js.map
|
package/agent-chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-chat.js","sourceRoot":"","sources":["../jsr/agent-chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-chat.js","sourceRoot":"","sources":["../jsr/agent-chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAsB1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAG5C,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,OAAO,KAAK,mBAAmB,CAAC;AACzC,CAAC;AAID,MAAM,QAAQ,GAAG,QA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SAAS,EAAE,QAAQ;CACpB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,GAAY;IACpD,OAAO,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/C,IAAI,CAAC;IACH,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,QAAQ;IAGjB,YAAY,EAAE,QAAQ;IAGtB,OAAO,EAAE,QAAQ;CAClB,CAAC,CACH,CAAC;AAGF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,GAAG,EAAE,CACnD,IAAI,CAAC;IACH,IAAI,EAAE,wCAAwC;IAC9C,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE;IAClC,aAAa,EAAE,QAAQ;CACxB,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,GAAY;IACpD,OAAO,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC"}
|
package/app.d.ts
CHANGED
|
@@ -622,37 +622,18 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
622
622
|
seq: number;
|
|
623
623
|
blockNr: number;
|
|
624
624
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
625
|
-
type: "block.
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
image: {
|
|
638
|
-
lines: number;
|
|
639
|
-
bytes: number;
|
|
640
|
-
cnt?: number | undefined;
|
|
641
|
-
};
|
|
642
|
-
total: {
|
|
643
|
-
lines: number;
|
|
644
|
-
bytes: number;
|
|
645
|
-
cnt?: number | undefined;
|
|
646
|
-
};
|
|
647
|
-
};
|
|
648
|
-
usage: {
|
|
649
|
-
prompt_tokens: number;
|
|
650
|
-
completion_tokens: number;
|
|
651
|
-
total_tokens: number;
|
|
652
|
-
model?: string | undefined;
|
|
653
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
654
|
-
reasoningEffort?: string | undefined;
|
|
655
|
-
};
|
|
625
|
+
type: "block.toplevel.begin";
|
|
626
|
+
sectionId: string;
|
|
627
|
+
} | {
|
|
628
|
+
blockId: string;
|
|
629
|
+
streamId: string;
|
|
630
|
+
seq: number;
|
|
631
|
+
blockNr: number;
|
|
632
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
633
|
+
lineNr: number;
|
|
634
|
+
line: string;
|
|
635
|
+
type: "block.toplevel.line";
|
|
636
|
+
sectionId: string;
|
|
656
637
|
} | {
|
|
657
638
|
blockId: string;
|
|
658
639
|
streamId: string;
|
|
@@ -664,14 +645,8 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
664
645
|
bytes: number;
|
|
665
646
|
cnt?: number | undefined;
|
|
666
647
|
};
|
|
667
|
-
type: "block.
|
|
648
|
+
type: "block.toplevel.end";
|
|
668
649
|
sectionId: string;
|
|
669
|
-
url?: string | undefined;
|
|
670
|
-
uploadId?: string | undefined;
|
|
671
|
-
cid?: string | undefined;
|
|
672
|
-
mimeType?: string | undefined;
|
|
673
|
-
size?: number | undefined;
|
|
674
|
-
docWritten?: boolean | undefined;
|
|
675
650
|
} | {
|
|
676
651
|
blockId: string;
|
|
677
652
|
streamId: string;
|
|
@@ -729,31 +704,56 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
729
704
|
seq: number;
|
|
730
705
|
blockNr: number;
|
|
731
706
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
blockNr: number;
|
|
739
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
740
|
-
lineNr: number;
|
|
741
|
-
line: string;
|
|
742
|
-
type: "block.toplevel.line";
|
|
707
|
+
stats: {
|
|
708
|
+
lines: number;
|
|
709
|
+
bytes: number;
|
|
710
|
+
cnt?: number | undefined;
|
|
711
|
+
};
|
|
712
|
+
type: "block.image";
|
|
743
713
|
sectionId: string;
|
|
714
|
+
url?: string | undefined;
|
|
715
|
+
uploadId?: string | undefined;
|
|
716
|
+
cid?: string | undefined;
|
|
717
|
+
mimeType?: string | undefined;
|
|
718
|
+
size?: number | undefined;
|
|
719
|
+
docWritten?: boolean | undefined;
|
|
744
720
|
} | {
|
|
745
721
|
blockId: string;
|
|
746
722
|
streamId: string;
|
|
747
723
|
seq: number;
|
|
748
724
|
blockNr: number;
|
|
749
725
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
726
|
+
type: "block.stats";
|
|
750
727
|
stats: {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
728
|
+
toplevel: {
|
|
729
|
+
lines: number;
|
|
730
|
+
bytes: number;
|
|
731
|
+
cnt?: number | undefined;
|
|
732
|
+
};
|
|
733
|
+
code: {
|
|
734
|
+
lines: number;
|
|
735
|
+
bytes: number;
|
|
736
|
+
cnt?: number | undefined;
|
|
737
|
+
};
|
|
738
|
+
image: {
|
|
739
|
+
lines: number;
|
|
740
|
+
bytes: number;
|
|
741
|
+
cnt?: number | undefined;
|
|
742
|
+
};
|
|
743
|
+
total: {
|
|
744
|
+
lines: number;
|
|
745
|
+
bytes: number;
|
|
746
|
+
cnt?: number | undefined;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
usage: {
|
|
750
|
+
prompt_tokens: number;
|
|
751
|
+
completion_tokens: number;
|
|
752
|
+
total_tokens: number;
|
|
753
|
+
model?: string | undefined;
|
|
754
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
755
|
+
reasoningEffort?: string | undefined;
|
|
754
756
|
};
|
|
755
|
-
type: "block.toplevel.end";
|
|
756
|
-
sectionId: string;
|
|
757
757
|
} | {
|
|
758
758
|
streamId: string;
|
|
759
759
|
chatId: string;
|
|
@@ -842,6 +842,10 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
842
842
|
name: string;
|
|
843
843
|
};
|
|
844
844
|
} | undefined;
|
|
845
|
+
cache_control?: {
|
|
846
|
+
type: "ephemeral";
|
|
847
|
+
ttl?: "1h" | "5m" | undefined;
|
|
848
|
+
} | undefined;
|
|
845
849
|
response_format?: unknown;
|
|
846
850
|
image_config?: unknown;
|
|
847
851
|
reasoning?: {
|
|
@@ -858,6 +862,7 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
858
862
|
clientMessageId?: string | undefined;
|
|
859
863
|
origin?: "design-repair" | undefined;
|
|
860
864
|
agentCommit?: true | undefined;
|
|
865
|
+
agentSkills?: string[] | undefined;
|
|
861
866
|
} | {
|
|
862
867
|
streamId: string;
|
|
863
868
|
chatId: string;
|
|
@@ -996,6 +1001,10 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
996
1001
|
name: string;
|
|
997
1002
|
};
|
|
998
1003
|
} | undefined;
|
|
1004
|
+
cache_control?: {
|
|
1005
|
+
type: "ephemeral";
|
|
1006
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1007
|
+
} | undefined;
|
|
999
1008
|
response_format?: unknown;
|
|
1000
1009
|
image_config?: unknown;
|
|
1001
1010
|
reasoning?: {
|