@adhdev/daemon-core 0.8.97 → 0.8.98
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.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/defaults.d.mts +6 -0
- package/node_modules/@adhdev/session-host-core/dist/defaults.d.ts +6 -0
- package/node_modules/@adhdev/session-host-core/dist/defaults.js +49 -0
- package/node_modules/@adhdev/session-host-core/dist/defaults.js.map +1 -0
- package/node_modules/@adhdev/session-host-core/dist/defaults.mjs +21 -0
- package/node_modules/@adhdev/session-host-core/dist/defaults.mjs.map +1 -0
- package/node_modules/@adhdev/session-host-core/dist/index.d.mts +1 -0
- package/node_modules/@adhdev/session-host-core/dist/index.d.ts +1 -0
- package/node_modules/@adhdev/session-host-core/dist/index.js +25 -2
- package/node_modules/@adhdev/session-host-core/dist/index.js.map +1 -1
- package/node_modules/@adhdev/session-host-core/dist/index.mjs +21 -2
- package/node_modules/@adhdev/session-host-core/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +7 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-runtime.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -1789,8 +1789,8 @@ function resolveCliSpawnPlan(options) {
|
|
|
1789
1789
|
isWin,
|
|
1790
1790
|
useShell,
|
|
1791
1791
|
ptyOptions: {
|
|
1792
|
-
cols:
|
|
1793
|
-
rows:
|
|
1792
|
+
cols: import_session_host_core2.DEFAULT_SESSION_HOST_COLS,
|
|
1793
|
+
rows: import_session_host_core2.DEFAULT_SESSION_HOST_ROWS,
|
|
1794
1794
|
cwd: workingDir,
|
|
1795
1795
|
env: buildCliSpawnEnv(process.env, spawnConfig.env)
|
|
1796
1796
|
}
|
|
@@ -1841,12 +1841,13 @@ function respondToCliTerminalQueries(options) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
return "";
|
|
1843
1843
|
}
|
|
1844
|
-
var os9, path10;
|
|
1844
|
+
var os9, path10, import_session_host_core2;
|
|
1845
1845
|
var init_provider_cli_runtime = __esm({
|
|
1846
1846
|
"src/cli-adapters/provider-cli-runtime.ts"() {
|
|
1847
1847
|
"use strict";
|
|
1848
1848
|
os9 = __toESM(require("os"));
|
|
1849
1849
|
path10 = __toESM(require("path"));
|
|
1850
|
+
import_session_host_core2 = require("@adhdev/session-host-core");
|
|
1850
1851
|
init_provider_cli_shared();
|
|
1851
1852
|
}
|
|
1852
1853
|
});
|
|
@@ -25494,7 +25495,7 @@ init_provider_cli_adapter();
|
|
|
25494
25495
|
init_pty_transport();
|
|
25495
25496
|
|
|
25496
25497
|
// src/cli-adapters/session-host-transport.ts
|
|
25497
|
-
var
|
|
25498
|
+
var import_session_host_core3 = require("@adhdev/session-host-core");
|
|
25498
25499
|
init_logger();
|
|
25499
25500
|
function shouldResumeAttachedSession(record) {
|
|
25500
25501
|
if (!record) return false;
|
|
@@ -25506,7 +25507,7 @@ function shouldResumeAttachedSession(record) {
|
|
|
25506
25507
|
var SessionHostRuntimeTransport = class {
|
|
25507
25508
|
constructor(options) {
|
|
25508
25509
|
this.options = options;
|
|
25509
|
-
this.client = new
|
|
25510
|
+
this.client = new import_session_host_core3.SessionHostClient({
|
|
25510
25511
|
endpoint: options.endpoint,
|
|
25511
25512
|
appName: options.appName
|
|
25512
25513
|
});
|
|
@@ -25912,11 +25913,11 @@ function resolveSessionHostAppName(options = {}) {
|
|
|
25912
25913
|
}
|
|
25913
25914
|
|
|
25914
25915
|
// src/session-host/runtime-support.ts
|
|
25915
|
-
var
|
|
25916
|
+
var import_session_host_core4 = require("@adhdev/session-host-core");
|
|
25916
25917
|
var STARTUP_TIMEOUT_MS = DEFAULT_SESSION_HOST_READY_TIMEOUT_MS;
|
|
25917
25918
|
var STARTUP_POLL_MS = 200;
|
|
25918
25919
|
async function canConnect(endpoint) {
|
|
25919
|
-
const client = new
|
|
25920
|
+
const client = new import_session_host_core4.SessionHostClient({ endpoint });
|
|
25920
25921
|
try {
|
|
25921
25922
|
await client.connect();
|
|
25922
25923
|
await client.close();
|
|
@@ -25934,14 +25935,14 @@ async function waitForReady(endpoint, timeoutMs = STARTUP_TIMEOUT_MS) {
|
|
|
25934
25935
|
throw new Error(`Session host did not become ready within ${timeoutMs}ms`);
|
|
25935
25936
|
}
|
|
25936
25937
|
async function ensureSessionHostReady(options) {
|
|
25937
|
-
const endpoint = (0,
|
|
25938
|
+
const endpoint = (0, import_session_host_core4.getDefaultSessionHostEndpoint)(options.appName || "adhdev");
|
|
25938
25939
|
if (await canConnect(endpoint)) return endpoint;
|
|
25939
25940
|
options.spawnHost();
|
|
25940
25941
|
await waitForReady(endpoint, options.timeoutMs);
|
|
25941
25942
|
return endpoint;
|
|
25942
25943
|
}
|
|
25943
25944
|
async function listHostedCliRuntimes(endpoint) {
|
|
25944
|
-
const client = new
|
|
25945
|
+
const client = new import_session_host_core4.SessionHostClient({ endpoint });
|
|
25945
25946
|
try {
|
|
25946
25947
|
const response = await client.request({
|
|
25947
25948
|
type: "list_sessions",
|