@feedmepos/mf-miniprogram-v2 0.1.0-dev.3 → 0.1.0-dev.4
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
package/dist/package.json
CHANGED
|
@@ -28,6 +28,7 @@ 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';
|
|
31
32
|
export interface ProjectSummary {
|
|
32
33
|
businessId: string;
|
|
33
34
|
businessSlug: string | null;
|
|
@@ -63,6 +64,20 @@ export interface AgentSessionSummary {
|
|
|
63
64
|
created_at: string;
|
|
64
65
|
updated_at: string;
|
|
65
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
|
+
}
|
|
66
81
|
export interface ReleaseSummary {
|
|
67
82
|
id: string;
|
|
68
83
|
source_commit_sha: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectSummary, ReleaseSummary } from './types';
|
|
1
|
+
import type { ArchiveCodeAction, ProjectSummary, ReleaseSummary, SessionChangesSummary } from './types';
|
|
2
2
|
export declare function useProject(): {
|
|
3
3
|
businessId: string;
|
|
4
4
|
project: {
|
|
@@ -102,21 +102,19 @@ export declare function useProject(): {
|
|
|
102
102
|
releases: ReleaseSummary[];
|
|
103
103
|
}>;
|
|
104
104
|
selectRelease: (releaseId: string) => Promise<void>;
|
|
105
|
-
createSession: (
|
|
105
|
+
createSession: (options?: {
|
|
106
|
+
archiveCodeAction?: ArchiveCodeAction;
|
|
107
|
+
}) => Promise<{
|
|
106
108
|
sessionId: string;
|
|
107
109
|
previewUrl: string;
|
|
108
110
|
}>;
|
|
111
|
+
sessionChanges: (sessionId: string) => Promise<SessionChangesSummary>;
|
|
109
112
|
resumeSession: (sessionId: string) => Promise<{
|
|
110
113
|
sessionId: string;
|
|
111
114
|
previewUrl: string;
|
|
112
115
|
}>;
|
|
113
116
|
renameSession: (sessionId: string, title: string) => Promise<void>;
|
|
114
|
-
|
|
115
|
-
sessionId: string;
|
|
116
|
-
previewUrl: string;
|
|
117
|
-
forkedFrom: string;
|
|
118
|
-
}>;
|
|
119
|
-
archive: (sessionId: string) => Promise<void>;
|
|
117
|
+
archive: (sessionId: string, codeAction?: ArchiveCodeAction) => Promise<void>;
|
|
120
118
|
commitSession: (sessionId: string) => Promise<{
|
|
121
119
|
sourceCommitSha: string;
|
|
122
120
|
}>;
|