@vibes.diy/api-types 14.3.76 → 14.3.78
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 +28 -0
- package/agent-chat.js +23 -0
- package/agent-chat.js.map +1 -0
- package/agent-evidence-line.js +3 -0
- package/agent-evidence-line.js.map +1 -1
- package/agent-tools.d.ts +0 -21
- package/agent-tools.js +0 -9
- package/agent-tools.js.map +1 -1
- package/app.d.ts +126 -93
- package/app.js +7 -1
- package/app.js.map +1 -1
- package/cf-env.d.ts +1 -0
- package/chat-chips.d.ts +9 -1
- package/chat-chips.js +69 -13
- package/chat-chips.js.map +1 -1
- package/chat.d.ts +244 -206
- package/chat.js +6 -1
- package/chat.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/invite.d.ts +109 -152
- package/invite.js +1 -14
- package/invite.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/offered-options.d.ts +27 -0
- package/offered-options.js +73 -0
- package/offered-options.js.map +1 -0
- package/package.json +4 -4
- package/prompt.d.ts +22 -5
- package/prompt.js +5 -2
- package/prompt.js.map +1 -1
- package/settings.d.ts +0 -42
- package/types.d.ts +14 -0
- package/types.js +7 -0
- package/types.js.map +1 -1
- package/vibes-diy-api.d.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const OptionKind: import("arktype/internal/variants/string.ts").StringType<"access" | "connect" | "edit" | "publish" | "seed", {}>;
|
|
2
|
+
export type OptionKind = typeof OptionKind.infer;
|
|
3
|
+
export declare const OfferedOption: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4
|
+
label: string;
|
|
5
|
+
gold?: boolean | undefined;
|
|
6
|
+
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export type OfferedOption = typeof OfferedOption.infer;
|
|
9
|
+
export type Chip = OfferedOption;
|
|
10
|
+
export declare const OFFER_OPTIONS_MAX = 3;
|
|
11
|
+
export declare const OPTION_LABEL_MAX_CHARS = 200;
|
|
12
|
+
export declare const OfferedOptions: import("arktype/internal/variants/array.ts").ArrayType<{
|
|
13
|
+
label: string;
|
|
14
|
+
gold?: boolean | undefined;
|
|
15
|
+
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
16
|
+
}[], {}>;
|
|
17
|
+
export type OfferedOptionsProblemReason = "no-options" | "too-many-options" | "empty-label" | "label-too-long" | "duplicate-label" | "more-than-one-gold" | "gold-needs-capability";
|
|
18
|
+
export interface OfferedOptionsProblem {
|
|
19
|
+
readonly reason: OfferedOptionsProblemReason;
|
|
20
|
+
readonly message: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function isCapabilityOption(option: OfferedOption): boolean;
|
|
23
|
+
export declare function offeredOptionsProblem(options: readonly OfferedOption[]): OfferedOptionsProblem | undefined;
|
|
24
|
+
export declare function optionLinesText(options: readonly OfferedOption[]): string;
|
|
25
|
+
export declare function markGoldOptionLines(text: string, options: readonly OfferedOption[]): string;
|
|
26
|
+
export type PromptSource = "suggestion" | "gold";
|
|
27
|
+
export declare function isChipSource(source: string | undefined): boolean;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type } from "arktype";
|
|
2
|
+
export const OptionKind = type("'edit' | 'seed' | 'access' | 'connect' | 'publish'");
|
|
3
|
+
export const OfferedOption = type({ label: "string", "gold?": "boolean", "kind?": OptionKind });
|
|
4
|
+
export const OFFER_OPTIONS_MAX = 3;
|
|
5
|
+
export const OPTION_LABEL_MAX_CHARS = 200;
|
|
6
|
+
export const OfferedOptions = OfferedOption.array().atMostLength(OFFER_OPTIONS_MAX);
|
|
7
|
+
export function isCapabilityOption(option) {
|
|
8
|
+
return option.kind !== undefined && option.kind !== "edit";
|
|
9
|
+
}
|
|
10
|
+
function labelKey(label) {
|
|
11
|
+
return label.trim().toLowerCase();
|
|
12
|
+
}
|
|
13
|
+
export function offeredOptionsProblem(options) {
|
|
14
|
+
if (options.length === 0) {
|
|
15
|
+
return { reason: "no-options", message: "Offer at least one option." };
|
|
16
|
+
}
|
|
17
|
+
if (options.length > OFFER_OPTIONS_MAX) {
|
|
18
|
+
return {
|
|
19
|
+
reason: "too-many-options",
|
|
20
|
+
message: `Offer at most ${OFFER_OPTIONS_MAX} options; two that fit beat three that fill the row.`,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const seen = new Set();
|
|
24
|
+
for (const option of options) {
|
|
25
|
+
const key = labelKey(option.label);
|
|
26
|
+
if (key.length === 0)
|
|
27
|
+
return { reason: "empty-label", message: "Every option needs a label the person can tap." };
|
|
28
|
+
if (option.label.trim().length > OPTION_LABEL_MAX_CHARS) {
|
|
29
|
+
return {
|
|
30
|
+
reason: "label-too-long",
|
|
31
|
+
message: `Keep each label under ${OPTION_LABEL_MAX_CHARS} characters: one tap's worth of words.`,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (seen.has(key))
|
|
35
|
+
return { reason: "duplicate-label", message: `"${option.label.trim()}" is offered twice; offer it once.` };
|
|
36
|
+
seen.add(key);
|
|
37
|
+
}
|
|
38
|
+
const gold = options.filter((o) => o.gold === true);
|
|
39
|
+
if (gold.length > 1) {
|
|
40
|
+
return {
|
|
41
|
+
reason: "more-than-one-gold",
|
|
42
|
+
message: "Mark at most one gold option per reply: the one capability that fits this app best right now.",
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const plainGold = gold.find((o) => isCapabilityOption(o) === false);
|
|
46
|
+
if (plainGold !== undefined) {
|
|
47
|
+
return {
|
|
48
|
+
reason: "gold-needs-capability",
|
|
49
|
+
message: `"${plainGold.label.trim()}" is an ordinary change. Gold goes on a capability: kind "seed", "access", "connect" ` +
|
|
50
|
+
`or "publish"; offer this one without gold.`,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
const MARKER = "▸";
|
|
56
|
+
const GOLD_MARKER = "★";
|
|
57
|
+
export function optionLinesText(options) {
|
|
58
|
+
return options.map((o) => `${MARKER} ${o.label.trim()}`).join("\n");
|
|
59
|
+
}
|
|
60
|
+
export function markGoldOptionLines(text, options) {
|
|
61
|
+
const gold = options.find((o) => o.gold === true);
|
|
62
|
+
if (gold === undefined)
|
|
63
|
+
return text;
|
|
64
|
+
const goldLine = `${MARKER} ${gold.label.trim()}`;
|
|
65
|
+
return text
|
|
66
|
+
.split("\n")
|
|
67
|
+
.map((line) => (line.trim() === goldLine ? line.replace(MARKER, GOLD_MARKER) : line))
|
|
68
|
+
.join("\n");
|
|
69
|
+
}
|
|
70
|
+
export function isChipSource(source) {
|
|
71
|
+
return source === "suggestion" || source === "gold";
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=offered-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offered-options.js","sourceRoot":"","sources":["../jsr/offered-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAqB/B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,oDAAoD,CAAC,CAAC;AAIrF,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;AAOhG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAG1C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,KAAK,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAkBpF,MAAM,UAAU,kBAAkB,CAAC,MAAqB;IACtD,OAAO,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC;AAC7D,CAAC;AAED,SAAS,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I,CAAC,IAAI,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SACpF,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAUD,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,MAAM,KAAK,YAAY,IAAI,MAAM,KAAK,MAAM,CAAC;AACtD,CAAC"}
|
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.78",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@adviser/cement": "~0.5.34",
|
|
22
22
|
"@cloudflare/workers-types": "~5.20260927.1",
|
|
23
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
24
|
-
"@vibes.diy/identity": "14.3.
|
|
25
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
23
|
+
"@vibes.diy/call-ai-v2": "14.3.78",
|
|
24
|
+
"@vibes.diy/identity": "14.3.78",
|
|
25
|
+
"@vibes.diy/vibe-types": "14.3.78",
|
|
26
26
|
"arktype": "~2.2.6"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
package/prompt.d.ts
CHANGED
|
@@ -90,12 +90,13 @@ export declare const PromptReq: import("arktype/internal/variants/object.ts").Ob
|
|
|
90
90
|
enabled?: boolean | undefined;
|
|
91
91
|
} | undefined;
|
|
92
92
|
};
|
|
93
|
-
source?: "suggestion" | undefined;
|
|
93
|
+
source?: "gold" | "suggestion" | undefined;
|
|
94
94
|
agentDispatched?: true | undefined;
|
|
95
95
|
platformInitiated?: true | undefined;
|
|
96
96
|
firstDraft?: true | undefined;
|
|
97
97
|
clientMessageId?: string | undefined;
|
|
98
98
|
origin?: "design-repair" | undefined;
|
|
99
|
+
agentCommit?: true | undefined;
|
|
99
100
|
}, {}>;
|
|
100
101
|
export type PromptReq = typeof PromptReq.infer;
|
|
101
102
|
export declare function isPromptReq(msg: unknown): msg is PromptReq;
|
|
@@ -323,7 +324,12 @@ export declare const PromptDryRunPayload: import("arktype/internal/variants/obje
|
|
|
323
324
|
export type PromptDryRunPayload = typeof PromptDryRunPayload.infer;
|
|
324
325
|
export declare function isPromptDryRunPayload(msg: unknown): msg is PromptDryRunPayload;
|
|
325
326
|
export declare const AgentEvidence: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
326
|
-
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
327
|
+
kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
|
|
328
|
+
options?: {
|
|
329
|
+
label: string;
|
|
330
|
+
gold?: boolean | undefined;
|
|
331
|
+
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
332
|
+
}[] | undefined;
|
|
327
333
|
sessionId?: string | undefined;
|
|
328
334
|
callId?: string | undefined;
|
|
329
335
|
handleId?: string | undefined;
|
|
@@ -349,7 +355,12 @@ export declare const PromptAgentEvidence: import("arktype/internal/variants/obje
|
|
|
349
355
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
350
356
|
type: "prompt.agent-evidence";
|
|
351
357
|
evidence: {
|
|
352
|
-
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
358
|
+
kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
|
|
359
|
+
options?: {
|
|
360
|
+
label: string;
|
|
361
|
+
gold?: boolean | undefined;
|
|
362
|
+
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
363
|
+
}[] | undefined;
|
|
353
364
|
sessionId?: string | undefined;
|
|
354
365
|
callId?: string | undefined;
|
|
355
366
|
handleId?: string | undefined;
|
|
@@ -554,12 +565,13 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
554
565
|
enabled?: boolean | undefined;
|
|
555
566
|
} | undefined;
|
|
556
567
|
};
|
|
557
|
-
source?: "suggestion" | undefined;
|
|
568
|
+
source?: "gold" | "suggestion" | undefined;
|
|
558
569
|
agentDispatched?: true | undefined;
|
|
559
570
|
platformInitiated?: true | undefined;
|
|
560
571
|
firstDraft?: true | undefined;
|
|
561
572
|
clientMessageId?: string | undefined;
|
|
562
573
|
origin?: "design-repair" | undefined;
|
|
574
|
+
agentCommit?: true | undefined;
|
|
563
575
|
} | {
|
|
564
576
|
streamId: string;
|
|
565
577
|
chatId: string;
|
|
@@ -765,7 +777,12 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
765
777
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
766
778
|
type: "prompt.agent-evidence";
|
|
767
779
|
evidence: {
|
|
768
|
-
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
780
|
+
kind: "active" | "call" | "dispatch" | "idle" | "options" | "receipt" | "result";
|
|
781
|
+
options?: {
|
|
782
|
+
label: string;
|
|
783
|
+
gold?: boolean | undefined;
|
|
784
|
+
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
785
|
+
}[] | undefined;
|
|
769
786
|
sessionId?: string | undefined;
|
|
770
787
|
callId?: string | undefined;
|
|
771
788
|
handleId?: string | undefined;
|
package/prompt.js
CHANGED
|
@@ -6,6 +6,7 @@ import { PromptResearch, isPromptResearch } from "./research.js";
|
|
|
6
6
|
import { CodegenTurnVariant } from "./turn-variant.js";
|
|
7
7
|
import { lazyType } from "./lazy-type.js";
|
|
8
8
|
import { agentToolRefusalReason } from "./agent-tools.js";
|
|
9
|
+
import { OfferedOptions } from "./offered-options.js";
|
|
9
10
|
export const PromptBase = lazyType(() => type({
|
|
10
11
|
streamId: "string",
|
|
11
12
|
chatId: "string",
|
|
@@ -15,12 +16,13 @@ export const PromptBase = lazyType(() => type({
|
|
|
15
16
|
export const PromptReq = lazyType(() => type({
|
|
16
17
|
type: "'prompt.req'",
|
|
17
18
|
request: LLMRequest,
|
|
18
|
-
"source?": "'suggestion'",
|
|
19
|
+
"source?": "'suggestion' | 'gold'",
|
|
19
20
|
"agentDispatched?": "true",
|
|
20
21
|
"platformInitiated?": "true",
|
|
21
22
|
"firstDraft?": "true",
|
|
22
23
|
"clientMessageId?": "string",
|
|
23
24
|
"origin?": "'design-repair'",
|
|
25
|
+
"agentCommit?": "true",
|
|
24
26
|
}).and(PromptBase));
|
|
25
27
|
export function isPromptReq(msg) {
|
|
26
28
|
return !(PromptReq(msg) instanceof type.errors);
|
|
@@ -84,7 +86,8 @@ export function isPromptDryRunPayload(msg) {
|
|
|
84
86
|
return !(PromptDryRunPayload(msg) instanceof type.errors);
|
|
85
87
|
}
|
|
86
88
|
export const AgentEvidence = type({
|
|
87
|
-
kind: "'call' | 'receipt' | 'dispatch' | 'result' | 'active' | 'idle'",
|
|
89
|
+
kind: "'call' | 'receipt' | 'dispatch' | 'result' | 'active' | 'idle' | 'options'",
|
|
90
|
+
"options?": OfferedOptions,
|
|
88
91
|
"sessionId?": "string",
|
|
89
92
|
"callId?": "string",
|
|
90
93
|
"handleId?": "string",
|
package/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../jsr/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EA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,EAAE,CAAC,WAAW,CAAC;KACf,EAAE,CAAC,QAAQ,CAAC;KACZ,EAAE,CAAC,mBAAmB,CAAC;KACvB,EAAE,CAAC,mBAAmB,CAAC;KACvB,EAAE,CAAC,SAAS,CAAC;KACb,EAAE,CAAC,iBAAiB,CAAC;KACrB,EAAE,CAAC,kBAAkB,CAAC;KACtB,EAAE,CAAC,aAAa,CAAC;KACjB,EAAE,CAAC,mBAAmB,CAAC;KACvB,EAAE,CAAC,YAAY,CAAC;KAChB,EAAE,CAAC,YAAY,CAAC;KAChB,EAAE,CAAC,cAAc,CAAC,CACtB,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAY,EAAqB,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAE1G,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,OAAO,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,MAAM,UAAU,gBAAgB,CAAC,GAAY,EAAE,QAAiB;IAC9D,IAAI,cAAc,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC7D,OAAO,CAAC,QAAQ,IAAK,GAAsB,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACpE,CAAC"}
|
package/settings.d.ts
CHANGED
|
@@ -1927,27 +1927,6 @@ export declare const AppSettings: import("arktype/internal/variants/object.ts").
|
|
|
1927
1927
|
enrichedPrompt: string;
|
|
1928
1928
|
} | {
|
|
1929
1929
|
type: "active.deferred-intents";
|
|
1930
|
-
access?: {
|
|
1931
|
-
needed: boolean;
|
|
1932
|
-
why: string;
|
|
1933
|
-
dispatched?: boolean | undefined;
|
|
1934
|
-
attempts?: number | undefined;
|
|
1935
|
-
promptId?: string | undefined;
|
|
1936
|
-
landed?: {
|
|
1937
|
-
promptId: string;
|
|
1938
|
-
fsId?: string | undefined;
|
|
1939
|
-
} | undefined;
|
|
1940
|
-
failed?: {
|
|
1941
|
-
promptId: string;
|
|
1942
|
-
} | undefined;
|
|
1943
|
-
} | undefined;
|
|
1944
|
-
backend?: {
|
|
1945
|
-
recommended: boolean;
|
|
1946
|
-
why: string;
|
|
1947
|
-
landed?: {
|
|
1948
|
-
promptId: string;
|
|
1949
|
-
} | undefined;
|
|
1950
|
-
} | undefined;
|
|
1951
1930
|
} | {
|
|
1952
1931
|
type: "active.clarify";
|
|
1953
1932
|
question: string;
|
|
@@ -2658,27 +2637,6 @@ export declare const resEnsureAppSettings: import("arktype/internal/variants/obj
|
|
|
2658
2637
|
enrichedPrompt: string;
|
|
2659
2638
|
} | {
|
|
2660
2639
|
type: "active.deferred-intents";
|
|
2661
|
-
access?: {
|
|
2662
|
-
needed: boolean;
|
|
2663
|
-
why: string;
|
|
2664
|
-
dispatched?: boolean | undefined;
|
|
2665
|
-
attempts?: number | undefined;
|
|
2666
|
-
promptId?: string | undefined;
|
|
2667
|
-
landed?: {
|
|
2668
|
-
promptId: string;
|
|
2669
|
-
fsId?: string | undefined;
|
|
2670
|
-
} | undefined;
|
|
2671
|
-
failed?: {
|
|
2672
|
-
promptId: string;
|
|
2673
|
-
} | undefined;
|
|
2674
|
-
} | undefined;
|
|
2675
|
-
backend?: {
|
|
2676
|
-
recommended: boolean;
|
|
2677
|
-
why: string;
|
|
2678
|
-
landed?: {
|
|
2679
|
-
promptId: string;
|
|
2680
|
-
} | undefined;
|
|
2681
|
-
} | undefined;
|
|
2682
2640
|
} | {
|
|
2683
2641
|
type: "active.clarify";
|
|
2684
2642
|
question: string;
|
package/types.d.ts
CHANGED
|
@@ -31,7 +31,15 @@ export declare const fileSystemItem: import("arktype/internal/variants/object.ts
|
|
|
31
31
|
uploadId?: string | undefined;
|
|
32
32
|
}, {}>;
|
|
33
33
|
export type FileSystemItem = typeof fileSystemItem.infer;
|
|
34
|
+
export declare const SCREENSHOT_CAPTURE_KINDS: readonly ["owner-seed", "no-data"];
|
|
35
|
+
export type ScreenshotCaptureKind = (typeof SCREENSHOT_CAPTURE_KINDS)[number];
|
|
36
|
+
export declare const screenshotProvenanceFields: {
|
|
37
|
+
readonly "capture?": "'owner-seed'|'no-data'";
|
|
38
|
+
readonly "build?": "string";
|
|
39
|
+
};
|
|
34
40
|
export declare const MetaScreenShotRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
41
|
+
capture?: "no-data" | "owner-seed" | undefined;
|
|
42
|
+
build?: string | undefined;
|
|
35
43
|
type: "screen-shot-ref";
|
|
36
44
|
assetUrl: string;
|
|
37
45
|
mime: string;
|
|
@@ -43,6 +51,8 @@ export declare const MOBILE_SCREENSHOT_VIEWPORT: {
|
|
|
43
51
|
readonly height: 932;
|
|
44
52
|
};
|
|
45
53
|
export declare const MetaMobileScreenShotRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
54
|
+
capture?: "no-data" | "owner-seed" | undefined;
|
|
55
|
+
build?: string | undefined;
|
|
46
56
|
type: "mobile-screen-shot-ref";
|
|
47
57
|
assetUrl: string;
|
|
48
58
|
mime: string;
|
|
@@ -67,10 +77,14 @@ export declare const MetaRemixOf: import("arktype/internal/variants/object.ts").
|
|
|
67
77
|
export type MetaRemixOf = typeof MetaRemixOf.infer;
|
|
68
78
|
export declare function isMetaRemixOf(obj: unknown): obj is MetaRemixOf;
|
|
69
79
|
export declare const MetaItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
80
|
+
capture?: "no-data" | "owner-seed" | undefined;
|
|
81
|
+
build?: string | undefined;
|
|
70
82
|
type: "screen-shot-ref";
|
|
71
83
|
assetUrl: string;
|
|
72
84
|
mime: string;
|
|
73
85
|
} | {
|
|
86
|
+
capture?: "no-data" | "owner-seed" | undefined;
|
|
87
|
+
build?: string | undefined;
|
|
74
88
|
type: "mobile-screen-shot-ref";
|
|
75
89
|
assetUrl: string;
|
|
76
90
|
mime: string;
|
package/types.js
CHANGED
|
@@ -36,10 +36,16 @@ export const fileSystemItem = lazyType(() => type({
|
|
|
36
36
|
"kind?": "'asset'",
|
|
37
37
|
"uploadId?": "string",
|
|
38
38
|
}));
|
|
39
|
+
export const SCREENSHOT_CAPTURE_KINDS = ["owner-seed", "no-data"];
|
|
40
|
+
export const screenshotProvenanceFields = {
|
|
41
|
+
"capture?": "'owner-seed'|'no-data'",
|
|
42
|
+
"build?": "string",
|
|
43
|
+
};
|
|
39
44
|
export const MetaScreenShotRef = lazyType(() => type({
|
|
40
45
|
type: "'screen-shot-ref'",
|
|
41
46
|
assetUrl: "string",
|
|
42
47
|
mime: "string",
|
|
48
|
+
...screenshotProvenanceFields,
|
|
43
49
|
}));
|
|
44
50
|
export function isMetaScreenShot(obj) {
|
|
45
51
|
return !(MetaScreenShotRef(obj) instanceof type.errors);
|
|
@@ -51,6 +57,7 @@ export const MetaMobileScreenShotRef = lazyType(() => type({
|
|
|
51
57
|
mime: "string",
|
|
52
58
|
width: "number",
|
|
53
59
|
height: "number",
|
|
60
|
+
...screenshotProvenanceFields,
|
|
54
61
|
}));
|
|
55
62
|
export function isMetaMobileScreenShot(obj) {
|
|
56
63
|
return !(MetaMobileScreenShotRef(obj) instanceof type.errors);
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../jsr/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,GAAG,4DAA4D,CAAC;AAEjF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE,CACxC,IAAI,CAAC;IACH,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,WAAW;CAErB,CAAC,CACH,CAAC;AAGF,MAAM,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: string;
|
|
69
69
|
};
|
|
70
70
|
variant?: "access-wizard" | "upgrade-backend" | "discuss" | "work";
|
|
71
|
-
source?: "suggestion";
|
|
71
|
+
source?: "suggestion" | "gold";
|
|
72
72
|
directBuild?: boolean;
|
|
73
73
|
firstTurnAgent?: boolean;
|
|
74
74
|
nonInteractive?: boolean;
|