@struct-ai/sdk 0.1.0
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/LICENSE +201 -0
- package/README.md +168 -0
- package/dist/commonjs/content-capture.d.ts +10 -0
- package/dist/commonjs/content-capture.js +23 -0
- package/dist/commonjs/context.d.ts +30 -0
- package/dist/commonjs/context.js +94 -0
- package/dist/commonjs/core.d.ts +120 -0
- package/dist/commonjs/core.js +408 -0
- package/dist/commonjs/events.d.ts +12 -0
- package/dist/commonjs/events.js +103 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +10 -0
- package/dist/commonjs/integrations/anthropic-content.d.ts +24 -0
- package/dist/commonjs/integrations/anthropic-content.js +178 -0
- package/dist/commonjs/integrations/anthropic.d.ts +34 -0
- package/dist/commonjs/integrations/anthropic.js +377 -0
- package/dist/commonjs/integrations/index.d.ts +5 -0
- package/dist/commonjs/integrations/index.js +47 -0
- package/dist/commonjs/integrations/langchain-callback.d.ts +134 -0
- package/dist/commonjs/integrations/langchain-callback.js +723 -0
- package/dist/commonjs/integrations/langchain-content.d.ts +35 -0
- package/dist/commonjs/integrations/langchain-content.js +307 -0
- package/dist/commonjs/integrations/langchain.d.ts +11 -0
- package/dist/commonjs/integrations/langchain.js +100 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/semconv.d.ts +54 -0
- package/dist/commonjs/semconv.js +74 -0
- package/dist/commonjs/truncation.d.ts +10 -0
- package/dist/commonjs/truncation.js +103 -0
- package/dist/esm/content-capture.d.ts +10 -0
- package/dist/esm/content-capture.js +17 -0
- package/dist/esm/context.d.ts +30 -0
- package/dist/esm/context.js +80 -0
- package/dist/esm/core.d.ts +120 -0
- package/dist/esm/core.js +403 -0
- package/dist/esm/events.d.ts +12 -0
- package/dist/esm/events.js +99 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/integrations/anthropic-content.d.ts +24 -0
- package/dist/esm/integrations/anthropic-content.js +168 -0
- package/dist/esm/integrations/anthropic.d.ts +34 -0
- package/dist/esm/integrations/anthropic.js +370 -0
- package/dist/esm/integrations/index.d.ts +5 -0
- package/dist/esm/integrations/index.js +42 -0
- package/dist/esm/integrations/langchain-callback.d.ts +134 -0
- package/dist/esm/integrations/langchain-callback.js +719 -0
- package/dist/esm/integrations/langchain-content.d.ts +35 -0
- package/dist/esm/integrations/langchain-content.js +294 -0
- package/dist/esm/integrations/langchain.d.ts +11 -0
- package/dist/esm/integrations/langchain.js +95 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/semconv.d.ts +54 -0
- package/dist/esm/semconv.js +71 -0
- package/dist/esm/truncation.d.ts +10 -0
- package/dist/esm/truncation.js +96 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/content-capture.d.ts +10 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/context.d.ts +30 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/core.d.ts +120 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/events.d.ts +12 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/index.d.ts +6 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/anthropic-content.d.ts +24 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/anthropic.d.ts +34 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/index.d.ts +5 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain-callback.d.ts +134 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain-content.d.ts +35 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain.d.ts +11 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/semconv.d.ts +54 -0
- package/dist/node_modules/@struct-ai/sdk/dist/commonjs/truncation.d.ts +10 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/content-capture.d.ts +10 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/context.d.ts +30 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/core.d.ts +120 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/events.d.ts +12 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/index.d.ts +6 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/anthropic-content.d.ts +24 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/anthropic.d.ts +34 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/index.d.ts +5 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain-callback.d.ts +134 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain-content.d.ts +35 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain.d.ts +11 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/package.json +3 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/semconv.d.ts +54 -0
- package/dist/node_modules/@struct-ai/sdk/dist/esm/truncation.d.ts +10 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/esm/package.json +3 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/package.json +103 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/package.json +118 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/package.json +916 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/package.json +188 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api/package.json +96 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api-logs/package.json +91 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/core/package.json +96 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-logs-otlp-proto/package.json +108 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-trace-otlp-proto/package.json +105 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/resources/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-logs/package.json +109 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-base/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-node/package.json +76 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/package.json +140 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/nock/package.json +89 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/tshy/package.json +81 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/typescript/package.json +120 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/vitest/package.json +239 -0
- package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/core.d.ts +244 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/error.d.ts +54 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/index.d.ts +188 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/package.json +103 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/pagination.d.ts +26 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/resource.d.ts +6 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/streaming.d.ts +41 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/uploads.d.ts +75 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/version.d.ts +2 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/experimental.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/index.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/package.json +118 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/agents.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/caches.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/chat_history.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/context.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/documents.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/embeddings.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/example_selectors.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/index.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/indexing.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/load.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/memory.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/messages.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/output_parsers.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/outputs.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/package.json +916 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/prompt_values.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/prompts.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/retrievers.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/runnables.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/singletons.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/stores.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/structured_query.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/tools.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/vectorstores.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/index.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/package.json +188 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/prebuilt.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/pregel.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/remote.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/web.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/zod.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api/package.json +96 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api-logs/package.json +91 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/core/package.json +96 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-logs-otlp-proto/package.json +108 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-trace-otlp-proto/package.json +105 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/resources/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-logs/package.json +109 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-base/package.json +100 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-node/package.json +76 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/assert.d.ts +1062 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/buffer.d.ts +1936 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/child_process.d.ts +1475 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/cluster.d.ts +577 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/console.d.ts +452 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/constants.d.ts +21 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/crypto.d.ts +4590 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/dgram.d.ts +597 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/dns.d.ts +871 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/domain.d.ts +170 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/events.d.ts +977 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/fs.d.ts +4375 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/globals.d.ts +172 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/http.d.ts +2049 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/http2.d.ts +2631 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/https.d.ts +578 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/index.d.ts +93 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/module.d.ts +539 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/net.d.ts +1031 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/os.d.ts +506 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/package.json +140 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/path.d.ts +200 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/process.d.ts +1961 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/punycode.d.ts +117 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/querystring.d.ts +152 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/readline.d.ts +589 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/repl.d.ts +430 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/sea.d.ts +153 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/stream.d.ts +1698 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/test.d.ts +1787 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/timers.d.ts +286 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/tls.d.ts +1259 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/trace_events.d.ts +197 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/tty.d.ts +208 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/url.d.ts +964 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/util.d.ts +2331 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/v8.d.ts +809 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/vm.d.ts +1001 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/wasi.d.ts +181 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/zlib.d.ts +598 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/nock/package.json +89 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/tshy/package.json +81 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/typescript/package.json +120 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/config.d.ts +3 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/coverage.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/environments.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/globals.d.ts +22 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/import-meta.d.ts +5 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/importMeta.d.ts +4 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/jsdom.d.ts +6 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/mocker.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/node.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/optional-runtime-types.d.ts +6 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/optional-types.d.ts +7 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/package.json +239 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/reporters.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/runners.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/snapshot.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/suite.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/worker.d.ts +1 -0
- package/dist/node_modules/@struct-ai/sdk/package.json +100 -0
- package/package.json +100 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tshy",
|
|
3
|
+
"version": "3.3.2",
|
|
4
|
+
"description": "TypeScript HYbridizer - Hybrid (CommonJS/ESM) TypeScript node package builder",
|
|
5
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
|
|
6
|
+
"license": "BlueOak-1.0.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": "./dist/esm/bin-min.mjs",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@typescript/native-preview": "^7.0.0-dev.20260218.1",
|
|
14
|
+
"chalk": "^5.6.2",
|
|
15
|
+
"chokidar": "^4.0.3",
|
|
16
|
+
"foreground-child": "^4.0.0",
|
|
17
|
+
"jsonc-simple-parser": "^3.0.0",
|
|
18
|
+
"minimatch": "^10.0.3",
|
|
19
|
+
"mkdirp": "^3.0.1",
|
|
20
|
+
"polite-json": "^5.0.0",
|
|
21
|
+
"resolve-import": "^2.4.0",
|
|
22
|
+
"rimraf": "^6.1.2",
|
|
23
|
+
"sync-content": "^2.0.3",
|
|
24
|
+
"typescript": "^5.9.3",
|
|
25
|
+
"walk-up-path": "^4.0.0"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"preversion": "npm test",
|
|
29
|
+
"postversion": "npm publish",
|
|
30
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
31
|
+
"prepare": "tsgo -p .tshy/esm.json && bash scripts/fixup.sh",
|
|
32
|
+
"pretest": "npm run prepare",
|
|
33
|
+
"presnap": "npm run prepare",
|
|
34
|
+
"format": "prettier --write . --ignore-path ./.prettierignore --cache",
|
|
35
|
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts",
|
|
36
|
+
"test": "tap",
|
|
37
|
+
"snap": "tap"
|
|
38
|
+
},
|
|
39
|
+
"tap": {
|
|
40
|
+
"coverage-map": "map.js"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": "20 || >=22"
|
|
44
|
+
},
|
|
45
|
+
"repository": "https://github.com/isaacs/tshy",
|
|
46
|
+
"keywords": [
|
|
47
|
+
"typescript",
|
|
48
|
+
"tsc",
|
|
49
|
+
"hybrid",
|
|
50
|
+
"esm",
|
|
51
|
+
"commonjs",
|
|
52
|
+
"build"
|
|
53
|
+
],
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "^24.6.1",
|
|
56
|
+
"esbuild": "^0.27.2",
|
|
57
|
+
"prettier": "^3.6.2",
|
|
58
|
+
"tap": "^21.1.4",
|
|
59
|
+
"typedoc": "^0.28.14"
|
|
60
|
+
},
|
|
61
|
+
"tshy": {
|
|
62
|
+
"compiler": "tsgo",
|
|
63
|
+
"dialects": [
|
|
64
|
+
"esm"
|
|
65
|
+
],
|
|
66
|
+
"exports": {
|
|
67
|
+
"./package.json": "./package.json",
|
|
68
|
+
".": "./src/index.ts"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"exports": {
|
|
72
|
+
"./package.json": "./package.json",
|
|
73
|
+
".": {
|
|
74
|
+
"import": {
|
|
75
|
+
"types": "./dist/esm/index.d.ts",
|
|
76
|
+
"default": "./dist/esm/index.js"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"module": "./dist/esm/index.js"
|
|
81
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "5.9.3",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"typings": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc": "./bin/tsc",
|
|
26
|
+
"tsserver": "./bin/tsserver"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14.17"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin",
|
|
33
|
+
"lib",
|
|
34
|
+
"!lib/enu",
|
|
35
|
+
"LICENSE.txt",
|
|
36
|
+
"README.md",
|
|
37
|
+
"SECURITY.md",
|
|
38
|
+
"ThirdPartyNoticeText.txt",
|
|
39
|
+
"!**/.gitattributes"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@dprint/formatter": "^0.4.1",
|
|
43
|
+
"@dprint/typescript": "0.93.4",
|
|
44
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
+
"@eslint/js": "^9.20.0",
|
|
46
|
+
"@octokit/rest": "^21.1.1",
|
|
47
|
+
"@types/chai": "^4.3.20",
|
|
48
|
+
"@types/diff": "^7.0.1",
|
|
49
|
+
"@types/minimist": "^1.2.5",
|
|
50
|
+
"@types/mocha": "^10.0.10",
|
|
51
|
+
"@types/ms": "^0.7.34",
|
|
52
|
+
"@types/node": "latest",
|
|
53
|
+
"@types/source-map-support": "^0.5.10",
|
|
54
|
+
"@types/which": "^3.0.4",
|
|
55
|
+
"@typescript-eslint/rule-tester": "^8.24.1",
|
|
56
|
+
"@typescript-eslint/type-utils": "^8.24.1",
|
|
57
|
+
"@typescript-eslint/utils": "^8.24.1",
|
|
58
|
+
"azure-devops-node-api": "^14.1.0",
|
|
59
|
+
"c8": "^10.1.3",
|
|
60
|
+
"chai": "^4.5.0",
|
|
61
|
+
"chokidar": "^4.0.3",
|
|
62
|
+
"diff": "^7.0.0",
|
|
63
|
+
"dprint": "^0.49.0",
|
|
64
|
+
"esbuild": "^0.25.0",
|
|
65
|
+
"eslint": "^9.20.1",
|
|
66
|
+
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
|
67
|
+
"eslint-plugin-regexp": "^2.7.0",
|
|
68
|
+
"fast-xml-parser": "^4.5.2",
|
|
69
|
+
"glob": "^10.4.5",
|
|
70
|
+
"globals": "^15.15.0",
|
|
71
|
+
"hereby": "^1.10.0",
|
|
72
|
+
"jsonc-parser": "^3.3.1",
|
|
73
|
+
"knip": "^5.44.4",
|
|
74
|
+
"minimist": "^1.2.8",
|
|
75
|
+
"mocha": "^10.8.2",
|
|
76
|
+
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
77
|
+
"monocart-coverage-reports": "^2.12.1",
|
|
78
|
+
"ms": "^2.1.3",
|
|
79
|
+
"picocolors": "^1.1.1",
|
|
80
|
+
"playwright": "^1.50.1",
|
|
81
|
+
"source-map-support": "^0.5.21",
|
|
82
|
+
"tslib": "^2.8.1",
|
|
83
|
+
"typescript": "^5.7.3",
|
|
84
|
+
"typescript-eslint": "^8.24.1",
|
|
85
|
+
"which": "^3.0.1"
|
|
86
|
+
},
|
|
87
|
+
"overrides": {
|
|
88
|
+
"typescript@*": "$typescript"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"test": "hereby runtests-parallel --light=false",
|
|
92
|
+
"test:eslint-rules": "hereby run-eslint-rules-tests",
|
|
93
|
+
"build": "npm run build:compiler && npm run build:tests",
|
|
94
|
+
"build:compiler": "hereby local",
|
|
95
|
+
"build:tests": "hereby tests",
|
|
96
|
+
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
97
|
+
"clean": "hereby clean",
|
|
98
|
+
"gulp": "hereby",
|
|
99
|
+
"lint": "hereby lint",
|
|
100
|
+
"knip": "hereby knip",
|
|
101
|
+
"format": "dprint fmt",
|
|
102
|
+
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
103
|
+
},
|
|
104
|
+
"browser": {
|
|
105
|
+
"fs": false,
|
|
106
|
+
"os": false,
|
|
107
|
+
"path": false,
|
|
108
|
+
"crypto": false,
|
|
109
|
+
"buffer": false,
|
|
110
|
+
"source-map-support": false,
|
|
111
|
+
"inspector": false,
|
|
112
|
+
"perf_hooks": false
|
|
113
|
+
},
|
|
114
|
+
"packageManager": "npm@8.19.4",
|
|
115
|
+
"volta": {
|
|
116
|
+
"node": "20.1.0",
|
|
117
|
+
"npm": "8.19.4"
|
|
118
|
+
},
|
|
119
|
+
"gitHead": "c63de15a992d37f0d6cec03ac7631872838602cb"
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/coverage.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/environments'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
let suite: typeof import('vitest')['suite']
|
|
3
|
+
let test: typeof import('vitest')['test']
|
|
4
|
+
let chai: typeof import("vitest")["chai"]
|
|
5
|
+
let describe: typeof import('vitest')['describe']
|
|
6
|
+
let it: typeof import('vitest')['it']
|
|
7
|
+
let expectTypeOf: typeof import('vitest')['expectTypeOf']
|
|
8
|
+
let assertType: typeof import('vitest')['assertType']
|
|
9
|
+
let expect: typeof import('vitest')['expect']
|
|
10
|
+
let assert: typeof import('vitest')['assert']
|
|
11
|
+
let vitest: typeof import('vitest')['vitest']
|
|
12
|
+
let vi: typeof import('vitest')['vitest']
|
|
13
|
+
let beforeAll: typeof import('vitest')['beforeAll']
|
|
14
|
+
let afterAll: typeof import('vitest')['afterAll']
|
|
15
|
+
let beforeEach: typeof import('vitest')['beforeEach']
|
|
16
|
+
let afterEach: typeof import('vitest')['afterEach']
|
|
17
|
+
let aroundEach: typeof import('vitest')['aroundEach']
|
|
18
|
+
let aroundAll: typeof import('vitest')['aroundAll']
|
|
19
|
+
let onTestFailed: typeof import('vitest')['onTestFailed']
|
|
20
|
+
let onTestFinished: typeof import('vitest')['onTestFinished']
|
|
21
|
+
}
|
|
22
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/mocker.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/node.js'
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vitest",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "4.1.3",
|
|
5
|
+
"description": "Next generation testing framework powered by Vite",
|
|
6
|
+
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"funding": "https://opencollective.com/vitest",
|
|
9
|
+
"homepage": "https://vitest.dev",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/vitest-dev/vitest.git",
|
|
13
|
+
"directory": "packages/vitest"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/vitest-dev/vitest/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"vite",
|
|
20
|
+
"vitest",
|
|
21
|
+
"test",
|
|
22
|
+
"jest"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"imports": {
|
|
26
|
+
"#module-evaluator": {
|
|
27
|
+
"types": "./dist/module-evaluator.d.ts",
|
|
28
|
+
"default": "./dist/module-evaluator.js"
|
|
29
|
+
},
|
|
30
|
+
"#nodejs-worker-loader": "./dist/nodejs-worker-loader.js"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./index.d.cts",
|
|
40
|
+
"default": "./index.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"./browser": {
|
|
44
|
+
"types": "./browser/context.d.ts",
|
|
45
|
+
"default": "./browser/context.js"
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json",
|
|
48
|
+
"./optional-types.js": {
|
|
49
|
+
"types": "./optional-types.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./optional-runtime-types.js": {
|
|
52
|
+
"types": "./optional-runtime-types.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./src/*": "./src/*",
|
|
55
|
+
"./globals": {
|
|
56
|
+
"types": "./globals.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./jsdom": {
|
|
59
|
+
"types": "./jsdom.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./importMeta": {
|
|
62
|
+
"types": "./importMeta.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./import-meta": {
|
|
65
|
+
"types": "./import-meta.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./node": {
|
|
68
|
+
"types": "./dist/node.d.ts",
|
|
69
|
+
"default": "./dist/node.js"
|
|
70
|
+
},
|
|
71
|
+
"./internal/browser": {
|
|
72
|
+
"types": "./dist/browser.d.ts",
|
|
73
|
+
"default": "./dist/browser.js"
|
|
74
|
+
},
|
|
75
|
+
"./runners": {
|
|
76
|
+
"types": "./dist/runners.d.ts",
|
|
77
|
+
"default": "./dist/runners.js"
|
|
78
|
+
},
|
|
79
|
+
"./suite": {
|
|
80
|
+
"types": "./dist/suite.d.ts",
|
|
81
|
+
"default": "./dist/suite.js"
|
|
82
|
+
},
|
|
83
|
+
"./environments": {
|
|
84
|
+
"types": "./dist/environments.d.ts",
|
|
85
|
+
"default": "./dist/environments.js"
|
|
86
|
+
},
|
|
87
|
+
"./config": {
|
|
88
|
+
"types": "./config.d.ts",
|
|
89
|
+
"require": "./dist/config.cjs",
|
|
90
|
+
"default": "./dist/config.js"
|
|
91
|
+
},
|
|
92
|
+
"./coverage": {
|
|
93
|
+
"types": "./coverage.d.ts",
|
|
94
|
+
"default": "./dist/coverage.js"
|
|
95
|
+
},
|
|
96
|
+
"./reporters": {
|
|
97
|
+
"types": "./dist/reporters.d.ts",
|
|
98
|
+
"default": "./dist/reporters.js"
|
|
99
|
+
},
|
|
100
|
+
"./snapshot": {
|
|
101
|
+
"types": "./dist/snapshot.d.ts",
|
|
102
|
+
"default": "./dist/snapshot.js"
|
|
103
|
+
},
|
|
104
|
+
"./runtime": {
|
|
105
|
+
"types": "./dist/runtime.d.ts",
|
|
106
|
+
"default": "./dist/runtime.js"
|
|
107
|
+
},
|
|
108
|
+
"./worker": {
|
|
109
|
+
"types": "./worker.d.ts",
|
|
110
|
+
"default": "./dist/worker.js"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"main": "./dist/index.js",
|
|
114
|
+
"module": "./dist/index.js",
|
|
115
|
+
"types": "./dist/index.d.ts",
|
|
116
|
+
"bin": {
|
|
117
|
+
"vitest": "./vitest.mjs"
|
|
118
|
+
},
|
|
119
|
+
"files": [
|
|
120
|
+
"*.cjs",
|
|
121
|
+
"*.d.cts",
|
|
122
|
+
"*.d.ts",
|
|
123
|
+
"*.mjs",
|
|
124
|
+
"bin",
|
|
125
|
+
"browser",
|
|
126
|
+
"dist"
|
|
127
|
+
],
|
|
128
|
+
"engines": {
|
|
129
|
+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
|
130
|
+
},
|
|
131
|
+
"peerDependencies": {
|
|
132
|
+
"@edge-runtime/vm": "*",
|
|
133
|
+
"@opentelemetry/api": "^1.9.0",
|
|
134
|
+
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
|
|
135
|
+
"happy-dom": "*",
|
|
136
|
+
"jsdom": "*",
|
|
137
|
+
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
138
|
+
"@vitest/browser-playwright": "4.1.3",
|
|
139
|
+
"@vitest/browser-preview": "4.1.3",
|
|
140
|
+
"@vitest/browser-webdriverio": "4.1.3",
|
|
141
|
+
"@vitest/coverage-istanbul": "4.1.3",
|
|
142
|
+
"@vitest/coverage-v8": "4.1.3",
|
|
143
|
+
"@vitest/ui": "4.1.3"
|
|
144
|
+
},
|
|
145
|
+
"peerDependenciesMeta": {
|
|
146
|
+
"@edge-runtime/vm": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@opentelemetry/api": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"@types/node": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"@vitest/browser-playwright": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"@vitest/browser-preview": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"@vitest/browser-webdriverio": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"@vitest/coverage-istanbul": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@vitest/coverage-v8": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"@vitest/ui": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"happy-dom": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"jsdom": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"vite": {
|
|
180
|
+
"optional": false
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"dependencies": {
|
|
184
|
+
"es-module-lexer": "^2.0.0",
|
|
185
|
+
"expect-type": "^1.3.0",
|
|
186
|
+
"magic-string": "^0.30.21",
|
|
187
|
+
"obug": "^2.1.1",
|
|
188
|
+
"pathe": "^2.0.3",
|
|
189
|
+
"picomatch": "^4.0.3",
|
|
190
|
+
"std-env": "^4.0.0-rc.1",
|
|
191
|
+
"tinybench": "^2.9.0",
|
|
192
|
+
"tinyexec": "^1.0.2",
|
|
193
|
+
"tinyglobby": "^0.2.15",
|
|
194
|
+
"tinyrainbow": "^3.1.0",
|
|
195
|
+
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
196
|
+
"why-is-node-running": "^2.3.0",
|
|
197
|
+
"@vitest/expect": "4.1.3",
|
|
198
|
+
"@vitest/mocker": "4.1.3",
|
|
199
|
+
"@vitest/pretty-format": "4.1.3",
|
|
200
|
+
"@vitest/snapshot": "4.1.3",
|
|
201
|
+
"@vitest/utils": "4.1.3",
|
|
202
|
+
"@vitest/runner": "4.1.3",
|
|
203
|
+
"@vitest/spy": "4.1.3"
|
|
204
|
+
},
|
|
205
|
+
"devDependencies": {
|
|
206
|
+
"@antfu/install-pkg": "^1.1.0",
|
|
207
|
+
"@bomb.sh/tab": "^0.0.14",
|
|
208
|
+
"@edge-runtime/vm": "^5.0.0",
|
|
209
|
+
"@jridgewell/trace-mapping": "0.3.31",
|
|
210
|
+
"@opentelemetry/api": "^1.9.0",
|
|
211
|
+
"@sinonjs/fake-timers": "15.0.0",
|
|
212
|
+
"@types/estree": "^1.0.8",
|
|
213
|
+
"@types/istanbul-lib-coverage": "^2.0.6",
|
|
214
|
+
"@types/istanbul-reports": "^3.0.4",
|
|
215
|
+
"@types/jsdom": "^27.0.0",
|
|
216
|
+
"@types/node": "^24.12.0",
|
|
217
|
+
"@types/picomatch": "^4.0.2",
|
|
218
|
+
"@types/prompts": "^2.4.9",
|
|
219
|
+
"@types/sinonjs__fake-timers": "^15.0.1",
|
|
220
|
+
"acorn": "8.11.3",
|
|
221
|
+
"acorn-walk": "^8.3.5",
|
|
222
|
+
"birpc": "^4.0.0",
|
|
223
|
+
"cac": "^6.7.14",
|
|
224
|
+
"empathic": "^2.0.0",
|
|
225
|
+
"flatted": "^3.4.2",
|
|
226
|
+
"happy-dom": "^20.8.3",
|
|
227
|
+
"jsdom": "^27.4.0",
|
|
228
|
+
"local-pkg": "^1.1.2",
|
|
229
|
+
"mime": "^4.1.0",
|
|
230
|
+
"prompts": "^2.4.2",
|
|
231
|
+
"strip-literal": "^3.1.0",
|
|
232
|
+
"tinyhighlight": "^0.3.2",
|
|
233
|
+
"ws": "^8.19.0"
|
|
234
|
+
},
|
|
235
|
+
"scripts": {
|
|
236
|
+
"build": "premove dist && rollup -c",
|
|
237
|
+
"dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/reporters.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/runners.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/snapshot.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/suite.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/worker.js'
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@struct-ai/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Struct agent observability SDK — auto-instruments AI agent frameworks with OpenTelemetry",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/commonjs/index.js",
|
|
7
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/esm/index.d.ts",
|
|
12
|
+
"default": "./dist/esm/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
16
|
+
"default": "./dist/commonjs/index.js"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/**/*.js",
|
|
22
|
+
"dist/**/*.d.ts",
|
|
23
|
+
"dist/**/package.json",
|
|
24
|
+
"README.md",
|
|
25
|
+
"LICENSE"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tshy",
|
|
29
|
+
"dev": "tshy --watch",
|
|
30
|
+
"clean": "rm -rf dist .tshy .tshy-build",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "eslint src --max-warnings 0",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:watch": "vitest"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"struct",
|
|
38
|
+
"observability",
|
|
39
|
+
"opentelemetry",
|
|
40
|
+
"anthropic",
|
|
41
|
+
"langchain",
|
|
42
|
+
"agent"
|
|
43
|
+
],
|
|
44
|
+
"author": "Struct",
|
|
45
|
+
"license": "Apache-2.0",
|
|
46
|
+
"homepage": "https://struct.ai",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://struct.ai/support"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=18.0.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@opentelemetry/api": "^1.9.0",
|
|
58
|
+
"@opentelemetry/api-logs": "^0.52.0",
|
|
59
|
+
"@opentelemetry/core": "^1.25.0",
|
|
60
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.52.0",
|
|
61
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.52.0",
|
|
62
|
+
"@opentelemetry/resources": "^1.25.0",
|
|
63
|
+
"@opentelemetry/sdk-logs": "^0.52.0",
|
|
64
|
+
"@opentelemetry/sdk-trace-base": "^1.25.0",
|
|
65
|
+
"@opentelemetry/sdk-trace-node": "^1.25.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@anthropic-ai/sdk": ">=0.30.0",
|
|
69
|
+
"@langchain/core": ">=0.3.0",
|
|
70
|
+
"@langchain/langgraph": ">=0.2.0"
|
|
71
|
+
},
|
|
72
|
+
"peerDependenciesMeta": {
|
|
73
|
+
"@anthropic-ai/sdk": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@langchain/core": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@langchain/langgraph": {
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@anthropic-ai/sdk": "^0.30.0",
|
|
85
|
+
"@langchain/anthropic": "^0.3.0",
|
|
86
|
+
"@langchain/core": "^0.3.0",
|
|
87
|
+
"@langchain/langgraph": "^0.2.0",
|
|
88
|
+
"@types/node": "^20.0.0",
|
|
89
|
+
"nock": "^13.5.0",
|
|
90
|
+
"tshy": "^3.0.0",
|
|
91
|
+
"typescript": "^5.5.0",
|
|
92
|
+
"vitest": "^4.0.0"
|
|
93
|
+
},
|
|
94
|
+
"tshy": {
|
|
95
|
+
"exports": {
|
|
96
|
+
".": "./src/index.ts"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"module": "./dist/esm/index.js"
|
|
100
|
+
}
|