@inkeep/agents-api 0.44.0 → 0.45.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/dist/.well-known/workflow/v1/manifest.debug.json +20 -20
- package/dist/.well-known/workflow/v1/step.cjs +403 -401
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/manage/index.js +2 -0
- package/dist/domains/manage/routes/availableAgents.d.ts +7 -0
- package/dist/domains/manage/routes/availableAgents.js +94 -0
- package/dist/domains/manage/routes/branches.js +9 -0
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/evals/datasetItems.js +13 -0
- package/dist/domains/manage/routes/evals/datasets.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationJobConfigEvaluatorRelations.js +5 -0
- package/dist/domains/manage/routes/evals/evaluationJobConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationResults.d.ts +4 -2
- package/dist/domains/manage/routes/evals/evaluationResults.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationRunConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationSuiteConfigEvaluatorRelations.js +5 -0
- package/dist/domains/manage/routes/evals/evaluationSuiteConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluators.js +9 -0
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +4 -3
- package/dist/domains/manage/routes/invitations.js +16 -28
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/playgroundToken.js +3 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.js +22 -16
- package/dist/domains/manage/routes/userOrganizations.d.ts +4 -3
- package/dist/domains/manage/routes/userOrganizations.js +16 -45
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.js +2 -1
- package/dist/env.js +5 -5
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/runAuth.js +39 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/dist/openapi.d.ts +0 -2
- package/dist/openapi.js +0 -2
- package/package.json +5 -5
|
@@ -117196,7 +117196,7 @@ function getStepFunction(stepId) {
|
|
|
117196
117196
|
}
|
|
117197
117197
|
__name(getStepFunction, "getStepFunction");
|
|
117198
117198
|
|
|
117199
|
-
// ../node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+
|
|
117199
|
+
// ../node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_576b463f7ac3bd55d5340a4cbc23a887/node_modules/workflow/dist/internal/builtins.js
|
|
117200
117200
|
async function __builtin_response_array_buffer(res) {
|
|
117201
117201
|
return res.arrayBuffer();
|
|
117202
117202
|
}
|
|
@@ -143037,7 +143037,7 @@ var MAX_ID_LENGTH = 255;
|
|
|
143037
143037
|
var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
143038
143038
|
var ResourceIdSchema = external_exports.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
|
|
143039
143039
|
message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
|
|
143040
|
-
}).
|
|
143040
|
+
}).openapi({
|
|
143041
143041
|
description: "Resource identifier",
|
|
143042
143042
|
example: "resource_789"
|
|
143043
143043
|
});
|
|
@@ -179902,107 +179902,202 @@ function getConversationId() {
|
|
|
179902
179902
|
}
|
|
179903
179903
|
__name(getConversationId, "getConversationId");
|
|
179904
179904
|
|
|
179905
|
-
// ../packages/agents-core/dist/
|
|
179906
|
-
var
|
|
179907
|
-
|
|
179908
|
-
|
|
179905
|
+
// ../packages/agents-core/dist/dolt/merge.js
|
|
179906
|
+
var doltMerge = /* @__PURE__ */ __name((db) => async (params) => {
|
|
179907
|
+
console.log("merging branch", params.fromBranch, "into", params.toBranch);
|
|
179908
|
+
await doltCheckout(db)({
|
|
179909
|
+
branch: params.toBranch
|
|
179909
179910
|
});
|
|
179910
|
-
|
|
179911
|
-
|
|
179912
|
-
|
|
179913
|
-
|
|
179914
|
-
|
|
179915
|
-
|
|
179916
|
-
|
|
179917
|
-
|
|
179918
|
-
|
|
179919
|
-
|
|
179920
|
-
|
|
179921
|
-
|
|
179922
|
-
|
|
179923
|
-
|
|
179924
|
-
|
|
179925
|
-
|
|
179926
|
-
|
|
179927
|
-
var logger9 = getLogger("functionTools");
|
|
179928
|
-
var listFunctionTools = /* @__PURE__ */ __name((db) => async (params) => {
|
|
179929
|
-
const page = params.pagination?.page || 1;
|
|
179930
|
-
const limit3 = Math.min(params.pagination?.limit || 10, 100);
|
|
179931
|
-
const offset = (page - 1) * limit3;
|
|
179932
|
-
const whereClause = and(eq(functionTools.tenantId, params.scopes.tenantId), eq(functionTools.projectId, params.scopes.projectId), eq(functionTools.agentId, params.scopes.agentId));
|
|
179933
|
-
const [functionToolsDbResults, totalResult] = await Promise.all([
|
|
179934
|
-
db.select().from(functionTools).where(whereClause).limit(limit3).offset(offset).orderBy(desc(functionTools.createdAt)),
|
|
179935
|
-
db.select({
|
|
179936
|
-
count: count()
|
|
179937
|
-
}).from(functionTools).where(whereClause)
|
|
179938
|
-
]);
|
|
179939
|
-
const total = totalResult[0]?.count || 0;
|
|
179911
|
+
const toHead = (await db.execute(sql`SELECT HASHOF('HEAD') as hash`)).rows[0]?.hash;
|
|
179912
|
+
const args2 = [
|
|
179913
|
+
`'${params.fromBranch}'`
|
|
179914
|
+
];
|
|
179915
|
+
if (params.noFastForward) args2.push("'--no-ff'");
|
|
179916
|
+
if (params.message) args2.push("'-m'", `'${params.message.replace(/'/g, "''")}'`);
|
|
179917
|
+
if (params.author) args2.push("'--author'", `'${params.author.name} <${params.author.email}>'`);
|
|
179918
|
+
const firstRow = (await db.execute(sql.raw(`SELECT DOLT_MERGE(${args2.join(", ")})`))).rows[0] ?? {};
|
|
179919
|
+
const mergeResult = typeof firstRow.conflicts === "number" || typeof firstRow.conflicts === "string" || firstRow.conflicts == null ? firstRow : Object.values(firstRow)[0] ?? {};
|
|
179920
|
+
const conflicts = Number(mergeResult.conflicts ?? 0);
|
|
179921
|
+
if (Number.isFinite(conflicts) && conflicts > 0) return {
|
|
179922
|
+
status: "conflicts",
|
|
179923
|
+
from: params.fromBranch,
|
|
179924
|
+
to: params.toBranch,
|
|
179925
|
+
toHead,
|
|
179926
|
+
hasConflicts: true
|
|
179927
|
+
};
|
|
179940
179928
|
return {
|
|
179941
|
-
|
|
179942
|
-
|
|
179943
|
-
|
|
179944
|
-
|
|
179945
|
-
|
|
179946
|
-
pages: Math.ceil(total / limit3)
|
|
179947
|
-
}
|
|
179929
|
+
status: "success",
|
|
179930
|
+
from: params.fromBranch,
|
|
179931
|
+
to: params.toBranch,
|
|
179932
|
+
toHead,
|
|
179933
|
+
hasConflicts: false
|
|
179948
179934
|
};
|
|
179949
|
-
}, "
|
|
179935
|
+
}, "doltMerge");
|
|
179936
|
+
var doltAbortMerge = /* @__PURE__ */ __name((db) => async () => {
|
|
179937
|
+
await db.execute(sql.raw(`SELECT DOLT_MERGE('--abort')`));
|
|
179938
|
+
}, "doltAbortMerge");
|
|
179950
179939
|
|
|
179951
|
-
// ../packages/agents-core/dist/
|
|
179952
|
-
var
|
|
179953
|
-
|
|
179954
|
-
|
|
179940
|
+
// ../packages/agents-core/dist/dolt/schema-sync.js
|
|
179941
|
+
var import_node_crypto3 = require("node:crypto");
|
|
179942
|
+
var SCHEMA_SOURCE_BRANCH = "main";
|
|
179943
|
+
var getActiveBranch = /* @__PURE__ */ __name((db) => async () => {
|
|
179944
|
+
return (await db.execute(sql`SELECT active_branch() as branch`)).rows[0]?.branch;
|
|
179945
|
+
}, "getActiveBranch");
|
|
179946
|
+
var getSchemaDiff = /* @__PURE__ */ __name((db) => async (targetBranch) => {
|
|
179947
|
+
return (await db.execute(sql.raw(`SELECT * FROM dolt_schema_diff('${targetBranch}', '${SCHEMA_SOURCE_BRANCH}')`))).rows.map((row) => ({
|
|
179948
|
+
fromTableName: row.from_table_name,
|
|
179949
|
+
toTableName: row.to_table_name,
|
|
179950
|
+
fromCreateStatement: row.from_create_statement,
|
|
179951
|
+
toCreateStatement: row.to_create_statement
|
|
179952
|
+
}));
|
|
179953
|
+
}, "getSchemaDiff");
|
|
179954
|
+
var hasUncommittedChanges = /* @__PURE__ */ __name((db) => async () => {
|
|
179955
|
+
return (await doltStatus(db)()).length > 0;
|
|
179956
|
+
}, "hasUncommittedChanges");
|
|
179957
|
+
var commitPendingChanges = /* @__PURE__ */ __name((db) => async (options) => {
|
|
179958
|
+
const message = options.message ?? "Auto-commit pending changes before schema sync";
|
|
179959
|
+
await doltAddAndCommit(db)({
|
|
179960
|
+
message,
|
|
179961
|
+
author: options.author
|
|
179955
179962
|
});
|
|
179956
|
-
}, "
|
|
179957
|
-
|
|
179958
|
-
|
|
179959
|
-
|
|
179960
|
-
return
|
|
179961
|
-
|
|
179963
|
+
}, "commitPendingChanges");
|
|
179964
|
+
var SCHEMA_SYNC_LOCK_PREFIX = "schema_sync_";
|
|
179965
|
+
var getSchemaSyncLockKey = /* @__PURE__ */ __name((branchName) => {
|
|
179966
|
+
const lockKey = `${SCHEMA_SYNC_LOCK_PREFIX}${branchName}`;
|
|
179967
|
+
return (0, import_node_crypto3.createHash)("sha256").update(lockKey).digest().readBigInt64BE(0);
|
|
179968
|
+
}, "getSchemaSyncLockKey");
|
|
179969
|
+
var tryAcquireSchemaSyncLock = /* @__PURE__ */ __name((db) => async (branchName) => {
|
|
179970
|
+
const key = getSchemaSyncLockKey(branchName);
|
|
179971
|
+
return (await db.execute(sql`SELECT pg_try_advisory_lock(CAST(${key} AS bigint)) as acquired`)).rows[0]?.acquired === true;
|
|
179972
|
+
}, "tryAcquireSchemaSyncLock");
|
|
179973
|
+
var releaseSchemaSyncLock = /* @__PURE__ */ __name((db) => async (branchName) => {
|
|
179974
|
+
const key = getSchemaSyncLockKey(branchName);
|
|
179975
|
+
await db.execute(sql`SELECT pg_advisory_unlock(CAST(${key} AS bigint))`);
|
|
179976
|
+
}, "releaseSchemaSyncLock");
|
|
179977
|
+
var getLatestCommitHash = /* @__PURE__ */ __name((db) => async () => {
|
|
179978
|
+
return (await db.execute(sql`SELECT commit_hash FROM dolt_log LIMIT 1`)).rows[0]?.commit_hash;
|
|
179979
|
+
}, "getLatestCommitHash");
|
|
179980
|
+
var syncSchemaFromMain = /* @__PURE__ */ __name((db) => async (options = {}) => {
|
|
179981
|
+
const currentBranch = await getActiveBranch(db)();
|
|
179982
|
+
if (currentBranch === SCHEMA_SOURCE_BRANCH) return {
|
|
179983
|
+
synced: true,
|
|
179984
|
+
hadDifferences: false,
|
|
179985
|
+
error: "Cannot sync schema: already on schema source branch"
|
|
179986
|
+
};
|
|
179987
|
+
if (!await tryAcquireSchemaSyncLock(db)(currentBranch)) return {
|
|
179988
|
+
synced: false,
|
|
179989
|
+
hadDifferences: true,
|
|
179990
|
+
skippedDueToLock: true
|
|
179991
|
+
};
|
|
179992
|
+
try {
|
|
179993
|
+
const differences = await getSchemaDiff(db)(currentBranch);
|
|
179994
|
+
if (differences.length === 0) return {
|
|
179995
|
+
synced: false,
|
|
179996
|
+
hadDifferences: false
|
|
179997
|
+
};
|
|
179998
|
+
if (await hasUncommittedChanges(db)()) if (options.autoCommitPending) await commitPendingChanges(db)({
|
|
179999
|
+
message: "Auto-commit pending changes before schema sync",
|
|
180000
|
+
author: options.author
|
|
180001
|
+
});
|
|
180002
|
+
else return {
|
|
180003
|
+
synced: false,
|
|
180004
|
+
hadDifferences: true,
|
|
180005
|
+
differences,
|
|
180006
|
+
error: "Cannot sync schema: uncommitted changes exist. Commit changes first or set autoCommitPending: true"
|
|
180007
|
+
};
|
|
180008
|
+
const mergeSchemaMessage = `Synced schema from ${SCHEMA_SOURCE_BRANCH}`;
|
|
180009
|
+
if ((await doltMerge(db)({
|
|
180010
|
+
fromBranch: SCHEMA_SOURCE_BRANCH,
|
|
180011
|
+
toBranch: currentBranch,
|
|
180012
|
+
message: mergeSchemaMessage,
|
|
180013
|
+
noFastForward: true,
|
|
180014
|
+
author: {
|
|
180015
|
+
name: "Schema Sync System",
|
|
180016
|
+
email: "system@inkeep.com"
|
|
180017
|
+
}
|
|
180018
|
+
})).status === "conflicts") {
|
|
180019
|
+
await doltAbortMerge(db)();
|
|
180020
|
+
return {
|
|
180021
|
+
synced: false,
|
|
180022
|
+
hadDifferences: true,
|
|
180023
|
+
differences,
|
|
180024
|
+
error: "Schema merge produced conflicts that require manual resolution. Merge has been aborted."
|
|
180025
|
+
};
|
|
180026
|
+
}
|
|
180027
|
+
return {
|
|
180028
|
+
synced: true,
|
|
180029
|
+
hadDifferences: true,
|
|
180030
|
+
differences,
|
|
180031
|
+
mergeCommitHash: await getLatestCommitHash(db)()
|
|
180032
|
+
};
|
|
180033
|
+
} catch (error46) {
|
|
180034
|
+
try {
|
|
180035
|
+
await doltAbortMerge(db)();
|
|
180036
|
+
} catch {
|
|
180037
|
+
}
|
|
180038
|
+
return {
|
|
180039
|
+
synced: false,
|
|
180040
|
+
hadDifferences: true,
|
|
180041
|
+
error: `Schema sync failed: ${error46 instanceof Error ? error46.message : "Unknown error"}`
|
|
180042
|
+
};
|
|
180043
|
+
} finally {
|
|
180044
|
+
try {
|
|
180045
|
+
await releaseSchemaSyncLock(db)(currentBranch);
|
|
180046
|
+
} catch {
|
|
180047
|
+
}
|
|
180048
|
+
}
|
|
180049
|
+
}, "syncSchemaFromMain");
|
|
180050
|
+
var ensureSchemaSync = /* @__PURE__ */ __name((db) => async (options = {}) => {
|
|
180051
|
+
const currentBranch = await getActiveBranch(db)();
|
|
180052
|
+
if (currentBranch === SCHEMA_SOURCE_BRANCH) return {
|
|
180053
|
+
synced: false,
|
|
180054
|
+
hadDifferences: false
|
|
180055
|
+
};
|
|
180056
|
+
const differences = await getSchemaDiff(db)(currentBranch);
|
|
180057
|
+
if (differences.length === 0) return {
|
|
180058
|
+
synced: false,
|
|
180059
|
+
hadDifferences: false
|
|
180060
|
+
};
|
|
180061
|
+
if (options.autoSync) return syncSchemaFromMain(db)({
|
|
180062
|
+
autoCommitPending: options.autoCommitPending,
|
|
180063
|
+
commitMessage: options.commitMessage,
|
|
180064
|
+
author: options.author
|
|
179962
180065
|
});
|
|
179963
|
-
|
|
180066
|
+
return {
|
|
180067
|
+
synced: false,
|
|
180068
|
+
hadDifferences: true,
|
|
180069
|
+
differences,
|
|
180070
|
+
error: `Branch '${currentBranch}' has ${differences.length} schema difference(s) from '${SCHEMA_SOURCE_BRANCH}'. Set autoSync: true to automatically sync schema.`
|
|
180071
|
+
};
|
|
180072
|
+
}, "ensureSchemaSync");
|
|
179964
180073
|
|
|
179965
|
-
// ../packages/agents-core/dist/
|
|
179966
|
-
var
|
|
179967
|
-
|
|
179968
|
-
|
|
180074
|
+
// ../packages/agents-core/dist/dolt/branches-api.js
|
|
180075
|
+
var checkoutBranch = /* @__PURE__ */ __name((db) => async (params) => {
|
|
180076
|
+
const { branchName, syncSchema = true, autoCommitPending = false } = params;
|
|
180077
|
+
const branch = (await doltListBranches(db)()).find((b3) => b3.name === branchName);
|
|
180078
|
+
if (!branch) throw new Error(`Branch '${branchName}' not found`);
|
|
180079
|
+
await doltCheckout(db)({
|
|
180080
|
+
branch: branchName
|
|
179969
180081
|
});
|
|
179970
|
-
|
|
179971
|
-
|
|
179972
|
-
|
|
179973
|
-
|
|
179974
|
-
if (
|
|
179975
|
-
|
|
179976
|
-
|
|
179977
|
-
|
|
179978
|
-
|
|
179979
|
-
|
|
179980
|
-
|
|
179981
|
-
|
|
179982
|
-
|
|
179983
|
-
|
|
179984
|
-
|
|
179985
|
-
|
|
179986
|
-
|
|
179987
|
-
|
|
179988
|
-
}, "
|
|
179989
|
-
var doltAddAndCommit = /* @__PURE__ */ __name((db) => async (params) => {
|
|
179990
|
-
await doltAdd(db)({});
|
|
179991
|
-
return doltCommit(db)(params);
|
|
179992
|
-
}, "doltAddAndCommit");
|
|
179993
|
-
var doltReset = /* @__PURE__ */ __name((db) => async (params) => {
|
|
179994
|
-
if (params?.hard) await db.execute(sql`SELECT DOLT_RESET('--hard')`);
|
|
179995
|
-
else if (params?.tables && params.tables.length > 0) {
|
|
179996
|
-
const tableParams = params.tables.map((t2) => `'${t2}'`).join(", ");
|
|
179997
|
-
await db.execute(sql.raw(`SELECT DOLT_RESET(${tableParams})`));
|
|
179998
|
-
} else await db.execute(sql`SELECT DOLT_RESET()`);
|
|
179999
|
-
}, "doltReset");
|
|
180000
|
-
var doltStatus = /* @__PURE__ */ __name((db) => async () => {
|
|
180001
|
-
return (await db.execute(sql`SELECT * FROM dolt_status`)).rows;
|
|
180002
|
-
}, "doltStatus");
|
|
180003
|
-
var doltListTags = /* @__PURE__ */ __name((db) => async () => {
|
|
180004
|
-
return (await db.execute(sql`SELECT * FROM dolt_tags`)).rows;
|
|
180005
|
-
}, "doltListTags");
|
|
180082
|
+
let schemaSyncResult = {
|
|
180083
|
+
synced: false,
|
|
180084
|
+
hadDifferences: false
|
|
180085
|
+
};
|
|
180086
|
+
if (syncSchema && branchName !== SCHEMA_SOURCE_BRANCH) schemaSyncResult = await ensureSchemaSync(db)({
|
|
180087
|
+
autoSync: true,
|
|
180088
|
+
autoCommitPending
|
|
180089
|
+
});
|
|
180090
|
+
return {
|
|
180091
|
+
branchName,
|
|
180092
|
+
hash: (await doltListBranches(db)()).find((b3) => b3.name === branchName)?.hash ?? branch.hash,
|
|
180093
|
+
schemaSync: {
|
|
180094
|
+
performed: schemaSyncResult.synced,
|
|
180095
|
+
hadDifferences: schemaSyncResult.hadDifferences,
|
|
180096
|
+
error: schemaSyncResult.error,
|
|
180097
|
+
mergeCommitHash: schemaSyncResult.mergeCommitHash
|
|
180098
|
+
}
|
|
180099
|
+
};
|
|
180100
|
+
}, "checkoutBranch");
|
|
180006
180101
|
|
|
180007
180102
|
// ../packages/agents-core/dist/dolt/ref-helpers.js
|
|
180008
180103
|
var isValidCommitHash = /* @__PURE__ */ __name((ref) => {
|
|
@@ -186970,7 +187065,7 @@ var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use")
|
|
|
186970
187065
|
// ../node_modules/.pnpm/zod-to-json-schema@3.25.0_zod@4.2.1/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
186971
187066
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
186972
187067
|
|
|
186973
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
187068
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
186974
187069
|
var import_chalk = __toESM(require_source(), 1);
|
|
186975
187070
|
var import_chalk2 = __toESM(require_source(), 1);
|
|
186976
187071
|
|
|
@@ -186985,12 +187080,12 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
186985
187080
|
__name(unsafeStringify, "unsafeStringify");
|
|
186986
187081
|
|
|
186987
187082
|
// ../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist-node/rng.js
|
|
186988
|
-
var
|
|
187083
|
+
var import_node_crypto4 = require("node:crypto");
|
|
186989
187084
|
var rnds8Pool = new Uint8Array(256);
|
|
186990
187085
|
var poolPtr = rnds8Pool.length;
|
|
186991
187086
|
function rng() {
|
|
186992
187087
|
if (poolPtr > rnds8Pool.length - 16) {
|
|
186993
|
-
(0,
|
|
187088
|
+
(0, import_node_crypto4.randomFillSync)(rnds8Pool);
|
|
186994
187089
|
poolPtr = 0;
|
|
186995
187090
|
}
|
|
186996
187091
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
@@ -186998,9 +187093,9 @@ function rng() {
|
|
|
186998
187093
|
__name(rng, "rng");
|
|
186999
187094
|
|
|
187000
187095
|
// ../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist-node/native.js
|
|
187001
|
-
var
|
|
187096
|
+
var import_node_crypto5 = require("node:crypto");
|
|
187002
187097
|
var native_default = {
|
|
187003
|
-
randomUUID:
|
|
187098
|
+
randomUUID: import_node_crypto5.randomUUID
|
|
187004
187099
|
};
|
|
187005
187100
|
|
|
187006
187101
|
// ../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist-node/v4.js
|
|
@@ -187034,7 +187129,7 @@ function v4(options, buf, offset) {
|
|
|
187034
187129
|
__name(v4, "v4");
|
|
187035
187130
|
var v4_default = v4;
|
|
187036
187131
|
|
|
187037
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187132
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/tslib.mjs
|
|
187038
187133
|
function __classPrivateFieldSet2(receiver, state, value, kind, f3) {
|
|
187039
187134
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
187040
187135
|
if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -187049,7 +187144,7 @@ function __classPrivateFieldGet2(receiver, state, kind, f3) {
|
|
|
187049
187144
|
}
|
|
187050
187145
|
__name(__classPrivateFieldGet2, "__classPrivateFieldGet");
|
|
187051
187146
|
|
|
187052
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187147
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/uuid.mjs
|
|
187053
187148
|
var uuid43 = /* @__PURE__ */ __name(function() {
|
|
187054
187149
|
const { crypto: crypto7 } = globalThis;
|
|
187055
187150
|
if (crypto7?.randomUUID) {
|
|
@@ -187061,7 +187156,7 @@ var uuid43 = /* @__PURE__ */ __name(function() {
|
|
|
187061
187156
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c2) => (+c2 ^ randomByte() & 15 >> +c2 / 4).toString(16));
|
|
187062
187157
|
}, "uuid4");
|
|
187063
187158
|
|
|
187064
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187159
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/errors.mjs
|
|
187065
187160
|
function isAbortError2(err2) {
|
|
187066
187161
|
return typeof err2 === "object" && err2 !== null && // Spec-compliant fetch implementations
|
|
187067
187162
|
("name" in err2 && err2.name === "AbortError" || // Expo fetch
|
|
@@ -187091,7 +187186,7 @@ var castToError2 = /* @__PURE__ */ __name((err2) => {
|
|
|
187091
187186
|
return new Error(err2);
|
|
187092
187187
|
}, "castToError");
|
|
187093
187188
|
|
|
187094
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187189
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/error.mjs
|
|
187095
187190
|
var OpenAIError = class extends Error {
|
|
187096
187191
|
static {
|
|
187097
187192
|
__name(this, "OpenAIError");
|
|
@@ -187252,7 +187347,7 @@ var InvalidWebhookSignatureError = class extends Error {
|
|
|
187252
187347
|
}
|
|
187253
187348
|
};
|
|
187254
187349
|
|
|
187255
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187350
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/values.mjs
|
|
187256
187351
|
var startsWithSchemeRegexp2 = /^[a-z][a-z0-9+.-]*:/i;
|
|
187257
187352
|
var isAbsoluteURL3 = /* @__PURE__ */ __name((url3) => {
|
|
187258
187353
|
return startsWithSchemeRegexp2.test(url3);
|
|
@@ -187297,13 +187392,13 @@ var safeJSON2 = /* @__PURE__ */ __name((text3) => {
|
|
|
187297
187392
|
}
|
|
187298
187393
|
}, "safeJSON");
|
|
187299
187394
|
|
|
187300
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187395
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/sleep.mjs
|
|
187301
187396
|
var sleep2 = /* @__PURE__ */ __name((ms2) => new Promise((resolve4) => setTimeout(resolve4, ms2)), "sleep");
|
|
187302
187397
|
|
|
187303
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187398
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/version.mjs
|
|
187304
187399
|
var VERSION4 = "5.23.2";
|
|
187305
187400
|
|
|
187306
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187401
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/detect-platform.mjs
|
|
187307
187402
|
var isRunningInBrowser = /* @__PURE__ */ __name(() => {
|
|
187308
187403
|
return (
|
|
187309
187404
|
// @ts-ignore
|
|
@@ -187447,7 +187542,7 @@ var getPlatformHeaders2 = /* @__PURE__ */ __name(() => {
|
|
|
187447
187542
|
return _platformHeaders2 ?? (_platformHeaders2 = getPlatformProperties2());
|
|
187448
187543
|
}, "getPlatformHeaders");
|
|
187449
187544
|
|
|
187450
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187545
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/shims.mjs
|
|
187451
187546
|
function getDefaultFetch2() {
|
|
187452
187547
|
if (typeof fetch !== "undefined") {
|
|
187453
187548
|
return fetch;
|
|
@@ -187524,7 +187619,7 @@ async function CancelReadableStream2(stream4) {
|
|
|
187524
187619
|
}
|
|
187525
187620
|
__name(CancelReadableStream2, "CancelReadableStream");
|
|
187526
187621
|
|
|
187527
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187622
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/request-options.mjs
|
|
187528
187623
|
var FallbackEncoder2 = /* @__PURE__ */ __name(({ headers: headers2, body: body2 }) => {
|
|
187529
187624
|
return {
|
|
187530
187625
|
bodyHeaders: {
|
|
@@ -187534,7 +187629,7 @@ var FallbackEncoder2 = /* @__PURE__ */ __name(({ headers: headers2, body: body2
|
|
|
187534
187629
|
};
|
|
187535
187630
|
}, "FallbackEncoder");
|
|
187536
187631
|
|
|
187537
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187632
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/formats.mjs
|
|
187538
187633
|
var default_format2 = "RFC3986";
|
|
187539
187634
|
var default_formatter2 = /* @__PURE__ */ __name((v3) => String(v3), "default_formatter");
|
|
187540
187635
|
var formatters2 = {
|
|
@@ -187543,7 +187638,7 @@ var formatters2 = {
|
|
|
187543
187638
|
};
|
|
187544
187639
|
var RFC17382 = "RFC1738";
|
|
187545
187640
|
|
|
187546
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187641
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/utils.mjs
|
|
187547
187642
|
var has2 = /* @__PURE__ */ __name((obj, key) => (has2 = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has2(obj, key)), "has");
|
|
187548
187643
|
var hex_table2 = /* @__PURE__ */ (() => {
|
|
187549
187644
|
const array3 = [];
|
|
@@ -187624,7 +187719,7 @@ function maybe_map2(val, fn2) {
|
|
|
187624
187719
|
}
|
|
187625
187720
|
__name(maybe_map2, "maybe_map");
|
|
187626
187721
|
|
|
187627
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187722
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/stringify.mjs
|
|
187628
187723
|
var array_prefix_generators2 = {
|
|
187629
187724
|
brackets(prefix) {
|
|
187630
187725
|
return String(prefix) + "[]";
|
|
@@ -187914,7 +188009,7 @@ function stringify2(object4, opts = {}) {
|
|
|
187914
188009
|
}
|
|
187915
188010
|
__name(stringify2, "stringify");
|
|
187916
188011
|
|
|
187917
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188012
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/bytes.mjs
|
|
187918
188013
|
function concatBytes(buffers) {
|
|
187919
188014
|
let length = 0;
|
|
187920
188015
|
for (const buffer of buffers) {
|
|
@@ -187942,7 +188037,7 @@ function decodeUTF8(bytes) {
|
|
|
187942
188037
|
}
|
|
187943
188038
|
__name(decodeUTF8, "decodeUTF8");
|
|
187944
188039
|
|
|
187945
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188040
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/decoders/line.mjs
|
|
187946
188041
|
var _LineDecoder_buffer;
|
|
187947
188042
|
var _LineDecoder_carriageReturnIndex;
|
|
187948
188043
|
var LineDecoder = class {
|
|
@@ -188038,7 +188133,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
188038
188133
|
}
|
|
188039
188134
|
__name(findDoubleNewlineIndex, "findDoubleNewlineIndex");
|
|
188040
188135
|
|
|
188041
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188136
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/log.mjs
|
|
188042
188137
|
var levelNumbers2 = {
|
|
188043
188138
|
off: 0,
|
|
188044
188139
|
error: 200,
|
|
@@ -188121,7 +188216,7 @@ var formatRequestDetails2 = /* @__PURE__ */ __name((details) => {
|
|
|
188121
188216
|
return details;
|
|
188122
188217
|
}, "formatRequestDetails");
|
|
188123
188218
|
|
|
188124
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188219
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/streaming.mjs
|
|
188125
188220
|
var _Stream_client;
|
|
188126
188221
|
var Stream = class _Stream {
|
|
188127
188222
|
static {
|
|
@@ -188391,7 +188486,7 @@ function partition(str2, delimiter) {
|
|
|
188391
188486
|
}
|
|
188392
188487
|
__name(partition, "partition");
|
|
188393
188488
|
|
|
188394
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188489
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/parse.mjs
|
|
188395
188490
|
async function defaultParseResponse2(client, props) {
|
|
188396
188491
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
188397
188492
|
const body2 = await (async () => {
|
|
@@ -188439,7 +188534,7 @@ function addRequestID(value, response) {
|
|
|
188439
188534
|
}
|
|
188440
188535
|
__name(addRequestID, "addRequestID");
|
|
188441
188536
|
|
|
188442
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188537
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/api-promise.mjs
|
|
188443
188538
|
var _APIPromise_client2;
|
|
188444
188539
|
var APIPromise2 = class _APIPromise extends Promise {
|
|
188445
188540
|
static {
|
|
@@ -188512,7 +188607,7 @@ var APIPromise2 = class _APIPromise extends Promise {
|
|
|
188512
188607
|
};
|
|
188513
188608
|
_APIPromise_client2 = /* @__PURE__ */ new WeakMap();
|
|
188514
188609
|
|
|
188515
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188610
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/pagination.mjs
|
|
188516
188611
|
var _AbstractPage_client;
|
|
188517
188612
|
var AbstractPage = class {
|
|
188518
188613
|
static {
|
|
@@ -188657,7 +188752,7 @@ var ConversationCursorPage = class extends AbstractPage {
|
|
|
188657
188752
|
}
|
|
188658
188753
|
};
|
|
188659
188754
|
|
|
188660
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188755
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/uploads.mjs
|
|
188661
188756
|
var checkFileSupport2 = /* @__PURE__ */ __name(() => {
|
|
188662
188757
|
if (typeof File === "undefined") {
|
|
188663
188758
|
const { process: process4 } = globalThis;
|
|
@@ -188737,7 +188832,7 @@ var addFormValue = /* @__PURE__ */ __name(async (form, key, value) => {
|
|
|
188737
188832
|
}
|
|
188738
188833
|
}, "addFormValue");
|
|
188739
188834
|
|
|
188740
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188835
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/to-file.mjs
|
|
188741
188836
|
var isBlobLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function", "isBlobLike");
|
|
188742
188837
|
var isFileLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike2(value), "isFileLike");
|
|
188743
188838
|
var isResponseLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function", "isResponseLike");
|
|
@@ -188796,7 +188891,7 @@ function propsForError2(value) {
|
|
|
188796
188891
|
}
|
|
188797
188892
|
__name(propsForError2, "propsForError");
|
|
188798
188893
|
|
|
188799
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188894
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/resource.mjs
|
|
188800
188895
|
var APIResource2 = class {
|
|
188801
188896
|
static {
|
|
188802
188897
|
__name(this, "APIResource");
|
|
@@ -188806,7 +188901,7 @@ var APIResource2 = class {
|
|
|
188806
188901
|
}
|
|
188807
188902
|
};
|
|
188808
188903
|
|
|
188809
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188904
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/path.mjs
|
|
188810
188905
|
function encodeURIPath2(str2) {
|
|
188811
188906
|
return str2.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
188812
188907
|
}
|
|
@@ -188861,7 +188956,7 @@ ${underline}`);
|
|
|
188861
188956
|
}, "path"), "createPathTagFunction");
|
|
188862
188957
|
var path5 = /* @__PURE__ */ createPathTagFunction2(encodeURIPath2);
|
|
188863
188958
|
|
|
188864
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188959
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/completions/messages.mjs
|
|
188865
188960
|
var Messages = class extends APIResource2 {
|
|
188866
188961
|
static {
|
|
188867
188962
|
__name(this, "Messages");
|
|
@@ -188888,7 +188983,7 @@ var Messages = class extends APIResource2 {
|
|
|
188888
188983
|
}
|
|
188889
188984
|
};
|
|
188890
188985
|
|
|
188891
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188986
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/parser.mjs
|
|
188892
188987
|
function isChatCompletionFunctionTool(tool2) {
|
|
188893
188988
|
return tool2 !== void 0 && "function" in tool2 && tool2.function !== void 0;
|
|
188894
188989
|
}
|
|
@@ -189009,7 +189104,7 @@ function validateInputTools(tools2) {
|
|
|
189009
189104
|
}
|
|
189010
189105
|
__name(validateInputTools, "validateInputTools");
|
|
189011
189106
|
|
|
189012
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189107
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
189013
189108
|
var isAssistantMessage = /* @__PURE__ */ __name((message) => {
|
|
189014
189109
|
return message?.role === "assistant";
|
|
189015
189110
|
}, "isAssistantMessage");
|
|
@@ -189017,7 +189112,7 @@ var isToolMessage = /* @__PURE__ */ __name((message) => {
|
|
|
189017
189112
|
return message?.role === "tool";
|
|
189018
189113
|
}, "isToolMessage");
|
|
189019
189114
|
|
|
189020
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189115
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/EventStream.mjs
|
|
189021
189116
|
var _EventStream_instances;
|
|
189022
189117
|
var _EventStream_connectedPromise;
|
|
189023
189118
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -189210,13 +189305,13 @@ _EventStream_connectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_reso
|
|
|
189210
189305
|
return this._emit("error", new OpenAIError(String(error46)));
|
|
189211
189306
|
}, "_EventStream_handleError");
|
|
189212
189307
|
|
|
189213
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189308
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/RunnableFunction.mjs
|
|
189214
189309
|
function isRunnableFunctionWithParse(fn2) {
|
|
189215
189310
|
return typeof fn2.parse === "function";
|
|
189216
189311
|
}
|
|
189217
189312
|
__name(isRunnableFunctionWithParse, "isRunnableFunctionWithParse");
|
|
189218
189313
|
|
|
189219
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189314
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
189220
189315
|
var _AbstractChatCompletionRunner_instances;
|
|
189221
189316
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
189222
189317
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -189505,7 +189600,7 @@ _AbstractChatCompletionRunner_instances = /* @__PURE__ */ new WeakSet(), _Abstra
|
|
|
189505
189600
|
return typeof rawContent === "string" ? rawContent : rawContent === void 0 ? "undefined" : JSON.stringify(rawContent);
|
|
189506
189601
|
}, "_AbstractChatCompletionRunner_stringifyFunctionCallResult");
|
|
189507
189602
|
|
|
189508
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189603
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
189509
189604
|
var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
189510
189605
|
static {
|
|
189511
189606
|
__name(this, "ChatCompletionRunner");
|
|
@@ -189530,7 +189625,7 @@ var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompl
|
|
|
189530
189625
|
}
|
|
189531
189626
|
};
|
|
189532
189627
|
|
|
189533
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189628
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
189534
189629
|
var STR = 1;
|
|
189535
189630
|
var NUM = 2;
|
|
189536
189631
|
var ARR = 4;
|
|
@@ -189738,7 +189833,7 @@ var _parseJSON = /* @__PURE__ */ __name((jsonString, allow) => {
|
|
|
189738
189833
|
}, "_parseJSON");
|
|
189739
189834
|
var partialParse = /* @__PURE__ */ __name((input) => parseJSON(input, Allow.ALL ^ Allow.NUM), "partialParse");
|
|
189740
189835
|
|
|
189741
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189836
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
189742
189837
|
var _ChatCompletionStream_instances;
|
|
189743
189838
|
var _ChatCompletionStream_params;
|
|
189744
189839
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -190280,7 +190375,7 @@ function assertNever2(_x) {
|
|
|
190280
190375
|
}
|
|
190281
190376
|
__name(assertNever2, "assertNever");
|
|
190282
190377
|
|
|
190283
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190378
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
190284
190379
|
var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
190285
190380
|
static {
|
|
190286
190381
|
__name(this, "ChatCompletionStreamingRunner");
|
|
@@ -190307,7 +190402,7 @@ var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends
|
|
|
190307
190402
|
}
|
|
190308
190403
|
};
|
|
190309
190404
|
|
|
190310
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190405
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/completions/completions.mjs
|
|
190311
190406
|
var Completions = class extends APIResource2 {
|
|
190312
190407
|
static {
|
|
190313
190408
|
__name(this, "Completions");
|
|
@@ -190411,7 +190506,7 @@ var Completions = class extends APIResource2 {
|
|
|
190411
190506
|
};
|
|
190412
190507
|
Completions.Messages = Messages;
|
|
190413
190508
|
|
|
190414
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190509
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/chat.mjs
|
|
190415
190510
|
var Chat = class extends APIResource2 {
|
|
190416
190511
|
static {
|
|
190417
190512
|
__name(this, "Chat");
|
|
@@ -190423,7 +190518,7 @@ var Chat = class extends APIResource2 {
|
|
|
190423
190518
|
};
|
|
190424
190519
|
Chat.Completions = Completions;
|
|
190425
190520
|
|
|
190426
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190521
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/headers.mjs
|
|
190427
190522
|
var brand_privateNullableHeaders2 = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
190428
190523
|
function* iterateHeaders2(headers2) {
|
|
190429
190524
|
if (!headers2) return;
|
|
@@ -190499,7 +190594,7 @@ var buildHeaders2 = /* @__PURE__ */ __name((newHeaders) => {
|
|
|
190499
190594
|
};
|
|
190500
190595
|
}, "buildHeaders");
|
|
190501
190596
|
|
|
190502
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190597
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/speech.mjs
|
|
190503
190598
|
var Speech = class extends APIResource2 {
|
|
190504
190599
|
static {
|
|
190505
190600
|
__name(this, "Speech");
|
|
@@ -190534,7 +190629,7 @@ var Speech = class extends APIResource2 {
|
|
|
190534
190629
|
}
|
|
190535
190630
|
};
|
|
190536
190631
|
|
|
190537
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190632
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/transcriptions.mjs
|
|
190538
190633
|
var Transcriptions = class extends APIResource2 {
|
|
190539
190634
|
static {
|
|
190540
190635
|
__name(this, "Transcriptions");
|
|
@@ -190551,7 +190646,7 @@ var Transcriptions = class extends APIResource2 {
|
|
|
190551
190646
|
}
|
|
190552
190647
|
};
|
|
190553
190648
|
|
|
190554
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190649
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/translations.mjs
|
|
190555
190650
|
var Translations = class extends APIResource2 {
|
|
190556
190651
|
static {
|
|
190557
190652
|
__name(this, "Translations");
|
|
@@ -190567,7 +190662,7 @@ var Translations = class extends APIResource2 {
|
|
|
190567
190662
|
}
|
|
190568
190663
|
};
|
|
190569
190664
|
|
|
190570
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190665
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/audio.mjs
|
|
190571
190666
|
var Audio = class extends APIResource2 {
|
|
190572
190667
|
static {
|
|
190573
190668
|
__name(this, "Audio");
|
|
@@ -190583,7 +190678,7 @@ Audio.Transcriptions = Transcriptions;
|
|
|
190583
190678
|
Audio.Translations = Translations;
|
|
190584
190679
|
Audio.Speech = Speech;
|
|
190585
190680
|
|
|
190586
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190681
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/batches.mjs
|
|
190587
190682
|
var Batches = class extends APIResource2 {
|
|
190588
190683
|
static {
|
|
190589
190684
|
__name(this, "Batches");
|
|
@@ -190622,7 +190717,7 @@ var Batches = class extends APIResource2 {
|
|
|
190622
190717
|
}
|
|
190623
190718
|
};
|
|
190624
190719
|
|
|
190625
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190720
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/assistants.mjs
|
|
190626
190721
|
var Assistants = class extends APIResource2 {
|
|
190627
190722
|
static {
|
|
190628
190723
|
__name(this, "Assistants");
|
|
@@ -190737,7 +190832,7 @@ var Assistants = class extends APIResource2 {
|
|
|
190737
190832
|
}
|
|
190738
190833
|
};
|
|
190739
190834
|
|
|
190740
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190835
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
190741
190836
|
var Sessions = class extends APIResource2 {
|
|
190742
190837
|
static {
|
|
190743
190838
|
__name(this, "Sessions");
|
|
@@ -190771,7 +190866,7 @@ var Sessions = class extends APIResource2 {
|
|
|
190771
190866
|
}
|
|
190772
190867
|
};
|
|
190773
190868
|
|
|
190774
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190869
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
190775
190870
|
var TranscriptionSessions = class extends APIResource2 {
|
|
190776
190871
|
static {
|
|
190777
190872
|
__name(this, "TranscriptionSessions");
|
|
@@ -190805,7 +190900,7 @@ var TranscriptionSessions = class extends APIResource2 {
|
|
|
190805
190900
|
}
|
|
190806
190901
|
};
|
|
190807
190902
|
|
|
190808
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190903
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
190809
190904
|
var Realtime = class extends APIResource2 {
|
|
190810
190905
|
static {
|
|
190811
190906
|
__name(this, "Realtime");
|
|
@@ -190819,7 +190914,7 @@ var Realtime = class extends APIResource2 {
|
|
|
190819
190914
|
Realtime.Sessions = Sessions;
|
|
190820
190915
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
190821
190916
|
|
|
190822
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190917
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/messages.mjs
|
|
190823
190918
|
var Messages2 = class extends APIResource2 {
|
|
190824
190919
|
static {
|
|
190825
190920
|
__name(this, "Messages");
|
|
@@ -190912,7 +191007,7 @@ var Messages2 = class extends APIResource2 {
|
|
|
190912
191007
|
}
|
|
190913
191008
|
};
|
|
190914
191009
|
|
|
190915
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191010
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
190916
191011
|
var Steps = class extends APIResource2 {
|
|
190917
191012
|
static {
|
|
190918
191013
|
__name(this, "Steps");
|
|
@@ -190955,7 +191050,7 @@ var Steps = class extends APIResource2 {
|
|
|
190955
191050
|
}
|
|
190956
191051
|
};
|
|
190957
191052
|
|
|
190958
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191053
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/base64.mjs
|
|
190959
191054
|
var toFloat32Array = /* @__PURE__ */ __name((base64Str) => {
|
|
190960
191055
|
if (typeof Buffer !== "undefined") {
|
|
190961
191056
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -190971,7 +191066,7 @@ var toFloat32Array = /* @__PURE__ */ __name((base64Str) => {
|
|
|
190971
191066
|
}
|
|
190972
191067
|
}, "toFloat32Array");
|
|
190973
191068
|
|
|
190974
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191069
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/env.mjs
|
|
190975
191070
|
var readEnv2 = /* @__PURE__ */ __name((env3) => {
|
|
190976
191071
|
if (typeof globalThis.process !== "undefined") {
|
|
190977
191072
|
return globalThis.process.env?.[env3]?.trim() ?? void 0;
|
|
@@ -190982,7 +191077,7 @@ var readEnv2 = /* @__PURE__ */ __name((env3) => {
|
|
|
190982
191077
|
return void 0;
|
|
190983
191078
|
}, "readEnv");
|
|
190984
191079
|
|
|
190985
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191080
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/AssistantStream.mjs
|
|
190986
191081
|
var _AssistantStream_instances;
|
|
190987
191082
|
var _a3;
|
|
190988
191083
|
var _AssistantStream_events;
|
|
@@ -191567,7 +191662,7 @@ function assertNever3(_x) {
|
|
|
191567
191662
|
}
|
|
191568
191663
|
__name(assertNever3, "assertNever");
|
|
191569
191664
|
|
|
191570
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191665
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
191571
191666
|
var Runs = class extends APIResource2 {
|
|
191572
191667
|
static {
|
|
191573
191668
|
__name(this, "Runs");
|
|
@@ -191772,7 +191867,7 @@ var Runs = class extends APIResource2 {
|
|
|
191772
191867
|
};
|
|
191773
191868
|
Runs.Steps = Steps;
|
|
191774
191869
|
|
|
191775
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191870
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/threads.mjs
|
|
191776
191871
|
var Threads = class extends APIResource2 {
|
|
191777
191872
|
static {
|
|
191778
191873
|
__name(this, "Threads");
|
|
@@ -191882,7 +191977,7 @@ var Threads = class extends APIResource2 {
|
|
|
191882
191977
|
Threads.Runs = Runs;
|
|
191883
191978
|
Threads.Messages = Messages2;
|
|
191884
191979
|
|
|
191885
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191980
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/beta.mjs
|
|
191886
191981
|
var Beta = class extends APIResource2 {
|
|
191887
191982
|
static {
|
|
191888
191983
|
__name(this, "Beta");
|
|
@@ -191898,7 +191993,7 @@ Beta.Realtime = Realtime;
|
|
|
191898
191993
|
Beta.Assistants = Assistants;
|
|
191899
191994
|
Beta.Threads = Threads;
|
|
191900
191995
|
|
|
191901
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191996
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/completions.mjs
|
|
191902
191997
|
var Completions2 = class extends APIResource2 {
|
|
191903
191998
|
static {
|
|
191904
191999
|
__name(this, "Completions");
|
|
@@ -191912,7 +192007,7 @@ var Completions2 = class extends APIResource2 {
|
|
|
191912
192007
|
}
|
|
191913
192008
|
};
|
|
191914
192009
|
|
|
191915
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192010
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/files/content.mjs
|
|
191916
192011
|
var Content = class extends APIResource2 {
|
|
191917
192012
|
static {
|
|
191918
192013
|
__name(this, "Content");
|
|
@@ -191935,7 +192030,7 @@ var Content = class extends APIResource2 {
|
|
|
191935
192030
|
}
|
|
191936
192031
|
};
|
|
191937
192032
|
|
|
191938
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192033
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/files/files.mjs
|
|
191939
192034
|
var Files2 = class extends APIResource2 {
|
|
191940
192035
|
static {
|
|
191941
192036
|
__name(this, "Files");
|
|
@@ -191990,7 +192085,7 @@ var Files2 = class extends APIResource2 {
|
|
|
191990
192085
|
};
|
|
191991
192086
|
Files2.Content = Content;
|
|
191992
192087
|
|
|
191993
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192088
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/containers.mjs
|
|
191994
192089
|
var Containers = class extends APIResource2 {
|
|
191995
192090
|
static {
|
|
191996
192091
|
__name(this, "Containers");
|
|
@@ -192040,7 +192135,7 @@ var Containers = class extends APIResource2 {
|
|
|
192040
192135
|
};
|
|
192041
192136
|
Containers.Files = Files2;
|
|
192042
192137
|
|
|
192043
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192138
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/conversations/items.mjs
|
|
192044
192139
|
var Items = class extends APIResource2 {
|
|
192045
192140
|
static {
|
|
192046
192141
|
__name(this, "Items");
|
|
@@ -192086,7 +192181,7 @@ var Items = class extends APIResource2 {
|
|
|
192086
192181
|
}
|
|
192087
192182
|
};
|
|
192088
192183
|
|
|
192089
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192184
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/conversations/conversations.mjs
|
|
192090
192185
|
var Conversations = class extends APIResource2 {
|
|
192091
192186
|
static {
|
|
192092
192187
|
__name(this, "Conversations");
|
|
@@ -192128,7 +192223,7 @@ var Conversations = class extends APIResource2 {
|
|
|
192128
192223
|
};
|
|
192129
192224
|
Conversations.Items = Items;
|
|
192130
192225
|
|
|
192131
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192226
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/embeddings.mjs
|
|
192132
192227
|
var Embeddings = class extends APIResource2 {
|
|
192133
192228
|
static {
|
|
192134
192229
|
__name(this, "Embeddings");
|
|
@@ -192174,7 +192269,7 @@ var Embeddings = class extends APIResource2 {
|
|
|
192174
192269
|
}
|
|
192175
192270
|
};
|
|
192176
192271
|
|
|
192177
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192272
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
192178
192273
|
var OutputItems = class extends APIResource2 {
|
|
192179
192274
|
static {
|
|
192180
192275
|
__name(this, "OutputItems");
|
|
@@ -192198,7 +192293,7 @@ var OutputItems = class extends APIResource2 {
|
|
|
192198
192293
|
}
|
|
192199
192294
|
};
|
|
192200
192295
|
|
|
192201
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192296
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/runs/runs.mjs
|
|
192202
192297
|
var Runs2 = class extends APIResource2 {
|
|
192203
192298
|
static {
|
|
192204
192299
|
__name(this, "Runs");
|
|
@@ -192251,7 +192346,7 @@ var Runs2 = class extends APIResource2 {
|
|
|
192251
192346
|
};
|
|
192252
192347
|
Runs2.OutputItems = OutputItems;
|
|
192253
192348
|
|
|
192254
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192349
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/evals.mjs
|
|
192255
192350
|
var Evals = class extends APIResource2 {
|
|
192256
192351
|
static {
|
|
192257
192352
|
__name(this, "Evals");
|
|
@@ -192307,7 +192402,7 @@ var Evals = class extends APIResource2 {
|
|
|
192307
192402
|
};
|
|
192308
192403
|
Evals.Runs = Runs2;
|
|
192309
192404
|
|
|
192310
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192405
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/files.mjs
|
|
192311
192406
|
var Files3 = class extends APIResource2 {
|
|
192312
192407
|
static {
|
|
192313
192408
|
__name(this, "Files");
|
|
@@ -192401,14 +192496,14 @@ var Files3 = class extends APIResource2 {
|
|
|
192401
192496
|
}
|
|
192402
192497
|
};
|
|
192403
192498
|
|
|
192404
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192499
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
192405
192500
|
var Methods = class extends APIResource2 {
|
|
192406
192501
|
static {
|
|
192407
192502
|
__name(this, "Methods");
|
|
192408
192503
|
}
|
|
192409
192504
|
};
|
|
192410
192505
|
|
|
192411
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192506
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
192412
192507
|
var Graders = class extends APIResource2 {
|
|
192413
192508
|
static {
|
|
192414
192509
|
__name(this, "Graders");
|
|
@@ -192461,7 +192556,7 @@ var Graders = class extends APIResource2 {
|
|
|
192461
192556
|
}
|
|
192462
192557
|
};
|
|
192463
192558
|
|
|
192464
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192559
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
192465
192560
|
var Alpha = class extends APIResource2 {
|
|
192466
192561
|
static {
|
|
192467
192562
|
__name(this, "Alpha");
|
|
@@ -192473,7 +192568,7 @@ var Alpha = class extends APIResource2 {
|
|
|
192473
192568
|
};
|
|
192474
192569
|
Alpha.Graders = Graders;
|
|
192475
192570
|
|
|
192476
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192571
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
192477
192572
|
var Permissions = class extends APIResource2 {
|
|
192478
192573
|
static {
|
|
192479
192574
|
__name(this, "Permissions");
|
|
@@ -192546,7 +192641,7 @@ var Permissions = class extends APIResource2 {
|
|
|
192546
192641
|
}
|
|
192547
192642
|
};
|
|
192548
192643
|
|
|
192549
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192644
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
192550
192645
|
var Checkpoints = class extends APIResource2 {
|
|
192551
192646
|
static {
|
|
192552
192647
|
__name(this, "Checkpoints");
|
|
@@ -192558,7 +192653,7 @@ var Checkpoints = class extends APIResource2 {
|
|
|
192558
192653
|
};
|
|
192559
192654
|
Checkpoints.Permissions = Permissions;
|
|
192560
192655
|
|
|
192561
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192656
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
192562
192657
|
var Checkpoints2 = class extends APIResource2 {
|
|
192563
192658
|
static {
|
|
192564
192659
|
__name(this, "Checkpoints");
|
|
@@ -192584,7 +192679,7 @@ var Checkpoints2 = class extends APIResource2 {
|
|
|
192584
192679
|
}
|
|
192585
192680
|
};
|
|
192586
192681
|
|
|
192587
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192682
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
192588
192683
|
var Jobs = class extends APIResource2 {
|
|
192589
192684
|
static {
|
|
192590
192685
|
__name(this, "Jobs");
|
|
@@ -192709,7 +192804,7 @@ var Jobs = class extends APIResource2 {
|
|
|
192709
192804
|
};
|
|
192710
192805
|
Jobs.Checkpoints = Checkpoints2;
|
|
192711
192806
|
|
|
192712
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192807
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
192713
192808
|
var FineTuning = class extends APIResource2 {
|
|
192714
192809
|
static {
|
|
192715
192810
|
__name(this, "FineTuning");
|
|
@@ -192727,14 +192822,14 @@ FineTuning.Jobs = Jobs;
|
|
|
192727
192822
|
FineTuning.Checkpoints = Checkpoints;
|
|
192728
192823
|
FineTuning.Alpha = Alpha;
|
|
192729
192824
|
|
|
192730
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192825
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/graders/grader-models.mjs
|
|
192731
192826
|
var GraderModels = class extends APIResource2 {
|
|
192732
192827
|
static {
|
|
192733
192828
|
__name(this, "GraderModels");
|
|
192734
192829
|
}
|
|
192735
192830
|
};
|
|
192736
192831
|
|
|
192737
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192832
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/graders/graders.mjs
|
|
192738
192833
|
var Graders2 = class extends APIResource2 {
|
|
192739
192834
|
static {
|
|
192740
192835
|
__name(this, "Graders");
|
|
@@ -192746,7 +192841,7 @@ var Graders2 = class extends APIResource2 {
|
|
|
192746
192841
|
};
|
|
192747
192842
|
Graders2.GraderModels = GraderModels;
|
|
192748
192843
|
|
|
192749
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192844
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/images.mjs
|
|
192750
192845
|
var Images = class extends APIResource2 {
|
|
192751
192846
|
static {
|
|
192752
192847
|
__name(this, "Images");
|
|
@@ -192783,7 +192878,7 @@ var Images = class extends APIResource2 {
|
|
|
192783
192878
|
}
|
|
192784
192879
|
};
|
|
192785
192880
|
|
|
192786
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192881
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/models.mjs
|
|
192787
192882
|
var Models = class extends APIResource2 {
|
|
192788
192883
|
static {
|
|
192789
192884
|
__name(this, "Models");
|
|
@@ -192811,7 +192906,7 @@ var Models = class extends APIResource2 {
|
|
|
192811
192906
|
}
|
|
192812
192907
|
};
|
|
192813
192908
|
|
|
192814
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192909
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/moderations.mjs
|
|
192815
192910
|
var Moderations = class extends APIResource2 {
|
|
192816
192911
|
static {
|
|
192817
192912
|
__name(this, "Moderations");
|
|
@@ -192828,7 +192923,7 @@ var Moderations = class extends APIResource2 {
|
|
|
192828
192923
|
}
|
|
192829
192924
|
};
|
|
192830
192925
|
|
|
192831
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192926
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
192832
192927
|
var ClientSecrets = class extends APIResource2 {
|
|
192833
192928
|
static {
|
|
192834
192929
|
__name(this, "ClientSecrets");
|
|
@@ -192844,7 +192939,7 @@ var ClientSecrets = class extends APIResource2 {
|
|
|
192844
192939
|
}
|
|
192845
192940
|
};
|
|
192846
192941
|
|
|
192847
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192942
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/realtime/realtime.mjs
|
|
192848
192943
|
var Realtime2 = class extends APIResource2 {
|
|
192849
192944
|
static {
|
|
192850
192945
|
__name(this, "Realtime");
|
|
@@ -192856,7 +192951,7 @@ var Realtime2 = class extends APIResource2 {
|
|
|
192856
192951
|
};
|
|
192857
192952
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
192858
192953
|
|
|
192859
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192954
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ResponsesParser.mjs
|
|
192860
192955
|
function maybeParseResponse(response, params) {
|
|
192861
192956
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
192862
192957
|
return {
|
|
@@ -192987,7 +193082,7 @@ function addOutputText(rsp) {
|
|
|
192987
193082
|
}
|
|
192988
193083
|
__name(addOutputText, "addOutputText");
|
|
192989
193084
|
|
|
192990
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193085
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
192991
193086
|
var _ResponseStream_instances;
|
|
192992
193087
|
var _ResponseStream_params;
|
|
192993
193088
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -193282,7 +193377,7 @@ function finalizeResponse(snapshot, params) {
|
|
|
193282
193377
|
}
|
|
193283
193378
|
__name(finalizeResponse, "finalizeResponse");
|
|
193284
193379
|
|
|
193285
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193380
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/responses/input-items.mjs
|
|
193286
193381
|
var InputItems = class extends APIResource2 {
|
|
193287
193382
|
static {
|
|
193288
193383
|
__name(this, "InputItems");
|
|
@@ -193308,7 +193403,7 @@ var InputItems = class extends APIResource2 {
|
|
|
193308
193403
|
}
|
|
193309
193404
|
};
|
|
193310
193405
|
|
|
193311
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193406
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/responses/responses.mjs
|
|
193312
193407
|
var Responses = class extends APIResource2 {
|
|
193313
193408
|
static {
|
|
193314
193409
|
__name(this, "Responses");
|
|
@@ -193389,7 +193484,7 @@ var Responses = class extends APIResource2 {
|
|
|
193389
193484
|
};
|
|
193390
193485
|
Responses.InputItems = InputItems;
|
|
193391
193486
|
|
|
193392
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193487
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/uploads/parts.mjs
|
|
193393
193488
|
var Parts = class extends APIResource2 {
|
|
193394
193489
|
static {
|
|
193395
193490
|
__name(this, "Parts");
|
|
@@ -193415,7 +193510,7 @@ var Parts = class extends APIResource2 {
|
|
|
193415
193510
|
}
|
|
193416
193511
|
};
|
|
193417
193512
|
|
|
193418
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193513
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/uploads/uploads.mjs
|
|
193419
193514
|
var Uploads = class extends APIResource2 {
|
|
193420
193515
|
static {
|
|
193421
193516
|
__name(this, "Uploads");
|
|
@@ -193481,7 +193576,7 @@ var Uploads = class extends APIResource2 {
|
|
|
193481
193576
|
};
|
|
193482
193577
|
Uploads.Parts = Parts;
|
|
193483
193578
|
|
|
193484
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193579
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/Util.mjs
|
|
193485
193580
|
var allSettledWithThrow = /* @__PURE__ */ __name(async (promises) => {
|
|
193486
193581
|
const results = await Promise.allSettled(promises);
|
|
193487
193582
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -193500,7 +193595,7 @@ var allSettledWithThrow = /* @__PURE__ */ __name(async (promises) => {
|
|
|
193500
193595
|
return values;
|
|
193501
193596
|
}, "allSettledWithThrow");
|
|
193502
193597
|
|
|
193503
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193598
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
193504
193599
|
var FileBatches = class extends APIResource2 {
|
|
193505
193600
|
static {
|
|
193506
193601
|
__name(this, "FileBatches");
|
|
@@ -193652,7 +193747,7 @@ var FileBatches = class extends APIResource2 {
|
|
|
193652
193747
|
}
|
|
193653
193748
|
};
|
|
193654
193749
|
|
|
193655
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193750
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/files.mjs
|
|
193656
193751
|
var Files4 = class extends APIResource2 {
|
|
193657
193752
|
static {
|
|
193658
193753
|
__name(this, "Files");
|
|
@@ -193828,7 +193923,7 @@ var Files4 = class extends APIResource2 {
|
|
|
193828
193923
|
}
|
|
193829
193924
|
};
|
|
193830
193925
|
|
|
193831
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193926
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
193832
193927
|
var VectorStores = class extends APIResource2 {
|
|
193833
193928
|
static {
|
|
193834
193929
|
__name(this, "VectorStores");
|
|
@@ -193932,7 +194027,7 @@ var VectorStores = class extends APIResource2 {
|
|
|
193932
194027
|
VectorStores.Files = Files4;
|
|
193933
194028
|
VectorStores.FileBatches = FileBatches;
|
|
193934
194029
|
|
|
193935
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
194030
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/webhooks.mjs
|
|
193936
194031
|
var _Webhooks_instances;
|
|
193937
194032
|
var _Webhooks_validateSecret;
|
|
193938
194033
|
var _Webhooks_getRequiredHeader;
|
|
@@ -194021,7 +194116,7 @@ _Webhooks_instances = /* @__PURE__ */ new WeakSet(), _Webhooks_validateSecret =
|
|
|
194021
194116
|
return value;
|
|
194022
194117
|
}, "_Webhooks_getRequiredHeader");
|
|
194023
194118
|
|
|
194024
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
194119
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/client.mjs
|
|
194025
194120
|
var _OpenAI_instances;
|
|
194026
194121
|
var _a4;
|
|
194027
194122
|
var _OpenAI_encoder;
|
|
@@ -194555,13 +194650,13 @@ OpenAI.Conversations = Conversations;
|
|
|
194555
194650
|
OpenAI.Evals = Evals;
|
|
194556
194651
|
OpenAI.Containers = Containers;
|
|
194557
194652
|
|
|
194558
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
194653
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
194559
194654
|
var import_semver = __toESM(require_semver2(), 1);
|
|
194560
194655
|
|
|
194561
194656
|
// ../node_modules/.pnpm/@composio+json-schema-to-zod@0.1.19_zod@4.2.1/node_modules/@composio/json-schema-to-zod/dist/index.js
|
|
194562
194657
|
var originalIndex = Symbol("Original index");
|
|
194563
194658
|
|
|
194564
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
194659
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
194565
194660
|
var __defProp3 = Object.defineProperty;
|
|
194566
194661
|
var __export2 = /* @__PURE__ */ __name((target, all3) => {
|
|
194567
194662
|
for (var name18 in all3) __defProp3(target, name18, {
|
|
@@ -195427,8 +195522,8 @@ var Logger = class {
|
|
|
195427
195522
|
}
|
|
195428
195523
|
}
|
|
195429
195524
|
};
|
|
195430
|
-
var
|
|
195431
|
-
var logger_default =
|
|
195525
|
+
var logger9 = new Logger();
|
|
195526
|
+
var logger_default = logger9;
|
|
195432
195527
|
var ComposioError2 = class _ComposioError extends Error {
|
|
195433
195528
|
static {
|
|
195434
195529
|
__name(this, "_ComposioError");
|
|
@@ -196619,208 +196714,116 @@ var doltCheckout = /* @__PURE__ */ __name((db) => async (params) => {
|
|
|
196619
196714
|
params.create ? await db.execute(sql.raw(`SELECT DOLT_CHECKOUT('-b', '${params.branch}')`)) : await db.execute(sql.raw(`SELECT DOLT_CHECKOUT('${params.branch}')`));
|
|
196620
196715
|
}, "doltCheckout");
|
|
196621
196716
|
|
|
196622
|
-
// ../packages/agents-core/dist/dolt/
|
|
196623
|
-
var
|
|
196624
|
-
|
|
196625
|
-
|
|
196626
|
-
|
|
196627
|
-
|
|
196628
|
-
|
|
196629
|
-
|
|
196630
|
-
|
|
196631
|
-
|
|
196632
|
-
|
|
196633
|
-
|
|
196717
|
+
// ../packages/agents-core/dist/dolt/commit.js
|
|
196718
|
+
var doltAdd = /* @__PURE__ */ __name((db) => async (params = {}) => {
|
|
196719
|
+
if (!params.tables || params.tables.length === 0) await db.execute(sql`SELECT DOLT_ADD('-A')`);
|
|
196720
|
+
else {
|
|
196721
|
+
const tableParams = params.tables.map((t2) => `'${t2}'`).join(", ");
|
|
196722
|
+
console.log(tableParams);
|
|
196723
|
+
await db.execute(sql.raw(`SELECT DOLT_ADD(${tableParams})`));
|
|
196724
|
+
}
|
|
196725
|
+
}, "doltAdd");
|
|
196726
|
+
var doltCommit = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196727
|
+
const args2 = [];
|
|
196728
|
+
args2.push("'-a'");
|
|
196729
|
+
args2.push("'-m'", `'${params.message.replace(/'/g, "''")}'`);
|
|
196634
196730
|
if (params.author) args2.push("'--author'", `'${params.author.name} <${params.author.email}>'`);
|
|
196635
|
-
|
|
196636
|
-
|
|
196637
|
-
|
|
196638
|
-
|
|
196639
|
-
|
|
196640
|
-
|
|
196641
|
-
|
|
196642
|
-
|
|
196643
|
-
|
|
196644
|
-
|
|
196645
|
-
|
|
196646
|
-
|
|
196647
|
-
|
|
196648
|
-
|
|
196649
|
-
|
|
196650
|
-
|
|
196651
|
-
|
|
196652
|
-
|
|
196653
|
-
|
|
196654
|
-
|
|
196655
|
-
}, "doltAbortMerge");
|
|
196731
|
+
await db.execute(sql.raw(`SELECT DOLT_COMMIT(${args2.join(", ")})`));
|
|
196732
|
+
return "Commit successful";
|
|
196733
|
+
}, "doltCommit");
|
|
196734
|
+
var doltAddAndCommit = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196735
|
+
await doltAdd(db)({});
|
|
196736
|
+
return doltCommit(db)(params);
|
|
196737
|
+
}, "doltAddAndCommit");
|
|
196738
|
+
var doltReset = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196739
|
+
if (params?.hard) await db.execute(sql`SELECT DOLT_RESET('--hard')`);
|
|
196740
|
+
else if (params?.tables && params.tables.length > 0) {
|
|
196741
|
+
const tableParams = params.tables.map((t2) => `'${t2}'`).join(", ");
|
|
196742
|
+
await db.execute(sql.raw(`SELECT DOLT_RESET(${tableParams})`));
|
|
196743
|
+
} else await db.execute(sql`SELECT DOLT_RESET()`);
|
|
196744
|
+
}, "doltReset");
|
|
196745
|
+
var doltStatus = /* @__PURE__ */ __name((db) => async () => {
|
|
196746
|
+
return (await db.execute(sql`SELECT * FROM dolt_status`)).rows;
|
|
196747
|
+
}, "doltStatus");
|
|
196748
|
+
var doltListTags = /* @__PURE__ */ __name((db) => async () => {
|
|
196749
|
+
return (await db.execute(sql`SELECT * FROM dolt_tags`)).rows;
|
|
196750
|
+
}, "doltListTags");
|
|
196656
196751
|
|
|
196657
|
-
// ../packages/agents-core/dist/
|
|
196658
|
-
var
|
|
196659
|
-
|
|
196660
|
-
|
|
196661
|
-
|
|
196662
|
-
|
|
196663
|
-
|
|
196664
|
-
return (await db.execute(sql.raw(`SELECT * FROM dolt_schema_diff('${targetBranch}', '${SCHEMA_SOURCE_BRANCH}')`))).rows.map((row) => ({
|
|
196665
|
-
fromTableName: row.from_table_name,
|
|
196666
|
-
toTableName: row.to_table_name,
|
|
196667
|
-
fromCreateStatement: row.from_create_statement,
|
|
196668
|
-
toCreateStatement: row.to_create_statement
|
|
196669
|
-
}));
|
|
196670
|
-
}, "getSchemaDiff");
|
|
196671
|
-
var hasUncommittedChanges = /* @__PURE__ */ __name((db) => async () => {
|
|
196672
|
-
return (await doltStatus(db)()).length > 0;
|
|
196673
|
-
}, "hasUncommittedChanges");
|
|
196674
|
-
var commitPendingChanges = /* @__PURE__ */ __name((db) => async (options) => {
|
|
196675
|
-
const message = options.message ?? "Auto-commit pending changes before schema sync";
|
|
196676
|
-
await doltAddAndCommit(db)({
|
|
196677
|
-
message,
|
|
196678
|
-
author: options.author
|
|
196752
|
+
// ../packages/agents-core/dist/data-access/manage/projectLifecycle.js
|
|
196753
|
+
var logger10 = getLogger("project-lifecycle");
|
|
196754
|
+
|
|
196755
|
+
// ../packages/agents-core/dist/data-access/manage/contextConfigs.js
|
|
196756
|
+
var getContextConfigById = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196757
|
+
return await db.query.contextConfigs.findFirst({
|
|
196758
|
+
where: and(eq(contextConfigs.tenantId, params.scopes.tenantId), eq(contextConfigs.projectId, params.scopes.projectId), eq(contextConfigs.agentId, params.scopes.agentId), eq(contextConfigs.id, params.id))
|
|
196679
196759
|
});
|
|
196680
|
-
}, "
|
|
196681
|
-
|
|
196682
|
-
|
|
196683
|
-
|
|
196684
|
-
return
|
|
196685
|
-
|
|
196686
|
-
|
|
196687
|
-
|
|
196688
|
-
|
|
196689
|
-
|
|
196690
|
-
var
|
|
196691
|
-
const
|
|
196692
|
-
|
|
196693
|
-
|
|
196694
|
-
|
|
196695
|
-
|
|
196696
|
-
|
|
196697
|
-
var
|
|
196698
|
-
|
|
196699
|
-
|
|
196700
|
-
|
|
196701
|
-
|
|
196702
|
-
|
|
196703
|
-
|
|
196704
|
-
|
|
196705
|
-
|
|
196706
|
-
|
|
196707
|
-
|
|
196708
|
-
|
|
196709
|
-
|
|
196710
|
-
|
|
196711
|
-
|
|
196712
|
-
|
|
196713
|
-
|
|
196714
|
-
|
|
196715
|
-
|
|
196716
|
-
|
|
196717
|
-
author: options.author
|
|
196718
|
-
});
|
|
196719
|
-
else return {
|
|
196720
|
-
synced: false,
|
|
196721
|
-
hadDifferences: true,
|
|
196722
|
-
differences,
|
|
196723
|
-
error: "Cannot sync schema: uncommitted changes exist. Commit changes first or set autoCommitPending: true"
|
|
196724
|
-
};
|
|
196725
|
-
const mergeSchemaMessage = `Synced schema from ${SCHEMA_SOURCE_BRANCH}`;
|
|
196726
|
-
if ((await doltMerge(db)({
|
|
196727
|
-
fromBranch: SCHEMA_SOURCE_BRANCH,
|
|
196728
|
-
toBranch: currentBranch,
|
|
196729
|
-
message: mergeSchemaMessage,
|
|
196730
|
-
noFastForward: true,
|
|
196731
|
-
author: {
|
|
196732
|
-
name: "Schema Sync System",
|
|
196733
|
-
email: "system@inkeep.com"
|
|
196734
|
-
}
|
|
196735
|
-
})).status === "conflicts") {
|
|
196736
|
-
await doltAbortMerge(db)();
|
|
196737
|
-
return {
|
|
196738
|
-
synced: false,
|
|
196739
|
-
hadDifferences: true,
|
|
196740
|
-
differences,
|
|
196741
|
-
error: "Schema merge produced conflicts that require manual resolution. Merge has been aborted."
|
|
196742
|
-
};
|
|
196743
|
-
}
|
|
196744
|
-
return {
|
|
196745
|
-
synced: true,
|
|
196746
|
-
hadDifferences: true,
|
|
196747
|
-
differences,
|
|
196748
|
-
mergeCommitHash: await getLatestCommitHash(db)()
|
|
196749
|
-
};
|
|
196750
|
-
} catch (error46) {
|
|
196751
|
-
try {
|
|
196752
|
-
await doltAbortMerge(db)();
|
|
196753
|
-
} catch {
|
|
196754
|
-
}
|
|
196755
|
-
return {
|
|
196756
|
-
synced: false,
|
|
196757
|
-
hadDifferences: true,
|
|
196758
|
-
error: `Schema sync failed: ${error46 instanceof Error ? error46.message : "Unknown error"}`
|
|
196759
|
-
};
|
|
196760
|
-
} finally {
|
|
196761
|
-
try {
|
|
196762
|
-
await releaseSchemaSyncLock(db)(currentBranch);
|
|
196763
|
-
} catch {
|
|
196760
|
+
}, "getContextConfigById");
|
|
196761
|
+
|
|
196762
|
+
// ../packages/agents-core/dist/data-access/manage/externalAgents.js
|
|
196763
|
+
var getExternalAgent = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196764
|
+
return await db.query.externalAgents.findFirst({
|
|
196765
|
+
where: and(eq(externalAgents.tenantId, params.scopes.tenantId), eq(externalAgents.projectId, params.scopes.projectId), eq(externalAgents.id, params.externalAgentId))
|
|
196766
|
+
}) || null;
|
|
196767
|
+
}, "getExternalAgent");
|
|
196768
|
+
|
|
196769
|
+
// ../packages/agents-core/dist/data-access/manage/functions.js
|
|
196770
|
+
var getFunction = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196771
|
+
const { functionId, scopes } = params;
|
|
196772
|
+
const { tenantId, projectId } = scopes;
|
|
196773
|
+
return (await db.select().from(functions).where(and(eq(functions.tenantId, tenantId), eq(functions.projectId, projectId), eq(functions.id, functionId))).limit(1))[0] || null;
|
|
196774
|
+
}, "getFunction");
|
|
196775
|
+
|
|
196776
|
+
// ../packages/agents-core/dist/data-access/manage/functionTools.js
|
|
196777
|
+
var logger11 = getLogger("functionTools");
|
|
196778
|
+
var listFunctionTools = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196779
|
+
const page = params.pagination?.page || 1;
|
|
196780
|
+
const limit3 = Math.min(params.pagination?.limit || 10, 100);
|
|
196781
|
+
const offset = (page - 1) * limit3;
|
|
196782
|
+
const whereClause = and(eq(functionTools.tenantId, params.scopes.tenantId), eq(functionTools.projectId, params.scopes.projectId), eq(functionTools.agentId, params.scopes.agentId));
|
|
196783
|
+
const [functionToolsDbResults, totalResult] = await Promise.all([
|
|
196784
|
+
db.select().from(functionTools).where(whereClause).limit(limit3).offset(offset).orderBy(desc(functionTools.createdAt)),
|
|
196785
|
+
db.select({
|
|
196786
|
+
count: count()
|
|
196787
|
+
}).from(functionTools).where(whereClause)
|
|
196788
|
+
]);
|
|
196789
|
+
const total = totalResult[0]?.count || 0;
|
|
196790
|
+
return {
|
|
196791
|
+
data: functionToolsDbResults,
|
|
196792
|
+
pagination: {
|
|
196793
|
+
page,
|
|
196794
|
+
limit: limit3,
|
|
196795
|
+
total,
|
|
196796
|
+
pages: Math.ceil(total / limit3)
|
|
196764
196797
|
}
|
|
196765
|
-
}
|
|
196766
|
-
}, "syncSchemaFromMain");
|
|
196767
|
-
var ensureSchemaSync = /* @__PURE__ */ __name((db) => async (options = {}) => {
|
|
196768
|
-
const currentBranch = await getActiveBranch(db)();
|
|
196769
|
-
if (currentBranch === SCHEMA_SOURCE_BRANCH) return {
|
|
196770
|
-
synced: false,
|
|
196771
|
-
hadDifferences: false
|
|
196772
196798
|
};
|
|
196773
|
-
|
|
196774
|
-
|
|
196775
|
-
|
|
196776
|
-
|
|
196777
|
-
|
|
196778
|
-
|
|
196779
|
-
autoCommitPending: options.autoCommitPending,
|
|
196780
|
-
commitMessage: options.commitMessage,
|
|
196781
|
-
author: options.author
|
|
196799
|
+
}, "listFunctionTools");
|
|
196800
|
+
|
|
196801
|
+
// ../packages/agents-core/dist/data-access/manage/subAgentExternalAgentRelations.js
|
|
196802
|
+
var getSubAgentExternalAgentRelationsByAgent = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196803
|
+
return await db.query.subAgentExternalAgentRelations.findMany({
|
|
196804
|
+
where: and(eq(subAgentExternalAgentRelations.tenantId, params.scopes.tenantId), eq(subAgentExternalAgentRelations.projectId, params.scopes.projectId), eq(subAgentExternalAgentRelations.agentId, params.scopes.agentId))
|
|
196782
196805
|
});
|
|
196783
|
-
|
|
196784
|
-
synced: false,
|
|
196785
|
-
hadDifferences: true,
|
|
196786
|
-
differences,
|
|
196787
|
-
error: `Branch '${currentBranch}' has ${differences.length} schema difference(s) from '${SCHEMA_SOURCE_BRANCH}'. Set autoSync: true to automatically sync schema.`
|
|
196788
|
-
};
|
|
196789
|
-
}, "ensureSchemaSync");
|
|
196806
|
+
}, "getSubAgentExternalAgentRelationsByAgent");
|
|
196790
196807
|
|
|
196791
|
-
// ../packages/agents-core/dist/
|
|
196792
|
-
var
|
|
196793
|
-
|
|
196794
|
-
|
|
196795
|
-
if (!branch) throw new Error(`Branch '${branchName}' not found`);
|
|
196796
|
-
await doltCheckout(db)({
|
|
196797
|
-
branch: branchName
|
|
196808
|
+
// ../packages/agents-core/dist/data-access/manage/subAgentRelations.js
|
|
196809
|
+
var getAgentRelationsByAgent = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196810
|
+
return await db.query.subAgentRelations.findMany({
|
|
196811
|
+
where: and(eq(subAgentRelations.tenantId, params.scopes.tenantId), eq(subAgentRelations.projectId, params.scopes.projectId), eq(subAgentRelations.agentId, params.scopes.agentId))
|
|
196798
196812
|
});
|
|
196799
|
-
|
|
196800
|
-
|
|
196801
|
-
|
|
196802
|
-
|
|
196803
|
-
|
|
196804
|
-
|
|
196805
|
-
autoCommitPending
|
|
196813
|
+
}, "getAgentRelationsByAgent");
|
|
196814
|
+
|
|
196815
|
+
// ../packages/agents-core/dist/data-access/manage/subAgentTeamAgentRelations.js
|
|
196816
|
+
var getSubAgentTeamAgentRelationsByAgent = /* @__PURE__ */ __name((db) => async (params) => {
|
|
196817
|
+
return await db.query.subAgentTeamAgentRelations.findMany({
|
|
196818
|
+
where: and(eq(subAgentTeamAgentRelations.tenantId, params.scopes.tenantId), eq(subAgentTeamAgentRelations.projectId, params.scopes.projectId), eq(subAgentTeamAgentRelations.agentId, params.scopes.agentId))
|
|
196806
196819
|
});
|
|
196807
|
-
|
|
196808
|
-
branchName,
|
|
196809
|
-
hash: (await doltListBranches(db)()).find((b3) => b3.name === branchName)?.hash ?? branch.hash,
|
|
196810
|
-
schemaSync: {
|
|
196811
|
-
performed: schemaSyncResult.synced,
|
|
196812
|
-
hadDifferences: schemaSyncResult.hadDifferences,
|
|
196813
|
-
error: schemaSyncResult.error,
|
|
196814
|
-
mergeCommitHash: schemaSyncResult.mergeCommitHash
|
|
196815
|
-
}
|
|
196816
|
-
};
|
|
196817
|
-
}, "checkoutBranch");
|
|
196820
|
+
}, "getSubAgentTeamAgentRelationsByAgent");
|
|
196818
196821
|
|
|
196819
196822
|
// ../packages/agents-core/dist/utils/apiKeys.js
|
|
196820
196823
|
var import_node_crypto6 = require("node:crypto");
|
|
196821
196824
|
var import_node_util2 = require("node:util");
|
|
196822
196825
|
var scryptAsync = (0, import_node_util2.promisify)(import_node_crypto6.scrypt);
|
|
196823
|
-
var
|
|
196826
|
+
var logger12 = getLogger("api-key");
|
|
196824
196827
|
var generatePublicId = customAlphabet("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-", 12);
|
|
196825
196828
|
|
|
196826
196829
|
// ../packages/agents-core/dist/utils/error.js
|
|
@@ -196973,7 +196976,7 @@ var commonDeleteErrorResponses = {
|
|
|
196973
196976
|
|
|
196974
196977
|
// ../packages/agents-core/dist/utils/JsonTransformer.js
|
|
196975
196978
|
var jmespath2 = __toESM(require_jmespath(), 1);
|
|
196976
|
-
var
|
|
196979
|
+
var logger13 = getLogger("JsonTransformer");
|
|
196977
196980
|
|
|
196978
196981
|
// ../packages/agents-core/dist/utils/json-parser.js
|
|
196979
196982
|
var import_traverse = __toESM(require_traverse(), 1);
|
|
@@ -227410,7 +227413,7 @@ var openrouter = createOpenRouter({
|
|
|
227410
227413
|
});
|
|
227411
227414
|
|
|
227412
227415
|
// ../packages/agents-core/dist/utils/model-factory.js
|
|
227413
|
-
var
|
|
227416
|
+
var logger14 = getLogger("ModelFactory");
|
|
227414
227417
|
var nimDefault = createOpenAICompatible({
|
|
227415
227418
|
name: "nim",
|
|
227416
227419
|
baseURL: "https://integrate.api.nvidia.com/v1",
|
|
@@ -227466,7 +227469,7 @@ var ModelFactory = class ModelFactory2 {
|
|
|
227466
227469
|
},
|
|
227467
227470
|
...config3
|
|
227468
227471
|
};
|
|
227469
|
-
|
|
227472
|
+
logger14.info({
|
|
227470
227473
|
config: {
|
|
227471
227474
|
baseURL: customConfig.baseURL,
|
|
227472
227475
|
hasApiKey: !!process.env.CUSTOM_LLM_API_KEY,
|
|
@@ -227506,7 +227509,7 @@ var ModelFactory = class ModelFactory2 {
|
|
|
227506
227509
|
if (!modelSettings.model) throw new Error("Model configuration is required");
|
|
227507
227510
|
const modelString = modelSettings.model.trim();
|
|
227508
227511
|
const { provider, modelName } = ModelFactory2.parseModelString(modelString);
|
|
227509
|
-
|
|
227512
|
+
logger14.debug({
|
|
227510
227513
|
provider,
|
|
227511
227514
|
model: modelName,
|
|
227512
227515
|
fullModelString: modelSettings.model,
|
|
@@ -227514,7 +227517,7 @@ var ModelFactory = class ModelFactory2 {
|
|
|
227514
227517
|
}, "Creating language model from config");
|
|
227515
227518
|
const providerConfig = ModelFactory2.extractProviderConfig(modelSettings.providerOptions);
|
|
227516
227519
|
if (provider === "azure" || Object.keys(providerConfig).length > 0) {
|
|
227517
|
-
|
|
227520
|
+
logger14.info({
|
|
227518
227521
|
config: providerConfig
|
|
227519
227522
|
}, `Applying custom ${provider} provider configuration`);
|
|
227520
227523
|
return ModelFactory2.createProvider(provider, providerConfig).languageModel(modelName);
|
|
@@ -227631,13 +227634,13 @@ var ModelFactory = class ModelFactory2 {
|
|
|
227631
227634
|
};
|
|
227632
227635
|
|
|
227633
227636
|
// ../packages/agents-core/dist/utils/service-token-auth.js
|
|
227634
|
-
var
|
|
227637
|
+
var logger15 = getLogger("service-token-auth");
|
|
227635
227638
|
|
|
227636
227639
|
// ../packages/agents-core/dist/utils/third-party-mcp-servers/composio-client.js
|
|
227637
227640
|
var logger$1 = getLogger("composio-client");
|
|
227638
227641
|
|
|
227639
227642
|
// ../packages/agents-core/dist/utils/third-party-mcp-servers/third-party-check.js
|
|
227640
|
-
var
|
|
227643
|
+
var logger16 = getLogger("third-party-check");
|
|
227641
227644
|
|
|
227642
227645
|
// ../packages/agents-core/dist/utils/trigger-auth.js
|
|
227643
227646
|
var import_node_crypto7 = require("node:crypto");
|
|
@@ -227645,10 +227648,10 @@ var import_node_util3 = require("node:util");
|
|
|
227645
227648
|
var scryptAsync2 = (0, import_node_util3.promisify)(import_node_crypto7.scrypt);
|
|
227646
227649
|
|
|
227647
227650
|
// ../packages/agents-core/dist/utils/tracer-factory.js
|
|
227648
|
-
var
|
|
227651
|
+
var logger17 = getLogger("tracer");
|
|
227649
227652
|
|
|
227650
227653
|
// ../packages/agents-core/dist/data-access/manage/tools.js
|
|
227651
|
-
var
|
|
227654
|
+
var logger18 = getLogger("tools");
|
|
227652
227655
|
var listTools = /* @__PURE__ */ __name((db) => async (params) => {
|
|
227653
227656
|
const page = params.pagination?.page || 1;
|
|
227654
227657
|
const limit3 = Math.min(params.pagination?.limit || 10, 100);
|
|
@@ -227685,6 +227688,7 @@ var getAgentById = /* @__PURE__ */ __name((db) => async (params) => {
|
|
|
227685
227688
|
where: and(eq(agents.tenantId, params.scopes.tenantId), eq(agents.projectId, params.scopes.projectId), eq(agents.id, params.scopes.agentId))
|
|
227686
227689
|
}) ?? null;
|
|
227687
227690
|
}, "getAgentById");
|
|
227691
|
+
var agentsLogger = getLogger("agents-data-access");
|
|
227688
227692
|
var fetchComponentRelationships = /* @__PURE__ */ __name((db) => async (scopes, subAgentIds, config3) => {
|
|
227689
227693
|
const componentsObject = {};
|
|
227690
227694
|
if (subAgentIds.length > 0) {
|
|
@@ -228158,9 +228162,6 @@ var getEvaluationJobConfigEvaluatorRelations = /* @__PURE__ */ __name((db) => as
|
|
|
228158
228162
|
// ../packages/agents-core/dist/data-access/manage/projectFull.js
|
|
228159
228163
|
var defaultLogger2 = getLogger("projectFull");
|
|
228160
228164
|
|
|
228161
|
-
// ../packages/agents-core/dist/data-access/manage/projectLifecycle.js
|
|
228162
|
-
var logger18 = getLogger("project-lifecycle");
|
|
228163
|
-
|
|
228164
228165
|
// ../packages/agents-core/dist/data-access/runtime/conversations.js
|
|
228165
228166
|
var getConversation = /* @__PURE__ */ __name((db) => async (params) => {
|
|
228166
228167
|
return await db.query.conversations.findFirst({
|
|
@@ -228530,11 +228531,12 @@ var envSchema2 = external_exports.object({
|
|
|
228530
228531
|
ANTHROPIC_API_KEY: external_exports.string().describe("Anthropic API key for Claude models (required for agent execution). Get from https://console.anthropic.com/"),
|
|
228531
228532
|
OPENAI_API_KEY: external_exports.string().optional().describe("OpenAI API key for GPT models. Get from https://platform.openai.com/"),
|
|
228532
228533
|
GOOGLE_GENERATIVE_AI_API_KEY: external_exports.string().optional().describe("Google Generative AI API key for Gemini models"),
|
|
228533
|
-
|
|
228534
|
-
|
|
228535
|
-
|
|
228536
|
-
|
|
228537
|
-
|
|
228534
|
+
// GitHub App Configuration
|
|
228535
|
+
GITHUB_APP_ID: external_exports.string().optional().describe("GitHub App ID for GitHub integration"),
|
|
228536
|
+
GITHUB_APP_PRIVATE_KEY: external_exports.string().optional().describe("GitHub App private key for authentication"),
|
|
228537
|
+
GITHUB_WEBHOOK_SECRET: external_exports.string().optional().describe("Secret for validating GitHub webhook payloads"),
|
|
228538
|
+
GITHUB_STATE_SIGNING_SECRET: external_exports.string().min(32, "GITHUB_STATE_SIGNING_SECRET must be at least 32 characters").optional().describe("Secret for signing GitHub OAuth state (minimum 32 characters)"),
|
|
228539
|
+
GITHUB_APP_NAME: external_exports.string().optional().describe("Name of the GitHub App"),
|
|
228538
228540
|
GITHUB_MCP_API_KEY: external_exports.string().optional().describe("API key for the GitHub MCP"),
|
|
228539
228541
|
// Workflow Configuration
|
|
228540
228542
|
WORKFLOW_TARGET_WORLD: external_exports.string().optional().describe("Target world for workflow execution"),
|