slopwaresystems 0.9.0 → 0.9.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 +1 -1
- package/dist/main.js +18 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function fetchLaunchCandidate(launcher2) {
|
|
|
146
146
|
var path = fileURLToPath(import.meta.url);
|
|
147
147
|
var launcher = {
|
|
148
148
|
path,
|
|
149
|
-
bundledVersion: "0.9.
|
|
149
|
+
bundledVersion: "0.9.1",
|
|
150
150
|
bundledMain: fileURLToPath(new URL("./main.js", import.meta.url)),
|
|
151
151
|
installed: isInstalledLauncherPath(path)
|
|
152
152
|
};
|
package/dist/main.js
CHANGED
|
@@ -26542,7 +26542,7 @@ var TaskEventRecord = external_exports.object({
|
|
|
26542
26542
|
});
|
|
26543
26543
|
|
|
26544
26544
|
// ../contract/src/work/cli-release.ts
|
|
26545
|
-
var CLI_RELEASE = "0.9.
|
|
26545
|
+
var CLI_RELEASE = "0.9.1";
|
|
26546
26546
|
var CLI_VERSION_PATTERN = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;
|
|
26547
26547
|
var CLI_VERSION_MAX = 64;
|
|
26548
26548
|
function parseCliVersion(version2) {
|
|
@@ -29010,7 +29010,7 @@ function resolveAgentIdentity(cwd, fallback = "process") {
|
|
|
29010
29010
|
harness: conversation?.harness ?? null,
|
|
29011
29011
|
directory: repo ? basename3(repo.worktree) : basename3(cwd),
|
|
29012
29012
|
branch: fetchCurrentBranch(cwd),
|
|
29013
|
-
cliVersion: "0.9.
|
|
29013
|
+
cliVersion: "0.9.1"
|
|
29014
29014
|
};
|
|
29015
29015
|
}
|
|
29016
29016
|
|
|
@@ -29674,7 +29674,7 @@ function buildUpdateNotice() {
|
|
|
29674
29674
|
}
|
|
29675
29675
|
function resolveLatestCliVersion() {
|
|
29676
29676
|
const deprecated = fetchDeprecatedVersions();
|
|
29677
|
-
return sortCliVersions([CLI_RELEASE, "0.9.
|
|
29677
|
+
return sortCliVersions([CLI_RELEASE, "0.9.1", fetchUpdateStatus().latest ?? CLI_RELEASE]).filter((version2) => !deprecated.has(version2)).at(-1) ?? CLI_RELEASE;
|
|
29678
29678
|
}
|
|
29679
29679
|
function formatAgentCliVersion(version2, latest = resolveLatestCliVersion()) {
|
|
29680
29680
|
const label = version2 ? `slop ${version2}` : "an older slop";
|
|
@@ -30110,7 +30110,7 @@ async function updateInstalledCliFromRegistry(launcher, options2) {
|
|
|
30110
30110
|
const running = fetchLaunchCandidate(launcher).version;
|
|
30111
30111
|
const action = running === previous ? "current" : isNewerVersion(running, previous) ? "updated" : "rolled-back";
|
|
30112
30112
|
const latest = resolveNewestOfferedRelease(index);
|
|
30113
|
-
deleteUnusedVersions(/* @__PURE__ */ new Set([running, previous, current, launcher.bundledVersion, "0.9.
|
|
30113
|
+
deleteUnusedVersions(/* @__PURE__ */ new Set([running, previous, current, launcher.bundledVersion, "0.9.1"]));
|
|
30114
30114
|
persistUpdateStatus({ checkedAt: now(), latest, failures: 0, lastError: null });
|
|
30115
30115
|
return { action, running, previous, latest };
|
|
30116
30116
|
} catch (error62) {
|
|
@@ -30917,7 +30917,7 @@ function watchLaunchTarget(onChange) {
|
|
|
30917
30917
|
}
|
|
30918
30918
|
function runMcpRelay() {
|
|
30919
30919
|
const launcher = readLauncherInfo();
|
|
30920
|
-
const own2 = { version: "0.9.
|
|
30920
|
+
const own2 = { version: "0.9.1", main: fileURLToPath(import.meta.url), downloaded: false };
|
|
30921
30921
|
const relay = new McpRelay({
|
|
30922
30922
|
input: process.stdin,
|
|
30923
30923
|
output: process.stdout,
|
|
@@ -31358,7 +31358,7 @@ async function waitForMessage(api, projectId, taskKey, options2 = {}) {
|
|
|
31358
31358
|
setTimeout(() => resolve6(outcome), 50);
|
|
31359
31359
|
};
|
|
31360
31360
|
const held = new HeldSession(api, projectId, taskKey, {
|
|
31361
|
-
claim: () => options2.claim ?? { harness: null, directory: null, branch: null, cliVersion: "0.9.
|
|
31361
|
+
claim: () => options2.claim ?? { harness: null, directory: null, branch: null, cliVersion: "0.9.1" },
|
|
31362
31362
|
reconnect: false,
|
|
31363
31363
|
onHello: options2.onHello,
|
|
31364
31364
|
onEnd: () => finishWait({ kind: "ended" }),
|
|
@@ -34922,7 +34922,7 @@ var SplatRendererConnection = class {
|
|
|
34922
34922
|
try {
|
|
34923
34923
|
let path3;
|
|
34924
34924
|
try {
|
|
34925
|
-
const ticket = await this.api.post(`/projects/${this.projectId}/splat/renderer/ticket`, ApiResponses.ConnectTicket, { cliVersion: "0.9.
|
|
34925
|
+
const ticket = await this.api.post(`/projects/${this.projectId}/splat/renderer/ticket`, ApiResponses.ConnectTicket, { cliVersion: "0.9.1", onlyMe: this.options.onlyMe ?? false, agent: this.options.agent ?? null, capabilities: ["workspaces"] });
|
|
34926
34926
|
path3 = ticket.path;
|
|
34927
34927
|
} catch (error62) {
|
|
34928
34928
|
if (error62 instanceof CliError && ["unauthenticated", "not_found", "forbidden", "bad_request"].includes(error62.code)) {
|
|
@@ -35342,6 +35342,7 @@ ${published.map((source2) => ` ${formatSplatSourceLine(source2)}`).join("\n")}`
|
|
|
35342
35342
|
clearInterval(keepAlive);
|
|
35343
35343
|
renderer.stop();
|
|
35344
35344
|
emitOutput({ ok: true }, () => "Stopped rendering.");
|
|
35345
|
+
scheduleSplatServeExit();
|
|
35345
35346
|
});
|
|
35346
35347
|
registerProjectOption(splat.command("publications")).description("The apps this machine publishes (slop splat serve --name), by workspace.").action(async (options2) => {
|
|
35347
35348
|
const api = buildAuthedApiClient();
|
|
@@ -35552,6 +35553,10 @@ async function servePublication(options2) {
|
|
|
35552
35553
|
const reason = await Promise.race([publisher.run(), stopped]);
|
|
35553
35554
|
publisher.stop(reason);
|
|
35554
35555
|
emitOutput({ ok: true, sourceId: published.id, reason }, () => reason);
|
|
35556
|
+
scheduleSplatServeExit();
|
|
35557
|
+
}
|
|
35558
|
+
function scheduleSplatServeExit() {
|
|
35559
|
+
setTimeout(() => process.exit(), 250).unref();
|
|
35555
35560
|
}
|
|
35556
35561
|
|
|
35557
35562
|
// src/commands/mcp/splat-tools.ts
|
|
@@ -36950,17 +36955,17 @@ function hasHarnessSetup() {
|
|
|
36950
36955
|
function syncMachineSetupAfterUpdate() {
|
|
36951
36956
|
const nothing = { skills: [], retired: [], reinstalling: false };
|
|
36952
36957
|
try {
|
|
36953
|
-
if (!isUpdateCheckEnabled() || fetchMachineSetupState()?.version === "0.9.
|
|
36958
|
+
if (!isUpdateCheckEnabled() || fetchMachineSetupState()?.version === "0.9.1") return nothing;
|
|
36954
36959
|
const lock = claimFileLock(buildMachineSetupLockDirectory(), { staleAfterMs: 6e4 });
|
|
36955
36960
|
if (!lock) return nothing;
|
|
36956
36961
|
try {
|
|
36957
36962
|
const state = fetchMachineSetupState();
|
|
36958
|
-
if (state?.version === "0.9.
|
|
36963
|
+
if (state?.version === "0.9.1") return nothing;
|
|
36959
36964
|
const skills = hasInstalledSkills() ? installSkills() : [];
|
|
36960
36965
|
const shipped = Object.keys(SKILLS);
|
|
36961
36966
|
const retired = deleteRetiredSkills((state?.skills ?? []).filter((name) => !shipped.includes(name)));
|
|
36962
36967
|
const setupRevision = state?.setupRevision ?? (hasHarnessSetup() ? UNRECORDED_SETUP_REVISION : null);
|
|
36963
|
-
persistMachineSetupState({ version: "0.9.
|
|
36968
|
+
persistMachineSetupState({ version: "0.9.1", setupRevision, skills: hasInstalledSkills() ? shipped : [] });
|
|
36964
36969
|
const reinstalling = setupRevision !== null && setupRevision < SETUP_REVISION && runMcpInstallInBackground();
|
|
36965
36970
|
return { skills, retired, reinstalling };
|
|
36966
36971
|
} finally {
|
|
@@ -37127,7 +37132,7 @@ async function trustCodexHooks(codexHome) {
|
|
|
37127
37132
|
const sendNotification = (method, params) => server.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", method, params })}
|
|
37128
37133
|
`);
|
|
37129
37134
|
try {
|
|
37130
|
-
await callCodexMethod("initialize", { clientInfo: { name: "slop", version: "0.9.
|
|
37135
|
+
await callCodexMethod("initialize", { clientInfo: { name: "slop", version: "0.9.1" }, capabilities: { experimentalApi: true } });
|
|
37131
37136
|
sendNotification("initialized", {});
|
|
37132
37137
|
const listed = await callCodexMethod("hooks/list", { cwds: [process.cwd()] });
|
|
37133
37138
|
const ours = listed.data.flatMap((entry) => entry.hooks).filter((hook) => hook.command?.startsWith("slop hook "));
|
|
@@ -37392,7 +37397,7 @@ var options = optionEnd < 0 ? args : args.slice(0, optionEnd);
|
|
|
37392
37397
|
updateJsonMode(options.includes("--json"));
|
|
37393
37398
|
syncMachineSetupAfterUpdate();
|
|
37394
37399
|
if (!options.includes("--background") && !options.includes("--child")) scheduleBackgroundUpdate();
|
|
37395
|
-
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.9.
|
|
37400
|
+
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.9.1").option("--json", "machine-readable output: JSON on stdout, errors as JSON on stderr").configureOutput({
|
|
37396
37401
|
outputError: (message, write) => {
|
|
37397
37402
|
if (!isJsonMode()) write(message);
|
|
37398
37403
|
},
|
|
@@ -37409,7 +37414,7 @@ var sessionCommand = registerSessionCommands(program2);
|
|
|
37409
37414
|
registerThreadCommands(program2, taskCommand);
|
|
37410
37415
|
registerOperationCommands(program2, taskCommand, sessionCommand);
|
|
37411
37416
|
registerSplatCommands(program2);
|
|
37412
|
-
registerMcpCommands(program2, "0.9.
|
|
37417
|
+
registerMcpCommands(program2, "0.9.1");
|
|
37413
37418
|
registerGuideCommand(program2);
|
|
37414
37419
|
registerSkillCommands(program2);
|
|
37415
37420
|
registerUpdateCommand(program2);
|