@quantiya/codevibe-claude-plugin 1.0.35 → 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 (61) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/server.js +13 -13
  3. package/hooks/permission-request.sh +32 -2
  4. package/hooks/stop.sh +22 -2
  5. package/node_modules/@quantiya/codevibe-core/dist/appsync/__tests__/appsync-client.test.d.ts +1 -0
  6. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +139 -1
  7. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +5 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/audit-keys/__tests__/audit-keys-parity.test.d.ts +1 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/audit-keys/index.d.ts +41 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/auth/__tests__/auth-telemetry.test.d.ts +1 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/auth/auth-telemetry.d.ts +29 -8
  12. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +4 -0
  13. package/node_modules/@quantiya/codevibe-core/dist/index.js +194 -33
  14. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-bootstrap.test.d.ts +1 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-failure-recourse.test.d.ts +1 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-save.test.d.ts +1 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-seat-picker.test.d.ts +1 -0
  18. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-telemetry.test.d.ts +1 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-test-agents.test.d.ts +1 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-types.test.d.ts +1 -0
  21. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/setup-wizard.test.d.ts +1 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/orchestration/__tests__/v1-options.test.d.ts +1 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/orchestration/detect-agents.d.ts +56 -0
  24. package/node_modules/@quantiya/codevibe-core/dist/orchestration/index.d.ts +3 -0
  25. package/node_modules/@quantiya/codevibe-core/dist/orchestration/orchestration-cli.d.ts +12 -0
  26. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-bootstrap.d.ts +146 -0
  27. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-failure-recourse.d.ts +23 -0
  28. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-save.d.ts +47 -0
  29. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-seat-picker.d.ts +72 -0
  30. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-telemetry.d.ts +54 -0
  31. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-test-agents.d.ts +108 -0
  32. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-types.d.ts +140 -0
  33. package/node_modules/@quantiya/codevibe-core/dist/orchestration/setup-wizard.d.ts +57 -0
  34. package/node_modules/@quantiya/codevibe-core/dist/orchestration/v1-options.d.ts +108 -0
  35. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/integration.test.d.ts +1 -0
  36. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/mocks.test.d.ts +1 -0
  37. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/output-parser.test.d.ts +1 -0
  38. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/registry.test.d.ts +1 -0
  39. package/node_modules/@quantiya/codevibe-core/dist/reviewer/__tests__/subprocess.test.d.ts +1 -0
  40. package/node_modules/@quantiya/codevibe-core/dist/reviewer/index.d.ts +15 -0
  41. package/node_modules/@quantiya/codevibe-core/dist/reviewer/mocks.d.ts +80 -0
  42. package/node_modules/@quantiya/codevibe-core/dist/reviewer/output-parser.d.ts +95 -0
  43. package/node_modules/@quantiya/codevibe-core/dist/reviewer/provider.d.ts +153 -0
  44. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/claude-live-smoke.test.d.ts +1 -0
  45. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/claude.test.d.ts +1 -0
  46. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/codex-live-smoke.test.d.ts +1 -0
  47. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/codex.test.d.ts +1 -0
  48. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/gemini-live-smoke.test.d.ts +1 -0
  49. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/__tests__/gemini.test.d.ts +1 -0
  50. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/claude.d.ts +59 -0
  51. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/codex.d.ts +67 -0
  52. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/common.d.ts +25 -0
  53. package/node_modules/@quantiya/codevibe-core/dist/reviewer/providers/gemini.d.ts +108 -0
  54. package/node_modules/@quantiya/codevibe-core/dist/reviewer/registry.d.ts +87 -0
  55. package/node_modules/@quantiya/codevibe-core/dist/reviewer/subprocess.d.ts +117 -0
  56. package/node_modules/@quantiya/codevibe-core/dist/reviewer/types.d.ts +101 -0
  57. package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +2 -0
  58. package/node_modules/@quantiya/codevibe-core/dist/types/orchestration.d.ts +57 -0
  59. package/node_modules/@quantiya/codevibe-core/dist/types/reviewer.d.ts +67 -0
  60. package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +16 -0
  61. package/package.json +1 -1
@@ -1,11 +1,15 @@
1
1
  /**
2
2
  * Typed taxonomy of auth-flow failure reasons.
3
3
  *
4
- * Every value is a sanitized enum literal — never a raw error message,
5
- * never a truncated user input, never any byte from Cognito's response.
6
- * Adding a new failure mode means extending this union; the compiler
7
- * then forces every emit site to either use a known value or produce
8
- * a type error.
4
+ * Every value in THIS union is a sanitized enum literal — never a raw
5
+ * error message, never a truncated user input, never any byte from
6
+ * Cognito's response. Adding a new failure mode means extending this
7
+ * union; the compiler then forces every emit site to either use a known
8
+ * value or produce a type error.
9
+ *
10
+ * (Note: the `error_fragment` parameter on the auth_failed beacon DOES
11
+ * carry redacted error material — see `sanitizeAuthErrorFragment`. The
12
+ * `reason` taxonomy below remains the analytics-safe primary key.)
9
13
  *
10
14
  * Keep values snake_case to match GA4 custom-dimension conventions
11
15
  * used elsewhere in the codebase (`step`, `source`, `reason`).
@@ -29,6 +33,20 @@ export type AuthStage = 'server_start' | 'browser_open' | 'awaiting_callback' |
29
33
  * address.
30
34
  */
31
35
  export declare function fireAuthCompletedBeacon(userId: string): Promise<void>;
36
+ /**
37
+ * Bytes 0-99 of the sanitized fragment (GA4 dim: error_fragment).
38
+ * See `sanitizeAuthErrorFragmentFull` for the redaction contract.
39
+ */
40
+ export declare function sanitizeAuthErrorFragment(msg: string): string;
41
+ /**
42
+ * Bytes 100-199 of the sanitized fragment (GA4 dim: error_fragment_2).
43
+ * Returns empty string when the redacted message is ≤100 chars (the
44
+ * typical short-error case), which is what we want — no
45
+ * `error_fragment_2` param fires unless there's something past byte
46
+ * 100 worth carrying. Works around GA4 Measurement Protocol's 100-char
47
+ * per-param limit.
48
+ */
49
+ export declare function sanitizeAuthErrorFragmentTail(msg: string): string;
32
50
  /**
33
51
  * Fire the `auth_failed` failure beacon with a sanitized `reason`
34
52
  * literal. Optional `httpStatus` captures the numeric HTTP status
@@ -45,9 +63,12 @@ export declare function fireAuthCompletedBeacon(userId: string): Promise<void>;
45
63
  * `reason: 'unknown'`. The outer `auth-cli` catch passes the first
46
64
  * portion of `error.message` here so the next analytics pass can
47
65
  * see what's hiding in `unknown` and we can ship a typed reason in
48
- * a follow-up. Sanitized inside: ANSI escape sequences stripped,
49
- * newlines/tabs/quotes/backslashes replaced with spaces, non-ASCII
50
- * dropped, then split into two GA4 dimensions to work around the
66
+ * a follow-up. Sanitized inside via `sanitizeAuthErrorFragment` (head)
67
+ * + `sanitizeAuthErrorFragmentTail` (tail) — ANSI stripped, $HOME /
68
+ * USERPROFILE / `/Users/<name>/` / `/home/<name>/` / email substrings
69
+ * redacted (Windows backslashes normalized first so `C:\Users\Alice\…`
70
+ * matches the same path regex as POSIX form), control + non-ASCII
71
+ * bytes dropped, then split into two GA4 dimensions to work around the
51
72
  * Measurement Protocol 100-char per-param limit:
52
73
  * - `error_fragment` = bytes 0-99
53
74
  * - `error_fragment_2` = bytes 100-199 (only set when input >100 chars)
@@ -13,4 +13,8 @@ export { parseInteractivePrompt, normalizeSnapshot, } from './prompt-parser';
13
13
  export type { ParsedInteractivePrompt, PromptKind, InteractivePromptOption, } from './prompt-parser';
14
14
  export { resumeOrCreateSession, prepareSessionEncryption, rekeySessionForNewDevices, startDeviceKeyWatcher, registerDeviceEncryptionKey, } from './session';
15
15
  export type { ResumeOrCreateSessionInput, ResumeOrCreateSessionResult } from './session';
16
+ export { detectInstalledAgents, pushDetectedAgents, applyPerSessionOrchestrationOverride, runOrchestrationCli, V1_ORCHESTRATION_PROMPT_KIND, V1_ORCHESTRATION_OPTIONS, mapOptionNumberToUserDecisionKind, mapOptionToUserDecisionKind, mapV1KindToWire, } from './orchestration';
17
+ export type { DetectableAgent, V1OrchestrationOption, V1UserDecisionKind, } from './orchestration';
18
+ export * as Reviewer from './reviewer';
19
+ export * as AuditKeys from './audit-keys';
16
20
  export * from './types';