@fuzzle/opencode-accountant 0.0.3 → 0.0.4
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15083,17 +15083,17 @@ function updateJournalWithPrices(journalPath, newPriceLines) {
|
|
|
15083
15083
|
`);
|
|
15084
15084
|
}
|
|
15085
15085
|
var update_prices_default = tool({
|
|
15086
|
-
description: "
|
|
15086
|
+
description: "ACCOUNTANT AGENT ONLY: Fetches end-of-day prices for all tickers (BTC, EUR, USD in CHF) and appends them to the corresponding price journals.",
|
|
15087
15087
|
args: {
|
|
15088
15088
|
backfill: tool.schema.boolean().optional().describe("If true, fetch all available history from 2025-12-31")
|
|
15089
15089
|
},
|
|
15090
15090
|
async execute(params, context) {
|
|
15091
15091
|
const { directory, agent } = context;
|
|
15092
15092
|
const { backfill } = params;
|
|
15093
|
-
if (agent !== "
|
|
15093
|
+
if (agent !== "accountant") {
|
|
15094
15094
|
return JSON.stringify({
|
|
15095
|
-
error: "This tool is restricted to the
|
|
15096
|
-
hint: "Use: Task(subagent_type='
|
|
15095
|
+
error: "This tool is restricted to the accountant agent only.",
|
|
15096
|
+
hint: "Use: Task(subagent_type='accountant', prompt='update prices')",
|
|
15097
15097
|
caller: agent || "main assistant"
|
|
15098
15098
|
});
|
|
15099
15099
|
}
|