@feedmepos/mf-miniprogram-v2 0.1.0-dev.11 → 0.1.0-dev.3

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/app.js CHANGED
@@ -3,7 +3,7 @@ const n = [
3
3
  {
4
4
  path: "/",
5
5
  name: "miniprogram-v2-control",
6
- component: () => import("./ControlPlaneView-DzyTnzK9.js")
6
+ component: () => import("./ControlPlaneView-DzD3SfCY.js")
7
7
  },
8
8
  {
9
9
  path: "/:pathMatch(.*)*",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.1.0-dev.11",
3
+ "version": "0.1.0-dev.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -16,7 +16,6 @@ export declare function currentBusinessLabel(): string;
16
16
  export declare function currentBusinessSlug(): string | undefined;
17
17
  export declare function currentBusinessName(): string;
18
18
  export declare function currentBusinessCountry(): string | undefined;
19
- export declare function currentBusinessLiveUrl(): string;
20
19
  export declare function controlPlaneAuthorizationHeader(): Promise<string | null>;
21
20
  export declare function authorizedFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
22
21
  export declare function controlPlaneFetch<T>(path: string, init?: RequestInit): Promise<T>;
@@ -28,7 +28,6 @@ export interface ChatMessage {
28
28
  }
29
29
  export type ConnectionStatus = 'idle' | 'starting' | 'ready' | 'error';
30
30
  export type ProjectProvisioningStatus = 'not_started' | 'provisioning' | 'ready' | 'failed';
31
- export type ArchiveCodeAction = 'save' | 'discard';
32
31
  export interface ProjectSummary {
33
32
  businessId: string;
34
33
  businessSlug: string | null;
@@ -64,20 +63,6 @@ export interface AgentSessionSummary {
64
63
  created_at: string;
65
64
  updated_at: string;
66
65
  }
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
66
  export interface ReleaseSummary {
82
67
  id: string;
83
68
  source_commit_sha: string;
@@ -18,6 +18,5 @@ export declare function useChat(): {
18
18
  }) => Promise<void>;
19
19
  reset: (message?: string) => void;
20
20
  sendMessage: (text: string) => Promise<void>;
21
- abort: () => Promise<void>;
22
21
  };
23
22
  export type ChatStore = ReturnType<typeof useChat>;
@@ -1,4 +1,4 @@
1
- import type { ArchiveCodeAction, ProjectSummary, ReleaseSummary, SessionChangesSummary } from './types';
1
+ import type { ProjectSummary, ReleaseSummary } from './types';
2
2
  export declare function useProject(): {
3
3
  businessId: string;
4
4
  project: {
@@ -102,19 +102,21 @@ export declare function useProject(): {
102
102
  releases: ReleaseSummary[];
103
103
  }>;
104
104
  selectRelease: (releaseId: string) => Promise<void>;
105
- createSession: (options?: {
106
- archiveCodeAction?: ArchiveCodeAction;
107
- }) => Promise<{
105
+ createSession: () => Promise<{
108
106
  sessionId: string;
109
107
  previewUrl: string;
110
108
  }>;
111
- sessionChanges: (sessionId: string) => Promise<SessionChangesSummary>;
112
109
  resumeSession: (sessionId: string) => Promise<{
113
110
  sessionId: string;
114
111
  previewUrl: string;
115
112
  }>;
116
113
  renameSession: (sessionId: string, title: string) => Promise<void>;
117
- archive: (sessionId: string, codeAction?: ArchiveCodeAction) => Promise<void>;
114
+ forkSession: (sessionId: string) => Promise<{
115
+ sessionId: string;
116
+ previewUrl: string;
117
+ forkedFrom: string;
118
+ }>;
119
+ archive: (sessionId: string) => Promise<void>;
118
120
  commitSession: (sessionId: string) => Promise<{
119
121
  sourceCommitSha: string;
120
122
  }>;