@ainative/cody-cli 0.7.32 → 0.7.34
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.
- package/dist/cli.js +3 -3
- package/package.json +63 -11
- package/.ainative/CRITICAL_FILE_PLACEMENT_RULES.md +0 -139
- package/.ainative/git-rules.md +0 -150
- package/.ainative/settings.json +0 -132
- package/.claude/RAILWAY_DEPLOYMENT_GUIDE.md +0 -118
- package/.claude/mcp.json.example +0 -31
- package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/MEMORY.md +0 -4
- package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/feedback_git_attribution.md +0 -11
- package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/feedback_testing_standards.md +0 -11
- package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/project_cody_cli.md +0 -11
- package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/reference_zerodb.md +0 -12
- package/.claude/settings.json +0 -30
- package/.claude/settings.local.json +0 -6
- package/.cody/mcp.json +0 -12
package/dist/cli.js
CHANGED
|
@@ -181037,7 +181037,7 @@ var init_metadata = __esm(() => {
|
|
|
181037
181037
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
181038
181038
|
version: "0.7.15",
|
|
181039
181039
|
versionBase: getVersionBase(),
|
|
181040
|
-
buildTime: "
|
|
181040
|
+
buildTime: "1777196086",
|
|
181041
181041
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
181042
181042
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
181043
181043
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -419007,7 +419007,7 @@ function getAnthropicEnvMetadata() {
|
|
|
419007
419007
|
function getBuildAgeMinutes() {
|
|
419008
419008
|
if (false)
|
|
419009
419009
|
;
|
|
419010
|
-
const buildTime = new Date("
|
|
419010
|
+
const buildTime = new Date("1777196086").getTime();
|
|
419011
419011
|
if (isNaN(buildTime))
|
|
419012
419012
|
return;
|
|
419013
419013
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -512049,7 +512049,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
512049
512049
|
var call56 = async () => {
|
|
512050
512050
|
return {
|
|
512051
512051
|
type: "text",
|
|
512052
|
-
value: `${"0.7.15"} (built ${"
|
|
512052
|
+
value: `${"0.7.15"} (built ${"1777196086"})`
|
|
512053
512053
|
};
|
|
512054
512054
|
}, version6, version_default;
|
|
512055
512055
|
var init_version = __esm(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
|
|
6
6
|
"main": "dist/cli.js",
|
|
@@ -10,9 +10,16 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/",
|
|
12
12
|
"dist/",
|
|
13
|
-
".ainative/",
|
|
14
|
-
".
|
|
15
|
-
".
|
|
13
|
+
".ainative/skills/",
|
|
14
|
+
".ainative/AINATIVE.md",
|
|
15
|
+
".ainative/README.md",
|
|
16
|
+
".ainative/SDK_PUBLISHING_GUIDELINES.md",
|
|
17
|
+
".claude/hooks/",
|
|
18
|
+
".claude/skills/",
|
|
19
|
+
".cody/hooks/",
|
|
20
|
+
".cody/skills/",
|
|
21
|
+
".cody/CODY.md",
|
|
22
|
+
".cody/mcp.json.example",
|
|
16
23
|
"cody",
|
|
17
24
|
"README.md"
|
|
18
25
|
],
|
|
@@ -37,28 +44,75 @@
|
|
|
37
44
|
"ai",
|
|
38
45
|
"ai-coding",
|
|
39
46
|
"ai-assistant",
|
|
47
|
+
"ai-agent",
|
|
48
|
+
"ai-agents",
|
|
49
|
+
"ai-coding-assistant",
|
|
50
|
+
"ai-pair-programmer",
|
|
40
51
|
"cli",
|
|
52
|
+
"cli-agent",
|
|
41
53
|
"coding-assistant",
|
|
54
|
+
"coding-agent",
|
|
42
55
|
"code-generation",
|
|
56
|
+
"code-agent",
|
|
43
57
|
"terminal",
|
|
58
|
+
"terminal-ai",
|
|
59
|
+
"developer-tools",
|
|
60
|
+
"pair-programming",
|
|
44
61
|
"mcp",
|
|
45
62
|
"mcp-client",
|
|
46
63
|
"model-context-protocol",
|
|
64
|
+
"tool-use",
|
|
65
|
+
"tool-calling",
|
|
47
66
|
"oauth2",
|
|
48
67
|
"streaming",
|
|
49
|
-
"tool-use",
|
|
50
68
|
"agents",
|
|
51
|
-
"
|
|
69
|
+
"agentic",
|
|
70
|
+
"agentic-experience",
|
|
71
|
+
"autonomous-agent",
|
|
72
|
+
"multi-agent",
|
|
73
|
+
"subagent",
|
|
74
|
+
"task-tracking",
|
|
52
75
|
"llm",
|
|
53
76
|
"llm-cli",
|
|
77
|
+
"typescript",
|
|
78
|
+
"claude-code",
|
|
54
79
|
"claude-code-alternative",
|
|
80
|
+
"cursor",
|
|
55
81
|
"cursor-alternative",
|
|
82
|
+
"copilot-alternative",
|
|
56
83
|
"aider-alternative",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
84
|
+
"cline-alternative",
|
|
85
|
+
"vibe-coding",
|
|
86
|
+
"byok",
|
|
87
|
+
"multi-provider",
|
|
88
|
+
"local-llm",
|
|
89
|
+
"local-first",
|
|
90
|
+
"ollama",
|
|
91
|
+
"openai",
|
|
92
|
+
"gemini",
|
|
93
|
+
"groq",
|
|
94
|
+
"anthropic",
|
|
95
|
+
"deepseek",
|
|
96
|
+
"deepseek-coder",
|
|
97
|
+
"deepseek-reasoner",
|
|
98
|
+
"mistral",
|
|
99
|
+
"perplexity",
|
|
100
|
+
"fireworks",
|
|
101
|
+
"cerebras",
|
|
102
|
+
"moonshot",
|
|
103
|
+
"kimi",
|
|
104
|
+
"qwen",
|
|
105
|
+
"sambanova",
|
|
106
|
+
"lmstudio",
|
|
107
|
+
"mimo",
|
|
108
|
+
"openrouter",
|
|
109
|
+
"no-login",
|
|
110
|
+
"china",
|
|
111
|
+
"plugin-security",
|
|
112
|
+
"on-demand-skills",
|
|
60
113
|
"vscode",
|
|
61
114
|
"windsurf",
|
|
115
|
+
"zerodb",
|
|
62
116
|
"openclaw",
|
|
63
117
|
"openclaw-agents",
|
|
64
118
|
"agent-md",
|
|
@@ -66,8 +120,6 @@
|
|
|
66
120
|
"agent-onboarding",
|
|
67
121
|
"self-provisioning",
|
|
68
122
|
"zero-human-provisioning",
|
|
69
|
-
"agentic",
|
|
70
|
-
"agentic-experience",
|
|
71
123
|
"ax",
|
|
72
124
|
"agent-discovery",
|
|
73
125
|
"agent-native"
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# CRITICAL FILE PLACEMENT RULES
|
|
2
|
-
|
|
3
|
-
## ABSOLUTE PROHIBITIONS - ZERO TOLERANCE
|
|
4
|
-
|
|
5
|
-
### **YOU MUST READ THIS BEFORE CREATING ANY FILE**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## RULE #1: NEVER CREATE .MD FILES IN ROOT DIRECTORIES
|
|
10
|
-
|
|
11
|
-
### **COMPLETELY FORBIDDEN LOCATIONS:**
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
<project-root>/*.md (except README.md)
|
|
15
|
-
<project-root>/src/backend/*.md
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### **REQUIRED LOCATIONS:**
|
|
19
|
-
|
|
20
|
-
**ALL backend documentation MUST go in:**
|
|
21
|
-
```
|
|
22
|
-
<project-root>/docs/{category}/filename.md
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**ALL frontend documentation MUST go in:**
|
|
26
|
-
```
|
|
27
|
-
<project-root>/frontend/docs/{category}/filename.md
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## RULE #2: NEVER CREATE .SH SCRIPTS IN BACKEND
|
|
33
|
-
|
|
34
|
-
### **COMPLETELY FORBIDDEN:**
|
|
35
|
-
```
|
|
36
|
-
<project-root>/src/backend/*.sh (except start.sh)
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### **REQUIRED LOCATION:**
|
|
40
|
-
```
|
|
41
|
-
<project-root>/scripts/script_name.sh
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## RULE #3: ALWAYS USE CORRECT BASE URL FORMAT
|
|
47
|
-
|
|
48
|
-
### **INCORRECT BASE URL PATTERNS:**
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# WRONG: Including /api/v1 in the base URL variable
|
|
52
|
-
BASE_URL="https://your-api.example.com/api/v1"
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### **CORRECT BASE URL PATTERN:**
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
# CORRECT: Base URL is domain only
|
|
59
|
-
BASE_URL="https://your-api.example.com"
|
|
60
|
-
|
|
61
|
-
# Then use with FULL API paths:
|
|
62
|
-
curl "$BASE_URL/api/v1/projects/" # Explicit and clear
|
|
63
|
-
curl "$BASE_URL/health" # Root-level endpoints also clear
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### **WHY THIS MATTERS:**
|
|
67
|
-
|
|
68
|
-
1. **Clarity**: Full paths are immediately visible in code
|
|
69
|
-
2. **Consistency**: Same pattern across all documentation
|
|
70
|
-
3. **Maintainability**: Easy to update if API version changes
|
|
71
|
-
4. **Developer Experience**: No confusion about URL construction
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## MANDATORY CATEGORIZATION GUIDE
|
|
76
|
-
|
|
77
|
-
### Backend Documentation Categories
|
|
78
|
-
|
|
79
|
-
| Filename Pattern | Destination | Examples |
|
|
80
|
-
|-----------------|-------------|----------|
|
|
81
|
-
| `ISSUE_*.md`, `BUG_*.md` | `docs/issues/` | ISSUE_24_SUMMARY.md |
|
|
82
|
-
| `*_TEST*.md`, `QA_*.md` | `docs/testing/` | QA_TEST_REPORT.md |
|
|
83
|
-
| `AGENT_SWARM_*.md`, `WORKFLOW_*.md` | `docs/agent-swarm/` | AGENT_SWARM_WORKFLOW.md |
|
|
84
|
-
| `API_*.md`, `*_ENDPOINTS*.md` | `docs/api/` | API_DOCUMENTATION.md |
|
|
85
|
-
| `*_IMPLEMENTATION*.md`, `*_SUMMARY.md` | `docs/reports/` | FEATURE_IMPLEMENTATION_SUMMARY.md |
|
|
86
|
-
| `DEPLOYMENT_*.md`, `RAILWAY_*.md` | `docs/deployment/` | DEPLOYMENT_CHECKLIST.md |
|
|
87
|
-
| `*_QUICK_*.md`, `*_REFERENCE.md` | `docs/quick-reference/` | QUICK_START_GUIDE.md |
|
|
88
|
-
| `CODING_*.md`, `*_GUIDE.md` | `docs/development-guides/` | CODING_STANDARDS.md |
|
|
89
|
-
| `PRD_*.md`, `BACKLOG*.md`, `*_PLAN.md` | `docs/planning/` | PRD_NEW_FEATURE.md |
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## ENFORCEMENT CHECKLIST
|
|
94
|
-
|
|
95
|
-
### **BEFORE creating ANY .md or .sh file, you MUST:**
|
|
96
|
-
|
|
97
|
-
1. **CHECK:** Am I creating this file in a root directory?
|
|
98
|
-
2. **STOP:** If yes, determine the correct category
|
|
99
|
-
3. **CREATE:** In the correct `docs/{category}/` or `scripts/` location
|
|
100
|
-
4. **VERIFY:** File is NOT in any root directory
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## YOUR RESPONSIBILITY
|
|
105
|
-
|
|
106
|
-
As an AI assistant, you MUST:
|
|
107
|
-
|
|
108
|
-
- **READ these rules** before creating ANY file
|
|
109
|
-
- **FOLLOW the categorization guide** for every .md file
|
|
110
|
-
- **CREATE files in correct locations** from the start
|
|
111
|
-
- **NEVER create files in root** directories
|
|
112
|
-
- **ASK if unsure** about categorization
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## VERIFICATION COMMANDS
|
|
117
|
-
|
|
118
|
-
### After creating documentation, verify:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
# Check project root (should only show README.md)
|
|
122
|
-
ls <project-root>/*.md
|
|
123
|
-
|
|
124
|
-
# Check backend (should show NO .md files)
|
|
125
|
-
ls <project-root>/src/backend/*.md
|
|
126
|
-
|
|
127
|
-
# Check backend scripts (should only show start.sh)
|
|
128
|
-
ls <project-root>/src/backend/*.sh
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## THIS IS NOT A SUGGESTION - IT IS A REQUIREMENT
|
|
134
|
-
|
|
135
|
-
**These rules are MANDATORY and NON-NEGOTIABLE.**
|
|
136
|
-
|
|
137
|
-
**Every violation causes real harm to the project and wastes human time.**
|
|
138
|
-
|
|
139
|
-
**Follow these rules 100% of the time, no exceptions.**
|
package/.ainative/git-rules.md
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
# Git Commit Rules
|
|
2
|
-
|
|
3
|
-
## CRITICAL RULES - ZERO TOLERANCE - NEVER VIOLATE
|
|
4
|
-
|
|
5
|
-
### 1. NO THIRD-PARTY AI TOOL ATTRIBUTION
|
|
6
|
-
|
|
7
|
-
**STOP! READ THIS BEFORE EVERY COMMIT!**
|
|
8
|
-
|
|
9
|
-
You are **STRICTLY FORBIDDEN** from including ANY third-party AI tool references in git commits, pull requests, or GitHub activity.
|
|
10
|
-
|
|
11
|
-
**ABSOLUTELY FORBIDDEN TEXT - DO NOT USE UNDER ANY CIRCUMSTANCES:**
|
|
12
|
-
- "Claude" or "Anthropic" or "claude.com"
|
|
13
|
-
- "Sourcegraph" (when referring to Sourcegraph Cody the external tool)
|
|
14
|
-
- "ChatGPT" or "OpenAI" (as code author)
|
|
15
|
-
- "Copilot" or "GitHub Copilot" (as attribution)
|
|
16
|
-
- "Generated with [third-party tool]"
|
|
17
|
-
- "Co-Authored-By: Claude/ChatGPT/Copilot"
|
|
18
|
-
- "AI-generated" or "AI-assisted" (without your own branding)
|
|
19
|
-
- Any emoji followed by third-party tool attribution
|
|
20
|
-
|
|
21
|
-
### 2. COMMIT MESSAGE FORMAT
|
|
22
|
-
|
|
23
|
-
**CORRECT FORMAT:**
|
|
24
|
-
```
|
|
25
|
-
Add user authentication with JWT
|
|
26
|
-
|
|
27
|
-
- Implement token generation and validation
|
|
28
|
-
- Add password hashing with bcrypt
|
|
29
|
-
- Create login/logout endpoints
|
|
30
|
-
|
|
31
|
-
Refs #123
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**INCORRECT FORMAT:**
|
|
35
|
-
```
|
|
36
|
-
Add user authentication with JWT
|
|
37
|
-
|
|
38
|
-
- Changes made
|
|
39
|
-
- More changes
|
|
40
|
-
|
|
41
|
-
Generated with Claude Code
|
|
42
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 3. PULL REQUEST DESCRIPTIONS
|
|
46
|
-
|
|
47
|
-
**CORRECT FORMAT:**
|
|
48
|
-
```markdown
|
|
49
|
-
## Summary
|
|
50
|
-
- Clear description of changes
|
|
51
|
-
- What was fixed or added
|
|
52
|
-
- Why these changes were made
|
|
53
|
-
|
|
54
|
-
## Test Plan
|
|
55
|
-
- How to test the changes
|
|
56
|
-
- Expected results
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**ABSOLUTELY FORBIDDEN - NEVER USE:**
|
|
60
|
-
```markdown
|
|
61
|
-
## Summary
|
|
62
|
-
Changes made...
|
|
63
|
-
|
|
64
|
-
Generated with Claude Code
|
|
65
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### 4. ENFORCEMENT
|
|
69
|
-
|
|
70
|
-
**These rules apply to:**
|
|
71
|
-
- All commit messages
|
|
72
|
-
- All pull request descriptions
|
|
73
|
-
- All issue comments
|
|
74
|
-
- All GitHub discussions
|
|
75
|
-
- Any public-facing git activity
|
|
76
|
-
|
|
77
|
-
**Violating these rules will:**
|
|
78
|
-
- Create public attribution that must be avoided
|
|
79
|
-
- Associate our work with third-party tools
|
|
80
|
-
- Compromise the professional appearance of our repositories
|
|
81
|
-
|
|
82
|
-
### 5. EXAMPLES
|
|
83
|
-
|
|
84
|
-
#### GOOD COMMIT:
|
|
85
|
-
```
|
|
86
|
-
Add multi-dimension vector support
|
|
87
|
-
|
|
88
|
-
- Support for 384, 768, 1024, and 1536 dimensions
|
|
89
|
-
- Update validation logic for new dimensions
|
|
90
|
-
- Add comprehensive test coverage
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
#### BAD COMMIT:
|
|
94
|
-
```
|
|
95
|
-
Add multi-dimension vector support
|
|
96
|
-
|
|
97
|
-
- Support for 384, 768, 1024, and 1536 dimensions
|
|
98
|
-
|
|
99
|
-
Generated with Cody AI
|
|
100
|
-
https://sourcegraph.com/cody
|
|
101
|
-
|
|
102
|
-
Co-Authored-By: Cody <noreply@sourcegraph.com>
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## FINAL WARNING - READ BEFORE EVERY COMMIT
|
|
108
|
-
|
|
109
|
-
**BEFORE YOU COMMIT, ASK YOURSELF:**
|
|
110
|
-
1. Does my commit contain "Claude", "Anthropic", "ChatGPT", "Copilot" or other third-party AI tools?
|
|
111
|
-
2. Does my commit have "Co-Authored-By: Claude/ChatGPT/Copilot"?
|
|
112
|
-
3. Does my commit have "Generated with [third-party tool]"?
|
|
113
|
-
|
|
114
|
-
**IF YES TO ANY:** STOP! DO NOT COMMIT! REMOVE THIRD-PARTY ATTRIBUTION IMMEDIATELY!
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## AUTOMATED ENFORCEMENT
|
|
119
|
-
|
|
120
|
-
**Pre-commit hook:** Create `.git/hooks/commit-msg` to automatically block third-party AI tool attribution:
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
#!/bin/bash
|
|
124
|
-
COMMIT_MSG_FILE=$1
|
|
125
|
-
|
|
126
|
-
# Block third-party AI tool attribution
|
|
127
|
-
if grep -qiE "(claude|anthropic|chatgpt|openai.*generated|copilot.*generated|co-authored-by:.*claude|co-authored-by:.*chatgpt|co-authored-by:.*copilot|generated with claude|generated with chatgpt)" "$COMMIT_MSG_FILE"; then
|
|
128
|
-
echo "ERROR: Commit message contains FORBIDDEN third-party AI attribution!"
|
|
129
|
-
echo ""
|
|
130
|
-
echo "FORBIDDEN: Claude, Anthropic, ChatGPT, Copilot attribution"
|
|
131
|
-
echo ""
|
|
132
|
-
exit 1
|
|
133
|
-
fi
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
**This hook will REJECT any commit containing third-party AI tool attribution.**
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## ZERO TOLERANCE POLICY
|
|
141
|
-
|
|
142
|
-
Every commit **MUST** be checked before pushing to ensure:
|
|
143
|
-
- **NO** "Claude" or "Anthropic" references
|
|
144
|
-
- **NO** "ChatGPT" or "OpenAI" attribution
|
|
145
|
-
- **NO** "Copilot" or "GitHub Copilot" attribution
|
|
146
|
-
- **NO** third-party AI tool references
|
|
147
|
-
- **NO** "Co-Authored-By: Claude/ChatGPT/Copilot"
|
|
148
|
-
- **NO** "Generated with [third-party tool]"
|
|
149
|
-
|
|
150
|
-
**Violating this rule requires immediate commit amendment and force push to remove third-party attribution from git history.**
|
package/.ainative/settings.json
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://google-gemini.github.io/gemini-cli/schemas/settings.schema.json",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"project": {
|
|
5
|
-
"name": "Cody CLI",
|
|
6
|
-
"type": "cli-application",
|
|
7
|
-
"framework": "bun-typescript-ink",
|
|
8
|
-
"language": "typescript"
|
|
9
|
-
},
|
|
10
|
-
"paths": {
|
|
11
|
-
"root": "/Users/aideveloper/Desktop/cody-cli",
|
|
12
|
-
"include_directories": [
|
|
13
|
-
"src",
|
|
14
|
-
"tests",
|
|
15
|
-
"bin",
|
|
16
|
-
"docs",
|
|
17
|
-
"packages",
|
|
18
|
-
"homebrew"
|
|
19
|
-
],
|
|
20
|
-
"exclude_patterns": [
|
|
21
|
-
"node_modules",
|
|
22
|
-
"dist",
|
|
23
|
-
"*.test.ts",
|
|
24
|
-
"*.test.tsx",
|
|
25
|
-
"bun.lock",
|
|
26
|
-
"cody-bin"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"context": {
|
|
30
|
-
"primary_context_file": ".ainative/AINATIVE.md",
|
|
31
|
-
"supplementary_files": [
|
|
32
|
-
"CLAUDE.md",
|
|
33
|
-
"docs/ARCHITECTURE.md",
|
|
34
|
-
"docs/DEVELOPMENT.md"
|
|
35
|
-
],
|
|
36
|
-
"max_context_files": 10
|
|
37
|
-
},
|
|
38
|
-
"model": {
|
|
39
|
-
"default": "gemini-2.5-pro",
|
|
40
|
-
"context_window": "1M",
|
|
41
|
-
"temperature": 0.7,
|
|
42
|
-
"tool_output_summarization": true
|
|
43
|
-
},
|
|
44
|
-
"tools": {
|
|
45
|
-
"enabled": [
|
|
46
|
-
"file_read",
|
|
47
|
-
"file_write",
|
|
48
|
-
"shell",
|
|
49
|
-
"web_fetch",
|
|
50
|
-
"memory"
|
|
51
|
-
],
|
|
52
|
-
"shell": {
|
|
53
|
-
"allowed_commands": [
|
|
54
|
-
"bun",
|
|
55
|
-
"npm",
|
|
56
|
-
"git",
|
|
57
|
-
"node",
|
|
58
|
-
"npx",
|
|
59
|
-
"curl",
|
|
60
|
-
"gh",
|
|
61
|
-
"tree",
|
|
62
|
-
"chmod",
|
|
63
|
-
"mkdir",
|
|
64
|
-
"cp",
|
|
65
|
-
"mv",
|
|
66
|
-
"bash"
|
|
67
|
-
],
|
|
68
|
-
"working_directory": "/Users/aideveloper/Desktop/cody-cli"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"security": {
|
|
72
|
-
"trusted_folders": [
|
|
73
|
-
"/Users/aideveloper/Desktop/cody-cli"
|
|
74
|
-
],
|
|
75
|
-
"sandbox_profile": "default"
|
|
76
|
-
},
|
|
77
|
-
"ui": {
|
|
78
|
-
"theme": "dark",
|
|
79
|
-
"show_citations": true,
|
|
80
|
-
"show_line_numbers": true
|
|
81
|
-
},
|
|
82
|
-
"privacy": {
|
|
83
|
-
"collect_usage_stats": false
|
|
84
|
-
},
|
|
85
|
-
"extensions": {
|
|
86
|
-
"mcp_servers": {
|
|
87
|
-
"zerodb": {
|
|
88
|
-
"type": "http",
|
|
89
|
-
"url": "https://api.ainative.studio/v1/mcp/zerodb-mcp/messages"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"ai_coding_rules": {
|
|
94
|
-
"git_attribution": {
|
|
95
|
-
"rule": "ZERO_TOLERANCE",
|
|
96
|
-
"description": "NEVER include AI tool attribution in commits, PRs, or issues",
|
|
97
|
-
"forbidden_terms": [
|
|
98
|
-
"Claude",
|
|
99
|
-
"Anthropic",
|
|
100
|
-
"Generated with Claude",
|
|
101
|
-
"Co-Authored-By: Claude",
|
|
102
|
-
"AI-generated",
|
|
103
|
-
"ChatGPT",
|
|
104
|
-
"Copilot",
|
|
105
|
-
"OpenAI"
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
"commit_style": {
|
|
109
|
-
"format": "conventional",
|
|
110
|
-
"examples": [
|
|
111
|
-
"feat: Add user authentication",
|
|
112
|
-
"fix: Resolve navigation bug",
|
|
113
|
-
"docs: Update API documentation",
|
|
114
|
-
"refactor: Simplify pricing logic",
|
|
115
|
-
"test: Add unit tests for services",
|
|
116
|
-
"chore: Update dependencies"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
"code_quality": {
|
|
120
|
-
"linting": "required",
|
|
121
|
-
"type_checking": "required",
|
|
122
|
-
"testing": "required_for_features",
|
|
123
|
-
"min_coverage": 80
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"development": {
|
|
127
|
-
"build_command": "bun run build",
|
|
128
|
-
"test_command": "bun test --coverage",
|
|
129
|
-
"start_command": "bun run start",
|
|
130
|
-
"source_maps": true
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# Railway Deployment Guide
|
|
2
|
-
|
|
3
|
-
## Service Architecture
|
|
4
|
-
|
|
5
|
-
Production environments can use a multi-service architecture on Railway:
|
|
6
|
-
|
|
7
|
-
### Key Services
|
|
8
|
-
|
|
9
|
-
1. **API Gateway** (e.g., Kong) - Routes requests to backend services
|
|
10
|
-
2. **Backend** - Main application service (handles auth, users, billing, etc.)
|
|
11
|
-
3. **CMS** - Content management (e.g., Strapi)
|
|
12
|
-
4. **Database** - PostgreSQL database
|
|
13
|
-
|
|
14
|
-
### Critical: Deploy to the Correct Service
|
|
15
|
-
|
|
16
|
-
**ALWAYS deploy backend code to the correct backend service, NOT the gateway!**
|
|
17
|
-
|
|
18
|
-
## Deployment Commands
|
|
19
|
-
|
|
20
|
-
### 1. List All Services
|
|
21
|
-
```bash
|
|
22
|
-
railway status --json | jq -r '.services.edges[].node.name'
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### 2. Deploy to Backend Service
|
|
26
|
-
```bash
|
|
27
|
-
# Option 1: Deploy with service flag (RECOMMENDED)
|
|
28
|
-
railway up --detach --service "your-backend-service"
|
|
29
|
-
|
|
30
|
-
# Option 2: Link to service first, then deploy
|
|
31
|
-
railway link --service "your-backend-service"
|
|
32
|
-
railway up --detach
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 3. Check Deployment Status
|
|
36
|
-
```bash
|
|
37
|
-
railway status --json | jq -r '.services.edges[] | select(.node.name == "your-service") | .node.serviceInstances.edges[0].node.latestDeployment'
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Common Mistakes to Avoid
|
|
41
|
-
|
|
42
|
-
- **DON'T:** Deploy without specifying service (deploys to wrong service)
|
|
43
|
-
- **DO:** Always specify the service explicitly
|
|
44
|
-
- **DON'T:** Assume `railway up` knows which service based on the code
|
|
45
|
-
- **DO:** Use Railway docs to understand service structure first
|
|
46
|
-
|
|
47
|
-
## GitHub CI/CD Integration
|
|
48
|
-
|
|
49
|
-
Railway can auto-deploy from GitHub when CI passes. If CI fails:
|
|
50
|
-
|
|
51
|
-
### Option 1: Fix CI and Let Auto-Deploy Work
|
|
52
|
-
```bash
|
|
53
|
-
# Fix failing tests, commit fixes, push to main
|
|
54
|
-
# Railway auto-deploys when CI passes
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Option 2: Force Deploy (Bypass CI)
|
|
58
|
-
```bash
|
|
59
|
-
# Use when change is critical and safe despite CI failures
|
|
60
|
-
railway up --detach --service your-backend-service
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Verifying Deployment
|
|
64
|
-
|
|
65
|
-
### 1. Check Health Endpoint
|
|
66
|
-
```bash
|
|
67
|
-
curl https://your-domain.com/health | jq
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### 2. Check Railway Dashboard
|
|
71
|
-
- Build logs: https://railway.com/project/{project-id}/service/{service-id}
|
|
72
|
-
- Deployment status
|
|
73
|
-
- Error logs if deployment failed
|
|
74
|
-
|
|
75
|
-
## Database Connection Issues
|
|
76
|
-
|
|
77
|
-
If you see "Database connection failed" after deployment:
|
|
78
|
-
|
|
79
|
-
1. **Wait 2-3 minutes** - Service might still be starting
|
|
80
|
-
2. **Check Railway logs** - Look for connection errors
|
|
81
|
-
3. **Verify environment variables** - DATABASE_URL must be set correctly
|
|
82
|
-
4. **Check database service status** - Ensure PostgreSQL is running
|
|
83
|
-
|
|
84
|
-
## Troubleshooting
|
|
85
|
-
|
|
86
|
-
### Issue: "Service not found"
|
|
87
|
-
**Solution:** List services first, use exact service name
|
|
88
|
-
```bash
|
|
89
|
-
railway status --json | jq -r '.services.edges[].node.name'
|
|
90
|
-
railway up --service your-service # Use exact name from list
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Issue: "Multiple services found"
|
|
94
|
-
**Solution:** Always use `--service` flag explicitly
|
|
95
|
-
|
|
96
|
-
### Issue: Deployment succeeds but changes don't appear
|
|
97
|
-
**Possible causes:**
|
|
98
|
-
1. Deployed to wrong service (check service name)
|
|
99
|
-
2. Code not committed to git (Railway deploys from git, not local files)
|
|
100
|
-
3. Deployment still in progress (wait longer)
|
|
101
|
-
4. Cache issue (try hard refresh or new incognito window)
|
|
102
|
-
|
|
103
|
-
## Best Practices
|
|
104
|
-
|
|
105
|
-
1. **Always verify service name before deploying**
|
|
106
|
-
2. **Use explicit service flags**
|
|
107
|
-
3. **Check deployment status after deploying**
|
|
108
|
-
4. **Use Railway dashboard for detailed logs**
|
|
109
|
-
|
|
110
|
-
## Quick Reference
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
# Deploy backend code
|
|
114
|
-
railway up --detach --service "your-backend-service"
|
|
115
|
-
|
|
116
|
-
# Check all services and their status
|
|
117
|
-
railway status --json | jq -r '.services.edges[].node | {name, latestDeployment: .serviceInstances.edges[0].node.latestDeployment.status}'
|
|
118
|
-
```
|
package/.claude/mcp.json.example
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"github": {
|
|
4
|
-
"command": "npx",
|
|
5
|
-
"args": [
|
|
6
|
-
"-y",
|
|
7
|
-
"@modelcontextprotocol/server-github"
|
|
8
|
-
],
|
|
9
|
-
"env": {
|
|
10
|
-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"sequential-thinking": {
|
|
14
|
-
"command": "npx",
|
|
15
|
-
"args": [
|
|
16
|
-
"-y",
|
|
17
|
-
"@modelcontextprotocol/server-sequential-thinking"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"filesystem": {
|
|
21
|
-
"command": "npx",
|
|
22
|
-
"args": [
|
|
23
|
-
"-y",
|
|
24
|
-
"@modelcontextprotocol/server-filesystem"
|
|
25
|
-
],
|
|
26
|
-
"args": [
|
|
27
|
-
"/path/to/your/project"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
- [Cody CLI Project Status](project_cody_cli.md) — v0.7.1, chat completions API confirmed working, SDK operational
|
|
2
|
-
- [Zero Tolerance AI Attribution](feedback_git_attribution.md) — NEVER include AI tool attribution in commits/PRs/issues
|
|
3
|
-
- [Testing Standards](feedback_testing_standards.md) — 80% min coverage, BDD-style bun:test, must run before commits
|
|
4
|
-
- [ZeroDB Project ID](reference_zerodb.md) — Project ID 29e8754c for Cody CLI memory/vectors
|
package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/feedback_git_attribution.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Zero Tolerance AI Attribution
|
|
3
|
-
description: NEVER include AI tool attribution in commits, PRs, issues — enforced by pre-commit hooks
|
|
4
|
-
type: feedback
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Never include "Claude", "Anthropic", "ChatGPT", "Copilot", "Co-Authored-By" referencing AI tools, or "Generated with [tool]" in any git commits, PRs, issues, or code comments.
|
|
8
|
-
|
|
9
|
-
**Why:** The project has a ZERO TOLERANCE policy to maintain professional appearance and avoid third-party tool association. Pre-commit hooks enforce this automatically.
|
|
10
|
-
|
|
11
|
-
**How to apply:** Write clean conventional commit messages. Describe what and why. No tool branding. This overrides Claude Code's default Co-Authored-By behavior.
|
package/.claude/projects/-Users-aideveloper-Desktop-cody-cli/memory/feedback_testing_standards.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Testing Standards — 80% Min Coverage
|
|
3
|
-
description: Mandatory TDD with BDD-style tests, 80% minimum coverage, tests must actually run with proof before commits
|
|
4
|
-
type: feedback
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
All new code requires tests with minimum 80% coverage. Tests use bun:test with BDD-style describe/it syntax. Tests MUST actually be executed with proof of passing before any commit or PR.
|
|
8
|
-
|
|
9
|
-
**Why:** Project enforces mandatory TDD to prevent false confidence and catch infrastructure issues before merge.
|
|
10
|
-
|
|
11
|
-
**How to apply:** Run `bun test --coverage` before any commit. Include test execution evidence in PRs. Test files go in `tests/` directory. Use helpers from `tests/setup.ts`.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Cody CLI Project Status
|
|
3
|
-
description: Cody CLI v0.7.1 — AINative Studio's Claude Code fork, chat completions API confirmed working, SDK operational
|
|
4
|
-
type: project
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Cody CLI (@ainative/cody-cli) v0.7.1 is AINative Studio's fork/rebrand of Claude Code. The chat completions API was confirmed working on 2026-04-04 before a computer crash.
|
|
8
|
-
|
|
9
|
-
**Why:** Building an independent AI coding assistant branded to AINative, routing through Kong gateway to multiple LLM providers.
|
|
10
|
-
|
|
11
|
-
**How to apply:** All work should maintain AINative branding, use api.ainative.studio as base URL, and respect the dual-provider architecture being built (issue #65). The Anthropic adapter bug (#64) is a known issue with Claude models.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ZeroDB Project ID for Cody CLI
|
|
3
|
-
description: ZeroDB project ID 29e8754c-c67d-4a74-9167-a069d87ab1aa for Cody CLI session memory and vector storage
|
|
4
|
-
type: reference
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
ZeroDB project for Cody CLI:
|
|
8
|
-
- **Project ID**: `29e8754c-c67d-4a74-9167-a069d87ab1aa`
|
|
9
|
-
- **Project Name**: "Cody CLI"
|
|
10
|
-
- **MCP endpoint**: `https://api.ainative.studio/v1/mcp/zerodb-mcp/messages`
|
|
11
|
-
- **Stored in**: `.env` as `ZERODB_PROJECT_ID`
|
|
12
|
-
- **Created**: 2026-04-04
|
package/.claude/settings.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(curl:*)",
|
|
5
|
-
"Bash(git:*)",
|
|
6
|
-
"Bash(ls:*)",
|
|
7
|
-
"Bash(cat:*)",
|
|
8
|
-
"Bash(find:*)",
|
|
9
|
-
"Bash(npm:*)",
|
|
10
|
-
"Bash(npx:*)",
|
|
11
|
-
"Bash(bun:*)",
|
|
12
|
-
"Bash(node:*)",
|
|
13
|
-
"Bash(python:*)",
|
|
14
|
-
"Bash(python3:*)",
|
|
15
|
-
"Bash(gh:*)",
|
|
16
|
-
"Bash(tree:*)",
|
|
17
|
-
"Bash(chmod:*)",
|
|
18
|
-
"Bash(mkdir:*)",
|
|
19
|
-
"Bash(cp:*)",
|
|
20
|
-
"Bash(mv:*)",
|
|
21
|
-
"Bash(bash:*)",
|
|
22
|
-
"Bash(rm:*)",
|
|
23
|
-
"Bash(touch:*)",
|
|
24
|
-
"Bash(head:*)",
|
|
25
|
-
"Bash(tail:*)",
|
|
26
|
-
"Bash(wc:*)"
|
|
27
|
-
],
|
|
28
|
-
"deny": []
|
|
29
|
-
}
|
|
30
|
-
}
|
package/.cody/mcp.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"zerodb-memory": {
|
|
4
|
-
"type": "http",
|
|
5
|
-
"url": "https://api.ainative.studio/v1/mcp/zerodb-memory-mcp/messages",
|
|
6
|
-
"headers": {
|
|
7
|
-
"x-api-key": "sk_nLI6DrYP9h7qrac9t876Wj4e3iV-zsk5YXUv0S-ttkM"
|
|
8
|
-
},
|
|
9
|
-
"description": "ZeroDB agent memory - store, search, and manage conversation context"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|