@sweny-ai/core 0.1.54 → 0.1.56
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/dist/__tests__/executor.test.js +2 -1
- package/dist/__tests__/integration/sources.integration.test.d.ts +1 -0
- package/dist/__tests__/integration/sources.integration.test.js +123 -0
- package/dist/__tests__/workflow-yaml.test.js +12 -5
- package/dist/cli/__tests__/report-cloud.test.d.ts +1 -0
- package/dist/cli/__tests__/report-cloud.test.js +165 -0
- package/dist/cli/cloud-report.d.ts +12 -0
- package/dist/cli/cloud-report.js +79 -0
- package/dist/cli/config-file.d.ts +3 -3
- package/dist/cli/config-file.js +18 -0
- package/dist/cli/config.d.ts +3 -0
- package/dist/cli/config.js +25 -2
- package/dist/cli/config.test.js +65 -1
- package/dist/cli/e2e.js +4 -2
- package/dist/cli/e2e.test.js +9 -2
- package/dist/cli/main.js +44 -12
- package/dist/cli/output.test.js +1 -0
- package/dist/cli/publish.test.d.ts +1 -0
- package/dist/cli/publish.test.js +610 -0
- package/dist/executor.d.ts +8 -0
- package/dist/executor.js +21 -3
- package/dist/executor.test.js +56 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/mermaid.test.js +2 -0
- package/dist/schema.d.ts +175 -46
- package/dist/schema.js +31 -2
- package/dist/sources.d.ts +70 -0
- package/dist/sources.js +194 -0
- package/dist/sources.test.d.ts +1 -0
- package/dist/sources.test.js +264 -0
- package/dist/sources.validation.test.d.ts +12 -0
- package/dist/sources.validation.test.js +360 -0
- package/dist/templates.d.ts +6 -2
- package/dist/templates.js +36 -46
- package/dist/testing.js +4 -1
- package/dist/types.d.ts +8 -1
- package/dist/types.js +0 -5
- package/dist/workflows/browser.js +1 -1
- package/dist/workflows/triage.yml +1 -23
- package/package.json +1 -1
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
id: triage
|
|
2
2
|
name: Alert Triage
|
|
3
3
|
description: Investigate a production alert, determine root cause, create an issue, implement a fix, and notify the team
|
|
4
|
-
entry:
|
|
4
|
+
entry: gather
|
|
5
5
|
nodes:
|
|
6
|
-
prepare:
|
|
7
|
-
name: Load Rules & Context
|
|
8
|
-
instruction: >-
|
|
9
|
-
You are preparing for a triage workflow. Your job is to fetch and review any knowledge documents listed in the
|
|
10
|
-
input.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
1. Check input for `rulesUrls`, `contextUrls`, `rules_urls`, and `context_urls` arrays (any of these may be present).
|
|
14
|
-
|
|
15
|
-
2. For each URL, fetch its content:
|
|
16
|
-
- Linear document URLs → use the Linear MCP tools (get_document or search_documentation)
|
|
17
|
-
- Other HTTP URLs → fetch directly
|
|
18
|
-
3. Summarize the key rules and context that downstream workflow nodes should follow.
|
|
19
|
-
|
|
20
|
-
4. Output the consolidated information so it's available to all subsequent steps.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
If there are no URLs to fetch, just pass through — this step is a no-op.
|
|
24
|
-
skills:
|
|
25
|
-
- linear
|
|
26
6
|
gather:
|
|
27
7
|
name: Gather Context
|
|
28
8
|
instruction: >-
|
|
@@ -279,8 +259,6 @@ nodes:
|
|
|
279
259
|
- slack
|
|
280
260
|
- notification
|
|
281
261
|
edges:
|
|
282
|
-
- from: prepare
|
|
283
|
-
to: gather
|
|
284
262
|
- from: gather
|
|
285
263
|
to: investigate
|
|
286
264
|
- from: investigate
|