@feedmepos/mf-miniprogram-v2 0.1.0-dev.9 → 0.1.0

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.
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,23 +0,0 @@
1
- type MaybeBusiness = {
2
- _id?: string;
3
- id?: string;
4
- slug?: string;
5
- name?: string;
6
- country?: string;
7
- countryCode?: string;
8
- country_code?: string;
9
- };
10
- export declare const DEFAULT_BUSINESS_ID = "69cde0740c0106001ca83dff";
11
- export declare function controlPlaneBaseUrl(): string;
12
- export declare function controlPlaneUrl(path: string): string;
13
- export declare function currentBusiness(): MaybeBusiness | undefined;
14
- export declare function currentBusinessId(): string;
15
- export declare function currentBusinessLabel(): string;
16
- export declare function currentBusinessSlug(): string | undefined;
17
- export declare function currentBusinessName(): string;
18
- export declare function currentBusinessCountry(): string | undefined;
19
- export declare function currentBusinessLiveUrl(): string;
20
- export declare function controlPlaneAuthorizationHeader(): Promise<string | null>;
21
- export declare function authorizedFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
22
- export declare function controlPlaneFetch<T>(path: string, init?: RequestInit): Promise<T>;
23
- export {};
package/dist/src/app.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import './assets/main.css';
2
- export { routes } from './router/shared';
3
- export declare const i18nMessages: {};
4
- export declare const FmApp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,7 +0,0 @@
1
- import type { ChatStore } from '../composables/useChat';
2
- type __VLS_Props = {
3
- chat: ChatStore;
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;
@@ -1,7 +0,0 @@
1
- import type { ChatMessage } from '../composables/types';
2
- type __VLS_Props = {
3
- message: ChatMessage;
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;
@@ -1,7 +0,0 @@
1
- import type { ChatStore } from '../composables/useChat';
2
- type __VLS_Props = {
3
- chat: ChatStore;
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;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- initialTitle?: string | null;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
- close: () => any;
6
- submit: (title: string) => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onClose?: (() => any) | undefined;
9
- onSubmit?: ((title: string) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { ChatPart } from '../composables/types';
2
- type __VLS_Props = {
3
- part: Extract<ChatPart, {
4
- kind: 'tool';
5
- }>;
6
- };
7
- 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>;
8
- declare const _default: typeof __VLS_export;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare function renderMarkdown(text: string): string;
2
- export declare function highlightCode(code: string, lang: string): string;
@@ -1,96 +0,0 @@
1
- import type { ToolState } from '@opencode-ai/sdk';
2
- export type ChatPart = {
3
- kind: 'text';
4
- id: string;
5
- text: string;
6
- } | {
7
- kind: 'reasoning';
8
- id: string;
9
- text: string;
10
- } | {
11
- kind: 'tool';
12
- id: string;
13
- tool: string;
14
- state: ToolState;
15
- };
16
- export interface ChatMessage {
17
- /** Stable render key. Starts as `local-{partId}` for our own just-sent
18
- * messages (the real message id isn't known until the server echoes it
19
- * back over the event stream) and never changes after that, so v-for
20
- * keys stay stable even once `id` is reconciled to the real one. */
21
- key: string;
22
- id: string | null;
23
- role: 'user' | 'assistant';
24
- createdAt: number;
25
- parts: ChatPart[];
26
- busy: boolean;
27
- errorText?: string;
28
- }
29
- export type ConnectionStatus = 'idle' | 'starting' | 'ready' | 'error';
30
- export type ProjectProvisioningStatus = 'not_started' | 'provisioning' | 'ready' | 'failed';
31
- export type ArchiveCodeAction = 'save' | 'discard';
32
- export interface ProjectSummary {
33
- businessId: string;
34
- businessSlug: string | null;
35
- repoName: string;
36
- repoUrl: string;
37
- v2Enabled: 0 | 1;
38
- activeSessionId: string | null;
39
- currentPublishedReleaseId: string | null;
40
- rolloutStatus: 'disabled' | 'preview' | 'live' | 'rolled_back';
41
- fallbackVersion: 'v1';
42
- provisioningStatus: ProjectProvisioningStatus;
43
- provisioningError: string | null;
44
- provisionedAt: string | null;
45
- repoInitialCommitSha: string | null;
46
- createdAt: string | null;
47
- updatedAt: string | null;
48
- }
49
- export interface AgentSessionSummary {
50
- id: string;
51
- title: string | null;
52
- forked_from: string | null;
53
- raw_opencode_session_id: string | null;
54
- branch_name: string;
55
- sandbox_id: string | null;
56
- status: 'active' | 'archived' | 'needs_attention';
57
- archived_at: string | null;
58
- last_event_chunk: number;
59
- last_snapshot_at: string | null;
60
- attention_action?: string | null;
61
- attention_error?: string | null;
62
- release_count: number;
63
- has_live_release: number;
64
- created_at: string;
65
- updated_at: string;
66
- }
67
- export interface SessionChangesSummary {
68
- businessId: string;
69
- sessionId: string;
70
- workspaceExists: boolean;
71
- dirty: boolean;
72
- hasUncommittedChanges: boolean;
73
- hasUnpushedCommits: boolean;
74
- headDiffersFromOrigin: boolean;
75
- statusCount: number;
76
- commitsAheadOrigin: number;
77
- commitsBehindOrigin: number;
78
- headSha: string | null;
79
- originSha: string | null;
80
- }
81
- export interface ReleaseSummary {
82
- id: string;
83
- source_commit_sha: string;
84
- created_from_session_id: string | null;
85
- session_title: string | null;
86
- status: 'draft' | 'preview' | 'published' | 'rolled_back';
87
- artifact_prefix: string;
88
- created_at: string;
89
- published_at: string | null;
90
- is_live: 0 | 1;
91
- build_job_id: string | null;
92
- build_status: 'queued' | 'running' | 'succeeded' | 'failed' | null;
93
- build_logs_url: string | null;
94
- build_created_at: string | null;
95
- build_completed_at: string | null;
96
- }
@@ -1,22 +0,0 @@
1
- import type { ChatMessage, ConnectionStatus } from './types';
2
- export declare function useChat(): {
3
- status: ConnectionStatus;
4
- statusText: string;
5
- previewUrl: string | null;
6
- sending: boolean;
7
- sessionId: string | null;
8
- workspaceSessionId: string | null;
9
- readOnly: boolean;
10
- disconnected: boolean;
11
- messagesOrder: string[];
12
- messagesByKey: Record<string, ChatMessage>;
13
- revision: number;
14
- init: (options?: {
15
- businessId?: string;
16
- sessionId?: string;
17
- readOnly?: boolean;
18
- }) => Promise<void>;
19
- reset: (message?: string) => void;
20
- sendMessage: (text: string) => Promise<void>;
21
- };
22
- export type ChatStore = ReturnType<typeof useChat>;
@@ -1,130 +0,0 @@
1
- import type { ArchiveCodeAction, ProjectSummary, ReleaseSummary, SessionChangesSummary } from './types';
2
- export declare function useProject(): {
3
- businessId: string;
4
- project: {
5
- businessId: string;
6
- businessSlug: string | null;
7
- repoName: string;
8
- repoUrl: string;
9
- v2Enabled: 0 | 1;
10
- activeSessionId: string | null;
11
- currentPublishedReleaseId: string | null;
12
- rolloutStatus: "disabled" | "preview" | "live" | "rolled_back";
13
- fallbackVersion: "v1";
14
- provisioningStatus: import("./types").ProjectProvisioningStatus;
15
- provisioningError: string | null;
16
- provisionedAt: string | null;
17
- repoInitialCommitSha: string | null;
18
- createdAt: string | null;
19
- updatedAt: string | null;
20
- } | null;
21
- sessions: {
22
- id: string;
23
- title: string | null;
24
- forked_from: string | null;
25
- raw_opencode_session_id: string | null;
26
- branch_name: string;
27
- sandbox_id: string | null;
28
- status: "active" | "archived" | "needs_attention";
29
- archived_at: string | null;
30
- last_event_chunk: number;
31
- last_snapshot_at: string | null;
32
- attention_action?: string | null | undefined;
33
- attention_error?: string | null | undefined;
34
- release_count: number;
35
- has_live_release: number;
36
- created_at: string;
37
- updated_at: string;
38
- }[];
39
- releases: {
40
- id: string;
41
- source_commit_sha: string;
42
- created_from_session_id: string | null;
43
- session_title: string | null;
44
- status: "draft" | "preview" | "published" | "rolled_back";
45
- artifact_prefix: string;
46
- created_at: string;
47
- published_at: string | null;
48
- is_live: 0 | 1;
49
- build_job_id: string | null;
50
- build_status: "queued" | "running" | "succeeded" | "failed" | null;
51
- build_logs_url: string | null;
52
- build_created_at: string | null;
53
- build_completed_at: string | null;
54
- }[];
55
- busy: boolean;
56
- statusText: string;
57
- activeReleaseId: string | null;
58
- activeReleasePreviewUrl: string | null;
59
- activeBuildJobId: string | null;
60
- latestRelease: {
61
- id: string;
62
- source_commit_sha: string;
63
- created_from_session_id: string | null;
64
- session_title: string | null;
65
- status: "draft" | "preview" | "published" | "rolled_back";
66
- artifact_prefix: string;
67
- created_at: string;
68
- published_at: string | null;
69
- is_live: 0 | 1;
70
- build_job_id: string | null;
71
- build_status: "queued" | "running" | "succeeded" | "failed" | null;
72
- build_logs_url: string | null;
73
- build_created_at: string | null;
74
- build_completed_at: string | null;
75
- } | 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
- isProvisioned: boolean;
95
- isProvisioning: boolean;
96
- provisioningFailed: boolean;
97
- syncBusiness: () => void;
98
- refreshProject: () => Promise<ProjectSummary>;
99
- provisionProject: () => Promise<ProjectSummary>;
100
- refreshSessions: () => Promise<void>;
101
- refreshReleases: () => Promise<{
102
- releases: ReleaseSummary[];
103
- }>;
104
- selectRelease: (releaseId: string) => Promise<void>;
105
- createSession: (options?: {
106
- archiveCodeAction?: ArchiveCodeAction;
107
- }) => Promise<{
108
- sessionId: string;
109
- previewUrl: string;
110
- }>;
111
- sessionChanges: (sessionId: string) => Promise<SessionChangesSummary>;
112
- resumeSession: (sessionId: string) => Promise<{
113
- sessionId: string;
114
- previewUrl: string;
115
- }>;
116
- renameSession: (sessionId: string, title: string) => Promise<void>;
117
- archive: (sessionId: string, codeAction?: ArchiveCodeAction) => Promise<void>;
118
- commitSession: (sessionId: string) => Promise<{
119
- sourceCommitSha: string;
120
- }>;
121
- createRelease: (sourceCommitSha: string, sessionId?: string) => Promise<{
122
- releaseId: string;
123
- buildJobId: string;
124
- previewUrl: string;
125
- }>;
126
- publish: (releaseId?: string | null) => Promise<void>;
127
- rollbackToV1: () => Promise<void>;
128
- rollbackToRelease: (releaseId: string) => Promise<void>;
129
- };
130
- export type ProjectStore = ReturnType<typeof useProject>;
@@ -1,3 +0,0 @@
1
- import '@mpv2/assets/main.css';
2
- import '@mpv2/assets/standalone.css';
3
- import '@feedmepos/mf-common/style.css';
@@ -1,2 +0,0 @@
1
- declare const router: import("vue-router").Router;
2
- export default router;
@@ -1,2 +0,0 @@
1
- import type { RouteRecordRaw } from 'vue-router';
2
- export declare const routes: RouteRecordRaw[];
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;