openc3 5.18.0 → 5.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -4
  3. data/bin/cstol_converter +14 -14
  4. data/bin/openc3cli +189 -7
  5. data/data/config/_interfaces.yaml +1 -1
  6. data/data/config/command_modifiers.yaml +55 -0
  7. data/data/config/interface_modifiers.yaml +1 -1
  8. data/data/config/param_item_modifiers.yaml +1 -1
  9. data/data/config/parameter_modifiers.yaml +1 -1
  10. data/data/config/plugins.yaml +6 -2
  11. data/data/config/screen.yaml +2 -2
  12. data/data/config/table_manager.yaml +2 -2
  13. data/data/config/tool.yaml +4 -1
  14. data/data/config/widgets.yaml +3 -3
  15. data/ext/openc3/ext/config_parser/config_parser.c +1 -1
  16. data/ext/openc3/ext/packet/packet.c +1 -1
  17. data/ext/openc3/ext/platform/platform.c +3 -3
  18. data/ext/openc3/ext/structure/structure.c +56 -76
  19. data/lib/openc3/accessors/binary_accessor.rb +4 -4
  20. data/lib/openc3/accessors/form_accessor.rb +2 -2
  21. data/lib/openc3/accessors/http_accessor.rb +1 -1
  22. data/lib/openc3/accessors/json_accessor.rb +6 -4
  23. data/lib/openc3/accessors/template_accessor.rb +6 -9
  24. data/lib/openc3/accessors/xml_accessor.rb +1 -1
  25. data/lib/openc3/api/cmd_api.rb +35 -11
  26. data/lib/openc3/api/limits_api.rb +1 -1
  27. data/lib/openc3/config/config_parser.rb +1 -1
  28. data/lib/openc3/conversions/segmented_polynomial_conversion.rb +7 -7
  29. data/lib/openc3/core_ext/array.rb +5 -5
  30. data/lib/openc3/core_ext/exception.rb +9 -2
  31. data/lib/openc3/core_ext/string.rb +2 -2
  32. data/lib/openc3/interfaces/http_server_interface.rb +1 -0
  33. data/lib/openc3/interfaces/interface.rb +1 -1
  34. data/lib/openc3/interfaces/linc_interface.rb +3 -3
  35. data/lib/openc3/io/json_api.rb +11 -6
  36. data/lib/openc3/io/json_rpc.rb +1 -1
  37. data/lib/openc3/logs/buffered_packet_log_writer.rb +3 -3
  38. data/lib/openc3/logs/log_writer.rb +7 -8
  39. data/lib/openc3/logs/packet_log_writer.rb +7 -7
  40. data/lib/openc3/logs/text_log_writer.rb +4 -4
  41. data/lib/openc3/microservices/decom_microservice.rb +19 -4
  42. data/lib/openc3/microservices/interface_microservice.rb +41 -3
  43. data/lib/openc3/microservices/reaction_microservice.rb +2 -2
  44. data/lib/openc3/microservices/trigger_group_microservice.rb +3 -3
  45. data/lib/openc3/migrations/20240915000000_activity_uuid.rb +28 -0
  46. data/lib/openc3/models/activity_model.rb +109 -80
  47. data/lib/openc3/models/auth_model.rb +31 -2
  48. data/lib/openc3/models/cvt_model.rb +11 -5
  49. data/lib/openc3/models/gem_model.rb +8 -8
  50. data/lib/openc3/models/plugin_model.rb +3 -3
  51. data/lib/openc3/models/reducer_model.rb +2 -2
  52. data/lib/openc3/models/scope_model.rb +1 -1
  53. data/lib/openc3/models/sorted_model.rb +4 -4
  54. data/lib/openc3/models/target_model.rb +3 -3
  55. data/lib/openc3/models/tool_config_model.rb +1 -1
  56. data/lib/openc3/models/tool_model.rb +4 -4
  57. data/lib/openc3/models/widget_model.rb +11 -5
  58. data/lib/openc3/operators/operator.rb +5 -3
  59. data/lib/openc3/packets/command_validator.rb +48 -0
  60. data/lib/openc3/packets/commands.rb +6 -14
  61. data/lib/openc3/packets/packet.rb +31 -15
  62. data/lib/openc3/packets/packet_config.rb +10 -9
  63. data/lib/openc3/packets/parsers/packet_parser.rb +3 -3
  64. data/lib/openc3/packets/structure.rb +21 -13
  65. data/lib/openc3/packets/structure_item.rb +33 -47
  66. data/lib/openc3/packets/telemetry.rb +6 -27
  67. data/lib/openc3/script/api_shared.rb +7 -5
  68. data/lib/openc3/script/calendar.rb +2 -2
  69. data/lib/openc3/script/commands.rb +6 -4
  70. data/lib/openc3/script/metadata.rb +2 -2
  71. data/lib/openc3/script/suite.rb +17 -17
  72. data/lib/openc3/streams/serial_stream.rb +2 -3
  73. data/lib/openc3/streams/stream.rb +2 -2
  74. data/lib/openc3/tools/cmd_tlm_server/interface_thread.rb +10 -10
  75. data/lib/openc3/tools/table_manager/table_manager_core.rb +11 -11
  76. data/lib/openc3/tools/table_manager/table_parser.rb +2 -3
  77. data/lib/openc3/topics/command_decom_topic.rb +2 -1
  78. data/lib/openc3/topics/command_topic.rb +3 -3
  79. data/lib/openc3/topics/decom_interface_topic.rb +2 -2
  80. data/lib/openc3/topics/telemetry_decom_topic.rb +1 -1
  81. data/lib/openc3/utilities/authorization.rb +2 -1
  82. data/lib/openc3/utilities/cli_generator.rb +15 -8
  83. data/lib/openc3/utilities/cosmos_rails_formatter.rb +60 -0
  84. data/lib/openc3/utilities/crc.rb +6 -6
  85. data/lib/openc3/utilities/local_mode.rb +2 -1
  86. data/lib/openc3/utilities/logger.rb +44 -34
  87. data/lib/openc3/utilities/metric.rb +1 -2
  88. data/lib/openc3/utilities/quaternion.rb +18 -18
  89. data/lib/openc3/utilities/target_file.rb +4 -4
  90. data/lib/openc3/version.rb +5 -5
  91. data/lib/openc3/win32/win32_main.rb +2 -2
  92. data/templates/tool_angular/package.json +21 -21
  93. data/templates/tool_react/package.json +10 -10
  94. data/templates/tool_svelte/package.json +11 -11
  95. data/templates/tool_svelte/src/services/openc3-api.js +17 -17
  96. data/templates/tool_vue/package.json +9 -9
  97. data/templates/widget/package.json +6 -7
  98. metadata +5 -2
@@ -58,9 +58,9 @@ export class OpenC3Api {
58
58
  },
59
59
  },
60
60
  )
61
- // var data = response.data
61
+ // let data = response.data
62
62
  // if (data.error) {
63
- // var err = new Error()
63
+ // let err = new Error()
64
64
  // err.name = data.error.data.class
65
65
  // err.message = data.error.data.message
66
66
  // console.log(data.error.data.backtrace.join('\n'))
@@ -68,7 +68,7 @@ export class OpenC3Api {
68
68
  // }
69
69
  return response.data.result
70
70
  } catch (error) {
71
- var err = new Error()
71
+ let err = new Error()
72
72
  if (error.response) {
73
73
  // The request was made and the server responded with a
74
74
  // status code that falls out of the range of 2xx
@@ -232,8 +232,8 @@ export class OpenC3Api {
232
232
  return this.exec('get_all_tlm', [target_name])
233
233
  }
234
234
 
235
- get_all_tlm_names(target_name) {
236
- return this.exec('get_all_tlm_names', [target_name])
235
+ get_all_tlm_names(target_name, hidden = false) {
236
+ return this.exec('get_all_tlm_names', [target_name], { hidden: hidden })
237
237
  }
238
238
 
239
239
  async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {
@@ -243,9 +243,9 @@ export class OpenC3Api {
243
243
  })
244
244
  // Make sure data isn't null or undefined. Note this is the only valid use of == or !=
245
245
  if (data != null) {
246
- var len = data.length
247
- var converted = null
248
- for (var i = 0; i < len; i++) {
246
+ let len = data.length
247
+ let converted = null
248
+ for (let i = 0; i < len; i++) {
249
249
  converted = this.decode_openc3_type(data[i][1])
250
250
  if (converted !== null) {
251
251
  data[i][1] = converted
@@ -267,9 +267,9 @@ export class OpenC3Api {
267
267
  const data = await this.exec('get_tlm_values', [items], {
268
268
  stale_time: stale_time,
269
269
  })
270
- var len = data[0].length
271
- var converted = null
272
- for (var i = 0; i < len; i++) {
270
+ let len = data[0].length
271
+ let converted = null
272
+ for (let i = 0; i < len; i++) {
273
273
  converted = this.decode_openc3_type(data[0][i])
274
274
  if (converted !== null) {
275
275
  data[0][i] = converted
@@ -294,7 +294,7 @@ export class OpenC3Api {
294
294
  ) {
295
295
  data = await this.exec('tlm', [target_name], { type: packet_name })
296
296
  } else {
297
- var err = new Error()
297
+ let err = new Error()
298
298
  err.name = 'TypeError'
299
299
  err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`
300
300
  throw err
@@ -304,7 +304,7 @@ export class OpenC3Api {
304
304
  type: value_type,
305
305
  })
306
306
  }
307
- var converted = this.decode_openc3_type(data)
307
+ let converted = this.decode_openc3_type(data)
308
308
  if (converted !== null) {
309
309
  data = converted
310
310
  }
@@ -352,8 +352,8 @@ export class OpenC3Api {
352
352
  return this.exec('get_all_cmds', [target_name])
353
353
  }
354
354
 
355
- get_all_cmd_names(target_name) {
356
- return this.exec('get_all_cmd_names', [target_name])
355
+ get_all_cmd_names(target_name, hidden = false) {
356
+ return this.exec('get_all_cmd_names', [target_name], { hidden: hidden })
357
357
  }
358
358
 
359
359
  get_cmd(target_name, command_name) {
@@ -384,8 +384,8 @@ export class OpenC3Api {
384
384
 
385
385
  // Implementation of functionality shared by cmd methods with param_lists.
386
386
  _cmd(method, target_name, command_name, param_list, headerOptions) {
387
- var converted = null
388
- for (var key in param_list) {
387
+ let converted = null
388
+ for (let key in param_list) {
389
389
  if (Object.prototype.hasOwnProperty.call(param_list, key)) {
390
390
  converted = this.encode_openc3_type(param_list[key])
391
391
  if (converted !== null) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "<%= tool_name %>",
3
- "version": "5.18.0",
3
+ "version": "5.19.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -12,9 +12,9 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@astrouxds/astro-web-components": "7.22.1",
15
- "@openc3/tool-common": "5.18.0",
16
- "axios": "1.7.4",
17
- "date-fns": "3.6.0",
15
+ "@openc3/tool-common": "5.19.0",
16
+ "axios": "1.7.7",
17
+ "date-fns": "4.1.0",
18
18
  "portal-vue": "2.1.7",
19
19
  "single-spa-vue": "2.5.1",
20
20
  "sprintf-js": "1.1.3",
@@ -35,19 +35,19 @@
35
35
  "@vue/cli-service": "5.0.8",
36
36
  "@vue/eslint-config-prettier": "9.0.0",
37
37
  "@vue/test-utils": "1.3.0",
38
- "babel-loader": "9.1.3",
38
+ "babel-loader": "9.2.1",
39
39
  "babel-plugin-istanbul": "7.0.0",
40
40
  "eslint": "8.56.0",
41
41
  "eslint-config-prettier": "9.1.0",
42
42
  "eslint-plugin-prettier": "5.2.1",
43
- "eslint-plugin-vue": "9.27.0",
43
+ "eslint-plugin-vue": "9.28.0",
44
44
  "html-webpack-plugin": "^5.6.0",
45
45
  "prettier": "3.3.3",
46
- "sass": "1.77.8",
47
- "sass-loader": "14.2.1",
46
+ "sass": "1.79.3",
47
+ "sass-loader": "16.0.2",
48
48
  "vue-cli-plugin-single-spa": "3.3.0",
49
49
  "vue-cli-plugin-vuetify": "2.5.8",
50
50
  "vue-template-compiler": "2.7.16",
51
- "webpack": "5.93.0"
51
+ "webpack": "5.95.0"
52
52
  }
53
53
  }
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "widget",
3
- "version": "5.18.0",
3
+ "version": "5.19.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --dest tools/widgets/<%= widget_name %> --formats umd-min <%= widget_path %> --name <%= widget_name %>"
7
7
  },
8
8
  "dependencies": {
9
9
  "@astrouxds/astro-web-components": "7.22.1",
10
- "@openc3/tool-common": "5.18.0",
11
10
  "vue": "2.7.16",
12
11
  "vuetify": "2.7.1"
13
12
  },
@@ -20,17 +19,17 @@
20
19
  "@vue/cli-plugin-eslint": "5.0.8",
21
20
  "@vue/cli-service": "5.0.8",
22
21
  "@vue/eslint-config-prettier": "9.0.0",
23
- "babel-loader": "9.1.3",
22
+ "babel-loader": "9.2.1",
24
23
  "babel-plugin-istanbul": "7.0.0",
25
24
  "eslint": "8.56.0",
26
25
  "eslint-config-prettier": "9.1.0",
27
26
  "eslint-plugin-prettier": "5.2.1",
28
- "eslint-plugin-vue": "9.27.0",
27
+ "eslint-plugin-vue": "9.28.0",
29
28
  "prettier": "3.3.3",
30
- "sass": "1.77.8",
31
- "sass-loader": "14.2.1",
29
+ "sass": "1.79.3",
30
+ "sass-loader": "16.0.2",
32
31
  "vue-cli-plugin-vuetify": "2.5.8",
33
32
  "vue-template-compiler": "2.7.16",
34
- "webpack": "5.93.0"
33
+ "webpack": "5.95.0"
35
34
  }
36
35
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.0
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-19 00:00:00.000000000 Z
12
+ date: 2024-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -998,6 +998,7 @@ files:
998
998
  - lib/openc3/migrations/20230615000000_autonomic.rb
999
999
  - lib/openc3/migrations/20230915000002_no_scope_log_messages.rb
1000
1000
  - lib/openc3/migrations/20231022000000_tlm_viewer_config.rb
1001
+ - lib/openc3/migrations/20240915000000_activity_uuid.rb
1001
1002
  - lib/openc3/models/activity_model.rb
1002
1003
  - lib/openc3/models/auth_model.rb
1003
1004
  - lib/openc3/models/cvt_model.rb
@@ -1037,6 +1038,7 @@ files:
1037
1038
  - lib/openc3/operators/microservice_operator.rb
1038
1039
  - lib/openc3/operators/operator.rb
1039
1040
  - lib/openc3/packets/binary_accessor.rb
1041
+ - lib/openc3/packets/command_validator.rb
1040
1042
  - lib/openc3/packets/commands.rb
1041
1043
  - lib/openc3/packets/json_packet.rb
1042
1044
  - lib/openc3/packets/limits.rb
@@ -1124,6 +1126,7 @@ files:
1124
1126
  - lib/openc3/utilities/bucket_require.rb
1125
1127
  - lib/openc3/utilities/bucket_utilities.rb
1126
1128
  - lib/openc3/utilities/cli_generator.rb
1129
+ - lib/openc3/utilities/cosmos_rails_formatter.rb
1127
1130
  - lib/openc3/utilities/crc.rb
1128
1131
  - lib/openc3/utilities/csv.rb
1129
1132
  - lib/openc3/utilities/local_bucket.rb