perstack 0.0.135 → 0.0.136
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/bin/cli.js +9 -6
- package/dist/bin/cli.js.map +1 -1
- package/dist/{dist-CcuzVu2T.js → dist-B-pbUImR.js} +3 -2
- package/dist/{dist-CcuzVu2T.js.map → dist-B-pbUImR.js.map} +1 -1
- package/dist/{resolve-expert-Bin42ehj.js → resolve-expert-Lim3XOx2.js} +2 -2
- package/dist/{resolve-expert-Bin42ehj.js.map → resolve-expert-Lim3XOx2.js.map} +1 -1
- package/package.json +2 -2
package/dist/bin/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../chunk-DORXReHP.js";
|
|
3
|
-
import { $ as discriminatedUnion, A as stopRunByInteractiveTool, At as $constructor, B as knownModels, C as runParamsSchema, Ct as parse$1, D as startRun, Dt as clone, E as startGeneration, Et as safeParseAsync$1, F as jobSchema, Ft as createId, G as ZodOptional$1, H as resolveModelTierWithFallback, I as expertSchema, J as _null, K as _enum, L as isCoordinatorExpert, M as startCommandInputSchema, Mt as PerstackError, N as perstackConfigSchema, O as stopRunByDelegate, Ot as defineLazy, P as lockfileSchema, Q as custom, R as validateDelegation, S as retry, St as $ZodType, T as skipDelegates, Tt as safeParse$1, U as number$1, V as resolveModelTier, W as ZodIssueCode$1, X as array$1, Y as any, Z as boolean, _ as finishToolCall, _t as datetime, a as createFilteredEventListener, at as number, b as resolveToolResults, ct as preprocess, d as callTools, dt as string, et as intersection, f as completeRun, ft as tuple, g as finishMcpTools, gt as safeParseAsync$2, h as createStreamingEvent, ht as url, i as truncateText$1, it as never, j as runCommandInputSchema, jt as NEVER, k as stopRunByError, kt as normalizeParams, l as createBaseToolActivity, lt as record, m as createRuntimeEvent, mt as unknown, n as formatZodError, nt as literal, o as validateEventFilter, ot as object$2, p as continueToNextStep, pt as union, q as _instanceof, r as parseWithFriendlyError, rt as looseObject, s as getFilteredEnv, st as optional, t as createApiClient, tt as lazy, u as createGeneralToolActivity, ut as strictObject, v as parseExpertKey, vt as toJSONSchema, w as runSettingSchema, wt as parseAsync, x as resumeFromStop, xt as $ZodObject, y as proceedToInteractiveTools, z as checkpointSchema } from "../dist-
|
|
3
|
+
import { $ as discriminatedUnion, A as stopRunByInteractiveTool, At as $constructor, B as knownModels, C as runParamsSchema, Ct as parse$1, D as startRun, Dt as clone, E as startGeneration, Et as safeParseAsync$1, F as jobSchema, Ft as createId, G as ZodOptional$1, H as resolveModelTierWithFallback, I as expertSchema, J as _null, K as _enum, L as isCoordinatorExpert, M as startCommandInputSchema, Mt as PerstackError, N as perstackConfigSchema, O as stopRunByDelegate, Ot as defineLazy, P as lockfileSchema, Q as custom, R as validateDelegation, S as retry, St as $ZodType, T as skipDelegates, Tt as safeParse$1, U as number$1, V as resolveModelTier, W as ZodIssueCode$1, X as array$1, Y as any, Z as boolean, _ as finishToolCall, _t as datetime, a as createFilteredEventListener, at as number, b as resolveToolResults, ct as preprocess, d as callTools, dt as string, et as intersection, f as completeRun, ft as tuple, g as finishMcpTools, gt as safeParseAsync$2, h as createStreamingEvent, ht as url, i as truncateText$1, it as never, j as runCommandInputSchema, jt as NEVER, k as stopRunByError, kt as normalizeParams, l as createBaseToolActivity, lt as record, m as createRuntimeEvent, mt as unknown, n as formatZodError, nt as literal, o as validateEventFilter, ot as object$2, p as continueToNextStep, pt as union, q as _instanceof, r as parseWithFriendlyError, rt as looseObject, s as getFilteredEnv, st as optional, t as createApiClient, tt as lazy, u as createGeneralToolActivity, ut as strictObject, v as parseExpertKey, vt as toJSONSchema, w as runSettingSchema, wt as parseAsync, x as resumeFromStop, xt as $ZodObject, y as proceedToInteractiveTools, z as checkpointSchema } from "../dist-B-pbUImR.js";
|
|
4
4
|
import { t as require_token_error } from "../token-error-Bru5BVnt.js";
|
|
5
5
|
import fs, { constants, lstat, mkdir, open, readFile, stat, writeFile } from "node:fs/promises";
|
|
6
6
|
import path, { dirname, extname } from "node:path";
|
|
@@ -79539,7 +79539,7 @@ function validateRuntimeVersion(experts) {
|
|
|
79539
79539
|
//#endregion
|
|
79540
79540
|
//#region ../../packages/runtime/src/helpers/setup-experts.ts
|
|
79541
79541
|
async function setupExperts(setting, resolveExpertToRun) {
|
|
79542
|
-
const resolveFn = resolveExpertToRun ?? (await import("../resolve-expert-
|
|
79542
|
+
const resolveFn = resolveExpertToRun ?? (await import("../resolve-expert-Lim3XOx2.js")).resolveExpertToRun;
|
|
79543
79543
|
const { expertKey } = setting;
|
|
79544
79544
|
const experts = { ...setting.experts };
|
|
79545
79545
|
const clientOptions = {
|
|
@@ -92132,7 +92132,8 @@ function toolCallPartToCoreToolCallPart(part) {
|
|
|
92132
92132
|
type: "tool-call",
|
|
92133
92133
|
toolCallId: part.toolCallId,
|
|
92134
92134
|
toolName: part.toolName,
|
|
92135
|
-
input: part.args
|
|
92135
|
+
input: part.args,
|
|
92136
|
+
providerOptions: part.providerMetadata
|
|
92136
92137
|
};
|
|
92137
92138
|
}
|
|
92138
92139
|
function thinkingPartToCoreThinkingPart(part) {
|
|
@@ -92304,7 +92305,8 @@ function classifyToolCalls(toolCalls, skillManager) {
|
|
|
92304
92305
|
toolCallId: tc.toolCallId,
|
|
92305
92306
|
toolName: tc.toolName,
|
|
92306
92307
|
input: tc.input,
|
|
92307
|
-
adapter
|
|
92308
|
+
adapter,
|
|
92309
|
+
providerMetadata: tc.providerMetadata
|
|
92308
92310
|
};
|
|
92309
92311
|
});
|
|
92310
92312
|
}
|
|
@@ -92321,7 +92323,8 @@ function buildToolCallParts(toolCalls) {
|
|
|
92321
92323
|
type: "toolCallPart",
|
|
92322
92324
|
toolCallId: tc.toolCallId,
|
|
92323
92325
|
toolName: tc.toolName,
|
|
92324
|
-
args: tc.input
|
|
92326
|
+
args: tc.input,
|
|
92327
|
+
providerMetadata: tc.providerMetadata
|
|
92325
92328
|
}));
|
|
92326
92329
|
}
|
|
92327
92330
|
function buildToolCalls(toolCalls) {
|
|
@@ -124640,7 +124643,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
124640
124643
|
//#endregion
|
|
124641
124644
|
//#region package.json
|
|
124642
124645
|
var name = "perstack";
|
|
124643
|
-
var version = "0.0.
|
|
124646
|
+
var version = "0.0.136";
|
|
124644
124647
|
var description = "PerStack CLI";
|
|
124645
124648
|
//#endregion
|
|
124646
124649
|
//#region bin/cli.ts
|