langwatch 0.7.1 → 0.8.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/README.md +43 -52
- package/dist/{add-HWFRMAQX.mjs → add-TMFGG3SC.mjs} +7 -7
- package/dist/{add-5QV3TEWC.js → add-VOEIH432.js} +24 -24
- package/dist/{add-5QV3TEWC.js.map → add-VOEIH432.js.map} +1 -1
- package/dist/{chunk-5HAVK64Q.js → chunk-B5K6DU6G.js} +2 -2
- package/dist/chunk-B5K6DU6G.js.map +1 -0
- package/dist/{chunk-VMZUN4EF.js → chunk-BP2WGNIV.js} +3 -1
- package/dist/chunk-BP2WGNIV.js.map +1 -0
- package/dist/{chunk-UNMZPS55.mjs → chunk-DQU2PZAL.mjs} +3 -1
- package/dist/chunk-DQU2PZAL.mjs.map +1 -0
- package/dist/{chunk-DZH6SY3Z.js → chunk-GC7VHCU5.js} +10 -10
- package/dist/{chunk-DZH6SY3Z.js.map → chunk-GC7VHCU5.js.map} +1 -1
- package/dist/{chunk-7VHZNB2S.mjs → chunk-GMQHOSEU.mjs} +2 -2
- package/dist/chunk-GMQHOSEU.mjs.map +1 -0
- package/dist/{chunk-AD7QRYIJ.mjs → chunk-MBXENFRR.mjs} +2 -2
- package/dist/{chunk-PYVDTUA6.mjs → chunk-O6D3W3PG.mjs} +38 -49
- package/dist/chunk-O6D3W3PG.mjs.map +1 -0
- package/dist/{chunk-EPGKOTSN.mjs → chunk-SC4YBWRM.mjs} +17 -7
- package/dist/chunk-SC4YBWRM.mjs.map +1 -0
- package/dist/{chunk-7MG7DGPP.mjs → chunk-VH7IIHFW.mjs} +109 -20
- package/dist/chunk-VH7IIHFW.mjs.map +1 -0
- package/dist/{chunk-J55AV2YW.js → chunk-VWZCWYRH.js} +121 -32
- package/dist/chunk-VWZCWYRH.js.map +1 -0
- package/dist/{chunk-36XAYVMC.js → chunk-WAAQLJ67.js} +39 -50
- package/dist/chunk-WAAQLJ67.js.map +1 -0
- package/dist/{chunk-D7UAKYVI.js → chunk-XHNJY5BP.js} +26 -16
- package/dist/chunk-XHNJY5BP.js.map +1 -0
- package/dist/cli/index.js +7 -7
- package/dist/cli/index.mjs +7 -7
- package/dist/{create-S5RDGF3H.js → create-ACGBGFVO.js} +8 -8
- package/dist/{create-S5RDGF3H.js.map → create-ACGBGFVO.js.map} +1 -1
- package/dist/{create-LXQB4EFB.mjs → create-YUOTG2TS.mjs} +3 -3
- package/dist/{implementation-DsHp9FYU.d.ts → implementation-TF91Gn0l.d.ts} +154 -20
- package/dist/{implementation-nE9dgTwc.d.mts → implementation-pq0g2B5y.d.mts} +154 -20
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +13 -13
- package/dist/index.mjs +5 -5
- package/dist/{init-T4YDPHBA.mjs → init-ED3OW3TK.mjs} +3 -3
- package/dist/{init-UADBKUJU.js → init-UFZF26SF.js} +4 -4
- package/dist/{init-UADBKUJU.js.map → init-UFZF26SF.js.map} +1 -1
- package/dist/{list-HSCIBC4Z.js → list-42DGIFAC.js} +9 -9
- package/dist/{list-HSCIBC4Z.js.map → list-42DGIFAC.js.map} +1 -1
- package/dist/{list-BQXECLEM.mjs → list-KDYBQLVU.mjs} +6 -6
- package/dist/{login-EUDCIJRM.js → login-IRO5FBZI.js} +3 -3
- package/dist/{login-EUDCIJRM.js.map → login-IRO5FBZI.js.map} +1 -1
- package/dist/{login-3IM3PYSJ.mjs → login-RNWEYFQK.mjs} +2 -2
- package/dist/observability-sdk/index.d.mts +4 -3
- package/dist/observability-sdk/index.d.ts +4 -3
- package/dist/observability-sdk/index.js +4 -4
- package/dist/observability-sdk/index.mjs +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.js +3 -3
- package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
- package/dist/observability-sdk/setup/node/index.js +29 -10
- package/dist/observability-sdk/setup/node/index.js.map +1 -1
- package/dist/observability-sdk/setup/node/index.mjs +21 -2
- package/dist/observability-sdk/setup/node/index.mjs.map +1 -1
- package/dist/{remove-VDQ4M6JF.js → remove-5EXAIGBX.js} +14 -14
- package/dist/{remove-VDQ4M6JF.js.map → remove-5EXAIGBX.js.map} +1 -1
- package/dist/{remove-IVFQAHNT.mjs → remove-UWKI7GIJ.mjs} +6 -6
- package/dist/{sync-KUMBMGJS.js → sync-MOBSZVYV.js} +30 -31
- package/dist/sync-MOBSZVYV.js.map +1 -0
- package/dist/{sync-2MVHHWCX.mjs → sync-WJSJIKEW.mjs} +12 -13
- package/dist/sync-WJSJIKEW.mjs.map +1 -0
- package/dist/{types-B9772cUR.d.ts → types-CAQOMGrf.d.ts} +161 -43
- package/dist/{types-DbPAi4US.d.mts → types-DhEYjnRD.d.mts} +161 -43
- package/package.json +3 -2
- package/dist/chunk-36XAYVMC.js.map +0 -1
- package/dist/chunk-5HAVK64Q.js.map +0 -1
- package/dist/chunk-7MG7DGPP.mjs.map +0 -1
- package/dist/chunk-7VHZNB2S.mjs.map +0 -1
- package/dist/chunk-D7UAKYVI.js.map +0 -1
- package/dist/chunk-EPGKOTSN.mjs.map +0 -1
- package/dist/chunk-J55AV2YW.js.map +0 -1
- package/dist/chunk-PYVDTUA6.mjs.map +0 -1
- package/dist/chunk-UNMZPS55.mjs.map +0 -1
- package/dist/chunk-VMZUN4EF.js.map +0 -1
- package/dist/sync-2MVHHWCX.mjs.map +0 -1
- package/dist/sync-KUMBMGJS.js.map +0 -1
- /package/dist/{add-HWFRMAQX.mjs.map → add-TMFGG3SC.mjs.map} +0 -0
- /package/dist/{chunk-AD7QRYIJ.mjs.map → chunk-MBXENFRR.mjs.map} +0 -0
- /package/dist/{create-LXQB4EFB.mjs.map → create-YUOTG2TS.mjs.map} +0 -0
- /package/dist/{init-T4YDPHBA.mjs.map → init-ED3OW3TK.mjs.map} +0 -0
- /package/dist/{list-BQXECLEM.mjs.map → list-KDYBQLVU.mjs.map} +0 -0
- /package/dist/{login-3IM3PYSJ.mjs.map → login-RNWEYFQK.mjs.map} +0 -0
- /package/dist/{remove-IVFQAHNT.mjs.map → remove-UWKI7GIJ.mjs.map} +0 -0
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
PromptsApiService,
|
|
6
6
|
PromptsError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SC4YBWRM.mjs";
|
|
8
8
|
import "./chunk-FEL5FLHA.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DQU2PZAL.mjs";
|
|
10
|
+
import "./chunk-VH7IIHFW.mjs";
|
|
11
|
+
import "./chunk-GMQHOSEU.mjs";
|
|
12
12
|
import "./chunk-I2SOBPAF.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ensureProjectInitialized
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MBXENFRR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
FileManager,
|
|
18
18
|
PromptConverter
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O6D3W3PG.mjs";
|
|
20
20
|
import "./chunk-BTBSMJTY.mjs";
|
|
21
21
|
import {
|
|
22
22
|
__spreadProps,
|
|
@@ -229,14 +229,13 @@ var syncCommand = async () => {
|
|
|
229
229
|
materialized: filePath
|
|
230
230
|
};
|
|
231
231
|
} else {
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
)}`
|
|
232
|
+
const formattedConfig = PromptConverter.fromLocalToApiFormat(localConfig);
|
|
233
|
+
const updatedPrompt = await promptsApiService.update(promptName, __spreadProps(__spreadValues({}, formattedConfig), {
|
|
234
|
+
commitMessage: `Updated via CLI: synced from local file`
|
|
236
235
|
}));
|
|
237
236
|
lock.prompts[promptName] = {
|
|
238
|
-
version:
|
|
239
|
-
versionId:
|
|
237
|
+
version: updatedPrompt.version,
|
|
238
|
+
versionId: updatedPrompt.versionId,
|
|
240
239
|
materialized: filePath
|
|
241
240
|
};
|
|
242
241
|
}
|
|
@@ -411,4 +410,4 @@ Tip: Add these to prompts.json to include them in sync operations.`
|
|
|
411
410
|
export {
|
|
412
411
|
syncCommand
|
|
413
412
|
};
|
|
414
|
-
//# sourceMappingURL=sync-
|
|
413
|
+
//# sourceMappingURL=sync-WJSJIKEW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/commands/sync.ts"],"sourcesContent":["import * as fs from \"fs\";\nimport * as path from \"path\";\nimport chalk from \"chalk\";\nimport ora from \"ora\";\nimport * as yaml from \"js-yaml\";\nimport { PromptConverter } from \"@/cli/utils/promptConverter\";\nimport {\n type ConfigData,\n PromptsApiService,\n PromptsError,\n type SyncAction,\n} from \"@/client-sdk/services/prompts\";\nimport type { SyncResult } from \"../types\";\nimport { FileManager } from \"../utils/fileManager\";\nimport { ensureProjectInitialized } from \"../utils/init\";\nimport { checkApiKey } from \"../utils/apiKey\";\nimport readline from \"node:readline\";\n\n// Handle conflict resolution - show diff and ask user to choose\nconst handleConflict = async (\n promptName: string,\n conflictInfo: {\n localVersion: number;\n remoteVersion: number;\n differences: string[];\n remoteConfigData: any;\n }\n): Promise<\"local\" | \"remote\" | \"abort\"> => {\n console.log(\n chalk.yellow(`\\n⚠ Conflict detected for prompt: ${chalk.cyan(promptName)}`)\n );\n console.log(\n chalk.gray(\n `Local version: ${conflictInfo.localVersion}, Remote version: ${conflictInfo.remoteVersion}`\n )\n );\n\n if (conflictInfo.differences.length > 0) {\n console.log(chalk.yellow(\"\\nDifferences:\"));\n conflictInfo.differences.forEach((diff) => {\n console.log(chalk.gray(` • ${diff}`));\n });\n }\n\n console.log(chalk.yellow(\"\\nOptions:\"));\n console.log(\" [l] Use local version (overwrite remote)\");\n console.log(\" [r] Use remote version (overwrite local)\");\n console.log(\" [a] Abort sync for this prompt\");\n\n const rl = readline.createInterface({\n input: process.stdin,\n output: process.stdout,\n });\n\n return new Promise((resolve) => {\n rl.question(\"Choose resolution (l/r/a): \", (answer: string) => {\n rl.close();\n const choice = answer.toLowerCase();\n if (choice === \"l\" || choice === \"local\") {\n resolve(\"local\");\n } else if (choice === \"r\" || choice === \"remote\") {\n resolve(\"remote\");\n } else {\n resolve(\"abort\");\n }\n });\n });\n};\n\nexport const syncCommand = async (): Promise<void> => {\n console.log(\"🔄 Starting sync...\");\n\n const startTime = Date.now();\n\n try {\n // Check API key before doing anything else\n checkApiKey();\n\n // Get prompts API service\n const promptsApiService = new PromptsApiService();\n\n // Ensure project is initialized (prompts.json, lock file, directories)\n await ensureProjectInitialized(false); // Don't prompt for .gitignore in sync\n\n // Load prompts config and lock\n const config = FileManager.loadPromptsConfig();\n const lock = FileManager.loadPromptsLock();\n\n const result: SyncResult = {\n fetched: [],\n pushed: [],\n unchanged: [],\n cleaned: [],\n errors: [],\n };\n\n // Process remote prompts (fetch and materialize)\n const remoteDeps = Object.entries(config.prompts).filter(\n ([, dependency]) => {\n // Skip local file dependencies (both object format and string format)\n if (typeof dependency === \"object\" && dependency.file) {\n return false;\n }\n if (typeof dependency === \"string\" && dependency.startsWith(\"file:\")) {\n return false;\n }\n return true;\n }\n );\n\n if (remoteDeps.length > 0) {\n const fetchSpinner = ora(\n `Checking ${remoteDeps.length} remote prompts...`\n ).start();\n\n for (const [name, dependency] of remoteDeps) {\n try {\n const versionSpec =\n typeof dependency === \"string\"\n ? dependency\n : dependency.version ?? \"latest\";\n\n // Check if we already have this prompt with the same version\n const lockEntry = lock.prompts[name];\n\n // Fetch the prompt from the API to check current version\n const prompt = await promptsApiService.get(name);\n\n if (prompt) {\n // Check if we need to update (new version or not materialized)\n const needsUpdate =\n !lockEntry ||\n lockEntry.version !== prompt.version ||\n !lockEntry.materialized ||\n !fs.existsSync(path.resolve(lockEntry.materialized));\n\n if (needsUpdate) {\n // Convert to MaterializedPrompt format using the converter\n const materializedPrompt =\n PromptConverter.fromApiToMaterialized(prompt);\n\n const savedPath = FileManager.saveMaterializedPrompt(\n name,\n materializedPrompt\n );\n const relativePath = path.relative(process.cwd(), savedPath);\n result.fetched.push({\n name,\n version: prompt.version,\n versionSpec,\n });\n\n // Update lock file entry\n FileManager.updateLockEntry(\n lock,\n name,\n materializedPrompt,\n savedPath\n );\n\n fetchSpinner.text = `Fetched ${chalk.cyan(\n `${name}@${versionSpec}`\n )} ${chalk.gray(`(version ${prompt.version})`)} → ${chalk.gray(\n relativePath\n )}`;\n } else {\n // No change needed, track as unchanged\n result.unchanged.push(name);\n }\n } else {\n result.errors.push({ name, error: \"Prompt not found\" });\n }\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : \"Unknown error\";\n result.errors.push({ name, error: errorMessage });\n }\n }\n\n fetchSpinner.stop();\n }\n\n // Process local prompts (push to API) - only those explicitly declared in prompts.json\n const localFileRefs = Object.entries(config.prompts).filter(\n ([, dependency]) => {\n return typeof dependency === \"string\" && dependency.startsWith(\"file:\");\n }\n );\n\n if (localFileRefs.length > 0) {\n const pushSpinner = ora(\n `Pushing ${localFileRefs.length} local prompts...`\n ).start();\n\n // Use the existing lock file instead of reloading it\n // const lock = FileManager.loadPromptsLock(); // Don't reload - use existing lock\n\n for (const [promptName, dependency] of localFileRefs) {\n try {\n const filePath = (dependency as string).slice(5); // Remove \"file:\" prefix\n\n // Load local prompt config\n const localConfig = FileManager.loadLocalPrompt(filePath);\n\n // Get current version from lock file\n const currentVersion = lock.prompts[promptName]?.version;\n\n // Convert local config to API configData format\n const configData: ConfigData = {\n model: localConfig.model,\n prompt: PromptConverter.extractSystemPrompt(localConfig.messages),\n messages: PromptConverter.filterNonSystemMessages(\n localConfig.messages\n ) as Array<{\n role: \"system\" | \"user\" | \"assistant\";\n content: string;\n }>,\n temperature: localConfig.modelParameters?.temperature,\n max_tokens: localConfig.modelParameters?.max_tokens,\n inputs: [{ identifier: \"input\", type: \"str\" }],\n outputs: [{ identifier: \"output\", type: \"str\" }],\n };\n\n // Use new sync API with conflict detection\n const syncResult = await promptsApiService.sync({\n name: promptName,\n configData,\n localVersion: currentVersion,\n commitMessage: `Synced from local file: ${path.basename(filePath)}`,\n });\n\n const relativePath = path.relative(process.cwd(), filePath);\n\n let conflictResolution: \"local\" | \"remote\" | \"abort\" | null = null;\n if (syncResult.action === \"conflict\") {\n // Handle conflict - prompt user for resolution\n pushSpinner.stop();\n conflictResolution = await handleConflict(\n promptName,\n syncResult.conflictInfo!\n );\n if (conflictResolution === \"abort\") {\n result.errors.push({\n name: promptName,\n error: \"Sync aborted due to conflict\",\n });\n continue;\n }\n\n // If user chose remote, we should pull the remote version to local file\n if (conflictResolution === \"remote\" && syncResult.conflictInfo) {\n // Update local file with remote content\n const remoteConfig = {\n model: syncResult.conflictInfo.remoteConfigData.model,\n modelParameters: {\n temperature:\n syncResult.conflictInfo.remoteConfigData.temperature,\n max_tokens:\n syncResult.conflictInfo.remoteConfigData.max_tokens,\n },\n messages: [\n {\n role: \"system\" as const,\n content: syncResult.conflictInfo.remoteConfigData.prompt,\n },\n ...(syncResult.conflictInfo.remoteConfigData.messages ?? []),\n ],\n };\n\n const yamlContent = yaml.dump(remoteConfig, {\n lineWidth: -1,\n noRefs: true,\n sortKeys: false,\n });\n\n fs.writeFileSync(filePath, yamlContent);\n }\n\n // If user chose to proceed, we continue with the sync\n pushSpinner.start();\n }\n\n // Update lock file with new version info\n if (syncResult.prompt) {\n lock.prompts[promptName] = {\n version: syncResult.prompt.version,\n versionId: syncResult.prompt.versionId,\n materialized: filePath,\n };\n } else if (syncResult.action === \"conflict\") {\n const remoteVersion = syncResult.conflictInfo?.remoteVersion ?? 0;\n if (conflictResolution === \"remote\") {\n // User chose remote - use remote version\n lock.prompts[promptName] = {\n version: remoteVersion,\n versionId: \"remote_version\", // We don't have the actual versionId from conflict info\n materialized: filePath,\n };\n } else {\n // User chose local - force push\n const formattedConfig = PromptConverter.fromLocalToApiFormat(localConfig);\n const updatedPrompt = await promptsApiService.update(promptName, {\n ...formattedConfig,\n commitMessage: `Updated via CLI: synced from local file`\n });\n lock.prompts[promptName] = {\n version: updatedPrompt.version,\n versionId: updatedPrompt.versionId,\n materialized: filePath,\n };\n }\n }\n\n // Determine the action text based on sync result and conflict resolution\n let actionText: string;\n if (syncResult.action === \"conflict\") {\n if (conflictResolution === \"remote\") {\n actionText = \"Pulled\"; // User chose to use remote version\n result.fetched.push({\n name: promptName,\n version: syncResult.conflictInfo?.remoteVersion ?? 0,\n versionSpec: \"latest\", // Default for conflict resolution\n });\n } else {\n actionText = \"Pushed\"; // User chose to use local version (or forced push)\n result.pushed.push({\n name: promptName,\n version: (syncResult.conflictInfo?.remoteVersion ?? 0) + 1, // New version after push\n });\n }\n } else if (syncResult.action === \"up_to_date\") {\n // For up-to-date prompts, add to unchanged instead of pushed\n actionText = \"Up-to-date\";\n result.unchanged.push(promptName);\n } else {\n const actionMap: Record<SyncAction, string> = {\n created: \"Created\",\n updated: \"Updated\",\n conflict: \"Conflict resolved\",\n up_to_date: \"Up to date\",\n };\n actionText = actionMap[syncResult.action as SyncAction] || \"Pushed\";\n result.pushed.push({\n name: promptName,\n version: syncResult.prompt?.version ?? 0,\n });\n }\n\n pushSpinner.text = `${actionText} ${chalk.cyan(\n promptName\n )} ${chalk.gray(\n `(version ${\n syncResult.prompt?.version ??\n syncResult.conflictInfo?.remoteVersion ??\n \"unknown\"\n })`\n )} ${conflictResolution === \"remote\" ? \"to\" : \"from\"} ${chalk.gray(\n relativePath\n )}`;\n } catch (error) {\n const errorMessage =\n error instanceof Error ? error.message : \"Unknown error\";\n result.errors.push({ name: promptName, error: errorMessage });\n }\n }\n\n // Save lock file with all updates\n FileManager.savePromptsLock(lock);\n\n pushSpinner.stop();\n }\n\n // Check for orphan local prompt files and show helpful warnings\n const discoveredLocalFiles = FileManager.getLocalPromptFiles();\n const orphanFiles = discoveredLocalFiles.filter((filePath) => {\n const promptName = FileManager.promptNameFromPath(filePath);\n return !config.prompts[promptName]; // Not declared in prompts.json\n });\n\n if (orphanFiles.length > 0) {\n console.log(\n chalk.yellow(\n `\\n⚠ Found ${orphanFiles.length} orphan prompt file${\n orphanFiles.length > 1 ? \"s\" : \"\"\n }:`\n )\n );\n\n for (const filePath of orphanFiles) {\n const promptName = FileManager.promptNameFromPath(filePath);\n const relativePath = path.relative(process.cwd(), filePath);\n\n console.log(chalk.yellow(` ${relativePath}`));\n console.log(\n chalk.gray(\n ` Add to prompts.json: \"${promptName}\": \"file:${relativePath}\"`\n )\n );\n }\n\n console.log(\n chalk.gray(\n `\\nTip: Add these to prompts.json to include them in sync operations.`\n )\n );\n }\n\n // Cleanup orphaned materialized files\n const currentDependencies = new Set(\n Object.keys(config.prompts).filter((name) => {\n const dependency = config.prompts[name];\n // Only include remote dependencies (not local file: dependencies)\n if (typeof dependency === \"object\" && dependency.file) {\n return false;\n }\n if (typeof dependency === \"string\" && dependency.startsWith(\"file:\")) {\n return false;\n }\n return true;\n })\n );\n\n const cleanedFiles =\n FileManager.cleanupOrphanedMaterializedFiles(currentDependencies);\n if (cleanedFiles.length > 0) {\n result.cleaned = cleanedFiles;\n FileManager.removeFromLock(lock, cleanedFiles);\n }\n\n // Save the updated lock file\n FileManager.savePromptsLock(lock);\n\n // Print individual results if there were actions\n if (result.fetched.length > 0) {\n for (const { name, version, versionSpec } of result.fetched) {\n // Get the actual saved path from lock file for display consistency\n const lockEntry = lock.prompts[name];\n const displayPath = lockEntry?.materialized\n ? `./${lockEntry.materialized}`\n : `./prompts/.materialized/${name}.prompt.yaml`;\n\n console.log(\n chalk.green(\n `✓ Pulled ${chalk.cyan(`${name}@${versionSpec}`)} ${chalk.gray(\n `(version ${version})`\n )} → ${chalk.gray(displayPath)}`\n )\n );\n }\n }\n\n if (result.pushed.length > 0) {\n for (const { name, version } of result.pushed) {\n const localPath = `./prompts/${name}.prompt.yaml`;\n console.log(\n chalk.green(\n `✓ Pushed ${chalk.cyan(name)} ${chalk.gray(\n `(version ${version})`\n )} from ${chalk.gray(localPath)}`\n )\n );\n }\n }\n\n // Print cleaned up files\n if (result.cleaned.length > 0) {\n for (const name of result.cleaned) {\n console.log(\n chalk.yellow(\n `✓ Cleaned ${chalk.cyan(name)} (no longer in dependencies)`\n )\n );\n }\n }\n\n // Print errors\n if (result.errors.length > 0) {\n for (const { name, error } of result.errors) {\n console.log(chalk.red(`✗ Failed ${chalk.cyan(name)}: ${error}`));\n }\n }\n\n // Print summary\n const duration = ((Date.now() - startTime) / 1000).toFixed(1);\n const totalActions =\n result.fetched.length + result.pushed.length + result.cleaned.length;\n\n if (totalActions === 0 && result.errors.length === 0) {\n console.log(chalk.gray(`Synced in ${duration}s, no changes`));\n } else {\n const summary = [];\n if (result.fetched.length > 0)\n summary.push(`${result.fetched.length} fetched`);\n if (result.pushed.length > 0)\n summary.push(`${result.pushed.length} pushed`);\n if (result.cleaned.length > 0)\n summary.push(`${result.cleaned.length} cleaned`);\n if (result.errors.length > 0)\n summary.push(`${result.errors.length} errors`);\n\n console.log(chalk.gray(`Synced ${summary.join(\", \")} in ${duration}s`));\n }\n\n if (result.errors.length > 0) {\n process.exit(1);\n }\n } catch (error) {\n if (error instanceof PromptsError) {\n console.error(chalk.red(`Error: ${error.message}`));\n } else {\n console.error(\n chalk.red(\n `Unexpected error: ${\n error instanceof Error ? error.message : \"Unknown error\"\n }`\n )\n );\n }\n process.exit(1);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,QAAQ;AACpB,YAAY,UAAU;AACtB,OAAO,WAAW;AAClB,OAAO,SAAS;AAChB,YAAY,UAAU;AAYtB,OAAO,cAAc;AAGrB,IAAM,iBAAiB,OACrB,YACA,iBAM0C;AAC1C,UAAQ;AAAA,IACN,MAAM,OAAO;AAAA,uCAAqC,MAAM,KAAK,UAAU,CAAC,EAAE;AAAA,EAC5E;AACA,UAAQ;AAAA,IACN,MAAM;AAAA,MACJ,kBAAkB,aAAa,YAAY,qBAAq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AAQ,MAAM,UAAU,eAC3C;AAAA,QACF;AAAA,MACF;AAAA,IACF;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB;AACF;","names":["resolve"]}
|
|
@@ -420,9 +420,11 @@ interface paths {
|
|
|
420
420
|
message?: string;
|
|
421
421
|
has_error?: boolean;
|
|
422
422
|
} | null;
|
|
423
|
-
/**
|
|
423
|
+
/**
|
|
424
|
+
* @example [
|
|
424
425
|
* "cccd21e0b70c706034dfd9f7772816a3"
|
|
425
|
-
* ]
|
|
426
|
+
* ]
|
|
427
|
+
*/
|
|
426
428
|
indexing_md5s?: string[];
|
|
427
429
|
spans?: {
|
|
428
430
|
/** @example trace_BKZL_X0TKSD4oa1aBJTc_ */
|
|
@@ -474,7 +476,8 @@ interface paths {
|
|
|
474
476
|
input?: {
|
|
475
477
|
/** @example chat_messages */
|
|
476
478
|
type?: string;
|
|
477
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* @example [
|
|
478
481
|
* {
|
|
479
482
|
* "role": "system",
|
|
480
483
|
* "content": "You are a helpful assistant that only reply in short tweet-like responses, using lots of emojis."
|
|
@@ -483,7 +486,8 @@ interface paths {
|
|
|
483
486
|
* "role": "user",
|
|
484
487
|
* "content": "hi"
|
|
485
488
|
* }
|
|
486
|
-
* ]
|
|
489
|
+
* ]
|
|
490
|
+
*/
|
|
487
491
|
value?: {
|
|
488
492
|
/** @example system */
|
|
489
493
|
role?: string;
|
|
@@ -494,12 +498,14 @@ interface paths {
|
|
|
494
498
|
output?: {
|
|
495
499
|
/** @example chat_messages */
|
|
496
500
|
type?: string;
|
|
497
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* @example [
|
|
498
503
|
* {
|
|
499
504
|
* "role": "assistant",
|
|
500
505
|
* "content": "Hey there! 👋😊"
|
|
501
506
|
* }
|
|
502
|
-
* ]
|
|
507
|
+
* ]
|
|
508
|
+
*/
|
|
503
509
|
value?: {
|
|
504
510
|
/** @example assistant */
|
|
505
511
|
role?: string;
|
|
@@ -528,9 +534,11 @@ interface paths {
|
|
|
528
534
|
inserted_at?: number;
|
|
529
535
|
};
|
|
530
536
|
error?: {
|
|
531
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* @example [
|
|
532
539
|
* "TypeError: fetch failed"
|
|
533
|
-
* ]
|
|
540
|
+
* ]
|
|
541
|
+
*/
|
|
534
542
|
stacktrace?: string[];
|
|
535
543
|
/** @example fetch failed */
|
|
536
544
|
message?: string;
|
|
@@ -950,12 +958,14 @@ interface components {
|
|
|
950
958
|
totalHits?: number;
|
|
951
959
|
};
|
|
952
960
|
DatasetPostEntries: {
|
|
953
|
-
/**
|
|
961
|
+
/**
|
|
962
|
+
* @example [
|
|
954
963
|
* {
|
|
955
964
|
* "input": "hi",
|
|
956
965
|
* "output": "Hello, how can I help you today?"
|
|
957
966
|
* }
|
|
958
|
-
* ]
|
|
967
|
+
* ]
|
|
968
|
+
*/
|
|
959
969
|
entries: {
|
|
960
970
|
[key: string]: unknown;
|
|
961
971
|
}[];
|
|
@@ -1035,8 +1045,9 @@ interface operations {
|
|
|
1035
1045
|
[key: string]: string[];
|
|
1036
1046
|
};
|
|
1037
1047
|
columnTypes: {
|
|
1048
|
+
id?: string;
|
|
1038
1049
|
name: string;
|
|
1039
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1050
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1040
1051
|
}[];
|
|
1041
1052
|
};
|
|
1042
1053
|
};
|
|
@@ -1051,8 +1062,9 @@ interface operations {
|
|
|
1051
1062
|
[key: string]: string[];
|
|
1052
1063
|
};
|
|
1053
1064
|
columnTypes: {
|
|
1065
|
+
id?: string;
|
|
1054
1066
|
name: string;
|
|
1055
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1067
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1056
1068
|
}[];
|
|
1057
1069
|
};
|
|
1058
1070
|
};
|
|
@@ -1104,6 +1116,18 @@ interface operations {
|
|
|
1104
1116
|
};
|
|
1105
1117
|
};
|
|
1106
1118
|
};
|
|
1119
|
+
/** @description Unprocessable Entity */
|
|
1120
|
+
422: {
|
|
1121
|
+
headers: {
|
|
1122
|
+
[name: string]: unknown;
|
|
1123
|
+
};
|
|
1124
|
+
content: {
|
|
1125
|
+
"application/json": {
|
|
1126
|
+
error: string;
|
|
1127
|
+
message?: string;
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1107
1131
|
/** @description Internal Server Error */
|
|
1108
1132
|
500: {
|
|
1109
1133
|
headers: {
|
|
@@ -1130,11 +1154,10 @@ interface operations {
|
|
|
1130
1154
|
requestBody?: {
|
|
1131
1155
|
content: {
|
|
1132
1156
|
"application/json": {
|
|
1133
|
-
handle?: string;
|
|
1134
1157
|
model?: string;
|
|
1135
1158
|
temperature?: number;
|
|
1136
1159
|
maxTokens?: number;
|
|
1137
|
-
commitMessage
|
|
1160
|
+
commitMessage: string;
|
|
1138
1161
|
authorId?: string;
|
|
1139
1162
|
prompt?: string;
|
|
1140
1163
|
messages?: {
|
|
@@ -1161,6 +1184,7 @@ interface operations {
|
|
|
1161
1184
|
schemaVersion?: "1.0";
|
|
1162
1185
|
/** @enum {string} */
|
|
1163
1186
|
scope?: "ORGANIZATION" | "PROJECT";
|
|
1187
|
+
handle?: string;
|
|
1164
1188
|
};
|
|
1165
1189
|
};
|
|
1166
1190
|
};
|
|
@@ -1218,8 +1242,9 @@ interface operations {
|
|
|
1218
1242
|
[key: string]: string[];
|
|
1219
1243
|
};
|
|
1220
1244
|
columnTypes: {
|
|
1245
|
+
id?: string;
|
|
1221
1246
|
name: string;
|
|
1222
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1247
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1223
1248
|
}[];
|
|
1224
1249
|
};
|
|
1225
1250
|
};
|
|
@@ -1234,8 +1259,9 @@ interface operations {
|
|
|
1234
1259
|
[key: string]: string[];
|
|
1235
1260
|
};
|
|
1236
1261
|
columnTypes: {
|
|
1262
|
+
id?: string;
|
|
1237
1263
|
name: string;
|
|
1238
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1264
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1239
1265
|
}[];
|
|
1240
1266
|
};
|
|
1241
1267
|
};
|
|
@@ -1383,6 +1409,18 @@ interface operations {
|
|
|
1383
1409
|
};
|
|
1384
1410
|
};
|
|
1385
1411
|
};
|
|
1412
|
+
/** @description Unprocessable Entity */
|
|
1413
|
+
422: {
|
|
1414
|
+
headers: {
|
|
1415
|
+
[name: string]: unknown;
|
|
1416
|
+
};
|
|
1417
|
+
content: {
|
|
1418
|
+
"application/json": {
|
|
1419
|
+
error: string;
|
|
1420
|
+
message?: string;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1386
1424
|
/** @description Internal Server Error */
|
|
1387
1425
|
500: {
|
|
1388
1426
|
headers: {
|
|
@@ -1461,8 +1499,9 @@ interface operations {
|
|
|
1461
1499
|
[key: string]: string[];
|
|
1462
1500
|
};
|
|
1463
1501
|
columnTypes: {
|
|
1502
|
+
id?: string;
|
|
1464
1503
|
name: string;
|
|
1465
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1504
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1466
1505
|
}[];
|
|
1467
1506
|
};
|
|
1468
1507
|
};
|
|
@@ -1477,8 +1516,9 @@ interface operations {
|
|
|
1477
1516
|
[key: string]: string[];
|
|
1478
1517
|
};
|
|
1479
1518
|
columnTypes: {
|
|
1519
|
+
id?: string;
|
|
1480
1520
|
name: string;
|
|
1481
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1521
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1482
1522
|
}[];
|
|
1483
1523
|
};
|
|
1484
1524
|
};
|
|
@@ -1530,6 +1570,18 @@ interface operations {
|
|
|
1530
1570
|
};
|
|
1531
1571
|
};
|
|
1532
1572
|
};
|
|
1573
|
+
/** @description Unprocessable Entity */
|
|
1574
|
+
422: {
|
|
1575
|
+
headers: {
|
|
1576
|
+
[name: string]: unknown;
|
|
1577
|
+
};
|
|
1578
|
+
content: {
|
|
1579
|
+
"application/json": {
|
|
1580
|
+
error: string;
|
|
1581
|
+
message?: string;
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
};
|
|
1533
1585
|
/** @description Internal Server Error */
|
|
1534
1586
|
500: {
|
|
1535
1587
|
headers: {
|
|
@@ -1590,8 +1642,9 @@ interface operations {
|
|
|
1590
1642
|
[key: string]: string[];
|
|
1591
1643
|
};
|
|
1592
1644
|
columnTypes: {
|
|
1645
|
+
id?: string;
|
|
1593
1646
|
name: string;
|
|
1594
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1647
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1595
1648
|
}[];
|
|
1596
1649
|
};
|
|
1597
1650
|
};
|
|
@@ -1606,8 +1659,9 @@ interface operations {
|
|
|
1606
1659
|
[key: string]: string[];
|
|
1607
1660
|
};
|
|
1608
1661
|
columnTypes: {
|
|
1662
|
+
id?: string;
|
|
1609
1663
|
name: string;
|
|
1610
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1664
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1611
1665
|
}[];
|
|
1612
1666
|
};
|
|
1613
1667
|
};
|
|
@@ -1683,8 +1737,9 @@ interface operations {
|
|
|
1683
1737
|
[key: string]: string[];
|
|
1684
1738
|
};
|
|
1685
1739
|
columnTypes: {
|
|
1740
|
+
id?: string;
|
|
1686
1741
|
name: string;
|
|
1687
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1742
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1688
1743
|
}[];
|
|
1689
1744
|
};
|
|
1690
1745
|
};
|
|
@@ -1699,8 +1754,9 @@ interface operations {
|
|
|
1699
1754
|
[key: string]: string[];
|
|
1700
1755
|
};
|
|
1701
1756
|
columnTypes: {
|
|
1757
|
+
id?: string;
|
|
1702
1758
|
name: string;
|
|
1703
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1759
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1704
1760
|
}[];
|
|
1705
1761
|
};
|
|
1706
1762
|
};
|
|
@@ -1752,8 +1808,9 @@ interface operations {
|
|
|
1752
1808
|
[key: string]: string[];
|
|
1753
1809
|
};
|
|
1754
1810
|
columnTypes: {
|
|
1811
|
+
id?: string;
|
|
1755
1812
|
name: string;
|
|
1756
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1813
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1757
1814
|
}[];
|
|
1758
1815
|
};
|
|
1759
1816
|
};
|
|
@@ -1768,8 +1825,9 @@ interface operations {
|
|
|
1768
1825
|
[key: string]: string[];
|
|
1769
1826
|
};
|
|
1770
1827
|
columnTypes: {
|
|
1828
|
+
id?: string;
|
|
1771
1829
|
name: string;
|
|
1772
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
1830
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
1773
1831
|
}[];
|
|
1774
1832
|
};
|
|
1775
1833
|
};
|
|
@@ -1811,6 +1869,18 @@ interface operations {
|
|
|
1811
1869
|
};
|
|
1812
1870
|
};
|
|
1813
1871
|
};
|
|
1872
|
+
/** @description Unprocessable Entity */
|
|
1873
|
+
422: {
|
|
1874
|
+
headers: {
|
|
1875
|
+
[name: string]: unknown;
|
|
1876
|
+
};
|
|
1877
|
+
content: {
|
|
1878
|
+
"application/json": {
|
|
1879
|
+
error: string;
|
|
1880
|
+
message?: string;
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1814
1884
|
/** @description Internal Server Error */
|
|
1815
1885
|
500: {
|
|
1816
1886
|
headers: {
|
|
@@ -1879,9 +1949,8 @@ interface operations {
|
|
|
1879
1949
|
};
|
|
1880
1950
|
content: {
|
|
1881
1951
|
"application/json": {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
message: string;
|
|
1952
|
+
error: string;
|
|
1953
|
+
message?: string;
|
|
1885
1954
|
};
|
|
1886
1955
|
};
|
|
1887
1956
|
};
|
|
@@ -1892,9 +1961,8 @@ interface operations {
|
|
|
1892
1961
|
};
|
|
1893
1962
|
content: {
|
|
1894
1963
|
"application/json": {
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
message: string;
|
|
1964
|
+
error: string;
|
|
1965
|
+
message?: string;
|
|
1898
1966
|
};
|
|
1899
1967
|
};
|
|
1900
1968
|
};
|
|
@@ -1905,9 +1973,8 @@ interface operations {
|
|
|
1905
1973
|
};
|
|
1906
1974
|
content: {
|
|
1907
1975
|
"application/json": {
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
message: string;
|
|
1976
|
+
error: string;
|
|
1977
|
+
message?: string;
|
|
1911
1978
|
};
|
|
1912
1979
|
};
|
|
1913
1980
|
};
|
|
@@ -1918,9 +1985,8 @@ interface operations {
|
|
|
1918
1985
|
};
|
|
1919
1986
|
content: {
|
|
1920
1987
|
"application/json": {
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
message: string;
|
|
1988
|
+
error: string;
|
|
1989
|
+
message?: string;
|
|
1924
1990
|
};
|
|
1925
1991
|
};
|
|
1926
1992
|
};
|
|
@@ -1931,9 +1997,8 @@ interface operations {
|
|
|
1931
1997
|
};
|
|
1932
1998
|
content: {
|
|
1933
1999
|
"application/json": {
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
message: string;
|
|
2000
|
+
error: string;
|
|
2001
|
+
message?: string;
|
|
1937
2002
|
};
|
|
1938
2003
|
};
|
|
1939
2004
|
};
|
|
@@ -2001,8 +2066,9 @@ interface operations {
|
|
|
2001
2066
|
[key: string]: string[];
|
|
2002
2067
|
};
|
|
2003
2068
|
columnTypes: {
|
|
2069
|
+
id?: string;
|
|
2004
2070
|
name: string;
|
|
2005
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2071
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
2006
2072
|
}[];
|
|
2007
2073
|
};
|
|
2008
2074
|
};
|
|
@@ -2017,8 +2083,9 @@ interface operations {
|
|
|
2017
2083
|
[key: string]: string[];
|
|
2018
2084
|
};
|
|
2019
2085
|
columnTypes: {
|
|
2086
|
+
id?: string;
|
|
2020
2087
|
name: string;
|
|
2021
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2088
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
2022
2089
|
}[];
|
|
2023
2090
|
};
|
|
2024
2091
|
};
|
|
@@ -2058,6 +2125,18 @@ interface operations {
|
|
|
2058
2125
|
};
|
|
2059
2126
|
};
|
|
2060
2127
|
};
|
|
2128
|
+
/** @description Unprocessable Entity */
|
|
2129
|
+
422: {
|
|
2130
|
+
headers: {
|
|
2131
|
+
[name: string]: unknown;
|
|
2132
|
+
};
|
|
2133
|
+
content: {
|
|
2134
|
+
"application/json": {
|
|
2135
|
+
error: string;
|
|
2136
|
+
message?: string;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2061
2140
|
/** @description Internal Server Error */
|
|
2062
2141
|
500: {
|
|
2063
2142
|
headers: {
|
|
@@ -2173,8 +2252,9 @@ interface operations {
|
|
|
2173
2252
|
[key: string]: string[];
|
|
2174
2253
|
};
|
|
2175
2254
|
columnTypes: {
|
|
2255
|
+
id?: string;
|
|
2176
2256
|
name: string;
|
|
2177
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2257
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
2178
2258
|
}[];
|
|
2179
2259
|
};
|
|
2180
2260
|
};
|
|
@@ -2189,8 +2269,9 @@ interface operations {
|
|
|
2189
2269
|
[key: string]: string[];
|
|
2190
2270
|
};
|
|
2191
2271
|
columnTypes: {
|
|
2272
|
+
id?: string;
|
|
2192
2273
|
name: string;
|
|
2193
|
-
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations";
|
|
2274
|
+
type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image";
|
|
2194
2275
|
}[];
|
|
2195
2276
|
};
|
|
2196
2277
|
};
|
|
@@ -2242,6 +2323,18 @@ interface operations {
|
|
|
2242
2323
|
};
|
|
2243
2324
|
};
|
|
2244
2325
|
};
|
|
2326
|
+
/** @description Unprocessable Entity */
|
|
2327
|
+
422: {
|
|
2328
|
+
headers: {
|
|
2329
|
+
[name: string]: unknown;
|
|
2330
|
+
};
|
|
2331
|
+
content: {
|
|
2332
|
+
"application/json": {
|
|
2333
|
+
error: string;
|
|
2334
|
+
message?: string;
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2245
2338
|
/** @description Internal Server Error */
|
|
2246
2339
|
500: {
|
|
2247
2340
|
headers: {
|
|
@@ -2343,6 +2436,7 @@ interface operations {
|
|
|
2343
2436
|
/** @constant */
|
|
2344
2437
|
role: "tool";
|
|
2345
2438
|
toolCallId: string;
|
|
2439
|
+
error?: string;
|
|
2346
2440
|
}) | {
|
|
2347
2441
|
role?: "system" | "user" | "assistant" | "function" | "tool" | "unknown";
|
|
2348
2442
|
content?: string | ({
|
|
@@ -2433,6 +2527,18 @@ interface operations {
|
|
|
2433
2527
|
};
|
|
2434
2528
|
};
|
|
2435
2529
|
};
|
|
2530
|
+
/** @description Unprocessable Entity */
|
|
2531
|
+
422: {
|
|
2532
|
+
headers: {
|
|
2533
|
+
[name: string]: unknown;
|
|
2534
|
+
};
|
|
2535
|
+
content: {
|
|
2536
|
+
"application/json": {
|
|
2537
|
+
error: string;
|
|
2538
|
+
message?: string;
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2436
2542
|
/** @description Internal Server Error */
|
|
2437
2543
|
500: {
|
|
2438
2544
|
headers: {
|
|
@@ -2492,6 +2598,18 @@ interface operations {
|
|
|
2492
2598
|
};
|
|
2493
2599
|
};
|
|
2494
2600
|
};
|
|
2601
|
+
/** @description Unprocessable Entity */
|
|
2602
|
+
422: {
|
|
2603
|
+
headers: {
|
|
2604
|
+
[name: string]: unknown;
|
|
2605
|
+
};
|
|
2606
|
+
content: {
|
|
2607
|
+
"application/json": {
|
|
2608
|
+
error: string;
|
|
2609
|
+
message?: string;
|
|
2610
|
+
};
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2495
2613
|
/** @description Internal Server Error */
|
|
2496
2614
|
500: {
|
|
2497
2615
|
headers: {
|