osagent 0.1.42 → 0.1.43
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/cli.js +29 -21
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -146205,7 +146205,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
146205
146205
|
};
|
|
146206
146206
|
}
|
|
146207
146207
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
146208
|
-
const version3 = "0.1.
|
|
146208
|
+
const version3 = "0.1.43";
|
|
146209
146209
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
146210
146210
|
const baseHeaders = {
|
|
146211
146211
|
"User-Agent": userAgent2
|
|
@@ -329137,7 +329137,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
329137
329137
|
// packages/cli/src/utils/version.ts
|
|
329138
329138
|
async function getCliVersion() {
|
|
329139
329139
|
const pkgJson = await getPackageJson();
|
|
329140
|
-
return "0.1.
|
|
329140
|
+
return "0.1.43";
|
|
329141
329141
|
}
|
|
329142
329142
|
__name(getCliVersion, "getCliVersion");
|
|
329143
329143
|
|
|
@@ -333306,8 +333306,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
333306
333306
|
|
|
333307
333307
|
// packages/cli/src/generated/git-commit.ts
|
|
333308
333308
|
init_esbuild_shims();
|
|
333309
|
-
var GIT_COMMIT_INFO2 = "
|
|
333310
|
-
var CLI_VERSION2 = "0.1.
|
|
333309
|
+
var GIT_COMMIT_INFO2 = "69124fa";
|
|
333310
|
+
var CLI_VERSION2 = "0.1.43";
|
|
333311
333311
|
|
|
333312
333312
|
// packages/cli/src/utils/systemInfo.ts
|
|
333313
333313
|
async function getNpmVersion() {
|
|
@@ -337693,14 +337693,14 @@ var AVAILABLE_MODELS_GROQ = [
|
|
|
337693
337693
|
},
|
|
337694
337694
|
{
|
|
337695
337695
|
id: "moonshotai/kimi-k2-instruct",
|
|
337696
|
-
label: "Kimi K2 Instruct
|
|
337696
|
+
label: "Kimi K2 Instruct",
|
|
337697
337697
|
get description() {
|
|
337698
337698
|
return t2(
|
|
337699
|
-
"Kimi K2 Instruct -
|
|
337699
|
+
"Kimi K2 Instruct - 256K context, fast inference on GROQ"
|
|
337700
337700
|
);
|
|
337701
337701
|
},
|
|
337702
|
-
contextWindow:
|
|
337703
|
-
//
|
|
337702
|
+
contextWindow: 262144,
|
|
337703
|
+
// 256K
|
|
337704
337704
|
tokensPerSecond: 200
|
|
337705
337705
|
},
|
|
337706
337706
|
{
|
|
@@ -372190,12 +372190,13 @@ var _PrepareLabel = /* @__PURE__ */ __name(({
|
|
|
372190
372190
|
matchedIndex,
|
|
372191
372191
|
userInput,
|
|
372192
372192
|
textColor,
|
|
372193
|
-
isExpanded = false
|
|
372193
|
+
isExpanded = false,
|
|
372194
|
+
bold = false
|
|
372194
372195
|
}) => {
|
|
372195
372196
|
const hasMatch = matchedIndex !== void 0 && matchedIndex >= 0 && matchedIndex < label.length && userInput.length > 0;
|
|
372196
372197
|
if (!hasMatch) {
|
|
372197
372198
|
const display = isExpanded ? label : label.length > MAX_WIDTH ? label.slice(0, MAX_WIDTH) + "..." : label;
|
|
372198
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Text3, { wrap: "wrap", color: textColor, children: display });
|
|
372199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Text3, { wrap: "wrap", color: textColor, bold, children: display });
|
|
372199
372200
|
}
|
|
372200
372201
|
const matchLength = userInput.length;
|
|
372201
372202
|
let before = "";
|
|
@@ -372234,13 +372235,14 @@ var _PrepareLabel = /* @__PURE__ */ __name(({
|
|
|
372234
372235
|
after = after.length >= 3 ? after.slice(0, -3) + "..." : "...";
|
|
372235
372236
|
}
|
|
372236
372237
|
}
|
|
372237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Text3, { color: textColor, wrap: "wrap", children: [
|
|
372238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(Text3, { color: textColor, wrap: "wrap", bold, children: [
|
|
372238
372239
|
before,
|
|
372239
372240
|
match2 ? match2.split(/(\s+)/).map((part, index) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
372240
372241
|
Text3,
|
|
372241
372242
|
{
|
|
372242
372243
|
color: theme.background.primary,
|
|
372243
372244
|
backgroundColor: theme.text.primary,
|
|
372245
|
+
bold,
|
|
372244
372246
|
children: part
|
|
372245
372247
|
},
|
|
372246
372248
|
`match-${index}`
|
|
@@ -372286,7 +372288,7 @@ function SuggestionsDisplay({
|
|
|
372286
372288
|
const originalIndex = startIndex + index;
|
|
372287
372289
|
const isActive = originalIndex === activeIndex;
|
|
372288
372290
|
const isExpanded = originalIndex === expandedIndex;
|
|
372289
|
-
const textColor = isActive ? theme.text.
|
|
372291
|
+
const textColor = isActive ? theme.text.primary : theme.text.secondary;
|
|
372290
372292
|
const isLong = suggestion.value.length >= MAX_WIDTH;
|
|
372291
372293
|
const labelElement = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
372292
372294
|
PrepareLabel,
|
|
@@ -372295,21 +372297,25 @@ function SuggestionsDisplay({
|
|
|
372295
372297
|
matchedIndex: suggestion.matchedIndex,
|
|
372296
372298
|
userInput,
|
|
372297
372299
|
textColor,
|
|
372298
|
-
isExpanded
|
|
372300
|
+
isExpanded,
|
|
372301
|
+
bold: isActive
|
|
372299
372302
|
}
|
|
372300
372303
|
);
|
|
372301
372304
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
372305
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { color: isActive ? Colors.AccentCyan : theme.text.secondary, children: isActive ? "\u25B8 " : " " }),
|
|
372302
372306
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
372303
372307
|
Box_default,
|
|
372304
372308
|
{
|
|
372305
372309
|
...mode === "slash" ? { width: commandColumnWidth, flexShrink: 0 } : { flexShrink: 1 },
|
|
372306
372310
|
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Box_default, { children: [
|
|
372311
|
+
isActive && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { inverse: true, children: " " }),
|
|
372307
372312
|
labelElement,
|
|
372308
|
-
suggestion.commandKind === "mcp-prompt" /* MCP_PROMPT */ && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { color: textColor, children: " [MCP]" })
|
|
372313
|
+
suggestion.commandKind === "mcp-prompt" /* MCP_PROMPT */ && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { color: textColor, bold: isActive, children: " [MCP]" }),
|
|
372314
|
+
isActive && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { inverse: true, children: " " })
|
|
372309
372315
|
] })
|
|
372310
372316
|
}
|
|
372311
372317
|
),
|
|
372312
|
-
suggestion.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Box_default, { flexGrow: 1, paddingLeft:
|
|
372318
|
+
suggestion.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Box_default, { flexGrow: 1, paddingLeft: 2, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { color: textColor, wrap: "truncate", bold: isActive, children: suggestion.description }) }),
|
|
372313
372319
|
isActive && isLong && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Text3, { color: Colors.Gray, children: isExpanded ? " \u2190 " : " \u2192 " }) })
|
|
372314
372320
|
] }, `${suggestion.value}-${originalIndex}`);
|
|
372315
372321
|
}),
|
|
@@ -374259,8 +374265,8 @@ var generateProgressBar2 = /* @__PURE__ */ __name((percentage, width) => {
|
|
|
374259
374265
|
return "\u2588".repeat(filled) + "\u2591".repeat(empty);
|
|
374260
374266
|
}, "generateProgressBar");
|
|
374261
374267
|
var getUsageColor = /* @__PURE__ */ __name((percentage) => {
|
|
374262
|
-
if (percentage >= 0.
|
|
374263
|
-
if (percentage >= 0.
|
|
374268
|
+
if (percentage >= 0.9) return theme.status.error;
|
|
374269
|
+
if (percentage >= 0.8) return theme.status.warning;
|
|
374264
374270
|
return theme.status.success;
|
|
374265
374271
|
}, "getUsageColor");
|
|
374266
374272
|
var ContextUsageDisplay = /* @__PURE__ */ __name(({
|
|
@@ -374317,7 +374323,7 @@ init_esbuild_shims();
|
|
|
374317
374323
|
var import_jsx_runtime100 = __toESM(require_jsx_runtime(), 1);
|
|
374318
374324
|
var getIndicatorColor = /* @__PURE__ */ __name((percentageLeft) => {
|
|
374319
374325
|
if (percentageLeft <= 10) return theme.status.error;
|
|
374320
|
-
if (percentageLeft <=
|
|
374326
|
+
if (percentageLeft <= 20) return theme.status.warning;
|
|
374321
374327
|
return theme.text.secondary;
|
|
374322
374328
|
}, "getIndicatorColor");
|
|
374323
374329
|
var ContextCompactionIndicator = /* @__PURE__ */ __name(({
|
|
@@ -374331,17 +374337,19 @@ var ContextCompactionIndicator = /* @__PURE__ */ __name(({
|
|
|
374331
374337
|
const thresholdPercentage = threshold * 100;
|
|
374332
374338
|
const percentageLeft = Math.max(0, thresholdPercentage - currentUsagePercentage);
|
|
374333
374339
|
const displayPercentage = Math.round(percentageLeft);
|
|
374340
|
+
if (percentageLeft > 20) {
|
|
374341
|
+
return null;
|
|
374342
|
+
}
|
|
374334
374343
|
const color = getIndicatorColor(percentageLeft);
|
|
374335
374344
|
if (compact) {
|
|
374336
374345
|
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Text3, { color, children: [
|
|
374337
374346
|
displayPercentage,
|
|
374338
|
-
"%"
|
|
374347
|
+
"% left"
|
|
374339
374348
|
] });
|
|
374340
374349
|
}
|
|
374341
374350
|
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(Text3, { color, children: [
|
|
374342
|
-
"Context left until auto-compact: ",
|
|
374343
374351
|
displayPercentage,
|
|
374344
|
-
"%"
|
|
374352
|
+
"% left until compress"
|
|
374345
374353
|
] });
|
|
374346
374354
|
}, "ContextCompactionIndicator");
|
|
374347
374355
|
|