openc3 5.10.0 → 5.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of openc3 might be problematic. Click here for more details.

Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Rakefile +3 -2
  4. data/data/config/target.yaml +9 -0
  5. data/ext/openc3/ext/packet/packet.c +3 -0
  6. data/ext/openc3/ext/reducer_microservice/extconf.rb +13 -0
  7. data/ext/openc3/ext/reducer_microservice/reducer_microservice.c +165 -0
  8. data/ext/openc3/ext/structure/structure.c +7 -9
  9. data/lib/openc3/accessors/accessor.rb +53 -3
  10. data/lib/openc3/accessors/binary_accessor.rb +16 -0
  11. data/lib/openc3/accessors/cbor_accessor.rb +3 -3
  12. data/lib/openc3/accessors/form_accessor.rb +78 -0
  13. data/lib/openc3/accessors/http_accessor.rb +145 -0
  14. data/lib/openc3/accessors/json_accessor.rb +19 -3
  15. data/lib/openc3/accessors/xml_accessor.rb +18 -1
  16. data/lib/openc3/accessors.rb +3 -1
  17. data/lib/openc3/config/config_parser.rb +7 -5
  18. data/lib/openc3/config/meta_config_parser.rb +1 -1
  19. data/lib/openc3/core_ext/string.rb +16 -1
  20. data/lib/openc3/interfaces/http_client_interface.rb +202 -0
  21. data/lib/openc3/interfaces/http_server_interface.rb +183 -0
  22. data/lib/openc3/interfaces/interface.rb +86 -16
  23. data/lib/openc3/interfaces/mqtt_interface.rb +6 -5
  24. data/lib/openc3/interfaces/protocols/burst_protocol.rb +11 -11
  25. data/lib/openc3/interfaces/protocols/cobs_protocol.rb +7 -7
  26. data/lib/openc3/interfaces/protocols/crc_protocol.rb +7 -7
  27. data/lib/openc3/interfaces/protocols/length_protocol.rb +6 -6
  28. data/lib/openc3/interfaces/protocols/preidentified_protocol.rb +9 -5
  29. data/lib/openc3/interfaces/protocols/protocol.rb +8 -6
  30. data/lib/openc3/interfaces/protocols/slip_protocol.rb +8 -8
  31. data/lib/openc3/interfaces/protocols/template_protocol.rb +6 -7
  32. data/lib/openc3/interfaces/protocols/terminated_protocol.rb +4 -4
  33. data/lib/openc3/interfaces/simulated_target_interface.rb +2 -0
  34. data/lib/openc3/interfaces/stream_interface.rb +6 -4
  35. data/lib/openc3/interfaces/tcpip_server_interface.rb +2 -0
  36. data/lib/openc3/interfaces/udp_interface.rb +8 -5
  37. data/lib/openc3/interfaces.rb +2 -0
  38. data/lib/openc3/logs/buffered_packet_log_writer.rb +6 -7
  39. data/lib/openc3/logs/log_writer.rb +2 -10
  40. data/lib/openc3/logs/packet_log_constants.rb +13 -3
  41. data/lib/openc3/logs/packet_log_reader.rb +35 -98
  42. data/lib/openc3/logs/packet_log_writer.rb +24 -62
  43. data/lib/openc3/logs/text_log_writer.rb +32 -6
  44. data/lib/openc3/microservices/cleanup_microservice.rb +23 -16
  45. data/lib/openc3/microservices/decom_microservice.rb +8 -20
  46. data/lib/openc3/microservices/log_microservice.rb +3 -1
  47. data/lib/openc3/microservices/reaction_microservice.rb +22 -11
  48. data/lib/openc3/microservices/reducer_microservice.rb +174 -130
  49. data/lib/openc3/{models/notification_model.rb → microservices/scope_cleanup_microservice.rb} +20 -21
  50. data/lib/openc3/microservices/text_log_microservice.rb +2 -5
  51. data/lib/openc3/microservices/timeline_microservice.rb +0 -1
  52. data/lib/openc3/microservices/trigger_group_microservice.rb +6 -3
  53. data/lib/openc3/migrations/20230915000002_no_scope_log_messages.rb +44 -0
  54. data/lib/openc3/models/microservice_model.rb +1 -1
  55. data/lib/openc3/models/scope_model.rb +65 -34
  56. data/lib/openc3/models/target_model.rb +25 -5
  57. data/lib/openc3/models/tool_model.rb +14 -2
  58. data/lib/openc3/models/widget_model.rb +1 -1
  59. data/lib/openc3/packets/json_packet.rb +10 -2
  60. data/lib/openc3/packets/packet.rb +37 -22
  61. data/lib/openc3/packets/packet_config.rb +6 -2
  62. data/lib/openc3/packets/parsers/packet_item_parser.rb +11 -6
  63. data/lib/openc3/packets/structure.rb +19 -12
  64. data/lib/openc3/packets/structure_item.rb +0 -3
  65. data/lib/openc3/script/storage.rb +1 -1
  66. data/lib/openc3/script/web_socket_api.rb +17 -14
  67. data/lib/openc3/topics/command_decom_topic.rb +0 -4
  68. data/lib/openc3/topics/telemetry_decom_topic.rb +0 -4
  69. data/lib/openc3/topics/telemetry_reduced_topics.rb +1 -13
  70. data/lib/openc3/topics/telemetry_topic.rb +2 -1
  71. data/lib/openc3/topics/topic.rb +0 -8
  72. data/lib/openc3/utilities/aws_bucket.rb +40 -38
  73. data/lib/openc3/utilities/bucket_utilities.rb +2 -0
  74. data/lib/openc3/utilities/cli_generator.rb +1 -1
  75. data/lib/openc3/utilities/logger.rb +62 -47
  76. data/lib/openc3/utilities/metric.rb +19 -1
  77. data/lib/openc3/utilities/sleeper.rb +3 -1
  78. data/lib/openc3/utilities/throttle.rb +76 -0
  79. data/lib/openc3/version.rb +5 -5
  80. data/templates/tool_angular/package.json +20 -20
  81. data/templates/tool_angular/yarn.lock +1815 -1009
  82. data/templates/tool_react/package.json +24 -26
  83. data/templates/tool_react/yarn.lock +1269 -902
  84. data/templates/tool_svelte/.prettierrc.js +5 -0
  85. data/templates/tool_svelte/package.json +26 -26
  86. data/templates/tool_svelte/src/services/cable.js +1 -1
  87. data/templates/tool_svelte/src/services/openc3-api.js +173 -173
  88. data/templates/tool_svelte/yarn.lock +981 -735
  89. data/templates/tool_vue/package.json +13 -13
  90. data/templates/tool_vue/yarn.lock +363 -147
  91. data/templates/widget/package.json +14 -14
  92. data/templates/widget/yarn.lock +367 -99
  93. metadata +41 -4
  94. data/lib/openc3/topics/notifications_topic.rb +0 -31
@@ -1,5 +1,4 @@
1
1
  {
2
- "name": "<%= tool_name %>",
3
2
  "scripts": {
4
3
  "start": "webpack serve",
5
4
  "start:standalone": "webpack serve --env standalone",
@@ -14,40 +13,39 @@
14
13
  "prepare": "husky install",
15
14
  "coverage": "cross-env BABEL_ENV=test jest --coverage"
16
15
  },
16
+ "dependencies": {
17
+ "@emotion/react": "^11.11.1",
18
+ "@emotion/styled": "^11.11.0",
19
+ "@mui/material": "^5.14.8",
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0",
22
+ "single-spa-react": "^5.1.4"
23
+ },
17
24
  "devDependencies": {
18
- "@babel/core": "^7.15.0",
19
- "@babel/eslint-parser": "^7.15.0",
20
- "@babel/plugin-transform-runtime": "^7.15.0",
21
- "@babel/preset-env": "^7.15.0",
22
- "@babel/preset-react": "^7.14.5",
23
- "@babel/runtime": "^7.15.3",
24
- "@testing-library/jest-dom": "^5.14.1",
25
+ "@babel/core": "^7.22.17",
26
+ "@babel/eslint-parser": "^7.22.15",
27
+ "@babel/plugin-transform-runtime": "^7.22.15",
28
+ "@babel/preset-env": "^7.22.15",
29
+ "@babel/preset-react": "^7.22.15",
30
+ "@babel/runtime": "^7.22.15",
31
+ "@testing-library/jest-dom": "^6.1.3",
25
32
  "@testing-library/react": "^14.0.0",
26
- "babel-jest": "^29.5.0",
27
- "concurrently": "^8.2.0",
33
+ "babel-jest": "^29.7.0",
34
+ "concurrently": "^8.2.1",
28
35
  "cross-env": "^7.0.3",
29
- "eslint": "^8.44.0",
30
- "eslint-config-prettier": "^8.3.0",
36
+ "eslint": "^8.49.0",
37
+ "eslint-config-prettier": "^9.0.0",
31
38
  "eslint-config-react-important-stuff": "^3.0.0",
32
- "eslint-plugin-prettier": "^4.2.1",
39
+ "eslint-plugin-prettier": "^5.0.0",
33
40
  "identity-obj-proxy": "^3.0.0",
34
- "jest": "^29.5.0",
35
- "jest-cli": "^29.5.0",
36
- "prettier": "^2.3.2",
41
+ "jest": "^29.7.0",
42
+ "jest-cli": "^29.7.0",
43
+ "prettier": "^3.0.3",
37
44
  "pretty-quick": "^3.1.1",
38
- "webpack": "^5.88.1",
45
+ "webpack": "^5.88.2",
39
46
  "webpack-cli": "^5.1.4",
40
47
  "webpack-config-single-spa-react": "^4.0.0",
41
48
  "webpack-dev-server": "^4.0.0",
42
49
  "webpack-merge": "^5.8.0"
43
- },
44
- "dependencies": {
45
- "@emotion/react": "^11.11.1",
46
- "@emotion/styled": "^11.11.0",
47
- "@mui/material": "^5.13.6",
48
- "@openc3/tool-common": "5.10.0",
49
- "react": "^18.2.0",
50
- "react-dom": "^18.2.0",
51
- "single-spa-react": "^5.1.1"
52
50
  }
53
51
  }