@quantiya/codevibe-core 2.0.91 → 2.0.92
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Native async-question closure carriers. These are presentation evidence,
|
|
2
|
+
* never receipts that a particular mobile input executed. */
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
declare const answerSchema: z.ZodObject<{
|
|
5
|
+
answer: z.ZodString;
|
|
6
|
+
question: z.ZodString;
|
|
7
|
+
questionItemId: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
question: string;
|
|
10
|
+
answer: string;
|
|
11
|
+
questionItemId: string;
|
|
12
|
+
}, {
|
|
13
|
+
question: string;
|
|
14
|
+
answer: string;
|
|
15
|
+
questionItemId: string;
|
|
16
|
+
}>;
|
|
17
|
+
export type CodexNativeQuestionAnswer = z.infer<typeof answerSchema>;
|
|
18
|
+
/** Accept only a complete native carrier. Ordinary, quoted, malformed and
|
|
19
|
+
* mixed-content user messages remain ordinary transcript input. Callers must
|
|
20
|
+
* additionally match thread, exact question identity, title and choices. */
|
|
21
|
+
export declare function parseCodexNativeQuestionAnswers(value: unknown): CodexNativeQuestionAnswer[] | null;
|
|
22
|
+
export {};
|
|
@@ -1293,13 +1293,13 @@ declare const intentSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
1293
1293
|
contentJson: z.ZodString;
|
|
1294
1294
|
}, "strict", z.ZodTypeAny, {
|
|
1295
1295
|
kind: "user";
|
|
1296
|
-
threadId: string;
|
|
1297
1296
|
clientId: string;
|
|
1297
|
+
threadId: string;
|
|
1298
1298
|
contentJson: string;
|
|
1299
1299
|
}, {
|
|
1300
1300
|
kind: "user";
|
|
1301
|
-
threadId: string;
|
|
1302
1301
|
clientId: string;
|
|
1302
|
+
threadId: string;
|
|
1303
1303
|
contentJson: string;
|
|
1304
1304
|
}>, z.ZodObject<{
|
|
1305
1305
|
kind: z.ZodLiteral<"async">;
|
|
@@ -1309,13 +1309,13 @@ declare const intentSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
1309
1309
|
}, "strict", z.ZodTypeAny, {
|
|
1310
1310
|
kind: "async";
|
|
1311
1311
|
output: string;
|
|
1312
|
-
threadId: string;
|
|
1313
1312
|
questionItemId: string;
|
|
1313
|
+
threadId: string;
|
|
1314
1314
|
}, {
|
|
1315
1315
|
kind: "async";
|
|
1316
1316
|
output: string;
|
|
1317
|
-
threadId: string;
|
|
1318
1317
|
questionItemId: string;
|
|
1318
|
+
threadId: string;
|
|
1319
1319
|
}>, z.ZodObject<{
|
|
1320
1320
|
kind: z.ZodLiteral<"approval">;
|
|
1321
1321
|
threadId: z.ZodString;
|
|
@@ -1442,6 +1442,24 @@ export declare class CodexNativeStateStore {
|
|
|
1442
1442
|
* scope/input remains closed and unchanged;its exact E1 closure must already
|
|
1443
1443
|
* be acknowledged. A normal terminal resume is never re-home authority. */
|
|
1444
1444
|
rehomeControl(owner: CodexNativeOwner, previousKey: string, value: CodexNativeControl): Promise<void>;
|
|
1445
|
+
/** A new native instance may restore one previously owned, unanswered async
|
|
1446
|
+
* question after terminal resume. This is fresh presentation, never callback
|
|
1447
|
+
* authority, an input transfer, or replay. The caller reads a bounded native
|
|
1448
|
+
* item prefix in descending order from the current head through this exact
|
|
1449
|
+
* question and the question turn's current status. Hydrated text alone and a
|
|
1450
|
+
* closed local marker are insufficient. Existing re-home authority is unchanged. */
|
|
1451
|
+
resumeQuestionControl(owner: CodexNativeOwner, previousKey: string, value: CodexNativeControl, proof: {
|
|
1452
|
+
threadId: string;
|
|
1453
|
+
nativeInstanceId: string;
|
|
1454
|
+
questionTurn: {
|
|
1455
|
+
id: string;
|
|
1456
|
+
status: string;
|
|
1457
|
+
};
|
|
1458
|
+
items: Array<{
|
|
1459
|
+
turnId: string;
|
|
1460
|
+
item: unknown;
|
|
1461
|
+
}>;
|
|
1462
|
+
}): Promise<void>;
|
|
1445
1463
|
pauseControl(owner: CodexNativeOwner, controlKey: string, paused: boolean): Promise<void>;
|
|
1446
1464
|
/** Approval preemption and answer reservation share one durable lock. An
|
|
1447
1465
|
* answer committed first is no longer pausable; it is not a handler error.
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export { DurableDesktopSyncWriter, SyncJournalError } from './appsync';
|
|
|
27
27
|
export type { ShellSyncSource, ShellSyncTicket, ShellSyncSourceInventory } from './appsync';
|
|
28
28
|
export type { DurableSyncResult, DurableDesktopSyncWriterOptions, DesktopSyncSessionScope, DesktopSyncSourceIdentity } from './appsync';
|
|
29
29
|
export { CodexNativeStateStore, CodexNativeStateError, snapshotCodexNativeEvent } from './companion-mode/codex-native-state';
|
|
30
|
+
export { parseCodexNativeQuestionAnswers } from './companion-mode/codex-native-question-reply';
|
|
31
|
+
export type { CodexNativeQuestionAnswer } from './companion-mode/codex-native-question-reply';
|
|
30
32
|
export type { CodexNativeStateOptions, CodexNativeScope, CodexNativeStableIdentity, CodexNativeOwner, CodexNativeEvent, CodexNativeControl, CodexNativeIntent, CodexNativeState, CodexNativeEntry, CodexNativeRejection, CodexNativeApprovalDecision } from './companion-mode/codex-native-state';
|
|
31
33
|
export { CodexNativeDispatcher } from './companion-mode/codex-native-dispatcher';
|
|
32
34
|
export type { CodexNativeDispatcherOptions, CodexNativeDispatchResult } from './companion-mode/codex-native-dispatcher';
|