@quantiya/codevibe-claude-plugin 1.0.36 → 1.0.37

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/.claude-plugin/plugin.json +1 -1
  2. package/dist/server.js +13 -13
  3. package/node_modules/@quantiya/codevibe-core/dist/appsync/__tests__/appsync-client.test.d.ts +1 -0
  4. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +139 -1
  5. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +5 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/audit-keys/__tests__/audit-keys-parity.test.d.ts +1 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/audit-keys/index.d.ts +41 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/auth/__tests__/auth-telemetry.test.d.ts +1 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-telemetry.d.ts +29 -8
  10. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +4 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/index.js +194 -33
  12. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-bootstrap.test.d.ts +1 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-failure-recourse.test.d.ts +1 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-save.test.d.ts +1 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-seat-picker.test.d.ts +1 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-telemetry.test.d.ts +1 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-test-agents.test.d.ts +1 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-types.test.d.ts +1 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-wizard.test.d.ts +1 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/v1-options.test.d.ts +1 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/orchestration/detect-agents.d.ts +56 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/orchestration/index.d.ts +3 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/orchestration/orchestration-cli.d.ts +12 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-bootstrap.d.ts +146 -0
  25. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-failure-recourse.d.ts +23 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-save.d.ts +47 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-seat-picker.d.ts +72 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-telemetry.d.ts +54 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-test-agents.d.ts +108 -0
  30. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-types.d.ts +140 -0
  31. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-wizard.d.ts +57 -0
  32. package/node_modules/@quantiya/codevibe-core/dist/orchestration/v1-options.d.ts +108 -0
  33. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/integration.test.d.ts +1 -0
  34. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/mocks.test.d.ts +1 -0
  35. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/output-parser.test.d.ts +1 -0
  36. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/registry.test.d.ts +1 -0
  37. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/subprocess.test.d.ts +1 -0
  38. package/node_modules/@quantiya/codevibe-core/dist/reviewer/index.d.ts +15 -0
  39. package/node_modules/@quantiya/codevibe-core/dist/reviewer/mocks.d.ts +80 -0
  40. package/node_modules/@quantiya/codevibe-core/dist/reviewer/output-parser.d.ts +95 -0
  41. package/node_modules/@quantiya/codevibe-core/dist/reviewer/provider.d.ts +153 -0
  42. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/claude-live-smoke.test.d.ts +1 -0
  43. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/claude.test.d.ts +1 -0
  44. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/codex-live-smoke.test.d.ts +1 -0
  45. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/codex.test.d.ts +1 -0
  46. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/gemini-live-smoke.test.d.ts +1 -0
  47. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/gemini.test.d.ts +1 -0
  48. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/claude.d.ts +59 -0
  49. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/codex.d.ts +67 -0
  50. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/common.d.ts +25 -0
  51. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/gemini.d.ts +108 -0
  52. package/node_modules/@quantiya/codevibe-core/dist/reviewer/registry.d.ts +87 -0
  53. package/node_modules/@quantiya/codevibe-core/dist/reviewer/subprocess.d.ts +117 -0
  54. package/node_modules/@quantiya/codevibe-core/dist/reviewer/types.d.ts +101 -0
  55. package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +2 -0
  56. package/node_modules/@quantiya/codevibe-core/dist/types/orchestration.d.ts +57 -0
  57. package/node_modules/@quantiya/codevibe-core/dist/types/reviewer.d.ts +67 -0
  58. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +16 -0
  59. package/package.json +1 -1
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Review lens a reviewer seat evaluates through. Mirrors
3
+ * codevibe-policy::ReviewerRole in the Rust engine.
4
+ *
5
+ * **Append-only post-launch** per the 2026-04-23 memory lock — these
6
+ * string values are cryptographically bound into the audit hash chain
7
+ * once used. Renaming or removing a value would break chain verification
8
+ * on every prior entry. Add new values freely; never rename or remove.
9
+ *
10
+ * UPPERCASE here (matches AppSync GraphQL enum convention). The Lambda
11
+ * translates to snake_case before writing to the audit chain / Rust
12
+ * engine wire.
13
+ */
14
+ export declare enum ReviewerRole {
15
+ ARCHITECTURE = "ARCHITECTURE",
16
+ CORRECTNESS = "CORRECTNESS",
17
+ SECURITY = "SECURITY",
18
+ ACCURACY = "ACCURACY",
19
+ CLARITY = "CLARITY",
20
+ COMPLETENESS = "COMPLETENESS",
21
+ ARCHITECTURE_AND_ACCURACY = "ARCHITECTURE_AND_ACCURACY",
22
+ CORRECTNESS_AND_CLARITY = "CORRECTNESS_AND_CLARITY",
23
+ SECURITY_AND_COMPLETENESS = "SECURITY_AND_COMPLETENESS"
24
+ }
25
+ /**
26
+ * One seat in a user's reviewer panel. `seat_id` is the panel position
27
+ * (0-indexed: Pro has seats 0–1, Max has 0–2). `role` is the review lens
28
+ * — unique within a policy. `agent` (CLAUDE | GEMINI | CODEX) may repeat
29
+ * across seats — single-vendor users get multiple same-kind seats with
30
+ * distinct roles.
31
+ */
32
+ export interface ReviewerAgentSpec {
33
+ seatId: number;
34
+ role: ReviewerRole;
35
+ agent: 'CLAUDE' | 'GEMINI' | 'CODEX';
36
+ modelHint?: string | null;
37
+ }
38
+ export interface ReviewerAgentSpecInput {
39
+ seatId: number;
40
+ role: ReviewerRole;
41
+ agent: 'CLAUDE' | 'GEMINI' | 'CODEX';
42
+ modelHint?: string | null;
43
+ }
44
+ /**
45
+ * Input for updateReviewerPolicy. Fields are independent:
46
+ * - orchestrationEnabledDefault: set to true/false to persist the user's
47
+ * opt-in preference for new sessions. Null = leave unchanged.
48
+ * - reviewerSeats: non-empty array sets a custom panel. Empty array
49
+ * resets to tier defaults. Null = leave unchanged.
50
+ */
51
+ export interface UpdateReviewerPolicyInput {
52
+ orchestrationEnabledDefault?: boolean | null;
53
+ reviewerSeats?: ReviewerAgentSpecInput[] | null;
54
+ }
55
+ /**
56
+ * User record returned by updateAvailableAgents and updateReviewerPolicy.
57
+ * Subset of the full AppSync User type — only the fields the two mutations
58
+ * return. Use this in the AppSyncClient response typing, not as a general
59
+ * "User" replacement.
60
+ */
61
+ export interface UserReviewerPolicySnapshot {
62
+ userId: string;
63
+ availableAgents?: Array<'CLAUDE' | 'GEMINI' | 'CODEX'> | null;
64
+ orchestrationEnabledDefault?: boolean | null;
65
+ reviewerSeats?: ReviewerAgentSpec[] | null;
66
+ updatedAt: string;
67
+ }
@@ -32,6 +32,12 @@ export interface Session {
32
32
  creatorDeviceId?: string;
33
33
  encryptionVersion?: number;
34
34
  lastHeartbeatAt?: string;
35
+ /**
36
+ * Quorum 2.0 opt-in flag (2f.0.a.3). True routes the session to the
37
+ * 2.0 orchestration flow once 2f.3 Lambda is live; null/false keeps
38
+ * the 1.0 companion flow.
39
+ */
40
+ orchestrationEnabled?: boolean | null;
35
41
  }
36
42
  /**
37
43
  * GraphQL input for creating sessions
@@ -47,6 +53,11 @@ export interface CreateSessionInput {
47
53
  creatorDeviceId?: string;
48
54
  isEncrypted?: boolean;
49
55
  encryptionVersion?: number;
56
+ /**
57
+ * Quorum 2.0 (2f.0.a.3). Null/absent = server reads
58
+ * User.orchestrationEnabledDefault (option 6a auto-populate).
59
+ */
60
+ orchestrationEnabled?: boolean;
50
61
  }
51
62
  /**
52
63
  * GraphQL input for updating sessions
@@ -56,4 +67,9 @@ export interface UpdateSessionInput {
56
67
  status?: SessionStatus;
57
68
  metadata?: Record<string, any>;
58
69
  lastHeartbeatAt?: string;
70
+ /**
71
+ * Quorum 2.0 (2f.0.a.3). Per-session override for the orchestration
72
+ * opt-in. Plugin CLI --orchestration/--no-orchestration sets this.
73
+ */
74
+ orchestrationEnabled?: boolean;
59
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-claude-plugin",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Control Claude Code from your iPhone and Android — real-time sync, approve file edits, send prompts by voice. Part of CodeVibe.",
5
5
  "main": "dist/server.js",
6
6
  "bin": {