replicas-cli 0.2.415 → 0.2.416
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/index.mjs +19 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24428,7 +24428,7 @@ function formatTurnElapsed(ms) {
|
|
|
24428
24428
|
}
|
|
24429
24429
|
|
|
24430
24430
|
// ../shared/src/cli-version.ts
|
|
24431
|
-
var CLI_VERSION = "0.2.
|
|
24431
|
+
var CLI_VERSION = "0.2.416";
|
|
24432
24432
|
|
|
24433
24433
|
// ../shared/src/version.ts
|
|
24434
24434
|
function compareVersions(v1, v2) {
|
|
@@ -30117,6 +30117,12 @@ async function learningsUpdateCommand(id, options) {
|
|
|
30117
30117
|
async function learningsDeleteCommand(id) {
|
|
30118
30118
|
await propose({ action: "delete", target_learning_id: id });
|
|
30119
30119
|
}
|
|
30120
|
+
async function learningsWithdrawCommand(id) {
|
|
30121
|
+
const { proposal } = await agentFetch(`/v1/agent/learnings/proposals/${id}/withdraw`, {
|
|
30122
|
+
method: "POST"
|
|
30123
|
+
});
|
|
30124
|
+
console.log(`Proposal withdrawn (id: ${proposal.id}).`);
|
|
30125
|
+
}
|
|
30120
30126
|
|
|
30121
30127
|
// src/commands/computer/index.ts
|
|
30122
30128
|
import { spawn as spawn5, spawnSync as spawnSync3 } from "child_process";
|
|
@@ -37405,6 +37411,18 @@ if (isAgentMode()) {
|
|
|
37405
37411
|
if (error51 instanceof Error) {
|
|
37406
37412
|
console.error(chalk25.red(`
|
|
37407
37413
|
\u2717 ${error51.message}
|
|
37414
|
+
`));
|
|
37415
|
+
}
|
|
37416
|
+
process.exit(1);
|
|
37417
|
+
}
|
|
37418
|
+
});
|
|
37419
|
+
learnings.command("withdraw <id>").description("Withdraw a pending learning proposal from this workspace").action(async (id) => {
|
|
37420
|
+
try {
|
|
37421
|
+
await learningsWithdrawCommand(id);
|
|
37422
|
+
} catch (error51) {
|
|
37423
|
+
if (error51 instanceof Error) {
|
|
37424
|
+
console.error(chalk25.red(`
|
|
37425
|
+
\u2717 ${error51.message}
|
|
37408
37426
|
`));
|
|
37409
37427
|
}
|
|
37410
37428
|
process.exit(1);
|