@feedmepos/mf-miniprogram-v2 0.1.0-dev.10 → 0.1.0-dev.12
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/dist/{ControlPlaneView-Bb24vi7u.js → ControlPlaneView-B9cYHVkm.js} +3637 -3261
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/api/controlPlane.d.ts +2 -1
- package/dist/src/components/AnnotationMessage.vue.d.ts +7 -0
- package/dist/src/components/ChatTextPart.vue.d.ts +6 -0
- package/dist/src/components/MarkdownContent.vue.d.ts +6 -0
- package/dist/src/components/StatusBadge.vue.d.ts +21 -0
- package/dist/src/composables/previewAnnotations.d.ts +9 -0
- package/dist/src/composables/status.d.ts +11 -0
- package/dist/src/composables/types.d.ts +14 -0
- package/dist/src/composables/useChat.d.ts +3 -2
- package/dist/src/composables/useProject.d.ts +0 -22
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -12,11 +12,12 @@ export declare function controlPlaneBaseUrl(): string;
|
|
|
12
12
|
export declare function controlPlaneUrl(path: string): string;
|
|
13
13
|
export declare function currentBusiness(): MaybeBusiness | undefined;
|
|
14
14
|
export declare function currentBusinessId(): string;
|
|
15
|
-
export declare function currentBusinessLabel(): string;
|
|
16
15
|
export declare function currentBusinessSlug(): string | undefined;
|
|
17
16
|
export declare function currentBusinessName(): string;
|
|
18
17
|
export declare function currentBusinessCountry(): string | undefined;
|
|
19
18
|
export declare function currentBusinessLiveUrl(): string;
|
|
19
|
+
export declare function sleep(ms: number): Promise<unknown>;
|
|
20
|
+
export declare function errorMessage(error: unknown): string;
|
|
20
21
|
export declare function controlPlaneAuthorizationHeader(): Promise<string | null>;
|
|
21
22
|
export declare function authorizedFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
22
23
|
export declare function controlPlaneFetch<T>(path: string, init?: RequestInit): Promise<T>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PreviewAnnotationItem } from '../composables/previewAnnotations';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: PreviewAnnotationItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BadgeVariant } from '../composables/status';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
variant?: BadgeVariant;
|
|
4
|
+
size?: 'sm' | 'md';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
size: "sm" | "md";
|
|
12
|
+
variant: BadgeVariant;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PreviewAnnotationItem {
|
|
2
|
+
id: number;
|
|
3
|
+
note: string;
|
|
4
|
+
label: string;
|
|
5
|
+
route?: string;
|
|
6
|
+
device?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function wrapAnnotationPayload(items: PreviewAnnotationItem[]): string;
|
|
9
|
+
export declare function parseAnnotationMessage(text: string): PreviewAnnotationItem[] | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentSessionSummary, ConnectionStatus, ReleaseSummary } from './types';
|
|
2
|
+
export type BadgeVariant = 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary';
|
|
3
|
+
export declare function sessionStatusVariant(status: AgentSessionSummary['status']): BadgeVariant;
|
|
4
|
+
export declare function sessionStatusLabel(status: AgentSessionSummary['status']): string;
|
|
5
|
+
export declare function buildStatusVariant(status: string | null): BadgeVariant;
|
|
6
|
+
export declare function buildStatusLabel(status: string | null): string;
|
|
7
|
+
export declare function provisioningStatusLabel(status: string | null | undefined): string;
|
|
8
|
+
export declare function releaseHasPreview(release: Pick<ReleaseSummary, 'status'>): boolean;
|
|
9
|
+
export declare function releaseDisplayStatus(release: ReleaseSummary): string;
|
|
10
|
+
export declare function releaseDisplayVariant(release: ReleaseSummary): BadgeVariant;
|
|
11
|
+
export declare function connectionStatusVariant(status: ConnectionStatus): BadgeVariant;
|
|
@@ -12,7 +12,21 @@ export type ChatPart = {
|
|
|
12
12
|
id: string;
|
|
13
13
|
tool: string;
|
|
14
14
|
state: ToolState;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'file';
|
|
17
|
+
id: string;
|
|
18
|
+
mime: string;
|
|
19
|
+
filename?: string;
|
|
20
|
+
url: string;
|
|
15
21
|
};
|
|
22
|
+
/** An image attached to an outgoing prompt. `url` is a data: URI so the file
|
|
23
|
+
* rides inline in the OpenCode prompt JSON through the transparent proxy —
|
|
24
|
+
* no separate upload channel exists (or is needed at screenshot sizes). */
|
|
25
|
+
export interface OutgoingAttachment {
|
|
26
|
+
mime: string;
|
|
27
|
+
filename?: string;
|
|
28
|
+
url: string;
|
|
29
|
+
}
|
|
16
30
|
export interface ChatMessage {
|
|
17
31
|
/** Stable render key. Starts as `local-{partId}` for our own just-sent
|
|
18
32
|
* messages (the real message id isn't known until the server echoes it
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatMessage, ConnectionStatus } from './types';
|
|
1
|
+
import type { ChatMessage, ConnectionStatus, OutgoingAttachment } from './types';
|
|
2
2
|
export declare function useChat(): {
|
|
3
3
|
status: ConnectionStatus;
|
|
4
4
|
statusText: string;
|
|
@@ -17,6 +17,7 @@ export declare function useChat(): {
|
|
|
17
17
|
readOnly?: boolean;
|
|
18
18
|
}) => Promise<void>;
|
|
19
19
|
reset: (message?: string) => void;
|
|
20
|
-
sendMessage: (text: string) => Promise<void>;
|
|
20
|
+
sendMessage: (text: string, attachments?: OutgoingAttachment[]) => Promise<void>;
|
|
21
|
+
abort: () => Promise<void>;
|
|
21
22
|
};
|
|
22
23
|
export type ChatStore = ReturnType<typeof useChat>;
|
|
@@ -56,7 +56,6 @@ export declare function useProject(): {
|
|
|
56
56
|
statusText: string;
|
|
57
57
|
activeReleaseId: string | null;
|
|
58
58
|
activeReleasePreviewUrl: string | null;
|
|
59
|
-
activeBuildJobId: string | null;
|
|
60
59
|
latestRelease: {
|
|
61
60
|
id: string;
|
|
62
61
|
source_commit_sha: string;
|
|
@@ -73,26 +72,7 @@ export declare function useProject(): {
|
|
|
73
72
|
build_created_at: string | null;
|
|
74
73
|
build_completed_at: string | null;
|
|
75
74
|
} | null;
|
|
76
|
-
activeRelease: {
|
|
77
|
-
id: string;
|
|
78
|
-
source_commit_sha: string;
|
|
79
|
-
created_from_session_id: string | null;
|
|
80
|
-
session_title: string | null;
|
|
81
|
-
status: "draft" | "preview" | "published" | "rolled_back";
|
|
82
|
-
artifact_prefix: string;
|
|
83
|
-
created_at: string;
|
|
84
|
-
published_at: string | null;
|
|
85
|
-
is_live: 0 | 1;
|
|
86
|
-
build_job_id: string | null;
|
|
87
|
-
build_status: "queued" | "running" | "succeeded" | "failed" | null;
|
|
88
|
-
build_logs_url: string | null;
|
|
89
|
-
build_created_at: string | null;
|
|
90
|
-
build_completed_at: string | null;
|
|
91
|
-
} | null;
|
|
92
|
-
activeBuildStatus: "failed" | "queued" | "running" | "succeeded" | null;
|
|
93
|
-
activeBuildLogsUrl: string | null;
|
|
94
75
|
isProvisioned: boolean;
|
|
95
|
-
isProvisioning: boolean;
|
|
96
76
|
provisioningFailed: boolean;
|
|
97
77
|
syncBusiness: () => void;
|
|
98
78
|
refreshProject: () => Promise<ProjectSummary>;
|
|
@@ -114,7 +94,6 @@ export declare function useProject(): {
|
|
|
114
94
|
previewUrl: string;
|
|
115
95
|
}>;
|
|
116
96
|
renameSession: (sessionId: string, title: string) => Promise<void>;
|
|
117
|
-
archive: (sessionId: string, codeAction?: ArchiveCodeAction) => Promise<void>;
|
|
118
97
|
commitSession: (sessionId: string) => Promise<{
|
|
119
98
|
sourceCommitSha: string;
|
|
120
99
|
}>;
|
|
@@ -125,6 +104,5 @@ export declare function useProject(): {
|
|
|
125
104
|
}>;
|
|
126
105
|
publish: (releaseId?: string | null) => Promise<void>;
|
|
127
106
|
rollbackToV1: () => Promise<void>;
|
|
128
|
-
rollbackToRelease: (releaseId: string) => Promise<void>;
|
|
129
107
|
};
|
|
130
108
|
export type ProjectStore = ReturnType<typeof useProject>;
|