@teamvibe/poller 0.1.24 → 0.1.25
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/dist/brain-manager.d.ts +0 -5
- package/dist/brain-manager.js +0 -13
- package/dist/poller.js +1 -2
- package/package.json +1 -1
package/dist/brain-manager.d.ts
CHANGED
package/dist/brain-manager.js
CHANGED
|
@@ -19,19 +19,6 @@ if (config.PERSISTENT_STORAGE_PATH) {
|
|
|
19
19
|
function gitExec(command, options) {
|
|
20
20
|
return execAsync(command, { ...options, env: gitEnv });
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Configure git auth using `gh auth setup-git`.
|
|
24
|
-
* Uses gitEnv which includes /data/bin in PATH.
|
|
25
|
-
*/
|
|
26
|
-
export async function configureGitAuth() {
|
|
27
|
-
try {
|
|
28
|
-
await gitExec('gh auth setup-git');
|
|
29
|
-
logger.info('Git authentication configured via gh');
|
|
30
|
-
}
|
|
31
|
-
catch (error) {
|
|
32
|
-
logger.warn(`Could not configure git auth: ${error instanceof Error ? error.message : error}`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
22
|
// Cooldown tracker per brain
|
|
36
23
|
const lastUpdateTimes = new Map();
|
|
37
24
|
/**
|
package/dist/poller.js
CHANGED
|
@@ -4,7 +4,7 @@ import { pollMessages, deleteMessage, extendVisibility, } from './sqs-poller.js'
|
|
|
4
4
|
import { spawnClaudeCode, isAtCapacity, getActiveProcessCount } from './claude-spawner.js';
|
|
5
5
|
import { sendSlackError, addReaction, getUserInfo, startTypingIndicator } from './slack-client.js';
|
|
6
6
|
import { acquireSessionLock, releaseSessionLock, updateSessionId } from './session-store.js';
|
|
7
|
-
import { getBrainPath, ensureDirectories, ensureBaseBrain, pushBrainChanges
|
|
7
|
+
import { getBrainPath, ensureDirectories, ensureBaseBrain, pushBrainChanges } from './brain-manager.js';
|
|
8
8
|
import { initAuth, stopRefresh } from './auth-provider.js';
|
|
9
9
|
// Track active message processing
|
|
10
10
|
const processingMessages = new Set();
|
|
@@ -254,7 +254,6 @@ export async function startPoller() {
|
|
|
254
254
|
logger.info(` Queue: ${config.SQS_QUEUE_URL}`);
|
|
255
255
|
logger.info(` Sessions table: ${config.SESSIONS_TABLE}`);
|
|
256
256
|
}
|
|
257
|
-
await configureGitAuth();
|
|
258
257
|
await ensureDirectories();
|
|
259
258
|
await ensureBaseBrain();
|
|
260
259
|
await pollLoop();
|