@synergenius/flowweaver-pack-weaver 0.5.3 → 0.6.1
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/bot/design-checker.d.ts +24 -0
- package/dist/bot/design-checker.d.ts.map +1 -0
- package/dist/bot/design-checker.js +269 -0
- package/dist/bot/design-checker.js.map +1 -0
- package/dist/bot/file-validator.d.ts +5 -2
- package/dist/bot/file-validator.d.ts.map +1 -1
- package/dist/bot/file-validator.js +22 -1
- package/dist/bot/file-validator.js.map +1 -1
- package/dist/bot/genesis-prompt-context.d.ts +31 -0
- package/dist/bot/genesis-prompt-context.d.ts.map +1 -0
- package/dist/bot/genesis-prompt-context.js +121 -0
- package/dist/bot/genesis-prompt-context.js.map +1 -0
- package/dist/bot/genesis-store.d.ts +11 -1
- package/dist/bot/genesis-store.d.ts.map +1 -1
- package/dist/bot/genesis-store.js +65 -0
- package/dist/bot/genesis-store.js.map +1 -1
- package/dist/bot/types.d.ts +41 -1
- package/dist/bot/types.d.ts.map +1 -1
- package/dist/cli-handlers.d.ts +2 -1
- package/dist/cli-handlers.d.ts.map +1 -1
- package/dist/cli-handlers.js +130 -92
- package/dist/cli-handlers.js.map +1 -1
- package/dist/docs/docs/weaver-config.md +8 -14
- package/dist/docs/weaver-config.md +8 -14
- package/dist/node-types/exec-validate-retry.d.ts.map +1 -1
- package/dist/node-types/exec-validate-retry.js +23 -3
- package/dist/node-types/exec-validate-retry.js.map +1 -1
- package/dist/node-types/genesis-apply-retry.d.ts +6 -3
- package/dist/node-types/genesis-apply-retry.d.ts.map +1 -1
- package/dist/node-types/genesis-apply-retry.js +18 -10
- package/dist/node-types/genesis-apply-retry.js.map +1 -1
- package/dist/node-types/genesis-approve.d.ts.map +1 -1
- package/dist/node-types/genesis-approve.js +6 -1
- package/dist/node-types/genesis-approve.js.map +1 -1
- package/dist/node-types/genesis-diff-workflow.d.ts.map +1 -1
- package/dist/node-types/genesis-diff-workflow.js +30 -2
- package/dist/node-types/genesis-diff-workflow.js.map +1 -1
- package/dist/node-types/genesis-escrow-grace.d.ts +15 -0
- package/dist/node-types/genesis-escrow-grace.d.ts.map +1 -0
- package/dist/node-types/genesis-escrow-grace.js +52 -0
- package/dist/node-types/genesis-escrow-grace.js.map +1 -0
- package/dist/node-types/genesis-escrow-migrate.d.ts +21 -0
- package/dist/node-types/genesis-escrow-migrate.d.ts.map +1 -0
- package/dist/node-types/genesis-escrow-migrate.js +116 -0
- package/dist/node-types/genesis-escrow-migrate.js.map +1 -0
- package/dist/node-types/genesis-escrow-recover.d.ts +15 -0
- package/dist/node-types/genesis-escrow-recover.d.ts.map +1 -0
- package/dist/node-types/genesis-escrow-recover.js +90 -0
- package/dist/node-types/genesis-escrow-recover.js.map +1 -0
- package/dist/node-types/genesis-escrow-stage.d.ts +17 -0
- package/dist/node-types/genesis-escrow-stage.d.ts.map +1 -0
- package/dist/node-types/genesis-escrow-stage.js +86 -0
- package/dist/node-types/genesis-escrow-stage.js.map +1 -0
- package/dist/node-types/genesis-escrow-validate.d.ts +17 -0
- package/dist/node-types/genesis-escrow-validate.d.ts.map +1 -0
- package/dist/node-types/genesis-escrow-validate.js +110 -0
- package/dist/node-types/genesis-escrow-validate.js.map +1 -0
- package/dist/node-types/genesis-load-config.d.ts.map +1 -1
- package/dist/node-types/genesis-load-config.js +1 -0
- package/dist/node-types/genesis-load-config.js.map +1 -1
- package/dist/node-types/genesis-observe.d.ts.map +1 -1
- package/dist/node-types/genesis-observe.js +2 -0
- package/dist/node-types/genesis-observe.js.map +1 -1
- package/dist/node-types/genesis-propose.d.ts.map +1 -1
- package/dist/node-types/genesis-propose.js +41 -33
- package/dist/node-types/genesis-propose.js.map +1 -1
- package/dist/node-types/genesis-report.d.ts +4 -2
- package/dist/node-types/genesis-report.d.ts.map +1 -1
- package/dist/node-types/genesis-report.js +43 -17
- package/dist/node-types/genesis-report.js.map +1 -1
- package/dist/node-types/genesis-try-apply.d.ts.map +1 -1
- package/dist/node-types/genesis-try-apply.js +33 -0
- package/dist/node-types/genesis-try-apply.js.map +1 -1
- package/dist/node-types/genesis-update-history.d.ts.map +1 -1
- package/dist/node-types/genesis-update-history.js +21 -8
- package/dist/node-types/genesis-update-history.js.map +1 -1
- package/dist/node-types/genesis-validate-proposal.d.ts.map +1 -1
- package/dist/node-types/genesis-validate-proposal.js +62 -5
- package/dist/node-types/genesis-validate-proposal.js.map +1 -1
- package/dist/templates/index.d.ts +2 -4
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +1 -3
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/weaver-bot-template.d.ts +9 -1
- package/dist/templates/weaver-bot-template.d.ts.map +1 -1
- package/dist/templates/weaver-bot-template.js.map +1 -1
- package/dist/workflows/genesis-task.d.ts +25 -17
- package/dist/workflows/genesis-task.d.ts.map +1 -1
- package/dist/workflows/genesis-task.js +25 -17
- package/dist/workflows/genesis-task.js.map +1 -1
- package/dist/workflows/index.d.ts +0 -1
- package/dist/workflows/index.d.ts.map +1 -1
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/index.js.map +1 -1
- package/flowweaver.manifest.json +10 -10
- package/package.json +3 -3
- package/dist/templates/weaver-template.d.ts +0 -11
- package/dist/templates/weaver-template.d.ts.map +0 -1
- package/dist/templates/weaver-template.js +0 -53
- package/dist/templates/weaver-template.js.map +0 -1
- package/dist/workflows/weaver.d.ts +0 -24
- package/dist/workflows/weaver.d.ts.map +0 -1
- package/dist/workflows/weaver.js +0 -28
- package/dist/workflows/weaver.js.map +0 -1
|
@@ -8,24 +8,32 @@
|
|
|
8
8
|
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 200]
|
|
9
9
|
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 200]
|
|
10
10
|
* @node gCfg genesisLoadConfig [color: "purple"] [icon: "settings"] [position: 600 200]
|
|
11
|
-
* @node
|
|
12
|
-
* @node
|
|
13
|
-
* @node
|
|
14
|
-
* @node
|
|
15
|
-
* @node
|
|
16
|
-
* @node
|
|
17
|
-
* @node
|
|
18
|
-
* @node
|
|
19
|
-
* @node
|
|
20
|
-
* @node
|
|
21
|
-
* @node
|
|
22
|
-
* @node
|
|
23
|
-
* @node
|
|
24
|
-
* @node
|
|
25
|
-
*
|
|
26
|
-
* @
|
|
11
|
+
* @node escRecover genesisEscrowRecover [color: "yellow"] [icon: "healing"] [position: 750 200]
|
|
12
|
+
* @node observe genesisObserve [color: "blue"] [icon: "visibility"] [position: 900 200]
|
|
13
|
+
* @node diffFp genesisDiffFingerprint [color: "cyan"] [icon: "compare"] [position: 1100 200]
|
|
14
|
+
* @node stabilize genesisCheckStabilize [color: "orange"] [icon: "lock"] [position: 1300 200]
|
|
15
|
+
* @node propose genesisPropose [color: "blue"] [icon: "psychology"] [position: 1500 200]
|
|
16
|
+
* @node validate genesisValidateProposal [color: "teal"] [icon: "check"] [position: 1700 200]
|
|
17
|
+
* @node snapshot genesisSnapshot [color: "cyan"] [icon: "backup"] [position: 1900 200]
|
|
18
|
+
* @node applyRetry genesisApplyRetry [color: "purple"] [icon: "replay"] [position: 2100 200] [size: 300 200]
|
|
19
|
+
* @node tryApply genesisTryApply applyRetry.attempt [position: 2150 230]
|
|
20
|
+
* @node diffWf genesisDiffWorkflow [color: "cyan"] [icon: "compare"] [position: 2440 200]
|
|
21
|
+
* @node threshold genesisCheckThreshold [color: "orange"] [icon: "tune"] [position: 2640 200]
|
|
22
|
+
* @node approve genesisApprove [color: "orange"] [icon: "send"] [position: 2840 200]
|
|
23
|
+
* @node commit genesisCommit [color: "green"] [icon: "save"] [position: 3040 200]
|
|
24
|
+
* @node escStage genesisEscrowStage [color: "yellow"] [icon: "archive"] [position: 3240 400]
|
|
25
|
+
* @node escVal genesisEscrowValidate [color: "yellow"] [icon: "verified"] [position: 3440 400]
|
|
26
|
+
* @node escMig genesisEscrowMigrate [color: "yellow"] [icon: "swap_horiz"] [position: 3640 400]
|
|
27
|
+
* @node history genesisUpdateHistory [color: "teal"] [icon: "history"] [position: 3840 200]
|
|
28
|
+
* @node escGrace genesisEscrowGrace [color: "yellow"] [icon: "timer"] [position: 4040 200]
|
|
29
|
+
* @node report genesisReport [color: "green"] [icon: "description"] [position: 4240 200]
|
|
30
|
+
*
|
|
31
|
+
* @path Start -> cfg -> detect -> gCfg -> escRecover -> observe -> diffFp -> stabilize -> propose -> validate -> snapshot -> applyRetry -> diffWf -> threshold -> approve -> commit -> escStage -> escVal -> escMig -> history -> escGrace -> report -> Exit
|
|
27
32
|
*
|
|
28
33
|
* @path applyRetry:fail -> report
|
|
34
|
+
* @path escStage:fail -> report
|
|
35
|
+
* @path escVal:fail -> report
|
|
36
|
+
* @path escMig:fail -> report
|
|
29
37
|
*
|
|
30
38
|
* @connect applyRetry.attemptCtx:attempt -> tryApply.ctx
|
|
31
39
|
* @connect tryApply.ctx -> applyRetry.attemptCtx:attempt
|
|
@@ -36,7 +44,7 @@
|
|
|
36
44
|
* @connect report.summary -> Exit.summary
|
|
37
45
|
*
|
|
38
46
|
* @position Start 0 200
|
|
39
|
-
* @position Exit
|
|
47
|
+
* @position Exit 4440 200
|
|
40
48
|
*
|
|
41
49
|
* @param execute [order:-1] - Execute
|
|
42
50
|
* @param projectDir [order:0] [optional] - Project directory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genesis-task.d.ts","sourceRoot":"","sources":["../../src/workflows/genesis-task.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"genesis-task.d.ts","sourceRoot":"","sources":["../../src/workflows/genesis-task.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,MAAM,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,EACpC,eAAe,CAAC,EAAE,WAAW,GAC5B,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAK7E"}
|
|
@@ -11,24 +11,32 @@
|
|
|
11
11
|
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 200]
|
|
12
12
|
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 200]
|
|
13
13
|
* @node gCfg genesisLoadConfig [color: "purple"] [icon: "settings"] [position: 600 200]
|
|
14
|
-
* @node
|
|
15
|
-
* @node
|
|
16
|
-
* @node
|
|
17
|
-
* @node
|
|
18
|
-
* @node
|
|
19
|
-
* @node
|
|
20
|
-
* @node
|
|
21
|
-
* @node
|
|
22
|
-
* @node
|
|
23
|
-
* @node
|
|
24
|
-
* @node
|
|
25
|
-
* @node
|
|
26
|
-
* @node
|
|
27
|
-
* @node
|
|
28
|
-
*
|
|
29
|
-
* @
|
|
14
|
+
* @node escRecover genesisEscrowRecover [color: "yellow"] [icon: "healing"] [position: 750 200]
|
|
15
|
+
* @node observe genesisObserve [color: "blue"] [icon: "visibility"] [position: 900 200]
|
|
16
|
+
* @node diffFp genesisDiffFingerprint [color: "cyan"] [icon: "compare"] [position: 1100 200]
|
|
17
|
+
* @node stabilize genesisCheckStabilize [color: "orange"] [icon: "lock"] [position: 1300 200]
|
|
18
|
+
* @node propose genesisPropose [color: "blue"] [icon: "psychology"] [position: 1500 200]
|
|
19
|
+
* @node validate genesisValidateProposal [color: "teal"] [icon: "check"] [position: 1700 200]
|
|
20
|
+
* @node snapshot genesisSnapshot [color: "cyan"] [icon: "backup"] [position: 1900 200]
|
|
21
|
+
* @node applyRetry genesisApplyRetry [color: "purple"] [icon: "replay"] [position: 2100 200] [size: 300 200]
|
|
22
|
+
* @node tryApply genesisTryApply applyRetry.attempt [position: 2150 230]
|
|
23
|
+
* @node diffWf genesisDiffWorkflow [color: "cyan"] [icon: "compare"] [position: 2440 200]
|
|
24
|
+
* @node threshold genesisCheckThreshold [color: "orange"] [icon: "tune"] [position: 2640 200]
|
|
25
|
+
* @node approve genesisApprove [color: "orange"] [icon: "send"] [position: 2840 200]
|
|
26
|
+
* @node commit genesisCommit [color: "green"] [icon: "save"] [position: 3040 200]
|
|
27
|
+
* @node escStage genesisEscrowStage [color: "yellow"] [icon: "archive"] [position: 3240 400]
|
|
28
|
+
* @node escVal genesisEscrowValidate [color: "yellow"] [icon: "verified"] [position: 3440 400]
|
|
29
|
+
* @node escMig genesisEscrowMigrate [color: "yellow"] [icon: "swap_horiz"] [position: 3640 400]
|
|
30
|
+
* @node history genesisUpdateHistory [color: "teal"] [icon: "history"] [position: 3840 200]
|
|
31
|
+
* @node escGrace genesisEscrowGrace [color: "yellow"] [icon: "timer"] [position: 4040 200]
|
|
32
|
+
* @node report genesisReport [color: "green"] [icon: "description"] [position: 4240 200]
|
|
33
|
+
*
|
|
34
|
+
* @path Start -> cfg -> detect -> gCfg -> escRecover -> observe -> diffFp -> stabilize -> propose -> validate -> snapshot -> applyRetry -> diffWf -> threshold -> approve -> commit -> escStage -> escVal -> escMig -> history -> escGrace -> report -> Exit
|
|
30
35
|
*
|
|
31
36
|
* @path applyRetry:fail -> report
|
|
37
|
+
* @path escStage:fail -> report
|
|
38
|
+
* @path escVal:fail -> report
|
|
39
|
+
* @path escMig:fail -> report
|
|
32
40
|
*
|
|
33
41
|
* @connect applyRetry.attemptCtx:attempt -> tryApply.ctx
|
|
34
42
|
* @connect tryApply.ctx -> applyRetry.attemptCtx:attempt
|
|
@@ -39,7 +47,7 @@
|
|
|
39
47
|
* @connect report.summary -> Exit.summary
|
|
40
48
|
*
|
|
41
49
|
* @position Start 0 200
|
|
42
|
-
* @position Exit
|
|
50
|
+
* @position Exit 4440 200
|
|
43
51
|
*
|
|
44
52
|
* @param execute [order:-1] - Execute
|
|
45
53
|
* @param projectDir [order:0] [optional] - Project directory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genesis-task.js","sourceRoot":"","sources":["../../src/workflows/genesis-task.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,wEAAwE;AACxE,cAAc;
|
|
1
|
+
{"version":3,"file":"genesis-task.js","sourceRoot":"","sources":["../../src/workflows/genesis-task.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,wEAAwE;AACxE,cAAc;AAyBd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAAgB,EAChB,SAAkC,EAAE,EACpC,eAA6B;IAE7B,0BAA0B;IAC1B,+BAA+B;IAC/B,wBAAwB;IACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/flowweaver.manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 1,
|
|
3
3
|
"name": "@synergenius/flowweaver-pack-weaver",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.6.1",
|
|
5
|
+
"description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
|
|
6
6
|
"engineVersion": ">=0.19.4",
|
|
7
7
|
"categories": [
|
|
8
8
|
"automation",
|
|
@@ -843,7 +843,7 @@
|
|
|
843
843
|
"cliCommands": [
|
|
844
844
|
{
|
|
845
845
|
"name": "run",
|
|
846
|
-
"description": "Run a workflow file",
|
|
846
|
+
"description": "Run a workflow file through the bot",
|
|
847
847
|
"usage": "<file>"
|
|
848
848
|
},
|
|
849
849
|
{
|
|
@@ -881,11 +881,12 @@
|
|
|
881
881
|
},
|
|
882
882
|
{
|
|
883
883
|
"name": "eject",
|
|
884
|
-
"description": "Eject
|
|
884
|
+
"description": "Eject bot workflows for customization",
|
|
885
|
+
"usage": "[--workflow <bot|batch|genesis>]"
|
|
885
886
|
},
|
|
886
887
|
{
|
|
887
888
|
"name": "bot",
|
|
888
|
-
"description": "
|
|
889
|
+
"description": "Execute a task from natural language",
|
|
889
890
|
"usage": "<task>"
|
|
890
891
|
},
|
|
891
892
|
{
|
|
@@ -904,7 +905,7 @@
|
|
|
904
905
|
},
|
|
905
906
|
{
|
|
906
907
|
"name": "genesis",
|
|
907
|
-
"description": "Run
|
|
908
|
+
"description": "Run bot self-evolution cycle on a target workflow",
|
|
908
909
|
"usage": "[--init] [--watch]"
|
|
909
910
|
}
|
|
910
911
|
],
|
|
@@ -912,7 +913,7 @@
|
|
|
912
913
|
"mcpTools": [
|
|
913
914
|
{
|
|
914
915
|
"name": "fw_weaver_run",
|
|
915
|
-
"description": "
|
|
916
|
+
"description": "Run a workflow file through the bot"
|
|
916
917
|
},
|
|
917
918
|
{
|
|
918
919
|
"name": "fw_weaver_history",
|
|
@@ -928,7 +929,7 @@
|
|
|
928
929
|
},
|
|
929
930
|
{
|
|
930
931
|
"name": "fw_weaver_bot",
|
|
931
|
-
"description": "
|
|
932
|
+
"description": "Execute a task from natural language"
|
|
932
933
|
},
|
|
933
934
|
{
|
|
934
935
|
"name": "fw_weaver_steer",
|
|
@@ -944,7 +945,7 @@
|
|
|
944
945
|
},
|
|
945
946
|
{
|
|
946
947
|
"name": "fw_weaver_genesis",
|
|
947
|
-
"description": "Run
|
|
948
|
+
"description": "Run bot self-evolution cycle on a target workflow"
|
|
948
949
|
}
|
|
949
950
|
],
|
|
950
951
|
"initContributions": {
|
|
@@ -954,7 +955,6 @@
|
|
|
954
955
|
"description": "Autonomous workflow execution with AI providers and notifications"
|
|
955
956
|
},
|
|
956
957
|
"templates": [
|
|
957
|
-
"weaver",
|
|
958
958
|
"weaver-bot"
|
|
959
959
|
]
|
|
960
960
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synergenius/flowweaver-pack-weaver",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@anthropic-ai/sdk": ">=0.30.0",
|
|
39
|
-
"@synergenius/flow-weaver": ">=0.
|
|
39
|
+
"@synergenius/flow-weaver": ">=0.20.5",
|
|
40
40
|
"zod": ">=3.22.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface WorkflowTemplate {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
|
-
generate: (opts: {
|
|
7
|
-
projectDir?: string;
|
|
8
|
-
}) => string;
|
|
9
|
-
}
|
|
10
|
-
export declare const weaverTemplate: WorkflowTemplate;
|
|
11
|
-
//# sourceMappingURL=weaver-template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weaver-template.d.ts","sourceRoot":"","sources":["../../src/templates/weaver-template.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CACrD;AAED,eAAO,MAAM,cAAc,EAAE,gBAmD5B,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export const weaverTemplate = {
|
|
2
|
-
id: 'weaver',
|
|
3
|
-
name: 'Weaver: Autonomous workflow runner',
|
|
4
|
-
description: 'AI-powered runner that executes any Flow Weaver workflow autonomously, with auto-detected providers and notification support',
|
|
5
|
-
category: 'automation',
|
|
6
|
-
generate: (_opts) => {
|
|
7
|
-
return `// Generated by flowweaver-pack-weaver. Compile before running:
|
|
8
|
-
// flow-weaver compile weaver.ts
|
|
9
|
-
// flow-weaver run weaver.ts
|
|
10
|
-
// Or use the CLI directly: npx weaver weaver.ts
|
|
11
|
-
//
|
|
12
|
-
// Node types are provided by @synergenius/flowweaver-pack-weaver.
|
|
13
|
-
// Install it: npm install @synergenius/flowweaver-pack-weaver
|
|
14
|
-
|
|
15
|
-
import { weaverLoadConfig } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
16
|
-
import { weaverDetectProvider } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
17
|
-
import { weaverResolveTarget } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
18
|
-
import { weaverExecuteTarget } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
19
|
-
import { weaverSendNotify } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
20
|
-
import { weaverReport } from '@synergenius/flowweaver-pack-weaver/node-types';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @flowWeaver workflow
|
|
24
|
-
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 100 0]
|
|
25
|
-
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 250 0]
|
|
26
|
-
* @node target weaverResolveTarget [color: "blue"] [icon: "code"] [position: 400 0]
|
|
27
|
-
* @node exec weaverExecuteTarget [color: "purple"] [icon: "psychology"] [position: 550 0]
|
|
28
|
-
* @node notify weaverSendNotify [color: "yellow"] [icon: "notifications"] [position: 700 0]
|
|
29
|
-
* @node rep weaverReport [color: "green"] [icon: "description"] [position: 850 0]
|
|
30
|
-
* @path Start -> cfg -> detect -> target -> exec -> notify -> rep -> Exit
|
|
31
|
-
* @position Start 0 0
|
|
32
|
-
* @position Exit 1000 0
|
|
33
|
-
* @connect rep.summary -> Exit.summary
|
|
34
|
-
* @param execute [order:-1] - Execute
|
|
35
|
-
* @param params [order:0] - Params
|
|
36
|
-
* @returns onSuccess [order:-2] - On Success
|
|
37
|
-
* @returns onFailure [order:-1] - On Failure
|
|
38
|
-
* @returns summary [order:0] - Summary text
|
|
39
|
-
*/
|
|
40
|
-
export async function weaver(
|
|
41
|
-
execute: boolean,
|
|
42
|
-
params: Record<string, never> = {},
|
|
43
|
-
__abortSignal__?: AbortSignal,
|
|
44
|
-
): Promise<{ onSuccess: boolean; onFailure: boolean; summary: string | null }> {
|
|
45
|
-
// @flow-weaver-body-start
|
|
46
|
-
// (auto-generated by compiler)
|
|
47
|
-
// @flow-weaver-body-end
|
|
48
|
-
return { onSuccess: false, onFailure: true, summary: null };
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=weaver-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weaver-template.js","sourceRoot":"","sources":["../../src/templates/weaver-template.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,cAAc,GAAqB;IAC9C,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,8HAA8H;IAC3I,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CV,CAAC;IACA,CAAC;CACF,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @flowWeaver workflow
|
|
3
|
-
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 0]
|
|
4
|
-
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 0]
|
|
5
|
-
* @node target weaverResolveTarget [color: "blue"] [icon: "code"] [position: 600 0]
|
|
6
|
-
* @node exec weaverExecuteTarget [color: "purple"] [icon: "psychology"] [position: 800 0]
|
|
7
|
-
* @node notify weaverSendNotify [color: "yellow"] [icon: "notifications"] [position: 1000 0]
|
|
8
|
-
* @node rep weaverReport [color: "green"] [icon: "description"] [position: 1200 0]
|
|
9
|
-
* @path Start -> cfg -> detect -> target -> exec -> notify -> rep -> Exit
|
|
10
|
-
* @position Start 0 0
|
|
11
|
-
* @position Exit 1400 0
|
|
12
|
-
* @connect rep.summary -> Exit.summary
|
|
13
|
-
* @param execute [order:-1] - Execute
|
|
14
|
-
* @param params [order:0] [hidden] - Params
|
|
15
|
-
* @returns onSuccess [order:-2] - On Success
|
|
16
|
-
* @returns onFailure [order:-1] [hidden] - On Failure
|
|
17
|
-
* @returns summary [order:0] - Summary text
|
|
18
|
-
*/
|
|
19
|
-
export declare function weaver(execute: boolean, params?: Record<string, never>, __abortSignal__?: AbortSignal): Promise<{
|
|
20
|
-
onSuccess: boolean;
|
|
21
|
-
onFailure: boolean;
|
|
22
|
-
summary: string | null;
|
|
23
|
-
}>;
|
|
24
|
-
//# sourceMappingURL=weaver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weaver.d.ts","sourceRoot":"","sources":["../../src/workflows/weaver.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,EAChB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAM,EAClC,eAAe,CAAC,EAAE,WAAW,GAC5B,OAAO,CAAC;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAK7E"}
|
package/dist/workflows/weaver.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Managed weaver workflow - shipped with the pack.
|
|
2
|
-
// Users on managed mode use this automatically.
|
|
3
|
-
// Run `weaver eject` to customize.
|
|
4
|
-
/**
|
|
5
|
-
* @flowWeaver workflow
|
|
6
|
-
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 0]
|
|
7
|
-
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 0]
|
|
8
|
-
* @node target weaverResolveTarget [color: "blue"] [icon: "code"] [position: 600 0]
|
|
9
|
-
* @node exec weaverExecuteTarget [color: "purple"] [icon: "psychology"] [position: 800 0]
|
|
10
|
-
* @node notify weaverSendNotify [color: "yellow"] [icon: "notifications"] [position: 1000 0]
|
|
11
|
-
* @node rep weaverReport [color: "green"] [icon: "description"] [position: 1200 0]
|
|
12
|
-
* @path Start -> cfg -> detect -> target -> exec -> notify -> rep -> Exit
|
|
13
|
-
* @position Start 0 0
|
|
14
|
-
* @position Exit 1400 0
|
|
15
|
-
* @connect rep.summary -> Exit.summary
|
|
16
|
-
* @param execute [order:-1] - Execute
|
|
17
|
-
* @param params [order:0] [hidden] - Params
|
|
18
|
-
* @returns onSuccess [order:-2] - On Success
|
|
19
|
-
* @returns onFailure [order:-1] [hidden] - On Failure
|
|
20
|
-
* @returns summary [order:0] - Summary text
|
|
21
|
-
*/
|
|
22
|
-
export async function weaver(execute, params = {}, __abortSignal__) {
|
|
23
|
-
// @flow-weaver-body-start
|
|
24
|
-
// (auto-generated by compiler)
|
|
25
|
-
// @flow-weaver-body-end
|
|
26
|
-
return { onSuccess: false, onFailure: true, summary: null };
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=weaver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weaver.js","sourceRoot":"","sources":["../../src/workflows/weaver.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,gDAAgD;AAChD,mCAAmC;AASnC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,OAAgB,EAChB,SAAgC,EAAE,EAClC,eAA6B;IAE7B,0BAA0B;IAC1B,+BAA+B;IAC/B,wBAAwB;IACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC9D,CAAC"}
|