oh-my-claude-sisyphus 1.1.1 → 1.2.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/installer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,EAAE,wBAAwB,CAAC,CAAC;AAE9E,sBAAsB;AACtB,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAkB/B;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,IAAI,CAAC;QACH,QAAQ,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;uCAyBwB;I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AC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjC,MAAM,CAAC,OAAO,GAAG,wBAAwB,YAAY,EAAE,CAAC;IAC1D,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,UAAU,CAAC,YAAY,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC;AACxF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACjC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,aAAa;SAC3B,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-claude-sisyphus",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "Multi-agent orchestration system for Claude Agent SDK - Port of oh-my-opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "bin": {
15
- "oh-my-claude-sisyphus": "./dist/cli/index.js"
15
+ "oh-my-claude-sisyphus": "dist/cli/index.js"
16
16
  },
17
17
  "files": [
18
18
  "dist",
@@ -26,7 +26,8 @@
26
26
  "start": "node dist/index.js",
27
27
  "lint": "eslint src --ext .ts",
28
28
  "format": "prettier --write src/**/*.ts",
29
- "prepublishOnly": "npm run build"
29
+ "prepublishOnly": "npm run build",
30
+ "postinstall": "node dist/cli/index.js postinstall || true"
30
31
  },
31
32
  "dependencies": {
32
33
  "@anthropic-ai/claude-agent-sdk": "^0.1.0",
@@ -460,7 +460,11 @@ $ARGUMENTS
460
460
  - 'multimodal-looker' for analyzing images/screenshots
461
461
  - Maximize throughput by running multiple operations concurrently
462
462
  - Continue until ALL tasks are 100% complete - verify before stopping
463
- - Use background agents for long-running operations
463
+ - Use background execution for long-running operations:
464
+ - For Bash: set \`run_in_background: true\` for npm install, builds, tests
465
+ - For Task: set \`run_in_background: true\` for long-running subagent tasks
466
+ - Use \`TaskOutput\` to check results later
467
+ - Maximum 5 concurrent background tasks
464
468
  - Report progress frequently
465
469
 
466
470
  CRITICAL: Do NOT stop until every task is verified complete.
@@ -537,7 +541,10 @@ Delegate tasks to specialized agents using the Task tool:
537
541
 
538
542
  ### Execution Rules
539
543
  - Break complex tasks into subtasks for delegation
540
- - Use background agents for long-running operations
544
+ - Use background execution for long-running operations:
545
+ - Set \`run_in_background: true\` in Bash for builds, installs, tests
546
+ - Set \`run_in_background: true\` in Task for long-running subagents
547
+ - Check results with \`TaskOutput\` tool
541
548
  - Verify completion before stopping
542
549
  - Check your todo list before declaring done
543
550
  - NEVER leave work incomplete
@@ -800,7 +807,49 @@ The Ralph Loop has been cancelled. You can stop working on the current task.
800
807
  If you want to start a new loop, use `/ralph-loop "task description"`.
801
808
  CMD_EOF
802
809
 
803
- echo -e "${GREEN}✓ Installed 11 slash commands${NC}"
810
+ # Update Command
811
+ cat > "$CLAUDE_CONFIG_DIR/commands/update.md" << 'CMD_EOF'
812
+ ---
813
+ description: Check for and install Oh-My-Claude-Sisyphus updates
814
+ ---
815
+
816
+ [UPDATE CHECK]
817
+
818
+ $ARGUMENTS
819
+
820
+ ## Checking for Updates
821
+
822
+ I will check for available updates to Oh-My-Claude-Sisyphus.
823
+
824
+ ### What This Does
825
+
826
+ 1. **Check Version**: Compare your installed version against the latest release on GitHub
827
+ 2. **Show Release Notes**: Display what's new in the latest version
828
+ 3. **Perform Update**: If an update is available and you confirm, download and install it
829
+
830
+ ### Update Methods
831
+
832
+ **Automatic (Recommended):**
833
+ Run the install script to update:
834
+ \`\`\`bash
835
+ curl -fsSL https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claude-sisyphus/main/scripts/install.sh | bash
836
+ \`\`\`
837
+
838
+ **Manual:**
839
+ 1. Check your current version in \`~/.claude/.sisyphus-version.json\`
840
+ 2. Visit https://github.com/Yeachan-Heo/oh-my-claude-sisyphus/releases
841
+ 3. Download and run the install script from the latest release
842
+
843
+ ### Version Info Location
844
+
845
+ Your version information is stored at: \`~/.claude/.sisyphus-version.json\`
846
+
847
+ ---
848
+
849
+ Let me check for updates now. I'll read your version file and compare against the latest GitHub release.
850
+ CMD_EOF
851
+
852
+ echo -e "${GREEN}✓ Installed 12 slash commands${NC}"
804
853
 
805
854
  echo -e "${BLUE}[5/5]${NC} Creating CLAUDE.md with Sisyphus system prompt..."
806
855
 
@@ -844,6 +893,7 @@ Use the Task tool to delegate to specialized agents:
844
893
  | `/orchestrator <task>` | Complex multi-step task coordination |
845
894
  | `/ralph-loop <task>` | Self-referential loop until task completion |
846
895
  | `/cancel-ralph` | Cancel active Ralph Loop |
896
+ | `/update` | Check for and install updates |
847
897
 
848
898
  ## Planning Workflow
849
899
 
@@ -868,12 +918,49 @@ Use the Task tool to delegate to specialized agents:
868
918
  - Use parallel execution when possible for speed
869
919
  - Report progress regularly
870
920
  - For complex tasks, plan before implementing
921
+
922
+ ## Background Task Execution
923
+
924
+ For long-running operations, use \`run_in_background: true\`:
925
+
926
+ **Run in Background** (set \`run_in_background: true\`):
927
+ - Package installation: npm install, pip install, cargo build
928
+ - Build processes: npm run build, make, tsc
929
+ - Test suites: npm test, pytest, cargo test
930
+ - Docker operations: docker build, docker pull
931
+ - Git operations: git clone, git fetch
932
+
933
+ **Run Blocking** (foreground):
934
+ - Quick status checks: git status, ls, pwd
935
+ - File reads: cat, head, tail
936
+ - Simple commands: echo, which, env
937
+
938
+ **How to Use:**
939
+ 1. Bash: \`run_in_background: true\`
940
+ 2. Task: \`run_in_background: true\`
941
+ 3. Check results: \`TaskOutput(task_id: "...")\`
942
+
943
+ Maximum 5 concurrent background tasks.
871
944
  CLAUDEMD_EOF
872
945
  echo -e "${GREEN}✓ Created $CLAUDE_CONFIG_DIR/CLAUDE.md${NC}"
873
946
  else
874
947
  echo -e "${YELLOW}⚠ CLAUDE.md already exists, skipping${NC}"
875
948
  fi
876
949
 
950
+ # Save version metadata for auto-update system
951
+ VERSION="1.2.0"
952
+ VERSION_FILE="$CLAUDE_CONFIG_DIR/.sisyphus-version.json"
953
+
954
+ cat > "$VERSION_FILE" << VERSION_EOF
955
+ {
956
+ "version": "$VERSION",
957
+ "installedAt": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
958
+ "installMethod": "script",
959
+ "lastCheckAt": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
960
+ }
961
+ VERSION_EOF
962
+ echo -e "${GREEN}✓ Saved version metadata${NC}"
963
+
877
964
  echo ""
878
965
  echo -e "${GREEN}╔═══════════════════════════════════════════════════════════╗${NC}"
879
966
  echo -e "${GREEN}║ Installation Complete! ║${NC}"
@@ -906,6 +993,11 @@ echo " orchestrator-sisyphus - Todo coordination (Sonnet)"
906
993
  echo " sisyphus-junior - Focused execution (Sonnet)"
907
994
  echo " prometheus - Strategic planning (Opus)"
908
995
  echo ""
996
+ echo -e "${YELLOW}Updating:${NC}"
997
+ echo " /update # Check for and install updates"
998
+ echo " # Or run this install script again:"
999
+ echo " curl -fsSL https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claude-sisyphus/main/scripts/install.sh | bash"
1000
+ echo ""
909
1001
  echo -e "${BLUE}Quick Start:${NC}"
910
1002
  echo " 1. Run 'claude' to start Claude Code"
911
1003
  echo " 2. Type '/sisyphus-default' to enable Sisyphus permanently"