@pmaddire/gcie 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -49,7 +49,7 @@ cost of sending full repo surfaces to the model.
49
49
  Use this when you want a fast drop-in setup for coding agents.
50
50
 
51
51
  1. Install GCIE CLI in the target repo (via your preferred method: npm link, local wrapper, or direct Python module).
52
- 2. Copy [AGENT_USAGE.md](c:\GBCRSS\AGENT_USAGE.md) into the target repo root.
52
+ 2. Copy [GCIE_USAGE.md](c:\GBCRSS\GCIE_USAGE.md) into the target repo root.
53
53
  3. Run one index pass:
54
54
  - `gcie.cmd index .`
55
55
  4. Start using adaptive retrieval immediately:
package/SETUP_ANY_REPO.md CHANGED
@@ -43,7 +43,7 @@ Re-run indexing after major structural changes.
43
43
 
44
44
  ## 3) Add Agent Workflow File
45
45
 
46
- Copy `AGENT_USAGE.md` from GCIE into the target repo root.
46
+ Copy `GCIE_USAGE.md` from GCIE into the target repo root.
47
47
 
48
48
  ## 4) Start With Portable Defaults
49
49
 
@@ -51,7 +51,7 @@ Copy `AGENT_USAGE.md` from GCIE into the target repo root.
51
51
  gcie.cmd context . "<task>" --intent <edit|debug|refactor|explore> --budget auto
52
52
  ```
53
53
 
54
- Then apply the adaptive loop in `AGENT_USAGE.md` if must-have coverage is incomplete.
54
+ Then apply the adaptive loop in `GCIE_USAGE.md` if must-have coverage is incomplete.
55
55
 
56
56
  ## 5) Use Adaptive Mode Routing
57
57
 
package/cli/app.py CHANGED
@@ -127,7 +127,7 @@ def context_slices_cmd(
127
127
  def setup_cmd(
128
128
  path: str = typer.Argument("."),
129
129
  force: bool = typer.Option(False, "--force", help="Overwrite existing setup files"),
130
- no_agent_usage: bool = typer.Option(False, "--no-agent-usage", help="Do not copy AGENT_USAGE.md"),
130
+ no_agent_usage: bool = typer.Option(False, "--no-agent-usage", help="Do not copy GCIE_USAGE.md"),
131
131
  no_setup_doc: bool = typer.Option(False, "--no-setup-doc", help="Do not copy SETUP_ANY_REPO.md"),
132
132
  no_index: bool = typer.Option(False, "--no-index", help="Skip initial indexing pass"),
133
133
  ) -> None:
@@ -1,73 +1,73 @@
1
- """One-command repository setup for GCIE."""
2
-
3
- from __future__ import annotations
4
-
5
- from pathlib import Path
6
-
7
- from context.architecture_bootstrap import ensure_initialized
8
-
9
- from .index import run_index
10
-
11
-
12
- def _repo_root() -> Path:
13
- return Path(__file__).resolve().parents[2]
14
-
15
-
16
- def _copy_if_needed(source: Path, target: Path, *, force: bool) -> str:
17
- if not source.exists():
18
- return "source_missing"
19
- if target.exists() and not force:
20
- return "skipped_existing"
21
- target.parent.mkdir(parents=True, exist_ok=True)
22
- target.write_text(source.read_text(encoding="utf-8"), encoding="utf-8")
23
- return "written"
24
-
25
-
26
- def run_setup(
27
- path: str,
28
- *,
29
- force: bool = False,
30
- include_agent_usage: bool = True,
31
- include_setup_doc: bool = True,
32
- run_index_pass: bool = True,
33
- ) -> dict:
34
- """Initialize a repository so GCIE can be used immediately."""
35
- target = Path(path).resolve()
36
- target.mkdir(parents=True, exist_ok=True)
37
-
38
- config = ensure_initialized(target)
39
- gcie_dir = target / ".gcie"
40
-
41
- status: dict[str, object] = {
42
- "repo": target.as_posix(),
43
- "gcie_dir": gcie_dir.as_posix(),
44
- "architecture_initialized": True,
45
- "files": {},
46
- }
47
-
48
- source_root = _repo_root()
49
- copied: dict[str, str] = {}
50
-
51
- if include_agent_usage:
52
- copied["AGENT_USAGE.md"] = _copy_if_needed(
53
- source_root / "AGENT_USAGE.md",
54
- target / "AGENT_USAGE.md",
55
- force=force,
56
- )
57
-
58
- if include_setup_doc:
59
- copied["SETUP_ANY_REPO.md"] = _copy_if_needed(
60
- source_root / "SETUP_ANY_REPO.md",
61
- target / "SETUP_ANY_REPO.md",
62
- force=force,
63
- )
64
-
65
- status["files"] = copied
66
- status["context_config"] = config
67
-
68
- if run_index_pass:
69
- status["index"] = run_index(target.as_posix())
70
- else:
71
- status["index"] = {"skipped": True}
72
-
1
+ """One-command repository setup for GCIE."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from pathlib import Path
6
+
7
+ from context.architecture_bootstrap import ensure_initialized
8
+
9
+ from .index import run_index
10
+
11
+
12
+ def _repo_root() -> Path:
13
+ return Path(__file__).resolve().parents[2]
14
+
15
+
16
+ def _copy_if_needed(source: Path, target: Path, *, force: bool) -> str:
17
+ if not source.exists():
18
+ return "source_missing"
19
+ if target.exists() and not force:
20
+ return "skipped_existing"
21
+ target.parent.mkdir(parents=True, exist_ok=True)
22
+ target.write_text(source.read_text(encoding="utf-8"), encoding="utf-8")
23
+ return "written"
24
+
25
+
26
+ def run_setup(
27
+ path: str,
28
+ *,
29
+ force: bool = False,
30
+ include_agent_usage: bool = True,
31
+ include_setup_doc: bool = True,
32
+ run_index_pass: bool = True,
33
+ ) -> dict:
34
+ """Initialize a repository so GCIE can be used immediately."""
35
+ target = Path(path).resolve()
36
+ target.mkdir(parents=True, exist_ok=True)
37
+
38
+ config = ensure_initialized(target)
39
+ gcie_dir = target / ".gcie"
40
+
41
+ status: dict[str, object] = {
42
+ "repo": target.as_posix(),
43
+ "gcie_dir": gcie_dir.as_posix(),
44
+ "architecture_initialized": True,
45
+ "files": {},
46
+ }
47
+
48
+ source_root = _repo_root()
49
+ copied: dict[str, str] = {}
50
+
51
+ if include_agent_usage:
52
+ copied["GCIE_USAGE.md"] = _copy_if_needed(
53
+ source_root / "GCIE_USAGE.md",
54
+ target / "GCIE_USAGE.md",
55
+ force=force,
56
+ )
57
+
58
+ if include_setup_doc:
59
+ copied["SETUP_ANY_REPO.md"] = _copy_if_needed(
60
+ source_root / "SETUP_ANY_REPO.md",
61
+ target / "SETUP_ANY_REPO.md",
62
+ force=force,
63
+ )
64
+
65
+ status["files"] = copied
66
+ status["context_config"] = config
67
+
68
+ if run_index_pass:
69
+ status["index"] = run_index(target.as_posix())
70
+ else:
71
+ status["index"] = {"skipped": True}
72
+
73
73
  return status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmaddire/gcie",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "GraphCode Intelligence Engine one-command setup and context CLI",
5
5
  "bin": {
6
6
  "gcie": "bin/gcie.js",
File without changes