Skip to content

Commit 1543fb2

Browse files
committed
Open-sourcing Xcody 0.35.7 (455), an Xcode Extension that enables Cody AI Agent in Xcode.
0 parents  commit 1543fb2

File tree

574 files changed

+166442
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

574 files changed

+166442
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "🐞 Bug Report"
2+
description: Report a reproducible problem or unexpected behavior in Xcody.
3+
title: "[Bug] <short description>"
4+
labels: ["bug", "needs-triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please fill out the information below to help us understand and resolve the issue.
10+
- type: textarea
11+
id: description
12+
attributes:
13+
label: Description
14+
description: What happened? What did you expect to happen instead?
15+
placeholder: Clear and concise description of the bug.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: steps
20+
attributes:
21+
label: Steps to Reproduce
22+
description: How can we reproduce the bug?
23+
placeholder: |
24+
1. Open Xcode and load project
25+
2. Select code and use the "Explain Code" command
26+
3. Observe error message or unexpected output
27+
validations:
28+
required: true
29+
- type: input
30+
id: xcody-version
31+
attributes:
32+
label: Xcody Version
33+
placeholder: e.g., v0.3.2 or commit hash
34+
validations:
35+
required: true
36+
- type: input
37+
id: xcode-version
38+
attributes:
39+
label: Xcode Version
40+
placeholder: e.g., Xcode 15.3
41+
validations:
42+
required: true
43+
- type: input
44+
id: os-version
45+
attributes:
46+
label: macOS Version
47+
placeholder: e.g., macOS 14.5 (Sonoma)
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: logs
52+
attributes:
53+
label: Logs or Screenshots
54+
description: If possible, paste logs or include screenshots.
55+
placeholder: Drag & drop image or paste logs here.
56+
- type: checkboxes
57+
id: terms
58+
attributes:
59+
label: Confirmation
60+
options:
61+
- label: I have searched [existing issues](https://github.com/bookingcom/xcody/issues) for a similar bug.
62+
required: true
63+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "🌟 Feature Request"
2+
description: Suggest a new feature or enhancement for Xcody.
3+
title: "[Feature] <short description>"
4+
labels: ["enhancement", "needs-triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
"Help us understand your idea by answering the questions below."
10+
- type: textarea
11+
id: proposal
12+
attributes:
13+
label: "What would you like to see?"
14+
description: "Clearly describe the proposed feature or behavior."
15+
placeholder: "I'd like to see a prompt workflow that lets me refactor selected code using my own template..."
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: motivation
20+
attributes:
21+
label: "Why is this feature important?"
22+
description: "What problem does this solve, or what opportunity does it enable?"
23+
placeholder: "This would save us hours of manual refactoring when porting legacy Objective-C code to Swift."
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: "Alternatives or Prior Work"
30+
description: "Have you tried other tools, extensions, or workflows?"
31+
- type: checkboxes
32+
id: terms
33+
attributes:
34+
label: "Contribution Path"
35+
options:
36+
- label: "I am willing to contribute this feature and open a pull request."
37+
- label: "I would like the maintainers/community to implement this."
38+
- label: "I have reviewed the [VISION.md](https://github.com/bookingcom/xcody/blob/main/VISION.md) and believe this aligns with the project's goals."
39+
required: true
40+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# 📦 Pull Request
2+
3+
Thanks for contributing to **Xcody**! Please fill out the following details to help us review your work effectively.
4+
5+
---
6+
7+
## ✨ Summary
8+
9+
<!-- What does this PR do? Why is it useful? -->
10+
11+
Fixes #<issue-number> (if applicable)
12+
13+
---
14+
15+
## 📷 Demo / Screenshots
16+
17+
<!-- If this change affects UI or behavior, include before/after screenshots, screen recordings, or GIFs -->
18+
19+
---
20+
21+
## 🧪 Testing
22+
23+
<!-- Explain what you tested and how. Be thorough, especially for logic changes. -->
24+
25+
- [ ] Added unit tests
26+
- [ ] Manually verified in Xcode
27+
- [ ] Verified integration with Cody API
28+
29+
---
30+
31+
## 🔍 Checklist
32+
33+
- [ ] My changes are aligned with the [VISION.md](../VISION.md)
34+
- [ ] I've read the [CONTRIBUTING.md](../CONTRIBUTING.md)
35+
- [ ] This PR references an existing issue or includes a linked issue
36+
- [ ] Code builds successfully in Xcode
37+
- [ ] Tests pass locally
38+
39+
---
40+
41+
## 💬 Notes for Reviewers
42+
43+
<!-- Anything reviewers should be aware of? Open questions? Known issues? -->
44+
45+
---
46+
47+
Thank you for your contribution! ❤️
48+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
exempt-issue-labels: "low priority, help wanted, planned, investigating, blocked"
19+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
20+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# IDE
2+
.idea
3+
4+
# Created by
5+
https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager
6+
# Edit at
7+
https://www.toptal.com/developers/gitignore?templates=xcode,macos,swift,swiftpackagemanager
8+
9+
### macOS ###
10+
# General
11+
.DS_Store
12+
.AppleDouble
13+
.LSOverride
14+
15+
# Files that might appear in the root of a volume
16+
.DocumentRevisions-V100
17+
.fseventsd
18+
.Spotlight-V100
19+
.TemporaryItems
20+
.Trashes
21+
.VolumeIcon.icns
22+
.com.apple.timemachine.donotpresent
23+
24+
# Directories potentially created on remote AFP share
25+
.AppleDB
26+
.AppleDesktop
27+
Network Trash Folder
28+
Temporary Items
29+
.apdisk
30+
31+
### macOS Patch ###
32+
# iCloud generated files
33+
*.icloud
34+
35+
### Swift ###
36+
# Xcode
37+
#
38+
# gitignore contributors: remember to update Global/Xcode.gitignore,
39+
Objective-C.gitignore & Swift.gitignore
40+
41+
## User settings
42+
xcuserdata/
43+
44+
## compatibility with Xcode 8 and earlier (ignoring not required starting
45+
Xcode 9)
46+
*.xcscmblueprint
47+
*.xccheckout
48+
49+
## compatibility with Xcode 3 and earlier (ignoring not required starting
50+
Xcode 4)
51+
build/
52+
DerivedData/
53+
*.moved-aside
54+
*.pbxuser
55+
!default.pbxuser
56+
*.mode1v3
57+
!default.mode1v3
58+
*.mode2v3
59+
!default.mode2v3
60+
*.perspectivev3
61+
!default.perspectivev3
62+
63+
## Obj-C/Swift specific
64+
*.hmap
65+
66+
## App packaging
67+
*.ipa
68+
*.dSYM.zip
69+
*.dSYM
70+
71+
# Swift Package Manager
72+
# Add this line if you want to avoid checking in source code from Swift
73+
Package Manager dependencies.
74+
# Packages/
75+
# Package.pins
76+
# Package.resolved
77+
# *.xcodeproj
78+
# Xcode automatically generates this directory with a .xcworkspacedata
79+
file and xcuserdata
80+
# hence it is not needed unless you have added a package configuration
81+
file to your project
82+
# .swiftpm
83+
84+
.build/
85+
86+
# CocoaPods
87+
# We recommend against adding the Pods directory to your .gitignore.
88+
However
89+
# you should judge for yourself, the pros and cons are mentioned at:
90+
#
91+
https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
92+
# Pods/
93+
# Add this line if you want to avoid checking in source code from the
94+
95+
# Carthage
96+
# Add this line if you want to avoid checking in source code from Carthage
97+
dependencies.
98+
# Carthage/Checkouts
99+
100+
Carthage/Build/
101+
102+
# Accio dependency management
103+
Dependencies/
104+
.accio/
105+
106+
# fastlane
107+
# It is recommended to not store the screenshots in the git repo.
108+
# Instead, use fastlane to re-generate the screenshots whenever they are
109+
needed.
110+
# For more information about the recommended setup visit:
111+
#
112+
https://docs.fastlane.tools/best-practices/source-control/#source-control
113+
114+
fastlane/report.xml
115+
fastlane/Preview.html
116+
fastlane/screenshots/**/*.png
117+
fastlane/test_output
118+
119+
# Code Injection
120+
# After new code Injection tools there's a generated folder
121+
/iOSInjectionProject
122+
# https://github.com/johnno1962/injectionforxcode
123+
124+
iOSInjectionProject/
125+
126+
127+
# End of
128+
https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager
129+
130+
Secrets.xcconfig
131+
Python/Python.xcframework
132+
Python/python-stdlib
133+
Python/site-packages/*
134+
!Python/site-packages/requirements.txt
135+
!Python/site-packages/install.sh
136+
137+
Python/VERSIONS
138+
/.vscode

.gitmodules

Whitespace-only changes.

.swiftformat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
--allman false
2+
--beforemarks
3+
--binarygrouping 4,8
4+
--categorymark "MARK: %c"
5+
--classthreshold 0
6+
--closingparen balanced
7+
--commas always
8+
--conflictmarkers reject
9+
--decimalgrouping 3,6
10+
--elseposition same-line
11+
--enumthreshold 0
12+
--exponentcase lowercase
13+
--exponentgrouping disabled
14+
--fractiongrouping disabled
15+
--fragment false
16+
--funcattributes preserve
17+
--guardelse auto
18+
--header ignore
19+
--hexgrouping 4,8
20+
--hexliteralcase uppercase
21+
--ifdef no-indent
22+
--importgrouping testable-bottom
23+
--indent 4
24+
--indentcase false
25+
--lifecycle
26+
--linebreaks lf
27+
--maxwidth 100
28+
--modifierorder
29+
--nospaceoperators ...,..<
30+
--nowrapoperators
31+
--octalgrouping 4,8
32+
--operatorfunc spaced
33+
--patternlet hoist
34+
--ranges spaced
35+
--self remove
36+
--selfrequired
37+
--semicolons inline
38+
--shortoptionals always
39+
--smarttabs enabled
40+
--stripunusedargs unnamed-only
41+
--structthreshold 0
42+
--tabwidth unspecified
43+
--trailingclosures
44+
--trimwhitespace always
45+
--typeattributes preserve
46+
--varattributes preserve
47+
--voidtype void
48+
--wraparguments before-first
49+
--wrapcollections disabled
50+
--wrapparameters before-first
51+
--xcodeindentation disabled
52+
--yodaswap always
53+
54+
--enable isEmpty
55+
56+
--exclude Pods,**/Generated

AppIcon.png

13.1 KB
Loading

0 commit comments

Comments
 (0)