@sweny-ai/core 0.1.53 → 0.1.55

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.
Files changed (45) hide show
  1. package/dist/__tests__/executor.test.js +2 -1
  2. package/dist/__tests__/integration/sources.integration.test.d.ts +1 -0
  3. package/dist/__tests__/integration/sources.integration.test.js +123 -0
  4. package/dist/__tests__/workflow-yaml.test.js +12 -5
  5. package/dist/cli/__tests__/report-cloud.test.d.ts +1 -0
  6. package/dist/cli/__tests__/report-cloud.test.js +165 -0
  7. package/dist/cli/cloud-report.d.ts +12 -0
  8. package/dist/cli/cloud-report.js +79 -0
  9. package/dist/cli/config-file.d.ts +3 -3
  10. package/dist/cli/config-file.js +18 -0
  11. package/dist/cli/config.d.ts +3 -0
  12. package/dist/cli/config.js +18 -2
  13. package/dist/cli/config.test.js +65 -1
  14. package/dist/cli/e2e.js +4 -2
  15. package/dist/cli/e2e.test.js +9 -2
  16. package/dist/cli/main.js +46 -19
  17. package/dist/cli/new.d.ts +0 -5
  18. package/dist/cli/new.js +0 -5
  19. package/dist/cli/new.test.js +1 -9
  20. package/dist/cli/output.test.js +1 -0
  21. package/dist/cli/publish.js +23 -12
  22. package/dist/cli/publish.test.d.ts +1 -0
  23. package/dist/cli/publish.test.js +610 -0
  24. package/dist/executor.d.ts +8 -0
  25. package/dist/executor.js +21 -3
  26. package/dist/executor.test.js +56 -1
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/mermaid.test.js +2 -0
  30. package/dist/schema.d.ts +174 -46
  31. package/dist/schema.js +31 -2
  32. package/dist/sources.d.ts +70 -0
  33. package/dist/sources.js +194 -0
  34. package/dist/sources.test.d.ts +1 -0
  35. package/dist/sources.test.js +264 -0
  36. package/dist/sources.validation.test.d.ts +12 -0
  37. package/dist/sources.validation.test.js +360 -0
  38. package/dist/templates.d.ts +6 -2
  39. package/dist/templates.js +36 -46
  40. package/dist/testing.js +4 -1
  41. package/dist/types.d.ts +8 -1
  42. package/dist/types.js +0 -5
  43. package/dist/workflows/browser.js +1 -1
  44. package/dist/workflows/triage.yml +1 -23
  45. package/package.json +1 -5
@@ -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: prepare
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"
@@ -15,7 +15,6 @@
15
15
  "./workflows": "./dist/workflows/index.js",
16
16
  "./testing": "./dist/testing.js",
17
17
  "./schema": "./dist/schema.js",
18
- "./init": "./dist/cli/new.js",
19
18
  "./new": "./dist/cli/new.js"
20
19
  },
21
20
  "typesVersions": {
@@ -38,9 +37,6 @@
38
37
  "schema": [
39
38
  "dist/schema.d.ts"
40
39
  ],
41
- "init": [
42
- "dist/cli/new.d.ts"
43
- ],
44
40
  "new": [
45
41
  "dist/cli/new.d.ts"
46
42
  ]