@mobb.ai/cli 1.4.50 → 1.4.56
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/README.md +13 -208
- package/bin/mobbdev.js +10 -0
- package/lib/binary.js +52 -0
- package/package.json +21 -160
- package/.env +0 -10
- package/LICENSE +0 -21
- package/bin/cli.mjs +0 -2
- package/dist/args/commands/upload_ai_blame.d.mts +0 -164
- package/dist/args/commands/upload_ai_blame.mjs +0 -6614
- package/dist/hash_search/index.d.mts +0 -10
- package/dist/hash_search/index.mjs +0 -112
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +0 -29052
- package/src/features/codeium_intellij/proto/buf/validate/validate.proto +0 -504
- package/src/features/codeium_intellij/proto/exa/auto_cascade_common_pb/auto_cascade_common.proto +0 -81
- package/src/features/codeium_intellij/proto/exa/bug_checker_pb/bug_checker.proto +0 -24
- package/src/features/codeium_intellij/proto/exa/cascade_plugins_pb/cascade_plugins.proto +0 -108
- package/src/features/codeium_intellij/proto/exa/chat_client_server_pb/chat_client_server.proto +0 -56
- package/src/features/codeium_intellij/proto/exa/chat_pb/chat.proto +0 -457
- package/src/features/codeium_intellij/proto/exa/code_edit/code_edit_pb/code_edit.proto +0 -191
- package/src/features/codeium_intellij/proto/exa/codeium_common_pb/codeium_common.proto +0 -3783
- package/src/features/codeium_intellij/proto/exa/context_module_pb/context_module.proto +0 -172
- package/src/features/codeium_intellij/proto/exa/cortex_pb/cortex.proto +0 -3604
- package/src/features/codeium_intellij/proto/exa/diff_action_pb/diff_action.proto +0 -73
- package/src/features/codeium_intellij/proto/exa/extension_server_pb/extension_server.proto +0 -565
- package/src/features/codeium_intellij/proto/exa/index_pb/index.proto +0 -474
- package/src/features/codeium_intellij/proto/exa/knowledge_base_pb/knowledge_base.proto +0 -149
- package/src/features/codeium_intellij/proto/exa/language_server_pb/language_server.proto +0 -2504
- package/src/features/codeium_intellij/proto/exa/opensearch_clients_pb/opensearch_clients.proto +0 -505
- package/src/features/codeium_intellij/proto/exa/product_analytics_pb/product_analytics.proto +0 -31
- package/src/features/codeium_intellij/proto/exa/reactive_component_pb/reactive_component.proto +0 -104
- package/src/features/codeium_intellij/proto/exa/seat_management_pb/seat_management.proto +0 -2349
- package/src/post_install/binary.mjs +0 -89
- package/src/post_install/constants.mjs +0 -2
- package/src/post_install/cx_install.mjs +0 -72
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import * as Yargs from 'yargs';
|
|
2
|
-
import z from 'zod';
|
|
3
|
-
|
|
4
|
-
declare enum AiBlameInferenceType {
|
|
5
|
-
Chat = "CHAT",
|
|
6
|
-
HumanEdit = "HUMAN_EDIT",
|
|
7
|
-
TabAutocomplete = "TAB_AUTOCOMPLETE"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type SanitizationCounts = {
|
|
11
|
-
detections: {
|
|
12
|
-
total: number;
|
|
13
|
-
high: number;
|
|
14
|
-
medium: number;
|
|
15
|
-
low: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
type Logger = {
|
|
20
|
-
info: (msg: string, data?: unknown) => void;
|
|
21
|
-
error: (msg: string, data?: unknown) => void;
|
|
22
|
-
};
|
|
23
|
-
declare const PromptItemZ: z.ZodObject<{
|
|
24
|
-
type: z.ZodEnum<{
|
|
25
|
-
USER_PROMPT: "USER_PROMPT";
|
|
26
|
-
AI_RESPONSE: "AI_RESPONSE";
|
|
27
|
-
TOOL_EXECUTION: "TOOL_EXECUTION";
|
|
28
|
-
AI_THINKING: "AI_THINKING";
|
|
29
|
-
MCP_TOOL_CALL: "MCP_TOOL_CALL";
|
|
30
|
-
}>;
|
|
31
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
-
relativePath: z.ZodString;
|
|
33
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
}, z.core.$strip>>>;
|
|
35
|
-
tokens: z.ZodOptional<z.ZodObject<{
|
|
36
|
-
inputCount: z.ZodNumber;
|
|
37
|
-
outputCount: z.ZodNumber;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
text: z.ZodOptional<z.ZodString>;
|
|
40
|
-
date: z.ZodOptional<z.ZodDate>;
|
|
41
|
-
tool: z.ZodOptional<z.ZodObject<{
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
parameters: z.ZodString;
|
|
44
|
-
result: z.ZodString;
|
|
45
|
-
rawArguments: z.ZodOptional<z.ZodString>;
|
|
46
|
-
accepted: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
mcpServer: z.ZodOptional<z.ZodString>;
|
|
48
|
-
mcpToolName: z.ZodOptional<z.ZodString>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
type PromptItem = z.infer<typeof PromptItemZ>;
|
|
52
|
-
declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
53
|
-
type: z.ZodEnum<{
|
|
54
|
-
USER_PROMPT: "USER_PROMPT";
|
|
55
|
-
AI_RESPONSE: "AI_RESPONSE";
|
|
56
|
-
TOOL_EXECUTION: "TOOL_EXECUTION";
|
|
57
|
-
AI_THINKING: "AI_THINKING";
|
|
58
|
-
MCP_TOOL_CALL: "MCP_TOOL_CALL";
|
|
59
|
-
}>;
|
|
60
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
-
relativePath: z.ZodString;
|
|
62
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
}, z.core.$strip>>>;
|
|
64
|
-
tokens: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
inputCount: z.ZodNumber;
|
|
66
|
-
outputCount: z.ZodNumber;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
text: z.ZodOptional<z.ZodString>;
|
|
69
|
-
date: z.ZodOptional<z.ZodDate>;
|
|
70
|
-
tool: z.ZodOptional<z.ZodObject<{
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
parameters: z.ZodString;
|
|
73
|
-
result: z.ZodString;
|
|
74
|
-
rawArguments: z.ZodOptional<z.ZodString>;
|
|
75
|
-
accepted: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
mcpServer: z.ZodOptional<z.ZodString>;
|
|
77
|
-
mcpToolName: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>>;
|
|
79
|
-
}, z.core.$strip>>;
|
|
80
|
-
type PromptItemArray = z.infer<typeof PromptItemArrayZ>;
|
|
81
|
-
type RepoState = {
|
|
82
|
-
repositoryUrl: string | null;
|
|
83
|
-
branch: string | null;
|
|
84
|
-
commitSha: string | null;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Reads git state for tracy event attribution: repo URL, current branch, and
|
|
88
|
-
* HEAD commit SHA. Each field is read fresh — no caching across calls. Detached
|
|
89
|
-
* HEAD (rebase, bisect) returns `branch: null` rather than the literal string
|
|
90
|
-
* "HEAD" that `git rev-parse --abbrev-ref HEAD` would produce.
|
|
91
|
-
*
|
|
92
|
-
* Both the CLI daemon and the VS Code extension flow through the shared
|
|
93
|
-
* `GitService.getCurrentRepoState()` so detached-HEAD handling and SHA
|
|
94
|
-
* normalization stay in lockstep across the two clients.
|
|
95
|
-
*
|
|
96
|
-
* The repository URL is the canonical form (parseScmURL().canonicalUrl) for any
|
|
97
|
-
* SCM host, including self-hosted / enterprise remotes (scmType "Unknown"); only
|
|
98
|
-
* an absent or genuinely unparseable remote resolves to `repositoryUrl: null`.
|
|
99
|
-
*
|
|
100
|
-
* Never throws — a non-existent dir, missing git binary, or absent/unparseable
|
|
101
|
-
* remote resolves to null so the daemon hot path can rely on a value.
|
|
102
|
-
*/
|
|
103
|
-
declare function readRepoState(workingDir?: string): Promise<RepoState>;
|
|
104
|
-
/**
|
|
105
|
-
* Gets the canonical remote repository URL for the working directory's repo, for
|
|
106
|
-
* any SCM host (GitHub, GitLab, Azure DevOps, Bitbucket, and self-hosted /
|
|
107
|
-
* enterprise). Returns null when there is no remote or it can't be parsed.
|
|
108
|
-
*/
|
|
109
|
-
declare function getRepositoryUrl(workingDir?: string): Promise<string | null>;
|
|
110
|
-
/**
|
|
111
|
-
* Get system information for tracking inference source.
|
|
112
|
-
* Works cross-platform (Windows, macOS, Linux).
|
|
113
|
-
* Handles errors gracefully for containerized environments where user info may not be available.
|
|
114
|
-
*/
|
|
115
|
-
declare function getSystemInfo(): {
|
|
116
|
-
computerName: string;
|
|
117
|
-
userName: string | undefined;
|
|
118
|
-
};
|
|
119
|
-
type UploadAiBlameOptions = {
|
|
120
|
-
prompt: string[];
|
|
121
|
-
inference: string[];
|
|
122
|
-
aiResponseAt?: string[];
|
|
123
|
-
model?: string[];
|
|
124
|
-
toolName?: string[];
|
|
125
|
-
blameType?: AiBlameInferenceType[];
|
|
126
|
-
sessionId?: string[];
|
|
127
|
-
'ai-response-at'?: string[];
|
|
128
|
-
'tool-name'?: string[];
|
|
129
|
-
'blame-type'?: AiBlameInferenceType[];
|
|
130
|
-
'session-id'?: string[];
|
|
131
|
-
};
|
|
132
|
-
declare function uploadAiBlameBuilder(args: Yargs.Argv<unknown>): Yargs.Argv<UploadAiBlameOptions>;
|
|
133
|
-
type UploadAiBlameResult = {
|
|
134
|
-
promptsCounts: SanitizationCounts;
|
|
135
|
-
inferenceCounts: SanitizationCounts;
|
|
136
|
-
promptsUUID?: string;
|
|
137
|
-
inferenceUUID?: string;
|
|
138
|
-
sanitizationDurationMs?: number;
|
|
139
|
-
};
|
|
140
|
-
declare function uploadAiBlameHandlerFromExtension(args: {
|
|
141
|
-
prompts: PromptItemArray;
|
|
142
|
-
inference: string;
|
|
143
|
-
model: string;
|
|
144
|
-
tool: string;
|
|
145
|
-
responseTime: string;
|
|
146
|
-
blameType?: AiBlameInferenceType;
|
|
147
|
-
sessionId?: string;
|
|
148
|
-
apiUrl?: string;
|
|
149
|
-
webAppUrl?: string;
|
|
150
|
-
repositoryUrl?: string | null;
|
|
151
|
-
sanitize?: boolean;
|
|
152
|
-
}): Promise<UploadAiBlameResult>;
|
|
153
|
-
type UploadAiBlameHandlerOptions = {
|
|
154
|
-
args: UploadAiBlameOptions;
|
|
155
|
-
exitOnError?: boolean;
|
|
156
|
-
apiUrl?: string;
|
|
157
|
-
webAppUrl?: string;
|
|
158
|
-
logger?: Logger;
|
|
159
|
-
repositoryUrl?: string | null;
|
|
160
|
-
};
|
|
161
|
-
declare function uploadAiBlameHandler(options: UploadAiBlameHandlerOptions): Promise<void>;
|
|
162
|
-
declare function uploadAiBlameCommandHandler(args: UploadAiBlameOptions): Promise<void>;
|
|
163
|
-
|
|
164
|
-
export { type PromptItem, type PromptItemArray, type RepoState, type UploadAiBlameOptions, type UploadAiBlameResult, getRepositoryUrl, getSystemInfo, readRepoState, uploadAiBlameBuilder, uploadAiBlameCommandHandler, uploadAiBlameHandler, uploadAiBlameHandlerFromExtension };
|