@copado/agentia-cli 0.120.0-alpha.0 → 0.122.0-alpha.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.
- package/CHANGELOG.md +725 -0
- package/README.md +242 -240
- package/dist/commands/cicd/work/done.js +2 -1
- package/dist/commands/cicd/work/done.js.map +1 -1
- package/dist/commands/cicd/work/publish.js +2 -1
- package/dist/commands/cicd/work/publish.js.map +1 -1
- package/dist/commands/cicd/work/push.js +2 -1
- package/dist/commands/cicd/work/push.js.map +1 -1
- package/dist/commands/cicd/work/set.js +12 -5
- package/dist/commands/cicd/work/set.js.map +1 -1
- package/dist/commands/cicd/work/submit.js +134 -132
- package/dist/commands/cicd/work/submit.js.map +1 -1
- package/dist/lib/agentia-command.d.ts +1 -0
- package/dist/lib/agentia-command.js +14 -1
- package/dist/lib/agentia-command.js.map +1 -1
- package/dist/lib/command-output-buffer.d.ts +31 -0
- package/dist/lib/command-output-buffer.js +124 -0
- package/dist/lib/command-output-buffer.js.map +1 -0
- package/dist/lib/git-worktree.d.ts +9 -1
- package/dist/lib/git-worktree.js +41 -14
- package/dist/lib/git-worktree.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +20 -8
- package/dist/lib/mcp/work-tools.d.ts +20 -8
- package/dist/lib/mcp/work-tools.js +100 -98
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/work-publish-command.js +1 -1
- package/dist/lib/work-publish-command.js.map +1 -1
- package/dist/lib/work-push.d.ts +2 -0
- package/dist/lib/work-push.js +20 -6
- package/dist/lib/work-push.js.map +1 -1
- package/dist/lib/work-types.d.ts +10 -0
- package/dist/lib/work-types.js.map +1 -1
- package/dist/lib/yaml-replacement.d.ts +1 -0
- package/dist/lib/yaml-replacement.js +1 -0
- package/dist/lib/yaml-replacement.js.map +1 -1
- package/oclif.manifest.json +638 -638
- package/package.json +8 -2
- package/templates/skills/agentia-cicd/references/work.md +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copado/agentia-cli",
|
|
3
3
|
"description": "Command-line interface for Agentia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.122.0-alpha.0",
|
|
5
5
|
"author": "Copado Solutions",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentia": "./bin/run.js"
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"./bin",
|
|
49
49
|
"./dist",
|
|
50
50
|
"./oclif.manifest.json",
|
|
51
|
+
"./CHANGELOG.md",
|
|
51
52
|
"./templates",
|
|
52
53
|
"./vendor/java"
|
|
53
54
|
],
|
|
@@ -238,6 +239,11 @@
|
|
|
238
239
|
"pretest": "shx rm -rf dist oclif.manifest.json",
|
|
239
240
|
"package:prepare": "npm run build && oclif manifest && oclif readme && node scripts/align-alpha-readme.mjs",
|
|
240
241
|
"package:verify": "npm run security:gate && node scripts/verify-package.mjs",
|
|
242
|
+
"changelog:check": "node scripts/check-changelog.mjs",
|
|
243
|
+
"release:prepare-prerelease": "node scripts/prepare-prerelease.mjs",
|
|
244
|
+
"release:prepare": "node scripts/prepare-release.mjs",
|
|
245
|
+
"package:release": "node scripts/package-release.mjs",
|
|
246
|
+
"publish:npm": "node scripts/publish-release.mjs",
|
|
241
247
|
"prepack": "npm run package:prepare",
|
|
242
248
|
"security:gate": "node scripts/security-scan.mjs --gate",
|
|
243
249
|
"security:scan": "node scripts/security-scan.mjs",
|
|
@@ -259,7 +265,7 @@
|
|
|
259
265
|
"test:integration:promotion": "mocha --forbid-only \"test/integration/promotion.integration.ts\"",
|
|
260
266
|
"test:integration:read": "mocha --forbid-only \"test/integration/core.integration.ts\" \"test/integration/data.integration.ts\" \"test/integration/job.integration.ts\" \"test/integration/metadata.integration.ts\" \"test/integration/pipeline.integration.ts\" \"test/integration/promotion.integration.ts\" \"test/integration/testing.integration.ts\"",
|
|
261
267
|
"test:integration:testing": "mocha --forbid-only \"test/integration/testing.integration.ts\" \"test/integration/testing-regression.integration.ts\"",
|
|
262
|
-
"
|
|
268
|
+
"release:inspect": "node scripts/verify-package.mjs"
|
|
263
269
|
},
|
|
264
270
|
"types": "dist/index.d.ts"
|
|
265
271
|
}
|
|
@@ -13,7 +13,7 @@ Local and cloud work are separate delivery paths. Do not continue a cloud commit
|
|
|
13
13
|
Use this path when the change exists in the local repository:
|
|
14
14
|
|
|
15
15
|
1. Discover and inspect: `agentia cicd work list --assigned-to-me --json`, then `agentia cicd work get <id-or-name> --json`.
|
|
16
|
-
2. Activate: `agentia cicd work set <id-or-name> --json`. This fetches the configured base branch, checks out `feature/<story-name
|
|
16
|
+
2. Activate: `agentia cicd work set <id-or-name> --json`. This fetches the configured base branch, fetches the Story feature branch when it exists on origin, then checks out `feature/<story-name>` from that remote branch when present (otherwise from the base), and records the story, base branch, dev org branch, and pull-request context in `.agentia/config.user.json`. Use `--base-branch <branch>` only when intentionally overriding the Pipeline default. If the JSON result has `status: "warning"` (missing pipeline or credential), show that `message`, do not assume a feature branch was created, and stop until the Story setup is fixed — publish and submit will not work. If the Story source credential differs from the project default, work set warns with the current credential and environment and does not PATCH; use `agentia cicd work update <id> --source-credential <credential-id>` to change it.
|
|
17
17
|
3. Implement with Salesforce CLI, VS Code, or an IDE. Stage and commit with `git add` / `git commit`. Do not use `agentia cicd work commit` for local Git work.
|
|
18
18
|
4. Run project-owned gates: `agentia cicd work test --json`. This runs `.agentia_quality_gates.sh` or `.agentia_quality_gates.cmd` from the repository root when present. If those files are missing, it warns and runs `agentia cicd work test apex` via the stock sample from a temporary file. Local tests can be slow; pass `--apex-test-classes=MyTest,OtherTest` for faster, earlier Apex checks.
|
|
19
19
|
5. Register and synchronize: `agentia cicd work publish --json`. A plain `git push` does not register a Copado Commit or merge the feature branch into the recorded dev org branch. Pass `--permissions` and `--full-metadata` when nested detection is not enough.
|
|
@@ -42,7 +42,7 @@ Cloud commit checks Story readiness and source credentials before submission. Av
|
|
|
42
42
|
| `work get [ID]` | Read story details | ID is optional after `work set`. Human output redacts OAuth signatures; JSON preserves structured fields. |
|
|
43
43
|
| `work create` | Create a story | Use `--title`, project/team/assignee/theme fields, specs, and short acceptance criteria. `--source-credential` sends `sourceEnvironment` as null so Salesforce assigns the environment. |
|
|
44
44
|
| `work update [ID]` | Mutate story fields or status | ID is optional after `work set`. Acceptance criteria must be fewer than 255 chars. `--source-credential` sends `sourceEnvironment` as null. |
|
|
45
|
-
| `work set ID` | Mark active and prepare branch | Fetches base branch, creates/checks out `feature/<story-name
|
|
45
|
+
| `work set ID` | Mark active and prepare branch | Fetches the base branch and, when present, the remote feature branch; creates/checks out `feature/<story-name>` from `origin/feature` when that ref exists, otherwise from the base; stores local context. A gateway warning prints the message and skips git. Warns without PATCHing when the Story credential differs from the project default; use `work update --source-credential` to change it. `--none` clears every `last*` key and checks out `lastBaseBranch`, else `main`, else `master`. |
|
|
46
46
|
| `work commit` | Copado cloud metadata commit | Requires `--cloud`. For local Git work, use `git commit` then `work publish`. |
|
|
47
47
|
| `work publish` | Publish local commits and register with Copado | Requires active story context and clean tree. Accepts `--permissions` and `--full-metadata` when nested detection is not enough. `work push` is a compatibility alias. |
|
|
48
48
|
| `work test` | Run local quality gate scripts | `--local` is default. Runs `.agentia_quality_gates.sh` or `.agentia_quality_gates.cmd` from repo root. If missing, warns and runs the stock setup sample from a temp file. `--cloud` is not implemented yet. |
|