perstack 0.0.115 → 0.0.117
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 +24 -35
- package/dist/bin/cli.js.map +1 -1
- package/dist/{dist-Dbqn18AZ.js → dist-ByKamhCW.js} +67 -38
- package/dist/{dist-Dbqn18AZ.js.map → dist-ByKamhCW.js.map} +1 -1
- package/dist/{resolve-expert-BZR9BBkj.js → resolve-expert-NYqP4qog.js} +4 -3
- package/dist/resolve-expert-NYqP4qog.js.map +1 -0
- package/package.json +4 -4
- package/dist/resolve-expert-BZR9BBkj.js.map +0 -1
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-D_gEzPfs.js";
|
|
3
|
-
import { $ as intersection, A as runCommandInputSchema, At as NEVER, B as resolveModelTier, C as runSettingSchema, Ct as parseAsync, D as stopRunByDelegate, Dt as defineLazy, E as startRun, Et as clone, F as expertSchema, Ft as createId, G as _enum, H as number$1, I as isCoordinatorExpert, J as any, K as _instanceof, L as validateDelegation, M as perstackConfigSchema, Mt as defaultMaxRetries, N as lockfileSchema, Nt as defaultPerstackApiBaseUrl, O as stopRunByError, Ot as normalizeParams, P as jobSchema, Pt as defaultTimeout, Q as discriminatedUnion, R as checkpointSchema, S as runParamsSchema, St as parse$1, T as startGeneration, Tt as safeParseAsync$1, U as ZodIssueCode$1, V as resolveModelTierWithFallback, W as ZodOptional$1, X as boolean, Y as array$1, Z as custom, _ as parseExpertKey, _t as toJSONSchema, a as validateEventFilter, at as object$2, b as resumeFromStop, bt as $ZodObject, c as createBaseToolActivity, ct as record, d as completeRun, dt as tuple, et as lazy, f as continueToNextStep, ft as union, g as finishToolCall, gt as datetime, h as finishMcpTools, ht as safeParseAsync$2, i as createFilteredEventListener, it as number, j as startCommandInputSchema, jt as PerstackError, k as stopRunByInteractiveTool, kt as $constructor, l as createGeneralToolActivity, lt as strictObject, m as createStreamingEvent, mt as url, n as parseWithFriendlyError, nt as looseObject, o as getFilteredEnv, ot as optional, p as createRuntimeEvent, pt as unknown, q as _null, r as truncateText$1, rt as never, s as BASE_SKILL_PREFIX, st as preprocess, t as createApiClient, tt as literal, u as callTools, ut as string, v as proceedToInteractiveTools, vt as describe$1, w as skipDelegates, wt as safeParse$1, x as retry, xt as $ZodType, y as resolveToolResults, yt as meta$1, z as knownModels } from "../dist-
|
|
3
|
+
import { $ as intersection, A as runCommandInputSchema, At as NEVER, B as resolveModelTier, C as runSettingSchema, Ct as parseAsync, D as stopRunByDelegate, Dt as defineLazy, E as startRun, Et as clone, F as expertSchema, Ft as createId, G as _enum, H as number$1, I as isCoordinatorExpert, J as any, K as _instanceof, L as validateDelegation, M as perstackConfigSchema, Mt as defaultMaxRetries, N as lockfileSchema, Nt as defaultPerstackApiBaseUrl, O as stopRunByError, Ot as normalizeParams, P as jobSchema, Pt as defaultTimeout, Q as discriminatedUnion, R as checkpointSchema, S as runParamsSchema, St as parse$1, T as startGeneration, Tt as safeParseAsync$1, U as ZodIssueCode$1, V as resolveModelTierWithFallback, W as ZodOptional$1, X as boolean, Y as array$1, Z as custom, _ as parseExpertKey, _t as toJSONSchema, a as validateEventFilter, at as object$2, b as resumeFromStop, bt as $ZodObject, c as createBaseToolActivity, ct as record, d as completeRun, dt as tuple, et as lazy, f as continueToNextStep, ft as union, g as finishToolCall, gt as datetime, h as finishMcpTools, ht as safeParseAsync$2, i as createFilteredEventListener, it as number, j as startCommandInputSchema, jt as PerstackError, k as stopRunByInteractiveTool, kt as $constructor, l as createGeneralToolActivity, lt as strictObject, m as createStreamingEvent, mt as url, n as parseWithFriendlyError, nt as looseObject, o as getFilteredEnv, ot as optional, p as createRuntimeEvent, pt as unknown, q as _null, r as truncateText$1, rt as never, s as BASE_SKILL_PREFIX, st as preprocess, t as createApiClient, tt as literal, u as callTools, ut as string, v as proceedToInteractiveTools, vt as describe$1, w as skipDelegates, wt as safeParse$1, x as retry, xt as $ZodType, y as resolveToolResults, yt as meta$1, z as knownModels } from "../dist-ByKamhCW.js";
|
|
4
4
|
import { t as require_token_error } from "../token-error-_b-fOBh2.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";
|
|
@@ -1102,7 +1102,8 @@ function toRuntimeExpert(key, expert) {
|
|
|
1102
1102
|
instruction: expert.instruction,
|
|
1103
1103
|
skills,
|
|
1104
1104
|
delegates: expert.delegates ?? [],
|
|
1105
|
-
tags: expert.tags ?? []
|
|
1105
|
+
tags: expert.tags ?? [],
|
|
1106
|
+
defaultModelTier: expert.defaultModelTier
|
|
1106
1107
|
};
|
|
1107
1108
|
}
|
|
1108
1109
|
function configExpertToExpert(key, configExpert) {
|
|
@@ -1117,7 +1118,8 @@ function configExpertToExpert(key, configExpert) {
|
|
|
1117
1118
|
tags: configExpert.tags,
|
|
1118
1119
|
providerTools: configExpert.providerTools,
|
|
1119
1120
|
providerSkills: configExpert.providerSkills,
|
|
1120
|
-
providerToolOptions: configExpert.providerToolOptions
|
|
1121
|
+
providerToolOptions: configExpert.providerToolOptions,
|
|
1122
|
+
defaultModelTier: configExpert.defaultModelTier
|
|
1121
1123
|
});
|
|
1122
1124
|
}
|
|
1123
1125
|
async function resolveAllExperts(config, env) {
|
|
@@ -21310,7 +21312,7 @@ async function expertVersionsHandler(scopeName, options) {
|
|
|
21310
21312
|
|
|
21311
21313
|
//#endregion
|
|
21312
21314
|
//#region ../../packages/runtime/package.json
|
|
21313
|
-
var version$1 = "0.0.
|
|
21315
|
+
var version$1 = "0.0.132";
|
|
21314
21316
|
|
|
21315
21317
|
//#endregion
|
|
21316
21318
|
//#region ../../packages/runtime/src/helpers/usage.ts
|
|
@@ -80217,7 +80219,7 @@ function validateRuntimeVersion(experts) {
|
|
|
80217
80219
|
//#endregion
|
|
80218
80220
|
//#region ../../packages/runtime/src/helpers/setup-experts.ts
|
|
80219
80221
|
async function setupExperts(setting, resolveExpertToRun) {
|
|
80220
|
-
const resolveFn = resolveExpertToRun ?? (await import("../resolve-expert-
|
|
80222
|
+
const resolveFn = resolveExpertToRun ?? (await import("../resolve-expert-NYqP4qog.js")).resolveExpertToRun;
|
|
80221
80223
|
const { expertKey } = setting;
|
|
80222
80224
|
const experts = { ...setting.experts };
|
|
80223
80225
|
const clientOptions = {
|
|
@@ -122265,36 +122267,23 @@ const InterfacePanel = ({ query, runStatus, onSubmit, delegationTreeState, runni
|
|
|
122265
122267
|
providerName ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · ", providerName] }) : null
|
|
122266
122268
|
]
|
|
122267
122269
|
}),
|
|
122268
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
122269
|
-
|
|
122270
|
-
|
|
122271
|
-
children: "
|
|
122272
|
-
|
|
122273
|
-
|
|
122274
|
-
|
|
122275
|
-
|
|
122276
|
-
|
|
122277
|
-
|
|
122278
|
-
|
|
122279
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
122280
|
-
dimColor: true,
|
|
122281
|
-
children: " · C "
|
|
122282
|
-
}),
|
|
122283
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedCachedInputTokens }),
|
|
122284
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
|
|
122285
|
-
dimColor: true,
|
|
122286
|
-
children: " · O "
|
|
122287
|
-
}),
|
|
122288
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedOutputTokens }),
|
|
122289
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
122290
|
-
dimColor: true,
|
|
122291
|
-
children: [
|
|
122292
|
-
" (cache: ",
|
|
122270
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
|
|
122271
|
+
dimColor: true,
|
|
122272
|
+
children: [
|
|
122273
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: "Tokens: " }),
|
|
122274
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: ["In ", formattedInputTokens] }),
|
|
122275
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · Out ", formattedOutputTokens] }),
|
|
122276
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
|
|
122277
|
+
" ",
|
|
122278
|
+
"· Cache ",
|
|
122279
|
+
formattedCachedInputTokens,
|
|
122280
|
+
"/",
|
|
122293
122281
|
cacheHitRate,
|
|
122294
|
-
"%
|
|
122295
|
-
]
|
|
122296
|
-
|
|
122297
|
-
|
|
122282
|
+
"%"
|
|
122283
|
+
] }),
|
|
122284
|
+
formattedReasoningTokens !== "0" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · Reasoning ", formattedReasoningTokens] }) : null
|
|
122285
|
+
]
|
|
122286
|
+
})
|
|
122298
122287
|
] }),
|
|
122299
122288
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DelegationTree, { state: delegationTreeState }),
|
|
122300
122289
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
|
|
@@ -122882,7 +122871,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
122882
122871
|
//#endregion
|
|
122883
122872
|
//#region package.json
|
|
122884
122873
|
var name = "perstack";
|
|
122885
|
-
var version = "0.0.
|
|
122874
|
+
var version = "0.0.117";
|
|
122886
122875
|
var description = "PerStack CLI";
|
|
122887
122876
|
|
|
122888
122877
|
//#endregion
|