cardinal-ai 0.2.9 → 0.2.10
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/README.md +2 -1
- data/exe/cardinal +14 -1
- data/lib/cardinal/version.rb +1 -1
- 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: 946e61403c6624f73d9ec439f536c8fb8cf2b2f1b1fca371e0fefb5f7c4e054b
|
|
4
|
+
data.tar.gz: f183a370982f4deb6e4b158f72dbf25cd23252563424ed593752c5c2505c5c79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68234ba5c060c9e1601099d5865e278f0f347ae8733d7dc4fc55c1d3f9fdfc8e6c9557bb076be5a68f450be20bc3b72d592f80bd37778a83b92915b4ddb6bd5c
|
|
7
|
+
data.tar.gz: fff0c846ab54f0cfccd43ba75311b74441d1b89a93e8ce88eb6726571cd22dd23d084d27ffbbeac7fa159d6df1e48d1e51b1cf8f729636a822ddbc7e56dda999
|
data/README.md
CHANGED
data/exe/cardinal
CHANGED
|
@@ -23,7 +23,20 @@ def say(msg) = puts("cardinal ▸ #{msg}")
|
|
|
23
23
|
def die(msg) = abort("cardinal: #{msg}")
|
|
24
24
|
|
|
25
25
|
cmd = ARGV[0] || "up"
|
|
26
|
-
|
|
26
|
+
unless File.directory?(File.join(TARGET, ".git"))
|
|
27
|
+
# A brand-new project shouldn't need ceremony — cards are branches and PRs,
|
|
28
|
+
# so a repo must exist, but Cardinal can lay that rail itself.
|
|
29
|
+
if cmd == "up" && $stdin.tty?
|
|
30
|
+
print "cardinal ▸ #{TARGET} isn't a git repository yet — initialize one here? [Y/n] "
|
|
31
|
+
answer = $stdin.gets.to_s.strip.downcase
|
|
32
|
+
die "aborted — run cardinal inside a git repository" unless answer.empty? || answer.start_with?("y")
|
|
33
|
+
system("git", "init", "-q", "-b", "main", TARGET) || die("git init failed")
|
|
34
|
+
say "initialized empty git repository (branch: main)"
|
|
35
|
+
say "tip: add a GitHub remote later so agents can push branches and open PRs"
|
|
36
|
+
else
|
|
37
|
+
die "#{TARGET} is not a git repository — run `git init` first"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
27
40
|
|
|
28
41
|
case cmd
|
|
29
42
|
when "logout"
|
data/lib/cardinal/version.rb
CHANGED