@integrity-labs/agt-cli 0.28.1289 → 0.28.1291

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.
Files changed (35) hide show
  1. package/dist/{api-client-LVYFYF3Z.js → api-client-6L3L4HKS.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-X7ZRYILH.js → chunk-3NCSZIK4.js} +2 -2
  4. package/dist/{chunk-JNEXXGKW.js → chunk-G4T3PGWR.js} +3 -3
  5. package/dist/{chunk-FRNONFQA.js → chunk-IPWGWDON.js} +2 -2
  6. package/dist/{chunk-DITI25ZO.js → chunk-LAJEUIP7.js} +35 -3
  7. package/dist/chunk-LAJEUIP7.js.map +1 -0
  8. package/dist/{chunk-WIU4M5EF.js → chunk-QSIKMH7L.js} +3 -3
  9. package/dist/{chunk-OJWLTVBR.js → chunk-RPZSSKF7.js} +5 -5
  10. package/dist/{claude-code-updater-6NRYKDKS.js → claude-code-updater-NBWLPWZU.js} +3 -3
  11. package/dist/{claude-pair-runtime-PMGEAT3Z.js → claude-pair-runtime-3RJNQ3XJ.js} +3 -3
  12. package/dist/lib/manager-worker.js +330 -57
  13. package/dist/lib/manager-worker.js.map +1 -1
  14. package/dist/mcp/direct-chat-channel.js +34 -2
  15. package/dist/mcp/index.js +34 -2
  16. package/dist/mcp/origami.js +34 -2
  17. package/dist/mcp/slack-channel.js +34 -2
  18. package/dist/mcp/telegram-channel.js +34 -2
  19. package/dist/mcp/xero.js +44 -11
  20. package/dist/{persistent-session-XYZN6NSP.js → persistent-session-Q5FJJAFR.js} +4 -4
  21. package/dist/{responsiveness-probe-NIH64ZZE.js → responsiveness-probe-EYIQ2RPD.js} +4 -4
  22. package/dist/{session-auth-dead-IBUKQXBO.js → session-auth-dead-TYDPUWCV.js} +3 -3
  23. package/package.json +1 -1
  24. package/dist/chunk-DITI25ZO.js.map +0 -1
  25. /package/dist/{api-client-LVYFYF3Z.js.map → api-client-6L3L4HKS.js.map} +0 -0
  26. /package/dist/{chunk-X7ZRYILH.js.map → chunk-3NCSZIK4.js.map} +0 -0
  27. /package/dist/{chunk-JNEXXGKW.js.map → chunk-G4T3PGWR.js.map} +0 -0
  28. /package/dist/{chunk-FRNONFQA.js.map → chunk-IPWGWDON.js.map} +0 -0
  29. /package/dist/{chunk-WIU4M5EF.js.map → chunk-QSIKMH7L.js.map} +0 -0
  30. /package/dist/{chunk-OJWLTVBR.js.map → chunk-RPZSSKF7.js.map} +0 -0
  31. /package/dist/{claude-code-updater-6NRYKDKS.js.map → claude-code-updater-NBWLPWZU.js.map} +0 -0
  32. /package/dist/{claude-pair-runtime-PMGEAT3Z.js.map → claude-pair-runtime-3RJNQ3XJ.js.map} +0 -0
  33. /package/dist/{persistent-session-XYZN6NSP.js.map → persistent-session-Q5FJJAFR.js.map} +0 -0
  34. /package/dist/{responsiveness-probe-NIH64ZZE.js.map → responsiveness-probe-EYIQ2RPD.js.map} +0 -0
  35. /package/dist/{session-auth-dead-IBUKQXBO.js.map → session-auth-dead-TYDPUWCV.js.map} +0 -0
@@ -15,8 +15,8 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-JNEXXGKW.js";
19
- import "./chunk-DITI25ZO.js";
18
+ } from "./chunk-G4T3PGWR.js";
19
+ import "./chunk-LAJEUIP7.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
22
22
  ApiError,
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-LVYFYF3Z.js.map
39
+ //# sourceMappingURL=api-client-6L3L4HKS.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-OJWLTVBR.js";
34
+ } from "../chunk-RPZSSKF7.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,17 +42,17 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-JNEXXGKW.js";
45
+ } from "../chunk-G4T3PGWR.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-WIU4M5EF.js";
50
+ } from "../chunk-QSIKMH7L.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
54
54
  sessionTranscriptDir
55
- } from "../chunk-X7ZRYILH.js";
55
+ } from "../chunk-3NCSZIK4.js";
56
56
  import "../chunk-XL2HPM67.js";
57
57
  import "../chunk-6HBXEJHO.js";
58
58
  import "../chunk-XWVM4KPK.js";
@@ -85,7 +85,7 @@ import {
85
85
  requiredMcpWildcard,
86
86
  resolveChannels,
87
87
  serializeManifestForSlackCli
88
- } from "../chunk-DITI25ZO.js";
88
+ } from "../chunk-LAJEUIP7.js";
89
89
  import "../chunk-AIUIMEUS.js";
90
90
  import "../chunk-DGUM43GV.js";
91
91
 
@@ -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.1289" : "dev";
5210
+ var cliVersion = true ? "0.28.1291" : "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.1289" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1291" : "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) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-DITI25ZO.js";
3
+ } from "./chunk-LAJEUIP7.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -244,4 +244,4 @@ export {
244
244
  peekPreviousSession,
245
245
  readDailySessionPin
246
246
  };
247
- //# sourceMappingURL=chunk-X7ZRYILH.js.map
247
+ //# sourceMappingURL=chunk-3NCSZIK4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-DITI25ZO.js";
3
+ } from "./chunk-LAJEUIP7.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1289" : "dev";
106
+ var agtCliVersion = true ? "0.28.1291" : "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-JNEXXGKW.js.map
471
+ //# sourceMappingURL=chunk-G4T3PGWR.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-DITI25ZO.js";
7
+ } from "./chunk-LAJEUIP7.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-FRNONFQA.js.map
725
+ //# sourceMappingURL=chunk-IPWGWDON.js.map
@@ -2068,7 +2068,39 @@ var INTEGRATION_REGISTRY = [
2068
2068
  { id: "xero:read-accounts", name: "Read Accounts", description: "View chart of accounts and account balances", access: "read" },
2069
2069
  { id: "xero:read-transactions", name: "Read Transactions", description: "View bank transactions, invoices, and journal entries", access: "read" },
2070
2070
  { id: "xero:read-contacts", name: "Read Contacts", description: "View customers, suppliers, and contact groups", access: "read" },
2071
- { id: "xero:manage-settings", name: "Manage Settings", description: "Manage org settings and chart of accounts", access: "admin" }
2071
+ { id: "xero:manage-settings", name: "Manage Settings", description: "Manage org settings and chart of accounts", access: "admin" },
2072
+ {
2073
+ // CS-2548: the second `requires_org_opt_in` capability, and the first
2074
+ // that carries OAuth scopes. Payroll write consent (payroll.payruns,
2075
+ // payroll.payslip) is the org's decision: it must not be asked for, or
2076
+ // flagged as missing, for every Xero org because one wants pay runs.
2077
+ // The consent and reconnect paths drop it for a non-opted org
2078
+ // (api/lib/opt-in-oauth-scopes.ts) and the broker refuses its verbs
2079
+ // unless the org opted in AND the agent holds the scope
2080
+ // (api/lib/xero-payroll-gate.ts). The scope id matches the seeded
2081
+ // defined_scope `xero:payroll-payruns`.
2082
+ id: "xero:payroll-payruns",
2083
+ name: "Payroll pay runs (draft)",
2084
+ description: "Let agents create DRAFT pay runs in Xero Payroll (Australia) and fill in earnings lines, each held for human approval. Agents never post, approve or finalise a pay run; a person does that in Xero. Off until you turn it on. After turning it on, reconnect Xero so it can grant payroll access.",
2085
+ access: "write",
2086
+ // payroll.settings.read (Obi Wan b662d8ad8266): create_draft reads
2087
+ // GET /PayrollCalendars/<id> to check the calendar name, and Xero puts
2088
+ // PayrollCalendars under payroll.settings(.read). Declared HERE too, so
2089
+ // an agent with the payroll READ skill excluded can still do it once its
2090
+ // org opts in. Read-only; a non-opted org still gets it only via
2091
+ // xero:payroll, because the opt-in filter drops scope IDS, not strings.
2092
+ //
2093
+ // What opting in makes reachable (Obi Wan 5f8a1b871260): these three
2094
+ // scopes enter the agent's effective_scopes, and NOTHING else. They do
2095
+ // NOT unlock the vendor MCP's payroll read tools (employees, leave,
2096
+ // timesheets): xero-mcp-server's tool gate requires an exact `.read`
2097
+ // scope that only xero:payroll declares (PAYROLL_TOOL_REQUIRED_SCOPES in
2098
+ // xero-mcp-server/src/tools/tool-factory.ts), and settings.read is never
2099
+ // a tool's only requirement. So an operator's exclusion of the Payroll &
2100
+ // HR read skill still holds after the org opts in to draft pay runs.
2101
+ required_scopes: ["payroll.payruns", "payroll.payslip", "payroll.settings.read"],
2102
+ requires_org_opt_in: true
2103
+ }
2072
2104
  ]
2073
2105
  },
2074
2106
  {
@@ -3859,7 +3891,7 @@ var INTEGRATION_REGISTRY = [
3859
3891
  // noting, because this registry is what the org-scoped premium surface
3860
3892
  // reads and the seed is not.
3861
3893
  //
3862
- // THE ONE `requires_org_opt_in` CAPABILITY TODAY, and the reason the
3894
+ // THE FIRST `requires_org_opt_in` CAPABILITY (CS-2548 added xero:payroll-payruns), and the reason the
3863
3895
  // field exists. Live advising streams a meeting IN FLIGHT to a
3864
3896
  // server-side vet and meters per armed minute — a different exposure
3865
3897
  // from reading a transcript afterwards (ADR-0072), and a recurring
@@ -19081,4 +19113,4 @@ export {
19081
19113
  HOST_ROTATE_KEY_CONFLICT,
19082
19114
  shouldMintReplacementKey
19083
19115
  };
19084
- //# sourceMappingURL=chunk-DITI25ZO.js.map
19116
+ //# sourceMappingURL=chunk-LAJEUIP7.js.map