Repository navigation
Expand file tree
/
Copy pathrepomix-output.xml
More file actions
11371 lines (9045 loc) · 296 KB
/
Copy pathrepomix-output.xml
File metadata and controls
11371 lines (9045 loc) · 296 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
This file is a merged representation of the entire codebase, combined into a single document by Repomix.
The content has been processed where content has been compressed (code blocks are separated by ⋮---- delimiter).
<file_summary>
This section contains a summary of this file.
<purpose>
This file contains a packed representation of the entire repository's contents.
It is designed to be easily consumable by AI systems for analysis, code review,
or other automated processes.
</purpose>
<file_format>
The content is organized as follows:
1. This summary section
2. Repository information
3. Directory structure
4. Repository files (if enabled)
5. Multiple file entries, each consisting of:
- File path as an attribute
- Full contents of the file
</file_format>
<usage_guidelines>
- This file should be treated as read-only. Any changes should be made to the
original repository files, not this packed version.
- When processing this file, use the file path to distinguish
between different files in the repository.
- Be aware that this file may contain sensitive information. Handle it with
the same level of security as you would the original repository.
</usage_guidelines>
<notes>
- Some files may have been excluded based on .gitignore rules and Repomix's configuration
- Binary files are not included in this packed representation. Please refer to the Repository Structure section for a complete list of file paths, including binary files
- Files matching patterns in .gitignore are excluded
- Files matching default ignore patterns are excluded
- Content has been compressed - code blocks are separated by ⋮---- delimiter
- Files are sorted by Git change count (files with more changes are at the bottom)
</notes>
</file_summary>
<directory_structure>
.aider.tags.cache.v4/
cache.db
.claude/
settings.local.json
.githooks/
post-checkout/
use-master-branch
bin/
s
z
completion/
_s
modules/
s-scripts.nix
scripts/
archivebox/
list-archived
list-unarchived
store-missing
aws/
gen-json-auth
retrieve-credentials
retrieve-creds-in-skate
store-credentials
store-creds-in-bw
store-creds-in-skate
bitwarden/
create-attachment
create-item
create-item.help
create-note
edit-item
edit-item.help
ensure-note-exists
get-field
list-all
list-all.help
remote-auth
remote-auth-skate
select-one
select-one.help
update-note
upsert-field
browser/
youtube-dl-all-tabs
youtube-dl-all-tabs.help
calendar/
helper
helper.help
ongoing-events
parse-as-json
parse-as-json.help
todays-agenda
todays-agenda.help
tomorrows-agenda
tomorrows-agenda.help
deno/
mkfullstackapp
run
version-next
version-reflect-current
dtach/
run
emacs/
profile/
use-linked-doom-dir
use-worktree-doomdir
test/
all-the-things
goss
integration
integration-new
unit
check-if-config-loads
doom-list-installed-packages
doom-list-used-packages
executable_cleanup-build-artifacts
reload-emacs
reload-emacs.help
select-active-server
tangle-file
email/
mark-old-messages-unread
fzf/
dmenu
dmenu.help
select-by-json-key
select-by-json-key.help
git/
add-local-hook
add-local-hook.help
autosync
browse-pipelines
browse-pipelines.help
browse-repo
browse-repo.help
clean
clean.help
clone-repo
clone-repo.help
clone-repo.inproc
clone-unless-exists
commit-at-date
commit-at-date.help
commit-for-date
convert-http-remote-to-clone-path
convert-ssh-url-to-http
convert-ssh-url-to-http.help
diff-dangling-commit
find-branches-containing-filename
find-lost-commits
find-lost-commits.help
funny-commit-msg
grab-repo
grab-repo.help
grab-repos
hook-types
hook-types.help
hooks-installed-p
is-merge-commit-p
is-pristine
is-pristine.help
list-lost-commit-shas
mirrorfleet
mirrorfleet.help
num-commits
num-commits.help
process-lost-commits
quick-force-push-to-master
quick-force-push-to-master.help
register-repo
register-repo.inproc
remote-to-http-url
remote-to-http-url.help
remote-to-local-path
show-dirt
with-commit-if-changed
zoxide-add-below-repos
github/
list-public-projects
gitlab/
artifacts/
download-artifacts-from-last-job
download-artifacts-from-last-job.help
get-for-this-repo
get-for-this-repo.help
hacky-danger-download
jobs-with-artifacts-for-this-repo
dwim/
last-pipeline-where-job-passed
envrc/
get-gitlab-project-vars
get-gitlab-project-vars.help
set-gitlab-project-vars
set-gitlab-project-vars.help
use-gitlab-project-vars-dwim
lookup/
mr-for-branch
mr-last-pipeline-id
mr-pipelines
project-url-from-id
project-url-from-id.help
pipelines/
status/
goss.d/
cli.yml
by-id
by-id.help
by-project-and-id
by-project-and-id.help
by-repo
dwim-sqlite
dwim-sqlite-for-commit
for-branch
for-branch.help
for-commit
for-commit.help
from-last-commit
from-last-commit.help
is-failing
job-details-dwim
last-pipeline-job-statuses
lookup-sqlite
pre-push-track-ci
track/
by-id
by-id.help
by-project-and-id
by-project-and-id.help
by-remote-and-commit
by-remote-and-commit.help
from-last-commit
from-last-commit.help
fetch-and-save-pipeline
fetch-new-for-target-project
get-gitlab-pipeline_dwim
get-gitlab-pipeline_dwim.help
get-gitlab-pipeline-by-id
get-gitlab-pipeline-by-id.help
get-id-for-commit
get-id-from-head-commit
get-id-from-head-commit.help
get-latest-for-branch
get-latest-for-project
get-running-and-queued
get-running-and-queued.help
list-all-for-current-project
list-new-for-current-project
save-all-for-current-project
save-new-for-current-project
save-new-for-target-project
runners/
add-to-project-dwim
cleanup
cleanup.help
create-docker-runner
create-shell-runner
list-mine
archive-repo-by-id
archive-this-project
archive-this-project.help
autodelete-abandoned-renovate-configure-mrs
automerge-renovate-configure-mrs
ci-expand
fetch-all-projects-sqlite
get-api-token-for-url
get-gitlab-project-name-from-remote
get-gitlab-project-name-from-remote.help
get-last-commit-pipeline
get-last-commit-pipeline.help
get-url-encoded-project-name-from-remote
get-url-encoded-project-name-from-remote-of-directory
get-url-encoded-project-name-from-remote-of-directory.help
get-url-encoded-project-name-from-remote.help
gitlabform-by-template
gitlabform-this-repo
gitlabform-this-repo.help
host-Url
host-Url.help
list-abandoned-renovate-mrs
list-access-token-perms
list-all-personal-projects
list-all-private-projects
list-all-private-projects.help
list-all-projects
list-all-projects-sqlite
list-all-projects.help
list-failed-pipelines
list-failed-pipelines.help
list-project-ci-variables
list-project-ci-variables.help
list-projects-without-recent-activity
list-recently-active-gitlab-projects
list-recently-active-gitlab-projects.help
list-renovate-mrs
litecli-db
lookup-project-id-integer
make-public
make-public.help
mirror-on-github
mirror-on-github.help
named-project-request
named-project-request.help
project-request
project-request.help
protect-master-branch
protect-master-branch.help
protect-tags
protect-tags.help
recently-active-projects
recently-active-projects.help
reclone-project-local-repos
refetch-all-projects-sqlite
render-ci-includes
render-includes.py
request
request-stdin
request-Url
request-Url.help
request-zx
request.help
reset-repos-in-db
setup-pages-Dns
setup-pages-Dns.help
ssh-key-add
ssh-key-add.help
template-init
template-init.help
this-project-request
this-project-request.help
unprotect-master-branch
unprotect-master-branch.help
upsert-file
upsert-file.help
goss/
autofix
autofix-input
autofix.help
command-to-test
fix-all-in-order
fixr.mjs
merge-tests
mktest
mktest.help
run-all
run-all.help
run-in-order
run-in-order-for-debug
run-in-order-vanilla
run-verbose
validate
goss.d/
common-extra-binaries.yml
hackydanger/
run
jira/
change-active-ticket
clear-active-ticket
clear-active-ticket.help
finish-current-ticket
finish-current-ticket.help
force-update-current-ticket
get-active-ticket
get-active-ticket.help
mk-tables
mk-ticket-branchnames-table
mk-ticket-repos-table
mk-tickets-table
pick-new-ticket.help
select-active-ticket-dwim
select-ticket
select-ticket.help
set-current-ticket
ticket-is-incomplete
ticket-is-incomplete.help
update-current-ticket-state
view-active-ticket-on-web
keybinds/
start-work
makvm/
list-ios-capture-folder
list-ios-capture-folder.help
push-ios-capture-files-to-s3
push-ios-capture-files-to-s3.help
media/
list-downloaded-tv-show-episodes
list-downloaded-tv-shows
play-tv-episode
select-downloaded-tv-show
select-downloaded-tv-show-episodes
meta/
cd
cd-to-main-scripts-path
cd-to-main-scripts-path.help
cd.help
cd.inproc
dangling-docs
dangling-docs.help
has-never-run
has-never-run.help
last-executed
last-invoked
last-invoked.help
list-all
list-all-full-paths
list-all-full-paths.help
list-all.help
needs-docs
needs-docs.help
reflect
reflect.help
script-path-to-name
script-path-to-name.help
search-all
search-all.help
select-script
select-script.help
source-s-scripts-envd
verify
misc/
renovate/
run-for-repo
archivebox-stop
archivebox-stop.help
autofix-video-downloads
boot-time-as-epoch
capture-idea-workaround
capture-idea-workaround-helper
ciao-backup
ciao-backup.help
ciao-check-errs
ciao-check-errs.help
darwin-nix-link-bins
devilspie-get-selected-window-info
devilspie-get-selected-window-info.help
git-hooks-bulk-install
imdb-search-movies
js-catindex-file
kindle-lib-copy-from-mac-mini
link-home-local-usr-bin
makvm-shutdown
mkdroplet
msfconsole-fix
msfconsole-fix.help
parse-ebooks-zip-to-filename
pgcli-droploop
pgcli-droploop.help
pgcli-droploop.inproc
pgcli-emqx-add-user
pgcli-emqx-add-user.help
pgcli-mkwormhole
radarr-add-from-query
radarr-add-trailer
read-ebooks-zip-list
record-zoom-meeting
remkdroplet
remkdroplet.help
rpi-set-hostname
rpi-setup-new
rpi-setup-new-sd
rpi-setup-new-sd.help
rpi-setup-room-assistant
speedtest-store-results
spotdl-all
spotdl-discover
terminal-init-maybe-tmux
terminal-init-maybe-tmux.help
tinypilot-access-setup
tinypilot-access-setup.help
tinypilot-access-teardown
tinypilot-xrandr-disable
tinypilot-xrandr-disable-extra-displays
tinypilot-xrandr-disable-extra-displays.help
traefik-list-failed-healthcheck
traefik-list-failed-healthcheck.help
translate-russian-files
tweet-retrieve
videogrep-list-videos-without-transcription
videogrep-maybe-transcribe-one
videogrep-search-show
videogrep-transcribe-all-media
videogrep-transcribe-dwim
videogrep-transcribe-my-library
videogrep-via-youtube
wal-to-slack
wallpaper-update
wallpaper-update.help
xdotype-clipboard
xdotype-clipboard.help
xrandr-disable-middle-display
xrandr-disable-middle-display.help
npm/
commitizen-setup
commitizen-setup.help
install-dwim
links-list-active
links-list-active.help
upgrade-all-deps
upgrade-all-deps.help
osx-shortcuts/
run-dwim
pg-backup/
cleanup-perm-issue
popos/
set-term-theme-from-bg
pushcut-ios/
automation-server-req
helper
helper.help
mknotif
notiListNotifTypes
notiListNotifTypes.help
notiPhone
notiPhone.help
open
payload-helper
send-gotty-link
python/
mk-pypi-nix-shell
reqstxt-to-pyproj-deps
racket/
appexe-to-dist
install-deps-here
install-my-project
install-my-script
list-deps
mk-local-bin-exe
shell/
tty/
get-active-pid
add-zsh-completions
add-zsh-completions.help
delete-one-line-by-lineno
is-num
is-num.help
strip_all
strip_all.help
strip-blank-lines
strip-blank-lines.help
strip-trailing-whitespace
strip-trailing-whitespace.help
tail-n-lines
slack/
get-my-top-reactions.py
ssh/
generate-keypair
syncthing/
check-status
devices-missing-bytes
test/
zx-script
tmux/
list/
process-by-pane
sibling/
procs
get-tty-of-sibling
this-window-id
tui/
postgres
unix/
journal-for-last-systemctl
util/
analyaze-speedtest-results
auto-restore-video-extension
calibre-update
camelCase2dash-case
camelCase2dash-case.help
chronic-preview
chronic-preview-bash-command
clean-empty-dirs
clone-all-personal-packages
convert-csv-to-json
convert-csv-to-json.help
convert-ini-to-json
convert-json-to-ini
convert-json-to-toml
convert-json-to-toml.help
convert-to-pdf-dwim
convert-toml-to-json
convert-tsv-to-json
convert-tsv-to-json.help
count-path-segments
count-path-segments.help
create-postgres-conn-string
create-postgres-test-db
date-is-n-years-ago
decapitext
decapitext.help
deno-lsp-setup
deno-lsp-setup.help
deno-pup-html-to-pdf.ts
dir-ancestors
dir-ancestors.help
dir-is-child-of
dir-is-child-of.help
docker-stack-components-merge
download-and-extract
download-and-extract.help
dunst-with-cb
dwim-input
dwim-input.help
edit-file
edit-file.help
envrc-list-exports
envrc-list-exports.help
erase-matching-lines
extract-base-domain
extract-base-domain.help
fd-list-all-git-repos-and-branchname
fd-list-git-dirs
filename-is-alphnum-gibberish
filterApplicableReleaseAssets
filterApplicableReleaseAssets.help
find-open-port
fzf-select-multi-hist
gen-basic-auth
gen-basic-auth.help
gen-sha256-auth
genrandstr
genrandstr.help
get-common-prefix
get-common-prefix.help
get-file-extension
get-wifi-card-details
get-wifi-card-details.help
glob-scripts-by-name
gotemplate-find-dead-blocks
gotty-start-return-url
html-to-pdf
html-to-png
http-follow-redirects
hydrate-yaml-to-json
jquery-Sl
jquery-Sl.help
json-sort-keys-by-type
json-sort-keys-by-type.help
json-transplant
json-transplant.help
keyring-unlock-dwim
kill-process-by-port
kill-process-by-port.help
lines-missing-in-file-b
lines-missing-in-file-b.help
lines-only-in-file-b
lines-only-in-file-b.help
linux-copy-png
linux-copy-png.help
list-all-git-with-local-changes
list-files-with-no-extension
list-lan-ips
lista-minus-listb
lista-minus-listb.help
litestream-localdev
litestream-localdev.help
lookupLanIps
lookupLanIps.help
losslesscut-edit
mk-appimage-desktop.help
mk-local-bin-passthru
motrix-add-via-aria2
motrix-download
mv-and-commit-if-appropriate
my-wan-ip
niv-try-upgrade.help
niv-try-upgrade.inproc
normalize-json-to-env-vars
open-this-term-on-iphone
optimize-video
optimize-video.help
org-agenda-monitor
org-agenda-monitor.help
param-or-stdin
param-or-stdin.help
path-quikchange
path-quikchange.help
post-rename-rewrite-scripts
print_null
print_null.help
prompt-and-confirm
prompt-and-confirm.help
py3-link-as-py
quoted-file-lines
rclone-add-folder-of-txt-files-to-gdrive
remaining-disk-pct
remaining-disk-pct.help
remkdroplet-swarm
renice-chrome
renice-chrome.help
renice-emacs
renice-emacs.help
repo-install-pip-reqs
resolve-first-ip
restart-svc
resumable-xargs-pipeline
select-dir
semver-bump
semver-bump.help
setup-remote-ssh-private-key
sh-run-by-line
sh-run-by-line.help
shoebox-space-used-pct
spotlightish
spotlightish.help
strip_all
strip_all.help
strip-protocol
strip-protocol.help
time-input
time-input.help
trufhog-autoclean-dwim
trufhog-clean-known-secrets
trufhog-find-secrets-to-clean
trufhog-scan-dotfiles-remotely
truncate-lines
truncate-lines.help
trust-certificate-by-domain-port
twitter-classify-tweets
unicode-char-to-hex
until-cmd-passes
urldecode
urlencode
urlencode.help
video-convert-all-mkv-to-mp4
video-convert-all-mkv-to-mp4.help
video-convert-all-ts-to-mp4
video-strip-audio
video-strip-audio.help
video-unplayable-p
xlsx-to-csv
xlsx-to-csv.help
yq-merge-all
yq-merge-all-arrays
yq-merge-all-arrays.help
yq-merge-all.help
yubitouch
zsh-merge-history
web-ext/
chrome-crxify-unpacked
generate-local-preinstall-json
generate-preinstall-json
get-ext-id-from-pem
get-ext-manifest-key-from-pem
get-latest-release-asset-url
install-gitlab-release-first-setup
install-local-unpacked
install-my-ext-dwim
install-unpacked-from-release
xdotool/
send-key-to-app
zfs/
convert-dir-to-zfs
delete-all-old-checkpoints
list-checkpoints
list-volumes-over-capacity
list-volumes-over-capacity.help
mkcheckpoint
mksibling-clone
rollback-checkpoint
select
bulk-refile
bulk-rename
cat
cat.help
cookies-from-chrome-profile
cookies-from-chrome-profile.help
debug
delete
duplicate
edit
edit.help
help
help.help
init
link
mkhelp
mkhelp.help
mksh
mksh.help
new
new.help
news
news.help
rename
rename.help
test_s_completion.zsh
util.help
which
which.help
whicha
whicha.help
Yn
Yn.help
.aider.chat.history.md
.aider.input.history
.gitignore
.gitlab-ci.yml
.truffleignore
CLAUDE.md
README.org
renovate.json
</directory_structure>
<files>
This section contains the contents of the repository's files.
<file path=".claude/settings.local.json">
{
"permissions": {
"allow": [
"Bash(s which:*)",
"Bash(git add:*)",
"Bash(git commit:*)"
]
}
}
</file>
<file path=".githooks/post-checkout/use-master-branch">
#!/usr/bin/env bash
PREV_COMMIT=$1
POST_COMMIT=$2
IS_BRANCH_CHANGE=$3
if [ -n "$DOOM_ALLOW_BRANCH_CHANGE" ]; then
exit 0
fi
git switch master
</file>
<file path="bin/z">
#!/usr/bin/env zx
orig_args=("$@")
export S_INNER_CALL=1
function checkScriptDir(inputDir, ...commands) {
let dir=inputDir
commands.forEach((el => {
const maybenewdir= path.join(dir, el)
const lstatInfo =fs.lstatSync(maybenewdir)
if (lstatInfo.isDirectory()) {
dir=maybenewdir
} else if (lstatInfo.isFile()) {
if (lstatInfo.isExecutable()) {
if [[ -f "$dir/$command.inproc" ]]; then
source "$dir/$command" "$@"
elif [[ -f "$dir/$command.direnv" ]]; then
direnv exec $dir "$dir/$command" "$@"
elif [ -n "$use_debug_mode" ]; then
bash -x "$dir/$command" "$@"
else
"$dir/$command" "$@"
fi
exit 0
}
}
}))
}
process.env.SCRIPTS_PATH.split(':').forEach(p => { checkScriptDir(p) })
echo "(no subcommands found)"
exit 1
</file>
<file path="scripts/archivebox/list-archived">
#!/usr/bin/env bash
set -euo pipefail
archivebox list --status valid
</file>
<file path="scripts/archivebox/list-unarchived">
#!/usr/bin/env bash
set -euo pipefail
archivebox list --status unarchived
</file>
<file path="scripts/archivebox/store-missing">
#!/usr/bin/env bash
set -euo pipefail
cd /usr/backups/archivebox; archivebox update --status unarchived
</file>
<file path="scripts/aws/gen-json-auth">
#!/usr/bin/env bash
set -euo pipefail
aws sts get-session-token | jq '{
Version: 1,
AccessKeyId: .Credentials.AccessKeyId,
SecretAccessKey: .Credentials.SecretAccessKey,
SessionToken: .Credentials.SessionToken,
Expiration: .Credentials.Expiration
}'
</file>
<file path="scripts/aws/retrieve-credentials">
#!/usr/bin/env bash
set -euo pipefail
s aws retrieve-creds-in-skate | jq -c
</file>
<file path="scripts/aws/retrieve-creds-in-skate">
#!/usr/bin/env bash
set -euo pipefail
skate get aws-creds
</file>
<file path="scripts/aws/store-credentials">
#!/usr/bin/env bash
set -euo pipefail
s aws gen-json-auth | s aws store-creds-in-skate
</file>
<file path="scripts/aws/store-creds-in-bw">
#!/usr/bin/env bash
set -euo pipefail
echo "not implemented"
exit 1
s aws gen-json-auth |
</file>
<file path="scripts/aws/store-creds-in-skate">
#!/usr/bin/env bash
set -euo pipefail
skate set aws-creds
</file>
<file path="scripts/bitwarden/create-attachment">
#!/usr/bin/env bash
set -euo pipefail
bw create attachment --file="$1" --itemid="${2:-$(s bitwarden select-one | jq -r .id)}"
</file>
<file path="scripts/bitwarden/create-item">
#!/usr/bin/env bash
set -euo pipefail
bw get template item |
jq --arg itemname "$1" --arg pass "${2:-"$(bw generate)"}" '. + {name: $itemname, login: { password: $pass }}' |
bw encode |
bw create item
</file>
<file path="scripts/bitwarden/create-item.help">
create a bitwarden item
</file>
<file path="scripts/bitwarden/create-note">
#!/usr/bin/env bash
set -euo pipefail
bw get template item |
jq --arg itemname "$1" --arg noteval "$2" '. + {type: 2, name: $itemname, secureNote: { type: 0 }, notes: $noteval}' |
bw encode |
bw create item
</file>
<file path="scripts/bitwarden/edit-item">
#!/usr/bin/env bash
set -uo pipefail
tgt_item=$(s bitwarden select-one $1)
tgt_item_id=$(jq '.id' -r <<<"$tgt_item")
bw get item "$tgt_item_id" | vipe --suffix json | bw encode | bw edit item "$tgt_item_id"
bw sync
</file>
<file path="scripts/bitwarden/edit-item.help">
edit existing bw item
</file>
<file path="scripts/bitwarden/ensure-note-exists">
#!/usr/bin/env bash
set -uo pipefail
tgt_item=$(s bitwarden select-one "$1")
tgt_item_id=$(jq '.id' -r <<<"$tgt_item")
if [[ -n "$tgt_item_id" ]]; then
exit 0
fi