Skip to content

Commit 517f4d7

Browse files
committed
Enhance authentication and deep link handling with improved logging
- Updated paths.ts comments for clarity on resource directories and agent file creation. - Added comprehensive logging for authentication processes in App.tsx, including token persistence, deep link handling, and user fetching. - Implemented error handling and logging for deep link initialization and loading in App.tsx. - Enhanced Windows deep-link registration with logging in app.ts. - Introduced auth-debug.ts for centralized error handling, token masking, deep link sanitization, and structured logging. - Created a new .env.1 file for environment configuration, including server, data, agent, logging, and Telegram bot settings.
1 parent e8497be commit 517f4d7

6 files changed

Lines changed: 233 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
1818

1919
# dotenv environment variable files
2020
.env
21+
.env.*
2122
.env.development.local
2223
.env.test.local
2324
.env.production.local

bun.lock

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config/paths.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ export function getPaths() {
8080
// DATA_DIR: writable data directory (database, logs, browser profiles, etc.)
8181
const dataDir = resolveDataDir(env.DATA_DIR)
8282

83-
// RESOURCES_DIR: read-only resource directory from Tauri bundle (agents/skills/prompts templates)
83+
// RESOURCES_DIR: read-only resource directory from Tauri bundle (skills/prompts and bundled tooling)
8484
// In dev mode, falls back to project root
8585
const resourcesDir = process.env.RESOURCES_DIR
8686
? resolve(process.env.RESOURCES_DIR)
8787
: ROOT_DIR
8888

8989
// agents directory must be writable (creating agents, writing memory, etc.), stored under DATA_DIR
90-
// On first launch, AgentManager copies default templates from resourcesDir
90+
// Default agent files are created from built-in templates on first launch
9191
const agentsDir = isBunCompiled
9292
? resolve(dataDir, 'agents')
9393
: resolve(ROOT_DIR, 'agents')

0 commit comments

Comments
 (0)