@delega-dev/cli 1.0.2 → 1.0.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.
@@ -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,66 @@
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
+ run: |
49
+ PREV_TAG=$(git tag --sort=-v:refname | sed -n '2p')
50
+ if [ -n "$PREV_TAG" ]; then
51
+ echo "## Changes since $PREV_TAG" > /tmp/changelog.md
52
+ echo "" >> /tmp/changelog.md
53
+ git log "$PREV_TAG"..HEAD --pretty=format:"- %s (%h)" --no-merges >> /tmp/changelog.md
54
+ else
55
+ echo "## Initial release" > /tmp/changelog.md
56
+ echo "" >> /tmp/changelog.md
57
+ git log --pretty=format:"- %s (%h)" --no-merges >> /tmp/changelog.md
58
+ fi
59
+
60
+ - name: Create GitHub Release
61
+ env:
62
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63
+ run: |
64
+ gh release create "${{ github.ref_name }}" \
65
+ --title "${{ github.ref_name }}" \
66
+ --notes-file /tmp/changelog.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delega-dev/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "CLI for Delega task API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,17 +26,20 @@
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
- "access": "public"
38
+ "access": "public",
39
+ "registry": "https://registry.npmjs.org/"
40
+ },
41
+ "homepage": "https://delega.dev",
42
+ "bugs": {
43
+ "url": "https://github.com/delega-dev/delega-cli/issues"
41
44
  }
42
45
  }