@gitlab/orbit 0.0.1 → 0.96.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.
package/LICENSE.md ADDED
@@ -0,0 +1,44 @@
1
+ The GitLab Enterprise Edition (EE) license (the “EE License”)
2
+ Copyright (c) 2011-present GitLab Inc.
3
+
4
+ With regard to the GitLab Software:
5
+
6
+ This software and associated documentation files (the "Software") may only be
7
+ used in production, if you (and any entity that you represent) have agreed to,
8
+ and are in compliance with, the GitLab Subscription Terms of Service, available
9
+ at https://about.gitlab.com/terms/#subscription (the “EE Terms”), or other
10
+ agreement governing the use of the Software, as agreed by you and GitLab,
11
+ and otherwise have a valid GitLab Enterprise Edition subscription for the
12
+ correct number of user seats. Subject to the foregoing sentence, you are free to
13
+ modify this Software and publish patches to the Software. You agree that GitLab
14
+ and/or its licensors (as applicable) retain all right, title and interest in and
15
+ to all such modifications and/or patches, and all such modifications and/or
16
+ patches may only be used, copied, modified, displayed, distributed, or otherwise
17
+ exploited with a valid GitLab Enterprise Edition subscription for the correct
18
+ number of user seats. Notwithstanding the foregoing, you may copy and modify
19
+ the Software for development and testing purposes, without requiring a
20
+ subscription. You agree that GitLab and/or its licensors (as applicable) retain
21
+ all right, title and interest in and to all such modifications. You are not
22
+ granted any other rights beyond what is expressly stated herein. Subject to the
23
+ foregoing, it is forbidden to copy, merge, publish, distribute, sublicense,
24
+ and/or sell the Software.
25
+
26
+ This EE License applies only to the part of this Software that is not
27
+ distributed as part of GitLab Community Edition (CE). Any part of this Software
28
+ distributed as part of GitLab CE or is served client-side as an image, font,
29
+ cascading stylesheet (CSS), file which produces or is compiled, arranged,
30
+ augmented, or combined into client-side JavaScript, in whole or in part, is
31
+ copyrighted under the MIT Expat license. The full text of this EE License shall
32
+ be included in all copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ SOFTWARE.
41
+
42
+ For all third party components incorporated into the GitLab Software, those
43
+ components are licensed under the original license provided by the owner of the
44
+ applicable component.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
1
  # @gitlab/orbit
2
2
 
3
- Initial stub version.
3
+ The [GitLab Knowledge Graph (Orbit)](https://gitlab.com/gitlab-org/orbit/knowledge-graph)
4
+ local CLI. Indexes a repository on your machine into a local DuckDB property
5
+ graph and answers code-structure queries (definitions, references, imports,
6
+ files, directories) over it.
7
+
8
+ ## Install
9
+
10
+ ```shell
11
+ npm install -g @gitlab/orbit
12
+ ```
13
+
14
+ This wrapper package selects and installs the prebuilt binary for your
15
+ platform via optional dependencies:
16
+
17
+ - `@gitlab/orbit-darwin-arm64`
18
+ - `@gitlab/orbit-darwin-x64`
19
+ - `@gitlab/orbit-linux-arm64`
20
+ - `@gitlab/orbit-linux-x64`
21
+ - `@gitlab/orbit-win32-x64`
22
+
23
+ Linux binaries are fully static (musl) and run on both glibc and musl
24
+ distributions.
25
+
26
+ ## Usage
27
+
28
+ ```shell
29
+ orbit index /path/to/your/repo
30
+ orbit help
31
+ ```
32
+
33
+ See the [Orbit Local documentation](https://docs.gitlab.com/orbit/local/getting-started/)
34
+ for access methods (direct CLI, `glab`, MCP) and query examples.
package/bin/orbit.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ const { spawnSync } = require("node:child_process");
5
+
6
+ const packageName = `@gitlab/orbit-${process.platform}-${process.arch}`;
7
+ const binaryName = process.platform === "win32" ? "orbit.exe" : "orbit";
8
+
9
+ let binaryPath;
10
+ try {
11
+ binaryPath = require.resolve(`${packageName}/${binaryName}`);
12
+ } catch {
13
+ console.error(
14
+ `@gitlab/orbit: no prebuilt orbit binary for ${process.platform}-${process.arch}.\n` +
15
+ `The optional dependency ${packageName} is not installed. Reinstall without ` +
16
+ `--no-optional / --omit=optional, or use another install method: ` +
17
+ `https://docs.gitlab.com/orbit/local/getting-started/`
18
+ );
19
+ process.exit(1);
20
+ }
21
+
22
+ const result = spawnSync(binaryPath, process.argv.slice(2), {
23
+ stdio: "inherit",
24
+ });
25
+
26
+ if (result.error) {
27
+ console.error(`@gitlab/orbit: failed to run ${binaryPath}: ${result.error.message}`);
28
+ process.exit(1);
29
+ }
30
+
31
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,8 +1,40 @@
1
1
  {
2
2
  "name": "@gitlab/orbit",
3
- "description": "GitLab Orbit",
3
+ "version": "0.96.0",
4
+ "description": "GitLab Knowledge Graph (Orbit) local CLI",
5
+ "keywords": [
6
+ "gitlab",
7
+ "orbit",
8
+ "knowledge-graph",
9
+ "code-intelligence"
10
+ ],
4
11
  "author": "GitLab",
5
- "license": "UNLICENSED",
6
- "version": "0.0.1",
7
- "files": []
12
+ "license": "SEE LICENSE IN LICENSE.md",
13
+ "homepage": "https://gitlab.com/gitlab-org/orbit/knowledge-graph",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://gitlab.com/gitlab-org/orbit/knowledge-graph.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://gitlab.com/gitlab-org/orbit/knowledge-graph/-/issues"
20
+ },
21
+ "bin": {
22
+ "orbit": "bin/orbit.js"
23
+ },
24
+ "files": [
25
+ "bin/orbit.js"
26
+ ],
27
+ "engines": {
28
+ "node": ">=18"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "optionalDependencies": {
34
+ "@gitlab/orbit-darwin-arm64": "0.96.0",
35
+ "@gitlab/orbit-darwin-x64": "0.96.0",
36
+ "@gitlab/orbit-linux-arm64": "0.96.0",
37
+ "@gitlab/orbit-linux-x64": "0.96.0",
38
+ "@gitlab/orbit-win32-x64": "0.96.0"
39
+ }
8
40
  }