zephyr-agent 0.0.0-canary-20250424120014 → 0.0.0-canary-20250508125404
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/dist/lib/build-context/git-provider-utils.d.ts +11 -0
- package/dist/lib/build-context/git-provider-utils.js +65 -0
- package/dist/lib/build-context/git-provider-utils.js.map +1 -0
- package/dist/lib/build-context/ze-util-get-git-info.js +14 -14
- package/dist/lib/build-context/ze-util-get-git-info.js.map +1 -1
- package/dist/package.json +29 -15
- package/package.json +27 -13
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git provider detection and information extraction. In Zephyr, application_uid is
|
|
3
|
+
* created as: [app_name, git_repo, git_org].join('.') where app_name comes from
|
|
4
|
+
* package.json name field, not from the git URL.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getGitProviderInfo(gitUrl: string): {
|
|
7
|
+
provider: string;
|
|
8
|
+
owner: string;
|
|
9
|
+
project: string;
|
|
10
|
+
isEnterprise: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGitProviderInfo = getGitProviderInfo;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const git_url_parse_1 = tslib_1.__importDefault(require("git-url-parse"));
|
|
6
|
+
// Standard Git provider domains mapping
|
|
7
|
+
const STANDARD_DOMAINS = {
|
|
8
|
+
'github.com': 'github',
|
|
9
|
+
'gitlab.com': 'gitlab',
|
|
10
|
+
'bitbucket.org': 'bitbucket',
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Git provider detection and information extraction. In Zephyr, application_uid is
|
|
14
|
+
* created as: [app_name, git_repo, git_org].join('.') where app_name comes from
|
|
15
|
+
* package.json name field, not from the git URL.
|
|
16
|
+
*/
|
|
17
|
+
function getGitProviderInfo(gitUrl) {
|
|
18
|
+
var _a;
|
|
19
|
+
if (!gitUrl) {
|
|
20
|
+
throw new Error('Git URL is required');
|
|
21
|
+
}
|
|
22
|
+
const parsed = (0, git_url_parse_1.default)(gitUrl);
|
|
23
|
+
const resource = parsed.resource.toLowerCase();
|
|
24
|
+
// Determine provider type and enterprise status from resource domain
|
|
25
|
+
const provider = (_a = STANDARD_DOMAINS[resource]) !== null && _a !== void 0 ? _a : 'custom';
|
|
26
|
+
const isEnterprise = provider === 'custom';
|
|
27
|
+
// Extract owner based on provider and enterprise status
|
|
28
|
+
const owner = isEnterprise
|
|
29
|
+
? extractEnterpriseOwner(parsed)
|
|
30
|
+
: extractStandardOwner(parsed, provider);
|
|
31
|
+
// Extract project name
|
|
32
|
+
const project = extractProjectName(parsed, provider, isEnterprise);
|
|
33
|
+
return { provider, owner, project, isEnterprise };
|
|
34
|
+
}
|
|
35
|
+
/** Extracts organization name from enterprise domain */
|
|
36
|
+
function extractEnterpriseOwner(parsed) {
|
|
37
|
+
const domainParts = parsed.resource.split('.');
|
|
38
|
+
// For domains like gitlab.company.com, use company.com as the base
|
|
39
|
+
const baseDomain = domainParts.length > 2 ? domainParts.slice(1).join('.') : parsed.resource;
|
|
40
|
+
// Replace dots with hyphens
|
|
41
|
+
return baseDomain.replace(/\./g, '-').toLowerCase();
|
|
42
|
+
}
|
|
43
|
+
/** Extracts owner from standard domain providers with special handling */
|
|
44
|
+
function extractStandardOwner(parsed, provider) {
|
|
45
|
+
const rawOwner = parsed.owner.toLowerCase();
|
|
46
|
+
// For GitLab and Bitbucket with subgroups, extract just the first part as the owner
|
|
47
|
+
if ((provider === 'gitlab' || provider === 'bitbucket') && rawOwner.includes('/')) {
|
|
48
|
+
return rawOwner.split('/')[0];
|
|
49
|
+
}
|
|
50
|
+
return rawOwner;
|
|
51
|
+
}
|
|
52
|
+
/** Extracts project name based on provider and URL structure */
|
|
53
|
+
function extractProjectName(parsed, provider, isEnterprise) {
|
|
54
|
+
// Special handling for self-hosted GitLab with deep subgroups
|
|
55
|
+
if (isEnterprise && provider === 'gitlab' && parsed.pathname) {
|
|
56
|
+
const pathParts = parsed.pathname.split('/').filter(Boolean);
|
|
57
|
+
// For deep subgroup paths in self-hosted GitLab, use the last part
|
|
58
|
+
if (pathParts.length > 2) {
|
|
59
|
+
return pathParts[pathParts.length - 1].replace('.git', '').toLowerCase();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// For all other cases, use the name property directly
|
|
63
|
+
return parsed.name.toLowerCase();
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=git-provider-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-provider-utils.js","sourceRoot":"","sources":["../../../src/lib/build-context/git-provider-utils.ts"],"names":[],"mappings":";;AAcA,gDA0BC;;AAxCD,0EAAwC;AAExC,wCAAwC;AACxC,MAAM,gBAAgB,GAA2B;IAC/C,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,QAAQ;IACtB,eAAe,EAAE,WAAW;CAC7B,CAAC;AAEF;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,MAAc;;IAM/C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,MAAM,GAAG,IAAA,uBAAW,EAAC,MAAM,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IAE/C,qEAAqE;IACrE,MAAM,QAAQ,GAAG,MAAA,gBAAgB,CAAC,QAAQ,CAAC,mCAAI,QAAQ,CAAC;IACxD,MAAM,YAAY,GAAG,QAAQ,KAAK,QAAQ,CAAC;IAE3C,wDAAwD;IACxD,MAAM,KAAK,GAAG,YAAY;QACxB,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE3C,uBAAu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,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7D,mEAAmE;QACnE,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzB,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,sDAAsD;IACtD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getGitInfo = getGitInfo;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const git_url_parse_1 = tslib_1.__importDefault(require("git-url-parse"));
|
|
6
5
|
const is_ci_1 = tslib_1.__importDefault(require("is-ci"));
|
|
7
6
|
const node_child_process_1 = tslib_1.__importDefault(require("node:child_process"));
|
|
8
7
|
const node_crypto_1 = require("node:crypto");
|
|
@@ -10,6 +9,7 @@ const node_util_1 = require("node:util");
|
|
|
10
9
|
const errors_1 = require("../errors");
|
|
11
10
|
const logging_1 = require("../logging");
|
|
12
11
|
const secret_token_1 = require("../node-persist/secret-token");
|
|
12
|
+
const git_provider_utils_1 = require("./git-provider-utils");
|
|
13
13
|
const exec = (0, node_util_1.promisify)(node_child_process_1.default.exec);
|
|
14
14
|
/** Loads the git information from the current repository. */
|
|
15
15
|
async function getGitInfo() {
|
|
@@ -74,8 +74,8 @@ async function loadGitInfo(hasSecretToken) {
|
|
|
74
74
|
/**
|
|
75
75
|
* Parses the git url using the `git-url-parse` package.
|
|
76
76
|
*
|
|
77
|
-
* This package
|
|
78
|
-
*
|
|
77
|
+
* This package differentiates CI providers and handles git info from various platforms
|
|
78
|
+
* like GitHub, GitLab, Bitbucket, and custom git deployments.
|
|
79
79
|
*/
|
|
80
80
|
function parseGitUrl(remoteOrigin, stdout) {
|
|
81
81
|
if (!remoteOrigin) {
|
|
@@ -83,9 +83,18 @@ function parseGitUrl(remoteOrigin, stdout) {
|
|
|
83
83
|
data: { stdout },
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
let parsed;
|
|
87
86
|
try {
|
|
88
|
-
|
|
87
|
+
const gitInfo = (0, git_provider_utils_1.getGitProviderInfo)(remoteOrigin);
|
|
88
|
+
(0, logging_1.ze_log)(`Git provider detected: ${gitInfo.provider}`, {
|
|
89
|
+
provider: gitInfo.provider,
|
|
90
|
+
owner: gitInfo.owner,
|
|
91
|
+
project: gitInfo.project,
|
|
92
|
+
isEnterprise: gitInfo.isEnterprise,
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
org: gitInfo.owner,
|
|
96
|
+
project: gitInfo.project,
|
|
97
|
+
};
|
|
89
98
|
}
|
|
90
99
|
catch (cause) {
|
|
91
100
|
throw new errors_1.ZephyrError(errors_1.ZeErrors.ERR_NO_GIT_INFO, {
|
|
@@ -94,14 +103,5 @@ function parseGitUrl(remoteOrigin, stdout) {
|
|
|
94
103
|
data: { stdout },
|
|
95
104
|
});
|
|
96
105
|
}
|
|
97
|
-
if (!parsed.owner || !parsed.name) {
|
|
98
|
-
throw new errors_1.ZephyrError(errors_1.ZeErrors.ERR_GIT_REMOTE_ORIGIN, {
|
|
99
|
-
data: { stdout },
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
org: parsed.owner.toLocaleLowerCase(),
|
|
104
|
-
project: parsed.name.toLocaleLowerCase(),
|
|
105
|
-
};
|
|
106
106
|
}
|
|
107
107
|
//# sourceMappingURL=ze-util-get-git-info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ze-util-get-git-info.js","sourceRoot":"","sources":["../../../src/lib/build-context/ze-util-get-git-info.ts"],"names":[],"mappings":";;AAkBA,gCAsBC;;AAxCD,
|
|
1
|
+
{"version":3,"file":"ze-util-get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AACH,SAAS,WAAW,CAAC,YAAoB,EAAE,MAAc;IACvD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,oBAAW,CAAC,iBAAQ,CAAC,qBAAqB,EAAE;YACpD,IAAI,EAAE,EAAE,MAAM,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAA,uCAAkB,EAAC,YAAY,CAAC,CAAC;QAEjD,IAAA,gBAAM,EAAC,0BAA0B,OAAO,CAAC,QAAQ,EAAE,EAAE;YACnD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,YAAY,EAAE,OAAO,CAAC,YAAY;SACnC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,EAAE,OAAO,CAAC,KAAK;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,oBAAW,CAAC,iBAAQ,CAAC,eAAe,EAAE;YAC9C,OAAO,EAAE,MAAM;YACf,KAAK;YACL,IAAI,EAAE,EAAE,MAAM,EAAE;SACjB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
|
+
"description": "Zephyr plugin agent",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
|
|
8
|
+
"directory": "libs/zephyr-agent"
|
|
9
|
+
},
|
|
4
10
|
"license": "Apache-2.0",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "nx build zephyr-agent",
|
|
10
|
-
"test": "nx test zephyr-agent",
|
|
11
|
-
"patch-version": "pnpm version"
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "ZephyrCloudIO",
|
|
13
|
+
"url": "https://github.com/ZephyrCloudIO"
|
|
12
14
|
},
|
|
15
|
+
"type": "commonjs",
|
|
13
16
|
"exports": {
|
|
14
17
|
".": {
|
|
15
18
|
"import": "./dist/index.js",
|
|
@@ -22,28 +25,39 @@
|
|
|
22
25
|
"types": "./dist/node-persist/index.d.ts"
|
|
23
26
|
}
|
|
24
27
|
},
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "nx build zephyr-agent",
|
|
32
|
+
"patch-version": "pnpm version",
|
|
33
|
+
"test": "nx test zephyr-agent"
|
|
34
|
+
},
|
|
25
35
|
"dependencies": {
|
|
26
36
|
"cloudflare": "^3.4.0",
|
|
37
|
+
"debug": "^4.3.4",
|
|
27
38
|
"git-url-parse": "^15.0.0",
|
|
28
39
|
"is-ci": "catalog:plugin-shared",
|
|
29
40
|
"jose": "^5.10.0",
|
|
41
|
+
"node-persist": "^4.0.1",
|
|
30
42
|
"open": "^10.1.0",
|
|
31
43
|
"socket.io-client": "^4.7.5",
|
|
32
44
|
"tslib": "catalog:typescript",
|
|
33
45
|
"uuid": "^8.3.2",
|
|
34
|
-
"node-persist": "^4.0.1",
|
|
35
|
-
"debug": "^4.3.4",
|
|
36
46
|
"zephyr-edge-contract": "workspace:*"
|
|
37
47
|
},
|
|
38
48
|
"devDependencies": {
|
|
49
|
+
"@jest/globals": "catalog:react",
|
|
50
|
+
"@types/debug": "^4.1.12",
|
|
39
51
|
"@types/git-url-parse": "^9.0.3",
|
|
40
52
|
"@types/is-ci": "catalog:typescript",
|
|
53
|
+
"@types/jest": "catalog:typescript",
|
|
54
|
+
"@types/node-persist": "catalog:typescript",
|
|
41
55
|
"@types/uuid": "^9.0.8",
|
|
42
56
|
"@typescript-eslint/eslint-plugin": "catalog:eslint",
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
57
|
+
"ts-jest": "catalog:typescript"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public",
|
|
61
|
+
"provenance": true
|
|
48
62
|
}
|
|
49
63
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-agent",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250508125404",
|
|
4
|
+
"description": "Zephyr plugin agent",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
|
|
8
|
+
"directory": "libs/zephyr-agent"
|
|
9
|
+
},
|
|
4
10
|
"license": "Apache-2.0",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "ZephyrCloudIO",
|
|
13
|
+
"url": "https://github.com/ZephyrCloudIO"
|
|
14
|
+
},
|
|
5
15
|
"type": "commonjs",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
16
|
"exports": {
|
|
9
17
|
".": {
|
|
10
18
|
"import": "./dist/index.js",
|
|
@@ -17,33 +25,39 @@
|
|
|
17
25
|
"types": "./dist/node-persist/index.d.ts"
|
|
18
26
|
}
|
|
19
27
|
},
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
20
30
|
"dependencies": {
|
|
21
31
|
"cloudflare": "^3.4.0",
|
|
32
|
+
"debug": "^4.3.4",
|
|
22
33
|
"git-url-parse": "^15.0.0",
|
|
23
34
|
"is-ci": "^4.1.0",
|
|
24
35
|
"jose": "^5.10.0",
|
|
36
|
+
"node-persist": "^4.0.1",
|
|
25
37
|
"open": "^10.1.0",
|
|
26
38
|
"socket.io-client": "^4.7.5",
|
|
27
39
|
"tslib": "^2.8.1",
|
|
28
40
|
"uuid": "^8.3.2",
|
|
29
|
-
"
|
|
30
|
-
"debug": "^4.3.4",
|
|
31
|
-
"zephyr-edge-contract": "0.0.0-canary-20250424120014"
|
|
41
|
+
"zephyr-edge-contract": "0.0.0-canary-20250508125404"
|
|
32
42
|
},
|
|
33
43
|
"devDependencies": {
|
|
44
|
+
"@jest/globals": "^29.7.0",
|
|
45
|
+
"@types/debug": "^4.1.12",
|
|
34
46
|
"@types/git-url-parse": "^9.0.3",
|
|
35
47
|
"@types/is-ci": "3.0.4",
|
|
48
|
+
"@types/jest": "29.5.14",
|
|
49
|
+
"@types/node-persist": "^3.1.8",
|
|
36
50
|
"@types/uuid": "^9.0.8",
|
|
37
51
|
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
52
|
+
"ts-jest": "^29.2.6"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public",
|
|
56
|
+
"provenance": true
|
|
43
57
|
},
|
|
44
58
|
"scripts": {
|
|
45
59
|
"build": "nx build zephyr-agent",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
60
|
+
"patch-version": "pnpm version",
|
|
61
|
+
"test": "nx test zephyr-agent"
|
|
48
62
|
}
|
|
49
63
|
}
|