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:
雷电芽衣 committed 2026-09-02 11:01:55 -04:00
1 parent 1656a94811
commit 98c61a0b6f
44 files changed
+6794 -1130

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import {
createFixture,
runProcess,
} from '../test-support/kirocli-test-helpers.mjs';
test('official Kiro CLI 2.13 validates the installed v2 agent contract', {
skip: process.env.ELYDORA_KIRO_CLI_BINARY
? false
: 'set ELYDORA_KIRO_CLI_BINARY to the official Kiro CLI executable',
}, async () => {
const fixture = await createFixture();
try {
const install = await fixture.install();
assert.equal(install.code, 0, install.stderr);
const binary = process.env.ELYDORA_KIRO_CLI_BINARY;
const version = await runProcess(binary, ['--version'], {}, fixture.projectDir);
assert.equal(version.code, 0, version.stderr);
assert.match(version.stdout, /\b2\.13\.\d+\b/);
const validation = await runProcess(
binary,
['agent', 'validate', '--path', fixture.v2Path],
{},
fixture.projectDir,
);
assert.equal(validation.code, 0, validation.stderr);
} finally {
await fixture.close();
}
});