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,264 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "LLM Summarize File",
|
|
3
|
+
"Description": "Reads a file, sends its contents to an LLM for summarization, and writes the summary to an output file. Demonstrates single-turn LLM usage with InputAddress and Destination.",
|
|
4
|
+
"Tags": [
|
|
5
|
+
"llm",
|
|
6
|
+
"summarization",
|
|
7
|
+
"file-processing"
|
|
8
|
+
],
|
|
9
|
+
"Author": "Ultravisor",
|
|
10
|
+
"Version": "1.0.0",
|
|
11
|
+
"Graph": {
|
|
12
|
+
"Nodes": [
|
|
13
|
+
{
|
|
14
|
+
"Hash": "ls-start",
|
|
15
|
+
"Type": "start",
|
|
16
|
+
"X": 50,
|
|
17
|
+
"Y": 200,
|
|
18
|
+
"Width": 140,
|
|
19
|
+
"Height": 80,
|
|
20
|
+
"Title": "Start",
|
|
21
|
+
"Ports": [
|
|
22
|
+
{
|
|
23
|
+
"Hash": "ls-start-out",
|
|
24
|
+
"Direction": "output",
|
|
25
|
+
"Side": "right-bottom",
|
|
26
|
+
"Label": "Out"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"Data": {}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"Hash": "ls-read",
|
|
33
|
+
"Type": "read-file",
|
|
34
|
+
"X": 260,
|
|
35
|
+
"Y": 180,
|
|
36
|
+
"Width": 200,
|
|
37
|
+
"Height": 120,
|
|
38
|
+
"Title": "Read Input File",
|
|
39
|
+
"Ports": [
|
|
40
|
+
{
|
|
41
|
+
"Hash": "ls-read-in",
|
|
42
|
+
"Direction": "input",
|
|
43
|
+
"Side": "left-bottom",
|
|
44
|
+
"Label": "BeginRead"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"Hash": "ls-read-done",
|
|
48
|
+
"Direction": "output",
|
|
49
|
+
"Side": "right-bottom",
|
|
50
|
+
"Label": "ReadComplete"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"Hash": "ls-read-err",
|
|
54
|
+
"Direction": "output",
|
|
55
|
+
"Side": "bottom",
|
|
56
|
+
"Label": "Error"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"Hash": "ls-read-so-FileContent",
|
|
60
|
+
"Direction": "output",
|
|
61
|
+
"Side": "right-top",
|
|
62
|
+
"Label": "FileContent"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"Hash": "ls-read-so-BytesRead",
|
|
66
|
+
"Direction": "output",
|
|
67
|
+
"Side": "right-top",
|
|
68
|
+
"Label": "BytesRead"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"Data": {
|
|
72
|
+
"FilePath": "{~D:Record.Operation.InputFilePath~}",
|
|
73
|
+
"Encoding": "utf8"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"Hash": "ls-llm",
|
|
78
|
+
"Type": "llm-chat-completion",
|
|
79
|
+
"X": 530,
|
|
80
|
+
"Y": 180,
|
|
81
|
+
"Width": 260,
|
|
82
|
+
"Height": 100,
|
|
83
|
+
"Title": "Summarize with LLM",
|
|
84
|
+
"Ports": [
|
|
85
|
+
{
|
|
86
|
+
"Hash": "ls-llm-in",
|
|
87
|
+
"Direction": "input",
|
|
88
|
+
"Side": "left-bottom",
|
|
89
|
+
"Label": "Trigger"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"Hash": "ls-llm-done",
|
|
93
|
+
"Direction": "output",
|
|
94
|
+
"Side": "right-bottom",
|
|
95
|
+
"Label": "Complete"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"Hash": "ls-llm-err",
|
|
99
|
+
"Direction": "output",
|
|
100
|
+
"Side": "bottom",
|
|
101
|
+
"Label": "Error"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"Hash": "ls-llm-so-Content",
|
|
105
|
+
"Direction": "output",
|
|
106
|
+
"Side": "right-top",
|
|
107
|
+
"Label": "Content"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"Data": {
|
|
111
|
+
"SystemPrompt": "You are a summarization assistant. Provide a clear, concise summary of the provided content. Focus on key points and maintain accuracy.",
|
|
112
|
+
"UserPrompt": "Please summarize the following content:",
|
|
113
|
+
"InputAddress": "TaskOutput.ls-read.FileContent",
|
|
114
|
+
"Destination": "Operation.Summary",
|
|
115
|
+
"Temperature": 0.3,
|
|
116
|
+
"MaxTokens": 2048
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Hash": "ls-write",
|
|
121
|
+
"Type": "write-file",
|
|
122
|
+
"X": 860,
|
|
123
|
+
"Y": 180,
|
|
124
|
+
"Width": 200,
|
|
125
|
+
"Height": 120,
|
|
126
|
+
"Title": "Write Summary",
|
|
127
|
+
"Ports": [
|
|
128
|
+
{
|
|
129
|
+
"Hash": "ls-wr-in",
|
|
130
|
+
"Direction": "input",
|
|
131
|
+
"Side": "left-bottom",
|
|
132
|
+
"Label": "BeginWrite"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"Hash": "ls-wr-done",
|
|
136
|
+
"Direction": "output",
|
|
137
|
+
"Side": "right-bottom",
|
|
138
|
+
"Label": "WriteComplete"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"Hash": "ls-wr-err",
|
|
142
|
+
"Direction": "output",
|
|
143
|
+
"Side": "bottom",
|
|
144
|
+
"Label": "Error"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"Hash": "ls-wr-si-Content",
|
|
148
|
+
"Direction": "input",
|
|
149
|
+
"Side": "left-top",
|
|
150
|
+
"Label": "Content"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"Hash": "ls-wr-so-BytesWritten",
|
|
154
|
+
"Direction": "output",
|
|
155
|
+
"Side": "right-top",
|
|
156
|
+
"Label": "BytesWritten"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"Data": {
|
|
160
|
+
"FilePath": "{~D:Record.Operation.OutputFilePath~}",
|
|
161
|
+
"Content": "{~D:Record.Operation.Summary~}",
|
|
162
|
+
"Encoding": "utf8"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"Hash": "ls-end",
|
|
167
|
+
"Type": "end",
|
|
168
|
+
"X": 1130,
|
|
169
|
+
"Y": 260,
|
|
170
|
+
"Width": 140,
|
|
171
|
+
"Height": 80,
|
|
172
|
+
"Title": "End",
|
|
173
|
+
"Ports": [
|
|
174
|
+
{
|
|
175
|
+
"Hash": "ls-end-in",
|
|
176
|
+
"Direction": "input",
|
|
177
|
+
"Side": "left-bottom",
|
|
178
|
+
"Label": "In"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"Data": {}
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"Connections": [
|
|
185
|
+
{
|
|
186
|
+
"Hash": "ls-c1",
|
|
187
|
+
"SourceNodeHash": "ls-start",
|
|
188
|
+
"SourcePortHash": "ls-start-out",
|
|
189
|
+
"TargetNodeHash": "ls-read",
|
|
190
|
+
"TargetPortHash": "ls-read-in",
|
|
191
|
+
"Data": {}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"Hash": "ls-c2",
|
|
195
|
+
"SourceNodeHash": "ls-read",
|
|
196
|
+
"SourcePortHash": "ls-read-done",
|
|
197
|
+
"TargetNodeHash": "ls-llm",
|
|
198
|
+
"TargetPortHash": "ls-llm-in",
|
|
199
|
+
"Data": {}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"Hash": "ls-c3",
|
|
203
|
+
"SourceNodeHash": "ls-llm",
|
|
204
|
+
"SourcePortHash": "ls-llm-done",
|
|
205
|
+
"TargetNodeHash": "ls-write",
|
|
206
|
+
"TargetPortHash": "ls-wr-in",
|
|
207
|
+
"Data": {}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"Hash": "ls-c4",
|
|
211
|
+
"SourceNodeHash": "ls-write",
|
|
212
|
+
"SourcePortHash": "ls-wr-done",
|
|
213
|
+
"TargetNodeHash": "ls-end",
|
|
214
|
+
"TargetPortHash": "ls-end-in",
|
|
215
|
+
"Data": {}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"Hash": "ls-c5",
|
|
219
|
+
"SourceNodeHash": "ls-read",
|
|
220
|
+
"SourcePortHash": "ls-read-err",
|
|
221
|
+
"TargetNodeHash": "ls-end",
|
|
222
|
+
"TargetPortHash": "ls-end-in",
|
|
223
|
+
"Data": {}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"Hash": "ls-c6",
|
|
227
|
+
"SourceNodeHash": "ls-llm",
|
|
228
|
+
"SourcePortHash": "ls-llm-err",
|
|
229
|
+
"TargetNodeHash": "ls-end",
|
|
230
|
+
"TargetPortHash": "ls-end-in",
|
|
231
|
+
"Data": {}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"Hash": "ls-c7",
|
|
235
|
+
"SourceNodeHash": "ls-write",
|
|
236
|
+
"SourcePortHash": "ls-wr-err",
|
|
237
|
+
"TargetNodeHash": "ls-end",
|
|
238
|
+
"TargetPortHash": "ls-end-in",
|
|
239
|
+
"Data": {}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"Hash": "ls-sc1",
|
|
243
|
+
"SourceNodeHash": "ls-llm",
|
|
244
|
+
"SourcePortHash": "ls-llm-so-Content",
|
|
245
|
+
"TargetNodeHash": "ls-write",
|
|
246
|
+
"TargetPortHash": "ls-wr-si-Content",
|
|
247
|
+
"Data": {}
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"ViewState": {
|
|
251
|
+
"PanX": 0,
|
|
252
|
+
"PanY": 0,
|
|
253
|
+
"Zoom": 1,
|
|
254
|
+
"SelectedNodeHash": null,
|
|
255
|
+
"SelectedConnectionHash": null
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"SavedLayouts": [],
|
|
259
|
+
"InitialGlobalState": {},
|
|
260
|
+
"InitialOperationState": {
|
|
261
|
+
"InputFilePath": "input.txt",
|
|
262
|
+
"OutputFilePath": "summary.txt"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Name": "Log Line Counter",
|
|
3
|
+
"Description": "Reads a log file, splits it into lines, loops through each to count ERROR occurrences, and writes a summary. Demonstrates split-execute looping with if-conditional counting.",
|
|
4
|
+
"Tags": ["file-io", "looping", "analysis"],
|
|
5
|
+
"Author": "Ultravisor",
|
|
6
|
+
"Version": "1.0.0",
|
|
7
|
+
"Graph": {
|
|
8
|
+
"Nodes": [
|
|
9
|
+
{
|
|
10
|
+
"Hash": "lc-start",
|
|
11
|
+
"Type": "start",
|
|
12
|
+
"X": 50,
|
|
13
|
+
"Y": 200,
|
|
14
|
+
"Width": 140,
|
|
15
|
+
"Height": 80,
|
|
16
|
+
"Title": "Start",
|
|
17
|
+
"Ports": [
|
|
18
|
+
{ "Hash": "lc-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
|
|
19
|
+
],
|
|
20
|
+
"Data": {}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Hash": "lc-init",
|
|
24
|
+
"Type": "set-values",
|
|
25
|
+
"X": 260,
|
|
26
|
+
"Y": 180,
|
|
27
|
+
"Width": 200,
|
|
28
|
+
"Height": 80,
|
|
29
|
+
"Title": "Initialize Counter",
|
|
30
|
+
"Ports": [
|
|
31
|
+
{ "Hash": "lc-init-in", "Direction": "input", "Side": "left-bottom", "Label": "Execute" },
|
|
32
|
+
{ "Hash": "lc-init-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
33
|
+
],
|
|
34
|
+
"Data": { "Mappings": [{ "Address": "Operation.ErrorCount", "Value": "0" }, { "Address": "Operation.LogFile", "Value": "application.log" }] }
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"Hash": "lc-read",
|
|
38
|
+
"Type": "read-file",
|
|
39
|
+
"X": 530,
|
|
40
|
+
"Y": 180,
|
|
41
|
+
"Width": 200,
|
|
42
|
+
"Height": 120,
|
|
43
|
+
"Title": "Read Log File",
|
|
44
|
+
"Ports": [
|
|
45
|
+
{ "Hash": "lc-rd-in", "Direction": "input", "Side": "left-bottom", "Label": "BeginRead" },
|
|
46
|
+
{ "Hash": "lc-rd-done", "Direction": "output", "Side": "right-bottom", "Label": "ReadComplete" },
|
|
47
|
+
{ "Hash": "lc-rd-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
48
|
+
{ "Hash": "lc-rd-so-FileContent", "Direction": "output", "Side": "right-top", "Label": "FileContent" },
|
|
49
|
+
{ "Hash": "lc-rd-so-BytesRead", "Direction": "output", "Side": "right-top", "Label": "BytesRead" }
|
|
50
|
+
],
|
|
51
|
+
"Data": { "FilePath": "{~D:Record.Operation.LogFile~}", "Encoding": "utf8" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"Hash": "lc-split",
|
|
55
|
+
"Type": "split-execute",
|
|
56
|
+
"X": 800,
|
|
57
|
+
"Y": 160,
|
|
58
|
+
"Width": 220,
|
|
59
|
+
"Height": 140,
|
|
60
|
+
"Title": "Split Into Lines",
|
|
61
|
+
"Ports": [
|
|
62
|
+
{ "Hash": "lc-spl-begin", "Direction": "input", "Side": "left-bottom", "Label": "PerformSplit" },
|
|
63
|
+
{ "Hash": "lc-spl-step", "Direction": "input", "Side": "left-bottom", "Label": "StepComplete" },
|
|
64
|
+
{ "Hash": "lc-spl-token", "Direction": "output", "Side": "right-bottom", "Label": "TokenDataSent" },
|
|
65
|
+
{ "Hash": "lc-spl-alldone", "Direction": "output", "Side": "right-bottom", "Label": "CompletedAllSubtasks" },
|
|
66
|
+
{ "Hash": "lc-spl-so-CurrentToken", "Direction": "output", "Side": "right-top", "Label": "CurrentToken" },
|
|
67
|
+
{ "Hash": "lc-spl-so-TokenIndex", "Direction": "output", "Side": "right-top", "Label": "TokenIndex" },
|
|
68
|
+
{ "Hash": "lc-spl-so-TokenCount", "Direction": "output", "Side": "right-top", "Label": "TokenCount" },
|
|
69
|
+
{ "Hash": "lc-spl-so-CompletedCount", "Direction": "output", "Side": "right-top", "Label": "CompletedCount" }
|
|
70
|
+
],
|
|
71
|
+
"Data": { "InputString": "{~D:Record.TaskOutput.lc-read.FileContent~}", "SplitDelimiter": "\n" }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"Hash": "lc-check",
|
|
75
|
+
"Type": "if-conditional",
|
|
76
|
+
"X": 1100,
|
|
77
|
+
"Y": 140,
|
|
78
|
+
"Width": 220,
|
|
79
|
+
"Height": 100,
|
|
80
|
+
"Title": "Is Error Line?",
|
|
81
|
+
"Ports": [
|
|
82
|
+
{ "Hash": "lc-chk-in", "Direction": "input", "Side": "left-bottom", "Label": "Evaluate" },
|
|
83
|
+
{ "Hash": "lc-chk-true", "Direction": "output", "Side": "right-bottom", "Label": "True" },
|
|
84
|
+
{ "Hash": "lc-chk-false", "Direction": "output", "Side": "bottom", "Label": "False" },
|
|
85
|
+
{ "Hash": "lc-chk-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
86
|
+
],
|
|
87
|
+
"Data": { "DataAddress": "TaskOutput.lc-split.CurrentToken", "CompareValue": "ERROR", "Operator": "contains" }
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"Hash": "lc-increment",
|
|
91
|
+
"Type": "expression-solver",
|
|
92
|
+
"X": 1400,
|
|
93
|
+
"Y": 120,
|
|
94
|
+
"Width": 220,
|
|
95
|
+
"Height": 100,
|
|
96
|
+
"Title": "Increment Count",
|
|
97
|
+
"Ports": [
|
|
98
|
+
{ "Hash": "lc-inc-in", "Direction": "input", "Side": "left-bottom", "Label": "In" },
|
|
99
|
+
{ "Hash": "lc-inc-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
100
|
+
{ "Hash": "lc-inc-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
101
|
+
],
|
|
102
|
+
"Data": { "Expression": "{~D:Record.Operation.ErrorCount~}+1", "Destination": "Operation.ErrorCount" }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"Hash": "lc-summary",
|
|
106
|
+
"Type": "template-string",
|
|
107
|
+
"X": 1100,
|
|
108
|
+
"Y": 380,
|
|
109
|
+
"Width": 240,
|
|
110
|
+
"Height": 100,
|
|
111
|
+
"Title": "Build Summary",
|
|
112
|
+
"Ports": [
|
|
113
|
+
{ "Hash": "lc-sum-in", "Direction": "input", "Side": "left-bottom", "Label": "In" },
|
|
114
|
+
{ "Hash": "lc-sum-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
|
|
115
|
+
{ "Hash": "lc-sum-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
|
|
116
|
+
],
|
|
117
|
+
"Data": { "Template": "Log Analysis Complete\nFile: {~D:Record.Operation.LogFile~}\nError lines found: {~D:Record.Operation.ErrorCount~}\n", "Destination": "Operation.Summary" }
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"Hash": "lc-write",
|
|
121
|
+
"Type": "write-file",
|
|
122
|
+
"X": 1400,
|
|
123
|
+
"Y": 380,
|
|
124
|
+
"Width": 200,
|
|
125
|
+
"Height": 120,
|
|
126
|
+
"Title": "Save Summary",
|
|
127
|
+
"Ports": [
|
|
128
|
+
{ "Hash": "lc-wr-in", "Direction": "input", "Side": "left-bottom", "Label": "BeginWrite" },
|
|
129
|
+
{ "Hash": "lc-wr-done", "Direction": "output", "Side": "right-bottom", "Label": "WriteComplete" },
|
|
130
|
+
{ "Hash": "lc-wr-err", "Direction": "output", "Side": "bottom", "Label": "Error" },
|
|
131
|
+
{ "Hash": "lc-wr-si-Content", "Direction": "input", "Side": "left-top", "Label": "Content" },
|
|
132
|
+
{ "Hash": "lc-wr-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
|
|
133
|
+
],
|
|
134
|
+
"Data": { "FilePath": "log-analysis.txt", "Content": "{~D:Record.Operation.Summary~}", "Encoding": "utf8" }
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"Hash": "lc-rderr",
|
|
138
|
+
"Type": "error-message",
|
|
139
|
+
"X": 530,
|
|
140
|
+
"Y": 380,
|
|
141
|
+
"Width": 200,
|
|
142
|
+
"Height": 80,
|
|
143
|
+
"Title": "Read Error",
|
|
144
|
+
"Ports": [
|
|
145
|
+
{ "Hash": "lc-rde-in", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
|
|
146
|
+
{ "Hash": "lc-rde-done", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
|
|
147
|
+
],
|
|
148
|
+
"Data": { "MessageTemplate": "Could not read log file: {~D:Record.Operation.LogFile~}" }
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"Hash": "lc-end",
|
|
152
|
+
"Type": "end",
|
|
153
|
+
"X": 1670,
|
|
154
|
+
"Y": 300,
|
|
155
|
+
"Width": 140,
|
|
156
|
+
"Height": 80,
|
|
157
|
+
"Title": "End",
|
|
158
|
+
"Ports": [
|
|
159
|
+
{ "Hash": "lc-end-in", "Direction": "input", "Side": "left-bottom", "Label": "In" }
|
|
160
|
+
],
|
|
161
|
+
"Data": {}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"Connections": [
|
|
165
|
+
{ "Hash": "lc-c1", "SourceNodeHash": "lc-start", "SourcePortHash": "lc-start-out", "TargetNodeHash": "lc-init", "TargetPortHash": "lc-init-in", "Data": {} },
|
|
166
|
+
{ "Hash": "lc-c2", "SourceNodeHash": "lc-init", "SourcePortHash": "lc-init-done", "TargetNodeHash": "lc-read", "TargetPortHash": "lc-rd-in", "Data": {} },
|
|
167
|
+
{ "Hash": "lc-c3", "SourceNodeHash": "lc-read", "SourcePortHash": "lc-rd-done", "TargetNodeHash": "lc-split", "TargetPortHash": "lc-spl-begin", "Data": {} },
|
|
168
|
+
{ "Hash": "lc-c4", "SourceNodeHash": "lc-split", "SourcePortHash": "lc-spl-token", "TargetNodeHash": "lc-check", "TargetPortHash": "lc-chk-in", "Data": {} },
|
|
169
|
+
{ "Hash": "lc-c5", "SourceNodeHash": "lc-check", "SourcePortHash": "lc-chk-true", "TargetNodeHash": "lc-increment", "TargetPortHash": "lc-inc-in", "Data": {} },
|
|
170
|
+
{ "Hash": "lc-c6", "SourceNodeHash": "lc-increment", "SourcePortHash": "lc-inc-done", "TargetNodeHash": "lc-split", "TargetPortHash": "lc-spl-step", "Data": {} },
|
|
171
|
+
{ "Hash": "lc-c7", "SourceNodeHash": "lc-check", "SourcePortHash": "lc-chk-false", "TargetNodeHash": "lc-split", "TargetPortHash": "lc-spl-step", "Data": {} },
|
|
172
|
+
{ "Hash": "lc-c8", "SourceNodeHash": "lc-split", "SourcePortHash": "lc-spl-alldone", "TargetNodeHash": "lc-summary", "TargetPortHash": "lc-sum-in", "Data": {} },
|
|
173
|
+
{ "Hash": "lc-c9", "SourceNodeHash": "lc-summary", "SourcePortHash": "lc-sum-done", "TargetNodeHash": "lc-write", "TargetPortHash": "lc-wr-in", "Data": {} },
|
|
174
|
+
{ "Hash": "lc-c10", "SourceNodeHash": "lc-write", "SourcePortHash": "lc-wr-done", "TargetNodeHash": "lc-end", "TargetPortHash": "lc-end-in", "Data": {} },
|
|
175
|
+
{ "Hash": "lc-c11", "SourceNodeHash": "lc-read", "SourcePortHash": "lc-rd-err", "TargetNodeHash": "lc-rderr", "TargetPortHash": "lc-rde-in", "Data": {} },
|
|
176
|
+
{ "Hash": "lc-c12", "SourceNodeHash": "lc-rderr", "SourcePortHash": "lc-rde-done", "TargetNodeHash": "lc-end", "TargetPortHash": "lc-end-in", "Data": {} },
|
|
177
|
+
{ "Hash": "lc-c13", "SourceNodeHash": "lc-write", "SourcePortHash": "lc-wr-err", "TargetNodeHash": "lc-end", "TargetPortHash": "lc-end-in", "Data": {} },
|
|
178
|
+
{ "Hash": "lc-sc1", "SourceNodeHash": "lc-summary", "SourcePortHash": "lc-sum-so-Result", "TargetNodeHash": "lc-write", "TargetPortHash": "lc-wr-si-Content", "Data": {} }
|
|
179
|
+
],
|
|
180
|
+
"ViewState": { "PanX": 0, "PanY": 0, "Zoom": 1, "SelectedNodeHash": null, "SelectedConnectionHash": null }
|
|
181
|
+
},
|
|
182
|
+
"SavedLayouts": [],
|
|
183
|
+
"InitialGlobalState": {},
|
|
184
|
+
"InitialOperationState": {}
|
|
185
|
+
}
|