Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
717 commits
Select commit Hold shift + click to select a range
b21b9d5
Update dockerfile
Zippy-boy Jan 27, 2024
effcb7c
Path update
Zippy-boy Jan 27, 2024
14f651a
Update compose.yaml
Zippy-boy Jan 28, 2024
e60a821
Update README.md
Zippy-boy Jan 29, 2024
67db6b2
Update compose.yaml
Zippy-boy Jan 29, 2024
a1c939c
Merge pull request #278 from Zippy-boy/main
kercre123 Jan 29, 2024
8a71360
Fix web interface - sometimes the bot returns the wrong Jdoc, so it p…
kercre123 Jan 30, 2024
60acf00
Don't post mDNS on Android GOOS - cross-platform code will handle that
kercre123 Jan 30, 2024
d9377c3
Update update.sh to handle rebuilding chipper if wire-pod was setup a…
kercre123 Jan 30, 2024
b8a1214
Update update.sh
kercre123 Jan 30, 2024
69b9b3c
Run sync command - I had some issues with SBCs when this wasn't run
kercre123 Jan 30, 2024
554c9ab
Update compose.yaml
Zippy-boy Jan 30, 2024
defee50
Merge pull request #283 from Zippy-boy/patch-1
kercre123 Jan 30, 2024
cf4dbd3
Update en-US.json - imperative_dance
kercre123 Feb 3, 2024
baca830
Added Turkish language [tr-TR] for STT configuration
ozcan-durak Mar 9, 2024
fd996f8
Merge pull request #295 from ozcan-durak/main
kercre123 Mar 9, 2024
01f1005
Run robot-ip-change detector when config isn't EP, return correct int…
kercre123 Mar 13, 2024
57d8b34
Allow modification of OpenAI prompt, make OSKR/dev-unlocked robot set…
kercre123 Mar 13, 2024
c94275f
Fix session cert getting on Windows
kercre123 Mar 14, 2024
4b61b4b
Use gpt-4-turbo-preview rather than gpt-3.5-turbo-instruct. Use OpenA…
kercre123 Mar 17, 2024
6ade30b
Together AI now uses the streaming API as well. Intent graph can now …
kercre123 Mar 17, 2024
ebc3ecd
Fix intent graph options for Together, change example model as comple…
kercre123 Mar 17, 2024
2ebca5b
Add option to save chats, add button to delete saved chats
kercre123 Mar 18, 2024
b1b7089
Russian language support for voice model Vosk-model-small-ru-0.22
Qerced Mar 21, 2024
6f5a590
Merge pull request #298 from Qerced/main
kercre123 Mar 21, 2024
988788e
Update cosign in docker-publish.yml
kercre123 Mar 24, 2024
6539ae8
Revert "Russian language support for voice model Vosk-model-small-ru-…
kercre123 Mar 26, 2024
c727c9e
If packaged, use raw vic-cloud github asset rather than local file
kercre123 Mar 26, 2024
cacab6d
Little packaged-Linux fixes for OSKR/dev bot setup
kercre123 Mar 26, 2024
c1c0d80
&& not || for vic-cloud local file detection
kercre123 Mar 26, 2024
23eb59b
Added russian language [ru-RU] for STT configuration
Qerced Mar 26, 2024
b66c15b
Merge pull request #300 from Qerced/main
kercre123 Mar 26, 2024
2b549e9
Intent Adjust PT-BR and EN-US
F4310 Apr 1, 2024
86a9355
Merge pull request #301 from F4310/main
kercre123 Apr 1, 2024
df4fb7d
Change model to 1106
kercre123 Apr 5, 2024
8cd42a1
Add /api/get_debug_logs
kercre123 Apr 6, 2024
c2ac44f
Fall back to gpt-3.5 if gpt-4 isn't available
kercre123 Apr 7, 2024
3418fde
Little webroot enhancements, it now trims space around API keys
kercre123 Apr 7, 2024
f361946
Allow choice of whisper.cpp model
kercre123 Apr 9, 2024
7a2960a
Allow choice of whisper model even if dir exists
kercre123 Apr 9, 2024
c753a97
Fix whisper setup in setup.sh
kercre123 Apr 9, 2024
bdabb43
Fix whisper model export
kercre123 Apr 9, 2024
2dda825
Fix timer and weather for whisper.cpp
kercre123 Apr 9, 2024
e8ac6ba
Add LLM command code
kercre123 Apr 12, 2024
93c258d
Disable LLM commands by default, can be enabled in web interface. Cle…
kercre123 Apr 13, 2024
5d7c2bd
If empty response from whisper, send noaudio
kercre123 Apr 13, 2024
1cdbd6e
Switch model downloading URL to vosk-models GitHub repo
kercre123 Apr 14, 2024
bf10dc7
Allow insecure model download - for older versions of Android with ol…
kercre123 Apr 14, 2024
aac85c6
Query escape location to prevent bad request
bliteknight Apr 20, 2024
06bad36
Merge pull request #313 from bliteknight/patch-1
kercre123 Apr 20, 2024
068be5d
Re-add and fix inbuilt-ble code
kercre123 Apr 20, 2024
b62ae25
build tags - only use inbuilt BLE on Linux
kercre123 Apr 20, 2024
cdd34e5
Make BLE more reliable
kercre123 Apr 21, 2024
7d5fa7a
Make BLE more reliable
kercre123 Apr 21, 2024
7c12931
Clarify BLE check
kercre123 Apr 21, 2024
a78e0d8
Don't build inbuilt BLE on Android
kercre123 Apr 21, 2024
669e49d
Fix OTA updating with inbuilt BLE, prepare for merge into main
kercre123 Apr 21, 2024
d471f13
Add Version Info section to webroot, add check to make sure webroot a…
kercre123 Apr 21, 2024
5896459
Merge pull request #315 from kercre123/inbuilt-ble
kercre123 Apr 21, 2024
9efe854
Fix version info code and add extra error check to ConnectVector
kercre123 Apr 21, 2024
41798db
Fix version info code and add extra error check to ConnectVector
kercre123 Apr 21, 2024
8ad7626
Fix version on Android, extra error-handling in connectvector
kercre123 Apr 22, 2024
946dd11
Update leopard so Pi 5 works, fix command order for other STT choices…
kercre123 May 1, 2024
a37c7b2
Add animation queue so animations don't play atop each other, enhance…
kercre123 May 2, 2024
ccfd53e
If geolocation API returns an error, print the whole thing
kercre123 May 2, 2024
c35ed42
Only process the chunks that have active frames in them (vosk)
kercre123 May 8, 2024
5707eb3
Use gpt-4o model
kercre123 May 14, 2024
9836739
Add LLM command for getting an image from the bot camera, make sure a…
kercre123 May 19, 2024
e2fa6d8
Only allow get image command with supported models (gpt-4o), allow LL…
kercre123 May 21, 2024
60f7647
Begin webroot changes
kercre123 Jun 21, 2024
88a3cd4
changes are noted in webroot-overhaul-notes.md
kercre123 Jun 21, 2024
69c9667
little touchup
kercre123 Jun 21, 2024
ce1dd23
Add small HRs
kercre123 Jun 21, 2024
5173221
maybe fix macOS
kercre123 Jun 21, 2024
2321941
Use PxPlus VGA font, change size
kercre123 Jun 21, 2024
9279d56
align checkboxes correctly, add better checkbox CSS, align icons like…
kercre123 Jun 21, 2024
10db2f5
Make sure intent-graph doesn't try to work if kg-provider is set to None
kercre123 Jun 21, 2024
07309c7
(attempt) use OpenAI voice for non-English languages
kercre123 Jun 21, 2024
54fc54b
OpenAI voice now works - you need libsoxr installed
kercre123 Jun 22, 2024
d24b5c9
Make sure wire-pod can communicate with bot over SDK before trying to…
kercre123 Jun 22, 2024
aa9d2c7
Implemented downsampling in pure Go - no more need for an external li…
kercre123 Jun 22, 2024
a1cfece
Tune lowpass filter, only enable OpenAI Vector Voice for languages th…
kercre123 Jun 22, 2024
6f70ac5
use soxr by default, again. you can use go desampling with USE_GO_DES…
kercre123 Jun 22, 2024
7240799
Prepare for merge, remove experimental OpenAI voice code, make sure e…
kercre123 Jun 22, 2024
c339316
go mod tidy
kercre123 Jun 22, 2024
fc7904d
Allow custom LLM endpoint
kercre123 Jun 23, 2024
2428aba
Merge pull request #345 from kercre123/ui-api-overhaul
kercre123 Jun 23, 2024
8d9edb2
the beginnings of the refactor. does not work yet!
kercre123 Jun 23, 2024
6d8e21b
theoretical full functionality. still some erroneous errors
kercre123 Jun 24, 2024
9cab459
add style for disabled radiobuttons
Hamlet3000 Jun 24, 2024
6431ccd
Update style.css
Hamlet3000 Jun 24, 2024
3e1efc4
buttons to radiobuttons. Control depending on the functions
Hamlet3000 Jun 24, 2024
2d3c61b
buttons to radiobuttons. Control depending on the functions
Hamlet3000 Jun 24, 2024
d7dcfad
set default font back to Droid Sans, start work on customizer, make s…
kercre123 Jun 24, 2024
4600c15
Revert "set default font back to Droid Sans, start work on customizer…
kercre123 Jun 24, 2024
8cc3f1c
Reapply "set default font back to Droid Sans, start work on customize…
kercre123 Jun 24, 2024
bac33a7
remove random extra font
kercre123 Jun 24, 2024
bd5d275
functional ui customizer
kercre123 Jun 24, 2024
eaf28bc
Officially call api 'v1', put commit in version info, use commit in d…
kercre123 Jun 25, 2024
58a1156
Add installed commit hash to built binary in daemon-enable
kercre123 Jun 25, 2024
5f7f3e0
Merge pull request #349 from kercre123/actual-api-refactor
kercre123 Jun 25, 2024
f1c8044
Merge branch 'main' into main
Hamlet3000 Jun 25, 2024
64b8232
Make custom intent response messages more clear, center a button
kercre123 Jun 25, 2024
7427bf9
Merge pull request #346 from Hamlet3000/main
kercre123 Jun 25, 2024
e8328be
Disable caching for the webroot
kercre123 Jun 25, 2024
9465322
Make input focusing/hovering not change the border size
kercre123 Jun 25, 2024
2643c7e
Fix control page elements
kercre123 Jun 25, 2024
b4af1a9
Add highpass filter for mic data so VAD works in loud environments - …
kercre123 Jun 26, 2024
9f68f34
Add OpenAI voices for non-English langs again, include soxr in setup …
kercre123 Jun 26, 2024
101fb99
Little whisper fixes
kercre123 Jun 26, 2024
1d68a25
libsoxr in docker
kercre123 Jun 26, 2024
06a3306
Update go in setup.sh
kercre123 Jun 27, 2024
882e791
Merge pull request #350 from kercre123/highpass-filter
kercre123 Jun 27, 2024
3a62ae3
Remove soxr yet again and use a pure-Go desampler
kercre123 Jun 27, 2024
fd274d7
Merge pull request #351 from kercre123/highpass-filter
kercre123 Jun 27, 2024
ecf7f33
Only use filtered audio data for VAD, not STT processing
kercre123 Jun 27, 2024
64963e3
With whisper, detect if the string contains a number or not if the ti…
kercre123 Jun 27, 2024
f5d8de7
Allow download of large whisper model in setup.sh - quantized is reco…
kercre123 Jun 27, 2024
709b60d
go mod tidy
kercre123 Jun 27, 2024
cc73a03
Merge things up (#1)
bliteknight Jun 27, 2024
697f6c3
Merge branch 'kercre123:main' into main
bliteknight Jun 28, 2024
5f4ccc7
Some UI tweaks -
bliteknight Jun 28, 2024
0f7fda7
Added Dutch via Caspar Wanders
bliteknight Jun 28, 2024
bff39d6
removed trailing comma
bliteknight Jun 28, 2024
7f6bc58
the others
bliteknight Jun 28, 2024
08f762f
Merge pull request #352 from bliteknight/main
kercre123 Jun 28, 2024
110f6a0
Remove Special Characters
CrushN8r Jul 4, 2024
9c3746f
Forgot to add Dutch to drop down list
bliteknight Jul 5, 2024
ff0e365
Merge pull request #358 from bliteknight/main
kercre123 Jul 5, 2024
196490c
Fix "America/Sao_Paolo" typo
MicaelJarniac Jul 6, 2024
29f1062
Fix "America/Sao_Paolo" typo
MicaelJarniac Jul 6, 2024
90773de
Fix "America/Buenos_A>" typo
MicaelJarniac Jul 6, 2024
8a6f68f
Merge pull request #361 from MicaelJarniac/patch-1
kercre123 Jul 8, 2024
c14e165
Merge pull request #357 from CrushN8r/remSpCh
kercre123 Jul 8, 2024
eabdc29
Fix icons
kercre123 Jul 23, 2024
92ff9a1
Add lua scripting to custom intents with some robot-control commands.…
kercre123 Jul 24, 2024
f9f76ea
Allow interruption of LLM response, either with the touch sensor or w…
kercre123 Jul 27, 2024
7e0d575
Many changes which will be described in the PR
kercre123 Jul 28, 2024
57364e9
Allow conversations through knowledge graph, everything else will be …
kercre123 Jul 28, 2024
d282ebb
Allow OpenAI voice with English, add Delete Saved Chats function, fix…
kercre123 Jul 28, 2024
8866cd0
Merge pull request #368 from kercre123/lua-scripting
kercre123 Jul 28, 2024
b31c143
Fix prompt bug, tell LLM to start a conversation more often, don't lo…
kercre123 Jul 29, 2024
a3d5956
Yet another prompt enhancement
kercre123 Jul 29, 2024
7799644
KGSim Code Updates
CrushN8r Jul 31, 2024
3972237
Merge pull request #371 from CrushN8r/main
kercre123 Aug 1, 2024
6d34a38
Revert "KGSim Code Updates"
kercre123 Aug 1, 2024
07e72cd
Merge pull request #373 from kercre123/revert-371-main
kercre123 Aug 1, 2024
e2a47a8
Set default model to gpt-4o-mini
kercre123 Aug 2, 2024
0916f13
Add uk-UA.json
ard3nto Aug 4, 2024
a0e04fc
Update initial.html
ard3nto Aug 4, 2024
bd6b946
Update setup.html
ard3nto Aug 4, 2024
c948372
Update download.go
ard3nto Aug 4, 2024
eb7d4be
Update localization.go
ard3nto Aug 4, 2024
ee7b374
add uk-UA to ValidVoskModels
ard3nto Aug 4, 2024
a8d8083
Merge pull request #374 from mak7ko/mak7ko-patch
kercre123 Aug 9, 2024
93f103f
Fix OpenAI voice string detection
kercre123 Aug 24, 2024
0db299f
api-sdk get_battery proxy
AshMartian Sep 1, 2024
554b307
Handle errors fetching intents
AshMartian Sep 1, 2024
b2e6a4b
Fix styling and catch ble network errors
AshMartian Sep 1, 2024
7ef6229
more ble error handling
AshMartian Sep 1, 2024
c9bdf69
fix missing )
AshMartian Sep 1, 2024
23f5097
Prepare for bot connection display
AshMartian Sep 1, 2024
d8986aa
initial commit of battery display on homepage
AshMartian Sep 1, 2024
99dbc58
correct post
AshMartian Sep 1, 2024
e1ea903
don't clear botStats
AshMartian Sep 1, 2024
5795525
Update styling, fix bot settings page
AshMartian Sep 1, 2024
2c1f6ac
x defined
AshMartian Sep 1, 2024
2cd6032
style cleanup
AshMartian Sep 1, 2024
76ceaa5
sdkapp settings
AshMartian Sep 1, 2024
7908cf5
Make battery functions independent of homepage, calculate percentage …
AshMartian Sep 1, 2024
0af8c33
Display battery percentage in tooltip
AshMartian Sep 1, 2024
eb88614
Add battery info to settings page
AshMartian Sep 1, 2024
9596b5e
more efficient battery polling
AshMartian Sep 1, 2024
758b783
fix battery bugs, ensure retrying happens if unable to get battery st…
AshMartian Sep 1, 2024
cae430c
battery server timeout
AshMartian Sep 1, 2024
3fbe9a0
3.5v as 0%
AshMartian Sep 1, 2024
7816464
Use ~ for battery display, and use log10 to estimate battery percentage
AshMartian Sep 1, 2024
302d2b2
intent graph logging
AshMartian Sep 1, 2024
12ffc4d
Update battery colors to reflect percentage
AshMartian Sep 1, 2024
cd05a16
Correct Celsius typo, resolves #316
AshMartian Sep 1, 2024
8e68cce
Don't cap percentage if charging
AshMartian Sep 1, 2024
6de45d2
Add charge time remaining seconds
AshMartian Sep 1, 2024
424978c
Charge status style update
AshMartian Sep 1, 2024
cba05cf
Charging status visual update
AshMartian Sep 1, 2024
123865a
Ensure battery bar fits within padding
AshMartian Sep 1, 2024
9b87200
Correct battery styling
AshMartian Sep 1, 2024
d180444
More face gifs for future use
AshMartian Sep 1, 2024
ab9bcfe
round suggested charge time
AshMartian Sep 1, 2024
5b3dbdf
Add home face
AshMartian Sep 1, 2024
b0380bc
png home face
AshMartian Sep 1, 2024
b3f4bb3
Update face background size
AshMartian Sep 1, 2024
cb0e60b
Face size update
AshMartian Sep 1, 2024
99a1acb
Align battery and face better
AshMartian Sep 1, 2024
d4d3228
face refinements
AshMartian Sep 1, 2024
72cbe30
move tooltip down
AshMartian Sep 1, 2024
4d7316c
set to a regular face is fully charged
AshMartian Sep 1, 2024
c59700c
abort battery status after 15s
AshMartian Sep 1, 2024
a4c4846
4.1 max voltage
AshMartian Sep 1, 2024
90b1c9f
red battery when needing to charge
AshMartian Sep 2, 2024
3ffd9bf
hide botStats if there are no authed robots, return a formal HTTP err…
kercre123 Sep 2, 2024
e8e0919
if get_battery's response doesn't return a voltage, assume 70 percent
kercre123 Sep 2, 2024
8dab0e8
Merge pull request #382 from AshMartian/vector-battery
kercre123 Sep 2, 2024
b4cdb01
Merge pull request #383 from AshMartian/temp-spelling
kercre123 Sep 2, 2024
551b0a6
Add vietnamese language for wirepod
voduylinhnashtech Sep 9, 2024
d263574
Merge pull request #385 from voduylinhnashtech/add-vietnamese
kercre123 Sep 10, 2024
cefb6fa
update whisper module
kercre123 Sep 17, 2024
6dcd645
DisplayImage Function
F4310 Sep 21, 2024
9117866
Added Function RGB to bytes
F4310 Sep 21, 2024
67ea94d
fixing shuffled image
F4310 Sep 21, 2024
ddd609f
Fixing shuffled image (resize img)
F4310 Sep 21, 2024
86f2602
Fixing shuffled image (resize img)
F4310 Sep 21, 2024
c3202df
Fixing shuffled image (BGR)
F4310 Sep 21, 2024
ea61483
Fixing shuffled image (rgb)
F4310 Sep 21, 2024
ac86536
Fixing shuffled image (rgb)
F4310 Sep 22, 2024
8a742cc
Fixing shuffled image (without resize)
F4310 Sep 22, 2024
6cf8f53
Fixing shuffled image (without resize)
F4310 Sep 22, 2024
ed77a8d
Fixing shuffled image (solid color)
F4310 Sep 22, 2024
9b74646
Fixing shuffled image (solid color)
F4310 Sep 22, 2024
dba0828
Fixing shuffled image (solid color)
F4310 Sep 22, 2024
19b1ec2
Fixing shuffled image (solid color)
F4310 Sep 22, 2024
5c5378b
Fixing shuffled image (solid color)
F4310 Sep 22, 2024
117c4aa
Fixing shuffled image
F4310 Sep 22, 2024
48e81f3
Fixing shuffled image
F4310 Sep 22, 2024
a13680d
Fixing shuffled image
F4310 Sep 22, 2024
029f4e5
Fixing shuffled image
F4310 Sep 22, 2024
49f6c10
Play_sound
F4310 Sep 23, 2024
c564fbd
Play Audio Wav FrameRate 8000Hz
F4310 Sep 24, 2024
83a6ad1
Added FrameRate convert (play_audio.js) and html upload audio (contro…
F4310 Sep 24, 2024
3b65756
Added FrameRate convert (play_audio.js) and html upload audio (contro…
F4310 Sep 24, 2024
c2a146b
Align Adjustment
F4310 Sep 25, 2024
15b84e6
ESN detect Adjustment
F4310 Sep 25, 2024
c55c971
Merge pull request #390 from F4310/play_sound
kercre123 Sep 25, 2024
d19730f
Problem: accelerated audio
F4310 Sep 25, 2024
314f5fd
Merge branch 'play_sound' of https://github.com/F4310/wire-pod into p…
F4310 Sep 25, 2024
8c65572
Merge pull request #391 from F4310/play_sound
kercre123 Sep 25, 2024
15e76a5
If the robot is on my CFW, don't remount / as rw. It already has a co…
kercre123 Oct 1, 2024
a2832c4
Update kgsim.go
voduylinhnashtech Oct 3, 2024
3f4e2b6
Merge pull request #396 from voduylinhnashtech/main
kercre123 Oct 10, 2024
f7814a5
style: revamp navigation with modern interactions and glow effects
Nov 5, 2024
f4b4e82
Improve mobile navigation experience an desktop scaling specifications
Nov 6, 2024
93c988c
add ios meta tags to all html files
Nov 7, 2024
d4863cc
Merge pull request #401 from PeskyVector/main
kercre123 Nov 7, 2024
2023298
If battery reports full, assume 100%. If the bot was charging and is …
kercre123 Nov 7, 2024
05e0da6
Add image building and publishing support for linux/arm64 platform
Nov 10, 2024
fd179cd
Supporting opensource multimodal LLMs such as Llama3.1 11B or Llama3.…
hiamitabha Nov 13, 2024
7827c9b
Fixing code review on adding condition to check for custom provider
hiamitabha Nov 16, 2024
375d3fd
Alligning braces
hiamitabha Nov 16, 2024
73d7305
Merge pull request #406 from hiamitabha/multimodal-ready
kercre123 Nov 19, 2024
fa71b50
Merge pull request #404 from pimushkin/add-arm64-support
kercre123 Nov 19, 2024
d2c7f4a
Expose cliff sensor data via /api-sdk/{begin,get,stop}_cliff_stream
May 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Report a bug with the software (this is NOT for cases of "it's not working
for me")
title: "[BUG] "
labels: bug, help wanted
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Device you are running wire-pod on (please complete the following information):**
- OS: [e.g. Debian, Windows]
- Hardware: [e.g. Raspberry Pi]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/problem-with-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Problem with setup
about: Please follow this template if you are having issues setting wire-pod up. I
(kercre123) will not be providing support for these.
title: "[HELP] <describe issue here>"
labels: ''
assignees: ''

---

**Describe the issue:**

**What are you running wire-pod on?**
- [OS]: (ex. Windows, Debian)
- [Hardware]: (ex. Raspberry Pi)

**Are you setting up a prod (regular) bot or a dev/OSKR (unlocked) bot?**

**What steps have you tried?**
99 changes: 99 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '25 22 * * *'
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.3.0
with:
cosign-release: 'v2.2.2' # optional

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,34 @@
/chipper/armarch
/chipper/processOnce
/ssh_root_key
/.vscode
/chipper/botConfig.json
/chipper/.vscode
/chipper/useepod
/chipper/pico.key
/chipper/libvosk.so
/vosk
/chipper/customIntents.json
/chipper/botConfig.json
/chipper/jdocs/*.json
/chipper/nvm
/chipper/apiConfig.json
/chipper/session-certs/0*
/chipper/vbuild/vic-toolchain
/chipper/vbuild/chipper
/chipper/vbuild/botpack.tar.gz
/chipper/windows/tmp
/chipper/windows/chipper.exe
/chipper/windows/*.zip
/chipper/windows/*.exe
/chipper/vbuild/built-libs
/chipper/windows/libs
/chipper/windows/opus
/chipper/windows/ogg
/chipper/windows/.aptDone
/chipper/macos/libs
/chipper/macos/target
/chipper/plugins/*.so
/whisper.cpp
.DS_Store
/chipper/openaiChats.json
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Kerigan Creighton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading