@synergenius/flowweaver-pack-weaver 0.6.0 → 0.7.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/dist/bot/ai-client.d.ts +1 -0
- package/dist/bot/ai-client.d.ts.map +1 -1
- package/dist/bot/ai-client.js +52 -1
- package/dist/bot/ai-client.js.map +1 -1
- package/dist/bot/audit-logger.d.ts +5 -0
- package/dist/bot/audit-logger.d.ts.map +1 -0
- package/dist/bot/audit-logger.js +42 -0
- package/dist/bot/audit-logger.js.map +1 -0
- package/dist/bot/audit-store.d.ts +13 -0
- package/dist/bot/audit-store.d.ts.map +1 -0
- package/dist/bot/audit-store.js +59 -0
- package/dist/bot/audit-store.js.map +1 -0
- package/dist/bot/cli-provider.d.ts +1 -0
- package/dist/bot/cli-provider.d.ts.map +1 -1
- package/dist/bot/cli-provider.js +86 -22
- package/dist/bot/cli-provider.js.map +1 -1
- package/dist/bot/cli-stream-parser.d.ts +11 -0
- package/dist/bot/cli-stream-parser.d.ts.map +1 -0
- package/dist/bot/cli-stream-parser.js +53 -0
- package/dist/bot/cli-stream-parser.js.map +1 -0
- 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 +14 -7
- package/dist/bot/file-validator.js.map +1 -1
- package/dist/bot/fw-api.d.ts +8 -0
- package/dist/bot/fw-api.d.ts.map +1 -0
- package/dist/bot/fw-api.js +12 -0
- package/dist/bot/fw-api.js.map +1 -0
- package/dist/bot/runner.d.ts +2 -1
- package/dist/bot/runner.d.ts.map +1 -1
- package/dist/bot/runner.js +8 -0
- package/dist/bot/runner.js.map +1 -1
- package/dist/bot/step-executor.d.ts +3 -2
- package/dist/bot/step-executor.d.ts.map +1 -1
- package/dist/bot/step-executor.js +9 -30
- package/dist/bot/step-executor.js.map +1 -1
- package/dist/bot/system-prompt.d.ts +13 -1
- package/dist/bot/system-prompt.d.ts.map +1 -1
- package/dist/bot/system-prompt.js +28 -22
- package/dist/bot/system-prompt.js.map +1 -1
- package/dist/bot/types.d.ts +9 -1
- package/dist/bot/types.d.ts.map +1 -1
- package/dist/cli-bridge.d.ts.map +1 -1
- package/dist/cli-bridge.js +2 -1
- package/dist/cli-bridge.js.map +1 -1
- package/dist/cli-handlers.d.ts +4 -2
- package/dist/cli-handlers.d.ts.map +1 -1
- package/dist/cli-handlers.js +199 -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/approval-gate.d.ts.map +1 -1
- package/dist/node-types/approval-gate.js +4 -0
- package/dist/node-types/approval-gate.js.map +1 -1
- package/dist/node-types/exec-validate-retry.d.ts.map +1 -1
- package/dist/node-types/exec-validate-retry.js +33 -7
- package/dist/node-types/exec-validate-retry.js.map +1 -1
- package/dist/node-types/execute-plan.js +1 -1
- package/dist/node-types/execute-plan.js.map +1 -1
- package/dist/node-types/genesis-validate-proposal.d.ts.map +1 -1
- package/dist/node-types/genesis-validate-proposal.js +23 -0
- package/dist/node-types/genesis-validate-proposal.js.map +1 -1
- package/dist/node-types/git-ops.d.ts.map +1 -1
- package/dist/node-types/git-ops.js +2 -0
- package/dist/node-types/git-ops.js.map +1 -1
- package/dist/node-types/plan-task.d.ts.map +1 -1
- package/dist/node-types/plan-task.js +9 -1
- package/dist/node-types/plan-task.js.map +1 -1
- package/dist/node-types/send-notify.d.ts.map +1 -1
- package/dist/node-types/send-notify.js +4 -1
- package/dist/node-types/send-notify.js.map +1 -1
- package/dist/node-types/validate-result.d.ts +2 -2
- package/dist/node-types/validate-result.d.ts.map +1 -1
- package/dist/node-types/validate-result.js +2 -2
- package/dist/node-types/validate-result.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/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/dist/workflows/weaver-bot-batch.d.ts +4 -1
- package/dist/workflows/weaver-bot-batch.d.ts.map +1 -1
- package/dist/workflows/weaver-bot-batch.js +1 -1
- package/dist/workflows/weaver-bot-batch.js.map +1 -1
- package/dist/workflows/weaver-bot.d.ts +4 -1
- package/dist/workflows/weaver-bot.d.ts.map +1 -1
- package/dist/workflows/weaver-bot.js +1 -1
- package/dist/workflows/weaver-bot.js.map +1 -1
- package/flowweaver.manifest.json +10 -10
- package/package.json +4 -3
- package/src/bot/agent-provider.ts +273 -0
- package/src/bot/ai-client.ts +109 -0
- package/src/bot/approvals.ts +273 -0
- package/src/bot/audit-logger.ts +45 -0
- package/src/bot/audit-store.ts +69 -0
- package/src/bot/bot-agent-channel.ts +99 -0
- package/src/bot/cli-provider.ts +169 -0
- package/src/bot/cli-stream-parser.ts +59 -0
- package/src/bot/cost-store.ts +92 -0
- package/src/bot/cost-tracker.ts +72 -0
- package/src/bot/cron-parser.ts +153 -0
- package/src/bot/cron-scheduler.ts +48 -0
- package/src/bot/dashboard.ts +658 -0
- package/src/bot/design-checker.ts +327 -0
- package/src/bot/file-lock.ts +73 -0
- package/src/bot/file-validator.ts +41 -0
- package/src/bot/file-watcher.ts +103 -0
- package/src/bot/fw-api.ts +18 -0
- package/src/bot/genesis-prompt-context.ts +135 -0
- package/src/bot/genesis-store.ts +180 -0
- package/src/bot/index.ts +127 -0
- package/src/bot/notifications.ts +263 -0
- package/src/bot/pipeline-runner.ts +324 -0
- package/src/bot/provider-registry.ts +236 -0
- package/src/bot/run-store.ts +169 -0
- package/src/bot/runner.ts +311 -0
- package/src/bot/session-state.ts +73 -0
- package/src/bot/steering.ts +44 -0
- package/src/bot/step-executor.ts +34 -0
- package/src/bot/system-prompt.ts +280 -0
- package/src/bot/task-queue.ts +111 -0
- package/src/bot/types.ts +571 -0
- package/src/bot/utils.ts +17 -0
- package/src/bot/watch-daemon.ts +203 -0
- package/src/bot/web-approval.ts +240 -0
- package/src/cli-bridge.ts +41 -0
- package/src/cli-handlers.ts +1271 -0
- package/src/docs/weaver-config.md +135 -0
- package/src/index.ts +173 -0
- package/src/mcp-tools.ts +274 -0
- package/src/node-types/abort-task.ts +31 -0
- package/src/node-types/approval-gate.ts +75 -0
- package/src/node-types/bot-report.ts +82 -0
- package/src/node-types/build-context.ts +65 -0
- package/src/node-types/detect-provider.ts +75 -0
- package/src/node-types/exec-validate-retry.ts +175 -0
- package/src/node-types/execute-plan.ts +130 -0
- package/src/node-types/execute-target.ts +267 -0
- package/src/node-types/fix-errors.ts +68 -0
- package/src/node-types/genesis-apply-retry.ts +138 -0
- package/src/node-types/genesis-apply.ts +96 -0
- package/src/node-types/genesis-approve.ts +73 -0
- package/src/node-types/genesis-check-stabilize.ts +37 -0
- package/src/node-types/genesis-check-threshold.ts +34 -0
- package/src/node-types/genesis-commit.ts +71 -0
- package/src/node-types/genesis-compile-validate.ts +77 -0
- package/src/node-types/genesis-diff-fingerprint.ts +67 -0
- package/src/node-types/genesis-diff-workflow.ts +71 -0
- package/src/node-types/genesis-escrow-grace.ts +62 -0
- package/src/node-types/genesis-escrow-migrate.ts +138 -0
- package/src/node-types/genesis-escrow-recover.ts +99 -0
- package/src/node-types/genesis-escrow-stage.ts +104 -0
- package/src/node-types/genesis-escrow-validate.ts +120 -0
- package/src/node-types/genesis-load-config.ts +44 -0
- package/src/node-types/genesis-observe.ts +119 -0
- package/src/node-types/genesis-propose.ts +97 -0
- package/src/node-types/genesis-report.ts +95 -0
- package/src/node-types/genesis-snapshot.ts +30 -0
- package/src/node-types/genesis-try-apply.ts +165 -0
- package/src/node-types/genesis-update-history.ts +72 -0
- package/src/node-types/genesis-validate-proposal.ts +124 -0
- package/src/node-types/git-ops.ts +72 -0
- package/src/node-types/index.ts +36 -0
- package/src/node-types/load-config.ts +27 -0
- package/src/node-types/plan-task.ts +77 -0
- package/src/node-types/read-workflow.ts +68 -0
- package/src/node-types/receive-task.ts +92 -0
- package/src/node-types/report.ts +25 -0
- package/src/node-types/resolve-target.ts +64 -0
- package/src/node-types/route-task.ts +25 -0
- package/src/node-types/send-notify.ts +75 -0
- package/src/node-types/validate-result.ts +49 -0
- package/src/templates/index.ts +5 -0
- package/src/templates/weaver-bot-template.ts +106 -0
- package/src/workflows/genesis-task.ts +91 -0
- package/src/workflows/index.ts +3 -0
- package/src/workflows/weaver-bot-batch.ts +65 -0
- package/src/workflows/weaver-bot.ts +79 -0
- 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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Managed weaver bot workflow - autonomous task creation and management.
|
|
2
|
+
// Run `weaver eject` to customize.
|
|
3
|
+
|
|
4
|
+
import { weaverLoadConfig } from '../node-types/load-config.js';
|
|
5
|
+
import { weaverDetectProvider } from '../node-types/detect-provider.js';
|
|
6
|
+
import { weaverReceiveTask } from '../node-types/receive-task.js';
|
|
7
|
+
import { weaverRouteTask } from '../node-types/route-task.js';
|
|
8
|
+
import { weaverReadWorkflow } from '../node-types/read-workflow.js';
|
|
9
|
+
import { weaverBuildContext } from '../node-types/build-context.js';
|
|
10
|
+
import { weaverPlanTask } from '../node-types/plan-task.js';
|
|
11
|
+
import { weaverApprovalGate } from '../node-types/approval-gate.js';
|
|
12
|
+
import { weaverAbortTask } from '../node-types/abort-task.js';
|
|
13
|
+
import { weaverExecValidateRetry } from '../node-types/exec-validate-retry.js';
|
|
14
|
+
import { weaverGitOps } from '../node-types/git-ops.js';
|
|
15
|
+
import { weaverSendNotify } from '../node-types/send-notify.js';
|
|
16
|
+
import { weaverBotReport } from '../node-types/bot-report.js';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Autonomous workflow bot. Routes by task type, branches on approval,
|
|
20
|
+
* retries validation failures via scoped execution, fans out to git
|
|
21
|
+
* and notifications in parallel, merges all paths at report.
|
|
22
|
+
*
|
|
23
|
+
* @flowWeaver workflow
|
|
24
|
+
*
|
|
25
|
+
* @node cfg weaverLoadConfig [color: "teal"] [icon: "settings"] [position: 200 200]
|
|
26
|
+
* @node detect weaverDetectProvider [color: "cyan"] [icon: "search"] [position: 400 200]
|
|
27
|
+
* @node receive weaverReceiveTask [color: "blue"] [icon: "send"] [position: 600 200]
|
|
28
|
+
* @node route weaverRouteTask [color: "purple"] [icon: "flow"] [position: 800 200]
|
|
29
|
+
*
|
|
30
|
+
* @node readWf weaverReadWorkflow [color: "cyan"] [icon: "description"] [position: 1000 450]
|
|
31
|
+
*
|
|
32
|
+
* @node context weaverBuildContext [color: "teal"] [icon: "code"] [position: 1000 200]
|
|
33
|
+
* @node plan weaverPlanTask [color: "blue"] [icon: "psychology"] [position: 1200 200]
|
|
34
|
+
* @node approve weaverApprovalGate [color: "orange"] [icon: "send"] [position: 1400 200]
|
|
35
|
+
*
|
|
36
|
+
* @node abort weaverAbortTask [color: "red"] [icon: "code"] [position: 1600 450]
|
|
37
|
+
*
|
|
38
|
+
* @node execRetry weaverExecValidateRetry [color: "purple"] [icon: "code"] [position: 1600 200]
|
|
39
|
+
*
|
|
40
|
+
* @node gitOps weaverGitOps [color: "green"] [icon: "code"] [position: 1800 100]
|
|
41
|
+
* @node notify weaverSendNotify [color: "yellow"] [icon: "send"] [position: 1800 300]
|
|
42
|
+
*
|
|
43
|
+
* @node report weaverBotReport [color: "green"] [icon: "description"] [position: 2000 200]
|
|
44
|
+
*
|
|
45
|
+
* @path Start -> cfg -> detect -> receive -> route -> context -> plan -> approve -> execRetry -> gitOps -> report -> Exit
|
|
46
|
+
* @path execRetry -> notify
|
|
47
|
+
* @path route:fail -> readWf
|
|
48
|
+
* @path approve:fail -> abort
|
|
49
|
+
*
|
|
50
|
+
* @connect readWf.onSuccess -> report.execute
|
|
51
|
+
* @connect abort.onSuccess -> report.execute
|
|
52
|
+
* @connect notify.onSuccess -> report.execute
|
|
53
|
+
*
|
|
54
|
+
* @connect gitOps.ctx -> report.mainCtx
|
|
55
|
+
* @connect readWf.ctx -> report.readCtx
|
|
56
|
+
* @connect abort.ctx -> report.abortCtx
|
|
57
|
+
*
|
|
58
|
+
* @connect report.summary -> Exit.summary
|
|
59
|
+
*
|
|
60
|
+
* @position Start 0 200
|
|
61
|
+
* @position Exit 2200 200
|
|
62
|
+
*
|
|
63
|
+
* @param execute [order:-1] - Execute
|
|
64
|
+
* @param taskJson [order:0] [optional] - Task instruction (JSON)
|
|
65
|
+
* @param projectDir [order:1] [optional] - Project directory
|
|
66
|
+
* @returns onSuccess [order:-2] - On Success
|
|
67
|
+
* @returns onFailure [order:-1] [hidden] - On Failure
|
|
68
|
+
* @returns summary [order:0] - Summary text
|
|
69
|
+
*/
|
|
70
|
+
export async function weaverBot(
|
|
71
|
+
execute: boolean,
|
|
72
|
+
params: { taskJson?: string; projectDir?: string },
|
|
73
|
+
__abortSignal__?: AbortSignal,
|
|
74
|
+
): Promise<{ onSuccess: boolean; onFailure: boolean; summary: string | null }> {
|
|
75
|
+
// @flow-weaver-body-start
|
|
76
|
+
// (auto-generated by compiler)
|
|
77
|
+
// @flow-weaver-body-end
|
|
78
|
+
return { onSuccess: false, onFailure: true, summary: null };
|
|
79
|
+
}
|
|
@@ -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"}
|