feat(sdk): complete action parameter and result types

This commit is contained in:
DrSmoothl committed 2026-10-23 13:23:19 +08:00
1 parent b997de44a2
commit 166fcd8613
10 files changed
+1363 -2

No files matched your search

+9
View File
@@ -41,6 +41,14 @@ beforeAll(() => {
const installed = path.join(consumerRoot, 'node_modules', '@snowluma', 'sdk');
mkdirSync(installed, { recursive: true });
copyFileSync(path.join(sdkRoot, 'package.json'), path.join(installed, 'package.json'));
copyFileSync(
path.join(sdkRoot, 'tests', 'fixtures', 'action-types.mts'),
path.join(consumerRoot, 'action-types.mts'),
);
copyFileSync(
path.join(sdkRoot, 'tests', 'fixtures', 'action-contracts.ts'),
path.join(consumerRoot, 'action-contracts.ts'),
);
// Compile fresh output outside the workspace so neither stale dist files nor
// Vitest's source resolver can hide a broken published entry point.
@@ -139,6 +147,7 @@ assert.equal(actions.isSnowLumaAction('consumer_extension'), false);
'--moduleResolution',
resolution,
path.join(consumerRoot, 'consumer.mts'),
path.join(consumerRoot, 'action-types.mts'),
]);
},
30_000,