@agentproto/driver-agent-cli 2.6.2 → 2.6.4
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.
|
@@ -4,9 +4,10 @@ import { createAcpClient } from '@agentproto/acp/client';
|
|
|
4
4
|
import { spawn, execFile } from 'child_process';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync, rmdirSync, realpathSync, mkdtempSync } from 'fs';
|
|
6
6
|
import { createInterface } from 'readline';
|
|
7
|
-
import { join, resolve, delimiter, dirname, basename } from 'path';
|
|
7
|
+
import { join, isAbsolute, resolve, delimiter, dirname, basename } from 'path';
|
|
8
8
|
import { tmpdir, homedir } from 'os';
|
|
9
9
|
import { loadAdapterSpawnSandboxConfig, resolveCommandSandbox } from '@agentproto/command-sandbox';
|
|
10
|
+
import { pathToFileURL } from 'url';
|
|
10
11
|
import { randomUUID, createHash } from 'crypto';
|
|
11
12
|
import { createDoctype } from '@agentproto/define-doctype';
|
|
12
13
|
|
|
@@ -1528,12 +1529,11 @@ function waitForExit(child) {
|
|
|
1528
1529
|
child.once("error", () => resolve2(null));
|
|
1529
1530
|
});
|
|
1530
1531
|
}
|
|
1531
|
-
|
|
1532
|
-
// src/protocol/proprietary.ts
|
|
1533
1532
|
async function createProprietaryProtocolArm(options) {
|
|
1534
1533
|
let mod;
|
|
1535
1534
|
try {
|
|
1536
|
-
|
|
1535
|
+
const target = isAbsolute(options.adapter) ? pathToFileURL(options.adapter).href : options.adapter;
|
|
1536
|
+
mod = await import(target);
|
|
1537
1537
|
} catch (err) {
|
|
1538
1538
|
const cause = err instanceof Error ? err.message : String(err);
|
|
1539
1539
|
throw new Error(
|
|
@@ -2381,5 +2381,5 @@ function derivedModelRefusalError(definition, requested, reason) {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, agentCliSupportsHostContextIsolation, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, hostContextExcludes, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers };
|
|
2384
|
-
//# sourceMappingURL=chunk-
|
|
2385
|
-
//# sourceMappingURL=chunk-
|
|
2384
|
+
//# sourceMappingURL=chunk-D4NQQ2C7.mjs.map
|
|
2385
|
+
//# sourceMappingURL=chunk-D4NQQ2C7.mjs.map
|