sdks/node: mirror Elydora-Node-SDK 2.0.1
Rebuilt from the standalone 2101cb7 tree (durable transactions, Kiro IDE adapter, hook retry with a bounded chain lock, version 2.0.1) with the Open-Source API trims re-applied: no webhooks, members, admin events, deep health, token rotation, or agent integration updates. Claude-Session: https://claude.ai/code/session_01QoUjdc7HGKTsgj5GhG8HvF
This commit is contained in:
1 parent
1656a94811
commit
98c61a0b6f
44 files changed
+6794
-1130
No files matched your search
@@ -0,0 +1,38 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import path from 'node:path';
|
||||
import test from 'node:test';
|
||||
import {
|
||||
createFixture,
|
||||
environment,
|
||||
runProcess,
|
||||
} from '../test-support/opencode-test-helpers.mjs';
|
||||
|
||||
const binary = process.env.ELYDORA_OPENCODE_BINARY;
|
||||
|
||||
test(
|
||||
'official OpenCode 1.18 discovers the generated global JavaScript plugin',
|
||||
{ skip: binary ? false : 'set ELYDORA_OPENCODE_BINARY to the official OpenCode executable' },
|
||||
async () => {
|
||||
const fixture = await createFixture();
|
||||
try {
|
||||
assert.equal((await fixture.install()).code, 0);
|
||||
const env = {
|
||||
...environment(fixture),
|
||||
OPENCODE_DISABLE_AUTOUPDATE: 'true',
|
||||
OPENCODE_DISABLE_MODELS_FETCH: 'true',
|
||||
};
|
||||
const version = await runProcess(binary, ['--version'], env, fixture.projectDir);
|
||||
assert.equal(version.code, 0, version.stderr);
|
||||
assert.match(version.stdout, /^1\.18\./);
|
||||
const paths = await runProcess(binary, ['debug', 'paths'], env, fixture.projectDir);
|
||||
assert.equal(paths.code, 0, paths.stderr);
|
||||
assert.equal(paths.stdout.includes(path.join(fixture.configRoot, 'opencode')), true);
|
||||
const info = await runProcess(binary, ['debug', 'info'], env, fixture.projectDir);
|
||||
assert.equal(info.code, 0, info.stderr);
|
||||
assert.match(info.stdout, /elydora-audit\.js/);
|
||||
assert.doesNotMatch(info.stdout, /elydora-audit\.mjs/);
|
||||
} finally {
|
||||
await fixture.close();
|
||||
}
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user