@protolabsai/proto 0.17.0 → 0.18.0
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 +31 -15
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -170762,7 +170762,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
170762
170762
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
170763
170763
|
});
|
|
170764
170764
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
170765
|
-
const version2 = "0.
|
|
170765
|
+
const version2 = "0.18.0";
|
|
170766
170766
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
170767
170767
|
const baseHeaders = {
|
|
170768
170768
|
"User-Agent": userAgent2
|
|
@@ -411779,7 +411779,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
411779
411779
|
// packages/cli/src/utils/version.ts
|
|
411780
411780
|
async function getCliVersion() {
|
|
411781
411781
|
const pkgJson = await getPackageJson();
|
|
411782
|
-
return "0.
|
|
411782
|
+
return "0.18.0";
|
|
411783
411783
|
}
|
|
411784
411784
|
__name(getCliVersion, "getCliVersion");
|
|
411785
411785
|
|
|
@@ -419551,7 +419551,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
419551
419551
|
|
|
419552
419552
|
// packages/cli/src/generated/git-commit.ts
|
|
419553
419553
|
init_esbuild_shims();
|
|
419554
|
-
var GIT_COMMIT_INFO = "
|
|
419554
|
+
var GIT_COMMIT_INFO = "9828e8f69";
|
|
419555
419555
|
|
|
419556
419556
|
// packages/cli/src/utils/systemInfo.ts
|
|
419557
419557
|
async function getNpmVersion() {
|
|
@@ -466774,13 +466774,23 @@ init_esbuild_shims();
|
|
|
466774
466774
|
var import_react106 = __toESM(require_react(), 1);
|
|
466775
466775
|
init_dist4();
|
|
466776
466776
|
var import_jsx_runtime111 = __toESM(require_jsx_runtime(), 1);
|
|
466777
|
-
|
|
466778
|
-
|
|
466779
|
-
|
|
466780
|
-
|
|
466781
|
-
|
|
466782
|
-
|
|
466783
|
-
|
|
466777
|
+
function buildActionItems(hasFileSnapshots) {
|
|
466778
|
+
const items = [];
|
|
466779
|
+
if (hasFileSnapshots) {
|
|
466780
|
+
items.push({
|
|
466781
|
+
label: "Restore files + conversation",
|
|
466782
|
+
key: "files_and_conversation"
|
|
466783
|
+
});
|
|
466784
|
+
}
|
|
466785
|
+
items.push({ label: "Restore conversation only", key: "conversation_only" });
|
|
466786
|
+
if (hasFileSnapshots) {
|
|
466787
|
+
items.push({ label: "Restore files only", key: "files_only" });
|
|
466788
|
+
}
|
|
466789
|
+
items.push({ label: "Summarize from here", key: "summarize_from_here" });
|
|
466790
|
+
items.push({ label: "Cancel", key: "cancel" });
|
|
466791
|
+
return items;
|
|
466792
|
+
}
|
|
466793
|
+
__name(buildActionItems, "buildActionItems");
|
|
466784
466794
|
function truncate5(text, maxLen) {
|
|
466785
466795
|
if (text.length <= maxLen) return text;
|
|
466786
466796
|
return text.slice(0, maxLen - 1) + "\u2026";
|
|
@@ -466801,6 +466811,11 @@ function RewindPicker({
|
|
|
466801
466811
|
const [phase, setPhase] = (0, import_react106.useState)("pick");
|
|
466802
466812
|
const [selectedCheckpointIdx, setSelectedCheckpointIdx] = (0, import_react106.useState)(0);
|
|
466803
466813
|
const [selectedActionIdx, setSelectedActionIdx] = (0, import_react106.useState)(0);
|
|
466814
|
+
const actionItems = (0, import_react106.useMemo)(() => {
|
|
466815
|
+
const cp3 = checkpoints[selectedCheckpointIdx];
|
|
466816
|
+
const hasFileSnapshots = (cp3?.fileSnapshots.size ?? 0) > 0;
|
|
466817
|
+
return buildActionItems(hasFileSnapshots);
|
|
466818
|
+
}, [checkpoints, selectedCheckpointIdx]);
|
|
466804
466819
|
const boxWidth = width - 4;
|
|
466805
466820
|
const reservedLines = 8;
|
|
466806
466821
|
const maxVisibleItems = Math.max(1, height - reservedLines);
|
|
@@ -466854,7 +466869,7 @@ function RewindPicker({
|
|
|
466854
466869
|
onCancel();
|
|
466855
466870
|
return;
|
|
466856
466871
|
}
|
|
466857
|
-
const action =
|
|
466872
|
+
const action = actionItems[selectedActionIdx];
|
|
466858
466873
|
if (!action) {
|
|
466859
466874
|
onCancel();
|
|
466860
466875
|
return;
|
|
@@ -466887,7 +466902,7 @@ function RewindPicker({
|
|
|
466887
466902
|
}
|
|
466888
466903
|
if (key.name === "down") {
|
|
466889
466904
|
setSelectedActionIdx(
|
|
466890
|
-
(prev) => Math.min(
|
|
466905
|
+
(prev) => Math.min(actionItems.length - 1, prev + 1)
|
|
466891
466906
|
);
|
|
466892
466907
|
return;
|
|
466893
466908
|
}
|
|
@@ -466900,7 +466915,8 @@ function RewindPicker({
|
|
|
466900
466915
|
onSummarizeFromHere,
|
|
466901
466916
|
checkpoints,
|
|
466902
466917
|
selectedCheckpointIdx,
|
|
466903
|
-
selectedActionIdx
|
|
466918
|
+
selectedActionIdx,
|
|
466919
|
+
actionItems
|
|
466904
466920
|
]
|
|
466905
466921
|
);
|
|
466906
466922
|
useKeypress(
|
|
@@ -466981,7 +466997,7 @@ function RewindPicker({
|
|
|
466981
466997
|
] })
|
|
466982
466998
|
] }),
|
|
466983
466999
|
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Text3, { color: theme.border.default, children: "\u2500".repeat(boxWidth - 2) }) }),
|
|
466984
|
-
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Box_default, { flexDirection: "column", paddingX: 1, overflow: "hidden", children:
|
|
467000
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Box_default, { flexDirection: "column", paddingX: 1, overflow: "hidden", children: actionItems.map((item, idx) => {
|
|
466985
467001
|
const isSelected = idx === selectedActionIdx;
|
|
466986
467002
|
const prefix = isSelected ? "\u203A " : " ";
|
|
466987
467003
|
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
@@ -486304,7 +486320,7 @@ var QwenAgent = class {
|
|
|
486304
486320
|
async initialize(args2) {
|
|
486305
486321
|
this.clientCapabilities = args2.clientCapabilities;
|
|
486306
486322
|
const authMethods = buildAuthMethods();
|
|
486307
|
-
const version2 = "0.
|
|
486323
|
+
const version2 = "0.18.0";
|
|
486308
486324
|
return {
|
|
486309
486325
|
protocolVersion: PROTOCOL_VERSION,
|
|
486310
486326
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protolabsai/proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "proto - AI-powered coding agent",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bundled"
|
|
22
22
|
],
|
|
23
23
|
"config": {
|
|
24
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.
|
|
24
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
27
27
|
"optionalDependencies": {
|