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.1.0b3.tar.gz (12.7 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.1.0b3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file stubborn_watch-0.1.0b3.tar.gz.

File metadata

  • Download URL: stubborn_watch-0.1.0b3.tar.gz
  • Upload date:
  • Size: 12.7 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.1.0b3.tar.gz
Algorithm Hash digest
SHA256 6e195f921e29fe34fcccf067f8e20c4b86ddc346e221b9d33e0ccebbaed3a12f
MD5 4565ac596e44546664fae4571247b500
BLAKE2b-256 266b745f275a67ff47c9dcca0cb90a1dc65ccfba3bdf20e3e602dacb55d1f961

See more details on using hashes here.

File details

Details for the file stubborn_watch-0.1.0b3-py3-none-any.whl.

File metadata

File hashes

Hashes for stubborn_watch-0.1.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0018f898846fe4d015f793b7d0b9fbdfebe5f71dfa856e6d573e056dab2cb7b
MD5 052decd01078b8f3d448e2e506739290
BLAKE2b-256 3d508ad520ad6ce377ba3cf4f7cc8577f88b5c07a7333a32792a0b6888249153

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