@compilr-dev/cli 0.5.13 → 0.5.15
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/.tsbuildinfo.app +1 -1
- package/dist/.tsbuildinfo.domain +1 -1
- package/dist/agent.js +2 -2
- package/dist/commands-v2/handlers/reset.js +9 -0
- package/dist/commands-v2/handlers/session.d.ts +2 -2
- package/dist/commands-v2/handlers/session.js +10 -10
- package/dist/compilr-diff-companion.vsix +0 -0
- package/dist/input-handlers/memory-handler.js +3 -3
- package/dist/repl-v2.js +6 -6
- package/package.json +5 -4
package/dist/agent.js
CHANGED
|
@@ -518,10 +518,10 @@ ${options.systemPromptAddition}
|
|
|
518
518
|
],
|
|
519
519
|
},
|
|
520
520
|
});
|
|
521
|
-
// Load persisted anchors into the agent's
|
|
521
|
+
// Load persisted anchors into the agent's pin manager
|
|
522
522
|
if (options.enableAnchors && options.persistedAnchors) {
|
|
523
523
|
for (const anchor of options.persistedAnchors) {
|
|
524
|
-
agent.
|
|
524
|
+
agent.addPin({
|
|
525
525
|
id: anchor.id,
|
|
526
526
|
content: anchor.content,
|
|
527
527
|
priority: anchor.priority,
|
|
@@ -103,6 +103,15 @@ export const resetCommand = {
|
|
|
103
103
|
ctx.restoreAgent(freshAgent);
|
|
104
104
|
if (ctx.team) {
|
|
105
105
|
ctx.team.setDefaultAgent(freshAgent);
|
|
106
|
+
// Re-inject team roster pin into the fresh agent so it knows about teammates
|
|
107
|
+
if (ctx.team.sharedContext.hasTeamRoster() && freshAgent.hasPins()) {
|
|
108
|
+
freshAgent.addPin({
|
|
109
|
+
id: 'team-roster',
|
|
110
|
+
content: ctx.team.sharedContext.formatTeamRoster(),
|
|
111
|
+
priority: 'info',
|
|
112
|
+
scope: 'session',
|
|
113
|
+
});
|
|
114
|
+
}
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
catch {
|
|
@@ -93,8 +93,8 @@ export declare function handleProjectSwitch(oldProjectId: number | null, agent:
|
|
|
93
93
|
turnCount?: number;
|
|
94
94
|
}) => Promise<unknown>;
|
|
95
95
|
clearHistory: () => unknown;
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
clearPins?: (options?: AnchorClearOptions) => number;
|
|
97
|
+
addPin?: (input: {
|
|
98
98
|
id?: string;
|
|
99
99
|
content: string;
|
|
100
100
|
priority: AnchorPriority;
|
|
@@ -440,11 +440,11 @@ export async function handleProjectSwitch(oldProjectId, agent, teamOptions, agen
|
|
|
440
440
|
await agentOptions.updateProjectState?.(newProjectId);
|
|
441
441
|
// 2. Create fresh default agent with new project's system prompt
|
|
442
442
|
newAgent = await agentOptions.agentFactory({});
|
|
443
|
-
// 3. Transfer anchors to the NEW agent
|
|
444
|
-
newAgent.
|
|
443
|
+
// 3. Transfer anchors to the NEW agent's pin manager
|
|
444
|
+
newAgent.clearPins({ scope: 'persistent' });
|
|
445
445
|
const newAnchors = await getProjectAnchors(newProjectId);
|
|
446
446
|
for (const anchor of newAnchors) {
|
|
447
|
-
newAgent.
|
|
447
|
+
newAgent.addPin({
|
|
448
448
|
id: anchor.id,
|
|
449
449
|
content: anchor.content,
|
|
450
450
|
priority: anchor.priority,
|
|
@@ -465,12 +465,12 @@ export async function handleProjectSwitch(oldProjectId, agent, teamOptions, agen
|
|
|
465
465
|
// If no new agent was created, update the old agent as before
|
|
466
466
|
if (!newAgent) {
|
|
467
467
|
try {
|
|
468
|
-
// Update old agent's
|
|
469
|
-
if (agent?.
|
|
470
|
-
agent.
|
|
468
|
+
// Update old agent's pins
|
|
469
|
+
if (agent?.clearPins && agent.addPin) {
|
|
470
|
+
agent.clearPins({ scope: 'persistent' });
|
|
471
471
|
const newAnchors = await getProjectAnchors(newProjectId);
|
|
472
472
|
for (const anchor of newAnchors) {
|
|
473
|
-
agent.
|
|
473
|
+
agent.addPin({
|
|
474
474
|
id: anchor.id,
|
|
475
475
|
content: anchor.content,
|
|
476
476
|
priority: anchor.priority,
|
|
@@ -731,9 +731,9 @@ export const resumeCommand = {
|
|
|
731
731
|
path: activeProject.path,
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
// Set team roster
|
|
735
|
-
if (persistedTeam.sharedContext.hasTeamRoster() && ctx.agent?.
|
|
736
|
-
ctx.agent.
|
|
734
|
+
// Set team roster pin
|
|
735
|
+
if (persistedTeam.sharedContext.hasTeamRoster() && ctx.agent?.hasPins()) {
|
|
736
|
+
ctx.agent.addPin({
|
|
737
737
|
id: 'team-roster',
|
|
738
738
|
content: persistedTeam.sharedContext.formatTeamRoster(),
|
|
739
739
|
priority: 'info',
|
|
Binary file
|
|
@@ -56,9 +56,9 @@ export function handleMemoryInput(input, ctx) {
|
|
|
56
56
|
conversation.printSuccess(`Saved${priorityLabel}: "${truncate(note, 50)}" → ${scope}`);
|
|
57
57
|
terminal.writeLine('');
|
|
58
58
|
ctx.footer.forceRender();
|
|
59
|
-
// Also add to agent's
|
|
60
|
-
if (ctx.agent.
|
|
61
|
-
ctx.agent.
|
|
59
|
+
// Also add to agent's pin manager if enabled (for current session)
|
|
60
|
+
if (ctx.agent.getPinManager()) {
|
|
61
|
+
ctx.agent.addPin({
|
|
62
62
|
id: anchor.id,
|
|
63
63
|
content: note,
|
|
64
64
|
priority,
|
package/dist/repl-v2.js
CHANGED
|
@@ -1181,9 +1181,9 @@ export class ReplV2 {
|
|
|
1181
1181
|
path: activeProject.path,
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
// Set team roster as
|
|
1185
|
-
if (persistedTeam.sharedContext.hasTeamRoster() && currentAgent?.
|
|
1186
|
-
currentAgent.
|
|
1184
|
+
// Set team roster as pin on the default agent
|
|
1185
|
+
if (persistedTeam.sharedContext.hasTeamRoster() && currentAgent?.hasPins()) {
|
|
1186
|
+
currentAgent.addPin({
|
|
1187
1187
|
id: 'team-roster',
|
|
1188
1188
|
content: persistedTeam.sharedContext.formatTeamRoster(),
|
|
1189
1189
|
priority: 'info',
|
|
@@ -2122,9 +2122,9 @@ export class ReplV2 {
|
|
|
2122
2122
|
const priorityLabel = priority === 'info' ? '' : ` (${priority})`;
|
|
2123
2123
|
const truncatedNote = truncate(note, 50);
|
|
2124
2124
|
this.ui.print({ type: 'success', message: `Saved${priorityLabel}: "${truncatedNote}" → ${scope}` });
|
|
2125
|
-
// Also add to agent's
|
|
2126
|
-
if (this.agent?.
|
|
2127
|
-
this.agent.
|
|
2125
|
+
// Also add to agent's pin manager if enabled (for current session)
|
|
2126
|
+
if (this.agent?.getPinManager()) {
|
|
2127
|
+
this.agent.addPin({
|
|
2128
2128
|
id: anchor.id,
|
|
2129
2129
|
content: note,
|
|
2130
2130
|
priority,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilr-dev/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
"description": "AI-powered coding assistant CLI using @compilr-dev/agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@anthropic-ai/sdk": "^0.74.0",
|
|
57
|
-
"@compilr-dev/agents": "^0.3.
|
|
57
|
+
"@compilr-dev/agents": "^0.3.26",
|
|
58
58
|
"@compilr-dev/agents-coding": "^1.0.4",
|
|
59
59
|
"@compilr-dev/editor-core": "^0.0.2",
|
|
60
60
|
"@compilr-dev/factory": "^0.1.12",
|
|
61
|
-
"@compilr-dev/sdk": "^0.2.
|
|
61
|
+
"@compilr-dev/sdk": "^0.2.11",
|
|
62
62
|
"@compilr-dev/ui-core": "^0.0.1",
|
|
63
63
|
"@modelcontextprotocol/sdk": "^1.23.0",
|
|
64
64
|
"better-sqlite3": "^12.5.0",
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"uuid": "^13.0.0"
|
|
71
71
|
},
|
|
72
72
|
"overrides": {
|
|
73
|
-
"minimatch": ">=10.2.1"
|
|
73
|
+
"minimatch": ">=10.2.1",
|
|
74
|
+
"hono": ">=4.12.7"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
77
|
"@eslint/js": "^9.39.1",
|