agent-docs 1.3.0 → 1.3.1
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/.husky/pre-commit +2 -0
- package/PLAN.md +4 -3
- package/README.md +4 -3
- package/docs/A4DWORKFLOWS.md +30 -23
- package/docs/LIGHTNINGBASECOMPONENTS.md +217 -60
- package/docs/LWCHTMLTEMPLATES.md +136 -116
- package/docs/PMD.md +141 -115
- package/docs/XPATH31.md +2 -0
- package/package.json +2 -1
package/PLAN.md
CHANGED
|
@@ -648,9 +648,10 @@ The plan should:
|
|
|
648
648
|
GRAPHSON.md, GREMLIN.md, GRYO.md, HUSKY.md, JEST.md, JORJE.md, JSDOC.md,
|
|
649
649
|
LIGHTNINGBASECOMPONENTS.md, LWCHTMLTEMPLATES.md, PMD.md, PNPM.md, PRETTIER.md,
|
|
650
650
|
PRETTIERAPEX.md, REVENUETRANSACTIONMANAGEMENT.md, TINKERPOP.md, VITEST.md,
|
|
651
|
-
XPATH31.md) need to be initialized with version `1.0.0` (or appropriate
|
|
652
|
-
based on their current state) when the versioning system is first
|
|
653
|
-
These existing docs will be tracked going forward using the same
|
|
651
|
+
XPATH31.md) need to be initialized with version `1.0.0` (or appropriate
|
|
652
|
+
version based on their current state) when the versioning system is first
|
|
653
|
+
implemented. These existing docs will be tracked going forward using the same
|
|
654
|
+
semver system.
|
|
654
655
|
- Describe how scripts can help with versioning by:
|
|
655
656
|
- Reading markdown files and detecting headers/sections
|
|
656
657
|
- Comparing current state with the latest commit in `main` branch
|
package/README.md
CHANGED
|
@@ -101,9 +101,10 @@ structured format optimized for AI agent consumption:
|
|
|
101
101
|
- **[JEST.md](docs/JEST.md)** - Jest testing framework reference
|
|
102
102
|
- **[JORJE.md](docs/JORJE.md)** - Jorje Apex parser reference
|
|
103
103
|
- **[JSDOC.md](docs/JSDOC.md)** - JSDoc documentation generator reference
|
|
104
|
-
- **[LIGHTNINGBASECOMPONENTS.md](docs/LIGHTNINGBASECOMPONENTS.md)** - Lightning
|
|
105
|
-
Components reference
|
|
106
|
-
- **[LWCHTMLTEMPLATES.md](docs/LWCHTMLTEMPLATES.md)** - LWC HTML Templates
|
|
104
|
+
- **[LIGHTNINGBASECOMPONENTS.md](docs/LIGHTNINGBASECOMPONENTS.md)** - Lightning
|
|
105
|
+
Base Components reference
|
|
106
|
+
- **[LWCHTMLTEMPLATES.md](docs/LWCHTMLTEMPLATES.md)** - LWC HTML Templates
|
|
107
|
+
reference
|
|
107
108
|
- **[PMD.md](docs/PMD.md)** - PMD static analysis tool reference (includes Apex
|
|
108
109
|
AST reference and suppressing warnings)
|
|
109
110
|
- **[PNPM.md](docs/PNPM.md)** - pnpm package manager reference
|
package/docs/A4DWORKFLOWS.md
CHANGED
|
@@ -4,20 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
Workflows are reusable `.md` files defining multi-step Salesforce dev tasks.
|
|
7
|
+
Workflows are reusable `.md` files defining multi-step Salesforce dev tasks.
|
|
8
|
+
Invoke with `/[workflow-name.md]` in chat.
|
|
8
9
|
|
|
9
|
-
**Benefits:** Automation, consistency, error reduction, time savings, team
|
|
10
|
+
**Benefits:** Automation, consistency, error reduction, time savings, team
|
|
11
|
+
sharing.
|
|
10
12
|
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
## Creating & Managing
|
|
14
16
|
|
|
15
|
-
| Action
|
|
16
|
-
|
|
17
|
-
| Access
|
|
18
|
-
| Scope
|
|
19
|
-
| Create
|
|
20
|
-
| Storage | Workspace: `.a4drules/workflows/` folder
|
|
17
|
+
| Action | Method |
|
|
18
|
+
| ------- | -------------------------------------------------- |
|
|
19
|
+
| Access | Click **Rules & Workflows** (justice icon) in chat |
|
|
20
|
+
| Scope | Choose **Global** or **Workspace** workflows |
|
|
21
|
+
| Create | Click **+** |
|
|
22
|
+
| Storage | Workspace: `.a4drules/workflows/` folder |
|
|
21
23
|
|
|
22
24
|
Interface allows: view active workflows, toggle on/off, add/delete.
|
|
23
25
|
|
|
@@ -25,7 +27,8 @@ Interface allows: view active workflows, toggle on/off, add/delete.
|
|
|
25
27
|
|
|
26
28
|
## Workflow Capabilities
|
|
27
29
|
|
|
28
|
-
- **Built-in tools:** `ask_followup_question`, `read_file`, `search_files`,
|
|
30
|
+
- **Built-in tools:** `ask_followup_question`, `read_file`, `search_files`,
|
|
31
|
+
`new_task`
|
|
29
32
|
- **CLI tools:** `sf` (Salesforce CLI), `git`
|
|
30
33
|
- **External:** MCP tool calls
|
|
31
34
|
- **Chaining:** Sequential action execution
|
|
@@ -34,13 +37,13 @@ Interface allows: view active workflows, toggle on/off, add/delete.
|
|
|
34
37
|
|
|
35
38
|
## Common Workflow Types
|
|
36
39
|
|
|
37
|
-
| Type
|
|
38
|
-
|
|
39
|
-
| Deployment
|
|
40
|
-
| Testing
|
|
41
|
-
| Release
|
|
42
|
-
| Component
|
|
43
|
-
| Integration | Set up/validate external integrations
|
|
40
|
+
| Type | Purpose |
|
|
41
|
+
| ----------- | --------------------------------------- |
|
|
42
|
+
| Deployment | Deploy/validate components across orgs |
|
|
43
|
+
| Testing | Run test suites, analyze results |
|
|
44
|
+
| Release | Package, validate, deploy releases |
|
|
45
|
+
| Component | Create/test/deploy Lightning components |
|
|
46
|
+
| Integration | Set up/validate external integrations |
|
|
44
47
|
|
|
45
48
|
---
|
|
46
49
|
|
|
@@ -54,7 +57,7 @@ You have access to the `sf` terminal command. Deploy components following this p
|
|
|
54
57
|
<question>Which components to deploy and to which org?</question>
|
|
55
58
|
<options>["Specific files/folders", "All local changes", "Specific metadata types"]</options>
|
|
56
59
|
</ask_followup_question>
|
|
57
|
-
|
|
60
|
+
|
|
58
61
|
sf org display --target-org <target-org>
|
|
59
62
|
|
|
60
63
|
2. **Pre-Deployment Validation**
|
|
@@ -81,6 +84,7 @@ You have access to the `sf` terminal command. Deploy components following this p
|
|
|
81
84
|
## SF CLI Quick Reference
|
|
82
85
|
|
|
83
86
|
### Org Commands
|
|
87
|
+
|
|
84
88
|
```bash
|
|
85
89
|
sf org list # List authorized orgs
|
|
86
90
|
sf org display --target-org <alias> # Display org info
|
|
@@ -88,6 +92,7 @@ sf config set target-org <alias> # Set default org
|
|
|
88
92
|
```
|
|
89
93
|
|
|
90
94
|
### Deployment
|
|
95
|
+
|
|
91
96
|
```bash
|
|
92
97
|
sf project deploy start --target-org <alias> # Deploy
|
|
93
98
|
sf project deploy start --dry-run --target-org <alias> # Validate only
|
|
@@ -96,6 +101,7 @@ sf project retrieve start --target-org <alias> # Retrieve metadata
|
|
|
96
101
|
```
|
|
97
102
|
|
|
98
103
|
### Testing
|
|
104
|
+
|
|
99
105
|
```bash
|
|
100
106
|
sf apex test run --target-org <alias> --code-coverage --result-format human
|
|
101
107
|
sf apex test run --class-names "Test1,Test2" --target-org <alias>
|
|
@@ -103,6 +109,7 @@ sf apex test report --target-org <alias>
|
|
|
103
109
|
```
|
|
104
110
|
|
|
105
111
|
### Data
|
|
112
|
+
|
|
106
113
|
```bash
|
|
107
114
|
sf data query --query "SELECT Id FROM Account LIMIT 10" --target-org <alias>
|
|
108
115
|
sf data import tree --plan data/plan.json --target-org <alias>
|
|
@@ -113,9 +120,9 @@ sf data export tree --query "SELECT Id FROM Account" --target-org <alias>
|
|
|
113
120
|
|
|
114
121
|
## Custom Workflow Ideas
|
|
115
122
|
|
|
116
|
-
| Workflow
|
|
117
|
-
|
|
118
|
-
| **Release**
|
|
119
|
-
| **New Component**
|
|
120
|
-
| **Integration Test** | Validate credentials → Test endpoints → Check error handling → Generate reports
|
|
121
|
-
| **Code Quality**
|
|
123
|
+
| Workflow | Key Steps |
|
|
124
|
+
| -------------------- | ---------------------------------------------------------------------------------------- |
|
|
125
|
+
| **Release** | Gather merged changes → Build changelog → Bump version → Create/validate package |
|
|
126
|
+
| **New Component** | Create folder structure → Generate boilerplate files → Set up Jest tests → Deploy to dev |
|
|
127
|
+
| **Integration Test** | Validate credentials → Test endpoints → Check error handling → Generate reports |
|
|
128
|
+
| **Code Quality** | Run PMD analysis → Check accessibility → Validate naming → Generate reports |
|