@peakflo/agent-harness 0.2.15 → 0.2.16-rc.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/capabilities.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { RunnerCapabilities } from './types';
|
|
|
34
34
|
* chat browser (409 + `x-pf-browser-takeover`) and gives Pi a 24 h timeout
|
|
35
35
|
* for that server. The API leases the `browser` server only with this.
|
|
36
36
|
*/
|
|
37
|
-
export declare const HARNESS_FEATURES: readonly ["spaceFiles", "browserTakeover"];
|
|
37
|
+
export declare const HARNESS_FEATURES: readonly ["spaceFiles", "codexRepositoryAccess", "browserTakeover"];
|
|
38
38
|
/** Steering mode was verified with Pi 0.84.3. Older Pi keeps the queue path. */
|
|
39
39
|
export declare function supportsPiSteering(version: string | null): boolean;
|
|
40
40
|
export interface ProbeResult {
|
package/dist/capabilities.js
CHANGED
|
@@ -34,6 +34,7 @@ const node_fs_1 = require("node:fs");
|
|
|
34
34
|
const node_os_1 = require("node:os");
|
|
35
35
|
const node_path_1 = require("node:path");
|
|
36
36
|
const browser_takeover_1 = require("./runtime/browser-takeover");
|
|
37
|
+
const vendor_backends_1 = require("./vendor-backends");
|
|
37
38
|
const version_1 = require("./version");
|
|
38
39
|
const PROBE_TIMEOUT_MS = 10_000;
|
|
39
40
|
/**
|
|
@@ -48,6 +49,7 @@ const PROBE_TIMEOUT_MS = 10_000;
|
|
|
48
49
|
*/
|
|
49
50
|
exports.HARNESS_FEATURES = [
|
|
50
51
|
'spaceFiles',
|
|
52
|
+
vendor_backends_1.CODEX_REPOSITORY_FEATURE,
|
|
51
53
|
browser_takeover_1.BROWSER_HARNESS_FEATURE
|
|
52
54
|
];
|
|
53
55
|
/** Steering mode was verified with Pi 0.84.3. Older Pi keeps the queue path. */
|
|
@@ -2776,6 +2776,7 @@ class SessionRunner {
|
|
|
2776
2776
|
sessionDirectUrls(session, knowledgeUrl) {
|
|
2777
2777
|
return [
|
|
2778
2778
|
session.agent.model.gatewayUrl ?? '',
|
|
2779
|
+
...(0, vendor_backends_1.vendorModelDirectUrls)(session.agent.backend),
|
|
2779
2780
|
...session.agent.mcpServers.map((server) => server.url),
|
|
2780
2781
|
...(knowledgeUrl ? [knowledgeUrl] : [])
|
|
2781
2782
|
];
|
|
@@ -41,6 +41,9 @@ export declare function vendorModelId(model: {
|
|
|
41
41
|
provider?: string | null;
|
|
42
42
|
model?: string | null;
|
|
43
43
|
}, backend: string): string | undefined;
|
|
44
|
+
export declare const CODEX_REPOSITORY_FEATURE = "codexRepositoryAccess";
|
|
45
|
+
/** Model/auth traffic must not enter the GitHub-only TLS proxy after checkout. */
|
|
46
|
+
export declare function vendorModelDirectUrls(backend: string): string[];
|
|
44
47
|
export declare const CLAUDE_SDK_PACKAGE = "@anthropic-ai/claude-agent-sdk";
|
|
45
48
|
/**
|
|
46
49
|
* Why a harness that is installed and signed in still cannot be run by this
|
package/dist/vendor-backends.js
CHANGED
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
* stays Pi-only.
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.NOT_RUNNABLE_REASONS = exports.CLAUDE_SDK_PACKAGE = exports.VENDOR_BACKENDS = void 0;
|
|
25
|
+
exports.NOT_RUNNABLE_REASONS = exports.CLAUDE_SDK_PACKAGE = exports.CODEX_REPOSITORY_FEATURE = exports.VENDOR_BACKENDS = void 0;
|
|
26
26
|
exports.isVendorBackend = isVendorBackend;
|
|
27
27
|
exports.vendorModelId = vendorModelId;
|
|
28
|
+
exports.vendorModelDirectUrls = vendorModelDirectUrls;
|
|
28
29
|
exports.resolveClaudeSdk = resolveClaudeSdk;
|
|
29
30
|
exports.vendorBackendBlocker = vendorBackendBlocker;
|
|
30
31
|
const node_module_1 = require("node:module");
|
|
@@ -51,6 +52,20 @@ function vendorModelId(model, backend) {
|
|
|
51
52
|
const provider = (model.provider ?? '').trim();
|
|
52
53
|
return name && provider === backend ? name : undefined;
|
|
53
54
|
}
|
|
55
|
+
exports.CODEX_REPOSITORY_FEATURE = 'codexRepositoryAccess';
|
|
56
|
+
/** Model/auth traffic must not enter the GitHub-only TLS proxy after checkout. */
|
|
57
|
+
function vendorModelDirectUrls(backend) {
|
|
58
|
+
// Codex subscription calls were observed at chatgpt.com during the local
|
|
59
|
+
// add-repository smoke. Include its token refresh and API-key paths too.
|
|
60
|
+
// Exact hosts only: GitHub always keeps its sentinel and branch policy.
|
|
61
|
+
return backend === 'codex'
|
|
62
|
+
? [
|
|
63
|
+
'https://chatgpt.com',
|
|
64
|
+
'https://auth.openai.com',
|
|
65
|
+
'https://api.openai.com'
|
|
66
|
+
]
|
|
67
|
+
: [];
|
|
68
|
+
}
|
|
54
69
|
/* -------------------------------------------------------------------------- */
|
|
55
70
|
/* The Claude Agent SDK */
|
|
56
71
|
/* -------------------------------------------------------------------------- */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peakflo/agent-harness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16-rc.1",
|
|
4
4
|
"description": "Headless Peakflo coding-agent harness. One codebase, three hosting modes: a Daytona cloud sandbox, a customer VM, and the 20x desktop.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|