Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
```
# Backup files
*.backup.*

# Environment files
.env.local

# Logs
*.log
```
Nothing should be ignored since the changes only include shell script source files (.sh) and no build artifacts, dependencies, or temporary files.
6 changes: 2 additions & 4 deletions src/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/env bash
# ORCHAT Bootstrap - Phase 8 Security Hardened
set -euo pipefail

# Security: Enable strict mode
set -o nounset
set -o pipefail
# Security: Enable strict mode but handle errors gracefully
set -eo pipefail

# Determine root directory
ORCHAT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion src/core.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

CURL_OPTS=(-sS --fail --show-error --max-time 30)

Expand Down
2 changes: 1 addition & 1 deletion src/encoding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# UTF-8 BOM Detection and CRLF Normalization
# Handles encoding issues in input files and user input

set -euo pipefail
set -eo pipefail

# UTF-8 BOM bytes (EF BB BF)
UTF8_BOM=$'\xef\xbb\xbf'
Expand Down
2 changes: 1 addition & 1 deletion src/env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

validate_api_key() {
# Check if API key is set
Expand Down
2 changes: 1 addition & 1 deletion src/interactive.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

start_interactive() {
local hist_file="${1:-${RESOLVED_HISTORY_FILE:-$HOME/.orchat_history}}"
Expand Down
2 changes: 1 addition & 1 deletion src/io.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

validate_input() {
local input="$1"
Expand Down
2 changes: 1 addition & 1 deletion src/model_browser.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

# Main model_browser function for bootstrap dispatch
model_browser() {
Expand Down
2 changes: 1 addition & 1 deletion src/session.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

# Session management for Phase 3

Expand Down
2 changes: 1 addition & 1 deletion src/streaming.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

# Robust SSE/chunk handler with Python validation
handle_stream_chunks() {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
set -eo pipefail

log_debug() { [[ "${ORCHAT_DEBUG:-}" == "1" ]] && echo "[DEBUG] $*" >&2; }
log_error() { echo "[ERROR] $*" >&2; }
Expand Down
Loading