@hasna/project 0.1.3 → 0.1.4
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/README.md +25 -25
- package/dist/cli/index.js +6 -6
- package/dist/mcp/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,58 +5,58 @@ Project management CLI + MCP server for AI agents. Register projects once, open
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
bun install -g @hasna/
|
|
8
|
+
bun install -g @hasna/project
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## CLI
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
# Register a project
|
|
15
|
-
|
|
15
|
+
project create --name my-app --path /path/to/my-app
|
|
16
16
|
|
|
17
17
|
# List projects
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
project list
|
|
19
|
+
project list --status archived
|
|
20
20
|
|
|
21
21
|
# Get details
|
|
22
|
-
|
|
22
|
+
project get my-app
|
|
23
23
|
|
|
24
24
|
# Open a project (cd into it)
|
|
25
|
-
cd $(
|
|
25
|
+
cd $(project open my-app)
|
|
26
26
|
|
|
27
27
|
# Update metadata
|
|
28
|
-
|
|
28
|
+
project update my-app --description "My app" --tags "web,ts"
|
|
29
29
|
|
|
30
30
|
# Archive / unarchive
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
project archive my-app
|
|
32
|
+
project unarchive my-app
|
|
33
33
|
|
|
34
34
|
# Import existing directories
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
project import /path/to/existing-project
|
|
36
|
+
project import-bulk /path/to/workspace # imports all subdirs
|
|
37
37
|
|
|
38
38
|
# Sync to/from S3
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
project update my-app --s3-bucket my-bucket
|
|
40
|
+
project sync my-app
|
|
41
|
+
project sync my-app --direction push
|
|
42
|
+
project sync-all # sync all projects with S3 configured
|
|
43
43
|
|
|
44
44
|
# Schedule auto-sync
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
project schedule set --interval daily --direction both
|
|
46
|
+
project schedule status
|
|
47
|
+
project schedule remove
|
|
48
48
|
|
|
49
49
|
# Publish to GitHub
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
project publish my-app --org hasnaxyz
|
|
51
|
+
project unpublish my-app
|
|
52
52
|
|
|
53
53
|
# Git passthrough
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
project git my-app status
|
|
55
|
+
project git my-app log --oneline -10
|
|
56
56
|
|
|
57
57
|
# Shell completion
|
|
58
|
-
eval "$(
|
|
59
|
-
eval "$(
|
|
58
|
+
eval "$(project completion)" # bash
|
|
59
|
+
eval "$(project completion --shell zsh)" # zsh
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
## MCP Server
|
|
@@ -67,7 +67,7 @@ Add to your Claude config:
|
|
|
67
67
|
{
|
|
68
68
|
"mcpServers": {
|
|
69
69
|
"open-projects": {
|
|
70
|
-
"command": "
|
|
70
|
+
"command": "project-mcp"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -45955,12 +45955,12 @@ ${buildWorkdirList(allWorkdirs, workdir.path)}
|
|
|
45955
45955
|
## Instructions for AI Agents
|
|
45956
45956
|
|
|
45957
45957
|
1. **Write code in \`${workdir.path}\`** \u2014 this is your working directory for this session.
|
|
45958
|
-
2. Use \`
|
|
45959
|
-
3. Use \`
|
|
45958
|
+
2. Use \`project sync ${project.slug}\` to push changes to S3.
|
|
45959
|
+
3. Use \`project git ${project.slug} <args>\` to run git commands.
|
|
45960
45960
|
4. If you need to switch to a different workdir, call \`projects_open\` with the project ID.
|
|
45961
45961
|
|
|
45962
45962
|
---
|
|
45963
|
-
*Generated by open-projects. Regenerate: \`
|
|
45963
|
+
*Generated by open-projects. Regenerate: \`project workdir generate ${project.slug}\`*
|
|
45964
45964
|
`.trimStart();
|
|
45965
45965
|
}
|
|
45966
45966
|
function agentsMdContent(project, workdir, allWorkdirs) {
|
|
@@ -45999,11 +45999,11 @@ ${otherDirs.map((w2) => `- \`${w2.path}\` [${w2.label}] on ${w2.machine_id}`).jo
|
|
|
45999
45999
|
cd ${workdir.path}
|
|
46000
46000
|
|
|
46001
46001
|
# Sync to S3
|
|
46002
|
-
|
|
46002
|
+
project sync ${project.slug}
|
|
46003
46003
|
|
|
46004
46004
|
# Git operations
|
|
46005
|
-
|
|
46006
|
-
|
|
46005
|
+
project git ${project.slug} status
|
|
46006
|
+
project git ${project.slug} log --oneline -10
|
|
46007
46007
|
\`\`\`
|
|
46008
46008
|
${Object.keys(project.integrations).length ? `
|
|
46009
46009
|
## Service IDs
|
package/dist/mcp/index.js
CHANGED
|
@@ -47432,12 +47432,12 @@ ${buildWorkdirList(allWorkdirs, workdir.path)}
|
|
|
47432
47432
|
## Instructions for AI Agents
|
|
47433
47433
|
|
|
47434
47434
|
1. **Write code in \`${workdir.path}\`** \u2014 this is your working directory for this session.
|
|
47435
|
-
2. Use \`
|
|
47436
|
-
3. Use \`
|
|
47435
|
+
2. Use \`project sync ${project.slug}\` to push changes to S3.
|
|
47436
|
+
3. Use \`project git ${project.slug} <args>\` to run git commands.
|
|
47437
47437
|
4. If you need to switch to a different workdir, call \`projects_open\` with the project ID.
|
|
47438
47438
|
|
|
47439
47439
|
---
|
|
47440
|
-
*Generated by open-projects. Regenerate: \`
|
|
47440
|
+
*Generated by open-projects. Regenerate: \`project workdir generate ${project.slug}\`*
|
|
47441
47441
|
`.trimStart();
|
|
47442
47442
|
}
|
|
47443
47443
|
function agentsMdContent(project, workdir, allWorkdirs) {
|
|
@@ -47476,11 +47476,11 @@ ${otherDirs.map((w2) => `- \`${w2.path}\` [${w2.label}] on ${w2.machine_id}`).jo
|
|
|
47476
47476
|
cd ${workdir.path}
|
|
47477
47477
|
|
|
47478
47478
|
# Sync to S3
|
|
47479
|
-
|
|
47479
|
+
project sync ${project.slug}
|
|
47480
47480
|
|
|
47481
47481
|
# Git operations
|
|
47482
|
-
|
|
47483
|
-
|
|
47482
|
+
project git ${project.slug} status
|
|
47483
|
+
project git ${project.slug} log --oneline -10
|
|
47484
47484
|
\`\`\`
|
|
47485
47485
|
${Object.keys(project.integrations).length ? `
|
|
47486
47486
|
## Service IDs
|
package/package.json
CHANGED