@cotal-ai/connector-hermes 0.86.0 → 0.87.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/dist/extension.d.ts.map +1 -1
- package/dist/index.js +15 -7
- package/dist/launch.js +1559 -1191
- package/package.json +3 -3
- package/plugin/cotal/_sidecar/standalone.cjs +1542 -1174
package/dist/extension.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,SAAS,EAAoC,MAAM,gBAAgB,CAAC;AAkB5F,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAQjD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,SAAS,EAAoC,MAAM,gBAAgB,CAAC;AAkB5F,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAQjD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,SAuF7B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6914,6 +6914,7 @@ var SUN_PATH_MAX_BYTES = process.platform === "darwin" ? 104 : 108;
|
|
|
6914
6914
|
|
|
6915
6915
|
// ../connector-core/dist/launch.js
|
|
6916
6916
|
import { eventChannel as eventChannel2, LAUNCH_MATERIAL_ENV as LAUNCH_MATERIAL_ENV3, parsePrincipalKey, principalKey, writeLaunchMaterial } from "@cotal-ai/core";
|
|
6917
|
+
import { dirname } from "node:path";
|
|
6917
6918
|
import { EVENT_CHANNEL_PREFIX, eventChannel as eventChannel3, eventChannelPrincipal, isEventChannel } from "@cotal-ai/core";
|
|
6918
6919
|
var OS_ENV_ALLOW = [
|
|
6919
6920
|
"PATH",
|
|
@@ -7026,7 +7027,7 @@ function aclEnv(opts) {
|
|
|
7026
7027
|
env.COTAL_CAPABILITIES = opts.capabilities.join(",");
|
|
7027
7028
|
return env;
|
|
7028
7029
|
}
|
|
7029
|
-
function materialEnv(opts) {
|
|
7030
|
+
function materialEnv(opts, artifacts) {
|
|
7030
7031
|
if (opts.userAuth && opts.creds)
|
|
7031
7032
|
throw new Error("launch: creds (static auth) and userAuth (user-mode auth) are mutually exclusive \u2014 one launch carries one identity plane");
|
|
7032
7033
|
const material = {};
|
|
@@ -7044,7 +7045,9 @@ function materialEnv(opts) {
|
|
|
7044
7045
|
material.userAuth = opts.userAuth;
|
|
7045
7046
|
if (Object.keys(material).length === 0)
|
|
7046
7047
|
return {};
|
|
7047
|
-
|
|
7048
|
+
const path = writeLaunchMaterial(material);
|
|
7049
|
+
artifacts.push(dirname(path));
|
|
7050
|
+
return { [LAUNCH_MATERIAL_ENV3]: path };
|
|
7048
7051
|
}
|
|
7049
7052
|
|
|
7050
7053
|
// ../connector-core/dist/agui.js
|
|
@@ -23483,7 +23486,7 @@ var MAX_FRAME_BYTES = 1 << 20;
|
|
|
23483
23486
|
// src/seat-home.ts
|
|
23484
23487
|
import { createHash } from "node:crypto";
|
|
23485
23488
|
import { tmpdir } from "node:os";
|
|
23486
|
-
import { dirname, join } from "node:path";
|
|
23489
|
+
import { dirname as dirname2, join } from "node:path";
|
|
23487
23490
|
var seatId = (space, name) => createHash("sha256").update(`${space}\0${name}`).digest("hex").slice(0, 12);
|
|
23488
23491
|
function hermesSeatHome(space, name) {
|
|
23489
23492
|
const id = seatId(space, name);
|
|
@@ -23551,9 +23554,6 @@ var hermesConnector = {
|
|
|
23551
23554
|
const env = {
|
|
23552
23555
|
...launchEnv({ providerKeys: HERMES_PROVIDER_KEYS, envAllow: opts.envAllow }),
|
|
23553
23556
|
...aclEnv(opts),
|
|
23554
|
-
// Creds and broker URL ride a 0600 file; only its path is exported. This connector's launcher
|
|
23555
|
-
// mints the control endpoint itself and merges the token into the same file (see launch.ts).
|
|
23556
|
-
...materialEnv({ creds: opts.creds, servers: opts.servers, eventsRequired: opts.eventsRequired, userAuth: opts.userAuth }),
|
|
23557
23557
|
COTAL_SPACE: opts.space,
|
|
23558
23558
|
COTAL_NAME: opts.name
|
|
23559
23559
|
};
|
|
@@ -23577,7 +23577,15 @@ var hermesConnector = {
|
|
|
23577
23577
|
env.HERMES_MODEL = opts.model;
|
|
23578
23578
|
env.COTAL_MODEL = opts.model;
|
|
23579
23579
|
}
|
|
23580
|
-
|
|
23580
|
+
const artifacts = [];
|
|
23581
|
+
Object.assign(env, materialEnv({ creds: opts.creds, servers: opts.servers, eventsRequired: opts.eventsRequired, userAuth: opts.userAuth }, artifacts));
|
|
23582
|
+
return {
|
|
23583
|
+
command: LAUNCH_COMMAND,
|
|
23584
|
+
args: [LAUNCH_ENTRY],
|
|
23585
|
+
env,
|
|
23586
|
+
...resumeRecordPath ? { resumeRecordPath } : {},
|
|
23587
|
+
...artifacts.length > 0 ? { artifacts } : {}
|
|
23588
|
+
};
|
|
23581
23589
|
}
|
|
23582
23590
|
};
|
|
23583
23591
|
registry3.register(hermesConnector);
|