@quantiya/codevibe-codex-plugin 2.0.114 → 2.0.116

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,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { ConfirmDesktopSyncRetirementInput } from '../appsync/sync-session-retirement';
3
+ import { type CodexQuestionAcknowledgmentProof } from './codex-question-completion';
3
4
  declare const scopeSchema: z.ZodObject<{
4
5
  sessionId: z.ZodString;
5
6
  sessionGenerationId: z.ZodString;
@@ -1352,9 +1353,9 @@ declare const intentSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1352
1353
  };
1353
1354
  turnId: string;
1354
1355
  nativeInstanceId: string;
1356
+ threadId: string;
1355
1357
  requestId: string | number;
1356
1358
  detailsSha256: string;
1357
- threadId: string;
1358
1359
  itemId: string;
1359
1360
  }, {
1360
1361
  method: "file" | "command";
@@ -1366,9 +1367,9 @@ declare const intentSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1366
1367
  };
1367
1368
  turnId: string;
1368
1369
  nativeInstanceId: string;
1370
+ threadId: string;
1369
1371
  requestId: string | number;
1370
1372
  detailsSha256: string;
1371
- threadId: string;
1372
1373
  itemId: string;
1373
1374
  }>]>;
1374
1375
  export type CodexNativeScope = z.infer<typeof scopeSchema>;
@@ -1517,6 +1518,9 @@ export declare class CodexNativeStateStore {
1517
1518
  turnId: string;
1518
1519
  item: unknown;
1519
1520
  }): Promise<void>;
1521
+ /** Explicit agent bookkeeping closes only the identified async question.
1522
+ * It cannot acknowledge any mobile input or resolve a permission control. */
1523
+ observeQuestionAcknowledgment(owner: CodexNativeOwner, controlKey: string, receipt: CodexQuestionAcknowledgmentProof): Promise<void>;
1520
1524
  /** An interrupted native turn withdraws its unanswered questions. This is
1521
1525
  * presentation closure, never proof that a mobile answer executed. */
1522
1526
  observeQuestionInterruption(owner: CodexNativeOwner, controlKey: string, receipt: {
@@ -0,0 +1,174 @@
1
+ /** Agent acknowledgment of an ordinary user confirmation. This is question
2
+ * presentation closure, never approval authority or mobile execution proof. */
3
+ import { z } from 'zod';
4
+ export declare const CODEX_QUESTION_MCP_SERVER = "codevibe_questions";
5
+ export declare const CODEX_QUESTION_ACK_TOOL = "acknowledge_question";
6
+ export declare const codexQuestionCatalogSchema: z.ZodObject<{
7
+ version: z.ZodLiteral<1>;
8
+ nativeInstanceId: z.ZodString;
9
+ threadId: z.ZodString;
10
+ userId: z.ZodString;
11
+ environment: z.ZodEnum<["development", "production"]>;
12
+ deviceId: z.ZodString;
13
+ questions: z.ZodArray<z.ZodObject<{
14
+ questionItemId: z.ZodString;
15
+ title: z.ZodString;
16
+ raisedAtMs: z.ZodNumber;
17
+ }, "strict", z.ZodTypeAny, {
18
+ title: string;
19
+ questionItemId: string;
20
+ raisedAtMs: number;
21
+ }, {
22
+ title: string;
23
+ questionItemId: string;
24
+ raisedAtMs: number;
25
+ }>, "many">;
26
+ confirmations: z.ZodArray<z.ZodObject<{
27
+ threadId: z.ZodString;
28
+ turnId: z.ZodString;
29
+ item: z.ZodUnknown;
30
+ completedAtMs: z.ZodNumber;
31
+ }, "strict", z.ZodTypeAny, {
32
+ turnId: string;
33
+ threadId: string;
34
+ completedAtMs: number;
35
+ item?: unknown;
36
+ }, {
37
+ turnId: string;
38
+ threadId: string;
39
+ completedAtMs: number;
40
+ item?: unknown;
41
+ }>, "many">;
42
+ }, "strict", z.ZodTypeAny, {
43
+ deviceId: string;
44
+ environment: "production" | "development";
45
+ version: 1;
46
+ userId: string;
47
+ questions: {
48
+ title: string;
49
+ questionItemId: string;
50
+ raisedAtMs: number;
51
+ }[];
52
+ nativeInstanceId: string;
53
+ threadId: string;
54
+ confirmations: {
55
+ turnId: string;
56
+ threadId: string;
57
+ completedAtMs: number;
58
+ item?: unknown;
59
+ }[];
60
+ }, {
61
+ deviceId: string;
62
+ environment: "production" | "development";
63
+ version: 1;
64
+ userId: string;
65
+ questions: {
66
+ title: string;
67
+ questionItemId: string;
68
+ raisedAtMs: number;
69
+ }[];
70
+ nativeInstanceId: string;
71
+ threadId: string;
72
+ confirmations: {
73
+ turnId: string;
74
+ threadId: string;
75
+ completedAtMs: number;
76
+ item?: unknown;
77
+ }[];
78
+ }>;
79
+ export type CodexQuestionCatalog = z.infer<typeof codexQuestionCatalogSchema>;
80
+ export declare const codexQuestionAckArguments: z.ZodObject<{
81
+ questionItemId: z.ZodEffects<z.ZodString, string, string>;
82
+ confirmationMessageId: z.ZodString;
83
+ }, "strict", z.ZodTypeAny, {
84
+ questionItemId: string;
85
+ confirmationMessageId: string;
86
+ }, {
87
+ questionItemId: string;
88
+ confirmationMessageId: string;
89
+ }>;
90
+ export declare const codexQuestionAckResult: z.ZodObject<{
91
+ version: z.ZodLiteral<1>;
92
+ kind: z.ZodLiteral<"codevibe_question_completion">;
93
+ nativeInstanceId: z.ZodString;
94
+ threadId: z.ZodString;
95
+ userId: z.ZodString;
96
+ environment: z.ZodEnum<["development", "production"]>;
97
+ deviceId: z.ZodString;
98
+ questionItemId: z.ZodEffects<z.ZodString, string, string>;
99
+ confirmationMessageId: z.ZodString;
100
+ confirmationTurnId: z.ZodString;
101
+ confirmation: z.ZodObject<{
102
+ threadId: z.ZodString;
103
+ turnId: z.ZodString;
104
+ item: z.ZodUnknown;
105
+ completedAtMs: z.ZodNumber;
106
+ }, "strict", z.ZodTypeAny, {
107
+ turnId: string;
108
+ threadId: string;
109
+ completedAtMs: number;
110
+ item?: unknown;
111
+ }, {
112
+ turnId: string;
113
+ threadId: string;
114
+ completedAtMs: number;
115
+ item?: unknown;
116
+ }>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ kind: "codevibe_question_completion";
119
+ deviceId: string;
120
+ environment: "production" | "development";
121
+ version: 1;
122
+ userId: string;
123
+ questionItemId: string;
124
+ nativeInstanceId: string;
125
+ threadId: string;
126
+ confirmationMessageId: string;
127
+ confirmationTurnId: string;
128
+ confirmation: {
129
+ turnId: string;
130
+ threadId: string;
131
+ completedAtMs: number;
132
+ item?: unknown;
133
+ };
134
+ }, {
135
+ kind: "codevibe_question_completion";
136
+ deviceId: string;
137
+ environment: "production" | "development";
138
+ version: 1;
139
+ userId: string;
140
+ questionItemId: string;
141
+ nativeInstanceId: string;
142
+ threadId: string;
143
+ confirmationMessageId: string;
144
+ confirmationTurnId: string;
145
+ confirmation: {
146
+ turnId: string;
147
+ threadId: string;
148
+ completedAtMs: number;
149
+ item?: unknown;
150
+ };
151
+ }>;
152
+ export type CodexQuestionAcknowledgment = z.infer<typeof codexQuestionAckResult>;
153
+ export declare function parseCodexQuestionAcknowledgment(value: unknown): CodexQuestionAcknowledgment | null;
154
+ export interface CodexQuestionAcknowledgmentProof {
155
+ nativeInstanceId: string;
156
+ threadId: string;
157
+ turnId: string;
158
+ item: unknown;
159
+ confirmation: {
160
+ threadId: string;
161
+ turnId: string;
162
+ item: unknown;
163
+ completedAtMs: number;
164
+ };
165
+ }
166
+ export declare function validCodexQuestionAcknowledgment(proof: CodexQuestionAcknowledgmentProof, control: {
167
+ kind: string;
168
+ threadId: string;
169
+ nativeInstanceId: string;
170
+ scope: unknown;
171
+ itemId: string;
172
+ detailsJson: string;
173
+ raiseJson: string;
174
+ }): boolean;
@@ -29,6 +29,7 @@ export type { DurableSyncResult, DurableDesktopSyncWriterOptions, DesktopSyncSes
29
29
  export { CodexNativeStateStore, CodexNativeStateError, snapshotCodexNativeEvent } from './companion-mode/codex-native-state';
30
30
  export { matchesCodexNativeQuestionClosure, parseCodexNativeQuestionAnswers } from './companion-mode/codex-native-question-reply';
31
31
  export type { CodexNativeQuestionAnswer } from './companion-mode/codex-native-question-reply';
32
+ export { CODEX_QUESTION_MCP_SERVER, CODEX_QUESTION_ACK_TOOL, codexQuestionAckArguments, codexQuestionAckResult, codexQuestionCatalogSchema, type CodexQuestionCatalog, parseCodexQuestionAcknowledgment, validCodexQuestionAcknowledgment, type CodexQuestionAcknowledgment, type CodexQuestionAcknowledgmentProof } from './companion-mode/codex-question-completion';
32
33
  export type { CodexNativeStateOptions, CodexNativeScope, CodexNativeStableIdentity, CodexNativeOwner, CodexNativeEvent, CodexNativeControl, CodexNativeIntent, CodexNativeState, CodexNativeEntry, CodexNativeRejection, CodexNativeApprovalDecision } from './companion-mode/codex-native-state';
33
34
  export { CodexNativeDispatcher } from './companion-mode/codex-native-dispatcher';
34
35
  export type { CodexNativeDispatcherOptions, CodexNativeDispatchResult } from './companion-mode/codex-native-dispatcher';