chatroom-cli 1.85.1 → 1.86.1
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.js +40 -3
- package/dist/index.js.map +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78745,6 +78745,8 @@ __export(exports_backlog, {
|
|
|
78745
78745
|
historyBacklog: () => historyBacklog,
|
|
78746
78746
|
exportBacklogEffect: () => exportBacklogEffect,
|
|
78747
78747
|
exportBacklog: () => exportBacklog,
|
|
78748
|
+
deleteBacklogEffect: () => deleteBacklogEffect,
|
|
78749
|
+
deleteBacklog: () => deleteBacklog,
|
|
78748
78750
|
computeContentHash: () => computeContentHash,
|
|
78749
78751
|
completeBacklogEffect: () => completeBacklogEffect,
|
|
78750
78752
|
completeBacklog: () => completeBacklog,
|
|
@@ -78889,6 +78891,10 @@ async function closeBacklog(chatroomId, options, deps) {
|
|
|
78889
78891
|
const d = deps ?? await createDefaultDeps11();
|
|
78890
78892
|
await exports_Effect.runPromise(closeBacklogEffect(chatroomId, options).pipe(exports_Effect.catchAll(handleBacklogError), exports_Effect.provide(buildBaseLayer(d))));
|
|
78891
78893
|
}
|
|
78894
|
+
async function deleteBacklog(chatroomId, options, deps) {
|
|
78895
|
+
const d = deps ?? await createDefaultDeps11();
|
|
78896
|
+
await exports_Effect.runPromise(deleteBacklogEffect(chatroomId, options).pipe(exports_Effect.catchAll(handleBacklogError), exports_Effect.provide(buildBaseLayer(d))));
|
|
78897
|
+
}
|
|
78892
78898
|
async function exportBacklog(chatroomId, options, deps) {
|
|
78893
78899
|
const d = deps ?? await createDefaultDeps11();
|
|
78894
78900
|
if (!d.fs) {
|
|
@@ -79364,6 +79370,32 @@ var BACKLOG_EXPORT_FILENAME = "backlog-export.json", STALENESS_THRESHOLD_MS, DEF
|
|
|
79364
79370
|
console.log(` Reason: ${reason}`);
|
|
79365
79371
|
console.log("");
|
|
79366
79372
|
});
|
|
79373
|
+
}), deleteBacklogEffect = (chatroomId, options) => exports_Effect.gen(function* () {
|
|
79374
|
+
const sessionService = yield* SessionService;
|
|
79375
|
+
const backend2 = yield* BackendService;
|
|
79376
|
+
const sessionId = yield* requireAuthEffect(sessionService);
|
|
79377
|
+
yield* validateChatroomIdEffect2(chatroomId);
|
|
79378
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
79379
|
+
return yield* exports_Effect.fail({
|
|
79380
|
+
_tag: "InvalidInput",
|
|
79381
|
+
message: "Backlog item ID is required"
|
|
79382
|
+
});
|
|
79383
|
+
}
|
|
79384
|
+
yield* backend2.mutation(api.backlog.deleteBacklogItem, {
|
|
79385
|
+
sessionId,
|
|
79386
|
+
chatroomId,
|
|
79387
|
+
itemId: options.backlogItemId
|
|
79388
|
+
}).pipe(exports_Effect.mapError((cause3) => ({
|
|
79389
|
+
_tag: "MutationFailed",
|
|
79390
|
+
cause: cause3,
|
|
79391
|
+
context: "Failed to delete backlog item"
|
|
79392
|
+
})));
|
|
79393
|
+
yield* exports_Effect.sync(() => {
|
|
79394
|
+
console.log("");
|
|
79395
|
+
console.log("✅ Backlog item deleted");
|
|
79396
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
79397
|
+
console.log("");
|
|
79398
|
+
});
|
|
79367
79399
|
}), exportBacklogEffect = (chatroomId, options) => exports_Effect.gen(function* () {
|
|
79368
79400
|
const sessionService = yield* SessionService;
|
|
79369
79401
|
const backend2 = yield* BackendService;
|
|
@@ -91459,7 +91491,7 @@ function deriveTerminalStatus(code2, signal, terminationIntent) {
|
|
|
91459
91491
|
return "stopped";
|
|
91460
91492
|
return "failed";
|
|
91461
91493
|
}
|
|
91462
|
-
var TERMINAL_STATES, PENDING_STOP_TTL_MS = 60000, SIGTERM_GRACE_PERIOD_MS = 5000, SOFT_TIMEOUT_MS, OUTPUT_FLUSH_INTERVAL_MS =
|
|
91494
|
+
var TERMINAL_STATES, PENDING_STOP_TTL_MS = 60000, SIGTERM_GRACE_PERIOD_MS = 5000, SOFT_TIMEOUT_MS, OUTPUT_FLUSH_INTERVAL_MS = 1e4, MAX_BUFFER_SIZE;
|
|
91463
91495
|
var init_state2 = __esm(() => {
|
|
91464
91496
|
TERMINAL_STATES = new Set(["completed", "failed", "stopped", "killed"]);
|
|
91465
91497
|
SOFT_TIMEOUT_MS = 24 * 60 * 60 * 1000;
|
|
@@ -91760,7 +91792,7 @@ async function flushTailV2(deps, tracked, force = false) {
|
|
|
91760
91792
|
return;
|
|
91761
91793
|
const compressed = encodeOutput(tail.content);
|
|
91762
91794
|
try {
|
|
91763
|
-
await deps.backend.mutation(api.commands.
|
|
91795
|
+
await deps.backend.mutation(api.daemon.commands.updateRunTail, {
|
|
91764
91796
|
sessionId: deps.sessionId,
|
|
91765
91797
|
machineId: deps.machineId,
|
|
91766
91798
|
runId: tracked.runId,
|
|
@@ -113818,6 +113850,11 @@ backlogCommand.command("close").description("Close a backlog item (mark as stale
|
|
|
113818
113850
|
const { closeBacklog: closeBacklog2 } = await Promise.resolve().then(() => (init_backlog2(), exports_backlog));
|
|
113819
113851
|
await closeBacklog2(options.chatroomId, options);
|
|
113820
113852
|
});
|
|
113853
|
+
backlogCommand.command("delete").description("Permanently delete a backlog item (cannot be undone)").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Your role").requiredOption("--backlog-item-id <id>", "Backlog item ID to delete").action(async (options) => {
|
|
113854
|
+
await maybeRequireAuth();
|
|
113855
|
+
const { deleteBacklog: deleteBacklog2 } = await Promise.resolve().then(() => (init_backlog2(), exports_backlog));
|
|
113856
|
+
await deleteBacklog2(options.chatroomId, options);
|
|
113857
|
+
});
|
|
113821
113858
|
backlogCommand.command("export").description("Export backlog items to a JSON file").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Your role").option("--path <path>", "Directory path to export to (default: .chatroom/exports/)").action(async (options) => {
|
|
113822
113859
|
await maybeRequireAuth();
|
|
113823
113860
|
const { exportBacklog: exportBacklog2 } = await Promise.resolve().then(() => (init_backlog2(), exports_backlog));
|
|
@@ -114040,4 +114077,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
114040
114077
|
});
|
|
114041
114078
|
program2.parse();
|
|
114042
114079
|
|
|
114043
|
-
//# debugId=
|
|
114080
|
+
//# debugId=3A0A1CF15BB5783F64756E2164756E21
|