chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1 @@
nodeLinker: node-modules
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,20 @@
{
"name": "otel-telemetry-loader",
"private": true,
"packageManager": "yarn@4.2.2+sha256.1aa43a5304405be7a7cb9cb5de7b97de9c4e8ddd3273e4dad00d6ae3eb39f0ef",
"engines": {
"pnpm": "8.15.5",
"yarn": "4.2.2"
},
"workspaces": [
"packages/*"
],
"dependencies": {
"@trigger.dev/sdk": "0.0.0-prerelease-20250321122618",
"openai": "4.47.0"
},
"devDependencies": {
"@traceloop/instrumentation-openai": "^0.10.0",
"typescript": "5.5.4"
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
# https://github.com/pnpm/pnpm/issues/2412
packages:
- "packages/*"
@@ -0,0 +1,20 @@
import { task } from "@trigger.dev/sdk/v3";
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: process.env.OPENAI_BASE_URL,
});
export const aiTask = task({
id: "ai",
run: async (payload: { prompt: string }) => {
const chatCompletion = await openai.chat.completions.create({
messages: [{ role: "user", content: payload.prompt }],
model: "gpt-3.5-turbo",
});
return chatCompletion.choices[0];
},
});
@@ -0,0 +1,9 @@
import { defineConfig } from "@trigger.dev/sdk/v3";
import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
export default defineConfig({
project: "<fixture project>",
dirs: ["./src/trigger"],
instrumentations: [new OpenAIInstrumentation()],
maxDuration: 3600,
});
@@ -0,0 +1,32 @@
{
"include": ["src/**/*.ts", "trigger.config.ts"],
"compilerOptions": {
"target": "es2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"moduleDetection": "force",
"verbatimModuleSyntax": false,
"jsx": "react",
"strict": true,
"alwaysStrict": true,
"strictPropertyInitialization": false,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"removeComments": false,
"esModuleInterop": true,
"emitDecoratorMetadata": false,
"experimentalDecorators": false,
"downlevelIteration": true,
"isolatedModules": true,
"noUncheckedIndexedAccess": true,
"pretty": true
}
}
File diff suppressed because it is too large Load Diff