sisyphi 1.0.11 → 1.0.12
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/daemon.js +13 -5
- package/dist/daemon.js.map +1 -1
- package/dist/templates/agent-plugin/agents/review/compliance.md +48 -0
- package/dist/templates/agent-plugin/agents/review/efficiency.md +40 -0
- package/dist/templates/agent-plugin/agents/review/quality.md +38 -0
- package/dist/templates/agent-plugin/agents/review/reuse.md +38 -0
- package/dist/templates/agent-plugin/agents/review/security.md +40 -0
- package/dist/templates/agent-plugin/agents/review-plan/code-smells.md +39 -0
- package/dist/templates/agent-plugin/agents/review-plan/pattern-consistency.md +39 -0
- package/dist/templates/agent-plugin/agents/review-plan/security.md +38 -0
- package/dist/templates/agent-plugin/agents/review-plan/spec-coverage.md +44 -0
- package/dist/templates/agent-plugin/agents/review-plan.md +10 -64
- package/dist/templates/agent-plugin/agents/review.md +21 -18
- package/dist/templates/agent-plugin/hooks/review-plan-user-prompt.sh +9 -3
- package/dist/templates/agent-plugin/hooks/review-user-prompt.sh +11 -2
- package/dist/templates/agent-suffix.md +7 -24
- package/package.json +1 -1
- package/templates/agent-plugin/agents/review/compliance.md +48 -0
- package/templates/agent-plugin/agents/review/efficiency.md +40 -0
- package/templates/agent-plugin/agents/review/quality.md +38 -0
- package/templates/agent-plugin/agents/review/reuse.md +38 -0
- package/templates/agent-plugin/agents/review/security.md +40 -0
- package/templates/agent-plugin/agents/review-plan/code-smells.md +39 -0
- package/templates/agent-plugin/agents/review-plan/pattern-consistency.md +39 -0
- package/templates/agent-plugin/agents/review-plan/security.md +38 -0
- package/templates/agent-plugin/agents/review-plan/spec-coverage.md +44 -0
- package/templates/agent-plugin/agents/review-plan.md +10 -64
- package/templates/agent-plugin/agents/review.md +21 -18
- package/templates/agent-plugin/hooks/review-plan-user-prompt.sh +9 -3
- package/templates/agent-plugin/hooks/review-user-prompt.sh +11 -2
- package/templates/agent-suffix.md +7 -24
package/dist/daemon.js
CHANGED
|
@@ -42,7 +42,7 @@ import { setTimeout as sleep } from "timers/promises";
|
|
|
42
42
|
// src/daemon/server.ts
|
|
43
43
|
import { createServer } from "net";
|
|
44
44
|
import { unlinkSync, existsSync as existsSync8, writeFileSync as writeFileSync5, readFileSync as readFileSync6, mkdirSync as mkdirSync4, rmSync as rmSync4 } from "fs";
|
|
45
|
-
import { join as
|
|
45
|
+
import { join as join6 } from "path";
|
|
46
46
|
|
|
47
47
|
// src/daemon/session-manager.ts
|
|
48
48
|
import { v4 as uuidv4 } from "uuid";
|
|
@@ -855,9 +855,9 @@ function cleanupSessionMaps(sessionId) {
|
|
|
855
855
|
}
|
|
856
856
|
|
|
857
857
|
// src/daemon/agent.ts
|
|
858
|
-
import { readFileSync as readFileSync5, writeFileSync as writeFileSync4, copyFileSync as copyFileSync2, mkdirSync as mkdirSync3, readdirSync as readdirSync5 } from "fs";
|
|
858
|
+
import { readFileSync as readFileSync5, writeFileSync as writeFileSync4, copyFileSync as copyFileSync2, mkdirSync as mkdirSync3, readdirSync as readdirSync5, existsSync as existsSync6 } from "fs";
|
|
859
859
|
import { execSync as execSync2 } from "child_process";
|
|
860
|
-
import { resolve as resolve3 } from "path";
|
|
860
|
+
import { resolve as resolve3, dirname as dirname3, join as join5 } from "path";
|
|
861
861
|
|
|
862
862
|
// src/daemon/worktree.ts
|
|
863
863
|
import { existsSync as existsSync5, mkdirSync as mkdirSync2, readFileSync as readFileSync4, readdirSync as readdirSync4, rmSync as rmSync2 } from "fs";
|
|
@@ -1070,6 +1070,14 @@ function createAgentPlugin(cwd, sessionId, agentId, agentType, agentConfig) {
|
|
|
1070
1070
|
if (agentConfig?.filePath && agentType && agentType !== "worker") {
|
|
1071
1071
|
const shortName = agentType.replace(/^sisyphus:/, "");
|
|
1072
1072
|
copyFileSync2(agentConfig.filePath, `${base}/agents/${shortName}.md`);
|
|
1073
|
+
const subAgentDir = join5(dirname3(agentConfig.filePath), shortName);
|
|
1074
|
+
if (existsSync6(subAgentDir)) {
|
|
1075
|
+
for (const f of readdirSync5(subAgentDir)) {
|
|
1076
|
+
if (f.endsWith(".md") && f !== "CLAUDE.md") {
|
|
1077
|
+
copyFileSync2(join5(subAgentDir, f), `${base}/agents/${f}`);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1073
1081
|
}
|
|
1074
1082
|
const srcHooks = resolve3(import.meta.dirname, "../templates/agent-plugin/hooks");
|
|
1075
1083
|
for (const f of ["require-submit.sh", "intercept-send-message.sh"]) {
|
|
@@ -1897,7 +1905,7 @@ async function handlePaneExited(paneId, cwd, sessionId, role, agentId) {
|
|
|
1897
1905
|
var server = null;
|
|
1898
1906
|
var sessionTrackingMap = /* @__PURE__ */ new Map();
|
|
1899
1907
|
function registryPath() {
|
|
1900
|
-
return
|
|
1908
|
+
return join6(globalDir(), "session-registry.json");
|
|
1901
1909
|
}
|
|
1902
1910
|
function persistSessionRegistry() {
|
|
1903
1911
|
const dir = globalDir();
|
|
@@ -2141,7 +2149,7 @@ async function handleRequest(req) {
|
|
|
2141
2149
|
if (req.content.length > 200) {
|
|
2142
2150
|
const dir = messagesDir(tracking.cwd, req.sessionId);
|
|
2143
2151
|
mkdirSync4(dir, { recursive: true });
|
|
2144
|
-
filePath =
|
|
2152
|
+
filePath = join6(dir, `${id}.md`);
|
|
2145
2153
|
writeFileSync5(filePath, req.content, "utf-8");
|
|
2146
2154
|
}
|
|
2147
2155
|
await appendMessage(tracking.cwd, req.sessionId, {
|