@rudderhq/agent-runtime-gemini-local 0.1.0-canary.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/LICENSE +14 -0
- package/dist/cli/format-event.d.ts +2 -0
- package/dist/cli/format-event.d.ts.map +1 -0
- package/dist/cli/format-event.js +198 -0
- package/dist/cli/format-event.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/server/execute.d.ts +3 -0
- package/dist/server/execute.d.ts.map +1 -0
- package/dist/server/execute.js +489 -0
- package/dist/server/execute.js.map +1 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +62 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/parse.d.ts +38 -0
- package/dist/server/parse.d.ts.map +1 -0
- package/dist/server/parse.js +238 -0
- package/dist/server/parse.js.map +1 -0
- package/dist/server/skills.d.ts +7 -0
- package/dist/server/skills.d.ts.map +1 -0
- package/dist/server/skills.js +66 -0
- package/dist/server/skills.js.map +1 -0
- package/dist/server/test.d.ts +3 -0
- package/dist/server/test.d.ts.map +1 -0
- package/dist/server/test.js +219 -0
- package/dist/server/test.js.map +1 -0
- package/dist/server/utils.d.ts +2 -0
- package/dist/server/utils.d.ts.map +1 -0
- package/dist/server/utils.js +7 -0
- package/dist/server/utils.js.map +1 -0
- package/dist/ui/build-config.d.ts +3 -0
- package/dist/ui/build-config.d.ts.map +1 -0
- package/dist/ui/build-config.js +84 -0
- package/dist/ui/build-config.js.map +1 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +3 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/parse-stdout.d.ts +3 -0
- package/dist/ui/parse-stdout.d.ts.map +1 -0
- package/dist/ui/parse-stdout.js +247 -0
- package/dist/ui/parse-stdout.js.map +1 -0
- package/package.json +61 -0
- package/skills/para-memory-files/SKILL.md +114 -0
- package/skills/para-memory-files/references/schemas.md +35 -0
- package/skills/rudder/SKILL.md +265 -0
- package/skills/rudder/references/api-reference.md +253 -0
- package/skills/rudder/references/cli-reference.md +67 -0
- package/skills/rudder/references/organization-skills.md +155 -0
- package/skills/rudder-create-agent/SKILL.md +166 -0
- package/skills/rudder-create-agent/references/api-reference.md +172 -0
- package/skills/rudder-create-agent/references/cli-reference.md +126 -0
- package/skills/rudder-create-plugin/SKILL.md +103 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rudder-create-plugin
|
|
3
|
+
description: Create new Rudder plugins with the current alpha SDK/runtime. Use when scaffolding a plugin package, adding a new example plugin, or updating plugin authoring docs. Covers the supported worker/UI surface, route conventions, scaffold flow, and verification steps.
|
|
4
|
+
Create new Rudder plugins with the current alpha SDK/runtime. Use when
|
|
5
|
+
scaffolding a plugin package, adding a new example plugin, or updating plugin
|
|
6
|
+
authoring docs. Covers the supported worker/UI surface, route conventions,
|
|
7
|
+
scaffold flow, and verification steps.
|
|
8
|
+
allowed-tools:
|
|
9
|
+
disable: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Create a Rudder Plugin
|
|
13
|
+
|
|
14
|
+
Use this skill when the task is to create, scaffold, or document a Rudder plugin.
|
|
15
|
+
|
|
16
|
+
## 1. Ground rules
|
|
17
|
+
|
|
18
|
+
Read these first when needed:
|
|
19
|
+
|
|
20
|
+
1. `doc/plugins/PLUGIN_AUTHORING_GUIDE.md`
|
|
21
|
+
2. `packages/plugins/sdk/README.md`
|
|
22
|
+
3. `doc/plugins/PLUGIN_SPEC.md` only for future-looking context
|
|
23
|
+
|
|
24
|
+
Current runtime assumptions:
|
|
25
|
+
|
|
26
|
+
- plugin workers are trusted code
|
|
27
|
+
- plugin UI is trusted same-origin host code
|
|
28
|
+
- worker APIs are capability-gated
|
|
29
|
+
- plugin UI is not sandboxed by manifest capabilities
|
|
30
|
+
- no host-provided shared plugin UI component kit yet
|
|
31
|
+
- `ctx.assets` is not supported in the current runtime
|
|
32
|
+
|
|
33
|
+
## 2. Preferred workflow
|
|
34
|
+
|
|
35
|
+
Use the scaffold package instead of hand-writing the boilerplate:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm --filter @rudderhq/create-rudder-plugin build
|
|
39
|
+
node packages/plugins/create-rudder-plugin/dist/index.js <npm-package-name> --output <target-dir>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
For a plugin that lives outside the Rudder repo, pass `--sdk-path` and let the scaffold snapshot the local SDK/shared packages into `.rudder-sdk/`:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pnpm --filter @rudderhq/create-rudder-plugin build
|
|
46
|
+
node packages/plugins/create-rudder-plugin/dist/index.js @acme/plugin-name \
|
|
47
|
+
--output /absolute/path/to/plugin-repos \
|
|
48
|
+
--sdk-path /absolute/path/to/rudder/packages/plugins/sdk
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Recommended target inside this repo:
|
|
52
|
+
|
|
53
|
+
- `packages/plugins/examples/` for example plugins
|
|
54
|
+
- another `packages/plugins/<name>/` folder if it is becoming a real package
|
|
55
|
+
|
|
56
|
+
## 3. After scaffolding
|
|
57
|
+
|
|
58
|
+
Check and adjust:
|
|
59
|
+
|
|
60
|
+
- `src/manifest.ts`
|
|
61
|
+
- `src/worker.ts`
|
|
62
|
+
- `src/ui/index.tsx`
|
|
63
|
+
- `tests/plugin.spec.ts`
|
|
64
|
+
- `package.json`
|
|
65
|
+
|
|
66
|
+
Make sure the plugin:
|
|
67
|
+
|
|
68
|
+
- declares only supported capabilities
|
|
69
|
+
- does not use `ctx.assets`
|
|
70
|
+
- does not import host UI component stubs
|
|
71
|
+
- keeps UI self-contained
|
|
72
|
+
- uses `routePath` only on `page` slots
|
|
73
|
+
- is installed into Rudder from an absolute local path during development
|
|
74
|
+
|
|
75
|
+
## 4. If the plugin should appear in the app
|
|
76
|
+
|
|
77
|
+
For bundled example/discoverable behavior, update the relevant host wiring:
|
|
78
|
+
|
|
79
|
+
- bundled example list in `server/src/routes/plugins.ts`
|
|
80
|
+
- any docs that list in-repo examples
|
|
81
|
+
|
|
82
|
+
Only do this if the user wants the plugin surfaced as a bundled example.
|
|
83
|
+
|
|
84
|
+
## 5. Verification
|
|
85
|
+
|
|
86
|
+
Always run:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm --filter <plugin-package> typecheck
|
|
90
|
+
pnpm --filter <plugin-package> test
|
|
91
|
+
pnpm --filter <plugin-package> build
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
If you changed SDK/host/plugin runtime code too, also run broader repo checks as appropriate.
|
|
95
|
+
|
|
96
|
+
## 6. Documentation expectations
|
|
97
|
+
|
|
98
|
+
When authoring or updating plugin docs:
|
|
99
|
+
|
|
100
|
+
- distinguish current implementation from future spec ideas
|
|
101
|
+
- be explicit about the trusted-code model
|
|
102
|
+
- do not promise host UI components or asset APIs
|
|
103
|
+
- prefer npm-package deployment guidance over repo-local workflows for production
|