@quantiya/codevibe-core 2.0.72 → 2.0.74
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/appsync/appsync-client.d.ts +5 -1
- package/dist/appsync/sync-operation-journal.d.ts +8 -0
- package/dist/appsync/sync-prompt-retention.d.ts +1 -0
- package/dist/appsync/sync-session-retirement.d.ts +1 -1
- package/dist/appsync/sync-source-pair.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +519 -519
- package/dist/orchestration/detect-agents.d.ts +20 -0
- package/dist/orchestration/index.d.ts +1 -1
- package/dist/orchestration-shell/audit-summary.d.ts +2 -0
- package/dist/orchestration-shell/cli.d.ts +4 -0
- package/dist/orchestration-shell/cli.js +364 -148
- package/dist/orchestration-shell/doctor-cli.d.ts +2 -0
- package/dist/orchestration-shell/quorum-loop.d.ts +17 -3
- package/dist/orchestration-shell/task-progress-relay.d.ts +2 -2
- package/dist/tool-activity/ledger.d.ts +5 -0
- package/dist/tool-activity/outbox.d.ts +3 -2
- package/dist/tool-activity/replay-cursor.d.ts +17 -3
- package/dist/tool-activity/sync-transport.d.ts +3 -0
- package/package.json +1 -1
|
@@ -802,6 +802,9 @@ export declare class AppSyncClient {
|
|
|
802
802
|
retireDesktopSyncRegistration(options: DesktopSyncSessionScope & {
|
|
803
803
|
root?: string;
|
|
804
804
|
}, retired: Session): Promise<boolean>;
|
|
805
|
+
/** Both callers have terminal authority and have joined their read owners:
|
|
806
|
+
* the returned INACTIVE session above, or a freshly confirmed durable intent. */
|
|
807
|
+
private removeDesktopSyncRegistrationState;
|
|
805
808
|
/** Explicit metered route; no legacy fallback, synthetic Event or local quota authority. */
|
|
806
809
|
desktopSyncWriter(options?: {
|
|
807
810
|
root?: string;
|
|
@@ -930,7 +933,7 @@ export declare class AppSyncClient {
|
|
|
930
933
|
private resolveOwnedPrompt;
|
|
931
934
|
private finishPromptResolution;
|
|
932
935
|
/** Explicit session-owned restart recovery. Inventory is bounded by the
|
|
933
|
-
* account store's
|
|
936
|
+
* account store's file cap; empty inventory does no cloud I/O. Reuses
|
|
934
937
|
* original ownership/generation, not current Session or encryption state.
|
|
935
938
|
* No failure/age/quota condition deletes an outstanding intent. */
|
|
936
939
|
recoverPromptResolutions(options: {
|
|
@@ -979,6 +982,7 @@ export declare class AppSyncClient {
|
|
|
979
982
|
}, retired: Session, quiesce: () => Promise<void>, signal?: AbortSignal): Promise<{
|
|
980
983
|
sourcesRemoved: number;
|
|
981
984
|
operationsRemoved: number;
|
|
985
|
+
cleanupDeferred?: true;
|
|
982
986
|
}>;
|
|
983
987
|
/** No Session fetch, live key lookup, native-process operation or re-homing.
|
|
984
988
|
* The encrypted intent records a completed producer join; fresh cloud proof
|
|
@@ -166,6 +166,10 @@ export declare class DurableDesktopSyncWriter {
|
|
|
166
166
|
/** Caller must join subscription/provider dispatch and prove canonical
|
|
167
167
|
* INACTIVE first; no closed generation may execute these inputs again. */
|
|
168
168
|
removeInbound(): Promise<boolean>;
|
|
169
|
+
/** The encrypted record is also the recovery index for these outer locks.
|
|
170
|
+
* Release them strictly BEFORE unlinking it, while the store stays fenced.
|
|
171
|
+
* A failed release preserves the record and the caller's retirement intent. */
|
|
172
|
+
private removeBookkeepingRecord;
|
|
169
173
|
/** Exact empty-source GC only after the owner has joined all its emitters
|
|
170
174
|
* and received canonical terminal-session proof. Pending payload or receipts
|
|
171
175
|
* are never discarded here. Admission/drain locks serialize the empty check
|
|
@@ -175,10 +179,14 @@ export declare class DurableDesktopSyncWriter {
|
|
|
175
179
|
* merely missing/old source files or a new session ID never create an intent. */
|
|
176
180
|
sessionRetirements(): Promise<readonly SessionRetirementRecord[]>;
|
|
177
181
|
hasSessionRetirementWork(expectedSessionKeyGen: string): Promise<boolean>;
|
|
182
|
+
/** Presence is not deletion authority. Callers still need their joined
|
|
183
|
+
* terminal owner and fresh retirement confirmation before cleanup. */
|
|
184
|
+
hasSessionRegistrationState(): Promise<boolean>;
|
|
178
185
|
/** Durable stop/join intent -> confirmed source cleanup -> control ACKs ->
|
|
179
186
|
* intent removal. Network I/O never holds the account-store lock. */
|
|
180
187
|
runSessionRetirement<T>(input: ConfirmDesktopSyncRetirementInput, toolOutbox: ToolSyncRetirementLocation | null, cleanup: (record: SessionRetirementRecord, fence: () => Promise<void>) => Promise<T>, options?: {
|
|
181
188
|
existingOnly?: boolean;
|
|
189
|
+
isComplete?: (result: T) => boolean;
|
|
182
190
|
}): Promise<T | null>;
|
|
183
191
|
/** Terminal GC, not delivery settlement. The session owner MUST first stop
|
|
184
192
|
* admission and join its native readers, shell emitters and prompt producers.
|
|
@@ -81,6 +81,7 @@ export declare function decodePromptRetention(value: unknown): PromptRetentionRe
|
|
|
81
81
|
export interface PromptRetentionJournal {
|
|
82
82
|
run(promptIds: readonly string[], refresh: (promptId: string) => Promise<SyncPromptRetentionReceipt>, reRaise: (promptId: string, reRaiseToken: string) => Promise<PromptReRaiseDisposition>, now?: () => number): Promise<void>;
|
|
83
83
|
/** Only after the exact session is canonically INACTIVE and work is joined. */
|
|
84
|
+
/** Owns terminal serialization, including strict release before unlink. */
|
|
84
85
|
remove(): Promise<void>;
|
|
85
86
|
}
|
|
86
87
|
interface Store {
|
|
@@ -9,7 +9,7 @@ export type SyncSessionRetirementReceipt = ConfirmDesktopSyncRetirementInput & {
|
|
|
9
9
|
controlClass: 'SESSION_RETIREMENT';
|
|
10
10
|
};
|
|
11
11
|
export interface ToolSyncRetirementLocation {
|
|
12
|
-
agent: 'codex' | 'claude';
|
|
12
|
+
agent: 'codex' | 'claude' | 'agy';
|
|
13
13
|
root: string;
|
|
14
14
|
}
|
|
15
15
|
export interface SessionRetirementRecord {
|
|
@@ -3,7 +3,7 @@ import type { DesktopSyncSourceFrame, DesktopSyncSourceGap, DesktopSyncSourceJou
|
|
|
3
3
|
type Prepare = ((operationId: string) => Promise<CreateDesktopSyncEventInput>) | null;
|
|
4
4
|
export interface DesktopSyncSourcePair {
|
|
5
5
|
/** Restore the earliest unfinished lane, never the latest volatile reader offset. */
|
|
6
|
-
open(initial: number | DesktopSyncSourcePosition): Promise<DesktopSyncSourcePosition>;
|
|
6
|
+
open(initial: number | DesktopSyncSourcePosition, validateInitial?: () => void): Promise<DesktopSyncSourcePosition>;
|
|
7
7
|
/** Both slots are fixed for this source's lifetime; null explicitly ignores a slot. */
|
|
8
8
|
admit(frame: DesktopSyncSourceFrame, prepare: readonly [Prepare, Prepare]): Promise<readonly [string | null, string | null]>;
|
|
9
9
|
skip(gap: DesktopSyncSourceGap): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export { emitShellEvent, createShellEventEmitter } from './orchestration-shell';
|
|
|
74
74
|
export { processMarkers, withRoleMarker } from './orchestration-shell';
|
|
75
75
|
export { ToolActivityOutbox, type ToolActivityOutboxOptions, type ListPendingResult, } from './tool-activity';
|
|
76
76
|
export { ToolActivityLedger, LedgerEntrySchema, LedgerFileSchema, LegacyOwnedFileSchema, type LedgerEntry, type LedgerFile, type LegacyOwnedFile, type OccurrenceRef, type ToolActivityLedgerOptions, } from './tool-activity';
|
|
77
|
-
export { ToolReplayCursor, ReplayFrameTooLargeError, ReplayCursorStateSchema, DEFAULT_REPLAY_READ_BYTES, DEFAULT_REPLAY_MAX_FRAME_BYTES, type ReplayCursorState, type ReplayFrame, type ReadFramesResult, type ToolReplayCursorOptions, } from './tool-activity';
|
|
77
|
+
export { ToolReplayCursor, captureToolReplayBoundary, ReplayFrameTooLargeError, ReplayCursorStateSchema, DEFAULT_REPLAY_READ_BYTES, DEFAULT_REPLAY_MAX_FRAME_BYTES, type ReplayCursorState, type ReplayFrame, type ReadFramesResult, type ToolReplayCursorOptions, type ToolReplayInitialBoundary, } from './tool-activity';
|
|
78
78
|
export { ToolActivitySessionMap, InProcessRolloutLock, SessionMapRecordSchema, type RolloutLock, type RolloutOwnership, type SessionMapRecord, type ToolActivitySessionMapOptions, } from './tool-activity';
|
|
79
79
|
export { ToolActivityConsolidator, isSessionKeyStaleError, isTerminalSessionError, type ObservedOccurrence, type ObserveDisposition, type ToolActivityTransport, type ToolActivityConsolidatorOptions, } from './tool-activity';
|
|
80
80
|
export { SocketRolloutLock, type SocketRolloutLockOptions, FlockRolloutLock, type FlockRolloutLockOptions, type FlockSyncFn, type FlockFlag, createRolloutLock, type CreateRolloutLockOptions, } from './tool-activity';
|