perstack 0.0.117 → 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 +35 -25
- package/dist/bin/cli.js.map +1 -1
- package/package.json +4 -4
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
|
|
122131
|
-
if (percent
|
|
122132
|
-
if (percent
|
|
122133
|
-
return USAGE_INDICATORS.
|
|
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)(
|
|
122176
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
122177
|
-
|
|
122178
|
-
|
|
122179
|
-
|
|
122180
|
-
|
|
122181
|
-
|
|
122182
|
-
|
|
122183
|
-
|
|
122184
|
-
|
|
122185
|
-
|
|
122186
|
-
|
|
122187
|
-
|
|
122188
|
-
|
|
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.
|
|
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: " · "
|
|
@@ -122871,7 +122881,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
122871
122881
|
//#endregion
|
|
122872
122882
|
//#region package.json
|
|
122873
122883
|
var name = "perstack";
|
|
122874
|
-
var version = "0.0.
|
|
122884
|
+
var version = "0.0.118";
|
|
122875
122885
|
var description = "PerStack CLI";
|
|
122876
122886
|
|
|
122877
122887
|
//#endregion
|