slopwaresystems 0.4.3 → 0.4.4
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 +116 -103
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23500,106 +23500,106 @@ var SessionPush = external_exports.discriminatedUnion("type", [
|
|
|
23500
23500
|
|
|
23501
23501
|
// ../contract/src/work/agent-names.ts
|
|
23502
23502
|
var AGENT_NAMES = [
|
|
23503
|
-
"
|
|
23504
|
-
"
|
|
23505
|
-
"
|
|
23506
|
-
"
|
|
23507
|
-
"
|
|
23508
|
-
"
|
|
23509
|
-
"
|
|
23510
|
-
"
|
|
23511
|
-
"
|
|
23512
|
-
"
|
|
23513
|
-
"
|
|
23514
|
-
"
|
|
23515
|
-
"
|
|
23516
|
-
"
|
|
23517
|
-
"
|
|
23518
|
-
"
|
|
23519
|
-
"
|
|
23520
|
-
"
|
|
23521
|
-
"
|
|
23522
|
-
"
|
|
23523
|
-
"
|
|
23524
|
-
"
|
|
23525
|
-
"
|
|
23526
|
-
"
|
|
23527
|
-
"
|
|
23528
|
-
"
|
|
23529
|
-
"
|
|
23530
|
-
"
|
|
23531
|
-
"
|
|
23532
|
-
"
|
|
23533
|
-
"
|
|
23534
|
-
"
|
|
23535
|
-
"
|
|
23536
|
-
"
|
|
23537
|
-
"
|
|
23538
|
-
"
|
|
23539
|
-
"
|
|
23540
|
-
"
|
|
23541
|
-
"
|
|
23542
|
-
"
|
|
23543
|
-
"
|
|
23544
|
-
"
|
|
23545
|
-
"
|
|
23546
|
-
"
|
|
23547
|
-
"
|
|
23548
|
-
"
|
|
23549
|
-
"
|
|
23550
|
-
"
|
|
23551
|
-
"
|
|
23552
|
-
"
|
|
23553
|
-
"
|
|
23554
|
-
"
|
|
23555
|
-
"
|
|
23556
|
-
"
|
|
23557
|
-
"
|
|
23558
|
-
"
|
|
23559
|
-
"
|
|
23560
|
-
"
|
|
23561
|
-
"
|
|
23562
|
-
"
|
|
23563
|
-
"
|
|
23564
|
-
"
|
|
23565
|
-
"
|
|
23566
|
-
"
|
|
23567
|
-
"
|
|
23568
|
-
"
|
|
23569
|
-
"
|
|
23570
|
-
"
|
|
23571
|
-
"
|
|
23572
|
-
"
|
|
23573
|
-
"
|
|
23574
|
-
"
|
|
23575
|
-
"
|
|
23576
|
-
"
|
|
23577
|
-
"
|
|
23578
|
-
"
|
|
23579
|
-
"
|
|
23580
|
-
"
|
|
23581
|
-
"
|
|
23582
|
-
"
|
|
23583
|
-
"
|
|
23584
|
-
"
|
|
23585
|
-
"
|
|
23586
|
-
"
|
|
23587
|
-
"
|
|
23588
|
-
"
|
|
23589
|
-
"
|
|
23590
|
-
"
|
|
23591
|
-
"
|
|
23592
|
-
"
|
|
23593
|
-
"
|
|
23594
|
-
"
|
|
23595
|
-
"
|
|
23596
|
-
"
|
|
23597
|
-
"
|
|
23598
|
-
"
|
|
23599
|
-
"
|
|
23600
|
-
"
|
|
23601
|
-
"
|
|
23602
|
-
"
|
|
23503
|
+
"Sir Reginald Buttersworth",
|
|
23504
|
+
"Beefington Wobble",
|
|
23505
|
+
"Gary the Inevitable",
|
|
23506
|
+
"Countess Von Snacc",
|
|
23507
|
+
"Bartholomew Sneeze",
|
|
23508
|
+
"Pudding Malone",
|
|
23509
|
+
"Doug, Just Doug",
|
|
23510
|
+
"Admiral Crumb",
|
|
23511
|
+
"Lord Fluffington III",
|
|
23512
|
+
"Meatball Descartes",
|
|
23513
|
+
"Gerald Spaghetti",
|
|
23514
|
+
"Mildred Danger",
|
|
23515
|
+
"Chunky Bartholomew",
|
|
23516
|
+
"Captain Nap",
|
|
23517
|
+
"Wet Kevin",
|
|
23518
|
+
"Baron Waffles",
|
|
23519
|
+
"Susan the Unyielding",
|
|
23520
|
+
"Gravy Boat",
|
|
23521
|
+
"Trevor Cabbage",
|
|
23522
|
+
"Dame Judi Bench",
|
|
23523
|
+
"Mr. Business Casual",
|
|
23524
|
+
"Toast Malone",
|
|
23525
|
+
"Gandalf the Beige",
|
|
23526
|
+
"Terrence Moist",
|
|
23527
|
+
"Professor Pants",
|
|
23528
|
+
"Lil Bureaucrat",
|
|
23529
|
+
"Duchess Pigeon",
|
|
23530
|
+
"Brenda Thunderclap",
|
|
23531
|
+
"Ol' Dependable",
|
|
23532
|
+
"Kevin But Louder",
|
|
23533
|
+
"Nigel Overthink",
|
|
23534
|
+
"Sausage Aristotle",
|
|
23535
|
+
"The Honorable Blorp",
|
|
23536
|
+
"Greg of the Marsh",
|
|
23537
|
+
"Karen Kraken",
|
|
23538
|
+
"Bingus Prime",
|
|
23539
|
+
"Steve Two Hats",
|
|
23540
|
+
"Margaret Doom",
|
|
23541
|
+
"Ranch Dressing Rick",
|
|
23542
|
+
"Sir Naps-a-Lot",
|
|
23543
|
+
"Cheddar Van Halen",
|
|
23544
|
+
"Barb Dwyer",
|
|
23545
|
+
"Deputy Croissant",
|
|
23546
|
+
"Linda Explosion",
|
|
23547
|
+
"Humphrey Bogus",
|
|
23548
|
+
"Tuna Wellington",
|
|
23549
|
+
"Big Mistake Mike",
|
|
23550
|
+
"Quentin Quinoa",
|
|
23551
|
+
"Dolores Umbrage",
|
|
23552
|
+
"Fancy Larry",
|
|
23553
|
+
"Norman Conquest",
|
|
23554
|
+
"Beatrice Bagpipe",
|
|
23555
|
+
"Chad the Apologetic",
|
|
23556
|
+
"Wanda Whiplash",
|
|
23557
|
+
"Alan Turingpoint",
|
|
23558
|
+
"Mango Unchained",
|
|
23559
|
+
"Dwight Lightly",
|
|
23560
|
+
"Brisket Newton",
|
|
23561
|
+
"Ferris Wheeler",
|
|
23562
|
+
"Peggy Sue Me",
|
|
23563
|
+
"Hank Dilemma",
|
|
23564
|
+
"Vlad the Inhaler",
|
|
23565
|
+
"Bagel Bardot",
|
|
23566
|
+
"Clive Staples",
|
|
23567
|
+
"Ignatius Pudding",
|
|
23568
|
+
"Pancake Lafayette",
|
|
23569
|
+
"Rhonda Voo",
|
|
23570
|
+
"Mort Gage",
|
|
23571
|
+
"Sheila Crumpet",
|
|
23572
|
+
"Dennis Existential",
|
|
23573
|
+
"Justin Case",
|
|
23574
|
+
"Barry Cuda",
|
|
23575
|
+
"Lil Pomp",
|
|
23576
|
+
"Winston Churchmouse",
|
|
23577
|
+
"Petunia Blastoff",
|
|
23578
|
+
"Bob Ross Cosplayer",
|
|
23579
|
+
"Cornelius Fudge Sr.",
|
|
23580
|
+
"Otis Redundant",
|
|
23581
|
+
"Brad Wurst",
|
|
23582
|
+
"Dr. Feelgoodish",
|
|
23583
|
+
"Grandpa Wifi",
|
|
23584
|
+
"Sir Loin",
|
|
23585
|
+
"Marge Inal",
|
|
23586
|
+
"Chip Monk",
|
|
23587
|
+
"Polly Estera",
|
|
23588
|
+
"Gustavo Fringe",
|
|
23589
|
+
"Dale Gribbling",
|
|
23590
|
+
"Abe Froman Jr.",
|
|
23591
|
+
"Noodle Kowalski",
|
|
23592
|
+
"Debbie Downloader",
|
|
23593
|
+
"Frank Lloyd Wrong",
|
|
23594
|
+
"Tammy Fay Baker",
|
|
23595
|
+
"Yolanda Bolognese",
|
|
23596
|
+
"Pierre Delecto",
|
|
23597
|
+
"Kevin, Reluctantly",
|
|
23598
|
+
"Butterscotch Vance",
|
|
23599
|
+
"Reginald Sandwich",
|
|
23600
|
+
"Cliff Hanger",
|
|
23601
|
+
"Elmo Deodorant",
|
|
23602
|
+
"Skip Intro"
|
|
23603
23603
|
];
|
|
23604
23604
|
function agentNameFor(key) {
|
|
23605
23605
|
let hash2 = 2166136261;
|
|
@@ -24219,6 +24219,16 @@ var HeldSession = class {
|
|
|
24219
24219
|
* the rest pass to the inbox); handed null when the agent is made unreachable under them.
|
|
24220
24220
|
*/
|
|
24221
24221
|
waiters = /* @__PURE__ */ new Set();
|
|
24222
|
+
greeted = null;
|
|
24223
|
+
/**
|
|
24224
|
+
* Settled once the room has said hello (the session id is known, so this process's next write names its session),
|
|
24225
|
+
* or after a few seconds if the room is slow. A write before hello names no session, and a reply to it reaches
|
|
24226
|
+
* nobody, so callers wait for this before their first write.
|
|
24227
|
+
*/
|
|
24228
|
+
ready = new Promise((resolve5) => {
|
|
24229
|
+
this.greeted = resolve5;
|
|
24230
|
+
setTimeout(resolve5, 5e3).unref();
|
|
24231
|
+
});
|
|
24222
24232
|
async start() {
|
|
24223
24233
|
await this.connect();
|
|
24224
24234
|
}
|
|
@@ -24245,6 +24255,8 @@ var HeldSession = class {
|
|
|
24245
24255
|
this.session = push.session;
|
|
24246
24256
|
this.taskKey = push.session.taskKey;
|
|
24247
24257
|
rememberSession(process.cwd(), push.session.id);
|
|
24258
|
+
this.greeted?.();
|
|
24259
|
+
this.greeted = null;
|
|
24248
24260
|
this.connected += 1;
|
|
24249
24261
|
if (this.connected > 1) void this.hooks.onReconnect?.(push.session);
|
|
24250
24262
|
return;
|
|
@@ -25178,6 +25190,7 @@ ${pushBlock(push)}`;
|
|
|
25178
25190
|
const project = async (args) => {
|
|
25179
25191
|
const target = await resolveOnly(args);
|
|
25180
25192
|
if (!held) await hold(target.id, null);
|
|
25193
|
+
await held?.ready;
|
|
25181
25194
|
return target;
|
|
25182
25195
|
};
|
|
25183
25196
|
const release = async () => {
|
|
@@ -25667,7 +25680,7 @@ async function trustCodexHooks(codexHome) {
|
|
|
25667
25680
|
const notify = (method, params) => server.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", method, params })}
|
|
25668
25681
|
`);
|
|
25669
25682
|
try {
|
|
25670
|
-
await call("initialize", { clientInfo: { name: "slop", version: "0.4.
|
|
25683
|
+
await call("initialize", { clientInfo: { name: "slop", version: "0.4.4" }, capabilities: { experimentalApi: true } });
|
|
25671
25684
|
notify("initialized", {});
|
|
25672
25685
|
const listed = await call("hooks/list", { cwds: [process.cwd()] });
|
|
25673
25686
|
const ours = listed.data.flatMap((entry) => entry.hooks).filter((hook) => hook.command?.startsWith("slop hook "));
|
|
@@ -25931,13 +25944,13 @@ ${written.map((path3) => ` ${path3}`).join("\n")}`);
|
|
|
25931
25944
|
}
|
|
25932
25945
|
|
|
25933
25946
|
// src/index.ts
|
|
25934
|
-
var program2 = new Command().name("slop").description("Slopware Tasks from the terminal. Everything a person can do on the board, an agent can do here.").version("0.4.
|
|
25947
|
+
var program2 = new Command().name("slop").description("Slopware Tasks from the terminal. Everything a person can do on the board, an agent can do here.").version("0.4.4").option("--json", "machine-readable output: JSON on stdout, errors as JSON on stderr").hook("preAction", (_, action) => setJsonMode(Boolean(action.optsWithGlobals().json))).showHelpAfterError("(run with --help for usage)");
|
|
25935
25948
|
registerAuthCommands(program2);
|
|
25936
25949
|
registerProjectCommands(program2);
|
|
25937
25950
|
var taskCommand = registerTaskCommands(program2);
|
|
25938
25951
|
registerSessionCommands(program2, taskCommand);
|
|
25939
25952
|
registerThreadCommands(program2, taskCommand);
|
|
25940
|
-
registerMcpCommands(program2, "0.4.
|
|
25953
|
+
registerMcpCommands(program2, "0.4.4");
|
|
25941
25954
|
registerGuideCommand(program2);
|
|
25942
25955
|
registerSkillCommands(program2);
|
|
25943
25956
|
program2.parseAsync().catch(fail);
|