opc-agent 4.0.11 → 4.0.13
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/channels/telegram.d.ts +50 -13
- package/dist/channels/telegram.js +309 -84
- package/dist/providers/index.js +2 -2
- package/package.json +1 -1
- package/src/channels/telegram.ts +377 -94
- package/src/providers/index.ts +2 -2
package/dist/providers/index.js
CHANGED
|
@@ -342,7 +342,7 @@ class ClaudeCLIProvider {
|
|
|
342
342
|
if (options?.tools && options.tools.length > 0) {
|
|
343
343
|
prompt += buildToolPrompt(options.tools);
|
|
344
344
|
}
|
|
345
|
-
const args = ['-p'];
|
|
345
|
+
const args = ['-p', '--no-project-context'];
|
|
346
346
|
// Write system prompt to temp file to avoid shell escaping issues
|
|
347
347
|
let tmpFile;
|
|
348
348
|
if (systemPrompt) {
|
|
@@ -406,7 +406,7 @@ class ClaudeCLIProvider {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
async *chatStream(messages, systemPrompt) {
|
|
409
|
-
const args = ['-p', '--output-format', 'stream-json', '--include-partial-messages'];
|
|
409
|
+
const args = ['-p', '--no-project-context', '--output-format', 'stream-json', '--include-partial-messages'];
|
|
410
410
|
if (this.model) {
|
|
411
411
|
args.push('--model', this.model);
|
|
412
412
|
}
|