@integrity-labs/agt-cli 0.28.1204 → 0.28.1206

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 (30) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-PRW37VJ2.js → chunk-4KVM4X2T.js} +5 -5
  3. package/dist/{chunk-WCN2OJQT.js → chunk-DL7C7A67.js} +160 -1
  4. package/dist/chunk-DL7C7A67.js.map +1 -0
  5. package/dist/{chunk-M5XKZVBC.js → chunk-XMLBF6V3.js} +3 -3
  6. package/dist/{chunk-QL7LKEYQ.js → chunk-XNOYEQAX.js} +2 -2
  7. package/dist/{chunk-KKQRAJQV.js → chunk-YI3KCZXM.js} +2 -2
  8. package/dist/{claude-code-updater-QRDRPUGF.js → claude-code-updater-QZTNU4CD.js} +3 -3
  9. package/dist/{claude-pair-runtime-PQNF3H4Q.js → claude-pair-runtime-GETOMHWO.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/augmented-admin.js +1 -1
  12. package/dist/mcp/direct-chat-channel.js +159 -0
  13. package/dist/mcp/index.js +159 -0
  14. package/dist/mcp/origami.js +159 -0
  15. package/dist/mcp/slack-channel.js +159 -0
  16. package/dist/mcp/telegram-channel.js +159 -0
  17. package/dist/{persistent-session-SJ25HFBM.js → persistent-session-7CQA4G4I.js} +4 -4
  18. package/dist/{responsiveness-probe-TB2T2Q4L.js → responsiveness-probe-FEJ4I6EB.js} +4 -4
  19. package/dist/{session-auth-dead-2XSQ6BRX.js → session-auth-dead-6GJ3PL4P.js} +3 -3
  20. package/package.json +1 -1
  21. package/dist/chunk-WCN2OJQT.js.map +0 -1
  22. /package/dist/{chunk-PRW37VJ2.js.map → chunk-4KVM4X2T.js.map} +0 -0
  23. /package/dist/{chunk-M5XKZVBC.js.map → chunk-XMLBF6V3.js.map} +0 -0
  24. /package/dist/{chunk-QL7LKEYQ.js.map → chunk-XNOYEQAX.js.map} +0 -0
  25. /package/dist/{chunk-KKQRAJQV.js.map → chunk-YI3KCZXM.js.map} +0 -0
  26. /package/dist/{claude-code-updater-QRDRPUGF.js.map → claude-code-updater-QZTNU4CD.js.map} +0 -0
  27. /package/dist/{claude-pair-runtime-PQNF3H4Q.js.map → claude-pair-runtime-GETOMHWO.js.map} +0 -0
  28. /package/dist/{persistent-session-SJ25HFBM.js.map → persistent-session-7CQA4G4I.js.map} +0 -0
  29. /package/dist/{responsiveness-probe-TB2T2Q4L.js.map → responsiveness-probe-FEJ4I6EB.js.map} +0 -0
  30. /package/dist/{session-auth-dead-2XSQ6BRX.js.map → session-auth-dead-6GJ3PL4P.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,17 +40,17 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-PRW37VJ2.js";
43
+ } from "../chunk-4KVM4X2T.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-M5XKZVBC.js";
48
+ } from "../chunk-XMLBF6V3.js";
49
49
  import {
50
50
  markDailySessionSpawn,
51
51
  sessionFileExists,
52
52
  sessionTranscriptDir
53
- } from "../chunk-KKQRAJQV.js";
53
+ } from "../chunk-YI3KCZXM.js";
54
54
  import "../chunk-HYQ7VOC3.js";
55
55
  import "../chunk-6HBXEJHO.js";
56
56
  import "../chunk-XWVM4KPK.js";
@@ -83,7 +83,7 @@ import {
83
83
  requiredMcpWildcard,
84
84
  resolveChannels,
85
85
  serializeManifestForSlackCli
86
- } from "../chunk-WCN2OJQT.js";
86
+ } from "../chunk-DL7C7A67.js";
87
87
  import "../chunk-AIUIMEUS.js";
88
88
  import "../chunk-DGUM43GV.js";
89
89
 
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
5200
5200
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5201
5201
  import chalk17 from "chalk";
5202
5202
  import ora15 from "ora";
5203
- var cliVersion = true ? "0.28.1204" : "dev";
5203
+ var cliVersion = true ? "0.28.1206" : "dev";
5204
5204
  async function fetchLatestVersion() {
5205
5205
  const host2 = getHost();
5206
5206
  if (!host2) return null;
@@ -6460,7 +6460,7 @@ function handleError(err) {
6460
6460
  }
6461
6461
 
6462
6462
  // src/bin/agt.ts
6463
- var cliVersion2 = true ? "0.28.1204" : "dev";
6463
+ var cliVersion2 = true ? "0.28.1206" : "dev";
6464
6464
  var program = new Command();
6465
6465
  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");
6466
6466
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -16,11 +16,11 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-M5XKZVBC.js";
19
+ } from "./chunk-XMLBF6V3.js";
20
20
  import {
21
21
  readDailySessionPin,
22
22
  sessionTranscriptDir
23
- } from "./chunk-KKQRAJQV.js";
23
+ } from "./chunk-YI3KCZXM.js";
24
24
  import {
25
25
  classifyUnanswerablePane,
26
26
  isConsumerTermsDialogVisible,
@@ -92,7 +92,7 @@ import {
92
92
  scanConfigForLiteralSecrets,
93
93
  worseConnectivityOutcome,
94
94
  wrapScheduledTaskPrompt
95
- } from "./chunk-WCN2OJQT.js";
95
+ } from "./chunk-DL7C7A67.js";
96
96
  import {
97
97
  claudeJsonPathFor,
98
98
  effectiveClaudeJsonPath,
@@ -8082,7 +8082,7 @@ function exchangeFailureKind(err) {
8082
8082
  }
8083
8083
 
8084
8084
  // src/lib/api-client.ts
8085
- var agtCliVersion = true ? "0.28.1204" : "dev";
8085
+ var agtCliVersion = true ? "0.28.1206" : "dev";
8086
8086
  var lastConfigHash = null;
8087
8087
  function setConfigHash(hash) {
8088
8088
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -13683,4 +13683,4 @@ export {
13683
13683
  managerInstallSystemUnitCommand,
13684
13684
  managerUninstallSystemUnitCommand
13685
13685
  };
13686
- //# sourceMappingURL=chunk-PRW37VJ2.js.map
13686
+ //# sourceMappingURL=chunk-4KVM4X2T.js.map
@@ -2206,6 +2206,40 @@ var INTEGRATION_REGISTRY = [
2206
2206
  docs_url: "https://docs.plaud.ai/plaud-mcp-cli/mcp",
2207
2207
  beta: true
2208
2208
  },
2209
+ {
2210
+ id: "datadog-ap1",
2211
+ name: "Datadog (AP1)",
2212
+ category: "infrastructure",
2213
+ description: "Read Datadog on the AP1 site (ap1.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
2214
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
2215
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
2216
+ // OAUTH_PROVIDERS['datadog-ap1'] for why. Read-only is enforced by the
2217
+ // customer consenting as a read-only Datadog user (the only scope is
2218
+ // mcp_all), backed by the proxy's read-tool allowlist.
2219
+ supported_auth_types: ["oauth2"],
2220
+ capabilities: [
2221
+ { id: "datadog-ap1:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
2222
+ ],
2223
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
2224
+ beta: true
2225
+ },
2226
+ {
2227
+ id: "datadog-ap2",
2228
+ name: "Datadog (AP2)",
2229
+ category: "infrastructure",
2230
+ description: "Read Datadog on the AP2 site (ap2.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
2231
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
2232
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
2233
+ // OAUTH_PROVIDERS['datadog-ap2'] for why. Read-only is enforced by the
2234
+ // customer consenting as a read-only Datadog user (the only scope is
2235
+ // mcp_all), backed by the proxy's read-tool allowlist.
2236
+ supported_auth_types: ["oauth2"],
2237
+ capabilities: [
2238
+ { id: "datadog-ap2:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
2239
+ ],
2240
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
2241
+ beta: true
2242
+ },
2209
2243
  {
2210
2244
  id: "anchor-browser",
2211
2245
  name: "Anchor Browser",
@@ -11886,6 +11920,27 @@ var StreamEncoder = class {
11886
11920
  };
11887
11921
 
11888
11922
  // ../../packages/core/dist/integrations/oauth-providers.js
11923
+ var DATADOG_READ_TOOLS = [
11924
+ "search_datadog_events",
11925
+ "get_datadog_incident",
11926
+ "get_datadog_metric",
11927
+ "get_datadog_metric_context",
11928
+ "search_datadog_monitors",
11929
+ "get_datadog_trace",
11930
+ "search_datadog_dashboards",
11931
+ "get_datadog_notebook",
11932
+ "search_datadog_notebooks",
11933
+ "search_datadog_hosts",
11934
+ "search_datadog_incidents",
11935
+ "search_datadog_metrics",
11936
+ "search_datadog_entities",
11937
+ "search_datadog_spans",
11938
+ "aggregate_spans",
11939
+ "analyze_datadog_logs",
11940
+ "search_datadog_logs",
11941
+ "search_datadog_rum_events",
11942
+ "aggregate_rum_events"
11943
+ ];
11889
11944
  var OAUTH_PROVIDERS = {
11890
11945
  "google-workspace": {
11891
11946
  definitionId: "google-workspace",
@@ -12306,6 +12361,110 @@ var OAUTH_PROVIDERS = {
12306
12361
  // (runbook Step 3, a gate before customer use).
12307
12362
  toolAllowlist: ["get_current_user", "list_files", "get_file", "get_note", "get_transcript"]
12308
12363
  },
12364
+ "datadog-ap1": {
12365
+ // CS-2136: Datadog's official MCP on the AP1 site - remote streamable-HTTP at
12366
+ // https://mcp.ap1.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
12367
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
12368
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
12369
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
12370
+ // re-read live on 2026-11-05, not inferred:
12371
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-protected-resource gives
12372
+ // resource https://mcp.ap1.datadoghq.com and AS
12373
+ // https://mcp.ap1.datadoghq.com/v1/mcp;
12374
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
12375
+ // gives authorize https://ap1.datadoghq.com/oauth2/v1/authorize, token
12376
+ // https://ap1.datadoghq.com/api/v2/oauth2/token, register
12377
+ // https://ap1.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
12378
+ // the authorization_code + refresh_token grants, and scopes_supported
12379
+ // ['mcp_all'], the ONLY scope.
12380
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
12381
+ //
12382
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
12383
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
12384
+ // differ per site. All of those are static per definitionId here and in the
12385
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
12386
+ // are one more entry each when a customer needs them.
12387
+ //
12388
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
12389
+ // connecting USER's own role on every call, so read-only comes from the
12390
+ // customer consenting as a dedicated read-only Datadog user (setup text and
12391
+ // runbook), plus this allowlist on our side.
12392
+ //
12393
+ // DCR (operator step, NOT done as of this commit): POST to
12394
+ // https://ap1.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
12395
+ // store the client id as OAUTH_DATADOG_AP1_CLIENT_ID. Unset, Connect
12396
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
12397
+ definitionId: "datadog-ap1",
12398
+ authorizeUrl: "https://ap1.datadoghq.com/oauth2/v1/authorize",
12399
+ tokenUrl: "https://ap1.datadoghq.com/api/v2/oauth2/token",
12400
+ defaultScopes: ["mcp_all"],
12401
+ supportsRefresh: true,
12402
+ extraAuthorizeParams: {},
12403
+ clientAuthMethod: "body",
12404
+ pkce: "S256",
12405
+ publicClient: true,
12406
+ mcpUrl: "https://mcp.ap1.datadoghq.com/v1/mcp",
12407
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
12408
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
12409
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
12410
+ // names come from the docs, not an authenticated tools/list, and Datadog
12411
+ // says they are still changing; the proxy SKIPS a name the server does not
12412
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
12413
+ // gate before customer use).
12414
+ toolAllowlist: DATADOG_READ_TOOLS
12415
+ },
12416
+ "datadog-ap2": {
12417
+ // CS-2136: Datadog's official MCP on the AP2 site - remote streamable-HTTP at
12418
+ // https://mcp.ap2.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
12419
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
12420
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
12421
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
12422
+ // re-read live on 2026-11-05, not inferred:
12423
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-protected-resource gives
12424
+ // resource https://mcp.ap2.datadoghq.com and AS
12425
+ // https://mcp.ap2.datadoghq.com/v1/mcp;
12426
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
12427
+ // gives authorize https://ap2.datadoghq.com/oauth2/v1/authorize, token
12428
+ // https://ap2.datadoghq.com/api/v2/oauth2/token, register
12429
+ // https://ap2.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
12430
+ // the authorization_code + refresh_token grants, and scopes_supported
12431
+ // ['mcp_all'], the ONLY scope.
12432
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
12433
+ //
12434
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
12435
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
12436
+ // differ per site. All of those are static per definitionId here and in the
12437
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
12438
+ // are one more entry each when a customer needs them.
12439
+ //
12440
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
12441
+ // connecting USER's own role on every call, so read-only comes from the
12442
+ // customer consenting as a dedicated read-only Datadog user (setup text and
12443
+ // runbook), plus this allowlist on our side.
12444
+ //
12445
+ // DCR (operator step, NOT done as of this commit): POST to
12446
+ // https://ap2.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
12447
+ // store the client id as OAUTH_DATADOG_AP2_CLIENT_ID. Unset, Connect
12448
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
12449
+ definitionId: "datadog-ap2",
12450
+ authorizeUrl: "https://ap2.datadoghq.com/oauth2/v1/authorize",
12451
+ tokenUrl: "https://ap2.datadoghq.com/api/v2/oauth2/token",
12452
+ defaultScopes: ["mcp_all"],
12453
+ supportsRefresh: true,
12454
+ extraAuthorizeParams: {},
12455
+ clientAuthMethod: "body",
12456
+ pkce: "S256",
12457
+ publicClient: true,
12458
+ mcpUrl: "https://mcp.ap2.datadoghq.com/v1/mcp",
12459
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
12460
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
12461
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
12462
+ // names come from the docs, not an authenticated tools/list, and Datadog
12463
+ // says they are still changing; the proxy SKIPS a name the server does not
12464
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
12465
+ // gate before customer use).
12466
+ toolAllowlist: DATADOG_READ_TOOLS
12467
+ },
12309
12468
  "notion-cli": {
12310
12469
  // Notion's public OAuth app. Tokens are workspace-scoped and long-lived —
12311
12470
  // Notion does not issue refresh_tokens, so `supportsRefresh: false` and
@@ -17705,4 +17864,4 @@ export {
17705
17864
  HOST_ROTATE_KEY_CONFLICT,
17706
17865
  shouldMintReplacementKey
17707
17866
  };
17708
- //# sourceMappingURL=chunk-WCN2OJQT.js.map
17867
+ //# sourceMappingURL=chunk-DL7C7A67.js.map