@quantiya/codevibe-claude-plugin 2.0.23 → 2.0.25
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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/server.js +7 -7
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +25 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/e1/__tests__/prompt-publication.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/e1/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/e1/prompt-publication.d.ts +14 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/index.js +289 -289
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/__tests__/quorum-loop-outcome-recency.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +388 -121
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +24 -0
- package/node_modules/@quantiya/codevibe-core/dist/ordinal-presentation.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/dist/ordinal-presentation.test.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/package.json +1 -1
- package/node_modules/fs-ext/build/Makefile +1 -1
- package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
- package/package.json +2 -2
- package/node_modules/@iarna/toml/CHANGELOG.md +0 -278
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/cross-spawn/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/deep-extend/CHANGELOG.md +0 -46
- package/node_modules/es-toolkit/CHANGELOG.md +0 -1018
- package/node_modules/es-toolkit/src/compat/_internal/Equals.d.ts +0 -1
- package/node_modules/es-toolkit/src/compat/_internal/IsWritable.d.ts +0 -3
- package/node_modules/es-toolkit/src/compat/_internal/MutableList.d.ts +0 -4
- package/node_modules/es-toolkit/src/compat/_internal/RejectReadonly.d.ts +0 -4
- package/node_modules/keytar/build/Release/keytar.node +0 -0
|
@@ -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'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PromptRaiseRecord } from './prompt-raise';
|
|
2
|
+
/** Local publication state, never part of the backend prompt identity. */
|
|
3
|
+
export declare class PromptPublicationTracker {
|
|
4
|
+
private readonly active;
|
|
5
|
+
isPublishing(promptId: string): boolean;
|
|
6
|
+
run<T>(promptId: string, publish: () => Promise<T>): Promise<T>;
|
|
7
|
+
waitFor(promptId: string): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function isOpenPromptRaise<T>(entry: T, current: T | undefined, resolving?: boolean): boolean;
|
|
10
|
+
/** A missing first write is not a lost prompt; incomplete options are not suppression. */
|
|
11
|
+
export declare function canRecoverPromptRaise(entry: {
|
|
12
|
+
record: PromptRaiseRecord;
|
|
13
|
+
contentPlain?: string;
|
|
14
|
+
}, publishing?: boolean): boolean;
|
|
@@ -3,7 +3,7 @@ export { CryptoService, cryptoService, CryptoError, ENCRYPTION_VERSION } from '.
|
|
|
3
3
|
export { encryptForEmit } from './crypto';
|
|
4
4
|
export type { EncryptedEmitPayload } from './crypto';
|
|
5
5
|
export { E1_PROMPT_ID_DOMAIN, deriveOpenPromptId, mintOwnerToken } from './crypto';
|
|
6
|
-
export { newPromptRaise, raiseFieldsFromRecord } from './e1';
|
|
6
|
+
export { newPromptRaise, raiseFieldsFromRecord, PromptPublicationTracker, canRecoverPromptRaise, isOpenPromptRaise } from './e1';
|
|
7
7
|
export type { E1ProducerKind, PromptRaiseRecord, E1RaiseFields } from './e1';
|
|
8
8
|
export { installDaemonProcessGuards, isNetworkClass } from './daemon';
|
|
9
9
|
export type { DaemonGuardLogger, DaemonProcessGuardOptions } from './daemon';
|