shapeup-cli 0.8.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/lib/shapeup_cli/commands/config_cmd.rb +7 -1
- data/lib/shapeup_cli/version.rb +1 -1
- data/skills/shapeup-connect/SKILL.md +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc0a67b4cc8086fc7ba5a2984d6be2b2eab9041ce4efe344e3030840e4cb6c21
|
|
4
|
+
data.tar.gz: 2ae7641ddd1b78c4777200191c168e9d7b461785f552b598715864cf9555e4b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 508c56acc3c2b28de638e76ac8ec7d5771daca19a5c083392cb876b4b2a8f6293c45205b158a55507ad7509f9be152b83c57a61cd2a90678967c9697e680c030
|
|
7
|
+
data.tar.gz: c39c3a4ad91d481aee6cc60ed58eb30b21396323ef0de3f619e9f38564e63b67b9860dd4d445301354fee55217e107aa9cdf86d817baa083677b8e6df9b19e08
|
|
@@ -121,7 +121,7 @@ module ShapeupCli
|
|
|
121
121
|
|
|
122
122
|
def profile_candidates
|
|
123
123
|
select_first [
|
|
124
|
-
{ source: "SHAPEUP_PROFILE env", value: ENV["SHAPEUP_PROFILE"] },
|
|
124
|
+
{ source: "--profile flag or SHAPEUP_PROFILE env", value: ENV["SHAPEUP_PROFILE"] },
|
|
125
125
|
{ source: "profiles.json default", value: Config.saved_default_profile }
|
|
126
126
|
]
|
|
127
127
|
end
|
|
@@ -130,6 +130,7 @@ module ShapeupCli
|
|
|
130
130
|
select_first [
|
|
131
131
|
{ source: "--org flag", value: @org_id },
|
|
132
132
|
{ source: "SHAPEUP_ORG env", value: ENV["SHAPEUP_ORG"] },
|
|
133
|
+
{ source: picked_profile_source, value: Config.chosen_profile_value("organisation_id") },
|
|
133
134
|
{ source: project_config_source, value: Config.project_config["organisation_id"] },
|
|
134
135
|
{ source: "~/.config/shapeup/config.json", value: Config.global_config["organisation_id"] },
|
|
135
136
|
{ source: "profile '#{Config.current_profile_name}'", value: Config.current_profile&.dig("organisation_id") }
|
|
@@ -139,6 +140,7 @@ module ShapeupCli
|
|
|
139
140
|
def host_candidates
|
|
140
141
|
select_first [
|
|
141
142
|
{ source: "SHAPEUP_HOST env", value: ENV["SHAPEUP_HOST"] },
|
|
143
|
+
{ source: picked_profile_source, value: Config.chosen_profile_value("host") },
|
|
142
144
|
{ source: project_config_source, value: Config.project_config["host"] },
|
|
143
145
|
{ source: "~/.config/shapeup/config.json", value: Config.global_config["host"] },
|
|
144
146
|
{ source: "profile '#{Config.current_profile_name}'", value: Config.current_profile&.dig("host") },
|
|
@@ -153,6 +155,10 @@ module ShapeupCli
|
|
|
153
155
|
]
|
|
154
156
|
end
|
|
155
157
|
|
|
158
|
+
def picked_profile_source
|
|
159
|
+
"profile picked with --profile (#{ENV["SHAPEUP_PROFILE"] || "none"})"
|
|
160
|
+
end
|
|
161
|
+
|
|
156
162
|
def project_config_source
|
|
157
163
|
Config.project_config_path || Config::PROJECT_CONFIG_NAME
|
|
158
164
|
end
|
data/lib/shapeup_cli/version.rb
CHANGED
|
@@ -64,6 +64,23 @@ themselves.
|
|
|
64
64
|
}
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
Always fill in the test command before asking, so the agent can check its work unattended.
|
|
68
|
+
Work out how this project runs its tests from what is in the directory, and list each way
|
|
69
|
+
you find:
|
|
70
|
+
|
|
71
|
+
| You find | Add |
|
|
72
|
+
|----------|-----|
|
|
73
|
+
| `bin/rails` | `"Bash(bin/rails test *)"` |
|
|
74
|
+
| `Rakefile` | `"Bash(bundle exec rake *)"` |
|
|
75
|
+
| a `test/` folder of Ruby files and no Rakefile | `"Bash(ruby test/*)"` |
|
|
76
|
+
| `package.json` with a `test` script | `"Bash(npm test *)"` (or the yarn/pnpm equivalent the lockfile shows) |
|
|
77
|
+
| `Makefile` with a test or check target | `"Bash(make test *)"` / `"Bash(make check *)"` |
|
|
78
|
+
| `pyproject.toml`, `pytest.ini` or `tests/` with Python | `"Bash(pytest *)"` |
|
|
79
|
+
| `go.mod` | `"Bash(go test *)"` |
|
|
80
|
+
| `Cargo.toml` | `"Bash(cargo test *)"` |
|
|
81
|
+
|
|
82
|
+
If you can't tell, ask the user how they run the tests rather than leaving it out.
|
|
83
|
+
|
|
67
84
|
Merge with what is there, never replace it, and make sure `.claude/settings.local.json` is in
|
|
68
85
|
`.gitignore`. If they say no, carry on: they will approve each command instead. If prompts keep
|
|
69
86
|
appearing after writing it, tell them a new session picks the rules up.
|