perstack 0.0.116 → 0.0.118

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 CHANGED
@@ -120037,6 +120037,7 @@ const SPINNER_FRAMES = [
120037
120037
  "⠏"
120038
120038
  ];
120039
120039
  const USAGE_INDICATORS = {
120040
+ EMPTY: "○",
120040
120041
  LOW: "◔",
120041
120042
  MEDIUM: "◑",
120042
120043
  HIGH: "◕",
@@ -122127,10 +122128,11 @@ const useSpinner = ({ isActive }) => {
122127
122128
  //#endregion
122128
122129
  //#region ../../packages/tui-components/src/execution/components/delegation-tree.tsx
122129
122130
  function getUsageIcon(percent) {
122130
- if (percent <= 25) return USAGE_INDICATORS.LOW;
122131
- if (percent <= 50) return USAGE_INDICATORS.MEDIUM;
122132
- if (percent <= 75) return USAGE_INDICATORS.HIGH;
122133
- return USAGE_INDICATORS.FULL;
122131
+ if (percent >= 75) return USAGE_INDICATORS.FULL;
122132
+ if (percent >= 50) return USAGE_INDICATORS.HIGH;
122133
+ if (percent >= 25) return USAGE_INDICATORS.MEDIUM;
122134
+ if (percent >= 5) return USAGE_INDICATORS.LOW;
122135
+ return USAGE_INDICATORS.EMPTY;
122134
122136
  }
122135
122137
  function buildPrefix(flatNode) {
122136
122138
  if (flatNode.depth === 0) return "";
@@ -122172,27 +122174,35 @@ function TreeNodeLine({ flatNode, spinner }) {
122172
122174
  const usagePercent = (node.contextWindowUsage * 100).toFixed(1);
122173
122175
  const usageIcon = getUsageIcon(node.contextWindowUsage * 100);
122174
122176
  const showUsage = node.status !== "completed";
122175
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
122176
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122177
- dimColor: true,
122178
- children: prefix
122179
- }),
122180
- indicator,
122181
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: " " }),
122182
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122183
- bold: true,
122184
- children: node.expertName
122185
- }),
122186
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122187
- dimColor: true,
122188
- children: ": "
122177
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box, { children: [
122178
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
122179
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122180
+ dimColor: true,
122181
+ children: prefix
122182
+ }),
122183
+ indicator,
122184
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: " " }),
122185
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122186
+ bold: true,
122187
+ children: node.expertName
122188
+ }),
122189
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122190
+ dimColor: true,
122191
+ children: ": "
122192
+ })
122193
+ ] }),
122194
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
122195
+ flexGrow: 1,
122196
+ flexShrink: 1,
122197
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
122198
+ wrap: "truncate",
122199
+ children: [node.actionLabel, node.actionFileArg ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
122200
+ color: colors.muted,
122201
+ children: [" ", node.actionFileArg]
122202
+ }) : null]
122203
+ })
122189
122204
  }),
122190
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: node.actionLabel }),
122191
- node.actionFileArg ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
122192
- color: colors.muted,
122193
- children: [" ", node.actionFileArg]
122194
- }) : null,
122195
- showUsage ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
122205
+ showUsage ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
122196
122206
  node.model ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122197
122207
  dimColor: true,
122198
122208
  children: " · "
@@ -122267,36 +122277,23 @@ const InterfacePanel = ({ query, runStatus, onSubmit, delegationTreeState, runni
122267
122277
  providerName ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · ", providerName] }) : null
122268
122278
  ]
122269
122279
  }),
122270
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
122271
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122272
- dimColor: true,
122273
- children: "R "
122274
- }),
122275
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedReasoningTokens }),
122276
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122277
- dimColor: true,
122278
- children: " · I "
122279
- }),
122280
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedInputTokens }),
122281
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122282
- dimColor: true,
122283
- children: " · C "
122284
- }),
122285
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedCachedInputTokens }),
122286
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
122287
- dimColor: true,
122288
- children: " · O "
122289
- }),
122290
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: formattedOutputTokens }),
122291
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
122292
- dimColor: true,
122293
- children: [
122294
- " (cache: ",
122280
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, {
122281
+ dimColor: true,
122282
+ children: [
122283
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { children: "Tokens: " }),
122284
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: ["In ", formattedInputTokens] }),
122285
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · Out ", formattedOutputTokens] }),
122286
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
122287
+ " ",
122288
+ Cache ",
122289
+ formattedCachedInputTokens,
122290
+ "/",
122295
122291
  cacheHitRate,
122296
- "%)"
122297
- ]
122298
- })
122299
- ] })
122292
+ "%"
122293
+ ] }),
122294
+ formattedReasoningTokens !== "0" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [" · Reasoning ", formattedReasoningTokens] }) : null
122295
+ ]
122296
+ })
122300
122297
  ] }),
122301
122298
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DelegationTree, { state: delegationTreeState }),
122302
122299
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { children: [
@@ -122884,7 +122881,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
122884
122881
  //#endregion
122885
122882
  //#region package.json
122886
122883
  var name = "perstack";
122887
- var version = "0.0.116";
122884
+ var version = "0.0.118";
122888
122885
  var description = "PerStack CLI";
122889
122886
 
122890
122887
  //#endregion