@nexrall/code-core 1.0.0 → 1.0.1
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/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +5 -0
- package/package.json +42 -30
package/dist/auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAiB3C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAGjD;AAED,wBAAgB,QAAQ,IAAI,UAAU,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAiB3C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAGjD;AAED,wBAAgB,QAAQ,IAAI,UAAU,GAAG,IAAI,CAwB5C;AAED,wBAAgB,SAAS,IAAI,IAAI,CAQhC;AAED,wBAAgB,eAAe,IAAI,OAAO,CAGzC;AAED,wBAAgB,QAAQ,IAAI,MAAM,GAAG,IAAI,CAGxC"}
|
package/dist/auth/index.js
CHANGED
|
@@ -56,6 +56,11 @@ function saveAuth(config) {
|
|
|
56
56
|
fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2), { mode: 0o600 });
|
|
57
57
|
}
|
|
58
58
|
function loadAuth() {
|
|
59
|
+
// Env var takes precedence — enables headless/CI usage (GitHub Actions, etc.)
|
|
60
|
+
const envToken = process.env.NEXRALL_TOKEN;
|
|
61
|
+
if (envToken && envToken.trim().length > 0) {
|
|
62
|
+
return { token: envToken.trim() };
|
|
63
|
+
}
|
|
59
64
|
try {
|
|
60
65
|
if (!fs.existsSync(CONFIG_FILE)) {
|
|
61
66
|
return null;
|
package/package.json
CHANGED
|
@@ -1,70 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrall/code-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Core agent loop, tools, and extension primitives for Nexrall Code — embed an AI coding agent in any Node.js application.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nexrall <support@nexrall.com> (https://nexrall.com)",
|
|
7
7
|
"homepage": "https://github.com/nexrall/nexrall-code#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/nexrall/nexrall-code.git",
|
|
10
|
+
"url": "git+https://github.com/nexrall/nexrall-code.git",
|
|
11
11
|
"directory": "packages/core"
|
|
12
12
|
},
|
|
13
|
-
"bugs": {
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/nexrall/nexrall-code/issues"
|
|
15
|
+
},
|
|
14
16
|
"keywords": [
|
|
15
|
-
"ai",
|
|
16
|
-
"
|
|
17
|
+
"ai",
|
|
18
|
+
"agent",
|
|
19
|
+
"coding-agent",
|
|
20
|
+
"llm",
|
|
21
|
+
"claude",
|
|
22
|
+
"anthropic",
|
|
23
|
+
"nexrall",
|
|
24
|
+
"code-assistant",
|
|
25
|
+
"developer-tools",
|
|
26
|
+
"mcp"
|
|
17
27
|
],
|
|
18
28
|
"main": "./dist/index.js",
|
|
19
29
|
"types": "./dist/index.d.ts",
|
|
20
30
|
"exports": {
|
|
21
31
|
".": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
24
34
|
},
|
|
25
35
|
"./agent": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
36
|
+
"types": "./dist/agent/loop.d.ts",
|
|
37
|
+
"default": "./dist/agent/loop.js"
|
|
28
38
|
},
|
|
29
39
|
"./agent-types": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
40
|
+
"types": "./dist/agent/agentTypes.d.ts",
|
|
41
|
+
"default": "./dist/agent/agentTypes.js"
|
|
32
42
|
},
|
|
33
43
|
"./tools": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
44
|
+
"types": "./dist/tools/executor.d.ts",
|
|
45
|
+
"default": "./dist/tools/executor.js"
|
|
36
46
|
},
|
|
37
47
|
"./symbols": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
48
|
+
"types": "./dist/tools/symbols.d.ts",
|
|
49
|
+
"default": "./dist/tools/symbols.js"
|
|
40
50
|
},
|
|
41
51
|
"./checkpoint": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
52
|
+
"types": "./dist/checkpoint/manager.d.ts",
|
|
53
|
+
"default": "./dist/checkpoint/manager.js"
|
|
44
54
|
},
|
|
45
55
|
"./commands": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
56
|
+
"types": "./dist/commands/loader.d.ts",
|
|
57
|
+
"default": "./dist/commands/loader.js"
|
|
48
58
|
},
|
|
49
59
|
"./plugins": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
60
|
+
"types": "./dist/plugins/index.d.ts",
|
|
61
|
+
"default": "./dist/plugins/index.js"
|
|
52
62
|
},
|
|
53
63
|
"./permissions": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
64
|
+
"types": "./dist/permissions/rules.d.ts",
|
|
65
|
+
"default": "./dist/permissions/rules.js"
|
|
56
66
|
},
|
|
57
67
|
"./mcp": {
|
|
58
|
-
"
|
|
59
|
-
"
|
|
68
|
+
"types": "./dist/mcp/manager.d.ts",
|
|
69
|
+
"default": "./dist/mcp/manager.js"
|
|
60
70
|
},
|
|
61
71
|
"./api": {
|
|
62
|
-
"
|
|
63
|
-
"
|
|
72
|
+
"types": "./dist/api/client.d.ts",
|
|
73
|
+
"default": "./dist/api/client.js"
|
|
64
74
|
},
|
|
65
75
|
"./types": {
|
|
66
|
-
"
|
|
67
|
-
"
|
|
76
|
+
"types": "./dist/types.d.ts",
|
|
77
|
+
"default": "./dist/types.js"
|
|
68
78
|
}
|
|
69
79
|
},
|
|
70
80
|
"files": [
|
|
@@ -74,7 +84,9 @@
|
|
|
74
84
|
"README.md",
|
|
75
85
|
"LICENSE"
|
|
76
86
|
],
|
|
77
|
-
"engines": {
|
|
87
|
+
"engines": {
|
|
88
|
+
"node": ">=18.0.0"
|
|
89
|
+
},
|
|
78
90
|
"scripts": {
|
|
79
91
|
"build": "tsc",
|
|
80
92
|
"dev": "tsc --watch",
|