@quantiya/codevibe-codex-plugin 2.0.61 → 2.0.62
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/node_modules/@quantiya/codevibe-core/dist/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.js +535 -526
- package/node_modules/@quantiya/codevibe-core/dist/local-model/ollama.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/local-model/runtime.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +1219 -43
- package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/git-status-summary.d.ts +52 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-advisory.d.ts +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/planner/local-gemma.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/package.json +1 -1
- package/package.json +2 -2
package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/git-status-summary.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AdvisoryRunner } from '../planner/local-advisory';
|
|
1
2
|
export interface GitExecResult {
|
|
2
3
|
stdout: string;
|
|
3
4
|
stderr?: string;
|
|
@@ -12,9 +13,60 @@ export interface ExecuteGitStatusSummaryOptions {
|
|
|
12
13
|
cwd: string;
|
|
13
14
|
prompt: string;
|
|
14
15
|
hasActiveTask: boolean;
|
|
16
|
+
advisoryRunner?: AdvisoryRunner;
|
|
15
17
|
execFileFn?: GitExecFileFn;
|
|
16
18
|
}
|
|
19
|
+
export interface GitStatusParsedIntent {
|
|
20
|
+
isGitQuery: boolean;
|
|
21
|
+
asksStatus: boolean;
|
|
22
|
+
asksDiff: boolean;
|
|
23
|
+
asksLog: boolean;
|
|
24
|
+
asksBranch: boolean;
|
|
25
|
+
showTarget: string | null;
|
|
26
|
+
targetRepo: string | null;
|
|
27
|
+
}
|
|
17
28
|
export declare const GIT_QUERY_PATTERN: RegExp;
|
|
29
|
+
export declare const TASK_OR_AGENT_STATUS_PATTERN: RegExp;
|
|
30
|
+
export declare const SINGULAR_COMMIT_INSPECTION_PATTERN: RegExp;
|
|
31
|
+
export declare const COMMIT_DIFF_PATTERN: RegExp;
|
|
32
|
+
export declare const CANDIDATE_GIT_TERMS_PATTERN: RegExp;
|
|
33
|
+
export declare const SAFE_REF_PATTERN: RegExp;
|
|
34
|
+
export declare const SAFE_REPO_NAME_PATTERN: RegExp;
|
|
35
|
+
export declare function stripSentencePunctuation(token: string, options?: {
|
|
36
|
+
preserveRangeDots?: boolean;
|
|
37
|
+
}): string;
|
|
38
|
+
export declare function extractBranchOrRefTarget(prompt: string): string | undefined;
|
|
39
|
+
export interface ComparisonBaseRefInfo {
|
|
40
|
+
ref: string;
|
|
41
|
+
isExplicit: boolean;
|
|
42
|
+
span?: {
|
|
43
|
+
start: number;
|
|
44
|
+
end: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare function hasRefSyntax(ref: string): boolean;
|
|
48
|
+
export declare function extractComparisonBaseRefInfo(prompt: string, options?: {
|
|
49
|
+
includeSpan?: boolean;
|
|
50
|
+
}): ComparisonBaseRefInfo | undefined;
|
|
51
|
+
export declare function extractComparisonBaseRef(prompt: string): string | undefined;
|
|
52
|
+
export declare function isConceptualGitQuestion(prompt: string): boolean;
|
|
53
|
+
export declare function isStagedDiffIntent(prompt: string): boolean;
|
|
54
|
+
export declare function isQualifiedAdvisoryRunner(runner?: AdvisoryRunner): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Resolves the preferred advisory runner for intent classification per Pure LLM policy:
|
|
57
|
+
* "If there is local LLM, use it over hosted LLM".
|
|
58
|
+
*/
|
|
59
|
+
export declare function resolvePreferredAdvisoryRunner(runner?: AdvisoryRunner): AdvisoryRunner | null;
|
|
60
|
+
export declare function renderLocalGemmaGitStatusQueryPrompt(args: {
|
|
61
|
+
userPrompt: string;
|
|
62
|
+
}): string;
|
|
63
|
+
export declare function parseGemmaGitStatusResponse(raw: string): GitStatusParsedIntent | null;
|
|
64
|
+
export declare function parseGitStatusQueryWithGemma(runner: AdvisoryRunner, prompt: string, timeoutMs?: number): Promise<GitStatusParsedIntent | null>;
|
|
65
|
+
export declare function parseGitStatusQuerySemantic(prompt: string): GitStatusParsedIntent;
|
|
66
|
+
export declare function resolveGitStatusIntent(options: {
|
|
67
|
+
prompt: string;
|
|
68
|
+
advisoryRunner?: AdvisoryRunner;
|
|
69
|
+
}): Promise<GitStatusParsedIntent>;
|
|
18
70
|
/**
|
|
19
71
|
* Safely format code blocks using collision-safe backtick fences (R2-F3).
|
|
20
72
|
* If the content contains triple backticks or more, emits a fence with length > max backticks in content.
|
|
@@ -43,6 +43,15 @@ export interface AdvisoryOptions {
|
|
|
43
43
|
* Temperature hint for advisory generation.
|
|
44
44
|
*/
|
|
45
45
|
temperature?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Optional timeout budget in milliseconds for advisory generation.
|
|
48
|
+
* Ensures internal HTTP requests destroy sockets on timeout to cancel generation.
|
|
49
|
+
*/
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Optional AbortSignal to cancel advisory generation in flight.
|
|
53
|
+
*/
|
|
54
|
+
signal?: AbortSignal;
|
|
46
55
|
}
|
|
47
56
|
/** Backward-compatibility aliases for local runner consumers */
|
|
48
57
|
export type LocalGemmaAdvisoryRunner = AdvisoryRunner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantiya/codevibe-codex-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.62",
|
|
4
4
|
"description": "Control OpenAI Codex CLI 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
|
"codevibe": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=22.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@quantiya/codevibe-core": "^2.0.
|
|
50
|
+
"@quantiya/codevibe-core": "^2.0.55",
|
|
51
51
|
"@quantiya/quorum-core": "^1.0.1",
|
|
52
52
|
"chokidar": "^4.0.0",
|
|
53
53
|
"dotenv": "^16.6.1",
|