@rowan-agent/agent 0.7.0 → 0.7.1
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/README.md +1 -1
- package/dist/index.js +8 -12
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1300,8 +1300,7 @@ function createCoreTools(input = {}) {
|
|
|
1300
1300
|
|
|
1301
1301
|
// src/harness/context/system-prompt.ts
|
|
1302
1302
|
function buildSystemPrompt(options) {
|
|
1303
|
-
const { systemPrompt, promptGuidelines, appendSystemPrompt, tools, skills
|
|
1304
|
-
const date = createTimestamp();
|
|
1303
|
+
const { systemPrompt, promptGuidelines, appendSystemPrompt, tools, skills } = options;
|
|
1305
1304
|
const guidelinesList = [];
|
|
1306
1305
|
const guidelinesSet = /* @__PURE__ */ new Set();
|
|
1307
1306
|
const addGuideline = (guideline) => {
|
|
@@ -1317,7 +1316,8 @@ function buildSystemPrompt(options) {
|
|
|
1317
1316
|
addGuideline(g);
|
|
1318
1317
|
}
|
|
1319
1318
|
}
|
|
1320
|
-
const
|
|
1319
|
+
const visibleSkills = (skills ?? []).filter((s) => !s.disableModelInvocation);
|
|
1320
|
+
const skillsBlock = visibleSkills.length > 0 ? buildSkillsDescription(visibleSkills) : "";
|
|
1321
1321
|
for (const g of promptGuidelines ?? []) {
|
|
1322
1322
|
addGuideline(g);
|
|
1323
1323
|
}
|
|
@@ -1338,14 +1338,6 @@ ${toolsList}
|
|
|
1338
1338
|
${skillsSection}
|
|
1339
1339
|
Guidelines:
|
|
1340
1340
|
${guidelines}`;
|
|
1341
|
-
if (date || cwd) {
|
|
1342
|
-
const contextParts = [];
|
|
1343
|
-
if (date) contextParts.push(`Current date: ${date}`);
|
|
1344
|
-
if (cwd) contextParts.push(`Working directory: ${cwd}`);
|
|
1345
|
-
prompt += `
|
|
1346
|
-
|
|
1347
|
-
${contextParts.join("\n")}`;
|
|
1348
|
-
}
|
|
1349
1341
|
if (appendSystemPrompt) {
|
|
1350
1342
|
prompt += `
|
|
1351
1343
|
|
|
@@ -2673,12 +2665,16 @@ function applyProviderRegistration(config) {
|
|
|
2673
2665
|
protocol: config.protocol,
|
|
2674
2666
|
provider: config.id,
|
|
2675
2667
|
baseUrl: config.baseUrl,
|
|
2668
|
+
apiKey: config.apiKey,
|
|
2676
2669
|
reasoning: modelConfig.reasoning,
|
|
2677
2670
|
input: modelConfig.input,
|
|
2678
2671
|
cost: modelConfig.cost,
|
|
2679
2672
|
contextWindow: modelConfig.contextWindow,
|
|
2680
2673
|
maxTokens: modelConfig.maxTokens,
|
|
2681
|
-
...config.headers ? { headers: config.headers } : {}
|
|
2674
|
+
...config.headers ? { headers: config.headers } : {},
|
|
2675
|
+
...config.timeoutMs !== void 0 ? { timeoutMs: config.timeoutMs } : {},
|
|
2676
|
+
...config.maxRetries !== void 0 ? { maxRetries: config.maxRetries } : {},
|
|
2677
|
+
...config.retryDelayMs !== void 0 ? { retryDelayMs: config.retryDelayMs } : {}
|
|
2682
2678
|
});
|
|
2683
2679
|
}
|
|
2684
2680
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowan-agent/agent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "tsup && bun scripts/check-public-interface.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rowan-agent/models": "0.6.
|
|
26
|
+
"@rowan-agent/models": "0.6.3",
|
|
27
27
|
"jiti": "2.7.0",
|
|
28
28
|
"typebox": "^1.0.0",
|
|
29
29
|
"yaml": "^2.7.0"
|