@specsage/cli 0.1.8 → 0.1.9

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/lib/cli.rb CHANGED
@@ -80,10 +80,6 @@ class SpecSageCLI
80
80
  metadata
81
81
  end
82
82
 
83
- def self_test_mode?
84
- ENV['SPECSAGE_APP_TEST'] == 'true'
85
- end
86
-
87
83
  def run_ci_mode
88
84
  website = ENV['TARGET_WEBSITE_SLUG']
89
85
  api_key = ENV['SPEC_SAGE_API_KEY']
@@ -104,9 +100,6 @@ class SpecSageCLI
104
100
  puts "Version: #{VERSION}"
105
101
  puts "Website: #{website}"
106
102
  puts "Base URL: #{base_url}"
107
- if self_test_mode?
108
- puts "Self-test mode: orchestration via #{base_url}"
109
- end
110
103
  puts ""
111
104
 
112
105
  publisher = ResultsUploader.new(api_key: api_key)
@@ -145,8 +138,7 @@ class SpecSageCLI
145
138
  visible: @options[:visible],
146
139
  record: @options[:record],
147
140
  publisher: publisher,
148
- server_run_id: server_run_id,
149
- orchestration_base_url: self_test_mode? ? base_url : nil
141
+ server_run_id: server_run_id
150
142
  )
151
143
 
152
144
  verdict = runner.run
package/lib/runner.rb CHANGED
@@ -21,9 +21,7 @@ class Runner
21
21
  SAFE_PATH_SEGMENT = /\A[a-zA-Z0-9_-]+\z/
22
22
 
23
23
  # Initialize runner with scenario data from server
24
- # orchestration_base_url: URL for step submissions (LLM orchestration). Defaults to publisher.base_url.
25
- # Set to CI_APP_URL when SPECSAGE_APP_TEST=true to test server code locally.
26
- def initialize(scenario_data, visible: false, record: false, publisher: nil, server_run_id: nil, orchestration_base_url: nil)
24
+ def initialize(scenario_data, visible: false, record: false, publisher: nil, server_run_id: nil)
27
25
  @scenario = normalize_scenario_data(scenario_data)
28
26
  @scenario_id = @scenario['id']
29
27
  @scenario_name = @scenario['name'] || @scenario['id'] || 'unnamed'
@@ -36,7 +34,6 @@ class Runner
36
34
  @next_request_id = 1
37
35
  @node_channel_poisoned = false
38
36
  @publisher = publisher
39
- @orchestration_base_url = orchestration_base_url || publisher&.base_url
40
37
  @step_client = nil
41
38
  @server_run_id = server_run_id
42
39
  @credentials = {} # Credentials received from server { "NAME" => "value" }
@@ -50,7 +47,7 @@ class Runner
50
47
  raise ArgumentError, 'server_run_id is required' unless @server_run_id
51
48
 
52
49
  @step_client = StepClient.new(
53
- base_url: @orchestration_base_url,
50
+ base_url: @publisher.base_url,
54
51
  server_run_id: @server_run_id,
55
52
  api_key: @publisher.api_key
56
53
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specsage/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "SpecSage CLI - AI-powered end-to-end testing automation (Node wrapper for Ruby CLI)",
5
5
  "type": "module",
6
6
  "bin": {