@codemation/agent-skills 0.1.0 → 0.1.3
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 +20 -0
- package/package.json +6 -6
- package/skills/codemation-cli/SKILL.md +1 -1
- package/skills/codemation-cli/references/command-map.md +2 -2
- package/skills/codemation-custom-node-development/SKILL.md +4 -0
- package/skills/codemation-framework-concepts/references/architecture-map.md +2 -2
- package/skills/codemation-plugin-development/SKILL.md +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @codemation/agent-skills
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41](https://github.com/MadeRelevant/codemation/pull/41) [`a72444e`](https://github.com/MadeRelevant/codemation/commit/a72444e25c4e744a9a90e231a59c93f8d90346e5) Thanks [@cblokland90](https://github.com/cblokland90)! - Add `WorkflowTestKit` and related engine test harness exports on `@codemation/core/testing`, with create-codemation templates and agent skills updated to document plugin unit tests.
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#39](https://github.com/MadeRelevant/codemation/pull/39) [`cbfe843`](https://github.com/MadeRelevant/codemation/commit/cbfe843ef2363e400a219f4d0bcd05b091ab83b4) Thanks [@cblokland90](https://github.com/cblokland90)! - Add `WorkflowTestKit` and related engine test harness exports on `@codemation/core/testing`, with create-codemation templates and agent skills updated to document plugin unit tests.
|
|
14
|
+
|
|
15
|
+
## 0.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#35](https://github.com/MadeRelevant/codemation/pull/35) [`75b885b`](https://github.com/MadeRelevant/codemation/commit/75b885b111cc34ffe3a192ca9cc8cd3864fdf8ff) Thanks [@cblokland90](https://github.com/cblokland90)! - Replace the local-development `pglite` path with SQLite across the host, CLI, scaffolding templates, and packaged dev flows while keeping PostgreSQL for production-aligned and shared integration scenarios.
|
|
20
|
+
|
|
21
|
+
Split Prisma into provider-specific PostgreSQL and SQLite schema and migration tracks so generated clients and startup migrations select the correct backend without the old `pglite` socket adapter.
|
|
22
|
+
|
|
3
23
|
## 0.1.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemation/agent-skills",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Reusable agent skills for Codemation projects and plugin development.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,9 +17,6 @@
|
|
|
17
17
|
"bin": {
|
|
18
18
|
"codemation-agent-skills": "./bin/codemation-agent-skills.mjs"
|
|
19
19
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "vitest run"
|
|
22
|
-
},
|
|
23
20
|
"keywords": [
|
|
24
21
|
"codemation",
|
|
25
22
|
"agent",
|
|
@@ -38,5 +35,8 @@
|
|
|
38
35
|
"CHANGELOG.md",
|
|
39
36
|
"bin",
|
|
40
37
|
"skills"
|
|
41
|
-
]
|
|
42
|
-
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test": "vitest run"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -33,7 +33,7 @@ Do not use this skill for workflow graph design, custom node implementation, or
|
|
|
33
33
|
1. Treat `codemation.config.ts` as the consumer entrypoint.
|
|
34
34
|
2. Mention `.codemation/output` only when build artifacts or runtime bootstrap details matter.
|
|
35
35
|
3. When the user is in the monorepo, distinguish framework-author mode from normal consumer mode explicitly.
|
|
36
|
-
4. When Redis-backed execution is involved, mention the shared PostgreSQL requirement instead of assuming
|
|
36
|
+
4. When Redis-backed execution is involved, mention the shared PostgreSQL requirement instead of assuming local SQLite still fits.
|
|
37
37
|
|
|
38
38
|
## Read next when needed
|
|
39
39
|
|
|
@@ -57,6 +57,6 @@ Use `codemation dev --watch-framework` when working inside the Codemation monore
|
|
|
57
57
|
|
|
58
58
|
## Environment notes
|
|
59
59
|
|
|
60
|
-
-
|
|
61
|
-
- When `REDIS_URL` is set, use a shared PostgreSQL `DATABASE_URL`; BullMQ cannot run on
|
|
60
|
+
- SQLite is the zero-setup default for starter apps.
|
|
61
|
+
- When `REDIS_URL` is set, use a shared PostgreSQL `DATABASE_URL`; BullMQ cannot run on SQLite.
|
|
62
62
|
- Use `--consumer-root` when commands need to target a different consumer app root.
|
|
@@ -27,6 +27,10 @@ Do not use this skill for pure workflow chaining questions unless the node imple
|
|
|
27
27
|
4. Remember that runtime execution receives batches of items.
|
|
28
28
|
5. Drop to class-based node APIs only when you need constructor-injected collaborators, decorators, or deeper runtime metadata.
|
|
29
29
|
|
|
30
|
+
## Testing with `WorkflowTestKit`
|
|
31
|
+
|
|
32
|
+
For engine-backed tests without the host, use **`WorkflowTestKit`** from **`@codemation/core/testing`**: **`registerDefinedNodes([...])`**, then **`runNode`** or **`run`**. See the plugin development doc and `@codemation/core` tests for examples.
|
|
33
|
+
|
|
30
34
|
## Read next when needed
|
|
31
35
|
|
|
32
36
|
- Read `references/node-patterns.md` for `defineNode(...)` patterns and packaging guidance.
|
|
@@ -22,7 +22,7 @@ Use the minimum setup when:
|
|
|
22
22
|
|
|
23
23
|
- you are starting a new app
|
|
24
24
|
- one process is enough
|
|
25
|
-
- local
|
|
25
|
+
- local SQLite is fine
|
|
26
26
|
- fast local iteration matters more than shared worker infrastructure
|
|
27
27
|
|
|
28
28
|
## Production setup
|
|
@@ -36,7 +36,7 @@ Move to the production shape when:
|
|
|
36
36
|
|
|
37
37
|
That usually means:
|
|
38
38
|
|
|
39
|
-
- PostgreSQL instead of
|
|
39
|
+
- PostgreSQL instead of local SQLite
|
|
40
40
|
- Redis for queue-backed execution
|
|
41
41
|
- BullMQ-backed scheduling
|
|
42
42
|
|
|
@@ -32,6 +32,11 @@ Do not use this skill for ordinary consumer workflow-only changes unless the wor
|
|
|
32
32
|
- `src/nodes/*`: custom node definitions
|
|
33
33
|
- `src/credentialTypes/*`: custom credential definitions
|
|
34
34
|
- `src/index.ts`: package exports
|
|
35
|
+
- `test/*.test.ts` (optional): Vitest + `WorkflowTestKit` from `@codemation/core/testing` for engine-backed unit tests without starting the full host (`pnpm test`)
|
|
36
|
+
|
|
37
|
+
## Unit tests (`WorkflowTestKit`)
|
|
38
|
+
|
|
39
|
+
Import **`WorkflowTestKit`** from **`@codemation/core/testing`**. Use **`registerDefinedNodes([...])`** for `defineNode` packages, then **`runNode({ node: yourNode.create(...), items })`** or **`run({ workflow, items })`** for fuller graphs. Prefer this for fast node tests; use **`codemation dev:plugin`** when you need the UI and persistence.
|
|
35
40
|
|
|
36
41
|
## Read next when needed
|
|
37
42
|
|