Modern Apps git

← xtool.git

meta: update readme and agents.md (#412)

Commit
03fb48c30b7498df16a02bbb0c0d41a0c32775d4
Author
Kabir Oberai <[email protected]>
When
2026-10-30 06:33 UTC (1 month ago)
Parents
0c63e69
## What does this PR do?

Updates readme & agents guidance

## How was it tested?

i read it back with mine own eyes

## AI tool usage

How much of this PR was AI-assisted? (check one)

- [x] **0** - No AI was used to write code
- [ ] **1** - I was assisted by AI. I reviewed the finished result.
- [ ] **2** - I set the AI going and left it to it; nobody has read the
result - no review, or AI review only

<!-- If an AI agent is filling this in: declare the level honestly, and
open as a draft if it is #2. Do not lower the declared level to get the
PR reviewed. -->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Clarified how to consume xtool as a Swift Package and that CLI
stability guarantees do not apply to Swift interfaces.
* Updated Swift development conventions with dependency-injection
examples, concurrency guidance, and commit-message formatting.
* **Chores**
* Updated the pull request template to ask how much code was AI-assisted
and note that the completed work was reviewed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff

.github/PULL_REQUEST_TEMPLATE.md
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdindex 5c57af1..b936005 100644--- a/.github/PULL_REQUEST_TEMPLATE.md+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -8,10 +8,10 @@  ## AI tool usage -How much of this PR was AI-assisted? (check one)+How much of the code in this PR was AI-assisted? (check one)  - [ ] **0** - No AI was used to write code-- [ ] **1** - I was assisted by AI. I reviewed the finished result.+- [ ] **1** - I was assisted by AI in writing code. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only  <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. -->
AGENTS.md
diff --git a/AGENTS.md b/AGENTS.mdindex 7d9f8f1..ceef8b6 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -13,4 +13,7 @@ The `xtool` CLI supports macOS, Linux, WSL. The lower-level XKit (provisioning a ## Conventions  - Use modern Swift 6. Strict concurrency is enabled.-- Use swift-dependencies for Dependency Injection. Passing dependencies around as arguments is an anti-pattern.+- Use swift-dependencies (`@Dependency(\.foo)` / `d.foo`) for Dependency Injection. Passing dependencies around as arguments is an anti-pattern.+- Commits should be in the format `subsystem: imperative description` e.g. `auth: support reading password from stdin`.+- Don't use `Task.detached { ... }`. If you need to escape isolation, you want `Task { @concurrent in ... }` instead.+- Uphold API stability guarantees for consumers who use xtool via the command line interface (e.g. don't remove subcommands or config fields). However, the Swift interface (including `public` types) when consuming xtool itself as a Swift Package is _NOT_ API stable; it's okay to break Swift API.
README.md
diff --git a/README.md b/README.mdindex a39ca3d..70f0943 100644--- a/README.md+++ b/README.md@@ -57,7 +57,9 @@ DEVICE SUBCOMMANDS:  ### Library -xtool includes a library that you can use to interact with Apple Developer Services, iOS devices, and more from your own app. You can use this by adding `XKit` as a SwiftPM dependency.+You can consume xtool itself as a Swift Package, to enable your own app to interact with Apple Developer Services, iOS devices, and more. You can use this by adding `XKit` or `XToolSupport` as a SwiftPM dependency.++Note: while we aim to uphold semver semantics on the CLI interface (breaking change = major version bump), the Swift interface does not offer the same guarantees.  ```swift // package dependency: