@usepowerplant/cli 0.4.35 → 0.4.36
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/main.js +15 -9
- package/dist/menubar/Powerplant.app.zip +0 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9097a1df-1029-52ad-9229-11dca3abcd84")}catch(e){}}();
|
|
3
3
|
import { createRequire as __cliCreateRequire } from 'node:module';
|
|
4
4
|
const require = __cliCreateRequire(import.meta.url);
|
|
5
5
|
var __create = Object.create;
|
|
@@ -85344,7 +85344,7 @@ function _init2(options = {}, getDefaultIntegrationsImpl) {
|
|
|
85344
85344
|
import tls2 from "node:tls";
|
|
85345
85345
|
var import_undici = __toESM(require_undici(), 1);
|
|
85346
85346
|
var CLI_VERSION_HEADER = "x-powerplant-cli-version";
|
|
85347
|
-
var cliVersion = true ? "0.4.
|
|
85347
|
+
var cliVersion = true ? "0.4.36" : "0.0.0-checkout";
|
|
85348
85348
|
function cliVersionHeaders() {
|
|
85349
85349
|
return { [CLI_VERSION_HEADER]: cliVersion, "user-agent": `powerplant-cli/${cliVersion}` };
|
|
85350
85350
|
}
|
|
@@ -100668,7 +100668,10 @@ function syncHeader(i) {
|
|
|
100668
100668
|
var AGENT_TITLE_MAX = 48;
|
|
100669
100669
|
function recentAgentItems(i) {
|
|
100670
100670
|
if (i.memberSessions === null) return null;
|
|
100671
|
-
const recent = i.memberSessions.filter((session) => i.now - Date.parse(session.lastActivityAt) < RECENT_SESSION_WINDOW_MS).filter((session) => session.archived !== true && session.subagent !== true && session.standaloneReview !== true).sort((a, b2) => Date.parse(b2.lastActivityAt) - Date.parse(a.lastActivityAt)).map((session) =>
|
|
100671
|
+
const recent = i.memberSessions.filter((session) => i.now - Date.parse(session.lastActivityAt) < RECENT_SESSION_WINDOW_MS).filter((session) => session.archived !== true && session.subagent !== true && session.standaloneReview !== true).sort((a, b2) => Date.parse(b2.lastActivityAt) - Date.parse(a.lastActivityAt)).map((session) => ({
|
|
100672
|
+
row: agentRow(session, i),
|
|
100673
|
+
localMachine: i.credentials !== null && session.machineId === i.credentials.machineId
|
|
100674
|
+
})).filter(({ row }) => row.agent?.status !== "ended").sort((a, b2) => Number(b2.row.agent?.status === "working") - Number(a.row.agent?.status === "working"));
|
|
100672
100675
|
const rows = recent.length === 0 ? [{ type: "status", mark: "muted", title: i.memberSessionsIncomplete ? "No sessions found in the partial list" : "No eligible sessions in the latest results" }] : groupedAgentRows(recent.slice(0, RECENT_SESSION_VISIBLE_LIMIT), i.platform);
|
|
100673
100676
|
if (i.memberSessionsIncomplete) rows.push({
|
|
100674
100677
|
type: "status",
|
|
@@ -100684,10 +100687,13 @@ function recentAgentItems(i) {
|
|
|
100684
100687
|
});
|
|
100685
100688
|
return rows;
|
|
100686
100689
|
}
|
|
100687
|
-
function groupedAgentRows(
|
|
100688
|
-
const
|
|
100689
|
-
const
|
|
100690
|
-
|
|
100690
|
+
function groupedAgentRows(sessions, platform2) {
|
|
100691
|
+
const available = [];
|
|
100692
|
+
const elsewhere = [];
|
|
100693
|
+
for (const { row, localMachine } of sessions) {
|
|
100694
|
+
(localMachine || row.agent?.harness !== void 0 ? available : elsewhere).push(row);
|
|
100695
|
+
}
|
|
100696
|
+
return [...available, ...elsewhere.length > 0 ? [{ type: "section", title: `Not on this ${platform2 === "darwin" ? "Mac" : "PC"}` }, ...elsewhere] : []];
|
|
100691
100697
|
}
|
|
100692
100698
|
function agentRow(session, i) {
|
|
100693
100699
|
const name = session.title ?? session.repoDir ?? "Untitled session";
|
|
@@ -103320,7 +103326,7 @@ function runResumeSession(source, sessionId, deps = {}) {
|
|
|
103320
103326
|
}
|
|
103321
103327
|
|
|
103322
103328
|
// src/version.ts
|
|
103323
|
-
var CLI_VERSION = true ? "0.4.
|
|
103329
|
+
var CLI_VERSION = true ? "0.4.36" : "0.0.0-checkout";
|
|
103324
103330
|
var CLI_RELEASE_BUILD = true ? true : false;
|
|
103325
103331
|
var CLI_DEVELOPMENT_COPY = false;
|
|
103326
103332
|
function updateRefusal(tarball, developmentCopy = CLI_DEVELOPMENT_COPY) {
|
|
@@ -105228,4 +105234,4 @@ undici/lib/web/websocket/frame.js:
|
|
|
105228
105234
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
105229
105235
|
*/
|
|
105230
105236
|
|
|
105231
|
-
//# debugId=
|
|
105237
|
+
//# debugId=9097a1df-1029-52ad-9229-11dca3abcd84
|
|
Binary file
|