@glpkg/registry-cli 0.1.0

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.
@@ -0,0 +1,175 @@
1
+ /**
2
+ * Core types for GitLab Registry (no Node.js dependencies)
3
+ */
4
+ /**
5
+ * Source type for registry queries
6
+ */
7
+ export type SourceType = 'project' | 'group' | 'both';
8
+ /**
9
+ * GitLab Package information from API
10
+ */
11
+ export interface GitLabPackage {
12
+ id: number;
13
+ name: string;
14
+ version: string;
15
+ package_type: string;
16
+ status: string;
17
+ created_at: string;
18
+ _links?: {
19
+ web_path: string;
20
+ };
21
+ pipelines?: Array<{
22
+ id: number;
23
+ sha: string;
24
+ ref: string;
25
+ }>;
26
+ /** Which registry this package was found in */
27
+ source?: 'project' | 'group' | 'both';
28
+ }
29
+ /**
30
+ * NPM Package metadata from registry
31
+ */
32
+ export interface NpmPackageMetadata {
33
+ name: string;
34
+ 'dist-tags': Record<string, string>;
35
+ versions: Record<string, NpmVersionMetadata>;
36
+ time?: Record<string, string>;
37
+ }
38
+ /**
39
+ * NPM Version metadata
40
+ */
41
+ export interface NpmVersionMetadata {
42
+ name: string;
43
+ version: string;
44
+ description?: string;
45
+ main?: string;
46
+ types?: string;
47
+ bin?: Record<string, string>;
48
+ dependencies?: Record<string, string>;
49
+ devDependencies?: Record<string, string>;
50
+ peerDependencies?: Record<string, string>;
51
+ engines?: Record<string, string>;
52
+ author?: string | {
53
+ name: string;
54
+ email?: string;
55
+ };
56
+ license?: string;
57
+ keywords?: string[];
58
+ repository?: {
59
+ type: string;
60
+ url: string;
61
+ } | string;
62
+ dist?: {
63
+ shasum: string;
64
+ tarball: string;
65
+ };
66
+ }
67
+ /**
68
+ * Formatted package info for display
69
+ */
70
+ export interface PackageInfoDisplay {
71
+ name: string;
72
+ version: string;
73
+ description?: string;
74
+ license?: string;
75
+ author?: string;
76
+ homepage?: string;
77
+ repository?: string;
78
+ keywords?: string[];
79
+ dependencies?: Record<string, string>;
80
+ devDependencies?: Record<string, string>;
81
+ distTags?: Record<string, string>;
82
+ engines?: Record<string, string>;
83
+ publishedAt?: string;
84
+ /** Which registry this info came from */
85
+ source?: 'project' | 'group' | 'both';
86
+ }
87
+ /**
88
+ * Version info for display
89
+ */
90
+ export interface VersionInfoDisplay {
91
+ version: string;
92
+ publishedAt?: string;
93
+ tag?: string;
94
+ /** Which registry this version came from */
95
+ source?: 'project' | 'group' | 'both';
96
+ }
97
+ /**
98
+ * Search result
99
+ */
100
+ export interface SearchResult {
101
+ name: string;
102
+ version: string;
103
+ description?: string;
104
+ publishedAt: string;
105
+ }
106
+ /**
107
+ * Registry info for a package
108
+ */
109
+ export interface RegistryInfo {
110
+ url: string;
111
+ groupId?: number;
112
+ projectId?: number;
113
+ host: string;
114
+ }
115
+ /**
116
+ * Options for verifying published package
117
+ */
118
+ export interface VerifyPublishedOptions {
119
+ /** Package name (e.g., @scope/package) */
120
+ packageName: string;
121
+ /** Version to verify */
122
+ version: string;
123
+ /** GitLab project ID */
124
+ projectId: number;
125
+ /** GitLab personal access token */
126
+ token: string;
127
+ /** GitLab host (default: gitlab.com) */
128
+ host?: string;
129
+ /** Maximum retries (default: 5) */
130
+ maxRetries?: number;
131
+ /** Delay between retries in ms (default: 2000) */
132
+ retryDelay?: number;
133
+ }
134
+ /**
135
+ * Result of verifying published package
136
+ */
137
+ export interface VerifyPublishedResult {
138
+ /** Whether the package version was found */
139
+ found: boolean;
140
+ /** Package ID if found */
141
+ packageId?: number;
142
+ /** Error message if failed */
143
+ error?: string;
144
+ /** Number of attempts made */
145
+ attempts: number;
146
+ }
147
+ /**
148
+ * Configuration passed to GitLabRegistryCore
149
+ */
150
+ export interface GitLabRegistryCoreConfig {
151
+ /** GitLab personal access token */
152
+ token?: string;
153
+ /** Default GitLab host */
154
+ host?: string;
155
+ }
156
+ /**
157
+ * Callback to resolve registry info for a package
158
+ */
159
+ export type RegistryResolver = (packageName: string) => RegistryInfo | null | Promise<RegistryInfo | null>;
160
+ /**
161
+ * Callback to resolve project registry info for a package
162
+ */
163
+ export type ProjectRegistryResolver = (packageName: string) => RegistryInfo | null;
164
+ /**
165
+ * Scope info for listing packages
166
+ */
167
+ export interface ScopeInfo {
168
+ groupId: number;
169
+ host: string;
170
+ }
171
+ /**
172
+ * Callback to resolve scope info
173
+ */
174
+ export type ScopeResolver = (scope?: string) => ScopeInfo | null;
175
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;IACH,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH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C;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,KAAK,EAAE,OAAO,CAAC;IACf,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;AAE3G;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,YAAY,GAAG,IAAI,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Core types for GitLab Registry (no Node.js dependencies)
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Pure utility functions (no Node.js dependencies)
3
+ */
4
+ /**
5
+ * Extract scope from package name
6
+ * @example extractScope('@myorg/package') => 'myorg'
7
+ * @example extractScope('package') => null
8
+ */
9
+ export declare function extractScope(packageName: string): string | null;
10
+ /**
11
+ * Compare semver versions
12
+ * @returns positive if a > b, negative if a < b, 0 if equal
13
+ */
14
+ export declare function compareVersions(a: string, b: string): number;
15
+ /**
16
+ * Sleep helper
17
+ */
18
+ export declare function sleep(ms: number): Promise<void>;
19
+ /**
20
+ * Encode package name for URL
21
+ */
22
+ export declare function encodePackageName(packageName: string): string;
23
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/core/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQ/D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ5D;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7D"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /**
3
+ * Pure utility functions (no Node.js dependencies)
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.extractScope = extractScope;
7
+ exports.compareVersions = compareVersions;
8
+ exports.sleep = sleep;
9
+ exports.encodePackageName = encodePackageName;
10
+ /**
11
+ * Extract scope from package name
12
+ * @example extractScope('@myorg/package') => 'myorg'
13
+ * @example extractScope('package') => null
14
+ */
15
+ function extractScope(packageName) {
16
+ if (packageName.startsWith('@')) {
17
+ const slashIndex = packageName.indexOf('/');
18
+ if (slashIndex > 1) {
19
+ return packageName.slice(1, slashIndex);
20
+ }
21
+ }
22
+ return null;
23
+ }
24
+ /**
25
+ * Compare semver versions
26
+ * @returns positive if a > b, negative if a < b, 0 if equal
27
+ */
28
+ function compareVersions(a, b) {
29
+ const partsA = a.split('.').map(p => parseInt(p) || 0);
30
+ const partsB = b.split('.').map(p => parseInt(p) || 0);
31
+ for (let i = 0; i < Math.max(partsA.length, partsB.length); i++) {
32
+ const diff = (partsA[i] || 0) - (partsB[i] || 0);
33
+ if (diff !== 0)
34
+ return diff;
35
+ }
36
+ return 0;
37
+ }
38
+ /**
39
+ * Sleep helper
40
+ */
41
+ function sleep(ms) {
42
+ return new Promise(resolve => setTimeout(resolve, ms));
43
+ }
44
+ /**
45
+ * Encode package name for URL
46
+ */
47
+ function encodePackageName(packageName) {
48
+ return encodeURIComponent(packageName).replace('%40', '@');
49
+ }
50
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/core/utils.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAOH,oCAQC;AAMD,0CAQC;AAKD,sBAEC;AAKD,8CAEC;AAzCD;;;;GAIG;AACH,SAAgB,YAAY,CAAC,WAAmB;IAC9C,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;YACnB,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,SAAgB,eAAe,CAAC,CAAS,EAAE,CAAS;IAClD,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAChE,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,IAAI,IAAI,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;IAC9B,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;GAEG;AACH,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * GitLab Registry - Query GitLab NPM Package Registry
3
+ *
4
+ * This is the main entry point with @glpkg/config integration.
5
+ * For a Node-free core module, use `@glpkg/registry-cli/core` instead.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * import { GitLabRegistry, registry } from '@glpkg/registry-cli';
10
+ *
11
+ * // Use singleton
12
+ * const info = await registry.info('@scope/package');
13
+ *
14
+ * // Or create instance
15
+ * const myRegistry = new GitLabRegistry({ host: 'gitlab.mycompany.com' });
16
+ * ```
17
+ */
18
+ export { GitLabRegistry, registry, SourceType, GitLabPackage, NpmPackageMetadata, NpmVersionMetadata, PackageInfoDisplay, VersionInfoDisplay, SearchResult, VerifyPublishedOptions, VerifyPublishedResult, verifyPublished } from './cli/index.js';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAEL,cAAc,EACd,QAAQ,EAGR,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EAGrB,eAAe,EAChB,MAAM,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * GitLab Registry - Query GitLab NPM Package Registry
4
+ *
5
+ * This is the main entry point with @glpkg/config integration.
6
+ * For a Node-free core module, use `@glpkg/registry-cli/core` instead.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * import { GitLabRegistry, registry } from '@glpkg/registry-cli';
11
+ *
12
+ * // Use singleton
13
+ * const info = await registry.info('@scope/package');
14
+ *
15
+ * // Or create instance
16
+ * const myRegistry = new GitLabRegistry({ host: 'gitlab.mycompany.com' });
17
+ * ```
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.verifyPublished = exports.registry = exports.GitLabRegistry = void 0;
21
+ // Re-export everything from cli module
22
+ var index_js_1 = require("./cli/index.js");
23
+ // Classes
24
+ Object.defineProperty(exports, "GitLabRegistry", { enumerable: true, get: function () { return index_js_1.GitLabRegistry; } });
25
+ Object.defineProperty(exports, "registry", { enumerable: true, get: function () { return index_js_1.registry; } });
26
+ // Functions
27
+ Object.defineProperty(exports, "verifyPublished", { enumerable: true, get: function () { return index_js_1.verifyPublished; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,uCAAuC;AACvC,2CAkBwB;AAjBtB,UAAU;AACV,0GAAA,cAAc,OAAA;AACd,oGAAA,QAAQ,OAAA;AAaR,YAAY;AACZ,2GAAA,eAAe,OAAA"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@glpkg/registry-cli",
3
+ "version": "0.1.0",
4
+ "description": "Query GitLab NPM Package Registry - view package info, versions, and search",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./core": {
13
+ "types": "./dist/core/index.d.ts",
14
+ "default": "./dist/core/index.js"
15
+ }
16
+ },
17
+ "bin": {
18
+ "gitlab-registry": "./dist/cli.js"
19
+ },
20
+ "scripts": {
21
+ "build": "tsc",
22
+ "dev": "tsc --watch",
23
+ "test": "vitest run --passWithNoTests",
24
+ "test:ui": "vitest --ui",
25
+ "prepublishOnly": "npm run build"
26
+ },
27
+ "keywords": [
28
+ "gitlab",
29
+ "npm",
30
+ "registry",
31
+ "package",
32
+ "info",
33
+ "search"
34
+ ],
35
+ "author": "microature",
36
+ "license": "MIT",
37
+ "engines": {
38
+ "node": ">=18.0.0"
39
+ },
40
+ "dependencies": {
41
+ "@glpkg/config": "^0.3.0",
42
+ "chalk": "^5.4.1",
43
+ "commander": "^14.0.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^24.5.2",
47
+ "typescript": "^5.9.2",
48
+ "vitest": "^2.1.9"
49
+ }
50
+ }