@vibes.diy/api-types 14.3.341 → 14.3.343
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-evidence-line.js +1 -1
- package/agent-tools.d.ts +2 -2
- package/agent-tools.js +1 -1
- package/app.d.ts +460 -456
- package/app.js +1 -0
- package/chat.d.ts +5 -5
- package/package.json +4 -4
- package/prompt.d.ts +89 -89
- package/settings.d.ts +234 -234
package/app.js
CHANGED
|
@@ -19,6 +19,7 @@ export const ReqEnsureAppSlug = lazyType(() => type({
|
|
|
19
19
|
"seedPosture?": postureIntent,
|
|
20
20
|
"anonWrite?": anonWriteMode,
|
|
21
21
|
"from?": type({ ownerHandle: "string", appSlug: "string" }),
|
|
22
|
+
"title?": "string",
|
|
22
23
|
fileSystem: [vibeFile, "[]"],
|
|
23
24
|
}).and(NeedOneAppSlugUserSlug));
|
|
24
25
|
export const resEnsureAppSlugOk = lazyType(() => type({
|
package/chat.d.ts
CHANGED
|
@@ -3008,7 +3008,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
3008
3008
|
busy?: boolean | undefined;
|
|
3009
3009
|
saved?: boolean | undefined;
|
|
3010
3010
|
ok?: boolean | undefined;
|
|
3011
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
3011
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
3012
3012
|
fsId?: string | undefined;
|
|
3013
3013
|
name?: string | undefined;
|
|
3014
3014
|
round?: number | undefined;
|
|
@@ -3753,7 +3753,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3753
3753
|
busy?: boolean | undefined;
|
|
3754
3754
|
saved?: boolean | undefined;
|
|
3755
3755
|
ok?: boolean | undefined;
|
|
3756
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
3756
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
3757
3757
|
fsId?: string | undefined;
|
|
3758
3758
|
name?: string | undefined;
|
|
3759
3759
|
round?: number | undefined;
|
|
@@ -4519,7 +4519,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
4519
4519
|
busy?: boolean | undefined;
|
|
4520
4520
|
saved?: boolean | undefined;
|
|
4521
4521
|
ok?: boolean | undefined;
|
|
4522
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
4522
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
4523
4523
|
fsId?: string | undefined;
|
|
4524
4524
|
name?: string | undefined;
|
|
4525
4525
|
round?: number | undefined;
|
|
@@ -5288,7 +5288,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
5288
5288
|
busy?: boolean | undefined;
|
|
5289
5289
|
saved?: boolean | undefined;
|
|
5290
5290
|
ok?: boolean | undefined;
|
|
5291
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
5291
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
5292
5292
|
fsId?: string | undefined;
|
|
5293
5293
|
name?: string | undefined;
|
|
5294
5294
|
round?: number | undefined;
|
|
@@ -6069,7 +6069,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
6069
6069
|
busy?: boolean | undefined;
|
|
6070
6070
|
saved?: boolean | undefined;
|
|
6071
6071
|
ok?: boolean | undefined;
|
|
6072
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
6072
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
6073
6073
|
fsId?: string | undefined;
|
|
6074
6074
|
name?: string | undefined;
|
|
6075
6075
|
round?: number | undefined;
|
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.343",
|
|
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.343",
|
|
29
|
+
"@vibes.diy/identity": "14.3.343",
|
|
30
|
+
"@vibes.diy/vibe-types": "14.3.343",
|
|
31
31
|
"arktype": "~2.2.9"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
package/prompt.d.ts
CHANGED
|
@@ -355,7 +355,7 @@ export declare const AgentEvidence: import("arktype/internal/variants/object.ts"
|
|
|
355
355
|
busy?: boolean | undefined;
|
|
356
356
|
saved?: boolean | undefined;
|
|
357
357
|
ok?: boolean | undefined;
|
|
358
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
358
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
359
359
|
fsId?: string | undefined;
|
|
360
360
|
name?: string | undefined;
|
|
361
361
|
round?: number | undefined;
|
|
@@ -387,7 +387,7 @@ export declare const PromptAgentEvidence: import("arktype/internal/variants/obje
|
|
|
387
387
|
busy?: boolean | undefined;
|
|
388
388
|
saved?: boolean | undefined;
|
|
389
389
|
ok?: boolean | undefined;
|
|
390
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
390
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
391
391
|
fsId?: string | undefined;
|
|
392
392
|
name?: string | undefined;
|
|
393
393
|
round?: number | undefined;
|
|
@@ -582,6 +582,18 @@ export declare const PromptDiscussionTitle: import("arktype/internal/variants/ob
|
|
|
582
582
|
export type PromptDiscussionTitle = typeof PromptDiscussionTitle.infer;
|
|
583
583
|
export declare function isPromptDiscussionTitle(msg: unknown): msg is PromptDiscussionTitle;
|
|
584
584
|
export declare const PromptMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
585
|
+
streamId: string;
|
|
586
|
+
chatId: string;
|
|
587
|
+
seq: number;
|
|
588
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
589
|
+
type: "prompt.block-begin";
|
|
590
|
+
} | {
|
|
591
|
+
streamId: string;
|
|
592
|
+
chatId: string;
|
|
593
|
+
seq: number;
|
|
594
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
595
|
+
type: "prompt.block-end";
|
|
596
|
+
} | {
|
|
585
597
|
streamId: string;
|
|
586
598
|
chatId: string;
|
|
587
599
|
seq: number;
|
|
@@ -681,6 +693,16 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
681
693
|
agentCommit?: true | undefined;
|
|
682
694
|
agentSkills?: string[] | undefined;
|
|
683
695
|
alternativeReady?: string | undefined;
|
|
696
|
+
} | {
|
|
697
|
+
streamId: string;
|
|
698
|
+
chatId: string;
|
|
699
|
+
seq: number;
|
|
700
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
701
|
+
type: "prompt.error";
|
|
702
|
+
error: string;
|
|
703
|
+
code?: "turn-lost" | undefined;
|
|
704
|
+
lostBuildPromptIds?: string[] | undefined;
|
|
705
|
+
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
684
706
|
} | {
|
|
685
707
|
streamId: string;
|
|
686
708
|
chatId: string;
|
|
@@ -733,67 +755,6 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
733
755
|
size: number;
|
|
734
756
|
uploadId?: string | undefined;
|
|
735
757
|
})[];
|
|
736
|
-
} | {
|
|
737
|
-
streamId: string;
|
|
738
|
-
chatId: string;
|
|
739
|
-
seq: number;
|
|
740
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
741
|
-
type: "prompt.block-begin";
|
|
742
|
-
} | {
|
|
743
|
-
streamId: string;
|
|
744
|
-
chatId: string;
|
|
745
|
-
seq: number;
|
|
746
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
747
|
-
type: "prompt.error";
|
|
748
|
-
error: string;
|
|
749
|
-
code?: "turn-lost" | undefined;
|
|
750
|
-
lostBuildPromptIds?: string[] | undefined;
|
|
751
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
752
|
-
} | {
|
|
753
|
-
streamId: string;
|
|
754
|
-
chatId: string;
|
|
755
|
-
seq: number;
|
|
756
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
757
|
-
type: "prompt.block-end";
|
|
758
|
-
} | {
|
|
759
|
-
streamId: string;
|
|
760
|
-
chatId: string;
|
|
761
|
-
seq: number;
|
|
762
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
763
|
-
type: "prompt.model-resolved";
|
|
764
|
-
model: string;
|
|
765
|
-
} | {
|
|
766
|
-
streamId: string;
|
|
767
|
-
chatId: string;
|
|
768
|
-
seq: number;
|
|
769
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
770
|
-
type: "prompt.fs-persisted";
|
|
771
|
-
fsRef: (In: {
|
|
772
|
-
appSlug: string;
|
|
773
|
-
ownerHandle?: string | undefined;
|
|
774
|
-
userSlug?: string | undefined;
|
|
775
|
-
mode: "dev" | "production";
|
|
776
|
-
fsId: string;
|
|
777
|
-
}) => import("arktype").Out<{
|
|
778
|
-
appSlug: string;
|
|
779
|
-
mode: "dev" | "production";
|
|
780
|
-
fsId: string;
|
|
781
|
-
ownerHandle: string;
|
|
782
|
-
}>;
|
|
783
|
-
} | {
|
|
784
|
-
streamId: string;
|
|
785
|
-
chatId: string;
|
|
786
|
-
seq: number;
|
|
787
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
788
|
-
type: "prompt.system-prompt";
|
|
789
|
-
text: string;
|
|
790
|
-
} | {
|
|
791
|
-
streamId: string;
|
|
792
|
-
chatId: string;
|
|
793
|
-
seq: number;
|
|
794
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
795
|
-
type: "prompt.raw";
|
|
796
|
-
text: string;
|
|
797
758
|
} | {
|
|
798
759
|
streamId: string;
|
|
799
760
|
chatId: string;
|
|
@@ -889,32 +850,40 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
889
850
|
chatId: string;
|
|
890
851
|
seq: number;
|
|
891
852
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
892
|
-
type: "prompt.
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
853
|
+
type: "prompt.model-resolved";
|
|
854
|
+
model: string;
|
|
855
|
+
} | {
|
|
856
|
+
streamId: string;
|
|
857
|
+
chatId: string;
|
|
858
|
+
seq: number;
|
|
859
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
860
|
+
type: "prompt.raw";
|
|
861
|
+
text: string;
|
|
862
|
+
} | {
|
|
863
|
+
streamId: string;
|
|
864
|
+
chatId: string;
|
|
865
|
+
seq: number;
|
|
866
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
867
|
+
type: "prompt.fs-persisted";
|
|
868
|
+
fsRef: (In: {
|
|
869
|
+
appSlug: string;
|
|
870
|
+
ownerHandle?: string | undefined;
|
|
871
|
+
userSlug?: string | undefined;
|
|
872
|
+
mode: "dev" | "production";
|
|
873
|
+
fsId: string;
|
|
874
|
+
}) => import("arktype").Out<{
|
|
875
|
+
appSlug: string;
|
|
876
|
+
mode: "dev" | "production";
|
|
877
|
+
fsId: string;
|
|
878
|
+
ownerHandle: string;
|
|
879
|
+
}>;
|
|
880
|
+
} | {
|
|
881
|
+
streamId: string;
|
|
882
|
+
chatId: string;
|
|
883
|
+
seq: number;
|
|
884
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
885
|
+
type: "prompt.system-prompt";
|
|
886
|
+
text: string;
|
|
918
887
|
} | {
|
|
919
888
|
streamId: string;
|
|
920
889
|
chatId: string;
|
|
@@ -1001,6 +970,37 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
1001
970
|
type: "prompt.first-brief";
|
|
1002
971
|
text: string;
|
|
1003
972
|
msFromTurnStart: number;
|
|
973
|
+
} | {
|
|
974
|
+
streamId: string;
|
|
975
|
+
chatId: string;
|
|
976
|
+
seq: number;
|
|
977
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
978
|
+
type: "prompt.agent-evidence";
|
|
979
|
+
evidence: {
|
|
980
|
+
kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
|
|
981
|
+
options?: {
|
|
982
|
+
label: string;
|
|
983
|
+
gold?: boolean | undefined;
|
|
984
|
+
kind?: "access" | "connect" | "edit" | "pay" | "publish" | "seed" | undefined;
|
|
985
|
+
}[] | undefined;
|
|
986
|
+
sessionId?: string | undefined;
|
|
987
|
+
callId?: string | undefined;
|
|
988
|
+
handleId?: string | undefined;
|
|
989
|
+
buildHandleId?: string | undefined;
|
|
990
|
+
supersedes?: string | undefined;
|
|
991
|
+
queued?: boolean | undefined;
|
|
992
|
+
state?: "building" | "committing" | "queued" | undefined;
|
|
993
|
+
busy?: boolean | undefined;
|
|
994
|
+
saved?: boolean | undefined;
|
|
995
|
+
ok?: boolean | undefined;
|
|
996
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "finish-ask" | "guest-first-version" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "own-pass-offered" | "stale-base" | "unchanged" | "under-one-build" | undefined;
|
|
997
|
+
fsId?: string | undefined;
|
|
998
|
+
name?: string | undefined;
|
|
999
|
+
round?: number | undefined;
|
|
1000
|
+
epoch?: number | undefined;
|
|
1001
|
+
text?: string | undefined;
|
|
1002
|
+
truncated?: boolean | undefined;
|
|
1003
|
+
};
|
|
1004
1004
|
} | {
|
|
1005
1005
|
type: "prompt.status";
|
|
1006
1006
|
streamId: string;
|