sisyphi 1.2.20 → 1.2.22
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/cli.js +26 -8
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +54 -52
- package/dist/daemon.js.map +1 -1
- package/dist/tui.js +3 -3
- package/dist/tui.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5956,12 +5956,30 @@ function registerStart(parent, root) {
|
|
|
5956
5956
|
if (root) buildStartCommand(root, true);
|
|
5957
5957
|
}
|
|
5958
5958
|
function buildStartCommand(target, hidden) {
|
|
5959
|
-
target.command("start", { hidden }).description("Start a new sisyphus session").argument("[task]", "Task description for the orchestrator (omit when using --stdin)").option("--context <context>", "Background context for the orchestrator").option("--name <name>", "Human-readable name for the session").option("--effort <tier>", "Pipeline effort tier (low|medium|high|xhigh)").option("--stdin", "Read the task description from stdin (avoids shell escaping for long prompts)").option("--context-stdin", "Read the context from stdin (mutually exclusive with --stdin)").option("--accept-cwd-mismatch", "Proceed even when invocation cwd differs from the current tmux session's home (linking will be inconsistent)").addHelpText("after", `
|
|
5959
|
+
target.command("start", { hidden }).description("Start a new sisyphus session").argument("[task]", "Task description for the orchestrator (omit when using --stdin)").option("-c, --context <context>", "Background context for the orchestrator").option("--name <name>", "Human-readable name for the session").option("--effort <tier>", "Pipeline effort tier (low|medium|high|xhigh)").option("--stdin", "Read the task description from stdin (avoids shell escaping for long prompts)").option("--context-stdin", "Read the context from stdin (mutually exclusive with --stdin)").option("--accept-cwd-mismatch", "Proceed even when invocation cwd differs from the current tmux session's home (linking will be inconsistent)").addHelpText("after", `
|
|
5960
5960
|
session lifecycle start: launch a new orchestrated sisyphus session.
|
|
5961
5961
|
|
|
5962
|
+
Writing the handoff
|
|
5963
|
+
task the goal \u2014 what to build or fix and what "done" looks like. This is the
|
|
5964
|
+
persistent objective the orchestrator re-reads every cycle; keep it focused.
|
|
5965
|
+
-c/--context background that informs the work but isn't the goal itself: relevant file
|
|
5966
|
+
paths, constraints, specs, adjacent concerns, prior findings. Rendered
|
|
5967
|
+
apart from the task so the orchestrator references it without conflating it.
|
|
5968
|
+
Keep context factual, not diagnostic \u2014 point at files, areas, and constraints; don't
|
|
5969
|
+
speculate on root causes or fixes, which biases the orchestrator down the wrong path.
|
|
5970
|
+
|
|
5971
|
+
Example
|
|
5972
|
+
sis start "Fix the JWT refresh bug \u2014 app shows a blank screen on token expiry instead of redirecting to login" -c "Auth system lives in src/auth/. Key files: interceptor.ts (HTTP interceptor), token-store.ts (token persistence), refresh.ts (refresh flow). Tests in src/auth/__tests__/. Don't break the logout flow."
|
|
5973
|
+
|
|
5974
|
+
Long task or context? Pipe via stdin to avoid shell escaping:
|
|
5975
|
+
cat task.md | sis start --stdin -c "short context here"
|
|
5976
|
+
cat ctx.md | sis start "short task" --context-stdin
|
|
5977
|
+
The same --stdin / --context-stdin pattern exists on \`agent spawn\`, \`orch message\`,
|
|
5978
|
+
\`orch tell\`, \`session resume\`, and agent-side \`agent submit\` / \`agent report\` / \`orch yield\`.
|
|
5979
|
+
|
|
5962
5980
|
Input
|
|
5963
5981
|
[task] optional positional \u2014 task description string; omit when using --stdin or pass \`-\` to read stdin
|
|
5964
|
-
--context <context>
|
|
5982
|
+
-c, --context <context> optional \u2014 background context injected alongside the task; also readable via --context-stdin
|
|
5965
5983
|
--name <name> optional \u2014 human-readable label for the session
|
|
5966
5984
|
--effort <tier> optional \u2014 pipeline effort tier: low | medium | high | xhigh
|
|
5967
5985
|
--stdin optional \u2014 read task from stdin instead of positional; mutually exclusive with --context-stdin
|
|
@@ -6742,9 +6760,9 @@ function showAskTriagePopup(opts) {
|
|
|
6742
6760
|
"",
|
|
6743
6761
|
...titleLines.map((l) => ` ${l}`),
|
|
6744
6762
|
"",
|
|
6745
|
-
" [
|
|
6746
|
-
" [
|
|
6747
|
-
" [
|
|
6763
|
+
" [a] Answer in agent",
|
|
6764
|
+
" [d] Answer in dashboard",
|
|
6765
|
+
" [x] Dismiss",
|
|
6748
6766
|
"",
|
|
6749
6767
|
` (auto-dismiss in ${POPUP_TIMEOUT}s)`,
|
|
6750
6768
|
""
|
|
@@ -6760,9 +6778,9 @@ cat <<'__SISYPHUS_ASK_EOF__'
|
|
|
6760
6778
|
${content}__SISYPHUS_ASK_EOF__
|
|
6761
6779
|
while IFS= read -r -n1 -t ${POPUP_TIMEOUT} k; do
|
|
6762
6780
|
case "$k" in
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6781
|
+
a|A) printf 'agent' > "$RESULT_FILE"; break ;;
|
|
6782
|
+
d|D) printf 'dashboard' > "$RESULT_FILE"; break ;;
|
|
6783
|
+
x|X|q|Q|'') printf 'dismiss' > "$RESULT_FILE"; break ;;
|
|
6766
6784
|
esac
|
|
6767
6785
|
done
|
|
6768
6786
|
if [ ! -f "$RESULT_FILE" ]; then printf 'dismiss' > "$RESULT_FILE"; fi
|