@quantiya/codevibe-codex-plugin 2.0.64 → 2.0.66

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.
Files changed (59) hide show
  1. package/dist/server.js +38 -36
  2. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +302 -8
  3. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +25 -1
  4. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +10 -0
  5. package/node_modules/@quantiya/codevibe-core/dist/appsync/standalone-companion-status.d.ts +6 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-deferred-inputs.d.ts +104 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-desktop-registration.d.ts +133 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-event-client.d.ts +110 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-inbound-journal.d.ts +142 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-input-delivery.d.ts +13 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-live-connection.d.ts +87 -0
  12. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-mobile-echo.d.ts +289 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-operation-journal.d.ts +236 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-prompt-publication.d.ts +153 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-prompt-resolution.d.ts +38 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-prompt-retention.d.ts +99 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-read-client.d.ts +131 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-resolution-recovery.d.ts +29 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-security-posture.d.ts +32 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-session-retirement.d.ts +30 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-shell-source.d.ts +151 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-source-cursor.d.ts +529 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-source-file.d.ts +33 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-source-pair.d.ts +33 -0
  25. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-state.d.ts +51 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-usage-warning.d.ts +33 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-workspace-outcome.d.ts +23 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +3 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/credential-broker/oauth-account-lock.d.ts +4 -0
  30. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +26 -0
  31. package/node_modules/@quantiya/codevibe-core/dist/index.js +584 -537
  32. package/node_modules/@quantiya/codevibe-core/dist/local-executor/local-executor-impl.d.ts +11 -11
  33. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +9 -4
  34. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +50678 -44643
  35. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/OrchestrationApp.d.ts +6 -0
  36. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/StatusBar.d.ts +2 -0
  37. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/decision-attempt-recovery.d.ts +2 -0
  38. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/emit-shell-event.d.ts +31 -8
  39. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-prompts.d.ts +4 -0
  40. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +8 -7
  41. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/planner-offer-e1.d.ts +5 -1
  42. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +9 -2
  43. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/shell-sync-recovery.d.ts +23 -0
  44. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/slash-routes/reviewers.d.ts +3 -1
  45. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +8 -8
  46. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/workspace-terminal-coordinator.d.ts +1 -1
  47. package/node_modules/@quantiya/codevibe-core/dist/planner/types.d.ts +2 -2
  48. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/atomic-file.d.ts +13 -3
  49. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/consolidator.d.ts +10 -2
  50. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/index.d.ts +1 -0
  51. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/ledger.d.ts +17 -9
  52. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/outbox.d.ts +20 -2
  53. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/replay-cursor.d.ts +2 -2
  54. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/sync-transport.d.ts +53 -0
  55. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/types.d.ts +28 -24
  56. package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +3 -0
  57. package/node_modules/@quantiya/codevibe-core/dist/types/reviewer.d.ts +14 -4
  58. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  59. package/package.json +2 -2
@@ -0,0 +1,23 @@
1
+ import type { CreateEventInput, Event } from '../types';
2
+ export interface WorkspaceOutcomeReceipt {
3
+ schemaVersion: 1;
4
+ kind: 'WORKSPACE_OUTCOME';
5
+ state: 'ACKED';
6
+ sessionId: string;
7
+ sessionGenerationId: string;
8
+ writerEventNonce: string;
9
+ eventId: string;
10
+ timestamp: string;
11
+ syncDisposition: 'ADMITTED' | 'OMITTED_QUOTA' | 'LEGACY_COMMITTED';
12
+ }
13
+ export interface WorkspaceOutcomeSubmissionOptions {
14
+ /** Persisted by the existing outbox; V2 results never downgrade on rollback. */
15
+ requiresV2?: boolean;
16
+ /** Must durably pin V2 before the first V2 network mutation. */
17
+ beforeV2?: () => Promise<void>;
18
+ }
19
+ /** Original ciphertext and generation only; no current Session/key lookup. */
20
+ export declare function snapshotWorkspaceOutcomeInput(value: CreateEventInput): CreateEventInput;
21
+ export declare function parseWorkspaceOutcomeReceipt(value: unknown, expected: CreateEventInput): WorkspaceOutcomeReceipt;
22
+ /** Used only after an affirmative cloud LEGACY route and a real Event ACK. */
23
+ export declare function legacyWorkspaceOutcomeReceipt(event: Event, expected: CreateEventInput): WorkspaceOutcomeReceipt;
@@ -17,6 +17,9 @@ export interface Config {
17
17
  aws: {
18
18
  region: string;
19
19
  appsyncUrl: string;
20
+ /** R2 deployed bounded HTTP plane; unset until its environment is qualified. */
21
+ syncHttpUrl?: string;
22
+ syncWebSocketUrl?: string;
20
23
  cognitoUserPoolId: string;
21
24
  cognitoClientId: string;
22
25
  cognitoDomain: string;
@@ -12,6 +12,9 @@ export interface LockOwner {
12
12
  export interface OAuthAccountLockOptions {
13
13
  /** The canonical lockdir path (keyed to the OAuth account). */
14
14
  lockDir: string;
15
+ /** GC callers must retain their recovery index unless unlink/rmdir succeeds.
16
+ * Default callers keep the existing best-effort release behavior. */
17
+ requireRemovalOnRelease?: boolean;
15
18
  /** Staleness TTL (» max critical-section time). Default 30s. */
16
19
  ttlMs?: number;
17
20
  /** Heartbeat interval (« TTL). Default 5s. */
@@ -63,6 +66,7 @@ export interface LockHandle {
63
66
  /** The portable cross-process OAuth-account lock (§5 / AMEND-1). */
64
67
  export declare class OAuthAccountLock {
65
68
  private readonly lockDir;
69
+ private readonly requireRemovalOnRelease;
66
70
  private readonly ownerFile;
67
71
  private readonly reclaimGuardDir;
68
72
  private readonly ttlMs;
@@ -8,11 +8,31 @@ export type { E1ProducerKind, PromptRaiseRecord, E1RaiseFields } from './e1';
8
8
  export { installDaemonProcessGuards, isNetworkClass } from './daemon';
9
9
  export type { DaemonGuardLogger, DaemonProcessGuardOptions } from './daemon';
10
10
  export { AppSyncClient, AppSyncGraphQLError, DownloadUrlResponse } from './appsync';
11
+ export type { CompanionEventPublication } from './appsync';
11
12
  export { queries, mutations, subscriptions } from './appsync';
12
13
  export { isPersistedEventResult } from './appsync';
13
14
  export type { PutContextItemInput } from './appsync';
14
15
  export { CREDENTIAL_STORAGE_UNAVAILABLE_EXIT_CODE, describeStoredAuthFailure } from './appsync';
15
16
  export type { AuthFailureKind, StoredAuthFailureReport } from './appsync';
17
+ export { SyncEventClientError, PLAIN_DESKTOP_SYNC_TYPES } from './appsync';
18
+ export { acknowledgeMobileInputDelivery, acknowledgeMobileInputExecution, requiresSyncInputDeliveryReceipt } from './appsync';
19
+ export type { MobileInputStatusUpdater } from './appsync';
20
+ export type { CreateDesktopSyncEventInput, UpdateDesktopSyncEventInput, SyncEventReceipt, SyncJson } from './appsync';
21
+ export type { CompanionSyncState } from './appsync';
22
+ export { readStandaloneCompanionStatus } from './appsync';
23
+ export type { PromptReRaiseDisposition, PromptPublicationJournal } from './appsync';
24
+ export type { ResolveDesktopSyncPromptInput, SyncPromptResolutionReceipt } from './appsync';
25
+ export type { ConfirmDesktopSyncRetirementInput, SyncSessionRetirementReceipt } from './appsync';
26
+ export { DurableDesktopSyncWriter, SyncJournalError } from './appsync';
27
+ export type { ShellSyncSource, ShellSyncTicket, ShellSyncSourceInventory } from './appsync';
28
+ export type { DurableSyncResult, DurableDesktopSyncWriterOptions, DesktopSyncSessionScope, DesktopSyncSourceIdentity } from './appsync';
29
+ export { MAX_SYNC_SOURCE_ANCHOR_BYTES } from './appsync';
30
+ export type { DesktopSyncSourcePair } from './appsync';
31
+ export { readDesktopSyncFile } from './appsync';
32
+ export type { DesktopSyncFileIdentity, DesktopSyncFileFrame, DesktopSyncFileAdmission } from './appsync';
33
+ export type { DesktopSyncSourceStream, DesktopSyncSourceFrame, DesktopSyncSourceCursor, DesktopSyncSourceJournal, DesktopSyncSourceInventory, DesktopSyncSourceAnchor, DesktopSyncSourcePosition, DesktopSyncSourceGap } from './appsync';
34
+ export { createToolActivitySyncTransport } from './tool-activity/sync-transport';
35
+ export type { ToolActivitySyncEncryption, ToolActivitySyncTransportOptions } from './tool-activity/sync-transport';
16
36
  export { AuthService, authService } from './auth';
17
37
  export { bindOAuthServer, PRIMARY_PORT, PORT_RANGE_SIZE } from './auth';
18
38
  export { runAuthCli } from './auth';
@@ -68,3 +88,9 @@ export { atomicWriteJsonSync, FileDurableTeamDeliveryJournal, RevertManifestStor
68
88
  export { startAgentWebTurn, sweepOrphanedFallbackDirs, formatFetchedContent, sanitizeUrlForAudit, MAX_SEARCHES_PER_TURN, MAX_FETCHES_PER_TURN, MAX_DYNAMIC_FETCH_CHARS, type AgentWebTurnContext, type WebAuditRecord, } from './orchestration-shell/web/agent-web-server';
69
89
  export { WebExtractTimeoutError, WebExtractAbortError, htmlToTextWorker, type WorkerExtractOptions, } from './orchestration-shell/web/extract';
70
90
  export { runDoctorCli, probeOrphanStatus, probeAgentClis, probeAuthPreflight, probeBackendConnectivity, type DoctorCliOpts, type OrphanPreflightStatus, type AgentCliStatus, type AuthPreflightStatus, type ConnectivityPreflightStatus, type RepairOutcome, } from './orchestration-shell/doctor-cli';
91
+ export { DesktopSyncReadClient, SyncReadClientError } from './appsync/sync-read-client';
92
+ export { desktopDeferredInputSha256 } from './appsync/sync-deferred-inputs';
93
+ export type { DesktopDeferredInput, DesktopDeferredInputStore, DesktopDeferredNoticeState } from './appsync/sync-deferred-inputs';
94
+ export type { DesktopMobileEchoJournal, DesktopMobileEchoTarget, DesktopMobileEchoFrame } from './appsync/sync-mobile-echo';
95
+ export type { DesktopSyncRegistrationAttempt, DesktopSyncReadCredential, SyncReadEvent, SyncHistoryPage } from './appsync/sync-read-client';
96
+ export type { DesktopSyncRegistrationStore, DurableDesktopSyncReader } from './appsync/sync-desktop-registration';