@quantiya/codevibe-claude-plugin 2.0.73 → 2.0.75
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 +18 -18
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +62 -24
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +8 -12
- package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-event-client.d.ts +3 -3
- package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-inbound-journal.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-live-connection.d.ts +6 -1
- package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-operation-journal.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/sync-workspace-outcome.d.ts +5 -3
- package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +1 -1
- package/node_modules/@quantiya/codevibe-core/dist/index.js +594 -595
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama-gemma-runner.d.ts +18 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +26 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/attachments.d.ts +8 -14
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +50 -64
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +2787 -2797
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/OrchestrationApp.d.ts +3 -1
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/decision-attempt-recovery.d.ts +2 -2
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/gate-decision-submit.d.ts +2 -2
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/git-status-summary.d.ts +5 -10
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +29 -46
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/route-browse.d.ts +4 -4
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/runtime-labels.d.ts +63 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress-relay.d.ts +9 -1
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/cache.d.ts +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/gemma-errors.d.ts +61 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/gemma-pipeline.d.ts +219 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/gemma-runner.d.ts +66 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/hosted-gemma-runner.d.ts +83 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/index.d.ts +5 -3
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-advisory.d.ts +3 -6
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-gemma.d.ts +82 -21
- package/node_modules/@quantiya/codevibe-core/dist/planner/types.d.ts +4 -4
- package/node_modules/@quantiya/codevibe-core/dist/reviewer/verdict-classifier.d.ts +18 -5
- package/node_modules/@quantiya/codevibe-core/dist/tool-activity/consolidator.d.ts +5 -1
- package/node_modules/@quantiya/codevibe-core/package.json +1 -1
- package/package.json +2 -2
- package/node_modules/@quantiya/codevibe-core/dist/planner/composite-adapter.d.ts +0 -39
- package/node_modules/@quantiya/codevibe-core/dist/planner/composite-advisory.d.ts +0 -26
- package/node_modules/@quantiya/codevibe-core/dist/planner/hosted-advisory.d.ts +0 -40
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Tier } from '../orchestration-shell/types';
|
|
2
|
-
import type { PlannerAdapter, PlannerDecision, PlannerInput, PlannerProbeResult } from './adapter';
|
|
3
|
-
import type { PlannerHealthMachine } from './health-state';
|
|
4
|
-
export interface CompositePlannerAdapterOptions {
|
|
5
|
-
localAdapter?: PlannerAdapter | null;
|
|
6
|
-
hostedAdapter: PlannerAdapter;
|
|
7
|
-
tier: Tier;
|
|
8
|
-
localRuntimeKind?: 'hosted' | 'local_gemma_qat' | 'local_unavailable';
|
|
9
|
-
localRuntimeLabel?: string;
|
|
10
|
-
hostedHealth?: PlannerHealthMachine | null;
|
|
11
|
-
recoveryProbeIntervalMs?: number;
|
|
12
|
-
onNotice?: (message: string) => void;
|
|
13
|
-
onBeforeHostedFallback?: (input: PlannerInput) => Promise<PlannerInput>;
|
|
14
|
-
}
|
|
15
|
-
export declare class CompositePlannerAdapter implements PlannerAdapter {
|
|
16
|
-
private readonly opts;
|
|
17
|
-
private activeSessionId;
|
|
18
|
-
private currentSource;
|
|
19
|
-
private recoveryTimer;
|
|
20
|
-
private readonly sourceChangeListeners;
|
|
21
|
-
private readonly recoveryIntervalMs;
|
|
22
|
-
private beforeHostedFallbackHook;
|
|
23
|
-
constructor(opts: CompositePlannerAdapterOptions);
|
|
24
|
-
setBeforeHostedFallback(hook: (input: PlannerInput) => Promise<PlannerInput>): void;
|
|
25
|
-
get activeSource(): 'local' | 'hosted';
|
|
26
|
-
get runtimeKind(): 'local_gemma_qat' | 'local_unavailable' | 'hosted';
|
|
27
|
-
get runtimeLabel(): string;
|
|
28
|
-
get suppressStructuralContextRefresh(): boolean;
|
|
29
|
-
onSourceChange(listener: (source: 'local' | 'hosted') => void): () => void;
|
|
30
|
-
private notifySourceChange;
|
|
31
|
-
private transitionToHosted;
|
|
32
|
-
private transitionToLocal;
|
|
33
|
-
private startRecoveryProbe;
|
|
34
|
-
private stopRecoveryProbe;
|
|
35
|
-
setActiveSession(sessionId: string | null): void;
|
|
36
|
-
classify(input: PlannerInput): Promise<PlannerDecision>;
|
|
37
|
-
probe(): Promise<PlannerProbeResult>;
|
|
38
|
-
dispose(): void;
|
|
39
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Tier } from '../orchestration-shell/types';
|
|
2
|
-
import type { AdvisoryOptions, AdvisoryRunner } from './local-advisory';
|
|
3
|
-
export interface CompositeAdvisoryRunnerOptions {
|
|
4
|
-
localRunner?: AdvisoryRunner | null;
|
|
5
|
-
hostedRunner: AdvisoryRunner;
|
|
6
|
-
tier: Tier;
|
|
7
|
-
onNotice?: (message: string) => void;
|
|
8
|
-
onFallbackToHosted?: (error: Error) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* CompositeAdvisoryRunner coordinates local and hosted advisory execution:
|
|
12
|
-
* - Free Tier Invariant: strictly isolates Free tier from cloud inference ($0 marginal cost).
|
|
13
|
-
* - Local-First Preference: routes natural language turns / browse to local Gemma when healthy.
|
|
14
|
-
* - Dynamic Failover: if local Gemma fails (Ollama down, crash, OOM), seamlessly falls back
|
|
15
|
-
* to hosted Bedrock Gemma for Pro/Max users without interrupting the session.
|
|
16
|
-
*/
|
|
17
|
-
export declare class CompositeAdvisoryRunner implements AdvisoryRunner {
|
|
18
|
-
private readonly opts;
|
|
19
|
-
private localHealthy;
|
|
20
|
-
constructor(opts: CompositeAdvisoryRunnerOptions);
|
|
21
|
-
get runtimeLabel(): string;
|
|
22
|
-
get providerKind(): 'local' | 'hosted';
|
|
23
|
-
generateAdvisory(promptText: string, options?: AdvisoryOptions): Promise<string>;
|
|
24
|
-
warm(): Promise<boolean>;
|
|
25
|
-
unload(): Promise<boolean>;
|
|
26
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { AdvisoryOptions, AdvisoryRunner } from './local-advisory';
|
|
2
|
-
import type { PlannerCryptoBridge, SessionKeyResolver } from './client';
|
|
3
|
-
export interface HostedAdvisoryTransport {
|
|
4
|
-
generatePlannerAdvisory(input: {
|
|
5
|
-
sessionId: string;
|
|
6
|
-
prompt: string;
|
|
7
|
-
images?: string[];
|
|
8
|
-
maxTokens?: number;
|
|
9
|
-
temperature?: number;
|
|
10
|
-
}): Promise<{
|
|
11
|
-
advisoryText: string;
|
|
12
|
-
serverLatencyMs: number;
|
|
13
|
-
providerUsed: string;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
export interface HostedGemmaAdvisoryRunnerDeps {
|
|
17
|
-
transport: HostedAdvisoryTransport;
|
|
18
|
-
crypto: PlannerCryptoBridge;
|
|
19
|
-
sessionKeyResolver: SessionKeyResolver;
|
|
20
|
-
activeSessionIdHolder: {
|
|
21
|
-
value: string | null;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* HostedGemmaAdvisoryRunner executes advisory text generation (browse synthesis,
|
|
26
|
-
* brainstorm, etc.) against Google Gemma 3 12B on AWS Bedrock via AppSync planner proxy.
|
|
27
|
-
*
|
|
28
|
-
* Wire payload is encrypted in transit under the session key via AES-256-GCM to
|
|
29
|
-
* the planner proxy Lambda in us-east-1, and decrypted server-side for AWS Bedrock Gemma 3 12B.
|
|
30
|
-
* Multimodal image attachments (options.images) are encrypted under the session key.
|
|
31
|
-
*/
|
|
32
|
-
export declare class HostedGemmaAdvisoryRunner implements AdvisoryRunner {
|
|
33
|
-
private readonly deps;
|
|
34
|
-
readonly runtimeLabel = "Hosted Gemma (AWS Bedrock)";
|
|
35
|
-
readonly providerKind: "hosted";
|
|
36
|
-
constructor(deps: HostedGemmaAdvisoryRunnerDeps);
|
|
37
|
-
generateAdvisory(promptText: string, options?: AdvisoryOptions): Promise<string>;
|
|
38
|
-
warm(): Promise<boolean>;
|
|
39
|
-
unload(): Promise<boolean>;
|
|
40
|
-
}
|