clink-cli 0.2.1__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.
Files changed (141) hide show
  1. clink/__init__.py +19 -0
  2. clink/agents/__init__.py +30 -0
  3. clink/agents/base.py +70 -0
  4. clink/agents/claude.py +7 -0
  5. clink/agents/codex.py +7 -0
  6. clink/agents/gemini.py +7 -0
  7. clink/allowed_roots.py +356 -0
  8. clink/backend.py +765 -0
  9. clink/cli.py +594 -0
  10. clink/constants.py +78 -0
  11. clink/contracts.py +167 -0
  12. clink/files.py +70 -0
  13. clink/generation.py +274 -0
  14. clink/generation_capabilities.py +207 -0
  15. clink/generation_contracts.py +214 -0
  16. clink/generation_policy.py +174 -0
  17. clink/models.py +243 -0
  18. clink/native.py +409 -0
  19. clink/native_adapters.py +244 -0
  20. clink/native_contracts.py +68 -0
  21. clink/native_generation.py +421 -0
  22. clink/native_generation_claude_policy.py +59 -0
  23. clink/native_generation_contracts.py +264 -0
  24. clink/native_generation_families.py +218 -0
  25. clink/native_generation_family_policy.py +14 -0
  26. clink/native_generation_files.py +153 -0
  27. clink/native_generation_policy.py +82 -0
  28. clink/native_policy.py +86 -0
  29. clink/parsers/__init__.py +34 -0
  30. clink/parsers/agy.py +53 -0
  31. clink/parsers/agy_native.py +161 -0
  32. clink/parsers/agy_native_generation.py +189 -0
  33. clink/parsers/base.py +209 -0
  34. clink/parsers/claude.py +104 -0
  35. clink/parsers/claude_native.py +113 -0
  36. clink/parsers/claude_native_generation.py +346 -0
  37. clink/parsers/codex.py +172 -0
  38. clink/parsers/codex_generation.py +212 -0
  39. clink/parsers/codex_native.py +236 -0
  40. clink/parsers/codex_native_generation.py +367 -0
  41. clink/parsers/gemini.py +110 -0
  42. clink/parsers/grok.py +63 -0
  43. clink/parsers/grok_native.py +91 -0
  44. clink/parsers/grok_native_generation.py +157 -0
  45. clink/policy.py +180 -0
  46. clink/registry.py +544 -0
  47. clink/resources/CODEX-LICENSE +201 -0
  48. clink/resources/CODEX-NOTICE +6 -0
  49. clink/resources/PROVENANCE.md +16 -0
  50. clink/resources/codex-0.166.0-models-direct.json +1284 -0
  51. clink/resources/codex-0.166.0-models-generation.json +1269 -0
  52. clink/resources/native-agy-1.4.12-admission.json +746 -0
  53. clink/resources/native-claude-2.1.304-admission.json +99 -0
  54. clink/resources/native-generation-claude-2.1.304-admission.json +277 -0
  55. clink/resources/native-generation-codex-0.166.0-admission.json +309 -0
  56. clink/resources/native-generation-grok-1.0.70-admission.json +329 -0
  57. clink/resources/native-grok-1.0.70-admission.json +644 -0
  58. clink/runner.py +303 -0
  59. clink/setup.py +399 -0
  60. clink/tasks.py +695 -0
  61. clink_cli-0.2.1.dist-info/METADATA +225 -0
  62. clink_cli-0.2.1.dist-info/RECORD +141 -0
  63. clink_cli-0.2.1.dist-info/WHEEL +5 -0
  64. clink_cli-0.2.1.dist-info/entry_points.txt +3 -0
  65. clink_cli-0.2.1.dist-info/licenses/LICENSE +197 -0
  66. clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-LICENSE +201 -0
  67. clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-NOTICE +6 -0
  68. clink_cli-0.2.1.dist-info/top_level.txt +7 -0
  69. conf/__init__.py +1 -0
  70. conf/cli_clients/agy.json +40 -0
  71. conf/cli_clients/claude.json +39 -0
  72. conf/cli_clients/codex.json +40 -0
  73. conf/cli_clients/gemini.json +23 -0
  74. conf/cli_clients/grok.json +40 -0
  75. config.py +40 -0
  76. server.py +896 -0
  77. systemprompts/__init__.py +35 -0
  78. systemprompts/analyze_prompt.py +87 -0
  79. systemprompts/chat_prompt.py +57 -0
  80. systemprompts/clink/codex_codereviewer.txt +8 -0
  81. systemprompts/clink/default.txt +8 -0
  82. systemprompts/clink/default_codereviewer.txt +8 -0
  83. systemprompts/clink/default_planner.txt +7 -0
  84. systemprompts/clink/native_codereviewer.txt +1 -0
  85. systemprompts/clink/native_default.txt +1 -0
  86. systemprompts/clink/native_planner.txt +1 -0
  87. systemprompts/codereview_prompt.py +91 -0
  88. systemprompts/consensus_prompt.py +120 -0
  89. systemprompts/debug_prompt.py +150 -0
  90. systemprompts/docgen_prompt.py +252 -0
  91. systemprompts/generate_code_prompt.py +181 -0
  92. systemprompts/planner_prompt.py +127 -0
  93. systemprompts/precommit_prompt.py +179 -0
  94. systemprompts/refactor_prompt.py +323 -0
  95. systemprompts/secaudit_prompt.py +420 -0
  96. systemprompts/testgen_prompt.py +133 -0
  97. systemprompts/thinkdeep_prompt.py +55 -0
  98. systemprompts/tracer_prompt.py +145 -0
  99. tools/__init__.py +43 -0
  100. tools/analyze.py +583 -0
  101. tools/apilookup.py +97 -0
  102. tools/challenge.py +198 -0
  103. tools/chat.py +187 -0
  104. tools/clink.py +130 -0
  105. tools/codereview.py +724 -0
  106. tools/consensus.py +790 -0
  107. tools/debug.py +573 -0
  108. tools/docgen.py +577 -0
  109. tools/listmodels.py +48 -0
  110. tools/models.py +373 -0
  111. tools/planner.py +533 -0
  112. tools/precommit.py +776 -0
  113. tools/refactor.py +645 -0
  114. tools/secaudit.py +685 -0
  115. tools/shared/__init__.py +19 -0
  116. tools/shared/base_models.py +167 -0
  117. tools/shared/base_tool.py +659 -0
  118. tools/shared/exceptions.py +20 -0
  119. tools/shared/schema_builders.py +159 -0
  120. tools/simple/__init__.py +18 -0
  121. tools/simple/base.py +539 -0
  122. tools/testgen.py +513 -0
  123. tools/thinkdeep.py +586 -0
  124. tools/tracer.py +763 -0
  125. tools/version.py +53 -0
  126. tools/workflow/__init__.py +22 -0
  127. tools/workflow/base.py +448 -0
  128. tools/workflow/schema_builders.py +166 -0
  129. tools/workflow/workflow_mixin.py +1195 -0
  130. utils/__init__.py +21 -0
  131. utils/call_state.py +349 -0
  132. utils/client_info.py +293 -0
  133. utils/consensus_manifest.py +131 -0
  134. utils/conversation_memory.py +582 -0
  135. utils/env.py +111 -0
  136. utils/file_types.py +271 -0
  137. utils/file_utils.py +803 -0
  138. utils/image_utils.py +94 -0
  139. utils/security_config.py +163 -0
  140. utils/storage_backend.py +177 -0
  141. utils/token_utils.py +54 -0
@@ -0,0 +1,225 @@
1
+ Metadata-Version: 2.4
2
+ Name: clink-cli
3
+ Version: 0.2.1
4
+ Summary: CLI consultation and native agent task delegation over the Model Context Protocol
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/acebytes/clink-mcp-server
7
+ Project-URL: Repository, https://github.com/acebytes/clink-mcp-server
8
+ Project-URL: Issues, https://github.com/acebytes/clink-mcp-server/issues
9
+ Requires-Python: >=3.10
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ License-File: clink/resources/CODEX-LICENSE
13
+ License-File: clink/resources/CODEX-NOTICE
14
+ Requires-Dist: mcp<2,>=1.0.0
15
+ Requires-Dist: pydantic>=2.0.0
16
+ Requires-Dist: python-dotenv>=1.0.0
17
+ Dynamic: license-file
18
+
19
+ # clink-mcp-server
20
+
21
+ Delegate work to installed CLI agents through MCP. Consultations return advice and proposed code. Explicit native tasks can edit files, run tests, and use the selected CLI's configured tools, hooks, skills, plugins, MCP integrations, and subagents under its native permissions.
22
+
23
+ Version **0.2.1** preserves PAL's **18 MCP tools** and adds a separate `clink generate` command for bounded programmatic text generation. The Python distribution is named `clink-cli` and installs both `clink` and `clink-mcp-server`.
24
+
25
+ Derived from [PAL MCP Server](https://github.com/BeehiveInnovations/pal-mcp-server), formerly Zen MCP. **Copyright 2025 Beehive Innovations.** Retains upstream attribution and the [Apache 2.0 license](LICENSE).
26
+
27
+ ## Supported operations
28
+
29
+ Admission is specific to an operation, executable, launch recipe, and parser. Support in one column does not enable another.
30
+
31
+ | CLI | Consultation | Native MCP tasks | Programmatic generation |
32
+ | --- | --- | --- | --- |
33
+ | Codex 0.166.0 | Admitted for text, explicit local images, and structured search. | Disabled: supported output omits a genuine prelaunch permission refusal. | Admitted; schema 2 or 3 with an explicit model. |
34
+ | Claude Code 2.1.304 | Unavailable under the advisory policy. | Admitted. | Admitted; schema 2 or 3 with an explicit full model ID. |
35
+ | xAI Grok Build 1.0.70 (`grok`) | Unverified. | Admitted. | Admitted; schema 3 with `native_default` selection. |
36
+ | Antigravity 1.4.12 (`agy`) | Unverified. | Admitted. | Implemented but unverified; execution is refused. |
37
+ | Gemini | Unverified. | Not implemented. | Not implemented. |
38
+
39
+ The recorded admissions cover exact macOS arm64 binaries. Other builds, operating systems, versions, or changed recipes require verification and fail closed. An installed executable or successful login alone is insufficient. Grok reported `grok-4.7-build` in the recorded successful generation text/action checks. Antigravity's native-task actual model remains unknown; its native-task admission does not admit generation. See [release evidence and limits](docs/release-evidence.md).
40
+
41
+ Python 3.10+ is required; Python 3.12 is the tested runtime. Process supervision targets POSIX systems. Local discovery and offline tests can run without CLI credentials. Native Windows delegation is unavailable; the [container](docker/README.md) supports local tools without installing CLI agents.
42
+
43
+ ## Install and connect
44
+
45
+ To install the PyPI release into an isolated tool environment, use:
46
+
47
+ ```sh
48
+ uv tool install clink-cli
49
+ clink generation-capabilities --json
50
+ clink-mcp-server --help
51
+ ```
52
+
53
+ If you installed the v0.2.0 GitHub wheel with uv, run `uv tool uninstall clink-mcp-server` first so both executable names are available to the new distribution.
54
+
55
+ For a standalone wheel installation, replace the wheel path and choose a persistent environment outside the source tree:
56
+
57
+ ```sh
58
+ python3 -m venv /absolute/path/to/clink-runtime
59
+ /absolute/path/to/clink-runtime/bin/python -m pip install /absolute/path/to/clink_cli-0.2.1-py3-none-any.whl
60
+ /absolute/path/to/clink-runtime/bin/python -m clink.setup --project /absolute/path/to/your-project
61
+ ```
62
+
63
+ The installed package contains its manifests, prompts, and admission resources. It does not need the original checkout at runtime. To register its console entrypoint directly in an MCP client, use:
64
+
65
+ ```json
66
+ {
67
+ "mcpServers": {
68
+ "clink": {
69
+ "command": "/absolute/path/to/clink-runtime/bin/clink-mcp-server",
70
+ "args": ["--project", "/absolute/path/to/your-project"]
71
+ }
72
+ }
73
+ }
74
+ ```
75
+
76
+ Alternatively, from the reviewed 0.2.1 source tree:
77
+
78
+ ```sh
79
+ cd /absolute/path/to/clink-mcp-server
80
+ ./run-server.sh --setup
81
+ ```
82
+
83
+ This explicitly creates `.venv`, installs runtime requirements, and exits. Ordinary startup installs nothing. The launcher does not create `.env`, copy credentials, change native CLI configuration, or register MCP clients. Optional server settings are documented in [.env.example](.env.example). To build a wheel from this tree, install the development requirements and run `.venv/bin/python -m build`; the wheel is written under `dist/`.
84
+
85
+ Configure an existing project from that source installation:
86
+
87
+ ```sh
88
+ .venv/bin/python -m clink.setup --project /absolute/path/to/your-project
89
+ ```
90
+
91
+ Setup creates project-local `.clink/cli_clients/` manifests, `.clink/prompts/`, and `.mcp.json`. It makes no model calls and preserves custom files by reporting conflicts. The generated MCP registration binds a server explicitly to that project. Reconnect your MCP client, then call `version` and `listmodels` with empty arguments. These calls need no native CLI login.
92
+
93
+ Claude Code users can load the checkout-local setup plugin:
94
+
95
+ ```sh
96
+ cd /absolute/path/to/your-project
97
+ claude --plugin-dir /absolute/path/to/clink-mcp-server/integrations/claude
98
+ ```
99
+
100
+ Then run `/clink:setup`. This command is available only when that local plugin is loaded; MCP registration alone does not install it. See the [project setup guide](docs/project-setup.md) for selected clients, configuration precedence, conflicts, and recovery.
101
+
102
+ For another MCP client, adapt this stdio registration to its configuration format:
103
+
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "clink": {
108
+ "command": "/absolute/path/to/clink-mcp-server/run-server.sh",
109
+ "args": ["--project", "/absolute/path/to/your-project"]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ Authenticate the chosen CLI through its own login mechanism before an admitted model call. Ensure the MCP client's `PATH` can find it, or configure its executable path in a manifest. The server does not require hosted-provider API keys. See [getting started](docs/getting-started.md), [CLI configuration](docs/cli-configuration.md), and [migration from PAL](docs/migration.md).
116
+
117
+ ## Consult or delegate
118
+
119
+ Omitting `action` selects consultation with `codex` and the `default` role. The following is a `clink` MCP tool argument, not a shell command:
120
+
121
+ ```json
122
+ {"prompt":"Review this proposed change and return suggested improvements.","cli_name":"codex"}
123
+ ```
124
+
125
+ For native work, select an admitted CLI and a project inside its configured roots:
126
+
127
+ ```json
128
+ {
129
+ "action": "start",
130
+ "cli_name": "claude",
131
+ "project_dir": "/absolute/path/to/your-project",
132
+ "prompt": "Fix the failing test, run the relevant checks, and report changed files and unfinished work.",
133
+ "request_key": "fix-test-1",
134
+ "timeout_seconds": 180
135
+ }
136
+ ```
137
+
138
+ Save the returned `task_handle`. Poll, follow up when `followup_available` is true, or cancel:
139
+
140
+ ```json
141
+ {"action":"status","task_handle":"<returned task_handle>"}
142
+ ```
143
+
144
+ ```json
145
+ {"action":"followup","task_handle":"<returned task_handle>","prompt":"Check one edge case and report the result.","request_key":"fix-test-followup-1"}
146
+ ```
147
+
148
+ ```json
149
+ {"action":"cancel","task_handle":"<returned task_handle>"}
150
+ ```
151
+
152
+ A follow-up resumes the private native session with a new attempt; native handles are separate from consultation `continuation_id` values. Identical submissions with the same request key are deduplicated while retained. Changed input with that key returns `request_key_conflict`. Handles, session mapping, and deduplication are volatile and are lost on restart. See [native task usage](docs/native-cli-tasks.md) for states, bounds, and ownership rules.
153
+
154
+ ## Programmatic generation
155
+
156
+ The examples below use the source installation's `.venv/bin`. For a standalone wheel, use `/absolute/path/to/clink-runtime/bin` instead. Install the checkout's console commands locally if needed:
157
+
158
+ ```sh
159
+ .venv/bin/python -m pip install -e .
160
+ .venv/bin/clink generation-capabilities --json
161
+ ```
162
+
163
+ Capabilities discovery is read-only: it does not launch a CLI, authenticate, or grant execution authority. It reports schemas 2 and 3 with operation-specific admission. Optional `--cli NAME --executable /absolute/path/to/executable` checks one local executable's identity without running it. Launch admission is checked again before execution.
164
+
165
+ Approve an existing project folder independently of MCP project setup:
166
+
167
+ ```sh
168
+ .venv/bin/clink allow /absolute/path/to/your-project --cli grok
169
+ ```
170
+
171
+ The command shows the resolved path and asks a default-No question; `--yes` explicitly preapproves it for scripts. It saves an `allowed_roots` entry in operator configuration and preserves existing settings. This does not grant native CLI trust or permissions. Generation does not discover project manifests from request paths.
172
+
173
+ Schema 3 example `request.json`, using an existing canonical project path:
174
+
175
+ ```json
176
+ {
177
+ "schema_version": 3,
178
+ "request_id": "66f96fc9-969d-4c0e-ab92-e355fa0e7588",
179
+ "execution_mode": "native",
180
+ "project_dir": "/absolute/path/to/your-project",
181
+ "cli": "grok",
182
+ "model_selection": {"kind": "native_default"},
183
+ "instructions": "Rewrite the supplied text for clarity. Return only the revision.",
184
+ "input": "Explain the tradeoffs of a cache for this application.",
185
+ "timeout_seconds": 120
186
+ }
187
+ ```
188
+
189
+ ```sh
190
+ .venv/bin/clink generate --request-json - < request.json
191
+ ```
192
+
193
+ Generation reads one JSON request followed by EOF and writes one terminal JSON result. Schema 3 uses `model_selection`: Codex and Claude require `{"kind":"explicit","id":"<native model ID>"}`; Grok and Antigravity accept only `{"kind":"native_default"}`. Antigravity still refuses execution because its generation admission is unverified. Schema 2 preserves Codex/Claude's explicit `model` field. The older no-tools schema 1 profile remains refused.
194
+
195
+ Each accepted request makes at most one top-level CLI invocation, with no wrapper retry, resume, or fallback. Only `status: "completed"` with exit `0` is ordinary success; validate the result's request identity and hashes before using its text. Completion validates final-response transport, not fulfillment. Requested/effective model selection is distinct from CLI-reported actual identity, which remains `null` when unreported. See [generation setup](docs/generation-native-setup.md), [schema 2 protocol](docs/generation-native-protocol.md), and [schema 3 and family discovery](docs/generation-native-families.md).
196
+
197
+ ## Tools and configuration
198
+
199
+ All 18 tools are enabled unless listed in `DISABLED_TOOLS`; `version` and `listmodels` remain available.
200
+
201
+ | Tools | Purpose |
202
+ | --- | --- |
203
+ | `chat`, `clink` | Advisory consultations; `clink` also provides explicit native tasks. |
204
+ | `thinkdeep`, `codereview`, `precommit`, `debug`, `secaudit`, `analyze`, `refactor`, `testgen` | Caller-driven investigation with final expert-call conditions. |
205
+ | `consensus` | Independent consultations for caller synthesis, sequential by default with explicit parallel mode. |
206
+ | `apilookup` | Verified native search with structured sources. |
207
+ | `planner`, `docgen`, `tracer`, `challenge` | Local workflow guidance. |
208
+ | `listmodels`, `version` | Local configuration discovery and provenance. |
209
+
210
+ Manifest precedence is bundled defaults → legacy `~/.pal/cli_clients/` → user `~/.clink/cli_clients/` → explicitly bound project `.clink/cli_clients/` → `CLI_CLIENTS_CONFIG_PATH`. Each later manifest replaces the entire named client. Consultation and native task model defaults are separate; generation has its own request and admission contracts. See [CLI configuration](docs/cli-configuration.md).
211
+
212
+ **Risk & Mitigation:** Native execution can change files or external systems before failure or cancellation. Approved roots constrain project selection and supplied context, not all native authority. Cancellation does not roll back effects or guarantee detached/remote work stopped. Inspect actual changes and independently run checks before accepting work. Clink preserves native permission controls and provides no approval bypass or relay. See [security policy](SECURITY.md).
213
+
214
+ ## Development
215
+
216
+ ```sh
217
+ .venv/bin/python -m pip install -r requirements-dev.txt
218
+ .venv/bin/python -m pytest tests/ -v -m "not integration and not real_cli and not private_evidence"
219
+ .venv/bin/python -m ruff check .
220
+ .venv/bin/python -m black --check .
221
+ .venv/bin/python -m isort --check-only .
222
+ .venv/bin/python -m build
223
+ ```
224
+
225
+ Ordinary verification uses synthetic executables and makes no live model calls. Historical live verification requires the private evidence and approval process; the public verification scripts do not submit model requests. See [release evidence](docs/release-evidence.md) and [changelog](CHANGELOG.md). Report bugs in this fork's [issue tracker](https://github.com/acebytes/clink-mcp-server/issues), excluding secrets and private transcripts.
@@ -0,0 +1,141 @@
1
+ config.py,sha256=CNidNu8UhXC0uODeKBQI_7Z8jgYrNoZKJWjwbdZacWY,1465
2
+ server.py,sha256=KYepN_JiRK1k12mMbqXNrbFVAUkDSRJtiXQ34Ry-yZo,35739
3
+ clink/__init__.py,sha256=Frin-e0XyS5aGNHD9N_kOfRZNCwcdFwrGtKNaiGIFxM,596
4
+ clink/allowed_roots.py,sha256=VrIfd7inZZxHU1tJH0_ZHDlb7GgsEmtlH3HdKTlgcL4,15325
5
+ clink/backend.py,sha256=LxS27hDB1x7SH95dBTb7mRr7R36Aq3Xjyv2L3vztsZA,36898
6
+ clink/cli.py,sha256=gPl6d_fNXgHird_g53wwGOOZHdkr3s-ZnZq2BNmDUw0,24664
7
+ clink/constants.py,sha256=KzTaRpJjscjbRsN5C3K8OsoAzGweIQExY-PH2pEuC8E,2280
8
+ clink/contracts.py,sha256=WbHaYnH_n07mh57PkaxxI-Jbq_bL94pngHdO0G8VYds,6027
9
+ clink/files.py,sha256=ArHz-GvAkm8U2mc_smaaBrjSjqKPnjI4vHlEgZ7C0Z0,3031
10
+ clink/generation.py,sha256=d1p-zlqBB9Ru0yRx1FxCr7aeTvI8HZ5OlR9LLavPgjs,13189
11
+ clink/generation_capabilities.py,sha256=Bk3k4dtZQYoOiHmu10LSxG8Rhz03UFFXLfVgqHbdsEQ,8785
12
+ clink/generation_contracts.py,sha256=IOO2AzhfXerLYkDOfmqilFtvA01SuK5zoya6WMi8hP0,7698
13
+ clink/generation_policy.py,sha256=LfV2-RXH_KJv9zWW4t6BdNEePVglh9d3bbesixOOBw4,6185
14
+ clink/models.py,sha256=YMu_mbJEBUek_YHqVslh_rCDQ_ILlvMAmbsJXd1yLjo,8695
15
+ clink/native.py,sha256=M-dyuVacycZkQV5cFQEfyaTIXqDrOyBl4bT_1zGCiWE,20612
16
+ clink/native_adapters.py,sha256=ej2vMjaeBJKmnTBzM0QejCfpNv_QsVYyL8XnKUqNJR8,9987
17
+ clink/native_contracts.py,sha256=S2K-4RZ-QCZSbzS0iQs67oGUhkQDFnlpHEU1mQ7pdFw,1896
18
+ clink/native_generation.py,sha256=bazJGnqiGiAr_8DSYNjrINdjILOa14A2FNu1thk77tc,20918
19
+ clink/native_generation_claude_policy.py,sha256=J-4gzb_6mgIWZzhPrDGzxfoZ5ldCdnnyuDv9xhKk1Jw,3076
20
+ clink/native_generation_contracts.py,sha256=qBmIRxjFaRvSMOkjSvNIxIf2WSL6SIyRXO2cq1qxq_o,9885
21
+ clink/native_generation_families.py,sha256=WhMyzJW66khGYLICJGDmKt6VkOBw_cJAAN0VkwgOTlg,9721
22
+ clink/native_generation_family_policy.py,sha256=U7pQ9kXT_R4UmV0N9u1ZP70NbHk-759Lk4yFr_FGNwI,772
23
+ clink/native_generation_files.py,sha256=mJo3SE0DcTNdPJTaebOOP701ux_bOPaASatnZT3ibIA,6674
24
+ clink/native_generation_policy.py,sha256=6_IjM8m7hM01P_Ng2Mw1fWImhvOA4XTvZpBb4_BoeDM,3673
25
+ clink/native_policy.py,sha256=7ClfZFDVPRNi3YelHLVVGULyaGi0i16IolLIzv5CNMQ,3543
26
+ clink/policy.py,sha256=6_JFlr186Y4joqvH0YIRlhF7UNid2JN84qebqr_-w1o,5381
27
+ clink/registry.py,sha256=mJYHXgprEK0PW2Rrz9wDnK80YpPeAc1MsuNNr-wHGOE,25908
28
+ clink/runner.py,sha256=f-Z2mPV-wVOa03UfJd0DABZjYdXQuRWZRoNpN_dqdjI,12274
29
+ clink/setup.py,sha256=Kc2-CkRr7_-POwnLLVmRQNCXwSLYwxNr1yz5cmqttVQ,17706
30
+ clink/tasks.py,sha256=5jNaVi7UpeDwAqfFptTcMCrrhJzNfi-wCFPvAzyXFOk,32111
31
+ clink/agents/__init__.py,sha256=bQRikoUsfOCXpHWeqOpYNYrgVSk8OlE8OfFrs27bVic,703
32
+ clink/agents/base.py,sha256=OjRze69ura1vBbrg6uSMbfpvUghDZKKzmVVR7imm_A8,2112
33
+ clink/agents/claude.py,sha256=TAsGoAxsscUA_wPO6Ktgo_I06LO5tS7wXQpG2Knto1k,224
34
+ clink/agents/codex.py,sha256=pBtS_YWSthZqWQttpaBeGvoFHVVQvJhzjpQ3JIr72Qk,217
35
+ clink/agents/gemini.py,sha256=K6A9JNRjm2H8ppYj-dnwfrY_qt4-5237glxs7lKaZ_w,205
36
+ clink/parsers/__init__.py,sha256=gn2tI9il9hmgfGNBWAmcqxrI-4sUd_qZz5lDvI5XRs0,960
37
+ clink/parsers/agy.py,sha256=NeGnW3ZbZoy29CBYOYhTTDKFJ4q8E2-SeIO4sq_1jTw,2381
38
+ clink/parsers/agy_native.py,sha256=UwkOWR1RjximWpxN-_Odl16QcvZcmh5of1bPTgSJlg4,8320
39
+ clink/parsers/agy_native_generation.py,sha256=coSNAyp0QjuAJIEAisF35J_i81OX1nsoXp-pSvSiRG8,7572
40
+ clink/parsers/base.py,sha256=jKG3kxme5OIbHivT4pl7wH4YrMsluO7LQL0k8su5Bdk,7319
41
+ clink/parsers/claude.py,sha256=1Tb9AxXDBqSJrlQ1fkKs0yAMIXwT5UMGam-QAvac1-I,4582
42
+ clink/parsers/claude_native.py,sha256=YhJINZzO03glJdA3FrT2TFVUe228Murt2haK3x5crgY,5775
43
+ clink/parsers/claude_native_generation.py,sha256=CYQlf_wIELLOZ0ddVP0nhCfoom2xnO_ISxq2qCJqBtQ,15196
44
+ clink/parsers/codex.py,sha256=mUpGaYxRoS1EOoauN0pPqzfYrNzThLEwCYREMTkB2ak,8042
45
+ clink/parsers/codex_generation.py,sha256=TAhHimhDDtlDNPxc5Typj_uFVW8QL-n_1QhXaWJd0zQ,10586
46
+ clink/parsers/codex_native.py,sha256=tVLzsIc1H5zcobU7FjX29vNPPl9Be-F0w6oFfKAGt3s,11294
47
+ clink/parsers/codex_native_generation.py,sha256=_yt6E2B0KaIDB6lcdcsWxseWc-10Tz_IYpKAxs4WoWs,16586
48
+ clink/parsers/gemini.py,sha256=iNDsMn6_cW7ITOlIi6zEbJY24n_lAMo2LwwRjMOQrME,4904
49
+ clink/parsers/grok.py,sha256=Cbtp7w1jH_Qjp_gc7ySooKyRz8sGWwHvo2ZQRAHRMow,2662
50
+ clink/parsers/grok_native.py,sha256=lA8FQEOJ8nt57akX_oMazmssZLwIX68YcvknrrXIZE0,4486
51
+ clink/parsers/grok_native_generation.py,sha256=yDwQfm9sN-NBsrNzc8A32NdVLudk2iPKqFR5fvfD-7A,6356
52
+ clink/resources/CODEX-LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
53
+ clink/resources/CODEX-NOTICE,sha256=nXFXXs_ZqEP8Fnew77CAU8a6n9aGoN4ab1OC_TwiCRU,242
54
+ clink/resources/PROVENANCE.md,sha256=-6J4LBLmX7AoT_UlwUtG05MrSITEwukFI65GMMHvXDc,2598
55
+ clink/resources/codex-0.166.0-models-direct.json,sha256=adPmjQ54poTFaxgY8TURSZAvxhw5jktp03Hf3qCOThI,757141
56
+ clink/resources/codex-0.166.0-models-generation.json,sha256=HsV4tgpdF8oYSckif5K-23LkkWMzq2Kj5-nb_wlKWbk,756743
57
+ clink/resources/native-agy-1.4.12-admission.json,sha256=fIRUJMONV8O1An6y-RsVm_ANYz8_-o3ncvafLEnDY4E,31560
58
+ clink/resources/native-claude-2.1.304-admission.json,sha256=7TzZvzhaxTO48kwGzBSkMcDbrAEA8esj8klT6rbKTeI,5707
59
+ clink/resources/native-generation-claude-2.1.304-admission.json,sha256=c8Oy0eA_G8yhzPePj9MOKlam9PLtFqdjLUHzftqb5rY,10843
60
+ clink/resources/native-generation-codex-0.166.0-admission.json,sha256=8l3w_vB1rUdulm5zHWoLlmHb1F1zwl5Ec-23tAzsJqE,13044
61
+ clink/resources/native-generation-grok-1.0.70-admission.json,sha256=t-w1IVzgQrpLEo5OwAOnGjPnHYvYJVReP86Fo2X0nfU,13327
62
+ clink/resources/native-grok-1.0.70-admission.json,sha256=gJ9JI4VE1_oxcRDEA5Uro_p5G5YnBm-lHSVq0W_EbsE,30855
63
+ clink_cli-0.2.1.dist-info/licenses/LICENSE,sha256=BsUwK2aOgzni_sK8Td0qC2y8M1XaTNKsJK_urwiyvQw,11052
64
+ clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
65
+ clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-NOTICE,sha256=nXFXXs_ZqEP8Fnew77CAU8a6n9aGoN4ab1OC_TwiCRU,242
66
+ conf/__init__.py,sha256=hvrSvokyyKxXKhe43HqRu7o-1BZ0sJPqUWN-jriLdTc,45
67
+ conf/cli_clients/agy.json,sha256=JAmgOApaPsokLtuhD0HavWD65BvMoVuTAtVPpz-shFU,956
68
+ conf/cli_clients/claude.json,sha256=ZvtyG65U29V6qQuX_Le0cpfLv-caHlZTc_eoTIBqQxc,942
69
+ conf/cli_clients/codex.json,sha256=b3lo-xSui-Cyf4Slw9HffJCRAFcJ-6Wb2rWb5qG7W14,961
70
+ conf/cli_clients/gemini.json,sha256=oQcom1IWWEmvtsWgIKcnAABEwZkAKBBtv5tUY021v-w,522
71
+ conf/cli_clients/grok.json,sha256=0kYLGqY3M27DCV3EW7u46OA3IA4OgsoJNCVOMcUgEwE,959
72
+ systemprompts/__init__.py,sha256=qpyQDhCtiksMphMfsC7JkYVqiM2lNpT-0I00oK6zVb8,1008
73
+ systemprompts/analyze_prompt.py,sha256=UUlp4_cdXESXzh4Z2Tj84gl9vZtrAgK2toj2tnEWyAg,4854
74
+ systemprompts/chat_prompt.py,sha256=2qJN3btGq5-PoIoTn0oXRr0wFccdLC2bZkhqnZmemXo,3972
75
+ systemprompts/codereview_prompt.py,sha256=QBy8J4WIvJypo_9qNbKB2fZpASTVlrW0IW1Lw2AT6Sk,6875
76
+ systemprompts/consensus_prompt.py,sha256=4dTok8NnCgvyfLJTtLUGx3JbDATyS0kpKZ0Drn-X-hk,6091
77
+ systemprompts/debug_prompt.py,sha256=mDEkm7jhkS19tMMaPbuNpD0ELsjHgKt7C9bcqeriuIA,7673
78
+ systemprompts/docgen_prompt.py,sha256=N30pjq48h_JoPDkPN1tAAxPB_p8oCSZsE2vdQF0vyIc,16782
79
+ systemprompts/generate_code_prompt.py,sha256=0G17nZLjvOLF0E1A3ow61RLNIKMyKUezAPihUqF3dz8,7829
80
+ systemprompts/planner_prompt.py,sha256=SQakFB8QuER7LBM7S3oaw-VndCLAbsQllmPXKMwSXYw,6471
81
+ systemprompts/precommit_prompt.py,sha256=ho8Cu5_g3Gbyc6bFuzLekqLS23RR9xFgyLnqwswBBwM,9150
82
+ systemprompts/refactor_prompt.py,sha256=DjkaGHr9252WgMAGxqZjSlrtmQcDbn7jkbXe_D2m4-4,20093
83
+ systemprompts/secaudit_prompt.py,sha256=l71CAYbxVZJ-6GooRWJWwtHRrxkvuieL1jon5iWke7A,17473
84
+ systemprompts/testgen_prompt.py,sha256=wNUbErx5tKTUOEZ8tfCorJNy0-VYf-yPnpbER3nQW5o,8632
85
+ systemprompts/thinkdeep_prompt.py,sha256=RPoiGYd6746yo-Ftqw2qWUne6ghXoCP180wrBpT3I_M,3506
86
+ systemprompts/tracer_prompt.py,sha256=Bp-ZHon6FMz3JeWb4vGDy-rMNPDr_LJRW2WndZ6GJ3U,6851
87
+ systemprompts/clink/codex_codereviewer.txt,sha256=5TEmxTk1TPGtrFVZw-xK1oXsoJSfy98wluhFSfr7BWk,901
88
+ systemprompts/clink/default.txt,sha256=3VOTISuQN4xCh6gr4K2cwMw0aFHNNAZVAGGhTE4gOv0,877
89
+ systemprompts/clink/default_codereviewer.txt,sha256=5TEmxTk1TPGtrFVZw-xK1oXsoJSfy98wluhFSfr7BWk,901
90
+ systemprompts/clink/default_planner.txt,sha256=f_rNWWXMhbVsZYuFoHdHu1zMmsd3TgMXpr8IAVjO-Yo,793
91
+ systemprompts/clink/native_codereviewer.txt,sha256=AHhJIWzDweOSdBaDbsyVYaMvnmPoDxBEFOb5SK-1z5E,485
92
+ systemprompts/clink/native_default.txt,sha256=-AVAds1aaprBuOfOJUiIqSGUVMTN-_sRRHzhKbr020U,534
93
+ systemprompts/clink/native_planner.txt,sha256=G0mPU5SsHrQD243eJjCCMdvsLB1raXHWAFbvkiXOs4Y,469
94
+ tools/__init__.py,sha256=5YM1P0IG5wFzUkvVIjThZEiupUzpEecNm1NvLv42Of4,1031
95
+ tools/analyze.py,sha256=FNMbJkZZcej5OfrmmmJFd1NOMnfqUI5dkBg0fDLjs7M,28663
96
+ tools/apilookup.py,sha256=1FOqSNkbFFzYeDtzBx_txMs-VzO16wAjgBtE7oXQnBU,3648
97
+ tools/challenge.py,sha256=ZOQwt1S_p5luo3jUV42uvRYTdMtU4TVf1OWQttm1DFg,7428
98
+ tools/chat.py,sha256=BmjrZHzW3N-JyZdYfkW060QAGrYkAsqGHFSeWH-Jnv8,7344
99
+ tools/clink.py,sha256=jGrDGw2XJsgGrnsj4frHO24mAlNqTmGka20r2bCUkT0,5939
100
+ tools/codereview.py,sha256=NkIqF6qYBzWBm55zCKVQhvNema9NDTMOTc93VmofZQ0,37085
101
+ tools/consensus.py,sha256=1Vk4CIAX7vBhxKafH9H81KXCvmL_NpIw16l2RxqXYNc,37214
102
+ tools/debug.py,sha256=uKcRxfQQLxSlXAb_G8QTDqtCGWKI2eEfNKrdxTUVgW4,28171
103
+ tools/docgen.py,sha256=KqlHXGsJBq6PtgdN5j4hBiDIJz8WvNWYUDvIAtJJmlQ,31333
104
+ tools/listmodels.py,sha256=BT-JRDOiPKn2ZTJXnzTf8SzGU1ZPVGQv9L-ZcB50CnA,1632
105
+ tools/models.py,sha256=RuiV2bUCEOKDeTDRJPQCTwTKHS-L7dTZeBwDtuVh680,17677
106
+ tools/planner.py,sha256=h-8dE7Eb9hsjP5lL-q9zvQTXtcIBhRNktXg_KP0rfX0,27450
107
+ tools/precommit.py,sha256=Z3j-HmPau90e6g4LKN8nS2QcMHYQsiNDAApcSGsXhCI,39431
108
+ tools/refactor.py,sha256=X5q7knmGL7f6y9NaqSkzZd99K8P-zJtandY1J0SkeOs,32642
109
+ tools/secaudit.py,sha256=w12g85Oua26py1QZ89GpoYcR83Y3hxf_QI0OMOJE6uk,34684
110
+ tools/testgen.py,sha256=a6AfxW5G7GCvgLGOSHvto3o-ORahoenpQRbaehuNuyA,26060
111
+ tools/thinkdeep.py,sha256=SqTCOtLVNZLoDrluj-j34N8Xz5AJgUIbBsOyha66SJU,24594
112
+ tools/tracer.py,sha256=-p52KI6NTgqLDkyO5l0_JBg9Ojt4y1zDFw-diz6aC-w,36131
113
+ tools/version.py,sha256=dTdeBZXkgCqaanC-7Zbo_yc74yiXCXaVZpJmfDmB_kA,1845
114
+ tools/shared/__init__.py,sha256=5Gs_TPAtGQQzbfF42pc2eH0AjozNSZE2YGjl-k6_3IY,522
115
+ tools/shared/base_models.py,sha256=vpwIjSr-91xtOMZ5X1N-hlbT5GQmS7SYYvGqrKyg1Rc,8400
116
+ tools/shared/base_tool.py,sha256=KLGFM4lhOcrPkjbNyqHVMn5tlJEL6BF1Jbf3LMzJdwc,26914
117
+ tools/shared/exceptions.py,sha256=OWvOevq7BXJlz-lpjm9ya0jtE7iKMPiOtBB1qqw3xmk,721
118
+ tools/shared/schema_builders.py,sha256=HUhDteJ8n_9gKIETEsQlf0sNzQ5YG893Fvp_3uvIZhM,5169
119
+ tools/simple/__init__.py,sha256=4W2CTvDKQQa-DkkD7YzBPJwJYA1j_YVPTUjzI2Cjx4o,492
120
+ tools/simple/base.py,sha256=bBx6nslUUeGKShHkILcPnmWLSijX8tjDwPgIAgPksA0,21277
121
+ tools/workflow/__init__.py,sha256=8aB58jS5nYo9gQH9MT1ts9jQOfvGVCoF3HwtiBVtcxM,781
122
+ tools/workflow/base.py,sha256=ofUG6xLHvEEASVj6BJZ_tIxvYRa50Jce0Xt19e727JM,18422
123
+ tools/workflow/schema_builders.py,sha256=rXBAVLsP_vwz1_WIeH6STJkvv-tpz4RHN9b7aFLIWI0,6114
124
+ tools/workflow/workflow_mixin.py,sha256=9KRdRsVSvIp_lYdUnfqWq5RBvyrddptKtPl_dZyJxk4,52818
125
+ utils/__init__.py,sha256=VBiq0W-v7PiL79CICGeYzRiWK5-YEJbT_SsxlULKdbo,561
126
+ utils/call_state.py,sha256=px5EYIo2onUThjz3e9iJTMnaOMCrMJqJFvUHWfWwlAs,15880
127
+ utils/client_info.py,sha256=I86RmadIe4DNA_qpaCypPVUuu3U1-YvlnfwYrAFa-MU,9013
128
+ utils/consensus_manifest.py,sha256=qurePZ401VIaPGdjD1pPkxmJhSCmZa9iW4Gf-pHsGms,5565
129
+ utils/conversation_memory.py,sha256=SUJsO3bg_HJA81Ln-Xx9jIEYbYOuJ17ltgrQ0LAu7JM,22307
130
+ utils/env.py,sha256=pgFiGWZT_qdl7ONCkEet2CvJGru_ew_U_i-xPoFPjvQ,3278
131
+ utils/file_types.py,sha256=hUNT_d2SVDlIrcO2tg30zqaZgYOI7ecbzvO5Zz3tI4w,7716
132
+ utils/file_utils.py,sha256=QCvP5EtunfXfcxNAfgvp2ap7vM1nMaDE-gqChYp5LTw,29572
133
+ utils/image_utils.py,sha256=AYfzOEVyF_dRfcE3hCi-LXj6p6MyAa3TIyibpT_gtz4,3176
134
+ utils/security_config.py,sha256=tQ2Ib63xQwnCXCFjIXeP2xWCjj63sekYxP6i7RsAHjM,4577
135
+ utils/storage_backend.py,sha256=4pWXPNC5einykz7dZFOGrlQFv0V7ADDztyhlYulMLaY,7346
136
+ utils/token_utils.py,sha256=BIzYii04FtJEnUkYIL8jKhK728kKQiZyrvhlRi2BSEw,1884
137
+ clink_cli-0.2.1.dist-info/METADATA,sha256=xQMTuqAOXEb2GBAjub-1qs7W9o-JFAY9nKMTiK3r-TE,13080
138
+ clink_cli-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
139
+ clink_cli-0.2.1.dist-info/entry_points.txt,sha256=bNGdW-GUZTYTwDYg6wUYdj_MziKJo9iA9g1A_6U1ykE,71
140
+ clink_cli-0.2.1.dist-info/top_level.txt,sha256=V_AQ9PQYwN9E7JaVIx_lBQjUogFdmsCpdcLBBhdYJmo,51
141
+ clink_cli-0.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ clink = clink.cli:main
3
+ clink-mcp-server = server:run
@@ -0,0 +1,197 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity granting the License.
13
+
14
+ "Legal Entity" shall mean the union of the acting entity and all
15
+ other entities that control, are controlled by, or are under common
16
+ control with that entity. For the purposes of this definition,
17
+ "control" means (i) the power, direct or indirect, to cause the
18
+ direction or management of such entity, whether by contract or
19
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity
23
+ exercising permissions granted by this License.
24
+
25
+ "Source" shall mean the preferred form for making modifications,
26
+ including but not limited to software source code, documentation
27
+ source, and configuration files.
28
+
29
+ "Object" shall mean any form resulting from mechanical
30
+ transformation or translation of a Source form, including but
31
+ not limited to compiled object code, generated documentation,
32
+ and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship covered by this License,
35
+ whether in source or binary form, which is made available under the
36
+ License, as indicated by a copyright notice that is included in or
37
+ attached to the work. (The copyright notice requirement does not
38
+ apply to derivative works of the License holder.)
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based upon (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and derivative works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control
57
+ systems, and issue tracking systems that are managed by, or on behalf
58
+ of, the Licensor for the purpose of discussing and improving the Work,
59
+ but excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to use, reproduce, modify, distribute, and otherwise
70
+ transfer the Work as part of a Derivative Work.
71
+
72
+ 3. Grant of Patent License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ (except as stated in this section) patent license to make, have made,
76
+ use, offer to sell, sell, import, and otherwise transfer the Work,
77
+ where such license applies only to those patent claims licensable
78
+ by such Contributor that are necessarily infringed by their
79
+ Contribution(s) alone or by combination of their Contribution(s)
80
+ with the Work to which such Contribution(s) was submitted. If You
81
+ institute patent litigation against any entity (including a
82
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
83
+ or a Contribution incorporated within the Work constitutes direct
84
+ or contributory patent infringement, then any patent licenses
85
+ granted to You under this License for that Work shall terminate
86
+ as of the date such litigation is filed.
87
+
88
+ 4. Redistribution. You may reproduce and distribute copies of the
89
+ Work or Derivative Works thereof in any medium, with or without
90
+ modifications, and in Source or Object form, provided that You
91
+ meet the following conditions:
92
+
93
+ (a) You must give any other recipients of the Work or
94
+ Derivative Works a copy of this License; and
95
+
96
+ (b) You must cause any modified files to carry prominent notices
97
+ stating that You changed the files; and
98
+
99
+ (c) You must retain, in the Source form of any Derivative Works
100
+ that You distribute, all copyright, patent, trademark, and
101
+ attribution notices from the Source form of the Work,
102
+ excluding those notices that do not pertain to any part of
103
+ the Derivative Works; and
104
+
105
+ (d) If the Work includes a "NOTICE" file as part of its
106
+ distribution, then any Derivative Works that You distribute must
107
+ include a readable copy of the attribution notices contained
108
+ within such NOTICE file, excluding those notices that do not
109
+ pertain to any part of the Derivative Works, in at least one
110
+ of the following places: within a NOTICE file distributed
111
+ as part of the Derivative Works; within the Source form or
112
+ documentation, if provided along with the Derivative Works; or,
113
+ within a display generated by the Derivative Works, if and
114
+ wherever such third-party notices normally appear. The contents
115
+ of the NOTICE file are for informational purposes only and
116
+ do not modify the License. You may add Your own attribution
117
+ notices within Derivative Works that You distribute, alongside
118
+ or as an addendum to the NOTICE text from the Work, provided
119
+ that such additional attribution notices cannot be construed
120
+ as modifying the License.
121
+
122
+ You may add Your own copyright notice to Your modifications and
123
+ may provide additional or different license terms and conditions
124
+ for use, reproduction, or distribution of Your modifications, or
125
+ for any such Derivative Works as a whole, provided Your use,
126
+ reproduction, and distribution of the Work otherwise complies with
127
+ the conditions stated in this License.
128
+
129
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
130
+ any Contribution intentionally submitted for inclusion in the Work
131
+ by You to the Licensor shall be under the terms and conditions of
132
+ this License, without any additional terms or conditions.
133
+ Notwithstanding the above, nothing herein shall supersede or modify
134
+ the terms of any separate license agreement you may have executed
135
+ with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks. This License does not grant permission to use the trade
138
+ names, trademarks, service marks, or product names of the Licensor,
139
+ except as required for reasonable and customary use in describing the
140
+ origin of the Work and reproducing the content of the NOTICE file.
141
+
142
+ 7. Disclaimer of Warranty. Unless required by applicable law or
143
+ agreed to in writing, Licensor provides the Work (and each
144
+ Contributor provides its Contributions) on an "AS IS" BASIS,
145
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
146
+ implied, including, without limitation, any warranties or conditions
147
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
148
+ PARTICULAR PURPOSE. You are solely responsible for determining the
149
+ appropriateness of using or redistributing the Work and assume any
150
+ risks associated with Your exercise of permissions under this License.
151
+
152
+ 8. Limitation of Liability. In no event and under no legal theory,
153
+ whether in tort (including negligence), contract, or otherwise,
154
+ unless required by applicable law (such as deliberate and grossly
155
+ negligent acts) or agreed to in writing, shall any Contributor be
156
+ liable to You for damages, including any direct, indirect, special,
157
+ incidental, or consequential damages of any character arising as a
158
+ result of this License or out of the use or inability to use the
159
+ Work (including but not limited to damages for loss of goodwill,
160
+ work stoppage, computer failure or malfunction, or any and all
161
+ other commercial damages or losses), even if such Contributor
162
+ has been advised of the possibility of such damages.
163
+
164
+ 9. Accepting Warranty or Support. You may choose to offer, and to
165
+ charge a fee for, warranty, support, indemnity or other liability
166
+ obligations and/or rights consistent with this License. However,
167
+ in accepting such obligations, You may act only on Your own behalf
168
+ and on Your sole responsibility, not on behalf of any other
169
+ Contributor, and only if You agree to indemnify, defend, and hold
170
+ each Contributor harmless for any liability incurred by, or claims
171
+ asserted against, such Contributor by reason of your accepting any
172
+ such warranty or support.
173
+
174
+ END OF TERMS AND CONDITIONS
175
+
176
+ APPENDIX: How to apply the Apache License to your work.
177
+
178
+ To apply the Apache License to your work, attach the following
179
+ boilerplate notice, with the fields enclosed by brackets "[]"
180
+ replaced with your own identifying information. (Don't include
181
+ the brackets!) The text should be enclosed in comments for the
182
+ particular file format. An identification line is also useful.
183
+
184
+ Copyright 2025 Beehive Innovations
185
+ https://github.com/BeehiveInnovations
186
+
187
+ Licensed under the Apache License, Version 2.0 (the "License");
188
+ you may not use this file except in compliance with the License.
189
+ You may obtain a copy of the License at
190
+
191
+ http://www.apache.org/licenses/LICENSE-2.0
192
+
193
+ Unless required by applicable law or agreed to in writing, software
194
+ distributed under the License is distributed on an "AS IS" BASIS,
195
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
196
+ See the License for the specific language governing permissions and
197
+ limitations under the License.