ultravisor 1.0.3 → 1.0.8
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/.claude/launch.json +11 -0
- package/.claude/ultravisor-dev-config.json +3 -0
- package/card-audit.json +1545 -0
- package/docs/_sidebar.md +17 -0
- package/docs/css/docuserve.css +73 -0
- package/docs/features/beacon-authentication.md +209 -0
- package/docs/features/beacon-providers.md +1299 -0
- package/docs/features/beacons.md +530 -0
- package/docs/features/capabilities.md +193 -0
- package/docs/features/llm-model-setup.md +505 -0
- package/docs/features/llm.md +262 -0
- package/docs/features/tasks-content-system.md +110 -0
- package/docs/features/tasks-data-transform.md +233 -0
- package/docs/features/tasks-extension.md +36 -0
- package/docs/features/tasks-file-system.md +203 -0
- package/docs/features/tasks-flow-control.md +125 -0
- package/docs/features/tasks-http-client.md +119 -0
- package/docs/features/tasks-llm.md +118 -0
- package/docs/features/tasks-meadow-api.md +163 -0
- package/docs/features/tasks-user-interaction.md +49 -0
- package/docs/features/tasks.md +14 -0
- package/docs/index.html +1 -1
- package/docs/retold-catalog.json +1 -1
- package/docs/retold-keyword-index.json +17374 -5
- package/operation-library/api-data-pipeline.json +143 -0
- package/operation-library/beacon-remote-command.json +72 -0
- package/operation-library/conditional-file-backup.json +143 -0
- package/operation-library/config-processor.json +136 -0
- package/operation-library/csv-data-analysis.json +228 -0
- package/operation-library/csv-to-json.json +160 -0
- package/operation-library/directory-inventory.json +128 -0
- package/operation-library/expression-calculator.json +114 -0
- package/operation-library/file-search-replace.json +175 -0
- package/operation-library/git-status-report.json +368 -0
- package/operation-library/health-check-ping.json +329 -0
- package/operation-library/json-config-merge.json +313 -0
- package/operation-library/llm-embedding-tool-use.json +314 -0
- package/operation-library/llm-multi-turn-analysis.json +322 -0
- package/operation-library/llm-summarize.json +264 -0
- package/operation-library/log-line-counter.json +185 -0
- package/operation-library/meadow-crud-lifecycle.json +264 -0
- package/operation-library/npm-project-validator.json +193 -0
- package/operation-library/rest-api-orchestrator.json +218 -0
- package/operation-library/shell-system-info.json +137 -0
- package/operation-library/simple-echo.json +95 -0
- package/operation-library/template-processor.json +299 -0
- package/operation-library/text-sanitizer.json +176 -0
- package/package.json +12 -8
- package/source/Ultravisor.cjs +30 -3
- package/source/beacon/Ultravisor-Beacon-CLI.cjs +143 -0
- package/source/beacon/Ultravisor-Beacon-CapabilityProvider.cjs +129 -0
- package/source/beacon/Ultravisor-Beacon-Client.cjs +568 -0
- package/source/beacon/Ultravisor-Beacon-Executor.cjs +500 -0
- package/source/beacon/Ultravisor-Beacon-ProviderRegistry.cjs +330 -0
- package/source/beacon/providers/Ultravisor-Beacon-Provider-FileSystem.cjs +331 -0
- package/source/beacon/providers/Ultravisor-Beacon-Provider-LLM.cjs +966 -0
- package/source/beacon/providers/Ultravisor-Beacon-Provider-Shell.cjs +95 -0
- package/source/cli/Ultravisor-CLIProgram.cjs +44 -22
- package/source/cli/commands/Ultravisor-Command-SingleOperation.cjs +29 -18
- package/source/cli/commands/Ultravisor-Command-SingleTask.cjs +62 -19
- package/source/cli/commands/Ultravisor-Command-UpdateTask.cjs +27 -15
- package/source/config/Ultravisor-Default-Command-Configuration.cjs +12 -3
- package/source/services/Ultravisor-Beacon-Coordinator.cjs +966 -0
- package/source/services/Ultravisor-ExecutionEngine.cjs +1093 -0
- package/source/services/Ultravisor-ExecutionManifest.cjs +629 -0
- package/source/services/Ultravisor-Hypervisor-State.cjs +270 -97
- package/source/services/Ultravisor-Hypervisor.cjs +185 -75
- package/source/services/Ultravisor-Schedule-Persistence-Base.cjs +45 -0
- package/source/services/Ultravisor-StateManager.cjs +253 -0
- package/source/services/Ultravisor-TaskTypeRegistry.cjs +213 -0
- package/source/services/persistence/Ultravisor-Schedule-Persistence-JSONFile.cjs +140 -0
- package/source/services/tasks/Ultravisor-BuiltIn-TaskConfigs.cjs +19 -0
- package/source/services/tasks/Ultravisor-TaskHelper-BeaconDispatch.cjs +107 -0
- package/source/services/tasks/Ultravisor-TaskType-Base.cjs +125 -0
- package/source/services/tasks/content-system/Ultravisor-TaskConfigs-ContentSystem.cjs +90 -0
- package/source/services/tasks/content-system/definitions/content-create-folder.json +24 -0
- package/source/services/tasks/content-system/definitions/content-list-files.json +27 -0
- package/source/services/tasks/content-system/definitions/content-read-file.json +26 -0
- package/source/services/tasks/content-system/definitions/content-save-file.json +26 -0
- package/source/services/tasks/data-transform/Ultravisor-TaskConfigs-DataTransform.cjs +577 -0
- package/source/services/tasks/data-transform/Ultravisor-TaskType-ReplaceString.cjs +80 -0
- package/source/services/tasks/data-transform/Ultravisor-TaskType-SetValues.cjs +74 -0
- package/source/services/tasks/data-transform/Ultravisor-TaskType-StringAppender.cjs +90 -0
- package/source/services/tasks/data-transform/definitions/comprehension-intersect.json +24 -0
- package/source/services/tasks/data-transform/definitions/csv-transform.json +24 -0
- package/source/services/tasks/data-transform/definitions/expression-solver.json +20 -0
- package/source/services/tasks/data-transform/definitions/histogram.json +23 -0
- package/source/services/tasks/data-transform/definitions/parse-csv.json +27 -0
- package/source/services/tasks/data-transform/definitions/replace-string.json +27 -0
- package/source/services/tasks/data-transform/definitions/set-values.json +17 -0
- package/source/services/tasks/data-transform/definitions/string-appender.json +22 -0
- package/source/services/tasks/data-transform/definitions/template-string.json +20 -0
- package/source/services/tasks/extension/Ultravisor-TaskConfigs-Extension.cjs +87 -0
- package/source/services/tasks/extension/definitions/beacon-dispatch.json +32 -0
- package/source/services/tasks/file-system/Ultravisor-TaskConfigs-FileSystem.cjs +509 -0
- package/source/services/tasks/file-system/Ultravisor-TaskType-ReadFile.cjs +96 -0
- package/source/services/tasks/file-system/Ultravisor-TaskType-ReadFileBuffered.cjs +123 -0
- package/source/services/tasks/file-system/Ultravisor-TaskType-WriteFile.cjs +106 -0
- package/source/services/tasks/file-system/definitions/copy-file.json +27 -0
- package/source/services/tasks/file-system/definitions/list-files.json +27 -0
- package/source/services/tasks/file-system/definitions/read-file-buffered.json +31 -0
- package/source/services/tasks/file-system/definitions/read-file.json +26 -0
- package/source/services/tasks/file-system/definitions/read-json.json +23 -0
- package/source/services/tasks/file-system/definitions/write-file.json +29 -0
- package/source/services/tasks/file-system/definitions/write-json.json +30 -0
- package/source/services/tasks/flow-control/Ultravisor-TaskConfigs-FlowControl.cjs +353 -0
- package/source/services/tasks/flow-control/Ultravisor-TaskType-IfConditional.cjs +125 -0
- package/source/services/tasks/flow-control/Ultravisor-TaskType-LaunchOperation.cjs +186 -0
- package/source/services/tasks/flow-control/Ultravisor-TaskType-SplitExecute.cjs +164 -0
- package/source/services/tasks/flow-control/definitions/if-conditional.json +25 -0
- package/source/services/tasks/flow-control/definitions/launch-operation.json +27 -0
- package/source/services/tasks/flow-control/definitions/split-execute.json +32 -0
- package/source/services/tasks/http-client/Ultravisor-TaskConfigs-HttpClient.cjs +281 -0
- package/source/services/tasks/http-client/definitions/get-json.json +26 -0
- package/source/services/tasks/http-client/definitions/get-text.json +26 -0
- package/source/services/tasks/http-client/definitions/rest-request.json +32 -0
- package/source/services/tasks/http-client/definitions/send-json.json +28 -0
- package/source/services/tasks/llm/Ultravisor-TaskConfigs-LLM.cjs +605 -0
- package/source/services/tasks/llm/definitions/llm-chat-completion.json +46 -0
- package/source/services/tasks/llm/definitions/llm-embedding.json +31 -0
- package/source/services/tasks/llm/definitions/llm-tool-use.json +42 -0
- package/source/services/tasks/meadow-api/Ultravisor-TaskConfigs-MeadowApi.cjs +341 -0
- package/source/services/tasks/meadow-api/definitions/meadow-count.json +26 -0
- package/source/services/tasks/meadow-api/definitions/meadow-create.json +26 -0
- package/source/services/tasks/meadow-api/definitions/meadow-delete.json +23 -0
- package/source/services/tasks/meadow-api/definitions/meadow-read.json +26 -0
- package/source/services/tasks/meadow-api/definitions/meadow-reads.json +29 -0
- package/source/services/tasks/meadow-api/definitions/meadow-update.json +26 -0
- package/source/services/tasks/shell/Ultravisor-TaskConfigs-Shell.cjs +63 -0
- package/source/services/tasks/shell/definitions/command.json +29 -0
- package/source/services/tasks/user-interaction/Ultravisor-TaskConfigs-UserInteraction.cjs +64 -0
- package/source/services/tasks/user-interaction/Ultravisor-TaskType-ErrorMessage.cjs +55 -0
- package/source/services/tasks/user-interaction/Ultravisor-TaskType-ValueInput.cjs +47 -0
- package/source/services/tasks/user-interaction/definitions/error-message.json +18 -0
- package/source/services/tasks/user-interaction/definitions/value-input.json +23 -0
- package/source/web_server/Ultravisor-API-Server.cjs +849 -124
- package/test/Ultravisor_browser_tests.js +2226 -0
- package/test/Ultravisor_operation_library_tests.js +894 -0
- package/test/Ultravisor_tests.js +4946 -5044
- package/test/workflows/test-content-concatenate-all.json +339 -0
- package/test/workflows/test-content-full-pipeline.json +159 -0
- package/test/workflows/test-content-list-files.json +76 -0
- package/test/workflows/test-content-save-and-read.json +106 -0
- package/webinterface/css/ultravisor-themes.css +668 -0
- package/webinterface/css/ultravisor.css +37 -14
- package/webinterface/docs/card-help/beacon-dispatch.md +30 -0
- package/webinterface/docs/card-help/command.md +27 -0
- package/webinterface/docs/card-help/comprehension-intersect.md +24 -0
- package/webinterface/docs/card-help/content-create-folder.md +22 -0
- package/webinterface/docs/card-help/content-list-files.md +25 -0
- package/webinterface/docs/card-help/content-read-file.md +24 -0
- package/webinterface/docs/card-help/content-save-file.md +24 -0
- package/webinterface/docs/card-help/copy-file.md +25 -0
- package/webinterface/docs/card-help/csv-transform.md +24 -0
- package/webinterface/docs/card-help/end.md +11 -0
- package/webinterface/docs/card-help/error-message.md +16 -0
- package/webinterface/docs/card-help/expression-solver.md +21 -0
- package/webinterface/docs/card-help/get-json.md +24 -0
- package/webinterface/docs/card-help/get-text.md +24 -0
- package/webinterface/docs/card-help/histogram.md +23 -0
- package/webinterface/docs/card-help/if-conditional.md +23 -0
- package/webinterface/docs/card-help/launch-operation.md +25 -0
- package/webinterface/docs/card-help/list-files.md +25 -0
- package/webinterface/docs/card-help/llm-chat-completion.md +43 -0
- package/webinterface/docs/card-help/llm-embedding.md +24 -0
- package/webinterface/docs/card-help/llm-tool-use.md +39 -0
- package/webinterface/docs/card-help/meadow-count.md +24 -0
- package/webinterface/docs/card-help/meadow-create.md +24 -0
- package/webinterface/docs/card-help/meadow-delete.md +19 -0
- package/webinterface/docs/card-help/meadow-read.md +24 -0
- package/webinterface/docs/card-help/meadow-reads.md +27 -0
- package/webinterface/docs/card-help/meadow-update.md +24 -0
- package/webinterface/docs/card-help/parse-csv.md +27 -0
- package/webinterface/docs/card-help/read-file-buffered.md +29 -0
- package/webinterface/docs/card-help/read-file.md +24 -0
- package/webinterface/docs/card-help/read-json.md +21 -0
- package/webinterface/docs/card-help/replace-string.md +25 -0
- package/webinterface/docs/card-help/rest-request.md +30 -0
- package/webinterface/docs/card-help/send-json.md +26 -0
- package/webinterface/docs/card-help/set-values.md +16 -0
- package/webinterface/docs/card-help/split-execute.md +35 -0
- package/webinterface/docs/card-help/start.md +11 -0
- package/webinterface/docs/card-help/string-appender.md +22 -0
- package/webinterface/docs/card-help/template-string.md +21 -0
- package/webinterface/docs/card-help/value-input.md +24 -0
- package/webinterface/docs/card-help/write-file.md +27 -0
- package/webinterface/docs/card-help/write-json.md +28 -0
- package/webinterface/html/index.html +5 -0
- package/webinterface/package.json +13 -4
- package/webinterface/source/Pict-Application-Ultravisor.js +564 -70
- package/webinterface/source/Ultravisor-TimingUtils.js +99 -0
- package/webinterface/source/card-help-content.js +46 -0
- package/webinterface/source/cards/Ultravisor-BuiltIn-CardConfigs.js +174 -0
- package/webinterface/source/cards/Ultravisor-CardConfigGenerator.js +431 -0
- package/webinterface/source/data/ExampleFlow-CSVPipeline.js +231 -0
- package/webinterface/source/data/ExampleFlow-FileProcessor.js +315 -0
- package/webinterface/source/data/ExampleFlow-MeadowPipeline.js +328 -0
- package/webinterface/source/panels/Ultravisor-CardSettingsPanel.js +902 -0
- package/webinterface/source/providers/PictRouter-Ultravisor-Configuration.json +20 -8
- package/webinterface/source/views/PictView-Ultravisor-BeaconList.js +817 -0
- package/webinterface/source/views/PictView-Ultravisor-BottomBar.js +5 -5
- package/webinterface/source/views/PictView-Ultravisor-Dashboard.js +25 -25
- package/webinterface/source/views/PictView-Ultravisor-Documentation.js +856 -0
- package/webinterface/source/views/PictView-Ultravisor-FlowEditor.js +777 -0
- package/webinterface/source/views/PictView-Ultravisor-ManifestList.js +321 -58
- package/webinterface/source/views/PictView-Ultravisor-OperationEdit.js +36 -91
- package/webinterface/source/views/PictView-Ultravisor-OperationList.js +388 -16
- package/webinterface/source/views/PictView-Ultravisor-PendingInput.js +314 -0
- package/webinterface/source/views/PictView-Ultravisor-Schedule.js +521 -65
- package/webinterface/source/views/PictView-Ultravisor-TimingView.js +333 -71
- package/webinterface/source/views/PictView-Ultravisor-TopBar.js +257 -21
- package/webinterface/theme-sampler.html +645 -0
- package/debug/Harness.js +0 -6
- package/source/services/Ultravisor-Operation-Manifest.cjs +0 -160
- package/source/services/Ultravisor-Operation.cjs +0 -200
- package/source/services/Ultravisor-Task.cjs +0 -349
- package/source/services/events/Ultravisor-Hypervisor-Event-Solver.cjs +0 -11
- package/source/services/tasks/Ultravisor-Task-Base.cjs +0 -264
- package/source/services/tasks/Ultravisor-Task-CollectValues.cjs +0 -188
- package/source/services/tasks/Ultravisor-Task-Command.cjs +0 -65
- package/source/services/tasks/Ultravisor-Task-CommandEach.cjs +0 -190
- package/source/services/tasks/Ultravisor-Task-Conditional.cjs +0 -104
- package/source/services/tasks/Ultravisor-Task-DateWindow.cjs +0 -72
- package/source/services/tasks/Ultravisor-Task-GeneratePagedOperation.cjs +0 -336
- package/source/services/tasks/Ultravisor-Task-LaunchOperation.cjs +0 -143
- package/source/services/tasks/Ultravisor-Task-LaunchTask.cjs +0 -146
- package/source/services/tasks/Ultravisor-Task-LineMatch.cjs +0 -158
- package/source/services/tasks/Ultravisor-Task-Request.cjs +0 -56
- package/source/services/tasks/Ultravisor-Task-Solver.cjs +0 -89
- package/source/services/tasks/Ultravisor-Task-TemplateString.cjs +0 -93
- package/source/services/tasks/rest/Ultravisor-Task-GetBinary.cjs +0 -127
- package/source/services/tasks/rest/Ultravisor-Task-GetJSON.cjs +0 -119
- package/source/services/tasks/rest/Ultravisor-Task-GetText.cjs +0 -109
- package/source/services/tasks/rest/Ultravisor-Task-GetXML.cjs +0 -112
- package/source/services/tasks/rest/Ultravisor-Task-RestRequest.cjs +0 -499
- package/source/services/tasks/rest/Ultravisor-Task-SendJSON.cjs +0 -150
- package/source/services/tasks/stagingfiles/Ultravisor-Task-CopyFile.cjs +0 -110
- package/source/services/tasks/stagingfiles/Ultravisor-Task-ListFiles.cjs +0 -89
- package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadBinary.cjs +0 -87
- package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadJSON.cjs +0 -67
- package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadText.cjs +0 -66
- package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadXML.cjs +0 -69
- package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteBinary.cjs +0 -95
- package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteJSON.cjs +0 -96
- package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteText.cjs +0 -99
- package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteXML.cjs +0 -102
- package/webinterface/source/views/PictView-Ultravisor-TaskEdit.js +0 -220
- package/webinterface/source/views/PictView-Ultravisor-TaskList.js +0 -248
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "CSV Data Analysis",
|
|
3
|
+
"Description": "Reads two CSV files (sales report and product catalog), parses both, transforms sales data, intersects by product ID, computes a histogram of sales by category, and writes results to JSON. Demonstrates parse-csv, csv-transform, comprehension-intersect, histogram, set-values, read-file, and write-json.",
|
|
4
|
+
"Tags": ["data-pipeline", "csv", "analysis", "histogram"],
|
|
5
|
+
"Author": "Ultravisor",
|
|
6
|
+
"Version": "1.0.0",
|
|
7
|
+
"Graph": {
|
|
8
|
+
"Nodes": [
|
|
9
|
+
{
|
|
10
|
+
"Hash": "da-start",
|
|
11
|
+
"Type": "start",
|
|
12
|
+
"X": 50,
|
|
13
|
+
"Y": 200,
|
|
14
|
+
"Width": 140,
|
|
15
|
+
"Height": 80,
|
|
16
|
+
"Title": "Start",
|
|
17
|
+
"Ports": [
|
|
18
|
+
{ "Hash": "da-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
|
|
19
|
+
],
|
|
20
|
+
"Data": {}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Hash": "da-init",
|
|
24
|
+
"Type": "set-values",
|
|
25
|
+
"X": 250,
|
|
26
|
+
"Y": 180,
|
|
27
|
+
"Width": 220,
|
|
28
|
+
"Height": 100,
|
|
29
|
+
"Title": "Set File Paths",
|
|
30
|
+
"Ports": [
|
|
31
|
+
{ "Hash": "da-init-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
32
|
+
{ "Hash": "da-init-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
33
|
+
{ "Hash": "da-init-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" }
|
|
34
|
+
],
|
|
35
|
+
"Data": {
|
|
36
|
+
"Values": [
|
|
37
|
+
{ "Address": "Operation.SalesFile", "Value": "sales-report.csv" },
|
|
38
|
+
{ "Address": "Operation.ProductFile", "Value": "product-catalog.csv" },
|
|
39
|
+
{ "Address": "Operation.MatchField", "Value": "ProductID" }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"Hash": "da-read-sales",
|
|
45
|
+
"Type": "read-file",
|
|
46
|
+
"X": 520,
|
|
47
|
+
"Y": 180,
|
|
48
|
+
"Width": 240,
|
|
49
|
+
"Height": 120,
|
|
50
|
+
"Title": "Read Sales CSV",
|
|
51
|
+
"Ports": [
|
|
52
|
+
{ "Hash": "da-read-sales-ei-BeginRead", "Direction": "input", "Side": "left-bottom", "Label": "BeginRead" },
|
|
53
|
+
{ "Hash": "da-read-sales-eo-ReadComplete", "Direction": "output", "Side": "right-bottom", "Label": "ReadComplete" },
|
|
54
|
+
{ "Hash": "da-read-sales-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
55
|
+
{ "Hash": "da-read-sales-so-FileContent", "Direction": "output", "Side": "right-top", "Label": "FileContent" },
|
|
56
|
+
{ "Hash": "da-read-sales-so-BytesRead", "Direction": "output", "Side": "right-top", "Label": "BytesRead" }
|
|
57
|
+
],
|
|
58
|
+
"Data": { "FilePath": "{~D:Record.Operation.SalesFile~}", "Encoding": "utf8" }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"Hash": "da-parse-sales",
|
|
62
|
+
"Type": "parse-csv",
|
|
63
|
+
"X": 810,
|
|
64
|
+
"Y": 180,
|
|
65
|
+
"Width": 240,
|
|
66
|
+
"Height": 120,
|
|
67
|
+
"Title": "Parse Sales CSV",
|
|
68
|
+
"Ports": [
|
|
69
|
+
{ "Hash": "da-parse-sales-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
70
|
+
{ "Hash": "da-parse-sales-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
71
|
+
{ "Hash": "da-parse-sales-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
72
|
+
{ "Hash": "da-parse-sales-so-Records", "Direction": "output", "Side": "right-top", "Label": "Records" }
|
|
73
|
+
],
|
|
74
|
+
"Data": { "SourceAddress": "TaskOutput.da-read-sales.FileContent", "Delimiter": ",", "HasHeaders": true, "Destination": "Operation.SalesRecords" }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"Hash": "da-transform",
|
|
78
|
+
"Type": "csv-transform",
|
|
79
|
+
"X": 1100,
|
|
80
|
+
"Y": 180,
|
|
81
|
+
"Width": 230,
|
|
82
|
+
"Height": 120,
|
|
83
|
+
"Title": "Transform Sales Data",
|
|
84
|
+
"Ports": [
|
|
85
|
+
{ "Hash": "da-transform-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
86
|
+
{ "Hash": "da-transform-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
87
|
+
{ "Hash": "da-transform-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
88
|
+
{ "Hash": "da-transform-so-Records", "Direction": "output", "Side": "right-top", "Label": "Records" }
|
|
89
|
+
],
|
|
90
|
+
"Data": { "SourceAddress": "Operation.SalesRecords", "Destination": "Operation.TransformedSales" }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"Hash": "da-read-prods",
|
|
94
|
+
"Type": "read-file",
|
|
95
|
+
"X": 1380,
|
|
96
|
+
"Y": 180,
|
|
97
|
+
"Width": 240,
|
|
98
|
+
"Height": 120,
|
|
99
|
+
"Title": "Read Products CSV",
|
|
100
|
+
"Ports": [
|
|
101
|
+
{ "Hash": "da-read-prods-ei-BeginRead", "Direction": "input", "Side": "left-bottom", "Label": "BeginRead" },
|
|
102
|
+
{ "Hash": "da-read-prods-eo-ReadComplete", "Direction": "output", "Side": "right-bottom", "Label": "ReadComplete" },
|
|
103
|
+
{ "Hash": "da-read-prods-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
104
|
+
{ "Hash": "da-read-prods-so-FileContent", "Direction": "output", "Side": "right-top", "Label": "FileContent" },
|
|
105
|
+
{ "Hash": "da-read-prods-so-BytesRead", "Direction": "output", "Side": "right-top", "Label": "BytesRead" }
|
|
106
|
+
],
|
|
107
|
+
"Data": { "FilePath": "{~D:Record.Operation.ProductFile~}", "Encoding": "utf8" }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"Hash": "da-parse-prods",
|
|
111
|
+
"Type": "parse-csv",
|
|
112
|
+
"X": 1660,
|
|
113
|
+
"Y": 180,
|
|
114
|
+
"Width": 240,
|
|
115
|
+
"Height": 120,
|
|
116
|
+
"Title": "Parse Products CSV",
|
|
117
|
+
"Ports": [
|
|
118
|
+
{ "Hash": "da-parse-prods-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
119
|
+
{ "Hash": "da-parse-prods-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
120
|
+
{ "Hash": "da-parse-prods-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
121
|
+
{ "Hash": "da-parse-prods-so-Records", "Direction": "output", "Side": "right-top", "Label": "Records" }
|
|
122
|
+
],
|
|
123
|
+
"Data": { "SourceAddress": "TaskOutput.da-read-prods.FileContent", "Delimiter": ",", "HasHeaders": true, "Destination": "Operation.ProductRecords" }
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"Hash": "da-intersect",
|
|
127
|
+
"Type": "comprehension-intersect",
|
|
128
|
+
"X": 1940,
|
|
129
|
+
"Y": 180,
|
|
130
|
+
"Width": 240,
|
|
131
|
+
"Height": 120,
|
|
132
|
+
"Title": "Intersect by Product ID",
|
|
133
|
+
"Ports": [
|
|
134
|
+
{ "Hash": "da-intersect-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
135
|
+
{ "Hash": "da-intersect-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
136
|
+
{ "Hash": "da-intersect-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
137
|
+
{ "Hash": "da-intersect-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
138
|
+
],
|
|
139
|
+
"Data": { "SourceAddressA": "Operation.TransformedSales", "SourceAddressB": "Operation.ProductRecords", "MatchField": "{~D:Record.Operation.MatchField~}", "Destination": "Operation.JoinedData" }
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"Hash": "da-histogram",
|
|
143
|
+
"Type": "histogram",
|
|
144
|
+
"X": 2220,
|
|
145
|
+
"Y": 180,
|
|
146
|
+
"Width": 230,
|
|
147
|
+
"Height": 120,
|
|
148
|
+
"Title": "Histogram by Category",
|
|
149
|
+
"Ports": [
|
|
150
|
+
{ "Hash": "da-histogram-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
151
|
+
{ "Hash": "da-histogram-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
152
|
+
{ "Hash": "da-histogram-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
153
|
+
{ "Hash": "da-histogram-so-Stats", "Direction": "output", "Side": "right-top", "Label": "Stats" }
|
|
154
|
+
],
|
|
155
|
+
"Data": { "SourceAddress": "Operation.JoinedData", "Field": "Category", "Bins": 10, "Destination": "Operation.CategoryStats" }
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"Hash": "da-write",
|
|
159
|
+
"Type": "write-json",
|
|
160
|
+
"X": 2500,
|
|
161
|
+
"Y": 180,
|
|
162
|
+
"Width": 220,
|
|
163
|
+
"Height": 120,
|
|
164
|
+
"Title": "Write Analysis JSON",
|
|
165
|
+
"Ports": [
|
|
166
|
+
{ "Hash": "da-write-ei-BeginWrite", "Direction": "input", "Side": "left-bottom", "Label": "BeginWrite" },
|
|
167
|
+
{ "Hash": "da-write-eo-WriteComplete", "Direction": "output", "Side": "right-bottom", "Label": "WriteComplete" },
|
|
168
|
+
{ "Hash": "da-write-eo-Error", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
169
|
+
{ "Hash": "da-write-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
|
|
170
|
+
],
|
|
171
|
+
"Data": { "File": "analysis-results.json", "Address": "Operation.CategoryStats" }
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"Hash": "da-err",
|
|
175
|
+
"Type": "error-message",
|
|
176
|
+
"X": 1660,
|
|
177
|
+
"Y": 400,
|
|
178
|
+
"Width": 220,
|
|
179
|
+
"Height": 80,
|
|
180
|
+
"Title": "Pipeline Error",
|
|
181
|
+
"Ports": [
|
|
182
|
+
{ "Hash": "da-err-ei-Execute", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
183
|
+
{ "Hash": "da-err-eo-Complete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
184
|
+
],
|
|
185
|
+
"Data": { "MessageTemplate": "Analysis pipeline failed" }
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"Hash": "da-end",
|
|
189
|
+
"Type": "end",
|
|
190
|
+
"X": 2760,
|
|
191
|
+
"Y": 240,
|
|
192
|
+
"Width": 140,
|
|
193
|
+
"Height": 80,
|
|
194
|
+
"Title": "End",
|
|
195
|
+
"Ports": [
|
|
196
|
+
{ "Hash": "da-end-in", "Direction": "input", "Side": "left-bottom", "Label": "In" }
|
|
197
|
+
],
|
|
198
|
+
"Data": {}
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"Connections": [
|
|
202
|
+
{ "Hash": "da-c1", "SourceNodeHash": "da-start", "SourcePortHash": "da-start-out", "TargetNodeHash": "da-init", "TargetPortHash": "da-init-ei-Execute", "Data": {} },
|
|
203
|
+
{ "Hash": "da-c2", "SourceNodeHash": "da-init", "SourcePortHash": "da-init-eo-Complete", "TargetNodeHash": "da-read-sales", "TargetPortHash": "da-read-sales-ei-BeginRead", "Data": {} },
|
|
204
|
+
{ "Hash": "da-c3", "SourceNodeHash": "da-read-sales", "SourcePortHash": "da-read-sales-eo-ReadComplete", "TargetNodeHash": "da-parse-sales", "TargetPortHash": "da-parse-sales-ei-Execute", "Data": {} },
|
|
205
|
+
{ "Hash": "da-c4", "SourceNodeHash": "da-parse-sales", "SourcePortHash": "da-parse-sales-eo-Complete", "TargetNodeHash": "da-transform", "TargetPortHash": "da-transform-ei-Execute", "Data": {} },
|
|
206
|
+
{ "Hash": "da-c5", "SourceNodeHash": "da-transform", "SourcePortHash": "da-transform-eo-Complete", "TargetNodeHash": "da-read-prods", "TargetPortHash": "da-read-prods-ei-BeginRead", "Data": {} },
|
|
207
|
+
{ "Hash": "da-c6", "SourceNodeHash": "da-read-prods", "SourcePortHash": "da-read-prods-eo-ReadComplete", "TargetNodeHash": "da-parse-prods", "TargetPortHash": "da-parse-prods-ei-Execute", "Data": {} },
|
|
208
|
+
{ "Hash": "da-c7", "SourceNodeHash": "da-parse-prods", "SourcePortHash": "da-parse-prods-eo-Complete", "TargetNodeHash": "da-intersect", "TargetPortHash": "da-intersect-ei-Execute", "Data": {} },
|
|
209
|
+
{ "Hash": "da-c8", "SourceNodeHash": "da-intersect", "SourcePortHash": "da-intersect-eo-Complete", "TargetNodeHash": "da-histogram", "TargetPortHash": "da-histogram-ei-Execute", "Data": {} },
|
|
210
|
+
{ "Hash": "da-c9", "SourceNodeHash": "da-histogram", "SourcePortHash": "da-histogram-eo-Complete", "TargetNodeHash": "da-write", "TargetPortHash": "da-write-ei-BeginWrite", "Data": {} },
|
|
211
|
+
{ "Hash": "da-c10", "SourceNodeHash": "da-write", "SourcePortHash": "da-write-eo-WriteComplete", "TargetNodeHash": "da-end", "TargetPortHash": "da-end-in", "Data": {} },
|
|
212
|
+
{ "Hash": "da-c11", "SourceNodeHash": "da-read-sales", "SourcePortHash": "da-read-sales-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
213
|
+
{ "Hash": "da-c12", "SourceNodeHash": "da-read-prods", "SourcePortHash": "da-read-prods-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
214
|
+
{ "Hash": "da-c13", "SourceNodeHash": "da-init", "SourcePortHash": "da-init-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
215
|
+
{ "Hash": "da-c14", "SourceNodeHash": "da-parse-sales", "SourcePortHash": "da-parse-sales-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
216
|
+
{ "Hash": "da-c15", "SourceNodeHash": "da-transform", "SourcePortHash": "da-transform-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
217
|
+
{ "Hash": "da-c16", "SourceNodeHash": "da-parse-prods", "SourcePortHash": "da-parse-prods-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
218
|
+
{ "Hash": "da-c17", "SourceNodeHash": "da-intersect", "SourcePortHash": "da-intersect-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
219
|
+
{ "Hash": "da-c18", "SourceNodeHash": "da-histogram", "SourcePortHash": "da-histogram-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
220
|
+
{ "Hash": "da-c19", "SourceNodeHash": "da-write", "SourcePortHash": "da-write-eo-Error", "TargetNodeHash": "da-err", "TargetPortHash": "da-err-ei-Execute", "Data": {} },
|
|
221
|
+
{ "Hash": "da-c20", "SourceNodeHash": "da-err", "SourcePortHash": "da-err-eo-Complete", "TargetNodeHash": "da-end", "TargetPortHash": "da-end-in", "Data": {} }
|
|
222
|
+
],
|
|
223
|
+
"ViewState": { "PanX": 0, "PanY": 0, "Zoom": 1, "SelectedNodeHash": null, "SelectedConnectionHash": null }
|
|
224
|
+
},
|
|
225
|
+
"SavedLayouts": [],
|
|
226
|
+
"InitialGlobalState": {},
|
|
227
|
+
"InitialOperationState": {}
|
|
228
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "CSV to JSON Converter",
|
|
3
|
+
"Description": "Reads a CSV file, parses it into records, and writes the output as JSON. Demonstrates read-file, parse-csv, and write-json in a data pipeline.",
|
|
4
|
+
"Tags": ["data", "csv", "json", "conversion"],
|
|
5
|
+
"Author": "Ultravisor",
|
|
6
|
+
"Version": "1.0.0",
|
|
7
|
+
"Graph": {
|
|
8
|
+
"Nodes": [
|
|
9
|
+
{
|
|
10
|
+
"Hash": "csv-start",
|
|
11
|
+
"Type": "start",
|
|
12
|
+
"X": 50,
|
|
13
|
+
"Y": 200,
|
|
14
|
+
"Width": 140,
|
|
15
|
+
"Height": 80,
|
|
16
|
+
"Title": "Start",
|
|
17
|
+
"Ports": [
|
|
18
|
+
{ "Hash": "csv-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
|
|
19
|
+
],
|
|
20
|
+
"Data": {}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Hash": "csv-setpaths",
|
|
24
|
+
"Type": "set-values",
|
|
25
|
+
"X": 260,
|
|
26
|
+
"Y": 180,
|
|
27
|
+
"Width": 200,
|
|
28
|
+
"Height": 80,
|
|
29
|
+
"Title": "Set File Paths",
|
|
30
|
+
"Ports": [
|
|
31
|
+
{ "Hash": "csv-sp-in", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
32
|
+
{ "Hash": "csv-sp-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
33
|
+
],
|
|
34
|
+
"Data": {"Mappings": [{"Address": "Operation.InputCSV", "Value": "data.csv"}, {"Address": "Operation.OutputJSON", "Value": "data.json"}]}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"Hash": "csv-read",
|
|
38
|
+
"Type": "read-file",
|
|
39
|
+
"X": 530,
|
|
40
|
+
"Y": 180,
|
|
41
|
+
"Width": 200,
|
|
42
|
+
"Height": 120,
|
|
43
|
+
"Title": "Read CSV File",
|
|
44
|
+
"Ports": [
|
|
45
|
+
{ "Hash": "csv-rd-in", "Direction": "input", "Side": "left-bottom", "Label": "BeginRead" },
|
|
46
|
+
{ "Hash": "csv-rd-done", "Direction": "output", "Side": "right-bottom", "Label": "ReadComplete" },
|
|
47
|
+
{ "Hash": "csv-rd-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
48
|
+
{ "Hash": "csv-rd-so-FileContent", "Direction": "output", "Side": "right-top", "Label": "FileContent" },
|
|
49
|
+
{ "Hash": "csv-rd-so-BytesRead", "Direction": "output", "Side": "right-top", "Label": "BytesRead" }
|
|
50
|
+
],
|
|
51
|
+
"Data": {"FilePath": "{~D:Record.Operation.InputCSV~}", "Encoding": "utf8"}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"Hash": "csv-parse",
|
|
55
|
+
"Type": "parse-csv",
|
|
56
|
+
"X": 800,
|
|
57
|
+
"Y": 180,
|
|
58
|
+
"Width": 200,
|
|
59
|
+
"Height": 100,
|
|
60
|
+
"Title": "Parse CSV",
|
|
61
|
+
"Ports": [
|
|
62
|
+
{ "Hash": "csv-ps-in", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
63
|
+
{ "Hash": "csv-ps-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
64
|
+
{ "Hash": "csv-ps-so-Records", "Direction": "output", "Side": "right-top", "Label": "Records" }
|
|
65
|
+
],
|
|
66
|
+
"Data": {"SourceAddress": "TaskOutput.csv-read.FileContent", "Delimiter": ",", "HasHeaders": true, "Destination": "Operation.ParsedRecords"}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"Hash": "csv-check",
|
|
70
|
+
"Type": "if-conditional",
|
|
71
|
+
"X": 1070,
|
|
72
|
+
"Y": 160,
|
|
73
|
+
"Width": 220,
|
|
74
|
+
"Height": 100,
|
|
75
|
+
"Title": "Has Records?",
|
|
76
|
+
"Ports": [
|
|
77
|
+
{ "Hash": "csv-chk-in", "Direction": "input", "Side": "left-bottom", "Label": "Evaluate" },
|
|
78
|
+
{ "Hash": "csv-chk-true", "Direction": "output", "Side": "right-bottom", "Label": "True" },
|
|
79
|
+
{ "Hash": "csv-chk-false", "Direction": "output", "Side": "bottom", "Label": "False" },
|
|
80
|
+
{ "Hash": "csv-chk-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
81
|
+
],
|
|
82
|
+
"Data": {"DataAddress": "Operation.ParsedRecords", "Operator": "truthy"}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"Hash": "csv-write",
|
|
86
|
+
"Type": "write-json",
|
|
87
|
+
"X": 1360,
|
|
88
|
+
"Y": 140,
|
|
89
|
+
"Width": 200,
|
|
90
|
+
"Height": 100,
|
|
91
|
+
"Title": "Write JSON",
|
|
92
|
+
"Ports": [
|
|
93
|
+
{ "Hash": "csv-wj-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
94
|
+
{ "Hash": "csv-wj-done", "Direction": "output", "Side": "right-bottom", "Label": "Done" },
|
|
95
|
+
{ "Hash": "csv-wj-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
96
|
+
{ "Hash": "csv-wj-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
|
|
97
|
+
],
|
|
98
|
+
"Data": {"File": "{~D:Record.Operation.OutputJSON~}", "Address": "Operation.ParsedRecords"}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"Hash": "csv-empty",
|
|
102
|
+
"Type": "error-message",
|
|
103
|
+
"X": 1070,
|
|
104
|
+
"Y": 370,
|
|
105
|
+
"Width": 220,
|
|
106
|
+
"Height": 80,
|
|
107
|
+
"Title": "No Records",
|
|
108
|
+
"Ports": [
|
|
109
|
+
{ "Hash": "csv-em-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
110
|
+
{ "Hash": "csv-em-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
111
|
+
],
|
|
112
|
+
"Data": {"MessageTemplate": "CSV file contained no parseable records"}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"Hash": "csv-rderr",
|
|
116
|
+
"Type": "error-message",
|
|
117
|
+
"X": 530,
|
|
118
|
+
"Y": 370,
|
|
119
|
+
"Width": 200,
|
|
120
|
+
"Height": 80,
|
|
121
|
+
"Title": "Read Error",
|
|
122
|
+
"Ports": [
|
|
123
|
+
{ "Hash": "csv-rde-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
124
|
+
{ "Hash": "csv-rde-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
125
|
+
],
|
|
126
|
+
"Data": {"MessageTemplate": "Could not read CSV file: {~D:Record.Operation.InputCSV~}"}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"Hash": "csv-end",
|
|
130
|
+
"Type": "end",
|
|
131
|
+
"X": 1630,
|
|
132
|
+
"Y": 260,
|
|
133
|
+
"Width": 140,
|
|
134
|
+
"Height": 80,
|
|
135
|
+
"Title": "End",
|
|
136
|
+
"Ports": [
|
|
137
|
+
{ "Hash": "csv-end-in", "Direction": "input", "Side": "left-bottom", "Label": "In" }
|
|
138
|
+
],
|
|
139
|
+
"Data": {}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"Connections": [
|
|
143
|
+
{ "Hash": "csv-c1", "SourceNodeHash": "csv-start", "SourcePortHash": "csv-start-out", "TargetNodeHash": "csv-setpaths", "TargetPortHash": "csv-sp-in", "Data": {} },
|
|
144
|
+
{ "Hash": "csv-c2", "SourceNodeHash": "csv-setpaths", "SourcePortHash": "csv-sp-done", "TargetNodeHash": "csv-read", "TargetPortHash": "csv-rd-in", "Data": {} },
|
|
145
|
+
{ "Hash": "csv-c3", "SourceNodeHash": "csv-read", "SourcePortHash": "csv-rd-done", "TargetNodeHash": "csv-parse", "TargetPortHash": "csv-ps-in", "Data": {} },
|
|
146
|
+
{ "Hash": "csv-c4", "SourceNodeHash": "csv-parse", "SourcePortHash": "csv-ps-done", "TargetNodeHash": "csv-check", "TargetPortHash": "csv-chk-in", "Data": {} },
|
|
147
|
+
{ "Hash": "csv-c5", "SourceNodeHash": "csv-check", "SourcePortHash": "csv-chk-true", "TargetNodeHash": "csv-write", "TargetPortHash": "csv-wj-in", "Data": {} },
|
|
148
|
+
{ "Hash": "csv-c6", "SourceNodeHash": "csv-write", "SourcePortHash": "csv-wj-done", "TargetNodeHash": "csv-end", "TargetPortHash": "csv-end-in", "Data": {} },
|
|
149
|
+
{ "Hash": "csv-c7", "SourceNodeHash": "csv-check", "SourcePortHash": "csv-chk-false", "TargetNodeHash": "csv-empty", "TargetPortHash": "csv-em-in", "Data": {} },
|
|
150
|
+
{ "Hash": "csv-c8", "SourceNodeHash": "csv-empty", "SourcePortHash": "csv-em-done", "TargetNodeHash": "csv-end", "TargetPortHash": "csv-end-in", "Data": {} },
|
|
151
|
+
{ "Hash": "csv-c9", "SourceNodeHash": "csv-read", "SourcePortHash": "csv-rd-err", "TargetNodeHash": "csv-rderr", "TargetPortHash": "csv-rde-in", "Data": {} },
|
|
152
|
+
{ "Hash": "csv-c10", "SourceNodeHash": "csv-rderr", "SourcePortHash": "csv-rde-done", "TargetNodeHash": "csv-end", "TargetPortHash": "csv-end-in", "Data": {} },
|
|
153
|
+
{ "Hash": "csv-c11", "SourceNodeHash": "csv-write", "SourcePortHash": "csv-wj-err", "TargetNodeHash": "csv-end", "TargetPortHash": "csv-end-in", "Data": {} }
|
|
154
|
+
],
|
|
155
|
+
"ViewState": {"PanX": 0, "PanY": 0, "Zoom": 1, "SelectedNodeHash": null, "SelectedConnectionHash": null}
|
|
156
|
+
},
|
|
157
|
+
"SavedLayouts": [],
|
|
158
|
+
"InitialGlobalState": {},
|
|
159
|
+
"InitialOperationState": {}
|
|
160
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "Directory Inventory",
|
|
3
|
+
"Description": "Lists files in a directory, counts them, and writes an inventory report. Demonstrates list-files, set-values, template-string, and write-file.",
|
|
4
|
+
"Tags": ["file-io", "reporting"],
|
|
5
|
+
"Author": "Ultravisor",
|
|
6
|
+
"Version": "1.0.0",
|
|
7
|
+
"Graph": {
|
|
8
|
+
"Nodes": [
|
|
9
|
+
{
|
|
10
|
+
"Hash": "inv-start",
|
|
11
|
+
"Type": "start",
|
|
12
|
+
"X": 50,
|
|
13
|
+
"Y": 200,
|
|
14
|
+
"Width": 140,
|
|
15
|
+
"Height": 80,
|
|
16
|
+
"Title": "Start",
|
|
17
|
+
"Ports": [
|
|
18
|
+
{ "Hash": "inv-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
|
|
19
|
+
],
|
|
20
|
+
"Data": {}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Hash": "inv-setdir",
|
|
24
|
+
"Type": "set-values",
|
|
25
|
+
"X": 260,
|
|
26
|
+
"Y": 180,
|
|
27
|
+
"Width": 200,
|
|
28
|
+
"Height": 80,
|
|
29
|
+
"Title": "Set Target Dir",
|
|
30
|
+
"Ports": [
|
|
31
|
+
{ "Hash": "inv-setdir-in", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
32
|
+
{ "Hash": "inv-setdir-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
33
|
+
],
|
|
34
|
+
"Data": {"Mappings": [{"Address": "Operation.TargetDir", "Value": "."}, {"Address": "Operation.ReportName", "Value": "inventory-report.txt"}]}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"Hash": "inv-list",
|
|
38
|
+
"Type": "list-files",
|
|
39
|
+
"X": 530,
|
|
40
|
+
"Y": 180,
|
|
41
|
+
"Width": 200,
|
|
42
|
+
"Height": 100,
|
|
43
|
+
"Title": "List Files",
|
|
44
|
+
"Ports": [
|
|
45
|
+
{ "Hash": "inv-list-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
46
|
+
{ "Hash": "inv-list-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
47
|
+
{ "Hash": "inv-list-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
48
|
+
{ "Hash": "inv-list-so-Files", "Direction": "output", "Side": "right-top", "Label": "Files" }
|
|
49
|
+
],
|
|
50
|
+
"Data": {"Folder": "{~D:Record.Operation.TargetDir~}", "Pattern": "*", "Destination": "Operation.FileList"}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"Hash": "inv-template",
|
|
54
|
+
"Type": "template-string",
|
|
55
|
+
"X": 800,
|
|
56
|
+
"Y": 180,
|
|
57
|
+
"Width": 240,
|
|
58
|
+
"Height": 100,
|
|
59
|
+
"Title": "Build Report",
|
|
60
|
+
"Ports": [
|
|
61
|
+
{ "Hash": "inv-template-in", "Direction": "input", "Side": "left-bottom", "Label": "In" },
|
|
62
|
+
{ "Hash": "inv-template-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
63
|
+
{ "Hash": "inv-template-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
64
|
+
],
|
|
65
|
+
"Data": {"Template": "Directory Inventory Report\n========================\nDirectory: {~D:Record.Operation.TargetDir~}\nGenerated: {~D:Record.Operation.ReportName~}\n", "Destination": "Operation.ReportContent"}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"Hash": "inv-write",
|
|
69
|
+
"Type": "write-file",
|
|
70
|
+
"X": 1110,
|
|
71
|
+
"Y": 180,
|
|
72
|
+
"Width": 200,
|
|
73
|
+
"Height": 120,
|
|
74
|
+
"Title": "Save Report",
|
|
75
|
+
"Ports": [
|
|
76
|
+
{ "Hash": "inv-write-in", "Direction": "input", "Side": "left-bottom", "Label": "BeginWrite" },
|
|
77
|
+
{ "Hash": "inv-write-done", "Direction": "output", "Side": "right-bottom", "Label": "WriteComplete" },
|
|
78
|
+
{ "Hash": "inv-write-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
79
|
+
{ "Hash": "inv-write-si-Content", "Direction": "input", "Side": "left-top", "Label": "Content" },
|
|
80
|
+
{ "Hash": "inv-write-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
|
|
81
|
+
],
|
|
82
|
+
"Data": {"FilePath": "{~D:Record.Operation.ReportName~}", "Content": "{~D:Record.Operation.ReportContent~}", "Encoding": "utf8"}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"Hash": "inv-error",
|
|
86
|
+
"Type": "error-message",
|
|
87
|
+
"X": 530,
|
|
88
|
+
"Y": 380,
|
|
89
|
+
"Width": 220,
|
|
90
|
+
"Height": 80,
|
|
91
|
+
"Title": "List Error",
|
|
92
|
+
"Ports": [
|
|
93
|
+
{ "Hash": "inv-error-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
94
|
+
{ "Hash": "inv-error-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
95
|
+
],
|
|
96
|
+
"Data": {"MessageTemplate": "Failed to list directory: {~D:Record.Operation.TargetDir~}"}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"Hash": "inv-end",
|
|
100
|
+
"Type": "end",
|
|
101
|
+
"X": 1380,
|
|
102
|
+
"Y": 260,
|
|
103
|
+
"Width": 140,
|
|
104
|
+
"Height": 80,
|
|
105
|
+
"Title": "End",
|
|
106
|
+
"Ports": [
|
|
107
|
+
{ "Hash": "inv-end-in", "Direction": "input", "Side": "left-bottom", "Label": "In" }
|
|
108
|
+
],
|
|
109
|
+
"Data": {}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"Connections": [
|
|
113
|
+
{ "Hash": "inv-c1", "SourceNodeHash": "inv-start", "SourcePortHash": "inv-start-out", "TargetNodeHash": "inv-setdir", "TargetPortHash": "inv-setdir-in", "Data": {} },
|
|
114
|
+
{ "Hash": "inv-c2", "SourceNodeHash": "inv-setdir", "SourcePortHash": "inv-setdir-done", "TargetNodeHash": "inv-list", "TargetPortHash": "inv-list-in", "Data": {} },
|
|
115
|
+
{ "Hash": "inv-c3", "SourceNodeHash": "inv-list", "SourcePortHash": "inv-list-done", "TargetNodeHash": "inv-template", "TargetPortHash": "inv-template-in", "Data": {} },
|
|
116
|
+
{ "Hash": "inv-c4", "SourceNodeHash": "inv-template", "SourcePortHash": "inv-template-done", "TargetNodeHash": "inv-write", "TargetPortHash": "inv-write-in", "Data": {} },
|
|
117
|
+
{ "Hash": "inv-c5", "SourceNodeHash": "inv-write", "SourcePortHash": "inv-write-done", "TargetNodeHash": "inv-end", "TargetPortHash": "inv-end-in", "Data": {} },
|
|
118
|
+
{ "Hash": "inv-c6", "SourceNodeHash": "inv-list", "SourcePortHash": "inv-list-err", "TargetNodeHash": "inv-error", "TargetPortHash": "inv-error-in", "Data": {} },
|
|
119
|
+
{ "Hash": "inv-c7", "SourceNodeHash": "inv-error", "SourcePortHash": "inv-error-done", "TargetNodeHash": "inv-end", "TargetPortHash": "inv-end-in", "Data": {} },
|
|
120
|
+
{ "Hash": "inv-c8", "SourceNodeHash": "inv-write", "SourcePortHash": "inv-write-err", "TargetNodeHash": "inv-end", "TargetPortHash": "inv-end-in", "Data": {} },
|
|
121
|
+
{ "Hash": "inv-sc1", "SourceNodeHash": "inv-template", "SourcePortHash": "inv-template-so-Result", "TargetNodeHash": "inv-write", "TargetPortHash": "inv-write-si-Content", "Data": {} }
|
|
122
|
+
],
|
|
123
|
+
"ViewState": {"PanX": 0, "PanY": 0, "Zoom": 1, "SelectedNodeHash": null, "SelectedConnectionHash": null}
|
|
124
|
+
},
|
|
125
|
+
"SavedLayouts": [],
|
|
126
|
+
"InitialGlobalState": {},
|
|
127
|
+
"InitialOperationState": {}
|
|
128
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "Expression Calculator",
|
|
3
|
+
"Description": "Takes user input, evaluates a mathematical expression, and writes the result. Demonstrates value-input, expression-solver, template-string, and write-file.",
|
|
4
|
+
"Tags": ["interactive", "math", "expressions"],
|
|
5
|
+
"Author": "Ultravisor",
|
|
6
|
+
"Version": "1.0.0",
|
|
7
|
+
"Graph": {
|
|
8
|
+
"Nodes": [
|
|
9
|
+
{
|
|
10
|
+
"Hash": "ec-start",
|
|
11
|
+
"Type": "start",
|
|
12
|
+
"X": 50,
|
|
13
|
+
"Y": 200,
|
|
14
|
+
"Width": 140,
|
|
15
|
+
"Height": 80,
|
|
16
|
+
"Title": "Start",
|
|
17
|
+
"Ports": [
|
|
18
|
+
{ "Hash": "ec-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
|
|
19
|
+
],
|
|
20
|
+
"Data": {}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Hash": "ec-input",
|
|
24
|
+
"Type": "value-input",
|
|
25
|
+
"X": 260,
|
|
26
|
+
"Y": 180,
|
|
27
|
+
"Width": 240,
|
|
28
|
+
"Height": 120,
|
|
29
|
+
"Title": "Enter Expression",
|
|
30
|
+
"Ports": [
|
|
31
|
+
{ "Hash": "ec-inp-req", "Direction": "input", "Side": "left-bottom", "Label": "RequestInput" },
|
|
32
|
+
{ "Hash": "ec-inp-done", "Direction": "output", "Side": "right-bottom", "Label": "ValueInputComplete" },
|
|
33
|
+
{ "Hash": "ec-inp-so-InputValue", "Direction": "output", "Side": "right-top", "Label": "InputValue" }
|
|
34
|
+
],
|
|
35
|
+
"Data": { "PromptMessage": "Enter a math expression (e.g. 2+3*4)", "OutputAddress": "Operation.Expression" }
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"Hash": "ec-solve",
|
|
39
|
+
"Type": "expression-solver",
|
|
40
|
+
"X": 580,
|
|
41
|
+
"Y": 180,
|
|
42
|
+
"Width": 220,
|
|
43
|
+
"Height": 120,
|
|
44
|
+
"Title": "Evaluate Expression",
|
|
45
|
+
"Ports": [
|
|
46
|
+
{ "Hash": "ec-slv-in", "Direction": "input", "Side": "left-bottom", "Label": "In" },
|
|
47
|
+
{ "Hash": "ec-slv-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
48
|
+
{ "Hash": "ec-slv-si-Expression", "Direction": "input", "Side": "left-top", "Label": "Expression" },
|
|
49
|
+
{ "Hash": "ec-slv-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
50
|
+
],
|
|
51
|
+
"Data": { "Expression": "{~D:Record.Operation.Expression~}", "Destination": "Operation.Result" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"Hash": "ec-format",
|
|
55
|
+
"Type": "template-string",
|
|
56
|
+
"X": 870,
|
|
57
|
+
"Y": 180,
|
|
58
|
+
"Width": 220,
|
|
59
|
+
"Height": 100,
|
|
60
|
+
"Title": "Format Result",
|
|
61
|
+
"Ports": [
|
|
62
|
+
{ "Hash": "ec-fmt-in", "Direction": "input", "Side": "left-bottom", "Label": "In" },
|
|
63
|
+
{ "Hash": "ec-fmt-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
64
|
+
{ "Hash": "ec-fmt-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
65
|
+
],
|
|
66
|
+
"Data": { "Template": "Expression: {~D:Record.Operation.Expression~}\nResult: {~D:Record.Operation.Result~}\n", "Destination": "Operation.Output" }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"Hash": "ec-write",
|
|
70
|
+
"Type": "write-file",
|
|
71
|
+
"X": 1160,
|
|
72
|
+
"Y": 180,
|
|
73
|
+
"Width": 200,
|
|
74
|
+
"Height": 120,
|
|
75
|
+
"Title": "Save Result",
|
|
76
|
+
"Ports": [
|
|
77
|
+
{ "Hash": "ec-wr-in", "Direction": "input", "Side": "left-bottom", "Label": "BeginWrite" },
|
|
78
|
+
{ "Hash": "ec-wr-done", "Direction": "output", "Side": "right-bottom", "Label": "WriteComplete" },
|
|
79
|
+
{ "Hash": "ec-wr-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
80
|
+
{ "Hash": "ec-wr-si-Content", "Direction": "input", "Side": "left-top", "Label": "Content" },
|
|
81
|
+
{ "Hash": "ec-wr-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
|
|
82
|
+
],
|
|
83
|
+
"Data": { "FilePath": "calc-result.txt", "Content": "{~D:Record.Operation.Output~}", "Encoding": "utf8" }
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"Hash": "ec-end",
|
|
87
|
+
"Type": "end",
|
|
88
|
+
"X": 1430,
|
|
89
|
+
"Y": 260,
|
|
90
|
+
"Width": 140,
|
|
91
|
+
"Height": 80,
|
|
92
|
+
"Title": "End",
|
|
93
|
+
"Ports": [
|
|
94
|
+
{ "Hash": "ec-end-in", "Direction": "input", "Side": "left-bottom", "Label": "In" }
|
|
95
|
+
],
|
|
96
|
+
"Data": {}
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"Connections": [
|
|
100
|
+
{ "Hash": "ec-c1", "SourceNodeHash": "ec-start", "SourcePortHash": "ec-start-out", "TargetNodeHash": "ec-input", "TargetPortHash": "ec-inp-req", "Data": {} },
|
|
101
|
+
{ "Hash": "ec-c2", "SourceNodeHash": "ec-input", "SourcePortHash": "ec-inp-done", "TargetNodeHash": "ec-solve", "TargetPortHash": "ec-slv-in", "Data": {} },
|
|
102
|
+
{ "Hash": "ec-c3", "SourceNodeHash": "ec-solve", "SourcePortHash": "ec-slv-done", "TargetNodeHash": "ec-format", "TargetPortHash": "ec-fmt-in", "Data": {} },
|
|
103
|
+
{ "Hash": "ec-c4", "SourceNodeHash": "ec-format", "SourcePortHash": "ec-fmt-done", "TargetNodeHash": "ec-write", "TargetPortHash": "ec-wr-in", "Data": {} },
|
|
104
|
+
{ "Hash": "ec-c5", "SourceNodeHash": "ec-write", "SourcePortHash": "ec-wr-done", "TargetNodeHash": "ec-end", "TargetPortHash": "ec-end-in", "Data": {} },
|
|
105
|
+
{ "Hash": "ec-c6", "SourceNodeHash": "ec-write", "SourcePortHash": "ec-wr-err", "TargetNodeHash": "ec-end", "TargetPortHash": "ec-end-in", "Data": {} },
|
|
106
|
+
{ "Hash": "ec-sc1", "SourceNodeHash": "ec-input", "SourcePortHash": "ec-inp-so-InputValue", "TargetNodeHash": "ec-solve", "TargetPortHash": "ec-slv-si-Expression", "Data": {} },
|
|
107
|
+
{ "Hash": "ec-sc2", "SourceNodeHash": "ec-format", "SourcePortHash": "ec-fmt-so-Result", "TargetNodeHash": "ec-write", "TargetPortHash": "ec-wr-si-Content", "Data": {} }
|
|
108
|
+
],
|
|
109
|
+
"ViewState": { "PanX": 0, "PanY": 0, "Zoom": 1, "SelectedNodeHash": null, "SelectedConnectionHash": null }
|
|
110
|
+
},
|
|
111
|
+
"SavedLayouts": [],
|
|
112
|
+
"InitialGlobalState": {},
|
|
113
|
+
"InitialOperationState": {}
|
|
114
|
+
}
|