Skip to main content

Dev orchestration: file watch → SCIP indexer → stubborn index --merge

Project description

stubborn-watch

Debounced file watch → external SCIP indexer (scip-java) → stubborn index --merge.

Stubborn does not parse Java source. This package only orchestrates the dev loop described in ADR-009.

Install

pip install stubborn-watch

Requires scip-java on PATH for the default indexer command.

Usage

Watch mode (dev loop)

stubborn index --scip index.scip --out symbols.db   # initial full snapshot
stubborn-watch watch --root . --db symbols.db

On save (debounced, default 2s):

  1. scip-java index
  2. stubborn index --merge for changed relative_path values

One-shot merge (hooks / CI helpers)

stubborn-watch merge-once --root . --db symbols.db \
  --paths com/example/Foo.java,com/example/Bar.java

Use --skip-index when index.scip is already fresh.

Workspace watch (multi-repo)

For source-available internal repos, use a workspace manifest so each repo can index and merge independently into one shared workspace DB:

{
  "workspace": "acme",
  "db": "symbols.db",
  "repos": [
    { "repo_key": "orders-api", "root": "../orders-api", "scip": "index.scip" },
    { "repo_key": "orders-core", "root": "../orders-core", "scip": "index.scip" }
  ]
}
stubborn-watch workspace-watch --manifest stubborn-workspace.json
stubborn context symbols.db --workspace acme --target "<stable_id>"

Validation scope

This repo owns orchestration-focused validation:

  • CLI smoke for merge-once
  • debounce and path normalization
  • subprocess invocation contracts around scip-java

The canonical ADR-009 runnable demo lives in stubborn-demo:

That keeps stubborn-watch focused on watch behavior, while stubborn-demo owns runnable demo assets and black-box validation projects.

Options

Flag Default Purpose
--root . Project root
--db (required) SQLite symbol graph
--scip index.scip SCIP index path
--debounce 2.0 Seconds to coalesce events
--pattern **/*.java Watched file glob
--scip-cmd scip-java index External indexer command
--workspace Workspace name for repo-scoped merges
--repo Repo key for repo-scoped merges

Setup diagnostics

Read-only dev-loop prerequisites (ADR-015) — does not start watch or invoke scip-java:

stubborn-watch doctor --root . --db symbols.db
stubborn-watch doctor --json

Related

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stubborn_watch-0.10.0b1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stubborn_watch-0.10.0b1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file stubborn_watch-0.10.0b1.tar.gz.

File metadata

  • Download URL: stubborn_watch-0.10.0b1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for stubborn_watch-0.10.0b1.tar.gz
Algorithm Hash digest
SHA256 bec84167e03dd3ad6aba680582292a3fbc0462f00afed21682b4f0a65016a6cc
MD5 6d580e9b19c10917bd18fa686aea53a8
BLAKE2b-256 91020def7309651fb5f25776762bf6313d2244db67f0f46dcb224da4f3f18b61

See more details on using hashes here.

File details

Details for the file stubborn_watch-0.10.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for stubborn_watch-0.10.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 575d0418446bd39bcae175ec175311d7e87f17b58a2fdc4c2af569b6fef60255
MD5 e8fe37fc86fe60785db4449a3d4c82d8
BLAKE2b-256 2d5203f1583f49123f704bdbfe0121f66fee034a05229017fffdf0a0c917eaae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page