@codemation/agent-skills 0.1.5 → 0.1.6

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @codemation/agent-skills
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#57](https://github.com/MadeRelevant/codemation/pull/57) [`3e882de`](https://github.com/MadeRelevant/codemation/commit/3e882de13103b6001d278b430791c380ee6771e1) Thanks [@cblokland90](https://github.com/cblokland90)! - Align discovered plugin loading with packaged JavaScript entries and keep framework watch mode rebuilding workspace plugin dist outputs.
8
+
3
9
  ## 0.1.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemation/agent-skills",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Reusable agent skills for Codemation projects and plugin development.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,6 +34,8 @@ Do not use this skill for workflow graph design, custom node implementation, or
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
36
  4. When Redis-backed execution is involved, mention the shared PostgreSQL requirement instead of assuming local SQLite still fits.
37
+ 5. In consumer mode, discovered plugins are loaded from the built JavaScript path declared in `package.json#codemation.plugin`, not from TypeScript source under `node_modules`.
38
+ 6. In plugin mode, the CLI TypeScript-loads only the current plugin repo through the generated `.codemation/plugin-dev/codemation.config.ts`.
37
39
 
38
40
  ## Read next when needed
39
41
 
@@ -15,6 +15,7 @@ Use `codemation dev` for a standalone Codemation app.
15
15
  - The CLI starts the packaged `@codemation/next-host` UI.
16
16
  - The CLI owns a stable development gateway.
17
17
  - The CLI hot-swaps the in-process API runtime when consumer files change.
18
+ - Discovered plugins are loaded from the built JavaScript entry declared in `package.json#codemation.plugin`.
18
19
 
19
20
  ### Framework-author mode
20
21
 
@@ -22,6 +23,7 @@ Use `codemation dev --watch-framework` when working inside the Codemation monore
22
23
 
23
24
  - The CLI starts `next dev` for `@codemation/next-host`.
24
25
  - The CLI still owns the stable gateway and runtime swapping.
26
+ - Workspace plugin packages keep their `dist/` plugin entry fresh so runtime behavior stays aligned with packaged installs.
25
27
  - This mode is for framework package work, not normal consumer usage.
26
28
 
27
29
  ## Command responsibilities
@@ -25,15 +25,22 @@ Do not use this skill for ordinary consumer workflow-only changes unless the wor
25
25
  2. Keep plugin registration separate from node and credential implementation modules.
26
26
  3. Use the sandbox app to exercise the plugin right away.
27
27
  4. Keep the package publishable like a normal npm package.
28
+ 5. Treat `codemation.plugin.ts` as the plugin repo's source composition root; consumer projects should load the built JavaScript entry declared in `package.json#codemation.plugin`.
28
29
 
29
30
  ## Common plugin pieces
30
31
 
31
- - `codemation.plugin.ts`: plugin registration and sandbox app
32
+ - `codemation.plugin.ts`: plugin registration and sandbox app source, compiled to the published plugin entry in `dist/`
32
33
  - `src/nodes/*`: custom node definitions (`defineNode` → **`execute`**; `defineBatchNode` → batch **`run`**)
33
34
  - `src/credentialTypes/*`: custom credential definitions
34
35
  - `src/index.ts`: package exports
35
36
  - `test/*.test.ts` (optional): Vitest + `WorkflowTestKit` from `@codemation/core/testing` for engine-backed unit tests without starting the full host (`pnpm test`)
36
37
 
38
+ ## Packaging guardrail
39
+
40
+ - `package.json#codemation.plugin` should point at runnable JavaScript such as `./dist/codemation.plugin.js`.
41
+ - Do not rely on consumers TypeScript-loading plugin files from `node_modules`.
42
+ - Prefer publishing `dist/**` plus package metadata/docs rather than shipping source-only plugin entry files as runtime dependencies.
43
+
37
44
  ## Unit tests (`WorkflowTestKit`)
38
45
 
39
46
  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.
@@ -19,6 +19,8 @@ Use `codemation.plugin.ts` as the single place that:
19
19
  - registers the plugin's nodes
20
20
  - defines a small sandbox app through `defineCodemationApp(...)`
21
21
 
22
+ That file is the plugin repository's source composition root. Consumers should discover the plugin through `package.json#codemation.plugin`, pointing at built JavaScript in `dist/`.
23
+
22
24
  ## Node guidance
23
25
 
24
26
  - start with `defineNode(...)` and **`execute(...)`** for simple reusable nodes (per-item pipeline; optional **`inputSchema`** and **`itemValue`** on config fields)
@@ -35,5 +37,7 @@ Use `codemation.plugin.ts` as the single place that:
35
37
  ## Publishability
36
38
 
37
39
  - keep the package build output and plugin entry explicit
40
+ - point `package.json#codemation.plugin` at built JavaScript such as `./dist/codemation.plugin.js`
41
+ - do not rely on consumer runtimes TypeScript-loading plugin files from `node_modules`
38
42
  - treat the plugin as a normal npm package
39
43
  - installing the package in a Codemation app should be enough for the common auto-discovery flow