@jenga-ai/agent 1.2.4 → 1.3.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 (42) hide show
  1. package/README.md +1 -0
  2. package/agents/developer.md +18 -0
  3. package/agents/scrum-master.md +1 -0
  4. package/agents/tester.md +18 -0
  5. package/hooks/on_session_end.sh +27 -0
  6. package/package.json +18 -17
  7. package/skills/commit/SKILL.md +11 -1
  8. package/skills/dev-done/SKILL.md +46 -0
  9. package/skills/dev-done/scripts/classify-commit-outcome.sh +114 -0
  10. package/skills/init/SKILL.md +7 -6
  11. package/skills/init/assets/scope-thresholds_template.json +7 -0
  12. package/skills/init/scripts/init.sh +6 -0
  13. package/skills/publish/SKILL.md +66 -0
  14. package/skills/publish/adapters/npm-ci.md +34 -0
  15. package/skills/publish/adapters/npm.md +18 -0
  16. package/skills/publish/assets/ci-contract.md +27 -0
  17. package/skills/publish/assets/publish.example.json +27 -0
  18. package/skills/publish/schemas/publish.schema.json +20 -0
  19. package/skills/publish/scripts/npm_ci_pipeline.sh +29 -0
  20. package/skills/publish/scripts/npm_stage_inspect.sh +829 -0
  21. package/skills/publish/scripts/npm_stage_pipeline.sh +427 -0
  22. package/skills/publish/scripts/publish_common.sh +16 -0
  23. package/skills/publish/scripts/show_history.sh +12 -5
  24. package/skills/publish/scripts/validate_npm_stage_env.sh +184 -0
  25. package/skills/publish/scripts/write_ledger_entry.sh +92 -2
  26. package/skills/reconcile/SKILL.md +121 -11
  27. package/skills/reconcile/assets/report_format.md +17 -0
  28. package/skills/reconcile/scripts/resolve-reconcile-scope.sh +489 -0
  29. package/skills/uncharted/SKILL.md +200 -21
  30. package/skills/uncharted/scripts/directory-triage.sh +342 -0
  31. package/skills/uncharted/scripts/elicitation-state.sh +457 -0
  32. package/templates/SCRUM_BOARD_SCHEMA.md +57 -0
  33. package/templates/agent-context.md.tpl +23 -11
  34. package/templates/copilot-instructions.md.tpl +21 -11
  35. package/mcp/router/README.md +0 -19
  36. package/mcp/router/embedder.js +0 -23
  37. package/mcp/router/index.js +0 -204
  38. package/mcp/router/matcher.js +0 -87
  39. package/mcp/router/package-lock.json +0 -1048
  40. package/mcp/router/package.json +0 -11
  41. package/mcp/router/skill-index.js +0 -104
  42. package/skills/route/SKILL.md +0 -180
@@ -237,6 +237,26 @@
237
237
  "minLength": 1,
238
238
  "pattern": "^[a-z0-9][a-z0-9._-]*$",
239
239
  "default": "latest"
240
+ },
241
+ "stage": {
242
+ "$ref": "#/definitions/npmStageSettings"
243
+ }
244
+ }
245
+ },
246
+ "npmStageSettings": {
247
+ "description": "Optional settings for `/publish stage` on an npm or npm-ci target. Absent entirely on targets that don't use staged publishing.",
248
+ "type": "object",
249
+ "additionalProperties": false,
250
+ "properties": {
251
+ "smoke_cmd": {
252
+ "description": "Command that `stage test` runs against the installed staged tarball. When absent, `stage test` falls back to a documented default.",
253
+ "type": "string",
254
+ "minLength": 1
255
+ },
256
+ "require_test_before_approve": {
257
+ "description": "When true, `stage approve` refuses without a recorded successful test for that stage id. Defaults to true.",
258
+ "type": "boolean",
259
+ "default": true
240
260
  }
241
261
  }
242
262
  },
@@ -160,6 +160,15 @@ WORKFLOW_YAML="$(cat <<EOF
160
160
  name: "Publish — ${PACKAGE_NAME}"
161
161
  on:
162
162
  workflow_dispatch:
163
+ inputs:
164
+ mode:
165
+ description: "publish (default) or stage — dispatched by npm_stage_pipeline.sh with mode=stage for /publish stage"
166
+ required: false
167
+ default: publish
168
+ type: choice
169
+ options:
170
+ - publish
171
+ - stage
163
172
 
164
173
  permissions:
165
174
  id-token: write
@@ -167,6 +176,7 @@ permissions:
167
176
 
168
177
  jobs:
169
178
  publish:
179
+ if: \${{ github.event.inputs.mode == 'publish' || github.event.inputs.mode == '' }}
170
180
  runs-on: ubuntu-latest
171
181
  steps:
172
182
  - name: Checkout
@@ -183,6 +193,25 @@ jobs:
183
193
 
184
194
  - name: Publish to npm
185
195
  run: npm publish --provenance --access ${NPM_ACCESS} --tag ${DIST_TAG}
196
+
197
+ stage:
198
+ if: \${{ github.event.inputs.mode == 'stage' }}
199
+ runs-on: ubuntu-latest
200
+ steps:
201
+ - name: Checkout
202
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
203
+
204
+ - name: Setup Node.js
205
+ uses: actions/setup-node@v4
206
+ with:
207
+ node-version: lts/*
208
+ registry-url: https://registry.npmjs.org
209
+
210
+ - name: Install dependencies
211
+ run: npm ci
212
+
213
+ - name: Stage to npm
214
+ run: npm stage publish --provenance --access ${NPM_ACCESS} --tag ${DIST_TAG}
186
215
  EOF
187
216
  )"
188
217