merced-ai 0.1.0__tar.gz
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.
- merced_ai-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +37 -0
- merced_ai-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
- merced_ai-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
- merced_ai-0.1.0/.github/pull_request_template.md +18 -0
- merced_ai-0.1.0/.github/workflows/ci.yml +36 -0
- merced_ai-0.1.0/.gitignore +11 -0
- merced_ai-0.1.0/CHANGELOG.md +26 -0
- merced_ai-0.1.0/CONTRIBUTING.md +38 -0
- merced_ai-0.1.0/LICENSE +202 -0
- merced_ai-0.1.0/PKG-INFO +215 -0
- merced_ai-0.1.0/PRD.md +428 -0
- merced_ai-0.1.0/README.md +177 -0
- merced_ai-0.1.0/SECURITY.md +11 -0
- merced_ai-0.1.0/docs/ARCHITECTURE.md +66 -0
- merced_ai-0.1.0/docs/COMPATIBILITY.md +88 -0
- merced_ai-0.1.0/docs/CONFIGURATION.md +110 -0
- merced_ai-0.1.0/docs/DETECTION.md +67 -0
- merced_ai-0.1.0/docs/INSTALLATION.md +89 -0
- merced_ai-0.1.0/docs/MVP_VALIDATION.md +81 -0
- merced_ai-0.1.0/docs/README.md +22 -0
- merced_ai-0.1.0/docs/RELEASE_NOTES_0.1.0.md +44 -0
- merced_ai-0.1.0/docs/RELEASING.md +67 -0
- merced_ai-0.1.0/docs/TROUBLESHOOTING.md +73 -0
- merced_ai-0.1.0/docs/screenshots/merced-ai-ui-desktop.jpg +0 -0
- merced_ai-0.1.0/docs/screenshots/merced-ai-ui-mobile.jpg +0 -0
- merced_ai-0.1.0/pyproject.toml +74 -0
- merced_ai-0.1.0/src/merced_ai/__init__.py +3 -0
- merced_ai-0.1.0/src/merced_ai/__main__.py +4 -0
- merced_ai-0.1.0/src/merced_ai/application.py +86 -0
- merced_ai-0.1.0/src/merced_ai/bots.py +116 -0
- merced_ai-0.1.0/src/merced_ai/cli.py +503 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/__init__.py +5 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/adapters/__init__.py +1 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/adapters/command.py +557 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/adapters/executable.py +39 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/base.py +26 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/detection.py +138 -0
- merced_ai-0.1.0/src/merced_ai/harnesses/registry.py +169 -0
- merced_ai-0.1.0/src/merced_ai/models.py +159 -0
- merced_ai-0.1.0/src/merced_ai/paths.py +34 -0
- merced_ai-0.1.0/src/merced_ai/profiles.py +147 -0
- merced_ai-0.1.0/src/merced_ai/sessions.py +63 -0
- merced_ai-0.1.0/src/merced_ai/webui/app.js +82 -0
- merced_ai-0.1.0/src/merced_ai/webui/index.html +117 -0
- merced_ai-0.1.0/src/merced_ai/webui/styles.css +174 -0
- merced_ai-0.1.0/src/merced_ai/webui_server.py +100 -0
- merced_ai-0.1.0/tests/conftest.py +22 -0
- merced_ai-0.1.0/tests/test_bots_sessions.py +44 -0
- merced_ai-0.1.0/tests/test_cli.py +129 -0
- merced_ai-0.1.0/tests/test_command_adapters.py +366 -0
- merced_ai-0.1.0/tests/test_profiles.py +83 -0
- merced_ai-0.1.0/tests/test_registry.py +175 -0
- merced_ai-0.1.0/tests/test_webui.py +41 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a reproducible Merced AI defect.
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: [bug]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: Never include API keys or unreviewed harness logs.
|
|
9
|
+
- type: input
|
|
10
|
+
id: version
|
|
11
|
+
attributes:
|
|
12
|
+
label: Merced AI version
|
|
13
|
+
placeholder: merced-ai 0.1.0
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: input
|
|
17
|
+
id: platform
|
|
18
|
+
attributes:
|
|
19
|
+
label: Operating system and Python version
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
- type: input
|
|
23
|
+
id: harness
|
|
24
|
+
attributes:
|
|
25
|
+
label: Harness and version
|
|
26
|
+
- type: textarea
|
|
27
|
+
id: reproduction
|
|
28
|
+
attributes:
|
|
29
|
+
label: Reproduction
|
|
30
|
+
description: Provide minimal commands, expected behavior, and actual behavior.
|
|
31
|
+
validations:
|
|
32
|
+
required: true
|
|
33
|
+
- type: textarea
|
|
34
|
+
id: inventory
|
|
35
|
+
attributes:
|
|
36
|
+
label: Redacted inventory or error
|
|
37
|
+
description: Review output before pasting; remove prompts, paths, IDs, and credentials.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a scoped product, protocol, or harness improvement.
|
|
3
|
+
title: "[Feature]: "
|
|
4
|
+
labels: [enhancement]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: problem
|
|
8
|
+
attributes:
|
|
9
|
+
label: Problem
|
|
10
|
+
description: What workflow is blocked or unnecessarily difficult?
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: proposal
|
|
15
|
+
attributes:
|
|
16
|
+
label: Proposed outcome
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: compatibility
|
|
21
|
+
attributes:
|
|
22
|
+
label: Harness, OAP, ACP, and platform considerations
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## Outcome
|
|
2
|
+
|
|
3
|
+
Describe the user-visible result.
|
|
4
|
+
|
|
5
|
+
## Validation
|
|
6
|
+
|
|
7
|
+
- [ ] Ruff format check
|
|
8
|
+
- [ ] Ruff lint
|
|
9
|
+
- [ ] Full pytest suite and coverage threshold
|
|
10
|
+
- [ ] Package build and Twine check when packaging is affected
|
|
11
|
+
- [ ] Disposable no-tool live qualification when an adapter is affected
|
|
12
|
+
- [ ] Documentation and compatibility matrix updated
|
|
13
|
+
|
|
14
|
+
## Safety and compatibility
|
|
15
|
+
|
|
16
|
+
Describe OAP projection changes, permission behavior, provider/network effects, migration concerns,
|
|
17
|
+
and operating systems tested. Confirm no credentials, personal harness state, or unreviewed logs are
|
|
18
|
+
included.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
include:
|
|
17
|
+
- os: ubuntu-latest
|
|
18
|
+
python-version: "3.11"
|
|
19
|
+
- os: ubuntu-latest
|
|
20
|
+
python-version: "3.14"
|
|
21
|
+
- os: macos-latest
|
|
22
|
+
python-version: "3.13"
|
|
23
|
+
- os: windows-latest
|
|
24
|
+
python-version: "3.13"
|
|
25
|
+
runs-on: ${{ matrix.os }}
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: ${{ matrix.python-version }}
|
|
31
|
+
- run: python -m pip install --upgrade pip
|
|
32
|
+
- run: python -m pip install -e '.[dev]'
|
|
33
|
+
- run: python -m ruff format --check .
|
|
34
|
+
- run: python -m ruff check .
|
|
35
|
+
- run: python -m pytest -q
|
|
36
|
+
- run: python -m build
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 — 2026-08-23
|
|
4
|
+
|
|
5
|
+
- Added OAP profile validation, discovery, creation, digests, and prompt assembly.
|
|
6
|
+
- Added project and user bot bindings with preferred and fallback harnesses.
|
|
7
|
+
- Added discovery for Codex, Claude Code, Gemini CLI, OpenCode, Goose, Loro, and MagAgent.
|
|
8
|
+
- Added executable MVP adapters for Codex, Claude Code, Gemini CLI, Loro, and MagAgent.
|
|
9
|
+
- Added profile projection and provider-aware model substitution reports.
|
|
10
|
+
- Added one-shot asks, interactive chat, durable local sessions, and session resume.
|
|
11
|
+
- Added shell-free bounded process execution with timeout and cancellation containment.
|
|
12
|
+
- Added JSON automation surfaces, packaging, CI, security guidance, and MVP validation evidence.
|
|
13
|
+
- Added an optional loopback-only responsive web UI with ephemeral-token API access.
|
|
14
|
+
- Added adapters and discovery for Anton, DSH, AGY, Pi, Prime Agent, OpenClaw, and Kimi Code CLI.
|
|
15
|
+
- Qualified OpenCode and Goose command adapters and hardened JSONL embedded-error detection.
|
|
16
|
+
- Generated new OAP profiles with explicit revision 1 for cross-harness compatibility.
|
|
17
|
+
- Live-qualified all 14 installed harnesses in an unsandboxed disposable workspace, including the
|
|
18
|
+
repaired and atomic Anton bridge.
|
|
19
|
+
- Added DSH multi-provider guidance, Kimi alternate-config support, rootless executable discovery,
|
|
20
|
+
and current OpenClaw/AGY invocation compatibility.
|
|
21
|
+
- Added cross-platform detection overrides and bounded Linux, macOS, Windows, uv, npm, Homebrew,
|
|
22
|
+
Scoop, Chocolatey, and private-prefix search locations.
|
|
23
|
+
- Repaired and live-qualified Anton, made its REPL projection atomic, and normalized its final
|
|
24
|
+
assistant response.
|
|
25
|
+
- Added release-grade installation, configuration, detection, architecture, troubleshooting,
|
|
26
|
+
validation, contribution, and release documentation plus GitHub templates.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Development setup
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
python -m pip install -e '.[dev]'
|
|
7
|
+
python -m pytest -q
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Keep changes focused and preserve unrelated worktree modifications. Before submitting:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
python -m ruff format --check .
|
|
14
|
+
python -m ruff check .
|
|
15
|
+
python -m pytest -q
|
|
16
|
+
python -m build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Adapter contributions
|
|
20
|
+
|
|
21
|
+
An adapter change should include:
|
|
22
|
+
|
|
23
|
+
- authoritative CLI/version research;
|
|
24
|
+
- bounded executable discovery without filesystem-wide scanning;
|
|
25
|
+
- argv construction with `shell=False`;
|
|
26
|
+
- explicit workspace, timeout, cancellation, and output behavior;
|
|
27
|
+
- honest OAP field projection and degradation reporting;
|
|
28
|
+
- controlled contract tests for success, failure, and malformed output;
|
|
29
|
+
- a disposable no-tool live qualification when the harness is available; and
|
|
30
|
+
- compatibility and troubleshooting documentation.
|
|
31
|
+
|
|
32
|
+
Do not add provider secrets, personal paths, harness state, generated sessions, or live logs to the
|
|
33
|
+
repository. Never broaden permissions to make a test pass.
|
|
34
|
+
|
|
35
|
+
## Issues and security
|
|
36
|
+
|
|
37
|
+
Use the issue templates for bugs and feature requests. Report vulnerabilities through GitHub
|
|
38
|
+
Security Advisories as described in [SECURITY.md](SECURITY.md), not a public issue.
|
merced_ai-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
merced_ai-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: merced-ai
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An OAP-native broker for existing AI agent harnesses.
|
|
5
|
+
Project-URL: Homepage, https://github.com/AlexMercedCoder/merced-ai
|
|
6
|
+
Project-URL: Repository, https://github.com/AlexMercedCoder/merced-ai
|
|
7
|
+
Project-URL: Issues, https://github.com/AlexMercedCoder/merced-ai/issues
|
|
8
|
+
Author: Alex Merced
|
|
9
|
+
License: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: acp,agents,automation,cli,codex,oap
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: open-agent-profile<2,>=1.0
|
|
22
|
+
Requires-Dist: pydantic<3,>=2.9
|
|
23
|
+
Requires-Dist: pyyaml<7,>=6.0
|
|
24
|
+
Requires-Dist: rich<15,>=13.9
|
|
25
|
+
Requires-Dist: typer<1,>=0.12.5
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: build<2,>=1.2; extra == 'dev'
|
|
28
|
+
Requires-Dist: fastapi<1,>=0.115; extra == 'dev'
|
|
29
|
+
Requires-Dist: httpx<1,>=0.27; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-cov<7,>=5; extra == 'dev'
|
|
31
|
+
Requires-Dist: pytest<9,>=8.3; extra == 'dev'
|
|
32
|
+
Requires-Dist: ruff<1,>=0.6; extra == 'dev'
|
|
33
|
+
Requires-Dist: uvicorn<1,>=0.30; extra == 'dev'
|
|
34
|
+
Provides-Extra: webui
|
|
35
|
+
Requires-Dist: fastapi<1,>=0.115; extra == 'webui'
|
|
36
|
+
Requires-Dist: uvicorn<1,>=0.30; extra == 'webui'
|
|
37
|
+
Description-Content-Type: text/markdown
|
|
38
|
+
|
|
39
|
+
# Merced AI
|
|
40
|
+
|
|
41
|
+
Merced AI is a local-first broker for AI agent harnesses already installed on your machine. It
|
|
42
|
+
discovers those harnesses, normalizes their noninteractive interfaces, and uses Open Agent Profile
|
|
43
|
+
(OAP) documents to create portable bots you can chat and collaborate with.
|
|
44
|
+
|
|
45
|
+
Merced AI is deliberately not another agent loop. The selected harness still owns model access,
|
|
46
|
+
tools, authentication, sandboxing, approvals, and final policy enforcement.
|
|
47
|
+
|
|
48
|
+
## MVP capabilities
|
|
49
|
+
|
|
50
|
+
- Safe executable and version discovery for 14 harnesses, including Codex, Claude Code, Gemini CLI,
|
|
51
|
+
OpenCode, Goose, Loro, MagAgent, DSH, Pi, Prime Agent, OpenClaw, and Kimi Code CLI.
|
|
52
|
+
- Reference OAP validation, digest calculation, profile discovery, and minimal profile authoring.
|
|
53
|
+
- Project-local and user-global bot bindings with preferred and fallback harnesses.
|
|
54
|
+
- Honest native, projected, degraded, and unsupported profile projection reports.
|
|
55
|
+
- One-shot bot runs and multi-turn local chat.
|
|
56
|
+
- Durable, atomic project-local conversation sessions with resume support.
|
|
57
|
+
- Machine-readable JSON output for inventory, profiles, bots, dry runs, and results.
|
|
58
|
+
- Bounded subprocess execution without a shell, with timeout and Ctrl+C cancellation.
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
python -m pip install merced-ai
|
|
64
|
+
# optional UI
|
|
65
|
+
python -m pip install 'merced-ai[webui]'
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
For development:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python -m pip install -e '.[dev]'
|
|
72
|
+
merced-ai --version
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Python 3.11 or newer is required. At least one supported harness must be installed and authenticated
|
|
76
|
+
for a real run. Inventory and dry-run workflows do not require model access.
|
|
77
|
+
|
|
78
|
+
See the [installation guide](docs/INSTALLATION.md) for pipx/uv, platform-specific discovery, and
|
|
79
|
+
explicit executable overrides.
|
|
80
|
+
|
|
81
|
+
## Quick start
|
|
82
|
+
|
|
83
|
+
Initialize a workspace:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
merced-ai init
|
|
87
|
+
merced-ai harness list
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Create a minimal OAP profile:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
merced-ai profile create reviewer \
|
|
94
|
+
--description "Reviews code for concrete defects before merge." \
|
|
95
|
+
--instructions "Review code. Report verified defects and do not edit files."
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Bind it to a harness:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
merced-ai bot create reviewer \
|
|
102
|
+
--profile reviewer \
|
|
103
|
+
--harness codex \
|
|
104
|
+
--fallback claude
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Review the exact projection without launching a model:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
merced-ai ask reviewer "Review the current diff" --dry-run --explain
|
|
111
|
+
merced-ai profile effective reviewer --harness codex
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Run or chat:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
merced-ai ask reviewer "Review the current diff"
|
|
118
|
+
merced-ai chat reviewer
|
|
119
|
+
merced-ai session list
|
|
120
|
+
merced-ai session resume <session-id>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Launch the optional local UI:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
python -m pip install 'merced-ai[webui]'
|
|
127
|
+
merced-ai ui
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The UI binds to loopback, opens with an ephemeral access token, and reads the same profile, bot,
|
|
131
|
+
session, projection, and harness inventory records as the CLI.
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
The layout is responsive down to a compact mobile collaboration view. See the
|
|
136
|
+
[mobile UI screenshot](docs/screenshots/merced-ai-ui-mobile.jpg).
|
|
137
|
+
|
|
138
|
+
Use `-C PATH` on project-aware commands to select another workspace. Use `--json` on read and
|
|
139
|
+
one-shot commands for automation.
|
|
140
|
+
|
|
141
|
+
## Harness matrix
|
|
142
|
+
|
|
143
|
+
| Harness | Discovery | Execution | OAP projection |
|
|
144
|
+
| --- | --- | --- | --- |
|
|
145
|
+
| MagAgent | yes | native one-shot | native for project-discovered profiles |
|
|
146
|
+
| Loro | yes | native one-shot | native for project-discovered profiles |
|
|
147
|
+
| Claude Code | yes | structured print mode | system-prompt projection |
|
|
148
|
+
| Codex | yes | noninteractive exec | delimited prompt compatibility mode |
|
|
149
|
+
| Gemini CLI | yes | structured headless mode | delimited prompt compatibility mode |
|
|
150
|
+
| OpenCode | yes | structured run mode | delimited prompt compatibility mode |
|
|
151
|
+
| Goose | yes | structured run mode | system-prompt projection |
|
|
152
|
+
| Anton | yes | stdin REPL bridge | delimited prompt compatibility mode |
|
|
153
|
+
| DeepSeek Harness (DSH) | yes | headless profile | delimited prompt compatibility mode |
|
|
154
|
+
| Antigravity CLI (AGY) | yes | structured print mode | delimited prompt compatibility mode |
|
|
155
|
+
| Pi Coding Agent | yes | structured print mode | system-prompt projection |
|
|
156
|
+
| Prime Agent | yes | structured print mode | system-prompt projection |
|
|
157
|
+
| OpenClaw | yes | embedded local agent | delimited prompt compatibility mode |
|
|
158
|
+
| Kimi Code CLI | yes | read-only print mode | delimited prompt compatibility mode |
|
|
159
|
+
|
|
160
|
+
"Native" means the harness receives the OAP profile name through its own CLI. It does not mean
|
|
161
|
+
Merced AI can supersede harness policy. All current projection reports remain provisional until the
|
|
162
|
+
runtime handshake and effective-policy reporting milestone is complete.
|
|
163
|
+
|
|
164
|
+
GLM is treated as a model-family route, not a separate harness. Use it through a supported host
|
|
165
|
+
such as Claude Code, OpenCode, Goose, Pi, or Prime Agent. Kimi models can likewise be selected in
|
|
166
|
+
multi-provider harnesses, while the dedicated Kimi Code CLI has its own adapter. See
|
|
167
|
+
[COMPATIBILITY.md](docs/COMPATIBILITY.md) for qualification status and caveats.
|
|
168
|
+
|
|
169
|
+
DSH can use a non-DeepSeek provider through its bundled `llm-pi-ai` settings. Kimi can use a
|
|
170
|
+
custom config selected with `MERCED_AI_KIMI_CONFIG_FILE`; standard provider environment variables
|
|
171
|
+
remain outside Merced AI. See the compatibility guide for a key-free DSH example and current live
|
|
172
|
+
qualification results.
|
|
173
|
+
|
|
174
|
+
## Storage
|
|
175
|
+
|
|
176
|
+
Project-local data:
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
.agents/ OAP profiles
|
|
180
|
+
.merced-ai/bots/ bot bindings
|
|
181
|
+
.merced-ai/sessions/ normalized conversation sessions
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
User-global data defaults to `~/.config/merced-ai` on Linux and follows the platform configuration
|
|
185
|
+
directory on Windows. Set `MERCED_AI_HOME` to override it for automation or tests.
|
|
186
|
+
|
|
187
|
+
OAP profiles remain the authoritative source for identity and learned state. Session JSON files do
|
|
188
|
+
not replace profile state.
|
|
189
|
+
|
|
190
|
+
## Security posture
|
|
191
|
+
|
|
192
|
+
- Harness discovery never installs packages or scans the full filesystem.
|
|
193
|
+
- Child commands are passed as argument arrays with `shell=False`.
|
|
194
|
+
- Plaintext credentials are rejected by the OAP reference validator.
|
|
195
|
+
- Harness policies remain authoritative.
|
|
196
|
+
- Degraded profile injection is clearly reported and delimited.
|
|
197
|
+
- Runs time out, captured output is bounded, and cancellation terminates the child process.
|
|
198
|
+
- Automatic fallback happens only when a harness is unavailable, never after a paid or mutating run
|
|
199
|
+
has begun.
|
|
200
|
+
|
|
201
|
+
See [PRD.md](PRD.md) for the full product requirements, security model, architecture, and roadmap.
|
|
202
|
+
The [documentation index](docs/README.md) links configuration, detection, troubleshooting,
|
|
203
|
+
architecture, validation, and release guides.
|
|
204
|
+
|
|
205
|
+
## Development
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
ruff format --check .
|
|
209
|
+
ruff check .
|
|
210
|
+
pytest
|
|
211
|
+
python -m build
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Unit and CLI tests use isolated filesystems and mocked harness processes. They do not call models or
|
|
215
|
+
require network access.
|