driggsby 0.9.1 → 0.9.2
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// answer its rare question, and undo it; and driggsby accounts list. Built for agents with
|
|
4
4
|
// no Driggsby context: the file (or the ID Driggsby gives it) is the only
|
|
5
5
|
// handle, repeating any command is safe, `--wait` never outlasts a coding
|
|
6
|
-
// agent's command limit, and every output ends with the exact next
|
|
6
|
+
// agent's command limit, and every output ends with the exact next step
|
|
7
7
|
// (import-render.ts holds that contract).
|
|
8
8
|
import { apiBaseUrl } from "../api/base-url.js";
|
|
9
9
|
import { CliError } from "../cli-error.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// What the import command prints. Every output follows one contract, so an
|
|
2
2
|
// agent with no Driggsby context never has to guess: the first line says
|
|
3
3
|
// where things stand ("Started:", "Waiting for an answer:", "Done:", ...)
|
|
4
|
-
// and is never wrapped, and the last lines give the exact
|
|
5
|
-
//
|
|
4
|
+
// and is never wrapped, and the last lines give the exact next step: a
|
|
5
|
+
// complete command wherever one exists, one per answer when the person must
|
|
6
|
+
// choose, and otherwise what to do (email support at the limit).
|
|
6
7
|
// Names Driggsby sends (a file, an account) print quoted and capped, so they
|
|
7
8
|
// read as names and never as the CLI's own sentence.
|
|
8
9
|
import { formatBytes } from "@driggsby/deploy";
|
|
@@ -80,11 +81,15 @@ function undoingLine(view) {
|
|
|
80
81
|
: `Undoing: removing the transactions ${name(view.file)} added.`;
|
|
81
82
|
}
|
|
82
83
|
// Importing the file again, aimed where the first try was; a stop about the
|
|
83
|
-
// account starts from the account list instead
|
|
84
|
+
// account starts from the account list instead, and one at the limit from
|
|
85
|
+
// support, since running anything again would stop the same way.
|
|
84
86
|
function rerun(view, options) {
|
|
85
87
|
if (ACCOUNT_STOPS.has(view.stopped?.code ?? "")) {
|
|
86
88
|
return `Next, to see your accounts and their IDs:\n ${CLI} accounts list\n`;
|
|
87
89
|
}
|
|
90
|
+
if (view.stopped?.code === "limit_reached") {
|
|
91
|
+
return next("Email support@driggsby.com to keep importing.");
|
|
92
|
+
}
|
|
88
93
|
const flags = accountFlags(options.rerun.account, options.rerun.create);
|
|
89
94
|
if (options.rerun.file !== null && flags !== "") {
|
|
90
95
|
return next(`${CLI} import ${options.rerun.file}${flags}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "driggsby",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Set up and build on Driggsby, the MCP server for personal finance.",
|
|
5
5
|
"license": "Apache-2.0 AND OFL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@driggsby/deploy": "0.9.
|
|
34
|
-
"@driggsby/sdk": "0.9.
|
|
33
|
+
"@driggsby/deploy": "0.9.2",
|
|
34
|
+
"@driggsby/sdk": "0.9.2"
|
|
35
35
|
}
|
|
36
36
|
}
|