@feedmepos/mf-miniprogram-v2 0.1.0-dev.36 → 0.1.0-dev.38

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-BQZsXI3d.js")
6
+ component: () => import("./ControlPlaneView-DZoVMSTs.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.36",
3
+ "version": "0.1.0-dev.38",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -0,0 +1,16 @@
1
+ import type { QuestionAnswer, QuestionRequest } from '@opencode-ai/sdk/v2/client';
2
+ type __VLS_Props = {
3
+ request: QuestionRequest;
4
+ submitting?: boolean;
5
+ error?: string | null;
6
+ pendingCount?: number;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ reply: (requestID: string, answers: QuestionAnswer[]) => any;
10
+ reject: (requestID: string) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onReply?: ((requestID: string, answers: QuestionAnswer[]) => any) | undefined;
13
+ onReject?: ((requestID: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { QuestionAnswer, QuestionInfo } from '@opencode-ai/sdk/v2/client';
2
+ export declare function toggleQuestionOption(selected: readonly string[], label: string): string[];
3
+ export declare function answerForQuestion(question: QuestionInfo, selected: readonly string[], customValue: string): QuestionAnswer;
4
+ export declare function buildQuestionAnswers(questions: readonly QuestionInfo[], selected: readonly (readonly string[])[], customValues: readonly string[]): QuestionAnswer[];
@@ -1,3 +1,4 @@
1
+ import { type QuestionAnswer } from '@opencode-ai/sdk/v2/client';
1
2
  import type { ChatMessage, ConnectionStatus, OutgoingAttachment } from './types';
2
3
  export declare function useChat(): {
3
4
  status: ConnectionStatus;
@@ -16,6 +17,44 @@ export declare function useChat(): {
16
17
  checkpointError: string | null;
17
18
  checkpointSaving: boolean;
18
19
  canUnrevert: boolean;
20
+ pendingQuestions: {
21
+ id: string;
22
+ sessionID: string;
23
+ questions: {
24
+ question: string;
25
+ header: string;
26
+ options: {
27
+ label: string;
28
+ description: string;
29
+ }[];
30
+ multiple?: boolean | undefined;
31
+ custom?: boolean | undefined;
32
+ }[];
33
+ tool?: {
34
+ messageID: string;
35
+ callID: string;
36
+ } | undefined;
37
+ }[];
38
+ activeQuestion: {
39
+ id: string;
40
+ sessionID: string;
41
+ questions: {
42
+ question: string;
43
+ header: string;
44
+ options: {
45
+ label: string;
46
+ description: string;
47
+ }[];
48
+ multiple?: boolean | undefined;
49
+ custom?: boolean | undefined;
50
+ }[];
51
+ tool?: {
52
+ messageID: string;
53
+ callID: string;
54
+ } | undefined;
55
+ } | null;
56
+ answeringQuestionId: string | null;
57
+ questionError: string | null;
19
58
  messagesOrder: string[];
20
59
  messagesByKey: Record<string, ChatMessage>;
21
60
  queuedMessages: {
@@ -152,6 +191,8 @@ export declare function useChat(): {
152
191
  suspend: (message?: string) => void;
153
192
  sendMessage: (text: string, attachments?: OutgoingAttachment[]) => boolean;
154
193
  abort: () => Promise<void>;
194
+ answerQuestion: (requestID: string, answers: QuestionAnswer[]) => Promise<boolean>;
195
+ rejectQuestion: (requestID: string) => Promise<boolean>;
155
196
  revertTurn: (rawOpencodeMessageId: string) => Promise<boolean>;
156
197
  unrevertTurn: () => Promise<boolean>;
157
198
  reportCheckpointResult: (error?: string | null) => void;