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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ad9a65f2b86ce70952431f7f4c7689ddf6791213f7667d4bf87c2230381bce6
4
- data.tar.gz: adc0e789a102a8382516b9b1eecd06fc911476187ce92ed4030e7e020c7c8ccb
3
+ metadata.gz: 946e61403c6624f73d9ec439f536c8fb8cf2b2f1b1fca371e0fefb5f7c4e054b
4
+ data.tar.gz: f183a370982f4deb6e4b158f72dbf25cd23252563424ed593752c5c2505c5c79
5
5
  SHA512:
6
- metadata.gz: 73e01d661c1341d873927ce0504de1f7f7e946f6fa7611bd96d4bdcb39e391fc55cb4f012fc66c67f7cf60e271a56bd11c7ca58a170cb9ff2bb0baebb708be5a
7
- data.tar.gz: 1dee5696b49d701fa0f9ef4ee4f9d4b1e4a69c1b3a5d77b3d4f8cfe5379133024fcc853e9b91f89f0078183d0055e2b7b58c78669108b37f89e8614916ec7050
6
+ metadata.gz: 68234ba5c060c9e1601099d5865e278f0f347ae8733d7dc4fc55c1d3f9fdfc8e6c9557bb076be5a68f450be20bc3b72d592f80bd37778a83b92915b4ddb6bd5c
7
+ data.tar.gz: fff0c846ab54f0cfccd43ba75311b74441d1b89a93e8ce88eb6726571cd22dd23d084d27ffbbeac7fa159d6df1e48d1e51b1cf8f729636a822ddbc7e56dda999
data/README.md CHANGED
@@ -22,7 +22,8 @@ gem install cardinal-ai
22
22
 
23
23
  ## Use it
24
24
 
25
- Go to any project that lives in git, and start Cardinal:
25
+ Go to any project and start Cardinal (a brand-new folder is fine — it offers to
26
+ `git init` for you):
26
27
 
27
28
  ```sh
28
29
  cd your-project
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
- die "#{TARGET} is not a git repository" unless File.directory?(File.join(TARGET, ".git"))
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"
@@ -1,3 +1,3 @@
1
1
  module Cardinal
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardinal-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Ellis