@delega-dev/cli 1.0.1 → 1.0.3

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.
@@ -0,0 +1,26 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 22
18
+ cache: npm
19
+
20
+ - run: npm ci
21
+
22
+ - name: Type check
23
+ run: npx tsc --noEmit
24
+
25
+ - name: Build
26
+ run: npm run build
@@ -0,0 +1,68 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 22
22
+ cache: npm
23
+ registry-url: https://registry.npmjs.org
24
+
25
+ - run: npm ci
26
+
27
+ - name: Type check
28
+ run: npx tsc --noEmit
29
+
30
+ - name: Build
31
+ run: npm run build
32
+
33
+ - name: Verify package version matches tag
34
+ run: |
35
+ PKG_VERSION=$(node -p "require('./package.json').version")
36
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
37
+ if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
38
+ echo "❌ package.json version ($PKG_VERSION) doesn't match tag ($TAG_VERSION)"
39
+ exit 1
40
+ fi
41
+
42
+ - name: Publish to npm
43
+ run: npm publish --access public
44
+ env:
45
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
+
47
+ - name: Generate changelog
48
+ id: changelog
49
+ run: |
50
+ PREV_TAG=$(git tag --sort=-v:refname | sed -n '2p')
51
+ if [ -n "$PREV_TAG" ]; then
52
+ echo "## Changes since $PREV_TAG" > /tmp/changelog.md
53
+ echo "" >> /tmp/changelog.md
54
+ git log "$PREV_TAG"..HEAD --pretty=format:"- %s (%h)" --no-merges >> /tmp/changelog.md
55
+ else
56
+ echo "## Initial release" > /tmp/changelog.md
57
+ echo "" >> /tmp/changelog.md
58
+ git log --pretty=format:"- %s (%h)" --no-merges >> /tmp/changelog.md
59
+ fi
60
+ cat /tmp/changelog.md
61
+
62
+ - name: Create GitHub Release
63
+ env:
64
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65
+ run: |
66
+ gh release create "${{ github.ref_name }}" \
67
+ --title "${{ github.ref_name }}" \
68
+ --notes-file /tmp/changelog.md
package/README.md CHANGED
@@ -15,7 +15,7 @@ CLI for the Delega task API. Manage tasks, agents, and delegations from your ter
15
15
  ## Installation
16
16
 
17
17
  ```bash
18
- npm install -g delega-cli
18
+ npm install -g @delega-dev/cli
19
19
  ```
20
20
 
21
21
  ## Quick Start
@@ -50,7 +50,7 @@ const tasksList = new Command("list")
50
50
  const tasksCreate = new Command("create")
51
51
  .description("Create a new task")
52
52
  .argument("<content>", "Task content")
53
- .option("--priority <n>", "Priority 1-4 (default: 1)", parseInt, 1)
53
+ .option("--priority <n>", "Priority 1-4 (default: 1)", (v) => parseInt(v, 10), 1)
54
54
  .option("--labels <labels>", "Comma-separated labels")
55
55
  .option("--due <date>", "Due date (YYYY-MM-DD)")
56
56
  .option("--json", "Output raw JSON")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delega-dev/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "CLI for Delega task API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,17 +26,19 @@
26
26
  },
27
27
  "keywords": [
28
28
  "delega",
29
- "ai-agents",
30
29
  "task-management",
30
+ "ai-agents",
31
31
  "mcp",
32
- "cli",
33
- "delegation",
34
- "agent-infrastructure"
32
+ "cli"
35
33
  ],
36
34
  "engines": {
37
35
  "node": ">=18.0.0"
38
36
  },
39
37
  "publishConfig": {
40
38
  "access": "public"
39
+ },
40
+ "homepage": "https://delega.dev",
41
+ "bugs": {
42
+ "url": "https://github.com/delega-dev/delega-cli/issues"
41
43
  }
42
44
  }
@@ -83,7 +83,7 @@ const tasksList = new Command("list")
83
83
  const tasksCreate = new Command("create")
84
84
  .description("Create a new task")
85
85
  .argument("<content>", "Task content")
86
- .option("--priority <n>", "Priority 1-4 (default: 1)", parseInt, 1)
86
+ .option("--priority <n>", "Priority 1-4 (default: 1)", (v: string) => parseInt(v, 10), 1)
87
87
  .option("--labels <labels>", "Comma-separated labels")
88
88
  .option("--due <date>", "Due date (YYYY-MM-DD)")
89
89
  .option("--json", "Output raw JSON")