@quantiya/codevibe-claude-plugin 2.0.23 → 2.0.24

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 (24) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +25 -0
  3. package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +1 -1
  4. package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +1 -1
  5. package/node_modules/@quantiya/codevibe-core/dist/index.js +289 -289
  6. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/quorum-loop-outcome-recency.test.d.ts +1 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +7 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +388 -121
  9. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +4 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +24 -0
  11. package/node_modules/@quantiya/codevibe-core/dist/ordinal-presentation.d.ts +4 -0
  12. package/node_modules/@quantiya/codevibe-core/dist/ordinal-presentation.test.d.ts +1 -0
  13. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  14. package/package.json +2 -2
  15. package/node_modules/fs-ext/build/Makefile +0 -347
  16. package/node_modules/fs-ext/build/Release/.deps/Release/fs_ext.node.d +0 -1
  17. package/node_modules/fs-ext/build/Release/.deps/Release/obj.target/fs_ext/fs-ext.o.d +0 -165
  18. package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
  19. package/node_modules/fs-ext/build/Release/obj.target/fs_ext/fs-ext.o +0 -0
  20. package/node_modules/fs-ext/build/binding.Makefile +0 -6
  21. package/node_modules/fs-ext/build/config.gypi +0 -503
  22. package/node_modules/fs-ext/build/fs_ext.target.mk +0 -183
  23. package/node_modules/fs-ext/build/gyp-mac-tool +0 -768
  24. package/node_modules/keytar/build/Release/keytar.node +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevibe-claude",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Sync Claude Code sessions with iOS mobile app via AWS backend. Control Claude Code from your phone with real-time bidirectional synchronization.",
5
5
  "author": {
6
6
  "name": "CodeVibe Team"
@@ -1,4 +1,5 @@
1
1
  import WebSocket from 'ws';
2
+ import { type Environment } from '../config';
2
3
  import { CreateEventInput, CreateSessionInput, UpdateSessionInput, UpdateEventStatusInput, Event, Session, EventSource, DeviceKey, GrantSessionKeyInput, UpdateReviewerPolicyInput, UserReviewerPolicySnapshot } from '../types';
3
4
  import type { PostDecisionAction } from '../orchestration-shell/types';
4
5
  import type { InvocationUsageSnapshot } from '../reviewer/token-usage';
@@ -414,6 +415,30 @@ export declare function shouldDeliverSubscribedEvent(event: Pick<Event, 'source'
414
415
  * failure from a genuine sign-in rejection.
415
416
  */
416
417
  export type AuthFailureKind = 'no_tokens' | 'refresh_auth_rejected' | 'refresh_network' | 'credential_storage_unavailable';
418
+ export declare const DEFAULT_HEARTBEAT_INTERVAL_MS = 120000;
419
+ export declare const MIN_HEARTBEAT_INTERVAL_MS = 1000;
420
+ export declare const MAX_HEARTBEAT_INTERVAL_MS = 300000;
421
+ export declare const RECOGNIZED_NON_PRODUCTION_ENVIRONMENTS: ReadonlySet<Environment>;
422
+ /**
423
+ * Check if the active environment is an explicitly recognized non-production environment.
424
+ * Derived strictly from canonical getEnvironment(env) per config.ts.
425
+ * Only exact 'development' and 'experiment' qualify; NODE_ENV, case variations, test/local/staging,
426
+ * and unset values fail closed to production, where ambient heartbeat overrides are strictly ignored.
427
+ */
428
+ export declare function isRecognizedNonProductionEnvironment(env?: NodeJS.ProcessEnv): boolean;
429
+ /**
430
+ * Resolve the heartbeat interval safely.
431
+ * Ambient environment variable overrides (CODEVIBE_HEARTBEAT_INTERVAL_MS) are permitted ONLY
432
+ * in explicitly recognized non-production environments. Absent or unrecognized environments
433
+ * default to production, where ambient overrides are strictly ignored.
434
+ *
435
+ * Valid intervals must be finite positive integers within [MIN_HEARTBEAT_INTERVAL_MS, MAX_HEARTBEAT_INTERVAL_MS].
436
+ * The upper bound (300_000 ms / 5 minutes) is comfortably below the 10-minute orchestration orphan sweep
437
+ * threshold (600_000 ms) and 15-minute daemon sweep threshold (900_000 ms), guaranteeing at least two
438
+ * heartbeat pulses within the sweep window before a session could ever be deemed stale.
439
+ * Any invalid, out-of-bounds, non-integer, or non-finite value safely defaults to DEFAULT_HEARTBEAT_INTERVAL_MS.
440
+ */
441
+ export declare function resolveHeartbeatIntervalMs(override?: number, env?: NodeJS.ProcessEnv): number;
417
442
  /**
418
443
  * AppSync GraphQL client with WebSocket subscriptions
419
444
  */
@@ -1,4 +1,4 @@
1
- export { AppSyncClient, AppSyncAuthenticationError, AppSyncGraphQLError, DownloadUrlResponse, } from './appsync-client';
1
+ export { AppSyncClient, AppSyncAuthenticationError, AppSyncGraphQLError, DownloadUrlResponse, resolveHeartbeatIntervalMs, DEFAULT_HEARTBEAT_INTERVAL_MS, MIN_HEARTBEAT_INTERVAL_MS, MAX_HEARTBEAT_INTERVAL_MS, isRecognizedNonProductionEnvironment, RECOGNIZED_NON_PRODUCTION_ENVIRONMENTS, } from './appsync-client';
2
2
  export { coerceAwsJsonObject } from './appsync-client';
3
3
  export type { ClassBPacketEnvelopeMeta } from './appsync-client';
4
4
  export type { TaskReviewSummary, TaskReviewSummaryRound, TaskReviewSummaryReviewer, TaskGroupStatusResult, PutContextItemInput, } from './appsync-client';
@@ -43,7 +43,7 @@ export interface Config {
43
43
  /**
44
44
  * Get environment from process.env.ENVIRONMENT, defaults to 'production'
45
45
  */
46
- export declare function getEnvironment(): Environment;
46
+ export declare function getEnvironment(env?: NodeJS.ProcessEnv): Environment;
47
47
  /**
48
48
  * Load configuration for specific environment
49
49
  * If no environment specified, uses process.env.ENVIRONMENT or defaults to 'production'