graphjin 3.21.21 → 3.21.22
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 +16 -17
- package/bin/deeporg.js +36 -0
- package/bin/install.js +35 -16
- package/package.json +6 -5
- package/bin/graphjin.js +0 -29
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DeepORG — One AI Agent for Your Whole Organization
|
|
2
2
|
|
|
3
|
-
[](https://github.com/dosco/deeporg/blob/master/LICENSE)
|
|
4
4
|
[](https://www.npmjs.com/package/graphjin)
|
|
5
5
|
[](https://hub.docker.com/r/dosco/graphjin/tags)
|
|
6
6
|
[](https://discord.gg/6pSWCTZ)
|
|
@@ -26,7 +26,7 @@ database query. Connecting a new database or API is a few lines of config, not
|
|
|
26
26
|
a new set of tools.
|
|
27
27
|
|
|
28
28
|
**Proven on a public benchmark.** [DeepORG, the Organizational Agent
|
|
29
|
-
Benchmark](https://
|
|
29
|
+
Benchmark](https://deeporg.io/benchmarks/deeporg/) scores AI models on real
|
|
30
30
|
organizational work against a live system: answers, changes, alerts, follow-ups
|
|
31
31
|
and questions that span several sources. The best published run scores 97 of
|
|
32
32
|
100 with zero unsafe actions, and every score links to the exact test and build
|
|
@@ -36,7 +36,7 @@ that produced it.
|
|
|
36
36
|
generates checked tasks from your own systems and serves them as graded
|
|
37
37
|
episodes, so you can measure an agent, or train one with reinforcement
|
|
38
38
|
learning, on your organization instead of a toy.
|
|
39
|
-
[Agent environment](https://
|
|
39
|
+
[Agent environment](https://deeporg.io/environment/)
|
|
40
40
|
|
|
41
41
|
Underneath is GraphJin, the open-source engine that compiles each query into a
|
|
42
42
|
single database query. It is also a GraphQL API server and a Go library in its
|
|
@@ -45,15 +45,14 @@ own right.
|
|
|
45
45
|
## Install
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
curl -fsSL https://
|
|
48
|
+
curl -fsSL https://deeporg.io/install.sh | bash # macOS and Linux
|
|
49
49
|
npm install -g graphjin # any platform
|
|
50
50
|
brew install dosco/graphjin/graphjin # macOS
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Windows: `
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
`docker pull dosco/graphjin`.
|
|
53
|
+
Windows: use `npm install -g graphjin`, or download the Windows archive from
|
|
54
|
+
the [releases page](https://github.com/dosco/deeporg/releases). Linux packages
|
|
55
|
+
are on the same page, and Docker is `docker pull dosco/graphjin`.
|
|
57
56
|
|
|
58
57
|
## Try it
|
|
59
58
|
|
|
@@ -72,7 +71,7 @@ curl -sS localhost:8083/api/v1/agent \
|
|
|
72
71
|
```
|
|
73
72
|
|
|
74
73
|
Or chat with it at <http://localhost:8083/agent>. More demos:
|
|
75
|
-
[Demos](https://
|
|
74
|
+
[Demos](https://deeporg.io/start/demos/).
|
|
76
75
|
|
|
77
76
|
## Use it from Claude, Codex or any MCP client
|
|
78
77
|
|
|
@@ -80,19 +79,19 @@ Or chat with it at <http://localhost:8083/agent>. More demos:
|
|
|
80
79
|
graphjin mcp add claude http://localhost:8083
|
|
81
80
|
```
|
|
82
81
|
|
|
83
|
-
Other clients: [MCP](https://
|
|
84
|
-
[MCP OAuth](https://
|
|
82
|
+
Other clients: [MCP](https://deeporg.io/agentic/mcp/). Hosted servers with sign-in:
|
|
83
|
+
[MCP OAuth](https://deeporg.io/agentic/oauth/).
|
|
85
84
|
|
|
86
85
|
## Learn more
|
|
87
86
|
|
|
88
87
|
| | |
|
|
89
88
|
|---|---|
|
|
90
|
-
| Get started | [Quick start](https://
|
|
91
|
-
| The agent | [How it works](https://
|
|
92
|
-
| Connect your systems | [Databases](https://
|
|
93
|
-
| Run it in production | [Production](https://
|
|
94
|
-
| GraphQL and Go | [Query language](https://
|
|
95
|
-
| Measure agents | [Benchmark](https://
|
|
89
|
+
| Get started | [Quick start](https://deeporg.io/start/quick-start/) · [Your first query](https://deeporg.io/start/first-query/) |
|
|
90
|
+
| The agent | [How it works](https://deeporg.io/agentic/server-agent/) · [Conversations](https://deeporg.io/agentic/lead-agent/) · [Watches](https://deeporg.io/agentic/watches/) · [Workflows](https://deeporg.io/agentic/workflows/) |
|
|
91
|
+
| Connect your systems | [Databases](https://deeporg.io/reference/database-support/) · [APIs](https://deeporg.io/integrations/openapi/) · [Files](https://deeporg.io/integrations/filesystem-uploads/) · [Source code](https://deeporg.io/integrations/codesql/) |
|
|
92
|
+
| Run it in production | [Production](https://deeporg.io/configure/environment-production/) · [Access rules](https://deeporg.io/configure/auth-rbac/) · [Config reference](CONFIG.md) |
|
|
93
|
+
| GraphQL and Go | [Query language](https://deeporg.io/core/) · [Go examples](https://pkg.go.dev/github.com/dosco/graphjin/core#pkg-examples) |
|
|
94
|
+
| Measure agents | [Benchmark](https://deeporg.io/benchmarks/deeporg/) · [Agent environment](https://deeporg.io/environment/) |
|
|
96
95
|
|
|
97
96
|
Works with PostgreSQL, MySQL, SQLite, MongoDB, Oracle, SQL Server, Snowflake,
|
|
98
97
|
BigQuery, Cassandra, S3, GCS and local files.
|
package/bin/deeporg.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the DeepORG binary that bin/install.js downloaded. package.json points
|
|
3
|
+
// both commands, `deeporg` and `graphjin` (its old name), at this file.
|
|
4
|
+
const { spawn } = require('child_process');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
|
|
8
|
+
const ext = process.platform === 'win32' ? '.exe' : '';
|
|
9
|
+
|
|
10
|
+
// `deeporg` is what a current release ships. `graphjin` is what a release from
|
|
11
|
+
// before the rename shipped, and may be what an older install left here.
|
|
12
|
+
const binary = ['deeporg', 'graphjin']
|
|
13
|
+
.map((name) => path.join(__dirname, name + ext))
|
|
14
|
+
.find((candidate) => fs.existsSync(candidate));
|
|
15
|
+
|
|
16
|
+
if (!binary) {
|
|
17
|
+
console.error(`DeepORG binary not found in: ${__dirname}`);
|
|
18
|
+
console.error('Try reinstalling: npm install -g graphjin');
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
23
|
+
|
|
24
|
+
child.on('error', (err) => {
|
|
25
|
+
console.error(`Failed to start deeporg: ${err.message}`);
|
|
26
|
+
console.error('Try reinstalling: npm install -g graphjin');
|
|
27
|
+
process.exit(1);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
child.on('exit', (code, signal) => {
|
|
31
|
+
if (signal) {
|
|
32
|
+
console.error(`deeporg terminated by signal: ${signal}`);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
process.exit(code ?? 0);
|
|
36
|
+
});
|
package/bin/install.js
CHANGED
|
@@ -62,13 +62,22 @@ async function downloadWithFallback(candidates, binDir) {
|
|
|
62
62
|
throw lastErr || new Error('No download candidates available');
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
// The command is `deeporg`. A release from before the rename holds a
|
|
66
|
+
// `graphjin` binary instead; bin/deeporg.js runs whichever one is here.
|
|
67
|
+
const BINARY_NAMES = ['deeporg', 'graphjin'];
|
|
68
|
+
|
|
69
|
+
function binaryFiles(platform) {
|
|
70
|
+
const ext = platform === 'windows' ? '.exe' : '';
|
|
71
|
+
return BINARY_NAMES.map((name) => name + ext);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async function extract(tarPath, destDir, wanted) {
|
|
66
75
|
// Use tar module for extraction
|
|
67
76
|
const tar = require('tar');
|
|
68
77
|
await tar.x({
|
|
69
78
|
file: tarPath,
|
|
70
79
|
cwd: destDir,
|
|
71
|
-
filter: (path) => path
|
|
80
|
+
filter: (path) => wanted.includes(path),
|
|
72
81
|
});
|
|
73
82
|
}
|
|
74
83
|
|
|
@@ -81,25 +90,30 @@ async function install() {
|
|
|
81
90
|
|
|
82
91
|
if (!platform || !arch) {
|
|
83
92
|
console.error(`Unsupported platform: ${process.platform} ${process.arch}`);
|
|
84
|
-
console.error('Please download manually from: https://github.com/dosco/
|
|
93
|
+
console.error('Please download manually from: https://github.com/dosco/deeporg/releases');
|
|
85
94
|
process.exit(1);
|
|
86
95
|
}
|
|
87
96
|
|
|
88
97
|
const binDir = __dirname;
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const releaseBase = `https://github.com/dosco/
|
|
92
|
-
|
|
93
|
-
//
|
|
94
|
-
//
|
|
98
|
+
const wanted = binaryFiles(platform);
|
|
99
|
+
const installed = () => wanted.map((name) => path.join(binDir, name)).find((file) => fs.existsSync(file));
|
|
100
|
+
const releaseBase = `https://github.com/dosco/deeporg/releases/download/v${version}`;
|
|
101
|
+
|
|
102
|
+
// Newest naming first. Since the command was renamed the archive is
|
|
103
|
+
// deeporg_<version>_<os>_<arch>; releases up to v3.21.21 were
|
|
104
|
+
// graphjin_<version>_<os>_<arch>, and much older ones had no version in the
|
|
105
|
+
// name. Keep every form so this script still installs an older tag.
|
|
95
106
|
const filenames = platform === 'windows'
|
|
96
107
|
? [
|
|
108
|
+
`deeporg_${version}_${platform}_${arch}.tar.gz`,
|
|
109
|
+
`deeporg_${version}_${platform}_${arch}.zip`,
|
|
97
110
|
`graphjin_${version}_${platform}_${arch}.tar.gz`,
|
|
98
111
|
`graphjin_${version}_${platform}_${arch}.zip`,
|
|
99
112
|
`graphjin_${platform}_${arch}.tar.gz`,
|
|
100
113
|
`graphjin_${platform}_${arch}.zip`,
|
|
101
114
|
]
|
|
102
115
|
: [
|
|
116
|
+
`deeporg_${version}_${platform}_${arch}.tar.gz`,
|
|
103
117
|
`graphjin_${version}_${platform}_${arch}.tar.gz`,
|
|
104
118
|
`graphjin_${platform}_${arch}.tar.gz`,
|
|
105
119
|
];
|
|
@@ -109,12 +123,12 @@ async function install() {
|
|
|
109
123
|
}));
|
|
110
124
|
|
|
111
125
|
// Skip if binary already exists
|
|
112
|
-
if (
|
|
113
|
-
console.log('
|
|
126
|
+
if (installed()) {
|
|
127
|
+
console.log('DeepORG binary already installed');
|
|
114
128
|
return;
|
|
115
129
|
}
|
|
116
130
|
|
|
117
|
-
console.log(`Downloading
|
|
131
|
+
console.log(`Downloading DeepORG v${version} for ${platform}/${arch}...`);
|
|
118
132
|
|
|
119
133
|
let archivePath = '';
|
|
120
134
|
let selectedFilename = '';
|
|
@@ -132,7 +146,12 @@ async function install() {
|
|
|
132
146
|
stdio: 'inherit',
|
|
133
147
|
});
|
|
134
148
|
} else {
|
|
135
|
-
await extract(archivePath, binDir);
|
|
149
|
+
await extract(archivePath, binDir, wanted);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const binaryPath = installed();
|
|
153
|
+
if (!binaryPath) {
|
|
154
|
+
throw new Error(`no ${wanted.join(' or ')} in ${selectedFilename}`);
|
|
136
155
|
}
|
|
137
156
|
|
|
138
157
|
// Set executable permission on Unix
|
|
@@ -143,10 +162,10 @@ async function install() {
|
|
|
143
162
|
// Clean up archive
|
|
144
163
|
fs.unlinkSync(archivePath);
|
|
145
164
|
|
|
146
|
-
console.log('
|
|
165
|
+
console.log('DeepORG installed successfully! Run it as `deeporg` (or `graphjin`, its old name).');
|
|
147
166
|
} catch (err) {
|
|
148
|
-
console.error(`Failed to install
|
|
149
|
-
console.error('Please download manually from: https://github.com/dosco/
|
|
167
|
+
console.error(`Failed to install DeepORG: ${err.message}`);
|
|
168
|
+
console.error('Please download manually from: https://github.com/dosco/deeporg/releases');
|
|
150
169
|
// Clean up on failure
|
|
151
170
|
try {
|
|
152
171
|
fs.unlinkSync(archivePath);
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphjin",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.22",
|
|
4
4
|
"description": "GraphJin — one governed graph for AI agents: GraphQL + MCP over your databases, files, APIs, and code",
|
|
5
5
|
"bin": {
|
|
6
|
-
"
|
|
6
|
+
"deeporg": "bin/deeporg.js",
|
|
7
|
+
"graphjin": "bin/deeporg.js"
|
|
7
8
|
},
|
|
8
9
|
"files": [
|
|
9
10
|
"./bin"
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/dosco/
|
|
20
|
+
"url": "git+https://github.com/dosco/deeporg.git"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [
|
|
22
23
|
"graphql",
|
|
@@ -31,9 +32,9 @@
|
|
|
31
32
|
"author": "Vikram <https://twitter.com/dosco>",
|
|
32
33
|
"license": "Apache-2.0",
|
|
33
34
|
"bugs": {
|
|
34
|
-
"url": "https://github.com/dosco/
|
|
35
|
+
"url": "https://github.com/dosco/deeporg/issues"
|
|
35
36
|
},
|
|
36
|
-
"homepage": "https://
|
|
37
|
+
"homepage": "https://deeporg.io",
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"tar": "^7.0.0"
|
|
39
40
|
}
|
package/bin/graphjin.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { spawn } = require('child_process');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const fs = require('fs');
|
|
5
|
-
|
|
6
|
-
const ext = process.platform === 'win32' ? '.exe' : '';
|
|
7
|
-
const binary = path.join(__dirname, 'graphjin' + ext);
|
|
8
|
-
|
|
9
|
-
if (!fs.existsSync(binary)) {
|
|
10
|
-
console.error(`GraphJin binary not found at: ${binary}`);
|
|
11
|
-
console.error('Try reinstalling: npm install -g graphjin');
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const child = spawn(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
16
|
-
|
|
17
|
-
child.on('error', (err) => {
|
|
18
|
-
console.error(`Failed to start graphjin: ${err.message}`);
|
|
19
|
-
console.error('Try reinstalling: npm install -g graphjin');
|
|
20
|
-
process.exit(1);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
child.on('exit', (code, signal) => {
|
|
24
|
-
if (signal) {
|
|
25
|
-
console.error(`graphjin terminated by signal: ${signal}`);
|
|
26
|
-
process.exit(1);
|
|
27
|
-
}
|
|
28
|
-
process.exit(code ?? 0);
|
|
29
|
-
});
|