@integrity-labs/agt-cli 0.28.1285 → 0.28.1286
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/{api-client-HGWXOP75.js → api-client-XQRYQJKJ.js} +2 -2
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-35VGKRXH.js → chunk-3R7OXS5I.js} +2 -2
- package/dist/{chunk-P3IPSNZK.js → chunk-TTEBS4AE.js} +2 -2
- package/dist/lib/manager-worker.js +4 -4
- package/dist/mcp/xero.js +19 -8
- package/package.json +1 -1
- /package/dist/{api-client-HGWXOP75.js.map → api-client-XQRYQJKJ.js.map} +0 -0
- /package/dist/{chunk-35VGKRXH.js.map → chunk-3R7OXS5I.js.map} +0 -0
- /package/dist/{chunk-P3IPSNZK.js.map → chunk-TTEBS4AE.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
mintRotatedHostKey,
|
|
16
16
|
probeHostKey,
|
|
17
17
|
setConfigHash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3R7OXS5I.js";
|
|
19
19
|
import "./chunk-DITI25ZO.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
probeHostKey,
|
|
37
37
|
setConfigHash
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=api-client-
|
|
39
|
+
//# sourceMappingURL=api-client-XQRYQJKJ.js.map
|
package/dist/bin/agt.js
CHANGED
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
success,
|
|
32
32
|
table,
|
|
33
33
|
warn
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-TTEBS4AE.js";
|
|
35
35
|
import {
|
|
36
36
|
ApiError,
|
|
37
37
|
PROD_AGT_HOST,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getHost,
|
|
43
43
|
getHostId,
|
|
44
44
|
setActiveTeam
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-3R7OXS5I.js";
|
|
46
46
|
import {
|
|
47
47
|
getProjectDir,
|
|
48
48
|
isSessionResumeDisabled,
|
|
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5207
5207
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5208
5208
|
import chalk17 from "chalk";
|
|
5209
5209
|
import ora15 from "ora";
|
|
5210
|
-
var cliVersion = true ? "0.28.
|
|
5210
|
+
var cliVersion = true ? "0.28.1286" : "dev";
|
|
5211
5211
|
async function fetchLatestVersion() {
|
|
5212
5212
|
const host2 = getHost();
|
|
5213
5213
|
if (!host2) return null;
|
|
@@ -6467,7 +6467,7 @@ function handleError(err) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
|
|
6469
6469
|
// src/bin/agt.ts
|
|
6470
|
-
var cliVersion2 = true ? "0.28.
|
|
6470
|
+
var cliVersion2 = true ? "0.28.1286" : "dev";
|
|
6471
6471
|
var program = new Command();
|
|
6472
6472
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6473
6473
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// src/lib/api-client.ts
|
|
106
|
-
var agtCliVersion = true ? "0.28.
|
|
106
|
+
var agtCliVersion = true ? "0.28.1286" : "dev";
|
|
107
107
|
var lastConfigHash = null;
|
|
108
108
|
function setConfigHash(hash) {
|
|
109
109
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
api,
|
|
469
469
|
getHostId
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-3R7OXS5I.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
exchangeApiKey,
|
|
3
3
|
getApiKey,
|
|
4
4
|
getHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3R7OXS5I.js";
|
|
6
6
|
import {
|
|
7
7
|
LATE_BOUND_VARS,
|
|
8
8
|
PLATFORM_DENY_PERMISSIONS,
|
|
@@ -13853,4 +13853,4 @@ export {
|
|
|
13853
13853
|
managerInstallSystemUnitCommand,
|
|
13854
13854
|
managerUninstallSystemUnitCommand
|
|
13855
13855
|
};
|
|
13856
|
-
//# sourceMappingURL=chunk-
|
|
13856
|
+
//# sourceMappingURL=chunk-TTEBS4AE.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tripClass,
|
|
71
71
|
writeEtcEnvironment,
|
|
72
72
|
writeProfileDScript
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-TTEBS4AE.js";
|
|
74
74
|
import {
|
|
75
75
|
ApiError,
|
|
76
76
|
adoptHostKeyInProcess,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
probeHostKey,
|
|
89
89
|
requireHost,
|
|
90
90
|
setConfigHash
|
|
91
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-3R7OXS5I.js";
|
|
92
92
|
import {
|
|
93
93
|
BLOCKED_ON_PROMPT_DECISION,
|
|
94
94
|
CHANNEL_SECRET_ENV_KEYS,
|
|
@@ -15444,7 +15444,7 @@ function createFileMigrationReportIO(codeName, log2) {
|
|
|
15444
15444
|
};
|
|
15445
15445
|
}
|
|
15446
15446
|
var managerHostPost = async (path, body) => {
|
|
15447
|
-
const { api: api2, ApiError: ApiError3 } = await import("../api-client-
|
|
15447
|
+
const { api: api2, ApiError: ApiError3 } = await import("../api-client-XQRYQJKJ.js");
|
|
15448
15448
|
try {
|
|
15449
15449
|
const json = await api2.post(path, body);
|
|
15450
15450
|
return { status: 200, json };
|
|
@@ -18380,7 +18380,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
18380
18380
|
var lastVersionCheckAt = 0;
|
|
18381
18381
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
18382
18382
|
var lastResponsivenessProbeAt = 0;
|
|
18383
|
-
var agtCliVersion = true ? "0.28.
|
|
18383
|
+
var agtCliVersion = true ? "0.28.1286" : "dev";
|
|
18384
18384
|
function resolveBrewPath(execFileSync5) {
|
|
18385
18385
|
try {
|
|
18386
18386
|
const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
package/dist/mcp/xero.js
CHANGED
|
@@ -121656,13 +121656,19 @@ var ListAgedReceivablesByContact = CreateXeroTool(
|
|
|
121656
121656
|
var list_aged_receivables_by_contact_tool_default = ListAgedReceivablesByContact;
|
|
121657
121657
|
|
|
121658
121658
|
// src/handlers/list-xero-bank-transactions.handler.ts
|
|
121659
|
-
|
|
121659
|
+
function buildBankTransactionsWhere(bankAccountId, unreconciledOnly) {
|
|
121660
|
+
const clauses = [];
|
|
121661
|
+
if (bankAccountId) clauses.push(`BankAccount.AccountID=guid("${bankAccountId}")`);
|
|
121662
|
+
if (unreconciledOnly) clauses.push("IsReconciled==false");
|
|
121663
|
+
return clauses.length > 0 ? clauses.join(" AND ") : void 0;
|
|
121664
|
+
}
|
|
121665
|
+
async function getBankTransactions(page, bankAccountId, unreconciledOnly) {
|
|
121660
121666
|
await xeroClient.authenticate();
|
|
121661
121667
|
const response = await xeroClient.accountingApi.getBankTransactions(
|
|
121662
121668
|
xeroClient.tenantId,
|
|
121663
121669
|
void 0,
|
|
121664
121670
|
// ifModifiedSince
|
|
121665
|
-
bankAccountId
|
|
121671
|
+
buildBankTransactionsWhere(bankAccountId, unreconciledOnly),
|
|
121666
121672
|
// where
|
|
121667
121673
|
"Date DESC",
|
|
121668
121674
|
// order
|
|
@@ -121676,9 +121682,9 @@ async function getBankTransactions(page, bankAccountId) {
|
|
|
121676
121682
|
);
|
|
121677
121683
|
return response.body.bankTransactions ?? [];
|
|
121678
121684
|
}
|
|
121679
|
-
async function listXeroBankTransactions(page = 1, bankAccountId) {
|
|
121685
|
+
async function listXeroBankTransactions(page = 1, bankAccountId, unreconciledOnly) {
|
|
121680
121686
|
try {
|
|
121681
|
-
const bankTransactions = await getBankTransactions(page, bankAccountId);
|
|
121687
|
+
const bankTransactions = await getBankTransactions(page, bankAccountId, unreconciledOnly);
|
|
121682
121688
|
return {
|
|
121683
121689
|
result: bankTransactions,
|
|
121684
121690
|
isError: false,
|
|
@@ -121719,18 +121725,23 @@ var ListBankTransactionsTool = CreateXeroTool(
|
|
|
121719
121725
|
in the bank account and absent from this list entirely. A balance, receivables
|
|
121720
121726
|
or cashflow figure derived from this may be incomplete, and nothing here reveals
|
|
121721
121727
|
by how much. (CS-1638)
|
|
121728
|
+
Set unreconciledOnly to true to list only BankTransaction records Xero has not
|
|
121729
|
+
reconciled yet (a work list for reconciling in Xero). It still does NOT include
|
|
121730
|
+
bank feed statement lines with no ledger record, so a payout sitting only in
|
|
121731
|
+
the bank feed will not appear. (CS-1567)
|
|
121722
121732
|
Ask the user if they want to see bank transactions for a specific bank account,
|
|
121723
121733
|
or to see all bank transactions before running.
|
|
121724
121734
|
Ask the user if they want the next page of quotes after running this tool if
|
|
121725
121735
|
10 bank transactions are returned.
|
|
121726
121736
|
If they do, call this tool again with the next page number and the bank account
|
|
121727
|
-
|
|
121737
|
+
and unreconciledOnly if they were provided in the previous call.`,
|
|
121728
121738
|
{
|
|
121729
121739
|
page: external_exports.number(),
|
|
121730
|
-
bankAccountId: external_exports.string().optional()
|
|
121740
|
+
bankAccountId: external_exports.string().optional(),
|
|
121741
|
+
unreconciledOnly: external_exports.boolean().optional().describe("Only BankTransaction records not yet reconciled. Does not include unmatched bank feed lines.")
|
|
121731
121742
|
},
|
|
121732
|
-
async ({ bankAccountId, page }) => {
|
|
121733
|
-
const response = await listXeroBankTransactions(page, bankAccountId);
|
|
121743
|
+
async ({ bankAccountId, page, unreconciledOnly }) => {
|
|
121744
|
+
const response = await listXeroBankTransactions(page, bankAccountId, unreconciledOnly);
|
|
121734
121745
|
if (response.isError) {
|
|
121735
121746
|
return {
|
|
121736
121747
|
content: [
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|