@getpochi/cli 0.5.36 → 0.5.37
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/cli.js +19 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -349342,13 +349342,13 @@ class ClaudeCode extends VendorBase {
|
|
|
349342
349342
|
}
|
|
349343
349343
|
async fetchModels() {
|
|
349344
349344
|
return {
|
|
349345
|
-
"claude-opus-4-1
|
|
349345
|
+
"claude-opus-4-1": {
|
|
349346
349346
|
contextWindow: 200000,
|
|
349347
|
-
useToolCallMiddleware:
|
|
349347
|
+
useToolCallMiddleware: false
|
|
349348
349348
|
},
|
|
349349
|
-
"claude-sonnet-4
|
|
349349
|
+
"claude-sonnet-4": {
|
|
349350
349350
|
contextWindow: 200000,
|
|
349351
|
-
useToolCallMiddleware:
|
|
349351
|
+
useToolCallMiddleware: false
|
|
349352
349352
|
}
|
|
349353
349353
|
};
|
|
349354
349354
|
}
|
|
@@ -354046,13 +354046,18 @@ function addAnthropicHeaders(headers, credentials) {
|
|
|
354046
354046
|
headers.set("anthropic-version", AnthropicHeaders.version);
|
|
354047
354047
|
headers.delete("x-api-key");
|
|
354048
354048
|
}
|
|
354049
|
+
var ModelIdMap = {
|
|
354050
|
+
"claude-opus-4-1": "claude-opus-4-1-20250805",
|
|
354051
|
+
"claude-sonnet-4": "claude-sonnet-4-20250514"
|
|
354052
|
+
};
|
|
354049
354053
|
function createClaudeCodeModelBase(modelId, baseURL, customFetch) {
|
|
354054
|
+
const actualModelId = ModelIdMap[modelId] || modelId;
|
|
354050
354055
|
const anthropic2 = createAnthropic({
|
|
354051
354056
|
baseURL,
|
|
354052
354057
|
apiKey: "oauth-token",
|
|
354053
354058
|
fetch: customFetch
|
|
354054
354059
|
});
|
|
354055
|
-
const model2 = anthropic2(
|
|
354060
|
+
const model2 = anthropic2(actualModelId);
|
|
354056
354061
|
return wrapLanguageModel({
|
|
354057
354062
|
model: model2,
|
|
354058
354063
|
middleware: {
|
|
@@ -355577,7 +355582,7 @@ var {
|
|
|
355577
355582
|
// package.json
|
|
355578
355583
|
var package_default = {
|
|
355579
355584
|
name: "@getpochi/cli",
|
|
355580
|
-
version: "0.5.
|
|
355585
|
+
version: "0.5.37",
|
|
355581
355586
|
type: "module",
|
|
355582
355587
|
bin: {
|
|
355583
355588
|
pochi: "src/cli.ts"
|
|
@@ -367168,7 +367173,7 @@ async function parseAgentFile(filePath, readFileContent) {
|
|
|
367168
367173
|
name: defaultName,
|
|
367169
367174
|
filePath,
|
|
367170
367175
|
error: "validationError",
|
|
367171
|
-
message:
|
|
367176
|
+
message: v4_default.prettifyError(parseResult.error),
|
|
367172
367177
|
systemPrompt
|
|
367173
367178
|
};
|
|
367174
367179
|
}
|
|
@@ -367190,7 +367195,7 @@ async function parseAgentFile(filePath, readFileContent) {
|
|
|
367190
367195
|
};
|
|
367191
367196
|
}
|
|
367192
367197
|
// src/lib/load-agents.ts
|
|
367193
|
-
var logger13 = getLogger("
|
|
367198
|
+
var logger13 = getLogger("loadAgents");
|
|
367194
367199
|
async function readAgentsFromDir(dir) {
|
|
367195
367200
|
const agents = [];
|
|
367196
367201
|
try {
|
|
@@ -402189,6 +402194,11 @@ function createOpenAIResponsesModel(llm) {
|
|
|
402189
402194
|
middlewareVersion: "v2",
|
|
402190
402195
|
async transformParams({ params: params2 }) {
|
|
402191
402196
|
params2.maxOutputTokens = llm.maxOutputTokens;
|
|
402197
|
+
params2.providerOptions = {
|
|
402198
|
+
openai: {
|
|
402199
|
+
reasoningSummary: "detailed"
|
|
402200
|
+
}
|
|
402201
|
+
};
|
|
402192
402202
|
return params2;
|
|
402193
402203
|
}
|
|
402194
402204
|
}
|
|
@@ -403506,7 +403516,7 @@ async function downloadAndInstall(program5, release2) {
|
|
|
403506
403516
|
// package.json
|
|
403507
403517
|
var package_default2 = {
|
|
403508
403518
|
name: "@getpochi/cli",
|
|
403509
|
-
version: "0.5.
|
|
403519
|
+
version: "0.5.37",
|
|
403510
403520
|
type: "module",
|
|
403511
403521
|
bin: {
|
|
403512
403522
|
pochi: "src/cli.ts"
|