@vibes.diy/api-types 14.1.48 → 14.1.51
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.d.ts +7 -0
- package/agent-evidence-line.js +58 -0
- package/agent-evidence-line.js.map +1 -0
- package/agent-tools.d.ts +7 -3
- package/agent-tools.js +4 -3
- package/agent-tools.js.map +1 -1
- package/app.d.ts +44 -38
- package/cf-env.d.ts +0 -3
- package/chat.d.ts +230 -190
- package/chat.js +6 -0
- package/chat.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite.d.ts +18 -0
- package/invite.js +11 -0
- package/invite.js.map +1 -1
- package/package.json +4 -4
- package/prompt.d.ts +14 -0
- package/prompt.js +4 -0
- package/prompt.js.map +1 -1
- package/settings.d.ts +66 -1
- package/settings.js +11 -0
- package/settings.js.map +1 -1
- package/style.d.ts +11 -0
- package/style.js +3 -0
- package/style.js.map +1 -1
- package/vibes-diy-api.d.ts +2 -0
- package/vibes-diy-serv-ctx.d.ts +2 -6
- package/vibes-diy-serv-ctx.js +1 -3
- package/vibes-diy-serv-ctx.js.map +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentEvidence } from "./prompt.js";
|
|
2
|
+
export interface AgentEvidenceLine {
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly outcome: boolean;
|
|
5
|
+
readonly buildProgress: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function agentEvidenceLine(evidence: AgentEvidence): AgentEvidenceLine | undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const READING_APP = new Set([
|
|
2
|
+
"read_file",
|
|
3
|
+
"read_files",
|
|
4
|
+
"list_files",
|
|
5
|
+
"read_app_settings",
|
|
6
|
+
"list_versions",
|
|
7
|
+
"read_release_state",
|
|
8
|
+
"read_app_logs",
|
|
9
|
+
"read_schedule_status",
|
|
10
|
+
]);
|
|
11
|
+
const READING_LINK = new Set(["web_fetch", "fetch_url"]);
|
|
12
|
+
const BUILDING = new Set(["edit_vibe", "create_vibe"]);
|
|
13
|
+
const MUTATING = new Set(["edit_vibe", "create_vibe", "commit_version", "write_file", "edit_file", "set_app_style"]);
|
|
14
|
+
const line = (text, opts) => ({
|
|
15
|
+
text,
|
|
16
|
+
outcome: opts?.outcome ?? false,
|
|
17
|
+
buildProgress: opts?.buildProgress ?? false,
|
|
18
|
+
});
|
|
19
|
+
const FAILED = "That change didn't land";
|
|
20
|
+
const changeFailed = (name) => name !== undefined && MUTATING.has(name) ? line(FAILED, { outcome: true }) : undefined;
|
|
21
|
+
export function agentEvidenceLine(evidence) {
|
|
22
|
+
switch (evidence.kind) {
|
|
23
|
+
case "call": {
|
|
24
|
+
const name = evidence.name;
|
|
25
|
+
if (name === undefined)
|
|
26
|
+
return undefined;
|
|
27
|
+
if (BUILDING.has(name))
|
|
28
|
+
return line("Building…", { buildProgress: true });
|
|
29
|
+
if (READING_APP.has(name))
|
|
30
|
+
return line("Reading the app…");
|
|
31
|
+
if (READING_LINK.has(name))
|
|
32
|
+
return line("Reading a link…");
|
|
33
|
+
if (name === "commit_version")
|
|
34
|
+
return line("Saving…");
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
case "receipt":
|
|
38
|
+
if (evidence.queued === true || evidence.state === "queued" || evidence.state === "committing")
|
|
39
|
+
return line("Change queued behind the current build");
|
|
40
|
+
if (evidence.ok === false)
|
|
41
|
+
return changeFailed(evidence.name);
|
|
42
|
+
return undefined;
|
|
43
|
+
case "dispatch":
|
|
44
|
+
return line("Build started", { buildProgress: true });
|
|
45
|
+
case "result":
|
|
46
|
+
if (evidence.saved === true)
|
|
47
|
+
return line("Saved", { outcome: true });
|
|
48
|
+
if (evidence.ok === false)
|
|
49
|
+
return changeFailed(evidence.name);
|
|
50
|
+
return undefined;
|
|
51
|
+
case "active":
|
|
52
|
+
case "idle":
|
|
53
|
+
return undefined;
|
|
54
|
+
default:
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=agent-evidence-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-evidence-line.js","sourceRoot":"","sources":["../jsr/agent-evidence-line.ts"],"names":[],"mappings":"AAqCA,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,WAAW;IAMX,YAAY;IACZ,YAAY;IACZ,mBAAmB;IACnB,eAAe;IAIf,oBAAoB;IACpB,eAAe;IACf,sBAAsB;CACvB,CAAC,CAAC;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AACzD,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAMvD,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC;AAErH,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,IAAqD,EAAqB,EAAE,CAAC,CAAC;IACxG,IAAI;IACJ,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,KAAK;IAC/B,aAAa,EAAE,IAAI,EAAE,aAAa,IAAI,KAAK;CAC5C,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,yBAAyB,CAAC;AAGzC,MAAM,YAAY,GAAG,CAAC,IAAwB,EAAiC,EAAE,CAC/E,IAAI,KAAK,SAAS,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAEzF,MAAM,UAAU,iBAAiB,CAAC,QAAuB;IACvD,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC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,CAAC;QAGnB,KAAK,QAAQ,CAAC;QACd,KAAK,MAAM;YACT,OAAO,SAAS,CAAC;QACnB;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
|
package/agent-tools.d.ts
CHANGED
|
@@ -54,9 +54,9 @@ export declare const agentToolRefusal: import("arktype/internal/variants/object.
|
|
|
54
54
|
}, {}>;
|
|
55
55
|
export type AgentToolRefusal = typeof agentToolRefusal.infer;
|
|
56
56
|
export declare function isAgentToolRefusal(obj: unknown): obj is AgentToolRefusal;
|
|
57
|
-
export declare const BUILD_RESULT_NEXT = "its [build result] arrives in this conversation by itself; no lookup is needed";
|
|
58
|
-
export declare const QUEUED_BUILD_NEXT = "it starts when the current build lands \u2014 you will see [queued edit], then its [build result]; no lookup is needed";
|
|
59
|
-
export declare const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself; no lookup is needed";
|
|
57
|
+
export declare const BUILD_RESULT_NEXT = "its [build result] arrives in this conversation by itself and names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
58
|
+
export declare const QUEUED_BUILD_NEXT = "it starts when the current build lands \u2014 you will see [queued edit], then its [build result], which names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
59
|
+
export declare const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself and names the version it saved and the files in it; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
60
60
|
export declare const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
|
|
61
61
|
export declare const agentBuildDispatched: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
62
62
|
state: "building" | "queued";
|
|
@@ -72,6 +72,10 @@ export declare const agentBuildDispatched: import("arktype/internal/variants/obj
|
|
|
72
72
|
dropped?: {
|
|
73
73
|
offCatalog: string[];
|
|
74
74
|
deferredToLater: string[];
|
|
75
|
+
theme?: {
|
|
76
|
+
asked: string;
|
|
77
|
+
using: string;
|
|
78
|
+
} | undefined;
|
|
75
79
|
} | undefined;
|
|
76
80
|
deferred?: {
|
|
77
81
|
access?: {
|
package/agent-tools.js
CHANGED
|
@@ -46,9 +46,9 @@ export const agentToolRefusal = lazyType(() => type({
|
|
|
46
46
|
export function isAgentToolRefusal(obj) {
|
|
47
47
|
return !(agentToolRefusal(obj) instanceof type.errors);
|
|
48
48
|
}
|
|
49
|
-
export const BUILD_RESULT_NEXT = "its [build result] arrives in this conversation by itself; no lookup is needed";
|
|
50
|
-
export const QUEUED_BUILD_NEXT = "it starts when the current build lands — you will see [queued edit], then its [build result]; no lookup is needed";
|
|
51
|
-
export const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself; no lookup is needed";
|
|
49
|
+
export const BUILD_RESULT_NEXT = "its [build result] arrives in this conversation by itself and names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
50
|
+
export const QUEUED_BUILD_NEXT = "it starts when the current build lands — you will see [queued edit], then its [build result], which names the files it changed, whether the entry file was among them, and the version it saved; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
51
|
+
export const COMMIT_RESULT_NEXT = "its [commit result] arrives in this conversation by itself and names the version it saved and the files in it; no lookup is needed, and a read after it is only for a question the report does not answer";
|
|
52
52
|
export const QUEUED_EDIT_STARTED_NEXT = "Its [build result] arrives here by itself; no lookup is needed.";
|
|
53
53
|
export const agentBuildDispatched = lazyType(() => type({
|
|
54
54
|
state: "'building' | 'queued'",
|
|
@@ -64,6 +64,7 @@ export const agentBuildDispatched = lazyType(() => type({
|
|
|
64
64
|
"dropped?": {
|
|
65
65
|
offCatalog: "string[]",
|
|
66
66
|
deferredToLater: "string[]",
|
|
67
|
+
"theme?": { asked: "string", using: "string" },
|
|
67
68
|
},
|
|
68
69
|
"deferred?": {
|
|
69
70
|
"access?": { needed: "true", why: "string" },
|
package/agent-tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
534
534
|
appSlug?: string | undefined;
|
|
535
535
|
ownerHandle?: string | undefined;
|
|
536
536
|
blocks: ({
|
|
537
|
+
type: "prompt.research";
|
|
538
|
+
version: 1;
|
|
539
|
+
streamId: string;
|
|
540
|
+
chatId: string;
|
|
541
|
+
seq: number;
|
|
542
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
543
|
+
researchId: string;
|
|
544
|
+
status: "complete" | "failed" | "partial";
|
|
545
|
+
brief: string;
|
|
546
|
+
sources: {
|
|
547
|
+
url: string;
|
|
548
|
+
finalUrl: string | null;
|
|
549
|
+
contentType: string | null;
|
|
550
|
+
httpStatus: number | null;
|
|
551
|
+
backendFetchable: boolean;
|
|
552
|
+
fetched: boolean;
|
|
553
|
+
errorCode?: string | undefined;
|
|
554
|
+
}[];
|
|
555
|
+
api: {
|
|
556
|
+
method: string;
|
|
557
|
+
path: string;
|
|
558
|
+
description: string;
|
|
559
|
+
fields: string[];
|
|
560
|
+
}[];
|
|
561
|
+
excerpts: {
|
|
562
|
+
sourceUrl: string;
|
|
563
|
+
text: string;
|
|
564
|
+
locator?: string | undefined;
|
|
565
|
+
}[];
|
|
566
|
+
seedRows: {
|
|
567
|
+
sourceUrl: string;
|
|
568
|
+
dbName: string;
|
|
569
|
+
key: string;
|
|
570
|
+
item: unknown;
|
|
571
|
+
}[];
|
|
572
|
+
completedAt: string;
|
|
573
|
+
errorCode?: string | undefined;
|
|
574
|
+
} | {
|
|
537
575
|
streamId: string;
|
|
538
576
|
chatId: string;
|
|
539
577
|
seq: number;
|
|
@@ -623,6 +661,7 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
623
661
|
} | undefined;
|
|
624
662
|
response_format?: unknown;
|
|
625
663
|
};
|
|
664
|
+
source?: "suggestion" | undefined;
|
|
626
665
|
agentDispatched?: true | undefined;
|
|
627
666
|
platformInitiated?: true | undefined;
|
|
628
667
|
} | {
|
|
@@ -633,6 +672,7 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
633
672
|
type: "prompt.error";
|
|
634
673
|
error: string;
|
|
635
674
|
code?: "turn-lost" | undefined;
|
|
675
|
+
lostBuildPromptIds?: string[] | undefined;
|
|
636
676
|
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
637
677
|
} | {
|
|
638
678
|
streamId: string;
|
|
@@ -828,6 +868,8 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
828
868
|
surfaceLift: number;
|
|
829
869
|
fillLevel: number;
|
|
830
870
|
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
871
|
+
paper?: number | undefined;
|
|
872
|
+
fillLift?: number | undefined;
|
|
831
873
|
};
|
|
832
874
|
} | undefined;
|
|
833
875
|
font?: string | undefined;
|
|
@@ -873,6 +915,8 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
873
915
|
ok?: boolean | undefined;
|
|
874
916
|
fsId?: string | undefined;
|
|
875
917
|
name?: string | undefined;
|
|
918
|
+
round?: number | undefined;
|
|
919
|
+
epoch?: number | undefined;
|
|
876
920
|
text?: string | undefined;
|
|
877
921
|
truncated?: boolean | undefined;
|
|
878
922
|
};
|
|
@@ -896,44 +940,6 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
|
|
|
896
940
|
type: "prompt.notice";
|
|
897
941
|
kind: "edits-incomplete";
|
|
898
942
|
path?: string | undefined;
|
|
899
|
-
} | {
|
|
900
|
-
type: "prompt.research";
|
|
901
|
-
version: 1;
|
|
902
|
-
streamId: string;
|
|
903
|
-
chatId: string;
|
|
904
|
-
seq: number;
|
|
905
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
906
|
-
researchId: string;
|
|
907
|
-
status: "complete" | "failed" | "partial";
|
|
908
|
-
brief: string;
|
|
909
|
-
sources: {
|
|
910
|
-
url: string;
|
|
911
|
-
finalUrl: string | null;
|
|
912
|
-
contentType: string | null;
|
|
913
|
-
httpStatus: number | null;
|
|
914
|
-
backendFetchable: boolean;
|
|
915
|
-
fetched: boolean;
|
|
916
|
-
errorCode?: string | undefined;
|
|
917
|
-
}[];
|
|
918
|
-
api: {
|
|
919
|
-
method: string;
|
|
920
|
-
path: string;
|
|
921
|
-
description: string;
|
|
922
|
-
fields: string[];
|
|
923
|
-
}[];
|
|
924
|
-
excerpts: {
|
|
925
|
-
sourceUrl: string;
|
|
926
|
-
text: string;
|
|
927
|
-
locator?: string | undefined;
|
|
928
|
-
}[];
|
|
929
|
-
seedRows: {
|
|
930
|
-
sourceUrl: string;
|
|
931
|
-
dbName: string;
|
|
932
|
-
key: string;
|
|
933
|
-
item: unknown;
|
|
934
|
-
}[];
|
|
935
|
-
completedAt: string;
|
|
936
|
-
errorCode?: string | undefined;
|
|
937
943
|
} | {
|
|
938
944
|
blockId: string;
|
|
939
945
|
streamId: string;
|
package/cf-env.d.ts
CHANGED
|
@@ -23,9 +23,6 @@ export interface CFEnv {
|
|
|
23
23
|
CODEGEN_AGENT?: string;
|
|
24
24
|
CODEGEN_AGENT_FIRST_TURN?: string;
|
|
25
25
|
CODEGEN_AGENT_SESSION?: string;
|
|
26
|
-
CODEGEN_LOOK_BRIEF?: string;
|
|
27
|
-
CODEGEN_LOOK_COMPONENTS?: string;
|
|
28
|
-
CODEGEN_LOOK_LINT?: string;
|
|
29
26
|
DISCORD_WEBHOOK_URL?: string;
|
|
30
27
|
DISCORD_CURATION_BOT_TOKEN?: string;
|
|
31
28
|
DISCORD_CURATION_CHANNEL_ID?: string;
|