opencode-autoresearch 3.17.2 → 3.18.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoresearch",
3
- "version": "3.17.2",
3
+ "version": "3.18.0",
4
4
  "description": "Auto Research for OpenCode. Run a structured autonomous iteration loop with a standing subagent pool.",
5
5
  "author": {
6
6
  "name": "Maleick",
package/INSTALL.md CHANGED
@@ -15,10 +15,10 @@ Both runtimes share the same state format (`.autoresearch/state.json`) and CLI (
15
15
 
16
16
  ### One-Line OpenCode Install
17
17
 
18
- Paste this one line into OpenCode to install and verify Auto Research. This URL is pinned to the immutable `v3.17.2` release tag:
18
+ Paste this one line into OpenCode to install and verify Auto Research. This URL is pinned to the immutable `v3.18.0` release tag:
19
19
 
20
20
  ```text
21
- Fetch and follow instructions from https://raw.githubusercontent.com/Maleick/AutoResearch/refs/tags/v3.17.2/INSTALL.md
21
+ Fetch and follow instructions from https://raw.githubusercontent.com/Maleick/AutoResearch/refs/tags/v3.18.0/INSTALL.md
22
22
  ```
23
23
 
24
24
  ### Prerequisites
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
- <img src="https://img.shields.io/badge/version-v3.17.2-58a6ff?style=flat" alt="v3.17.2">
8
+ <img src="https://img.shields.io/badge/version-v3.18.0-58a6ff?style=flat" alt="v3.18.0">
9
9
  <a href="https://github.com/Maleick/AutoResearch/stargazers"><img src="https://img.shields.io/github/stars/Maleick/AutoResearch?style=flat&color=58a6ff" alt="Stars"></a>
10
10
  <a href="https://github.com/Maleick/AutoResearch/commits/main"><img src="https://img.shields.io/github/last-commit/Maleick/AutoResearch?style=flat" alt="Last Commit"></a>
11
11
  <a href="https://github.com/Maleick/AutoResearch/releases"><img src="https://img.shields.io/github/v/release/Maleick/AutoResearch?style=flat" alt="Version"></a>
@@ -99,10 +99,10 @@ See [`skills/autoresearch/references/self-improve-loop.md`](skills/autoresearch/
99
99
 
100
100
  ### OpenCode
101
101
 
102
- For OpenCode, paste this one-line install prompt into your agent. This URL is pinned to the immutable `v3.17.2` release instructions:
102
+ For OpenCode, paste this one-line install prompt into your agent. This URL is pinned to the immutable `v3.18.0` release instructions:
103
103
 
104
104
  ```text
105
- Fetch and follow instructions from https://raw.githubusercontent.com/Maleick/AutoResearch/refs/tags/v3.17.2/INSTALL.md
105
+ Fetch and follow instructions from https://raw.githubusercontent.com/Maleick/AutoResearch/refs/tags/v3.18.0/INSTALL.md
106
106
  ```
107
107
 
108
108
  Recommended plugin install in `opencode.json`:
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.17.2
1
+ 3.18.0
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "3.17.2";
1
+ export declare const VERSION = "3.18.0";
2
2
  export declare const PACKAGE_NAME = "opencode-autoresearch";
3
3
  export declare const SKILL_NAME = "autoresearch";
4
4
  export declare const PRODUCT_BRAND = "Auto Research";
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const VERSION = "3.17.2";
1
+ export const VERSION = "3.18.0";
2
2
  export const PACKAGE_NAME = "opencode-autoresearch";
3
3
  export const SKILL_NAME = "autoresearch";
4
4
  export const PRODUCT_BRAND = "Auto Research";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const id = "autoresearch";
2
2
  export declare const repoRoot: string;
3
- export declare const version = "3.17.2";
3
+ export declare const version = "3.18.0";
4
4
  type OpenCodeConfig = {
5
5
  command?: Record<string, {
6
6
  template: string;
package/hooks/init.sh CHANGED
@@ -4,6 +4,22 @@
4
4
 
5
5
  set -e
6
6
 
7
+ # ── Auto-sync: pull latest plugin code before init ──
8
+ if [ -z "${AUTORESEARCH_NO_SYNC:-}" ]; then
9
+ repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
10
+ if [ -n "$repo_root" ]; then
11
+ cd "$repo_root" || exit 1
12
+ # Only sync if we have a valid git remote (skip temp/policy-test repos)
13
+ if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
14
+ sync_gap="$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ' || true)"
15
+ if [ -n "$sync_gap" ] && [ "$sync_gap" -gt 0 ] 2>/dev/null; then
16
+ echo "[autoresearch-sync] $sync_gap commit(s) behind origin/main — pulling..."
17
+ git pull origin main >/dev/null 2>&1 || echo "[autoresearch-sync] WARN: git pull failed, continuing with local code"
18
+ fi
19
+ fi
20
+ fi
21
+ fi
22
+
7
23
  checklist() {
8
24
  echo "Auto Research checklist:"
9
25
  echo "- If this is a fresh managed run, baseline first, then initialize results/state artifacts."
package/hooks/status.sh CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/bin/sh
2
2
  # Status hook for Auto Research
3
3
  # Prints current run status from the state file.
4
+ #
5
+ # NOTE: This hook intentionally does NOT auto-sync. It must remain read-only
6
+ # with respect to git remotes so that `npm test` and status checks never
7
+ # mutate repository state.
4
8
 
5
9
  set -e
6
10
 
package/hooks/stop.sh CHANGED
@@ -4,6 +4,22 @@
4
4
 
5
5
  set -e
6
6
 
7
+ # ── Auto-sync: pull latest plugin code before stop ──
8
+ if [ -z "${AUTORESEARCH_NO_SYNC:-}" ]; then
9
+ repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
10
+ if [ -n "$repo_root" ]; then
11
+ cd "$repo_root" || exit 1
12
+ # Only sync if we have a valid git remote (skip temp/policy-test repos)
13
+ if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
14
+ sync_gap="$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ' || true)"
15
+ if [ -n "$sync_gap" ] && [ "$sync_gap" -gt 0 ] 2>/dev/null; then
16
+ echo "[autoresearch-sync] $sync_gap commit(s) behind origin/main — pulling..."
17
+ git pull origin main >/dev/null 2>&1 || echo "[autoresearch-sync] WARN: git pull failed, continuing with local code"
18
+ fi
19
+ fi
20
+ fi
21
+ fi
22
+
7
23
  STATUS_FILE="${AUTORESEARCH_STATE:-.autoresearch/state.json}"
8
24
  WORKSPACE_ROOT="$(pwd -P)"
9
25
 
@@ -1,6 +1,22 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
+ # ── Auto-sync: pull latest plugin code before verify ──
5
+ if [[ -z "${AUTORESEARCH_NO_SYNC:-}" ]]; then
6
+ repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
7
+ if [[ -n "$repo_root" ]]; then
8
+ cd "$repo_root" || exit 1
9
+ # Only sync if we have a valid git remote (skip temp/policy-test repos)
10
+ if git rev-parse --verify HEAD >/dev/null 2>&1 && git remote get-url origin >/dev/null 2>&1; then
11
+ sync_gap=$(git log --oneline HEAD..origin/main 2>/dev/null | wc -l | tr -d ' ' || true)
12
+ if [[ "$sync_gap" =~ ^[0-9]+$ && "$sync_gap" -gt 0 ]]; then
13
+ echo "[autoresearch-sync] $sync_gap commit(s) behind origin/main — pulling..."
14
+ git pull origin main >/dev/null 2>&1 || echo "[autoresearch-sync] WARN: git pull failed, continuing with local code"
15
+ fi
16
+ fi
17
+ fi
18
+ fi
19
+
4
20
  TMP_DIR="$(mktemp -d)"
5
21
  trap 'rm -rf "$TMP_DIR"' EXIT
6
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-autoresearch",
3
- "version": "3.17.2",
3
+ "version": "3.18.0",
4
4
  "description": "Autonomous recursive self-improvement engine for OpenCode and Hermes Agent. Subagent-first iteration loop with mechanical verification.",
5
5
  "author": {
6
6
  "name": "Maleick",