obol-ai 0.3.53 → 0.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/scripts/release.js +57 -0
- package/src/claude/client.js +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "obol-ai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.54",
|
|
4
4
|
"description": "Self-evolving AI assistant that learns, remembers, and acts on its own. Persistent vector memory, self-rewriting personality, proactive heartbeats.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"bench": "node src/cli/prompt-bench.js",
|
|
16
16
|
"bench:memory": "node src/cli/memory-bench.js",
|
|
17
17
|
"debug": "node src/cli/prompt-debug.js",
|
|
18
|
+
"release": "node scripts/release.js",
|
|
18
19
|
"prepublishOnly": "node src/cli/changelog.js",
|
|
19
20
|
"postinstall": "pip3 install faster-whisper 2>/dev/null || pip install faster-whisper 2>/dev/null || echo 'Note: faster-whisper not installed (Python/pip unavailable). Voice transcription will be disabled.'"
|
|
20
21
|
},
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
const BUMP_TYPES = ['patch', 'minor', 'major'];
|
|
8
|
+
|
|
9
|
+
/** @param {string} cmd @returns {string} */
|
|
10
|
+
const run = (cmd) => execSync(cmd, { encoding: 'utf-8', stdio: ['inherit', 'pipe', 'inherit'] }).trim();
|
|
11
|
+
|
|
12
|
+
/** @param {string} cmd */
|
|
13
|
+
const exec = (cmd) => execSync(cmd, { stdio: 'inherit' });
|
|
14
|
+
|
|
15
|
+
/** @param {string} version @param {'patch'|'minor'|'major'} type @returns {string} */
|
|
16
|
+
function bumpVersion(version, type) {
|
|
17
|
+
const [major, minor, patch] = version.split('.').map(Number);
|
|
18
|
+
if (type === 'major') return `${major + 1}.0.0`;
|
|
19
|
+
if (type === 'minor') return `${major}.${minor + 1}.0`;
|
|
20
|
+
return `${major}.${minor}.${patch + 1}`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function main() {
|
|
24
|
+
const arg = process.argv[2] || 'patch';
|
|
25
|
+
|
|
26
|
+
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
27
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
28
|
+
const current = pkg.version;
|
|
29
|
+
|
|
30
|
+
let next;
|
|
31
|
+
if (BUMP_TYPES.includes(arg)) {
|
|
32
|
+
next = bumpVersion(current, arg);
|
|
33
|
+
} else if (/^\d+\.\d+\.\d+$/.test(arg)) {
|
|
34
|
+
next = arg;
|
|
35
|
+
} else {
|
|
36
|
+
console.error(`Usage: npm run release [patch|minor|major|x.y.z]`);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const status = run('git status --porcelain');
|
|
41
|
+
if (!status) {
|
|
42
|
+
console.error('Nothing to release — no uncommitted changes');
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
console.log(`\n${current} → ${next}\n`);
|
|
47
|
+
|
|
48
|
+
pkg.version = next;
|
|
49
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
50
|
+
|
|
51
|
+
exec('git add -A');
|
|
52
|
+
exec(`git commit -m "${next}"`);
|
|
53
|
+
|
|
54
|
+
exec('npm publish');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
main();
|
package/src/claude/client.js
CHANGED
|
@@ -10,7 +10,7 @@ function createAnthropicClient(anthropicConfig, { useOAuth = true } = {}) {
|
|
|
10
10
|
maxRetries: 5,
|
|
11
11
|
defaultHeaders: {
|
|
12
12
|
'anthropic-dangerous-direct-browser-access': 'true',
|
|
13
|
-
'anthropic-beta': 'claude-code-20250219,oauth-2025-04-20
|
|
13
|
+
'anthropic-beta': 'claude-code-20250219,oauth-2025-04-20',
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -18,9 +18,7 @@ function createAnthropicClient(anthropicConfig, { useOAuth = true } = {}) {
|
|
|
18
18
|
return new Anthropic({
|
|
19
19
|
apiKey: anthropicConfig.apiKey,
|
|
20
20
|
maxRetries: 5,
|
|
21
|
-
defaultHeaders: {
|
|
22
|
-
'anthropic-beta': 'output-128k-2025-02-19',
|
|
23
|
-
},
|
|
21
|
+
defaultHeaders: {},
|
|
24
22
|
});
|
|
25
23
|
}
|
|
26
24
|
throw new Error('No Anthropic credentials configured. Run: obol config');
|