@alan-ai-hq/agent-manager 0.1.93 → 0.1.94
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/index.cjs +13 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -15451,7 +15451,7 @@ function describeError(error61) {
|
|
|
15451
15451
|
}
|
|
15452
15452
|
|
|
15453
15453
|
// src/version.ts
|
|
15454
|
-
var AGENT_VERSION = "0.1.
|
|
15454
|
+
var AGENT_VERSION = "0.1.94";
|
|
15455
15455
|
|
|
15456
15456
|
// src/daemon-worktree.ts
|
|
15457
15457
|
var import_node_child_process3 = require("child_process");
|
|
@@ -38394,6 +38394,10 @@ var import_crypto7 = require("crypto");
|
|
|
38394
38394
|
var import_fs11 = require("fs");
|
|
38395
38395
|
var import_path11 = require("path");
|
|
38396
38396
|
var ALAN_MCP_URL_ENV = "ALAN_MCP_URL";
|
|
38397
|
+
var ALAN_RUN_AUTHORIZATION_ENV = "ALAN_RUN_AUTHORIZATION";
|
|
38398
|
+
function managedRunAuthorizationHeader(registration) {
|
|
38399
|
+
return `Bearer ${requireManagedRunReference(registration)}`;
|
|
38400
|
+
}
|
|
38397
38401
|
function deliversRunReferenceViaEnv(backendKind) {
|
|
38398
38402
|
return backendKind === "cursor_agent_cli";
|
|
38399
38403
|
}
|
|
@@ -41683,7 +41687,10 @@ function buildClaudeManagedMcpArgs(registration, options = {}) {
|
|
|
41683
41687
|
mcpServers.alan = {
|
|
41684
41688
|
type: "http",
|
|
41685
41689
|
url: registration.url,
|
|
41686
|
-
headers: {
|
|
41690
|
+
headers: {
|
|
41691
|
+
"x-alan-run-reference": `\${${ALAN_RUN_REFERENCE_ENV}}`,
|
|
41692
|
+
Authorization: `Bearer \${${ALAN_RUN_REFERENCE_ENV}}`
|
|
41693
|
+
}
|
|
41687
41694
|
};
|
|
41688
41695
|
return [
|
|
41689
41696
|
...options.strict ? ["--strict-mcp-config"] : [],
|
|
@@ -42960,6 +42967,8 @@ function buildCodexManagedMcpArgs(registration, options = {}) {
|
|
|
42960
42967
|
"-c",
|
|
42961
42968
|
`mcp_servers.alan.env_http_headers.x-alan-run-reference=${JSON.stringify(ALAN_RUN_REFERENCE_ENV)}`,
|
|
42962
42969
|
"-c",
|
|
42970
|
+
`mcp_servers.alan.env_http_headers.Authorization=${JSON.stringify(ALAN_RUN_AUTHORIZATION_ENV)}`,
|
|
42971
|
+
"-c",
|
|
42963
42972
|
"mcp_servers.alan.required=true",
|
|
42964
42973
|
"-c",
|
|
42965
42974
|
`mcp_servers.alan.startup_timeout_sec=${ALAN_MCP_STARTUP_TIMEOUT_SEC}`
|
|
@@ -43003,7 +43012,8 @@ function createCodexRuntimeBackend(command = "codex", defaultArgs = []) {
|
|
|
43003
43012
|
env: {
|
|
43004
43013
|
...context.env,
|
|
43005
43014
|
...externalMcp?.env,
|
|
43006
|
-
[ALAN_RUN_REFERENCE_ENV]: requireManagedRunReference(managedRegistration)
|
|
43015
|
+
[ALAN_RUN_REFERENCE_ENV]: requireManagedRunReference(managedRegistration),
|
|
43016
|
+
[ALAN_RUN_AUTHORIZATION_ENV]: managedRunAuthorizationHeader(managedRegistration)
|
|
43007
43017
|
}
|
|
43008
43018
|
} : context;
|
|
43009
43019
|
const { paths: imagePaths, cleanup } = writeImagesToTempFiles(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alan-ai-hq/agent-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.94",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Alan agent runtime — cloud sandbox and local daemon (alan-agent CLI)",
|
|
6
6
|
"bin": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"tsup": "^8.5.1",
|
|
27
27
|
"tsx": "^4.19.0",
|
|
28
28
|
"typescript": "~5.9.3",
|
|
29
|
-
"@alan-ai/
|
|
29
|
+
"@alan-ai/agent-core": "0.1.0",
|
|
30
30
|
"@alan-ai/shared": "0.1.0",
|
|
31
|
-
"@alan-ai/
|
|
31
|
+
"@alan-ai/sandbox-runtime-spec": "0.1.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsup",
|