pi-oracle 0.7.10 → 0.7.12
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/CHANGELOG.md +23 -0
- package/README.md +13 -13
- package/docs/ORACLE_DESIGN.md +6 -5
- package/docs/ORACLE_ISOLATED_PI_VALIDATION.md +1 -1
- package/docs/platform-smoke.md +2 -2
- package/extensions/oracle/lib/archive.ts +723 -0
- package/extensions/oracle/lib/config.ts +16 -7
- package/extensions/oracle/lib/jobs.ts +2 -1
- package/extensions/oracle/lib/provider-capabilities.ts +41 -0
- package/extensions/oracle/lib/runtime.ts +9 -5
- package/extensions/oracle/lib/tools.ts +10 -576
- package/package.json +3 -3
- package/platform-smoke.config.mjs +1 -1
- package/scripts/oracle-real-smoke.mjs +4 -2
- package/scripts/platform-smoke/targets.mjs +1 -1
- package/scripts/platform-smoke.mjs +1 -1
|
@@ -14,7 +14,7 @@ const require = createRequire(import.meta.url);
|
|
|
14
14
|
const tsxCli = require.resolve("tsx/cli");
|
|
15
15
|
|
|
16
16
|
const DEFAULT_PROVIDER = "zai";
|
|
17
|
-
const DEFAULT_MODEL = "glm-5.
|
|
17
|
+
const DEFAULT_MODEL = "glm-5.2";
|
|
18
18
|
const DEFAULT_TIMEOUT_MS = 180_000;
|
|
19
19
|
const PACKAGE_NAME = "pi-oracle";
|
|
20
20
|
|
|
@@ -216,7 +216,9 @@ function parseJobArchivePath(jobDir) {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
async function tarList(archivePath) {
|
|
219
|
-
const
|
|
219
|
+
const target = process.platform === "win32" ? basename(archivePath) : archivePath;
|
|
220
|
+
const args = archivePath.endsWith(".tar.gz") ? ["-tzf", target] : ["--zstd", "-tf", target];
|
|
221
|
+
const result = await runCommand(process.platform === "win32" ? "tar.exe" : "tar", args, {
|
|
220
222
|
cwd: process.platform === "win32" ? dirname(archivePath) : process.cwd(),
|
|
221
223
|
env: process.env,
|
|
222
224
|
timeoutMs: 60_000,
|
|
@@ -54,7 +54,7 @@ function realSmokeProvider(config = {}) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
function realSmokeModel(config = {}) {
|
|
57
|
-
return process.env.PI_ORACLE_REAL_TEST_MODEL || config.realSmoke?.defaultModel || "glm-5.
|
|
57
|
+
return process.env.PI_ORACLE_REAL_TEST_MODEL || config.realSmoke?.defaultModel || "glm-5.2";
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function truthy(value) {
|
|
@@ -57,7 +57,7 @@ Environment:
|
|
|
57
57
|
PLATFORM_SMOKE_WINDOWS_WORK_ROOT Windows work root
|
|
58
58
|
PI_ORACLE_SMOKE_* Project-specific aliases for the PLATFORM_SMOKE_* knobs above
|
|
59
59
|
PI_ORACLE_REAL_TEST_PROVIDER Real smoke provider (default: zai)
|
|
60
|
-
PI_ORACLE_REAL_TEST_MODEL Real smoke model (default: glm-5.
|
|
60
|
+
PI_ORACLE_REAL_TEST_MODEL Real smoke model (default: glm-5.2)
|
|
61
61
|
ZAI_API_KEY Default real-smoke provider API key for optional model-agent debugging
|
|
62
62
|
`);
|
|
63
63
|
}
|