Skip to content

Commit 8b641c2

Browse files
committed
✨ feat(indexing): enable codebase indexing for all Auggie clients
Add allowIndexing: true to Auggie.create() options in both standalone and plugin servers. Update AuggieSDK interface type to include the allowIndexing option.
1 parent a1b543b commit 8b641c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugin/src/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ interface AuggieSDK {
7676
apiKey?: string;
7777
apiUrl?: string;
7878
workspaceRoot?: string;
79+
allowIndexing?: boolean;
7980
}) => Promise<AuggieClient>;
8081
}
8182

@@ -187,6 +188,7 @@ async function createAuggieClient(
187188
apiKey: sess.accessToken,
188189
apiUrl: sess.tenantURL,
189190
workspaceRoot: workspace,
191+
allowIndexing: true,
190192
});
191193
}
192194

src/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ interface ClientPool {
147147
}
148148

149149
interface AuggieSDK {
150-
create: (options: { model?: string; apiKey?: string; apiUrl?: string; workspaceRoot?: string }) => Promise<AuggieClient>;
150+
create: (options: { model?: string; apiKey?: string; apiUrl?: string; workspaceRoot?: string; allowIndexing?: boolean }) => Promise<AuggieClient>;
151151
}
152152

153153
// Configuration
@@ -671,6 +671,7 @@ async function createAuggieClient(auggieModel: string, workspaceRoot?: string):
671671
apiKey: sess.accessToken,
672672
apiUrl: sess.tenantURL,
673673
workspaceRoot: workspace,
674+
allowIndexing: true,
674675
});
675676
console.log(`New Auggie client created for model: ${auggieModel} (workspace: ${workspace})`);
676677
return client;

0 commit comments

Comments
 (0)