@orgloop/module-minimal 0.1.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.md +21 -0
- package/orgloop-module.yaml +36 -0
- package/package.json +22 -0
- package/sops/example.md +16 -0
- package/templates/routes.yaml +14 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OrgLoop contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
apiVersion: orgloop/v1alpha1
|
|
2
|
+
kind: Module
|
|
3
|
+
metadata:
|
|
4
|
+
name: minimal
|
|
5
|
+
description: "Minimal starter module — 1 webhook source, 1 generic actor, 1 example route"
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
|
|
8
|
+
requires:
|
|
9
|
+
connectors:
|
|
10
|
+
- type: source
|
|
11
|
+
id: webhook
|
|
12
|
+
connector: "@orgloop/connector-webhook"
|
|
13
|
+
required: true
|
|
14
|
+
|
|
15
|
+
- type: actor
|
|
16
|
+
id: responder
|
|
17
|
+
connector: "@orgloop/connector-webhook"
|
|
18
|
+
required: true
|
|
19
|
+
|
|
20
|
+
parameters:
|
|
21
|
+
- name: source
|
|
22
|
+
description: "Name of the webhook source connector"
|
|
23
|
+
type: string
|
|
24
|
+
required: true
|
|
25
|
+
default: webhook
|
|
26
|
+
|
|
27
|
+
- name: actor
|
|
28
|
+
description: "Name of the actor connector"
|
|
29
|
+
type: string
|
|
30
|
+
required: true
|
|
31
|
+
default: responder
|
|
32
|
+
|
|
33
|
+
provides:
|
|
34
|
+
routes: 1
|
|
35
|
+
transforms: 0
|
|
36
|
+
sops: 1
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orgloop/module-minimal",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Minimal OrgLoop module — 1 webhook source, 1 generic actor, 1 example route",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "orgloop-module.yaml",
|
|
7
|
+
"files": [
|
|
8
|
+
"orgloop-module.yaml",
|
|
9
|
+
"templates",
|
|
10
|
+
"sops"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"orgloop",
|
|
14
|
+
"orgloop-module",
|
|
15
|
+
"minimal",
|
|
16
|
+
"starter"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT"
|
|
22
|
+
}
|
package/sops/example.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Example Launch Prompt
|
|
2
|
+
|
|
3
|
+
You are receiving an event from the organization pipeline.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
This event was routed through OrgLoop based on the configured rules.
|
|
7
|
+
|
|
8
|
+
## Instructions
|
|
9
|
+
1. Review the event payload
|
|
10
|
+
2. Take appropriate action based on the event type
|
|
11
|
+
3. Report completion status
|
|
12
|
+
|
|
13
|
+
## Constraints
|
|
14
|
+
- Do not modify production infrastructure without approval
|
|
15
|
+
- Follow the organization's coding standards
|
|
16
|
+
- Escalate security-related events immediately
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
apiVersion: orgloop/v1alpha1
|
|
2
|
+
kind: RouteGroup
|
|
3
|
+
|
|
4
|
+
routes:
|
|
5
|
+
- name: "{{ module.name }}-example"
|
|
6
|
+
description: "Example route — forward webhook events to the responder"
|
|
7
|
+
when:
|
|
8
|
+
source: "{{ params.source }}"
|
|
9
|
+
events:
|
|
10
|
+
- resource.changed
|
|
11
|
+
then:
|
|
12
|
+
actor: "{{ params.actor }}"
|
|
13
|
+
with:
|
|
14
|
+
prompt_file: "{{ module.path }}/sops/example.md"
|