Spaces:
Runtime error

horriblecpp Claude Sonnet 4.6 commited on
Commit
d58e081
·
1 Parent(s): 87996a7

Fix examples to run correctly end-to-end

Browse files

- Switch example imports from @botcierge/sdk to ../src/index.ts so they
work without a dist/ build step when run with tsx
- Add "type": "module" to package.json so top-level await works in ESM
- Make IntentResult.scores optional to match what the backend actually
returns (classify() only returns domain, intent, confidence)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

6 files changed +6 -5
Files changed (6)
sdk-js/examples/basic.ts+1-1
sdk-js/examples/batch.ts+1-1
sdk-js/examples/custom-client.ts+1-1
sdk-js/examples/error-handling.ts+1-1
sdk-js/package.json+1
sdk-js/src/index.ts+1-1