cc-sessions 1.0.0 → 1.0.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE +20 -17
  4. data/bin/cc +27 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52db66e364f567c81a0b225a661aef39244f8a05d2af99eb8984306c29496861
4
- data.tar.gz: 582efdbb8033444176c073b79a3b79e2804ee126aabf263d2f00643419102d14
3
+ metadata.gz: acd63dc92da6821889b1e5c397a8ebe74aba5d571f36d859425bda641b5666e2
4
+ data.tar.gz: ee05bf07a43c3bda1b42caf7a3787833a8ed28d69d182f211fdc7542e0f6fbfa
5
5
  SHA512:
6
- metadata.gz: a883b1f7f0322e78d21d9bf7990697086a5f19d0822436470b4f905b483bc8c345ded04060c6d6c352c7af724326f3e445ce1e670e99b2006a859c14c947e595
7
- data.tar.gz: ee039f8506c02760a62c9bbd423fccc6f44a2be6420e6b80f269a0ef534b84dad6f9562b2561365a1a64295906683726cb6aa26d73c0b5ba0aef9e7d8788bd95
6
+ metadata.gz: 89789ae0e1d1933496a153df188e6df4b30220fcb3ba9ae9d202949b1eacd681b562238c3fa009b0bf52fdeca723b2738dd56af2a6ec1fc2a75ce17ed7e851cf
7
+ data.tar.gz: cf407c8d028ac237dcb2fea7bbd2889e94ee174ab07125de718af8bddf62a382a2d9ac7542696fec7dadb5b051f945d9906ff33ebb20594aba256f30e2d0ac10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.1] - 2025-01-23
4
+
5
+ ### Added
6
+ - Auto-add permission for `/bm` command on first run (no confirmation prompt)
7
+
3
8
  ## [1.0.0] - 2025-01-23
4
9
 
5
10
  ### Added
data/LICENSE CHANGED
@@ -1,21 +1,24 @@
1
- MIT License
1
+ This is free and unencumbered software released into the public domain.
2
2
 
3
- Copyright (c) 2026 Geir Isene
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
4
7
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
11
15
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
14
23
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
24
+ For more information, please refer to <https://unlicense.org>
data/bin/cc CHANGED
@@ -20,6 +20,8 @@ CONFIG_DIR = File.expand_path('~/.cc-sessions')
20
20
  BOOKMARKS_FILE = File.join(CONFIG_DIR, 'bookmarks.json')
21
21
  COMMAND_SOURCE = File.expand_path('../commands/bm.md', __dir__)
22
22
  COMMAND_DEST = File.expand_path('~/.claude/commands/bm.md')
23
+ SETTINGS_FILE = File.expand_path('~/.claude/settings.json')
24
+ BM_PERMISSION = 'Bash(mkdir -p ~/.cc-sessions && ruby -rjson:*)'
23
25
 
24
26
  def ensure_setup
25
27
  # Create config directory
@@ -35,6 +37,31 @@ def ensure_setup
35
37
  puts
36
38
  end
37
39
  end
40
+
41
+ # Add auto-accept permission for /bm command
42
+ ensure_permission
43
+ end
44
+
45
+ def ensure_permission
46
+ settings = if File.exist?(SETTINGS_FILE)
47
+ JSON.parse(File.read(SETTINGS_FILE))
48
+ else
49
+ {}
50
+ end
51
+
52
+ settings['permissions'] ||= {}
53
+ settings['permissions']['allow'] ||= []
54
+
55
+ unless settings['permissions']['allow'].include?(BM_PERMISSION)
56
+ settings['permissions']['allow'] << BM_PERMISSION
57
+ FileUtils.mkdir_p(File.dirname(SETTINGS_FILE))
58
+ File.write(SETTINGS_FILE, JSON.pretty_generate(settings))
59
+ puts "Added auto-accept permission for /bm command"
60
+ puts
61
+ end
62
+ rescue JSON::ParserError
63
+ # If settings.json is malformed, skip permission setup
64
+ warn "Warning: Could not parse ~/.claude/settings.json - skipping permission setup"
38
65
  end
39
66
 
40
67
  def load_bookmarks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cc-sessions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -27,7 +27,7 @@ files:
27
27
  - commands/bm.md
28
28
  homepage: https://github.com/isene/CC-sessions
29
29
  licenses:
30
- - MIT
30
+ - Unlicense
31
31
  metadata:
32
32
  homepage_uri: https://github.com/isene/CC-sessions
33
33
  source_code_uri: https://github.com/isene/CC-sessions