Skip to content

Commit 10bea30

Browse files
committed
fix: test and doc bugs
1 parent 21ca124 commit 10bea30

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are several places that need reviewing and updating with any new feature o
1414
- README.md - documentation, also displayed with `ost-tools readme` command
1515
- AGENTS.md - this file
1616
- docs/* - includes architecture, concepts etc
17-
- skills/ost-skills/* - skills information for AI agents
17+
- skills/ost-tools/* - skills information for AI agents
1818

1919
## Project Context
2020

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

src/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ function resolveRelativePaths(config: Config, configDir: string): Config {
103103

104104
function _loadConfig(path: string): Config {
105105
if (!existsSync(path)) {
106-
console.error(`Config file not found: ${path}`);
107-
process.exit(1);
106+
throw new Error(`Config file not found: ${path}`);
108107
}
109108

110109
const config = JSON5.parse(readFileSync(path, 'utf-8'));
@@ -120,6 +119,10 @@ function _loadConfig(path: string): Config {
120119

121120
export function loadConfig(): Config {
122121
const path = configPath();
122+
if (!existsSync(path)) {
123+
console.warn(`Config file not found: ${path}`);
124+
return { spaces: [] };
125+
}
123126
const config = _loadConfig(path);
124127
return resolveRelativePaths(config, dirname(resolve(path)));
125128
}

0 commit comments

Comments
 (0)