@teamvibe/poller 0.1.43 → 0.1.45
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.js +14 -3
- package/dist/claude-spawner.js +1 -0
- package/package.json +1 -1
package/dist/brain-manager.js
CHANGED
|
@@ -146,12 +146,23 @@ export async function pushBrainChanges(brainDir, brainId, workspaceId) {
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
// Check if there are unpushed commits (Claude commits its own changes during the session)
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
// Use @{u}..HEAD if upstream exists, otherwise check if there are any local commits at all
|
|
150
|
+
let hasUnpushed = false;
|
|
151
|
+
try {
|
|
152
|
+
const { stdout: unpushed } = await gitExec('git log @{u}..HEAD --oneline', { cwd: brainDir });
|
|
153
|
+
hasUnpushed = !!unpushed.trim();
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
// No upstream tracking branch — check if we have commits and a remote to push to
|
|
157
|
+
const { stdout: commits } = await gitExec('git log --oneline -1', { cwd: brainDir });
|
|
158
|
+
hasUnpushed = !!commits.trim();
|
|
159
|
+
}
|
|
160
|
+
if (!hasUnpushed) {
|
|
151
161
|
logger.debug(`Brain ${brainId} has no unpushed commits`);
|
|
152
162
|
return;
|
|
153
163
|
}
|
|
154
|
-
await gitExec('git
|
|
164
|
+
const branch = (await gitExec('git branch --show-current', { cwd: brainDir })).stdout.trim() || 'main';
|
|
165
|
+
await gitExec(`git push -u origin ${branch}`, { cwd: brainDir });
|
|
155
166
|
logger.info(`Brain ${brainId} changes pushed successfully`);
|
|
156
167
|
if (workspaceId)
|
|
157
168
|
reportBrainSync(brainId, workspaceId, 'pushed');
|
package/dist/claude-spawner.js
CHANGED
|
@@ -14,6 +14,7 @@ const TOOL_STATUS_MAP = [
|
|
|
14
14
|
{ pattern: 'mcp__slack__read_thread', status: 'Reading thread...' },
|
|
15
15
|
{ pattern: 'mcp__slack__send_message', status: 'Sending message...' },
|
|
16
16
|
{ pattern: 'mcp__slack__upload_snippet', status: 'Uploading snippet...' },
|
|
17
|
+
{ pattern: 'mcp__slack__update_message', status: 'Updating message...' },
|
|
17
18
|
{ pattern: /^mcp__slack__/, status: 'Working with Slack...' },
|
|
18
19
|
// Web tools
|
|
19
20
|
{ pattern: 'WebSearch', status: 'Searching the web...' },
|