rubik 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/ATTRIBUTION.md +2 -2
  3. data/CHANGELOG.md +100 -1
  4. data/bin/rubik +15 -10
  5. data/lib/rubik/cli/workspace_trust.rb +1 -0
  6. data/lib/rubik/concurrency/worker.rb +143 -0
  7. data/lib/rubik/concurrency.rb +1 -0
  8. data/lib/rubik/config/deep_ops.rb +17 -0
  9. data/lib/rubik/config/defaults.rb +0 -1
  10. data/lib/rubik/config/schema.rb +0 -1
  11. data/lib/rubik/config.rb +7 -3
  12. data/lib/rubik/context/repo_context_reader.rb +27 -8
  13. data/lib/rubik/events.rb +18 -0
  14. data/lib/rubik/kernel/unit.rb +4 -3
  15. data/lib/rubik/orchestrator/auto_apply.rb +2 -0
  16. data/lib/rubik/orchestrator/budget_manager.rb +18 -2
  17. data/lib/rubik/orchestrator/goal_ledger/deep_ops.rb +41 -0
  18. data/lib/rubik/orchestrator/goal_ledger/drift.rb +2 -1
  19. data/lib/rubik/orchestrator/goal_ledger/ledger.rb +56 -50
  20. data/lib/rubik/orchestrator/goal_ledger/observation_projection.rb +26 -0
  21. data/lib/rubik/orchestrator/goal_ledger/patch.rb +10 -17
  22. data/lib/rubik/orchestrator/goal_ledger/suspend_lifecycle.rb +9 -41
  23. data/lib/rubik/orchestrator/goal_ledger/validator.rb +6 -20
  24. data/lib/rubik/orchestrator/goal_ledger/verifier.rb +3 -14
  25. data/lib/rubik/orchestrator/goal_ledger/xml_render.rb +21 -14
  26. data/lib/rubik/orchestrator/goal_state.rb +15 -15
  27. data/lib/rubik/orchestrator/loop.rb +62 -63
  28. data/lib/rubik/orchestrator/lsp_feedback.rb +7 -1
  29. data/lib/rubik/orchestrator/subagent/admission_policy.rb +161 -0
  30. data/lib/rubik/orchestrator/subagent/builtin_types.rb +3 -2
  31. data/lib/rubik/orchestrator/subagent/notices.rb +5 -4
  32. data/lib/rubik/orchestrator/subagent/profile_contract.rb +4 -10
  33. data/lib/rubik/orchestrator/subagent/run_cycle.rb +22 -1
  34. data/lib/rubik/orchestrator/subagent/scoped_registry.rb +34 -2
  35. data/lib/rubik/orchestrator/subagent/type_registry.rb +19 -1
  36. data/lib/rubik/orchestrator/turn_executor/subagent_channel.rb +6 -1
  37. data/lib/rubik/orchestrator/turn_executor/user_channel.rb +6 -1
  38. data/lib/rubik/orchestrator/turn_executor.rb +2 -1
  39. data/lib/rubik/platform/path.rb +0 -1
  40. data/lib/rubik/prompt/context_builder.rb +24 -18
  41. data/lib/rubik/prompt/context_compactor.rb +31 -8
  42. data/lib/rubik/prompt/conversation_rows.rb +33 -0
  43. data/lib/rubik/prompt/doctrine.rb +4 -2
  44. data/lib/rubik/prompt/emergency_compactor.rb +5 -4
  45. data/lib/rubik/repl/commands/agent_execution.rb +13 -2
  46. data/lib/rubik/repl/commands/buffer.rb +4 -0
  47. data/lib/rubik/repl/commands/mcp.rb +5 -0
  48. data/lib/rubik/repl/commands/subagents.rb +4 -4
  49. data/lib/rubik/repl/commands/workspace.rb +22 -2
  50. data/lib/rubik/repl/config_wiring.rb +24 -7
  51. data/lib/rubik/repl/input_execution.rb +1 -1
  52. data/lib/rubik/repl/lifecycle.rb +3 -2
  53. data/lib/rubik/repl/pruner/harness.rb +52 -67
  54. data/lib/rubik/repl/pruner/rules.rb +3 -1
  55. data/lib/rubik/repl/service_catalog.rb +1 -1
  56. data/lib/rubik/repl/synthesized_command_context.rb +3 -0
  57. data/lib/rubik/repl/turn_recorder.rb +5 -4
  58. data/lib/rubik/repl.rb +1 -0
  59. data/lib/rubik/runtime/context.rb +5 -0
  60. data/lib/rubik/runtime/discovery.rb +55 -0
  61. data/lib/rubik/runtime/overlay_storage.rb +54 -23
  62. data/lib/rubik/runtime/repair_probe.rb +20 -2
  63. data/lib/rubik/runtime/sealed_coeffects.rb +58 -0
  64. data/lib/rubik/runtime/synthesized_command_context.rb +80 -0
  65. data/lib/rubik/runtime/synthesized_tool_context.rb +123 -0
  66. data/lib/rubik/runtime.rb +2 -0
  67. data/lib/rubik/security/classifier/classifier.rb +16 -8
  68. data/lib/rubik/security/classifier/commands/biome.yaml +49 -0
  69. data/lib/rubik/security/classifier/commands/bun.yaml +91 -0
  70. data/lib/rubik/security/classifier/commands/bundle.yaml +107 -0
  71. data/lib/rubik/security/classifier/commands/clang-format.yaml +21 -0
  72. data/lib/rubik/security/classifier/commands/clang.yaml +37 -0
  73. data/lib/rubik/security/classifier/commands/cmake.yaml +37 -0
  74. data/lib/rubik/security/classifier/commands/ctest.yaml +30 -0
  75. data/lib/rubik/security/classifier/commands/gcc.yaml +36 -0
  76. data/lib/rubik/security/classifier/commands/gem.yaml +104 -0
  77. data/lib/rubik/security/classifier/commands/gofmt.yaml +15 -0
  78. data/lib/rubik/security/classifier/commands/pnpm.yaml +8 -8
  79. data/lib/rubik/security/classifier/commands/python.yaml +18 -1
  80. data/lib/rubik/security/classifier/commands/python3.yaml +18 -1
  81. data/lib/rubik/security/classifier/commands/rake.yaml +60 -0
  82. data/lib/rubik/security/classifier/commands/rspec.yaml +42 -0
  83. data/lib/rubik/security/classifier/commands/rubocop.yaml +38 -0
  84. data/lib/rubik/security/classifier/commands/ruby.yaml +25 -0
  85. data/lib/rubik/security/classifier/commands/rustc.yaml +34 -0
  86. data/lib/rubik/security/classifier/commands/zig.yaml +77 -0
  87. data/lib/rubik/security/classifier/database.rb +12 -1
  88. data/lib/rubik/security/classifier/matcher.rb +17 -2
  89. data/lib/rubik/security/classifier/models.rb +3 -2
  90. data/lib/rubik/security/classifier.rb +5 -0
  91. data/lib/rubik/security/guard.rb +133 -39
  92. data/lib/rubik/storage/vakanuvis/harness.rb +49 -89
  93. data/lib/rubik/tools/base.rb +24 -7
  94. data/lib/rubik/tools/builtins/files.rb +2 -0
  95. data/lib/rubik/tools/builtins/goal_ledger.rb +9 -9
  96. data/lib/rubik/tools/builtins/lifecycle.rb +1 -1
  97. data/lib/rubik/tools/builtins/synthesis.rb +121 -64
  98. data/lib/rubik/tools/builtins/unsynthesize.rb +38 -0
  99. data/lib/rubik/tools/catalog.rb +3 -0
  100. data/lib/rubik/tools/declaration.rb +6 -2
  101. data/lib/rubik/tools/preflight_runner.rb +107 -14
  102. data/lib/rubik/tools/registry.rb +2 -0
  103. data/lib/rubik/tools/uri_resolver.rb +3 -1
  104. data/lib/rubik/uris.rb +5 -1
  105. data/lib/rubik/version.rb +1 -1
  106. data/lib/rubik.rb +1 -0
  107. metadata +25 -1
@@ -0,0 +1,123 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../coeffects"
4
+ require_relative "context"
5
+ require_relative "sealed_coeffects"
6
+
7
+ module Rubik
8
+ module Runtime
9
+ # Sealed read-only execution context for synthesized and overlay tools (Pillar 2 / Pillar 3).
10
+ #
11
+ # Modeled after `Rubik::REPL::SynthesizedCommandContext`. Exposes ONLY read-only coeffect
12
+ # accessors (`require`, `get`, `has?`, `satisfied?`, `coeffect`).
13
+ #
14
+ # All mutating/lifecycle/parent methods (`dispose`, `provide`, `unprovide`, `parent`,
15
+ # `extend`, `register_disposable`, `on_dispose`, etc.) are blocked with NoMethodError.
16
+ class SynthesizedToolContext
17
+ include SealedCoeffects
18
+
19
+ # Positional parameter kinds accepted as evidence of a 2-arity handler.
20
+ POSITIONAL_KINDS = [:req, :opt, :rest].freeze
21
+
22
+ # Remove Object#extend so calling ctx.extend raises NoMethodError
23
+ undef_method :extend
24
+
25
+ class << self
26
+ # Idempotently wrap an existing context in a sealed SynthesizedToolContext.
27
+ def wrap(context)
28
+ return context if context.is_a?(self)
29
+
30
+ new(context)
31
+ end
32
+
33
+ # Determines whether a tool handler expects or permits context as its 2nd argument.
34
+ #
35
+ # Evaluates positional parameter count (:req, :opt, :rest), ignoring keyword
36
+ # and block parameters.
37
+ def accepts_context?(handler)
38
+ return false unless handler.respond_to?(:call)
39
+
40
+ params = if handler.respond_to?(:parameters)
41
+ handler.parameters
42
+ elsif handler.respond_to?(:method)
43
+ begin
44
+ handler.method(:call).parameters
45
+ rescue StandardError
46
+ []
47
+ end
48
+ else
49
+ []
50
+ end
51
+
52
+ if params.empty?
53
+ return handler.arity == 2 if handler.respond_to?(:arity)
54
+
55
+ return false
56
+ end
57
+
58
+ # params is an Array of [type, name] pairs (Method#parameters), so a
59
+ # Hash-style slice would be wrong here — filter by positional kinds.
60
+ pos_params = params.select { |param| POSITIONAL_KINDS.include?(param[0]) }
61
+ req_count = pos_params.count { |param| param[0] == :req }
62
+
63
+ 2.between?(req_count, pos_params.size)
64
+ end
65
+ end
66
+
67
+ def initialize(context = nil)
68
+ @context = context
69
+ end
70
+
71
+ # Safe read-only coeffect dependency resolution.
72
+ def require(name)
73
+ raise CoeffectMissingError, "Required coeffect '#{name}' is not satisfied in the context." if name.nil?
74
+
75
+ key = name.to_s.downcase.strip
76
+ raise CoeffectBlockedError, "Required coeffect '#{key}' is denied by sealed-context policy." if blocked?(key)
77
+
78
+ val = get(name)
79
+ return val unless val.nil?
80
+
81
+ raise CoeffectMissingError, "Required coeffect '#{name}' is not satisfied in the context."
82
+ end
83
+
84
+ # Safe mediated coeffect reader.
85
+ def get(name, default = nil)
86
+ return default if name.nil?
87
+
88
+ key = name.to_s.downcase.strip
89
+ return default if blocked?(key)
90
+
91
+ val = if @context.respond_to?(:get)
92
+ res = @context.get(key)
93
+ res = @context.get(name) if res.nil? && name.to_s != key
94
+ res
95
+ elsif @context.is_a?(Hash)
96
+ @context[key] || @context[name] || @context[name.to_s] || @context[name.to_sym]
97
+ elsif @context.respond_to?(:resolve)
98
+ @context.resolve(key)
99
+ elsif @context.respond_to?(:[])
100
+ @context[key] || @context[name]
101
+ end
102
+
103
+ val.nil? ? default : val
104
+ end
105
+
106
+ def has?(name)
107
+ return false if name.nil?
108
+
109
+ # get denies blocked keys (returns the default), so a single gate is
110
+ # enough and the denial logs once.
111
+ !get(name).nil?
112
+ end
113
+
114
+ def satisfied?(dependencies)
115
+ Array(dependencies).all? { |dep| has?(dep) }
116
+ end
117
+
118
+ def coeffect(name)
119
+ get(name)
120
+ end
121
+ end
122
+ end
123
+ end
data/lib/rubik/runtime.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "runtime/context"
4
+ require_relative "runtime/synthesized_command_context"
5
+ require_relative "runtime/synthesized_tool_context"
4
6
  require_relative "runtime/fiber"
5
7
  require_relative "runtime/manager"
6
8
  require_relative "runtime/service_definition"
@@ -29,6 +29,10 @@ module Rubik
29
29
  @default_database ||= CommandDatabase.new
30
30
  end
31
31
 
32
+ def self.reset_database!
33
+ @default_database = nil
34
+ end
35
+
32
36
  def self.classify_expression(expression, database: nil, shell: nil)
33
37
  new(database: database, shell: shell).classify(expression)
34
38
  end
@@ -349,11 +353,14 @@ module Rubik
349
353
 
350
354
  p = p[1..-2] if (p.start_with?('"') && p.end_with?('"')) || (p.start_with?("'") && p.end_with?("'"))
351
355
  return false if p.empty? || p.start_with?("-")
352
- return false if !p.include?("..") && temp_path?(p)
356
+ return false if !p.include?("..") && (temp_path?(p) || DEV_PATHS.any? { |dev| p == dev || p.start_with?(dev) })
357
+
358
+ # Bare drive prefix without separator is NOT a drive root or system path
359
+ return false if p =~ %r{\A[a-zA-Z]:(?![\\/])}
353
360
 
354
361
  return true if p =~ %r{\A/(?:\*|\.+)?/?\z}
355
- return true if p =~ %r{\A[a-zA-Z]:(?:[\\/]|\*|\.+)?\z}i
356
- return true if HOME_TOKENS.include?(p)
362
+ return true if p =~ %r{\A[a-zA-Z]:[\\/](?:\*|\.+)?\z}i
363
+ return true if HOME_TOKENS.include?(p) || p.start_with?("~/", "$HOME/", "${HOME}/")
357
364
 
358
365
  if p =~ %r{\A([a-zA-Z]):[/\\](.*)\z}
359
366
  parts = []
@@ -361,11 +368,11 @@ module Rubik
361
368
  win_norm = "#{Regexp.last_match(1).downcase}:/#{parts.join('/')}".downcase
362
369
  return false if win_norm.include?("/appdata/local/temp/") || win_norm.end_with?("/appdata/local/temp")
363
370
 
364
- return true if win_norm =~ %r{\A[a-z]:/(?:windows|program files|program files \(x86\)|system32)(?:/|\z)} ||
365
- win_norm =~ %r{\A[a-z]:/users/?(?:\*|\.+)?/?\z} ||
366
- win_norm =~ %r{\A[a-z]:/?(?:\*|\.+)?/?\z}
367
-
368
- return false
371
+ if win_norm =~ %r{\A[a-z]:/(?:windows|program files|program files \(x86\)|system32)(?:/|\z)} ||
372
+ win_norm =~ %r{\A[a-z]:/users/?(?:\*|\.+)?/?\z} ||
373
+ win_norm =~ %r{\A[a-z]:/?(?:\*|\.+)?/?\z}
374
+ return true
375
+ end
369
376
  end
370
377
 
371
378
  expanded = safe_expand_path(p)
@@ -382,6 +389,7 @@ module Rubik
382
389
 
383
390
  false
384
391
  end
392
+ public :system_path?
385
393
 
386
394
  def safe_expand_path(path)
387
395
  File.expand_path(path)
@@ -0,0 +1,49 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: biome
3
+ description: "Toolchain for the web (formatter, linter, etc.)"
4
+ classification: READONLY
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --version: {overrides: READONLY}
9
+ -v: {overrides: READONLY, aliases: [--version]}
10
+ --help: {overrides: READONLY}
11
+ -h: {overrides: READONLY, aliases: [--help]}
12
+ --config-path: {takes_value: true}
13
+ subcommands:
14
+ format:
15
+ classification: READONLY
16
+ strict: false
17
+ options:
18
+ --write: {overrides: LOCAL_EFFECTS}
19
+ --stdin-file-path: {takes_value: true}
20
+ lint:
21
+ classification: READONLY
22
+ strict: false
23
+ options:
24
+ --write: {overrides: LOCAL_EFFECTS}
25
+ check:
26
+ classification: READONLY
27
+ strict: false
28
+ options:
29
+ --write: {overrides: LOCAL_EFFECTS}
30
+ --apply: {overrides: LOCAL_EFFECTS, aliases: [--write]}
31
+ --apply-unsafe: {overrides: LOCAL_EFFECTS}
32
+ ci:
33
+ classification: READONLY
34
+ strict: false
35
+ version:
36
+ classification: READONLY
37
+ strict: false
38
+ explain:
39
+ classification: READONLY
40
+ strict: false
41
+ rage:
42
+ classification: READONLY
43
+ strict: false
44
+ init:
45
+ classification: LOCAL_EFFECTS
46
+ strict: false
47
+ migrate:
48
+ classification: LOCAL_EFFECTS
49
+ strict: false
@@ -0,0 +1,91 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: bun
3
+ description: "All-in-one JavaScript and TypeScript toolkit and runtime"
4
+ classification: DANGEROUS
5
+ strict: false
6
+ global_options:
7
+ --version: {overrides: READONLY}
8
+ -v: {overrides: READONLY, aliases: [--version]}
9
+ --help: {overrides: READONLY}
10
+ -h: {overrides: READONLY, aliases: [--help]}
11
+ --cwd: {takes_value: true, captures_directory: true}
12
+ subcommands:
13
+ test:
14
+ classification: LOCAL_EFFECTS
15
+ risk: LOW
16
+ strict: false
17
+ options:
18
+ --bail: {}
19
+ -b: {aliases: [--bail]}
20
+ --timeout: {takes_value: true}
21
+ -t: {takes_value: true, aliases: [--timeout]}
22
+ --rerun-each: {takes_value: true}
23
+ --only: {}
24
+ --todo: {}
25
+ --watch: {}
26
+ --coverage: {}
27
+ --update-snapshots: {}
28
+ -u: {aliases: [--update-snapshots]}
29
+ install:
30
+ classification: LOCAL_EFFECTS
31
+ risk: LOW
32
+ strict: false
33
+ aliases: [i]
34
+ add:
35
+ classification: LOCAL_EFFECTS
36
+ risk: LOW
37
+ strict: false
38
+ aliases: [a]
39
+ remove:
40
+ classification: LOCAL_EFFECTS
41
+ risk: LOW
42
+ strict: false
43
+ aliases: [rm]
44
+ update:
45
+ classification: LOCAL_EFFECTS
46
+ risk: LOW
47
+ strict: false
48
+ link:
49
+ classification: LOCAL_EFFECTS
50
+ strict: false
51
+ unlink:
52
+ classification: LOCAL_EFFECTS
53
+ strict: false
54
+ build:
55
+ classification: LOCAL_EFFECTS
56
+ strict: false
57
+ init:
58
+ classification: LOCAL_EFFECTS
59
+ strict: false
60
+ upgrade:
61
+ classification: LOCAL_EFFECTS
62
+ strict: false
63
+ pm:
64
+ classification: LOCAL_EFFECTS
65
+ strict: false
66
+ subcommands:
67
+ ls:
68
+ classification: READONLY
69
+ strict: false
70
+ bin:
71
+ classification: READONLY
72
+ strict: false
73
+ cache:
74
+ classification: LOCAL_EFFECTS
75
+ strict: false
76
+ subcommands:
77
+ rm:
78
+ classification: LOCAL_EFFECTS
79
+ strict: false
80
+ run:
81
+ classification: LOCAL_EFFECTS
82
+ strict: false
83
+ x:
84
+ classification: DANGEROUS
85
+ strict: false
86
+ create:
87
+ classification: DANGEROUS
88
+ strict: false
89
+ repl:
90
+ classification: DANGEROUS
91
+ strict: false
@@ -0,0 +1,107 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: bundle
3
+ description: "Ruby dependency manager (Bundler)"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --help: {overrides: READONLY}
9
+ -h: {overrides: READONLY, aliases: [--help]}
10
+ --version: {overrides: READONLY}
11
+ -v: {overrides: READONLY, aliases: [--version]}
12
+ subcommands:
13
+ exec:
14
+ classification: LOCAL_EFFECTS
15
+ strict: false
16
+ delegates_to:
17
+ mode: rest_are_argv
18
+ subcommands:
19
+ rake:
20
+ classification: LOCAL_EFFECTS
21
+ strict: false
22
+ rspec:
23
+ classification: LOCAL_EFFECTS
24
+ strict: false
25
+ rubocop:
26
+ classification: READONLY
27
+ strict: false
28
+ options:
29
+ -a: {overrides: LOCAL_EFFECTS}
30
+ -A: {overrides: LOCAL_EFFECTS}
31
+ --autocorrect: {overrides: LOCAL_EFFECTS, aliases: [-a]}
32
+ --autocorrect-all: {overrides: LOCAL_EFFECTS, aliases: [-A]}
33
+ install:
34
+ classification: LOCAL_EFFECTS
35
+ risk: LOW
36
+ strict: false
37
+ options:
38
+ --binstubs: {takes_value: true}
39
+ --clean: {}
40
+ --deployment: {}
41
+ --frozen: {}
42
+ --full-index: {}
43
+ --gemfile: {takes_value: true}
44
+ --jobs: {takes_value: true}
45
+ -j: {takes_value: true, aliases: [--jobs]}
46
+ --local: {}
47
+ --no-cache: {}
48
+ --no-prune: {}
49
+ --path: {takes_value: true, captures_directory: true}
50
+ --quiet: {}
51
+ --retry: {takes_value: true}
52
+ --shebang: {takes_value: true}
53
+ --standalone: {}
54
+ --system: {}
55
+ --trust-policy: {takes_value: true}
56
+ --without: {takes_value: true}
57
+ --with: {takes_value: true}
58
+ update:
59
+ classification: LOCAL_EFFECTS
60
+ risk: LOW
61
+ strict: false
62
+ check:
63
+ classification: READONLY
64
+ risk: LOW
65
+ strict: false
66
+ options:
67
+ --dry-run: {overrides: READONLY}
68
+ --gemfile: {takes_value: true}
69
+ --path: {takes_value: true, captures_directory: true}
70
+ list:
71
+ classification: READONLY
72
+ risk: LOW
73
+ strict: false
74
+ show:
75
+ classification: READONLY
76
+ risk: LOW
77
+ strict: false
78
+ info:
79
+ classification: READONLY
80
+ risk: LOW
81
+ strict: false
82
+ outdated:
83
+ classification: READONLY
84
+ risk: LOW
85
+ strict: false
86
+ doctor:
87
+ classification: READONLY
88
+ risk: LOW
89
+ strict: false
90
+ lock:
91
+ classification: LOCAL_EFFECTS
92
+ strict: false
93
+ package:
94
+ classification: LOCAL_EFFECTS
95
+ strict: false
96
+ clean:
97
+ classification: LOCAL_EFFECTS
98
+ strict: false
99
+ add:
100
+ classification: LOCAL_EFFECTS
101
+ strict: false
102
+ remove:
103
+ classification: LOCAL_EFFECTS
104
+ strict: false
105
+ init:
106
+ classification: LOCAL_EFFECTS
107
+ strict: false
@@ -0,0 +1,21 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: clang-format
3
+ description: "C/C++ source code formatting tool"
4
+ classification: READONLY
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --help: {overrides: READONLY}
9
+ -h: {overrides: READONLY, aliases: [--help]}
10
+ --version: {overrides: READONLY}
11
+ options:
12
+ -i: {overrides: LOCAL_EFFECTS}
13
+ --dry-run: {overrides: READONLY}
14
+ -style: {takes_value: true}
15
+ --style: {takes_value: true, aliases: [-style]}
16
+ -fallback-style: {takes_value: true}
17
+ --fallback-style: {takes_value: true, aliases: [-fallback-style]}
18
+ -assume-filename: {takes_value: true}
19
+ --assume-filename: {takes_value: true, aliases: [-assume-filename]}
20
+ -Werror: {}
21
+ --Werror: {}
@@ -0,0 +1,37 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: clang
3
+ description: "LLVM C/C++/Objective-C compiler"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --version: {overrides: READONLY}
9
+ -v: {overrides: READONLY}
10
+ --help: {overrides: READONLY}
11
+ -h: {overrides: READONLY, aliases: [--help]}
12
+ options:
13
+ -fsyntax-only: {overrides: READONLY}
14
+ -S: {}
15
+ -c: {}
16
+ -E: {}
17
+ -o: {takes_value: true}
18
+ -I: {takes_value: true}
19
+ -L: {takes_value: true}
20
+ -l: {takes_value: true}
21
+ -D: {takes_value: true}
22
+ -U: {takes_value: true}
23
+ -O0: {}
24
+ -O1: {}
25
+ -O2: {}
26
+ -O3: {}
27
+ -Os: {}
28
+ -Oz: {}
29
+ -g: {}
30
+ -Wall: {}
31
+ -Wextra: {}
32
+ -Werror: {}
33
+ -std: {takes_value: true}
34
+ -target: {takes_value: true}
35
+ --target: {takes_value: true, aliases: [-target]}
36
+ -shared: {}
37
+ -fPIC: {}
@@ -0,0 +1,37 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: cmake
3
+ description: "Cross-platform build system generator"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --version: {overrides: READONLY}
9
+ -version: {overrides: READONLY, aliases: [--version]}
10
+ /V: {overrides: READONLY, aliases: [--version]}
11
+ --help: {overrides: READONLY}
12
+ -help: {overrides: READONLY, aliases: [--help]}
13
+ --help-full: {overrides: READONLY}
14
+ --help-manual: {overrides: READONLY, takes_value: true}
15
+ --help-command: {overrides: READONLY, takes_value: true}
16
+ --help-module: {overrides: READONLY, takes_value: true}
17
+ --help-property: {overrides: READONLY, takes_value: true}
18
+ --help-variable: {overrides: READONLY, takes_value: true}
19
+ options:
20
+ -B: {takes_value: true}
21
+ -S: {takes_value: true}
22
+ -D: {takes_value: true}
23
+ -G: {takes_value: true}
24
+ -C: {takes_value: true}
25
+ -U: {takes_value: true}
26
+ -T: {takes_value: true}
27
+ -A: {takes_value: true}
28
+ --build: {takes_value: true}
29
+ --install: {takes_value: true}
30
+ --clean-first: {}
31
+ --target: {takes_value: true}
32
+ -t: {takes_value: true, aliases: [--target]}
33
+ --config: {takes_value: true}
34
+ -j: {takes_value: true}
35
+ --parallel: {takes_value: true, aliases: [-j]}
36
+ -N: {overrides: READONLY}
37
+ -P: {takes_value: true}
@@ -0,0 +1,30 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: ctest
3
+ description: "CMake test driver program"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --version: {overrides: READONLY}
9
+ --help: {overrides: READONLY}
10
+ -help: {overrides: READONLY, aliases: [--help]}
11
+ -N: {overrides: READONLY}
12
+ --show-only: {overrides: READONLY, aliases: [-N]}
13
+ options:
14
+ -R: {takes_value: true}
15
+ -E: {takes_value: true}
16
+ -L: {takes_value: true}
17
+ -LE: {takes_value: true}
18
+ -I: {takes_value: true}
19
+ -j: {takes_value: true}
20
+ --parallel: {takes_value: true, aliases: [-j]}
21
+ -C: {takes_value: true}
22
+ --build-config: {takes_value: true, aliases: [-C]}
23
+ --output-on-failure: {}
24
+ -v: {}
25
+ --verbose: {aliases: [-v]}
26
+ -V: {}
27
+ --extra-verbose: {aliases: [-V]}
28
+ --repeat: {takes_value: true}
29
+ --test-dir: {takes_value: true}
30
+ --timeout: {takes_value: true}
@@ -0,0 +1,36 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: gcc
3
+ description: "GNU Compiler Collection (C compiler)"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --version: {overrides: READONLY}
9
+ -v: {overrides: READONLY}
10
+ --help: {overrides: READONLY}
11
+ options:
12
+ -fsyntax-only: {overrides: READONLY}
13
+ -S: {}
14
+ -c: {}
15
+ -E: {}
16
+ -o: {takes_value: true}
17
+ -I: {takes_value: true}
18
+ -L: {takes_value: true}
19
+ -l: {takes_value: true}
20
+ -D: {takes_value: true}
21
+ -U: {takes_value: true}
22
+ -O0: {}
23
+ -O1: {}
24
+ -O2: {}
25
+ -O3: {}
26
+ -Os: {}
27
+ -Og: {}
28
+ -g: {}
29
+ -Wall: {}
30
+ -Wextra: {}
31
+ -Werror: {}
32
+ -std: {takes_value: true}
33
+ -shared: {}
34
+ -fPIC: {}
35
+ -pipe: {}
36
+ -pthread: {}
@@ -0,0 +1,104 @@
1
+ # $schema: ../../../schemas/command.schema.json
2
+ command: gem
3
+ description: "Ruby package manager"
4
+ classification: LOCAL_EFFECTS
5
+ risk: LOW
6
+ strict: false
7
+ global_options:
8
+ --help: {overrides: READONLY}
9
+ -h: {overrides: READONLY, aliases: [--help]}
10
+ --version: {overrides: READONLY}
11
+ -v: {overrides: READONLY, aliases: [--version]}
12
+ --config-file: {takes_value: true}
13
+ subcommands:
14
+ check:
15
+ classification: READONLY
16
+ strict: false
17
+ contents:
18
+ classification: READONLY
19
+ strict: false
20
+ dependency:
21
+ classification: READONLY
22
+ strict: false
23
+ aliases: [dependencies]
24
+ environment:
25
+ classification: READONLY
26
+ strict: false
27
+ aliases: [env]
28
+ help:
29
+ classification: READONLY
30
+ strict: false
31
+ info:
32
+ classification: READONLY
33
+ strict: false
34
+ list:
35
+ classification: READONLY
36
+ strict: false
37
+ outdated:
38
+ classification: READONLY
39
+ strict: false
40
+ search:
41
+ classification: READONLY
42
+ strict: false
43
+ which:
44
+ classification: READONLY
45
+ strict: false
46
+ sources:
47
+ classification: READONLY
48
+ strict: false
49
+ options:
50
+ -a: {overrides: LOCAL_EFFECTS}
51
+ --add: {overrides: LOCAL_EFFECTS, aliases: [-a], takes_value: true}
52
+ -r: {overrides: LOCAL_EFFECTS}
53
+ --remove: {overrides: LOCAL_EFFECTS, aliases: [-r], takes_value: true}
54
+ -c: {overrides: LOCAL_EFFECTS}
55
+ --clear-all: {overrides: LOCAL_EFFECTS, aliases: [-c]}
56
+ build:
57
+ classification: LOCAL_EFFECTS
58
+ strict: false
59
+ install:
60
+ classification: LOCAL_EFFECTS
61
+ strict: false
62
+ aliases: [i]
63
+ uninstall:
64
+ classification: LOCAL_EFFECTS
65
+ strict: false
66
+ update:
67
+ classification: LOCAL_EFFECTS
68
+ strict: false
69
+ unpack:
70
+ classification: LOCAL_EFFECTS
71
+ strict: false
72
+ pristine:
73
+ classification: LOCAL_EFFECTS
74
+ strict: false
75
+ cleanup:
76
+ classification: LOCAL_EFFECTS
77
+ strict: false
78
+ cert:
79
+ classification: LOCAL_EFFECTS
80
+ strict: false
81
+ lock:
82
+ classification: LOCAL_EFFECTS
83
+ strict: false
84
+ open:
85
+ classification: LOCAL_EFFECTS
86
+ strict: false
87
+ server:
88
+ classification: LOCAL_EFFECTS
89
+ strict: false
90
+ push:
91
+ classification: DANGEROUS
92
+ strict: false
93
+ yank:
94
+ classification: DANGEROUS
95
+ strict: false
96
+ owner:
97
+ classification: DANGEROUS
98
+ strict: false
99
+ signin:
100
+ classification: DANGEROUS
101
+ strict: false
102
+ signout:
103
+ classification: DANGEROUS
104
+ strict: false