slopwaresystems 0.4.19 → 0.4.21
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30777,7 +30777,7 @@ async function runStartHook(installedAs) {
|
|
|
30777
30777
|
if (!conversation) return;
|
|
30778
30778
|
const carried = harness === "codex" ? " (no wait tool on Codex; a reply becomes your next turn)" : "";
|
|
30779
30779
|
const text = `On Slopware Tasks you are ${generateAgentName(conversation)}: that is how people and other agents address you (session who lists everyone). Messages between agents are letters, read when the other side gets to them: write once, reply only when it changes something, never wait for a reply${carried}.`;
|
|
30780
|
-
process.stdout.write(`${JSON.stringify({ hookSpecificOutput: { hookEventName: "SessionStart", additionalContext: text }
|
|
30780
|
+
process.stdout.write(`${JSON.stringify({ hookSpecificOutput: { hookEventName: "SessionStart", additionalContext: text } })}
|
|
30781
30781
|
`);
|
|
30782
30782
|
}
|
|
30783
30783
|
async function runStopHook(harness) {
|
|
@@ -30977,7 +30977,7 @@ async function trustCodexHooks(codexHome) {
|
|
|
30977
30977
|
const sendNotification = (method, params) => server.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", method, params })}
|
|
30978
30978
|
`);
|
|
30979
30979
|
try {
|
|
30980
|
-
await callCodexMethod("initialize", { clientInfo: { name: "slop", version: "0.4.
|
|
30980
|
+
await callCodexMethod("initialize", { clientInfo: { name: "slop", version: "0.4.21" }, capabilities: { experimentalApi: true } });
|
|
30981
30981
|
sendNotification("initialized", {});
|
|
30982
30982
|
const listed = await callCodexMethod("hooks/list", { cwds: [process.cwd()] });
|
|
30983
30983
|
const ours = listed.data.flatMap((entry) => entry.hooks).filter((hook) => hook.command?.startsWith("slop hook "));
|
|
@@ -31177,7 +31177,7 @@ ${written.map((path2) => ` ${path2}`).join("\n")}`);
|
|
|
31177
31177
|
var args = process.argv.slice(2);
|
|
31178
31178
|
var optionEnd = args.indexOf("--");
|
|
31179
31179
|
updateJsonMode((optionEnd < 0 ? args : args.slice(0, optionEnd)).includes("--json"));
|
|
31180
|
-
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.
|
|
31180
|
+
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.21").option("--json", "machine-readable output: JSON on stdout, errors as JSON on stderr").configureOutput({
|
|
31181
31181
|
outputError: (message, write) => {
|
|
31182
31182
|
if (!isJsonMode()) write(message);
|
|
31183
31183
|
},
|
|
@@ -31192,7 +31192,7 @@ registerProjectCommands(program2);
|
|
|
31192
31192
|
var taskCommand = registerTaskCommands(program2);
|
|
31193
31193
|
registerSessionCommands(program2);
|
|
31194
31194
|
registerThreadCommands(program2, taskCommand);
|
|
31195
|
-
registerMcpCommands(program2, "0.4.
|
|
31195
|
+
registerMcpCommands(program2, "0.4.21");
|
|
31196
31196
|
registerGuideCommand(program2);
|
|
31197
31197
|
registerSkillCommands(program2);
|
|
31198
31198
|
program2.parseAsync().catch(exitWithError);
|