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.
Files changed (2) hide show
  1. package/dist/index.js +116 -103
  2. 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
- "Albert",
23504
- "Alma",
23505
- "Amos",
23506
- "Astrid",
23507
- "August",
23508
- "Beatrix",
23509
- "Bruno",
23510
- "Cedric",
23511
- "Clara",
23512
- "Cosmo",
23513
- "Dahlia",
23514
- "Dexter",
23515
- "Edie",
23516
- "Elio",
23517
- "Ember",
23518
- "Felix",
23519
- "Fern",
23520
- "Flora",
23521
- "Gus",
23522
- "Hazel",
23523
- "Hugo",
23524
- "Ida",
23525
- "Ingrid",
23526
- "Iris",
23527
- "Jasper",
23528
- "Juno",
23529
- "Kit",
23530
- "Leo",
23531
- "Lila",
23532
- "Linus",
23533
- "Lotte",
23534
- "Mabel",
23535
- "Marlow",
23536
- "Milo",
23537
- "Minnie",
23538
- "Nell",
23539
- "Nico",
23540
- "Nina",
23541
- "Odette",
23542
- "Olive",
23543
- "Oscar",
23544
- "Otto",
23545
- "Pearl",
23546
- "Percy",
23547
- "Pip",
23548
- "Quill",
23549
- "Remy",
23550
- "Rosa",
23551
- "Rufus",
23552
- "Sable",
23553
- "Silas",
23554
- "Sky",
23555
- "Sol",
23556
- "Tess",
23557
- "Theo",
23558
- "Tilly",
23559
- "Ulla",
23560
- "Vera",
23561
- "Vito",
23562
- "Wren",
23563
- "Xavi",
23564
- "Yara",
23565
- "Zed",
23566
- "Zora",
23567
- "Arlo",
23568
- "Bea",
23569
- "Cyrus",
23570
- "Della",
23571
- "Enzo",
23572
- "Frida",
23573
- "Gilda",
23574
- "Hal",
23575
- "Imre",
23576
- "Joss",
23577
- "Kai",
23578
- "Lena",
23579
- "Mona",
23580
- "Nate",
23581
- "Opal",
23582
- "Pia",
23583
- "Rae",
23584
- "Sacha",
23585
- "Tove",
23586
- "Uma",
23587
- "Vince",
23588
- "Willa",
23589
- "Yuki",
23590
- "Zelda",
23591
- "Ansel",
23592
- "Birdie",
23593
- "Cleo",
23594
- "Dov",
23595
- "Esme",
23596
- "Fitz",
23597
- "Greta",
23598
- "Hollis",
23599
- "Inez",
23600
- "Jude",
23601
- "Kip",
23602
- "Lark"
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.3" }, capabilities: { experimentalApi: true } });
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.3").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)");
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.3");
25953
+ registerMcpCommands(program2, "0.4.4");
25941
25954
  registerGuideCommand(program2);
25942
25955
  registerSkillCommands(program2);
25943
25956
  program2.parseAsync().catch(fail);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slopwaresystems",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "private": false,
5
5
  "description": "slop: the Slopware Tasks board from the terminal, for people and coding agents.",
6
6
  "type": "module",