intent-cli-python 1.2.0__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.
intent_cli/__init__.py CHANGED
@@ -1,8 +1,38 @@
1
1
  """Intent CLI — semantic history for agent-driven development."""
2
2
 
3
+ import re
3
4
  from importlib.metadata import PackageNotFoundError, version
5
+ from pathlib import Path
4
6
 
5
- try:
6
- __version__ = version("intent-cli-python")
7
- except PackageNotFoundError:
8
- __version__ = "0.0.0"
7
+
8
+ def _read_source_version():
9
+ pyproject = Path(__file__).resolve().parents[2] / "pyproject.toml"
10
+ if not pyproject.exists():
11
+ return None
12
+ text = pyproject.read_text(encoding="utf-8")
13
+ in_project = False
14
+ for line in text.splitlines():
15
+ stripped = line.strip()
16
+ if stripped == "[project]":
17
+ in_project = True
18
+ continue
19
+ if in_project and stripped.startswith("["):
20
+ break
21
+ if in_project:
22
+ match = re.match(r'version\s*=\s*"([^"]+)"', stripped)
23
+ if match:
24
+ return match.group(1)
25
+ return None
26
+
27
+
28
+ def _resolve_version():
29
+ source_version = _read_source_version()
30
+ if source_version is not None:
31
+ return source_version
32
+ try:
33
+ return version("intent-cli-python")
34
+ except PackageNotFoundError:
35
+ return "0.0.0"
36
+
37
+
38
+ __version__ = _resolve_version()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intent-cli-python
3
- Version: 1.2.0
3
+ Version: 2.0.0
4
4
  Summary: Semantic history for agent-driven development. Records what you did and why.
5
5
  Author: Zeng Deyang
6
6
  License-Expression: MIT
@@ -72,6 +72,36 @@ pip install intent-cli-python
72
72
 
73
73
  Requires Python 3.9+ and Git.
74
74
 
75
+ ### IntHub boundary
76
+
77
+ `pipx install intent-cli-python` installs the CLI only.
78
+
79
+ This repository is the umbrella project for both `Intent` and `IntHub`, but the distribution boundary is narrower than the repository boundary:
80
+
81
+ - PyPI ships only the `itt` CLI
82
+ - IntHub Web is a separate static frontend and is a good fit for GitHub Pages
83
+ - IntHub API is a separate service and is not part of the PyPI package
84
+
85
+ If you are running IntHub from source inside this repository, the current local entrypoints are:
86
+
87
+ ```bash
88
+ python -m apps.inthub_api --db-path .inthub/inthub.db
89
+ python -m apps.inthub_web --api-base-url http://127.0.0.1:8000
90
+ ```
91
+
92
+ Then use `itt hub login`, `itt hub link`, and `itt hub sync` from a local Intent workspace to populate the read-only IntHub project view.
93
+
94
+ ### Versioning and releases
95
+
96
+ `Intent` is the umbrella project and monorepo. It does not maintain one shared project version anymore.
97
+
98
+ Release versions now belong to concrete deliverables:
99
+
100
+ - CLI releases use the PyPI package version from `pyproject.toml` and Git tags like `cli-v2.0.0`
101
+ - IntHub releases use their own track and Git tags like `hub-v0.1.0`
102
+
103
+ Historical bare tags such as `v1.3.0` remain as history, but new releases use deliverable-prefixed tags.
104
+
75
105
  ### Install the skills.sh skill
76
106
 
77
107
  ```bash
@@ -1,4 +1,4 @@
1
- intent_cli/__init__.py,sha256=0YKXl028Mo75Gtr8Mml2fReZyU3UR2uYueXQHUPUCPM,238
1
+ intent_cli/__init__.py,sha256=_19_tcL7KLgyD54NiZ-8tcAMCDKyqu_9k5K2-4Lc8ng,1058
2
2
  intent_cli/__main__.py,sha256=pWAakBzI50WtmbfDBrUudHbZYBPi8VJ_PlPbRRFGCP4,40
3
3
  intent_cli/cli.py,sha256=WUDi9hNUqOin2ETkSJOrrdaGGUN66gzZe5HyhPMmCM0,5245
4
4
  intent_cli/output.py,sha256=_ZmivWZfY_AOcGRCWFMx09lUGB-Ku0g5xyjrqL6UWKg,680
@@ -11,9 +11,9 @@ intent_cli/hub/__init__.py,sha256=ujLxjGwZo_JCKhCXSlx1lwtJYDWd0y5tAoo57F1VaKM,46
11
11
  intent_cli/hub/client.py,sha256=QB6fsPZdAQD7iSnhCmbkBwPlEZVwl7QrYXE4E0S88to,1811
12
12
  intent_cli/hub/payload.py,sha256=fjweASqpHIu54HvoQDQd-ibJ0UJx6zpzjIsllVhWmrs,1930
13
13
  intent_cli/hub/runtime.py,sha256=U2U9uipBjB0MIeA10i-T1lJQariYv99iSovcgl6ca0M,1043
14
- intent_cli_python-1.2.0.dist-info/licenses/LICENSE,sha256=XWjTStLaoDw-UgLwMecejVxeaHH8JibnSFYARGzRc6I,1068
15
- intent_cli_python-1.2.0.dist-info/METADATA,sha256=VeBDnYp2zN5231hqJaPqMTLuV65khqWKPlotPjZtAVE,6900
16
- intent_cli_python-1.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
17
- intent_cli_python-1.2.0.dist-info/entry_points.txt,sha256=Y1kziqgaGUgTHg3CCfc2Su1XoDvIMJ2vi-dPEDZfuTo,44
18
- intent_cli_python-1.2.0.dist-info/top_level.txt,sha256=jkyOMCXA-G6FlEj69GA4SKn3RoO1KNL9w2iit7OUpuU,11
19
- intent_cli_python-1.2.0.dist-info/RECORD,,
14
+ intent_cli_python-2.0.0.dist-info/licenses/LICENSE,sha256=XWjTStLaoDw-UgLwMecejVxeaHH8JibnSFYARGzRc6I,1068
15
+ intent_cli_python-2.0.0.dist-info/METADATA,sha256=2cSVuK778T_ayTowh9siWhEsjviMhb2ubOOOxzgf7b4,8134
16
+ intent_cli_python-2.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
17
+ intent_cli_python-2.0.0.dist-info/entry_points.txt,sha256=Y1kziqgaGUgTHg3CCfc2Su1XoDvIMJ2vi-dPEDZfuTo,44
18
+ intent_cli_python-2.0.0.dist-info/top_level.txt,sha256=jkyOMCXA-G6FlEj69GA4SKn3RoO1KNL9w2iit7OUpuU,11
19
+ intent_cli_python-2.0.0.dist-info/RECORD,,