@agent-link/agent 0.1.346 → 0.1.348
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/copilot-byok.d.ts +13 -0
- package/dist/copilot-byok.js +109 -0
- package/dist/copilot-byok.js.map +1 -0
- package/dist/copilot-capabilities.d.ts +1 -1
- package/dist/copilot-capabilities.js +2 -1
- package/dist/copilot-capabilities.js.map +1 -1
- package/dist/copilot-command-bridge.d.ts +2 -0
- package/dist/copilot-command-bridge.js +7 -1
- package/dist/copilot-command-bridge.js.map +1 -1
- package/dist/copilot.js +3 -1
- package/dist/copilot.js.map +1 -1
- package/dist/history.js +22 -1
- package/dist/history.js.map +1 -1
- package/package.json +1 -1
package/dist/copilot.js
CHANGED
|
@@ -30,6 +30,7 @@ import { getForkHistoryTitle, processUserMessage } from './history-message-trans
|
|
|
30
30
|
import { copilotCapabilities } from './backends/types.js';
|
|
31
31
|
import { CONFIG_DIR } from './config.js';
|
|
32
32
|
import { getCleanEnv, resolveExecutablePath } from './sdk.js';
|
|
33
|
+
import { withCopilotProviderEnvironment } from './copilot-byok.js';
|
|
33
34
|
import { getProvider, resolveProviderCommand } from './providers.js';
|
|
34
35
|
import { FileCache } from './file-cache.js';
|
|
35
36
|
import { ensureCopilotForkMetadata, readCopilotForkMetadata } from './copilot-fork-metadata.js';
|
|
@@ -3226,7 +3227,8 @@ export async function handleCopilotChat(conversationId, text, workDir, options,
|
|
|
3226
3227
|
cwd: provider.cwd || workDir,
|
|
3227
3228
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
3228
3229
|
env: {
|
|
3229
|
-
|
|
3230
|
+
// Prompt mode reads BYOK settings from the environment itself.
|
|
3231
|
+
...(state.providerId === 'copilot' ? withCopilotProviderEnvironment(getCleanEnv()) : getCleanEnv()),
|
|
3230
3232
|
...(provider.env || {}),
|
|
3231
3233
|
...(state.providerId === 'agency-copilot'
|
|
3232
3234
|
? { COPILOT_BACKGROUND_COMPACTION_THRESHOLD: AGENCY_COPILOT_BACKGROUND_COMPACTION_THRESHOLD }
|