perstack 0.0.107 → 0.0.109
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 +45 -40
- package/dist/bin/cli.js.map +1 -1
- package/dist/{dist-Bm8UQoRz.js → dist-DmYKrkiR.js} +9 -6
- package/dist/{dist-Bm8UQoRz.js.map → dist-DmYKrkiR.js.map} +1 -1
- package/dist/{resolve-expert-CwaeoRiD.js → resolve-expert-B7umXJIc.js} +2 -2
- package/dist/{resolve-expert-CwaeoRiD.js.map → resolve-expert-B7umXJIc.js.map} +1 -1
- package/package.json +7 -7
|
@@ -6417,7 +6417,8 @@ const baseActivitySchema = object({
|
|
|
6417
6417
|
expertKey: string(),
|
|
6418
6418
|
runId: string()
|
|
6419
6419
|
}).optional(),
|
|
6420
|
-
reasoning: string().optional()
|
|
6420
|
+
reasoning: string().optional(),
|
|
6421
|
+
timestamp: number$1()
|
|
6421
6422
|
});
|
|
6422
6423
|
const queryActivitySchema = baseActivitySchema.extend({
|
|
6423
6424
|
type: literal("query"),
|
|
@@ -7517,7 +7518,7 @@ const stepSchema = object({
|
|
|
7517
7518
|
//#endregion
|
|
7518
7519
|
//#region ../../packages/core/src/utils/activity.ts
|
|
7519
7520
|
const BASE_SKILL_PREFIX = "@perstack/base";
|
|
7520
|
-
function createBaseToolActivity(toolName, toolCall, toolResult, reasoning) {
|
|
7521
|
+
function createBaseToolActivity(toolName, toolCall, toolResult, reasoning, timestamp = 0) {
|
|
7521
7522
|
const args = toolCall.args;
|
|
7522
7523
|
const resultContents = toolResult.result;
|
|
7523
7524
|
const errorText = getErrorFromResult(resultContents);
|
|
@@ -7525,7 +7526,8 @@ function createBaseToolActivity(toolName, toolCall, toolResult, reasoning) {
|
|
|
7525
7526
|
id: "",
|
|
7526
7527
|
expertKey: "",
|
|
7527
7528
|
runId: "",
|
|
7528
|
-
reasoning
|
|
7529
|
+
reasoning,
|
|
7530
|
+
timestamp
|
|
7529
7531
|
};
|
|
7530
7532
|
switch (toolName) {
|
|
7531
7533
|
case "attemptCompletion": {
|
|
@@ -7639,16 +7641,17 @@ function createBaseToolActivity(toolName, toolCall, toolResult, reasoning) {
|
|
|
7639
7641
|
resultExpertKey: parseStringField(resultContents, "expertKey"),
|
|
7640
7642
|
error: errorText
|
|
7641
7643
|
};
|
|
7642
|
-
default: return createGeneralToolActivity(toolCall.skillName, toolName, toolCall, toolResult, reasoning);
|
|
7644
|
+
default: return createGeneralToolActivity(toolCall.skillName, toolName, toolCall, toolResult, reasoning, timestamp);
|
|
7643
7645
|
}
|
|
7644
7646
|
}
|
|
7645
|
-
function createGeneralToolActivity(skillName, toolName, toolCall, toolResult, reasoning) {
|
|
7647
|
+
function createGeneralToolActivity(skillName, toolName, toolCall, toolResult, reasoning, timestamp = 0) {
|
|
7646
7648
|
const errorText = getErrorFromResult(toolResult.result);
|
|
7647
7649
|
return {
|
|
7648
7650
|
type: "generalTool",
|
|
7649
7651
|
id: "",
|
|
7650
7652
|
expertKey: "",
|
|
7651
7653
|
runId: "",
|
|
7654
|
+
timestamp,
|
|
7652
7655
|
reasoning,
|
|
7653
7656
|
skillName,
|
|
7654
7657
|
toolName,
|
|
@@ -9642,4 +9645,4 @@ function createApiClient(config) {
|
|
|
9642
9645
|
|
|
9643
9646
|
//#endregion
|
|
9644
9647
|
export { lazy as $, runCommandInputSchema as A, PerstackError as At, resolveModelTier as B, runSettingSchema as C, safeParse$1 as Ct, stopRunByDelegate as D, normalizeParams as Dt, startRun as E, defineLazy as Et, expertSchema$1 as F, _instanceof as G, ZodIssueCode as H, isCoordinatorExpert as I, array as J, _null as K, validateDelegation as L, perstackConfigSchema as M, defaultPerstackApiBaseUrl as Mt, lockfileSchema as N, defaultTimeout as Nt, stopRunByError as O, $constructor as Ot, jobSchema$1 as P, createId as Pt, intersection as Q, checkpointSchema as R, runParamsSchema as S, parseAsync$1 as St, startGeneration as T, clone as Tt, ZodOptional as U, number as V, _enum as W, custom as X, boolean$1 as Y, discriminatedUnion as Z, parseExpertKey as _, describe$1 as _t, validateEventFilter as a, optional as at, resumeFromStop as b, $ZodType as bt, createBaseToolActivity as c, strictObject as ct, completeRun as d, union as dt, literal as et, continueToNextStep as f, unknown as ft, finishToolCall as g, toJSONSchema as gt, finishMcpTools as h, datetime as ht, createFilteredEventListener as i, object as it, startCommandInputSchema as j, defaultMaxRetries as jt, stopRunByInteractiveTool as k, NEVER as kt, createGeneralToolActivity as l, string as lt, createStreamingEvent as m, safeParseAsync as mt, parseWithFriendlyError as n, never as nt, getFilteredEnv as o, preprocess as ot, createRuntimeEvent as p, url as pt, any as q, truncateText as r, number$1 as rt, BASE_SKILL_PREFIX as s, record as st, createApiClient as t, looseObject as tt, callTools as u, tuple as ut, proceedToInteractiveTools as v, meta$1 as vt, skipDelegates as w, safeParseAsync$1 as wt, retry as x, parse$1 as xt, resolveToolResults as y, $ZodObject as yt, knownModels as z };
|
|
9645
|
-
//# sourceMappingURL=dist-
|
|
9648
|
+
//# sourceMappingURL=dist-DmYKrkiR.js.map
|