@zweer/dev 1.3.0 → 2.0.0

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.
Files changed (131) hide show
  1. package/README.md +68 -795
  2. package/configs/_biome.json +38 -0
  3. package/configs/commitlint.config.ts +1 -0
  4. package/configs/editorconfig +16 -0
  5. package/configs/lefthook.yml +38 -0
  6. package/configs/lockfile-lintrc.json +6 -0
  7. package/configs/npmpackagejsonlintrc.json +34 -0
  8. package/configs/tsconfig.json +9 -0
  9. package/configs/tsdown.config.ts +8 -0
  10. package/configs/vitest.config.ts +12 -0
  11. package/dist/index.d.mts +1 -0
  12. package/dist/index.mjs +247 -0
  13. package/dist/index.mjs.map +1 -0
  14. package/kiro/agents/zweer-setup.json +38 -0
  15. package/kiro/prompts/zweer-setup.md +55 -0
  16. package/kiro/skills/agent-template/SKILL.md +22 -0
  17. package/kiro/skills/agent-template/references/base.json +38 -0
  18. package/kiro/skills/agent-template/references/example-monorepo-library.json +60 -0
  19. package/kiro/skills/agent-template/references/example-webapp-vercel.json +54 -0
  20. package/kiro/skills/prompt-template/SKILL.md +23 -0
  21. package/kiro/skills/prompt-template/references/example-library.md +56 -0
  22. package/kiro/skills/prompt-template/references/example-webapp.md +57 -0
  23. package/kiro/skills/skill-templates/SKILL.md +23 -0
  24. package/kiro/skills/skill-templates/references/new-package.md +72 -0
  25. package/kiro/skills/steering-templates/SKILL.md +31 -0
  26. package/kiro/skills/steering-templates/references/build-tooling.md +62 -0
  27. package/kiro/skills/steering-templates/references/code-style.md +83 -0
  28. package/kiro/skills/steering-templates/references/commit-conventions.md +58 -0
  29. package/kiro/skills/steering-templates/references/interaction.md +41 -0
  30. package/kiro/skills/steering-templates/references/testing.md +61 -0
  31. package/kiro/steering/build-tooling.md +62 -0
  32. package/kiro/steering/code-style.md +83 -0
  33. package/kiro/steering/commit-conventions.md +58 -0
  34. package/kiro/steering/interaction.md +41 -0
  35. package/kiro/steering/testing.md +61 -0
  36. package/package.json +42 -57
  37. package/templates/monorepo/CHANGELOG.md +5 -0
  38. package/templates/monorepo/README.md +22 -0
  39. package/templates/monorepo/package.json +30 -0
  40. package/templates/monorepo/packages/core/CHANGELOG.md +5 -0
  41. package/templates/monorepo/packages/core/README.md +21 -0
  42. package/templates/monorepo/packages/core/package.json +28 -0
  43. package/templates/monorepo/packages/core/src/index.ts +3 -0
  44. package/templates/monorepo/packages/core/test/index.test.ts +9 -0
  45. package/templates/monorepo/tsdown.config.ts +12 -0
  46. package/templates/monorepo/vitest.config.ts +12 -0
  47. package/templates/single/CHANGELOG.md +5 -0
  48. package/templates/single/README.md +30 -0
  49. package/templates/single/package.json +38 -0
  50. package/templates/single/src/index.ts +3 -0
  51. package/templates/single/test/index.test.ts +9 -0
  52. package/templates/single/tsdown.config.ts +11 -0
  53. package/workflows/base/ci.yml +24 -0
  54. package/workflows/base/dependabot-auto-merge.yml +43 -0
  55. package/workflows/base/dependabot-lockfile.yml +34 -0
  56. package/workflows/base/dependabot.yml +39 -0
  57. package/workflows/base/pr.yml +41 -0
  58. package/workflows/base/security.yml +25 -0
  59. package/workflows/docs/docs.yml +47 -0
  60. package/workflows/library/npm.yml +45 -0
  61. package/agents/data/zweer_data_engineer.md +0 -436
  62. package/agents/design/zweer_ui_designer.md +0 -171
  63. package/agents/design/zweer_ui_ux.md +0 -124
  64. package/agents/infrastructure/zweer_infra_cdk.md +0 -701
  65. package/agents/infrastructure/zweer_infra_devops.md +0 -148
  66. package/agents/infrastructure/zweer_infra_observability.md +0 -610
  67. package/agents/infrastructure/zweer_infra_terraform.md +0 -658
  68. package/agents/mobile/zweer_mobile_android.md +0 -636
  69. package/agents/mobile/zweer_mobile_flutter.md +0 -623
  70. package/agents/mobile/zweer_mobile_ionic.md +0 -550
  71. package/agents/mobile/zweer_mobile_ios.md +0 -504
  72. package/agents/mobile/zweer_mobile_react_native.md +0 -561
  73. package/agents/quality/zweer_qa_documentation.md +0 -202
  74. package/agents/quality/zweer_qa_performance.md +0 -160
  75. package/agents/quality/zweer_qa_security.md +0 -197
  76. package/agents/quality/zweer_qa_testing.md +0 -189
  77. package/agents/services/zweer_svc_api_gateway.md +0 -553
  78. package/agents/services/zweer_svc_containers.md +0 -575
  79. package/agents/services/zweer_svc_lambda.md +0 -373
  80. package/agents/services/zweer_svc_messaging.md +0 -543
  81. package/agents/services/zweer_svc_microservices.md +0 -502
  82. package/agents/web/zweer_web_api_integration.md +0 -500
  83. package/agents/web/zweer_web_backend.md +0 -358
  84. package/agents/web/zweer_web_database.md +0 -357
  85. package/agents/web/zweer_web_frontend.md +0 -375
  86. package/agents/web/zweer_web_reader.md +0 -229
  87. package/agents/write/zweer_write_content.md +0 -499
  88. package/agents/write/zweer_write_narrative.md +0 -409
  89. package/agents/write/zweer_write_style.md +0 -247
  90. package/agents/write/zweer_write_warmth.md +0 -282
  91. package/cli/commands/bootstrap.d.ts +0 -4
  92. package/cli/commands/bootstrap.js +0 -377
  93. package/cli/commands/cao/agent/create.d.ts +0 -25
  94. package/cli/commands/cao/agent/create.js +0 -221
  95. package/cli/commands/cao/agent/index.d.ts +0 -2
  96. package/cli/commands/cao/agent/index.js +0 -8
  97. package/cli/commands/cao/agent/list.d.ts +0 -3
  98. package/cli/commands/cao/agent/list.js +0 -29
  99. package/cli/commands/cao/agent/remove.d.ts +0 -5
  100. package/cli/commands/cao/agent/remove.js +0 -39
  101. package/cli/commands/cao/index.d.ts +0 -2
  102. package/cli/commands/cao/index.js +0 -20
  103. package/cli/commands/cao/install.d.ts +0 -10
  104. package/cli/commands/cao/install.js +0 -59
  105. package/cli/commands/cao/launch.d.ts +0 -3
  106. package/cli/commands/cao/launch.js +0 -21
  107. package/cli/commands/cao/list.d.ts +0 -6
  108. package/cli/commands/cao/list.js +0 -36
  109. package/cli/commands/cao/server.d.ts +0 -3
  110. package/cli/commands/cao/server.js +0 -20
  111. package/cli/commands/cao/status.d.ts +0 -2
  112. package/cli/commands/cao/status.js +0 -25
  113. package/cli/commands/cao/sync.d.ts +0 -6
  114. package/cli/commands/cao/sync.js +0 -52
  115. package/cli/commands/cao/uninstall.d.ts +0 -2
  116. package/cli/commands/cao/uninstall.js +0 -16
  117. package/cli/commands/setup.d.ts +0 -4
  118. package/cli/commands/setup.js +0 -346
  119. package/cli/index.d.ts +0 -2
  120. package/cli/index.js +0 -13
  121. package/cli/utils/agents.d.ts +0 -8
  122. package/cli/utils/agents.js +0 -55
  123. package/cli/utils/cao.d.ts +0 -11
  124. package/cli/utils/cao.js +0 -56
  125. package/cli/utils/paths.d.ts +0 -5
  126. package/cli/utils/paths.js +0 -11
  127. package/templates/orchestrator_lambda.md +0 -263
  128. package/templates/orchestrator_microservices.md +0 -345
  129. package/templates/orchestrator_mobile.md +0 -199
  130. package/templates/orchestrator_webapp.md +0 -190
  131. package/templates/orchestrator_writing.md +0 -306
@@ -0,0 +1,9 @@
1
+ import { describe, expect, it } from 'vitest';
2
+
3
+ import { hello } from '../src/index.js';
4
+
5
+ describe('hello', () => {
6
+ it('should greet by name', () => {
7
+ expect(hello('World')).toBe('Hello, World!');
8
+ });
9
+ });
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'tsdown';
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ dts: true,
6
+ sourcemap: true,
7
+ format: 'esm',
8
+ exports: true,
9
+ publint: 'ci-only',
10
+ attw: { enabled: 'ci-only', profile: 'esm-only' },
11
+ });
@@ -0,0 +1,24 @@
1
+ name: CI
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ jobs:
10
+ test:
11
+ name: Test & Lint
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v6
15
+
16
+ - uses: actions/setup-node@v6
17
+ with:
18
+ node-version: lts/*
19
+ cache: npm
20
+
21
+ - run: npm ci
22
+ - run: npm run build
23
+ - run: npm run test:coverage
24
+ - run: npm run lint
@@ -0,0 +1,43 @@
1
+ name: Dependabot Auto-Merge
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened]
6
+ check_suite:
7
+ types: [completed]
8
+
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write
12
+
13
+ jobs:
14
+ auto-merge:
15
+ name: Auto-merge Dependabot PRs
16
+ runs-on: ubuntu-latest
17
+ if: |
18
+ github.actor == 'dependabot[bot]' &&
19
+ (github.event_name == 'pull_request' || github.event.check_suite.conclusion == 'success')
20
+ steps:
21
+ - name: Dependabot metadata
22
+ id: metadata
23
+ uses: dependabot/fetch-metadata@v2.5.0
24
+ with:
25
+ github-token: ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name: Enable auto-merge for Dependabot PRs
28
+ if: |
29
+ steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
30
+ steps.metadata.outputs.update-type == 'version-update:semver-minor'
31
+ run: gh pr merge --auto --squash "$PR_URL"
32
+ env:
33
+ PR_URL: ${{ github.event.pull_request.html_url }}
34
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - name: Approve PR
37
+ if: |
38
+ steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
39
+ steps.metadata.outputs.update-type == 'version-update:semver-minor'
40
+ run: gh pr review --approve "$PR_URL"
41
+ env:
42
+ PR_URL: ${{ github.event.pull_request.html_url }}
43
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,34 @@
1
+ name: Dependabot Lockfile Fix
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - 'package.json'
7
+ - 'packages/*/package.json'
8
+
9
+ permissions:
10
+ contents: write
11
+
12
+ jobs:
13
+ fix-lockfile:
14
+ if: github.actor == 'dependabot[bot]'
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+ with:
19
+ ref: ${{ github.head_ref }}
20
+ token: ${{ secrets.GITHUB_TOKEN }}
21
+
22
+ - uses: actions/setup-node@v6
23
+ with:
24
+ node-version: lts/*
25
+
26
+ - run: npm i --package-lock-only
27
+
28
+ - name: Commit updated lockfile
29
+ run: |
30
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
31
+ git config user.name "github-actions[bot]"
32
+ git add package-lock.json
33
+ git diff --cached --quiet || git commit -m "fix: :lock: regenerate lockfile with Node 20"
34
+ git push
@@ -0,0 +1,39 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ day: monday
8
+ time: "03:00"
9
+ open-pull-requests-limit: 10
10
+ commit-message:
11
+ prefix: "perf"
12
+ prefix-development: "chore"
13
+ include: "scope"
14
+ labels:
15
+ - dependencies
16
+ - automated
17
+ groups:
18
+ development-dependencies:
19
+ dependency-type: development
20
+ update-types:
21
+ - minor
22
+ - patch
23
+ production-dependencies:
24
+ dependency-type: production
25
+ update-types:
26
+ - minor
27
+ - patch
28
+
29
+ - package-ecosystem: github-actions
30
+ directory: /
31
+ schedule:
32
+ interval: weekly
33
+ day: monday
34
+ time: "03:00"
35
+ commit-message:
36
+ prefix: "ci"
37
+ labels:
38
+ - github-actions
39
+ - automated
@@ -0,0 +1,41 @@
1
+ name: PR
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened, edited]
6
+
7
+ permissions:
8
+ contents: read
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ ci:
13
+ uses: ./.github/workflows/ci.yml
14
+
15
+ validate:
16
+ name: Validate PR
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Validate PR title (Conventional Commits)
20
+ uses: amannn/action-semantic-pull-request@v6
21
+ env:
22
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ with:
24
+ types: |
25
+ feat
26
+ fix
27
+ docs
28
+ style
29
+ refactor
30
+ perf
31
+ test
32
+ build
33
+ ci
34
+ chore
35
+ revert
36
+ requireScope: false
37
+ subjectPattern: ^[A-Z].+$
38
+ subjectPatternError: |
39
+ The subject "{subject}" found in the pull request title "{title}"
40
+ didn't match the configured pattern. Please ensure that the subject
41
+ starts with an uppercase character.
@@ -0,0 +1,25 @@
1
+ name: Security Audit
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 3 * * 1'
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ audit:
13
+ name: Audit Dependencies
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v6
17
+
18
+ - uses: actions/setup-node@v6
19
+ with:
20
+ node-version: lts/*
21
+ cache: npm
22
+
23
+ - run: npm ci
24
+ - run: npm audit --audit-level=moderate
25
+ - run: npm outdated || true
@@ -0,0 +1,47 @@
1
+ name: Deploy Docs
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [main]
7
+ paths: ['docs/**']
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ concurrency:
15
+ group: pages
16
+ cancel-in-progress: false
17
+
18
+ jobs:
19
+ build:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v6
23
+ with:
24
+ fetch-depth: 0
25
+
26
+ - uses: actions/setup-node@v6
27
+ with:
28
+ node-version: lts/*
29
+ cache: npm
30
+
31
+ - run: npm ci
32
+ - run: npm run docs:build
33
+
34
+ - uses: actions/upload-pages-artifact@v4
35
+ with:
36
+ path: docs/.vitepress/dist
37
+
38
+ deploy:
39
+ environment:
40
+ name: github-pages
41
+ url: ${{ steps.deployment.outputs.page_url }}
42
+ needs: build
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - name: Deploy to GitHub Pages
46
+ id: deployment
47
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,45 @@
1
+ name: Release to npm
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ ci:
12
+ uses: ./.github/workflows/ci.yml
13
+
14
+ release:
15
+ name: Release
16
+ runs-on: ubuntu-latest
17
+ needs: ci
18
+ permissions:
19
+ contents: write
20
+ issues: write
21
+ pull-requests: write
22
+ id-token: write
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+ with:
26
+ fetch-depth: 0
27
+ token: ${{ secrets.GITHUB_TOKEN }}
28
+
29
+ - run: |
30
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
31
+ git config user.name "github-actions[bot]"
32
+
33
+ - uses: actions/setup-node@v6
34
+ with:
35
+ node-version: lts/*
36
+ cache: npm
37
+ registry-url: 'https://registry.npmjs.org'
38
+
39
+ - run: npm ci
40
+ - run: npm run build
41
+
42
+ - name: Release
43
+ run: npx bonvoy shipit
44
+ env:
45
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}