mobbdev 1.2.54 → 1.2.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/.env +3 -2
- package/dist/args/commands/upload_ai_blame.d.mts +1 -1
- package/dist/args/commands/upload_ai_blame.mjs +8 -9
- package/dist/index.mjs +857 -410
- package/package.json +2 -1
package/.env
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# production@
|
|
1
|
+
# production@v21
|
|
2
2
|
API_URL="https://api.mobb.ai/v1/graphql"
|
|
3
3
|
WEB_APP_URL="https://app.mobb.ai"
|
|
4
4
|
GITLAB_API_TOKEN=""
|
|
@@ -6,4 +6,5 @@ GITHUB_API_TOKEN=""
|
|
|
6
6
|
ADO_TEST_ACCESS_TOKEN=""
|
|
7
7
|
HASURA_ACCESS_KEY=""
|
|
8
8
|
LOCAL_GRAPHQL_ENDPOINT=""
|
|
9
|
-
GIT_PROXY_HOST="http://tinyproxy:8888"
|
|
9
|
+
GIT_PROXY_HOST="http://tinyproxy:8888"
|
|
10
|
+
DD_RUM_TOKEN="pubf59c0182545bfb4c299175119f1abf9b"
|
|
@@ -210,7 +210,7 @@ type PromptItemArray = z.infer<typeof PromptItemArrayZ>;
|
|
|
210
210
|
* Gets the normalized GitHub repository URL from the current working directory.
|
|
211
211
|
* Returns null if not in a git repository or if not a GitHub repository.
|
|
212
212
|
*/
|
|
213
|
-
declare function getRepositoryUrl(): Promise<string | null>;
|
|
213
|
+
declare function getRepositoryUrl(workingDir?: string): Promise<string | null>;
|
|
214
214
|
/**
|
|
215
215
|
* Get system information for tracking inference source.
|
|
216
216
|
* Works cross-platform (Windows, macOS, Linux).
|
|
@@ -7388,22 +7388,21 @@ function buildLoginUrl(baseUrl, loginId, hostname, context) {
|
|
|
7388
7388
|
|
|
7389
7389
|
// src/utils/ConfigStoreService.ts
|
|
7390
7390
|
import Configstore from "configstore";
|
|
7391
|
-
function
|
|
7391
|
+
function getSanitizedDomain() {
|
|
7392
7392
|
const API_URL2 = process.env["API_URL"] || DEFAULT_API_URL;
|
|
7393
7393
|
let domain = "";
|
|
7394
7394
|
try {
|
|
7395
7395
|
const url = new URL(API_URL2);
|
|
7396
7396
|
domain = url.hostname;
|
|
7397
|
-
} catch
|
|
7397
|
+
} catch {
|
|
7398
7398
|
domain = API_URL2.replace(/^https?:\/\//, "").replace(/\/.*$/, "").replace(/:\d+$/, "");
|
|
7399
7399
|
}
|
|
7400
|
-
|
|
7401
|
-
return new Configstore(`mobbdev-${sanitizedDomain}`, defaultValues);
|
|
7400
|
+
return domain.replace(/\./g, "_");
|
|
7402
7401
|
}
|
|
7403
|
-
function
|
|
7404
|
-
return
|
|
7402
|
+
function createConfigStore(defaultValues = { apiToken: "" }) {
|
|
7403
|
+
return new Configstore(`mobbdev-${getSanitizedDomain()}`, defaultValues);
|
|
7405
7404
|
}
|
|
7406
|
-
var configStore =
|
|
7405
|
+
var configStore = createConfigStore();
|
|
7407
7406
|
|
|
7408
7407
|
// src/commands/AuthManager.ts
|
|
7409
7408
|
var debug10 = Debug9("mobbdev:auth");
|
|
@@ -7875,9 +7874,9 @@ var PromptItemZ = z27.object({
|
|
|
7875
7874
|
}).optional()
|
|
7876
7875
|
});
|
|
7877
7876
|
var PromptItemArrayZ = z27.array(PromptItemZ);
|
|
7878
|
-
async function getRepositoryUrl() {
|
|
7877
|
+
async function getRepositoryUrl(workingDir) {
|
|
7879
7878
|
try {
|
|
7880
|
-
const gitService = new GitService(process.cwd());
|
|
7879
|
+
const gitService = new GitService(workingDir ?? process.cwd());
|
|
7881
7880
|
const isRepo = await gitService.isGitRepository();
|
|
7882
7881
|
if (!isRepo) {
|
|
7883
7882
|
return null;
|