@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
@@ -26,14 +26,14 @@ import { type ReviewedShadowDiffFile, type ShadowEnv } from './workspace-shadow'
26
26
  * therefore "succeed" (await resolves) while the user sees NOTHING — and the
27
27
  * legacy unsandboxed spawn would proceed on only a WARN.
28
28
  *
29
- * A `StrictBadgeSink` MUST instead CONFIRM that the user-facing NOTIFICATION was
30
- * ACTUALLY delivered (e.g. `createEvent` was invoked) and THROW when it cannot
31
- * deliver (no session / stub / tap-ignored). For `tier:'none'` a
29
+ * A `StrictBadgeSink` MUST instead confirm canonical safety-notice persistence
30
+ * (or legacy encrypted createEvent acknowledgment), and THROW when it cannot
31
+ * persist (no session / stub / tap-ignored). This is not a phone ACK. For `tier:'none'` a
32
32
  * throw → FAIL CLOSED (no legacy spawn). It is INTENTIONALLY separate from the
33
33
  * audit emit: audit emission stays on the existing Class-A / shell-event path;
34
- * this sink is ONLY the user-facing moat-OFF warning.
34
+ * this sink handles both moat-OFF and coarse-egress safety warnings.
35
35
  *
36
- * Resolves on a confirmed delivery; REJECTS on a silent no-op / undeliverable.
36
+ * Coarse-egress failure stays best effort; moat-OFF failure refuses the spawn.
37
37
  */
38
38
  export type StrictBadgeSink = (badge: {
39
39
  sessionId: string;
@@ -603,10 +603,10 @@ export declare class LocalExecutorImpl implements LocalExecutor {
603
603
  *
604
604
  * W2 Stage-2 HIGH — DELIVERY DISCIPLINE per tier:
605
605
  * - `tier: 'none'` (the moat is fully OFF — the agent runs unsandboxed with
606
- * ambient `process.env` reachable): the badge MUST be DELIVERED before the
607
- * agent runs. It is routed through the STRICT delivery sink
608
- * (`deps.strictBadgeSink`) which CONFIRMS the NOTIFICATION actually reached
609
- * `createEvent` and THROWS on a silent no-op (no session key /
606
+ * ambient `process.env` reachable): the badge MUST be PERSISTED before the
607
+ * agent runs. It is routed through the STRICT sink
608
+ * (`deps.strictBadgeSink`) which confirms a canonical V2 notice or legacy
609
+ * encrypted createEvent acknowledgment, and THROWS on a silent no-op (no session key /
610
610
  * stub / tap-ignored) — the ordinary `emitShellEvent` would RESOLVE without
611
611
  * emitting in those cases (Finding 2). This method AWAITS that delivery with
612
612
  * a bounded timeout and RE-THROWS on a reject/timeout. The WARN log stays
@@ -629,8 +629,8 @@ export declare class LocalExecutorImpl implements LocalExecutor {
629
629
  * the NOTIFICATION emit settles successfully within
630
630
  * `REDUCED_TRUST_BADGE_DELIVERY_TIMEOUT_MS`; REJECTS if the emit rejects OR the
631
631
  * timeout fires first. The caller fails closed on a reject (refuses the
632
- * unsandboxed spawn) so no agent ever runs moat-OFF without the user having
633
- * been warned.
632
+ * unsandboxed spawn). This persistence deadline does not prove the user has
633
+ * read the notice or that a phone rendered it.
634
634
  */
635
635
  private awaitBadgeDeliveryOrThrow;
636
636
  private spawnWithLifecycle;
@@ -10,13 +10,13 @@ import type { PlannerAdapter, PlannerInput, PlannerDecision, PlannerProbeResult
10
10
  import { keychainManager } from '../keychain';
11
11
  export { keychainManager };
12
12
  import type { TaskAuditSummaryModel } from './audit-summary';
13
- import { type LocalExecutor, type AuthorityScope, type EmitShellEventFn as LEEmitShellEventFn } from '../local-executor';
13
+ import { type LocalExecutor, type AuthorityScope, type EmitShellEventFn as LEEmitShellEventFn, type StrictBadgeSink } from '../local-executor';
14
14
  import { type ReviewerCredentialStore } from '../substrate-launch';
15
15
  import { type EngineGroupState } from '../local-executor';
16
16
  import type { TeamTapEvent } from './index';
17
17
  import type { WorkspaceOutcomeSinkTap } from './workspace-terminal-coordinator';
18
18
  import type { GroupDecisionSubmitDeps } from './gate-decision-submit';
19
- import { QuorumLoop } from './quorum-loop';
19
+ import { QuorumLoop, type ReviewerSafetyNoticeSink } from './quorum-loop';
20
20
  import type { TaskProgressEvent } from './task-progress';
21
21
  import { type VerdictClassifier } from '../reviewer/verdict-classifier';
22
22
  import { type LocalModelArtifactConfig, type LocalModelCommand, type LocalModelEntitlement, type LocalModelStore } from '../local-model/manager';
@@ -409,6 +409,11 @@ export interface DispatchContextTap {
409
409
  brief: string;
410
410
  }) => Promise<string>;
411
411
  }
412
+ /** Same canonical reporter as implementors, without changing the reviewer's
413
+ * advisory policy. Local echo precedes the network; V2 never sends the reason
414
+ * text as an ordinary Event. The loop catches failure and still tears down. */
415
+ export declare function makeReviewerSafetyNoticeSink(appsyncClient: AppSyncClient, session: Session, localNotice: (message: string) => void, legacyEmitter: LEEmitShellEventFn): ReviewerSafetyNoticeSink;
416
+ export declare function makeStrictBadgeSink(appsyncClient: AppSyncClient, session: Session, legacyEmitter: LEEmitShellEventFn): StrictBadgeSink;
412
417
  /**
413
418
  * [Gemma classifier · D11 + §Wiring] Resolve the reviewer verdict classifier
414
419
  * threaded onto `QuorumLoopDeps.classifyVerdict`.
@@ -449,8 +454,8 @@ export interface BuildQuorumLoopExecutorResult {
449
454
  * CP-1.f §3.C — Stage-2 r2 (Codex) FIX B. Construct the SINGLE-TASK QuorumLoop +
450
455
  * its driving LE for a non-team orchestration session (Pro OR Max-without-teams).
451
456
  *
452
- * The single-implementor reviewer-quorum loop is a Pro+Max feature (Pro = 2
453
- * seats, Max = 3 seats per `codevibe-policy`); only Agent Teams / MergeGate
457
+ * The single-implementor reviewer-quorum loop is a Pro+Max feature (Pro = 1
458
+ * seat, Max = 1–2 seats per `codevibe-policy`); only Agent Teams / MergeGate
454
459
  * (CP-12) is Max-only. Before this fix the QuorumLoop was built ONLY inside
455
460
  * `buildTeamLocalExecutor` (gated on `tier === 'MAX'`), so a real Pro
456
461
  * orchestration session got NO loop → `start_task` silently no-op'd (the only