@integrity-labs/agt-cli 0.28.1216 → 0.28.1217

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 (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-B5ZQQ7Z2.js → chunk-4EY3CUZB.js} +31 -1
  3. package/dist/chunk-4EY3CUZB.js.map +1 -0
  4. package/dist/{chunk-QHO44YUB.js → chunk-DYEJT36T.js} +2 -2
  5. package/dist/{chunk-QCQYDXYP.js → chunk-G4TOCXOT.js} +3 -3
  6. package/dist/{chunk-U63NF4FC.js → chunk-IGNZSNKB.js} +2 -2
  7. package/dist/{chunk-KZMARLWR.js → chunk-WIWPIZFN.js} +37 -12
  8. package/dist/{chunk-KZMARLWR.js.map → chunk-WIWPIZFN.js.map} +1 -1
  9. package/dist/{claude-code-updater-FTIWTIDK.js → claude-code-updater-WJIPTVFL.js} +3 -3
  10. package/dist/{claude-pair-runtime-M3QT5MWP.js → claude-pair-runtime-P3EO7NO3.js} +3 -3
  11. package/dist/lib/manager-worker.js +19 -19
  12. package/dist/mcp/direct-chat-channel.js +34 -18
  13. package/dist/mcp/index.js +34 -18
  14. package/dist/mcp/origami.js +34 -18
  15. package/dist/mcp/slack-channel.js +34 -18
  16. package/dist/mcp/telegram-channel.js +34 -18
  17. package/dist/{persistent-session-WEQTZT4Z.js → persistent-session-3QL5YBCS.js} +4 -4
  18. package/dist/{responsiveness-probe-LMBZ5JOK.js → responsiveness-probe-BCVBNGYY.js} +4 -4
  19. package/dist/{session-auth-dead-NRVMU7CE.js → session-auth-dead-YJH56AWH.js} +3 -3
  20. package/package.json +1 -1
  21. package/dist/chunk-B5ZQQ7Z2.js.map +0 -1
  22. /package/dist/{chunk-QHO44YUB.js.map → chunk-DYEJT36T.js.map} +0 -0
  23. /package/dist/{chunk-QCQYDXYP.js.map → chunk-G4TOCXOT.js.map} +0 -0
  24. /package/dist/{chunk-U63NF4FC.js.map → chunk-IGNZSNKB.js.map} +0 -0
  25. /package/dist/{claude-code-updater-FTIWTIDK.js.map → claude-code-updater-WJIPTVFL.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-M3QT5MWP.js.map → claude-pair-runtime-P3EO7NO3.js.map} +0 -0
  27. /package/dist/{persistent-session-WEQTZT4Z.js.map → persistent-session-3QL5YBCS.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-LMBZ5JOK.js.map → responsiveness-probe-BCVBNGYY.js.map} +0 -0
  29. /package/dist/{session-auth-dead-NRVMU7CE.js.map → session-auth-dead-YJH56AWH.js.map} +0 -0
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-QHO44YUB.js";
16
+ } from "./chunk-DYEJT36T.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-B5ZQQ7Z2.js";
18
+ import "./chunk-4EY3CUZB.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-FTIWTIDK.js.map
37
+ //# sourceMappingURL=claude-code-updater-WJIPTVFL.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-B5ZQQ7Z2.js";
11
+ } from "./chunk-4EY3CUZB.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-WEQTZT4Z.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-3QL5YBCS.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-M3QT5MWP.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-P3EO7NO3.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-KZMARLWR.js";
88
+ } from "../chunk-WIWPIZFN.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-QHO44YUB.js";
102
+ } from "../chunk-DYEJT36T.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-QCQYDXYP.js";
195
+ } from "../chunk-G4TOCXOT.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-U63NF4FC.js";
205
+ } from "../chunk-IGNZSNKB.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-B5ZQQ7Z2.js";
333
+ } from "../chunk-4EY3CUZB.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15650,7 +15650,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15650
15650
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15651
15651
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15652
15652
  async function channelInboundActivityAgeSecondsFor(codeName) {
15653
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-LMBZ5JOK.js");
15653
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BCVBNGYY.js");
15654
15654
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15655
15655
  if (newest === null) return null;
15656
15656
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16447,7 +16447,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16447
16447
  var lastVersionCheckAt = 0;
16448
16448
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16449
16449
  var lastResponsivenessProbeAt = 0;
16450
- var agtCliVersion = true ? "0.28.1216" : "dev";
16450
+ var agtCliVersion = true ? "0.28.1217" : "dev";
16451
16451
  function resolveBrewPath(execFileSync3) {
16452
16452
  try {
16453
16453
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18351,7 +18351,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18351
18351
  if (codeNames.length === 0) return;
18352
18352
  void (async () => {
18353
18353
  try {
18354
- const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
18354
+ const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
18355
18355
  await api.post("/host/heartbeat", {
18356
18356
  host_id: hostId,
18357
18357
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18494,7 +18494,7 @@ async function pollCycleInner() {
18494
18494
  }
18495
18495
  try {
18496
18496
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18497
- const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
18497
+ const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
18498
18498
  const diagCodeNames = [...agentState.persistentSessionAgents];
18499
18499
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18500
18500
  let tailscaleHostname;
@@ -18752,7 +18752,7 @@ async function pollCycleInner() {
18752
18752
  }
18753
18753
  try {
18754
18754
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18755
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-FTIWTIDK.js");
18755
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-WJIPTVFL.js");
18756
18756
  const securityFloor = currentSecurityFloor();
18757
18757
  claudeUpdaterInFlight = true;
18758
18758
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18787,7 +18787,7 @@ async function pollCycleInner() {
18787
18787
  collectPanelessActivityProbes,
18788
18788
  getResponsivenessIntervalMs,
18789
18789
  occupancyQualificationClassifications
18790
- } = await import("../responsiveness-probe-LMBZ5JOK.js");
18790
+ } = await import("../responsiveness-probe-BCVBNGYY.js");
18791
18791
  const probeIntervalMs = getResponsivenessIntervalMs();
18792
18792
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18793
18793
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18904,7 +18904,7 @@ async function pollCycleInner() {
18904
18904
  collectResponsivenessProbes,
18905
18905
  livePendingInboundOldestAgeSeconds,
18906
18906
  parkPendingInbound
18907
- } = await import("../responsiveness-probe-LMBZ5JOK.js");
18907
+ } = await import("../responsiveness-probe-BCVBNGYY.js");
18908
18908
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18909
18909
  const wedgeNow = /* @__PURE__ */ new Date();
18910
18910
  const liveAgents = agentState.persistentSessionAgents;
@@ -19190,7 +19190,7 @@ async function pollCycleInner() {
19190
19190
  }
19191
19191
  }
19192
19192
  );
19193
- const { parkPendingInbound } = await import("../responsiveness-probe-LMBZ5JOK.js");
19193
+ const { parkPendingInbound } = await import("../responsiveness-probe-BCVBNGYY.js");
19194
19194
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19195
19195
  paneFatalStreak.delete(codeName);
19196
19196
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19221,7 +19221,7 @@ async function pollCycleInner() {
19221
19221
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19222
19222
  bindSourceEscalations
19223
19223
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19224
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-WEQTZT4Z.js");
19224
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-3QL5YBCS.js");
19225
19225
  const mountConfig = resolveTranscriptMountConfig();
19226
19226
  const liveAgents = agentState.persistentSessionAgents;
19227
19227
  for (const tracked of [
@@ -19386,7 +19386,7 @@ async function pollCycleInner() {
19386
19386
  }
19387
19387
  try {
19388
19388
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19389
- const { probeSessionAuth } = await import("../session-auth-dead-NRVMU7CE.js");
19389
+ const { probeSessionAuth } = await import("../session-auth-dead-YJH56AWH.js");
19390
19390
  const observations = [];
19391
19391
  const pendingCacheCommits = [];
19392
19392
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24116,7 +24116,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24116
24116
  try {
24117
24117
  const freshId = rotateSessionForWedge(codeName);
24118
24118
  consecutiveWedgeCycles.delete(codeName);
24119
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-LMBZ5JOK.js");
24119
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-BCVBNGYY.js");
24120
24120
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24121
24121
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24122
24122
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24159,7 +24159,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24159
24159
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
24160
24160
  void (async () => {
24161
24161
  try {
24162
- const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
24162
+ const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
24163
24163
  await api.post("/host/heartbeat", {
24164
24164
  host_id: hostId,
24165
24165
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24210,7 +24210,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24210
24210
  }
24211
24211
  try {
24212
24212
  const hostId = await getHostId();
24213
- const { collectDiagnostics } = await import("../persistent-session-WEQTZT4Z.js");
24213
+ const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
24214
24214
  await api.post("/host/heartbeat", {
24215
24215
  host_id: hostId,
24216
24216
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24912,7 +24912,7 @@ async function processClaudePairSessions(agents) {
24912
24912
  snapshotPairConfig,
24913
24913
  // ENG-11659: result -> report body + the manager.log line that records it.
24914
24914
  planPairStartReport
24915
- } = await import("../claude-pair-runtime-M3QT5MWP.js");
24915
+ } = await import("../claude-pair-runtime-P3EO7NO3.js");
24916
24916
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24917
24917
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24918
24918
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -1102,11 +1102,11 @@ var require_util = __commonJS({
1102
1102
  return false;
1103
1103
  }
1104
1104
  exports.schemaHasRules = schemaHasRules;
1105
- function schemaHasRulesButRef(schema, RULES) {
1105
+ function schemaHasRulesButRef(schema, RULES2) {
1106
1106
  if (typeof schema == "boolean")
1107
1107
  return !schema;
1108
1108
  for (const key in schema)
1109
- if (key !== "$ref" && RULES.all[key])
1109
+ if (key !== "$ref" && RULES2.all[key])
1110
1110
  return true;
1111
1111
  return false;
1112
1112
  }
@@ -2500,17 +2500,17 @@ var require_validate = __commonJS({
2500
2500
  }
2501
2501
  function schemaKeywords(it, types, typeErrors, errsCount) {
2502
2502
  const { gen, schema, data, allErrors, opts, self } = it;
2503
- const { RULES } = self;
2504
- if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {
2505
- gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
2503
+ const { RULES: RULES2 } = self;
2504
+ if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
2505
+ gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
2506
2506
  return;
2507
2507
  }
2508
2508
  if (!opts.jtd)
2509
2509
  checkStrictTypes(it, types);
2510
2510
  gen.block(() => {
2511
- for (const group of RULES.rules)
2511
+ for (const group of RULES2.rules)
2512
2512
  groupKeywords(group);
2513
- groupKeywords(RULES.post);
2513
+ groupKeywords(RULES2.post);
2514
2514
  });
2515
2515
  function groupKeywords(group) {
2516
2516
  if (!(0, applicability_1.shouldUseGroup)(schema, group))
@@ -4212,10 +4212,10 @@ var require_core = __commonJS({
4212
4212
  }
4213
4213
  // Remove keyword
4214
4214
  removeKeyword(keyword) {
4215
- const { RULES } = this;
4216
- delete RULES.keywords[keyword];
4217
- delete RULES.all[keyword];
4218
- for (const group of RULES.rules) {
4215
+ const { RULES: RULES2 } = this;
4216
+ delete RULES2.keywords[keyword];
4217
+ delete RULES2.all[keyword];
4218
+ for (const group of RULES2.rules) {
4219
4219
  const i = group.rules.findIndex((rule) => rule.keyword === keyword);
4220
4220
  if (i >= 0)
4221
4221
  group.rules.splice(i, 1);
@@ -4383,9 +4383,9 @@ var require_core = __commonJS({
4383
4383
  }
4384
4384
  var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
4385
4385
  function checkKeyword(keyword, def) {
4386
- const { RULES } = this;
4386
+ const { RULES: RULES2 } = this;
4387
4387
  (0, util_1.eachItem)(keyword, (kwd) => {
4388
- if (RULES.keywords[kwd])
4388
+ if (RULES2.keywords[kwd])
4389
4389
  throw new Error(`Keyword ${kwd} is already defined`);
4390
4390
  if (!KEYWORD_NAME.test(kwd))
4391
4391
  throw new Error(`Keyword ${kwd} has invalid name`);
@@ -4401,13 +4401,13 @@ var require_core = __commonJS({
4401
4401
  const post = definition === null || definition === void 0 ? void 0 : definition.post;
4402
4402
  if (dataType && post)
4403
4403
  throw new Error('keyword with "post" flag cannot have "type"');
4404
- const { RULES } = this;
4405
- let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);
4404
+ const { RULES: RULES2 } = this;
4405
+ let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
4406
4406
  if (!ruleGroup) {
4407
4407
  ruleGroup = { type: dataType, rules: [] };
4408
- RULES.rules.push(ruleGroup);
4408
+ RULES2.rules.push(ruleGroup);
4409
4409
  }
4410
- RULES.keywords[keyword] = true;
4410
+ RULES2.keywords[keyword] = true;
4411
4411
  if (!definition)
4412
4412
  return;
4413
4413
  const rule = {
@@ -4422,7 +4422,7 @@ var require_core = __commonJS({
4422
4422
  addBeforeRule.call(this, ruleGroup, rule, definition.before);
4423
4423
  else
4424
4424
  ruleGroup.rules.push(rule);
4425
- RULES.all[keyword] = rule;
4425
+ RULES2.all[keyword] = rule;
4426
4426
  (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
4427
4427
  }
4428
4428
  function addBeforeRule(ruleGroup, rule, before) {
@@ -42399,6 +42399,22 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
42399
42399
  REMOTE_MCP_PROXY_ENV.extraHeaders
42400
42400
  ];
42401
42401
 
42402
+ // ../core/dist/integrations/byo-client-credentials.js
42403
+ var RULES = {
42404
+ "composio/metaads": {
42405
+ idLabel: "App ID",
42406
+ secretLabel: "App Secret",
42407
+ idPlaceholder: "Numbers only, e.g. 1234567890123456",
42408
+ secretPlaceholder: "Your Meta app's App Secret",
42409
+ // Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
42410
+ // shorter legacy id still passes; anything with a letter, space or slash
42411
+ // is certainly not one.
42412
+ idPattern: /^[0-9]{5,20}$/,
42413
+ idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
42414
+ }
42415
+ };
42416
+ var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
42417
+
42402
42418
  // ../core/dist/direct-chat/upload.js
42403
42419
  var MB2 = 1024 * 1024;
42404
42420
  var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;
package/dist/mcp/index.js CHANGED
@@ -1102,11 +1102,11 @@ var require_util = __commonJS({
1102
1102
  return false;
1103
1103
  }
1104
1104
  exports.schemaHasRules = schemaHasRules;
1105
- function schemaHasRulesButRef(schema, RULES) {
1105
+ function schemaHasRulesButRef(schema, RULES2) {
1106
1106
  if (typeof schema == "boolean")
1107
1107
  return !schema;
1108
1108
  for (const key in schema)
1109
- if (key !== "$ref" && RULES.all[key])
1109
+ if (key !== "$ref" && RULES2.all[key])
1110
1110
  return true;
1111
1111
  return false;
1112
1112
  }
@@ -2500,17 +2500,17 @@ var require_validate = __commonJS({
2500
2500
  }
2501
2501
  function schemaKeywords(it, types, typeErrors, errsCount) {
2502
2502
  const { gen, schema, data, allErrors, opts, self } = it;
2503
- const { RULES } = self;
2504
- if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {
2505
- gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
2503
+ const { RULES: RULES2 } = self;
2504
+ if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
2505
+ gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
2506
2506
  return;
2507
2507
  }
2508
2508
  if (!opts.jtd)
2509
2509
  checkStrictTypes(it, types);
2510
2510
  gen.block(() => {
2511
- for (const group of RULES.rules)
2511
+ for (const group of RULES2.rules)
2512
2512
  groupKeywords(group);
2513
- groupKeywords(RULES.post);
2513
+ groupKeywords(RULES2.post);
2514
2514
  });
2515
2515
  function groupKeywords(group) {
2516
2516
  if (!(0, applicability_1.shouldUseGroup)(schema, group))
@@ -4212,10 +4212,10 @@ var require_core = __commonJS({
4212
4212
  }
4213
4213
  // Remove keyword
4214
4214
  removeKeyword(keyword) {
4215
- const { RULES } = this;
4216
- delete RULES.keywords[keyword];
4217
- delete RULES.all[keyword];
4218
- for (const group of RULES.rules) {
4215
+ const { RULES: RULES2 } = this;
4216
+ delete RULES2.keywords[keyword];
4217
+ delete RULES2.all[keyword];
4218
+ for (const group of RULES2.rules) {
4219
4219
  const i = group.rules.findIndex((rule) => rule.keyword === keyword);
4220
4220
  if (i >= 0)
4221
4221
  group.rules.splice(i, 1);
@@ -4383,9 +4383,9 @@ var require_core = __commonJS({
4383
4383
  }
4384
4384
  var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
4385
4385
  function checkKeyword(keyword, def) {
4386
- const { RULES } = this;
4386
+ const { RULES: RULES2 } = this;
4387
4387
  (0, util_1.eachItem)(keyword, (kwd) => {
4388
- if (RULES.keywords[kwd])
4388
+ if (RULES2.keywords[kwd])
4389
4389
  throw new Error(`Keyword ${kwd} is already defined`);
4390
4390
  if (!KEYWORD_NAME.test(kwd))
4391
4391
  throw new Error(`Keyword ${kwd} has invalid name`);
@@ -4401,13 +4401,13 @@ var require_core = __commonJS({
4401
4401
  const post = definition === null || definition === void 0 ? void 0 : definition.post;
4402
4402
  if (dataType && post)
4403
4403
  throw new Error('keyword with "post" flag cannot have "type"');
4404
- const { RULES } = this;
4405
- let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);
4404
+ const { RULES: RULES2 } = this;
4405
+ let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
4406
4406
  if (!ruleGroup) {
4407
4407
  ruleGroup = { type: dataType, rules: [] };
4408
- RULES.rules.push(ruleGroup);
4408
+ RULES2.rules.push(ruleGroup);
4409
4409
  }
4410
- RULES.keywords[keyword] = true;
4410
+ RULES2.keywords[keyword] = true;
4411
4411
  if (!definition)
4412
4412
  return;
4413
4413
  const rule = {
@@ -4422,7 +4422,7 @@ var require_core = __commonJS({
4422
4422
  addBeforeRule.call(this, ruleGroup, rule, definition.before);
4423
4423
  else
4424
4424
  ruleGroup.rules.push(rule);
4425
- RULES.all[keyword] = rule;
4425
+ RULES2.all[keyword] = rule;
4426
4426
  (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
4427
4427
  }
4428
4428
  function addBeforeRule(ruleGroup, rule, before) {
@@ -28495,6 +28495,22 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
28495
28495
  REMOTE_MCP_PROXY_ENV.extraHeaders
28496
28496
  ];
28497
28497
 
28498
+ // ../core/dist/integrations/byo-client-credentials.js
28499
+ var RULES = {
28500
+ "composio/metaads": {
28501
+ idLabel: "App ID",
28502
+ secretLabel: "App Secret",
28503
+ idPlaceholder: "Numbers only, e.g. 1234567890123456",
28504
+ secretPlaceholder: "Your Meta app's App Secret",
28505
+ // Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
28506
+ // shorter legacy id still passes; anything with a letter, space or slash
28507
+ // is certainly not one.
28508
+ idPattern: /^[0-9]{5,20}$/,
28509
+ idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
28510
+ }
28511
+ };
28512
+ var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
28513
+
28498
28514
  // ../core/dist/direct-chat/upload.js
28499
28515
  var MB2 = 1024 * 1024;
28500
28516
  var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;
@@ -1102,11 +1102,11 @@ var require_util = __commonJS({
1102
1102
  return false;
1103
1103
  }
1104
1104
  exports.schemaHasRules = schemaHasRules;
1105
- function schemaHasRulesButRef(schema, RULES) {
1105
+ function schemaHasRulesButRef(schema, RULES2) {
1106
1106
  if (typeof schema == "boolean")
1107
1107
  return !schema;
1108
1108
  for (const key in schema)
1109
- if (key !== "$ref" && RULES.all[key])
1109
+ if (key !== "$ref" && RULES2.all[key])
1110
1110
  return true;
1111
1111
  return false;
1112
1112
  }
@@ -2500,17 +2500,17 @@ var require_validate = __commonJS({
2500
2500
  }
2501
2501
  function schemaKeywords(it, types, typeErrors, errsCount) {
2502
2502
  const { gen, schema, data, allErrors, opts, self } = it;
2503
- const { RULES } = self;
2504
- if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {
2505
- gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
2503
+ const { RULES: RULES2 } = self;
2504
+ if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
2505
+ gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
2506
2506
  return;
2507
2507
  }
2508
2508
  if (!opts.jtd)
2509
2509
  checkStrictTypes(it, types);
2510
2510
  gen.block(() => {
2511
- for (const group of RULES.rules)
2511
+ for (const group of RULES2.rules)
2512
2512
  groupKeywords(group);
2513
- groupKeywords(RULES.post);
2513
+ groupKeywords(RULES2.post);
2514
2514
  });
2515
2515
  function groupKeywords(group) {
2516
2516
  if (!(0, applicability_1.shouldUseGroup)(schema, group))
@@ -4212,10 +4212,10 @@ var require_core = __commonJS({
4212
4212
  }
4213
4213
  // Remove keyword
4214
4214
  removeKeyword(keyword) {
4215
- const { RULES } = this;
4216
- delete RULES.keywords[keyword];
4217
- delete RULES.all[keyword];
4218
- for (const group of RULES.rules) {
4215
+ const { RULES: RULES2 } = this;
4216
+ delete RULES2.keywords[keyword];
4217
+ delete RULES2.all[keyword];
4218
+ for (const group of RULES2.rules) {
4219
4219
  const i = group.rules.findIndex((rule) => rule.keyword === keyword);
4220
4220
  if (i >= 0)
4221
4221
  group.rules.splice(i, 1);
@@ -4383,9 +4383,9 @@ var require_core = __commonJS({
4383
4383
  }
4384
4384
  var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
4385
4385
  function checkKeyword(keyword, def) {
4386
- const { RULES } = this;
4386
+ const { RULES: RULES2 } = this;
4387
4387
  (0, util_1.eachItem)(keyword, (kwd) => {
4388
- if (RULES.keywords[kwd])
4388
+ if (RULES2.keywords[kwd])
4389
4389
  throw new Error(`Keyword ${kwd} is already defined`);
4390
4390
  if (!KEYWORD_NAME.test(kwd))
4391
4391
  throw new Error(`Keyword ${kwd} has invalid name`);
@@ -4401,13 +4401,13 @@ var require_core = __commonJS({
4401
4401
  const post = definition === null || definition === void 0 ? void 0 : definition.post;
4402
4402
  if (dataType && post)
4403
4403
  throw new Error('keyword with "post" flag cannot have "type"');
4404
- const { RULES } = this;
4405
- let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);
4404
+ const { RULES: RULES2 } = this;
4405
+ let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
4406
4406
  if (!ruleGroup) {
4407
4407
  ruleGroup = { type: dataType, rules: [] };
4408
- RULES.rules.push(ruleGroup);
4408
+ RULES2.rules.push(ruleGroup);
4409
4409
  }
4410
- RULES.keywords[keyword] = true;
4410
+ RULES2.keywords[keyword] = true;
4411
4411
  if (!definition)
4412
4412
  return;
4413
4413
  const rule = {
@@ -4422,7 +4422,7 @@ var require_core = __commonJS({
4422
4422
  addBeforeRule.call(this, ruleGroup, rule, definition.before);
4423
4423
  else
4424
4424
  ruleGroup.rules.push(rule);
4425
- RULES.all[keyword] = rule;
4425
+ RULES2.all[keyword] = rule;
4426
4426
  (_a2 = definition.implements) === null || _a2 === void 0 ? void 0 : _a2.forEach((kwd) => this.addKeyword(kwd));
4427
4427
  }
4428
4428
  function addBeforeRule(ruleGroup, rule, before) {
@@ -42556,6 +42556,22 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
42556
42556
  REMOTE_MCP_PROXY_ENV.extraHeaders
42557
42557
  ];
42558
42558
 
42559
+ // ../core/dist/integrations/byo-client-credentials.js
42560
+ var RULES = {
42561
+ "composio/metaads": {
42562
+ idLabel: "App ID",
42563
+ secretLabel: "App Secret",
42564
+ idPlaceholder: "Numbers only, e.g. 1234567890123456",
42565
+ secretPlaceholder: "Your Meta app's App Secret",
42566
+ // Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
42567
+ // shorter legacy id still passes; anything with a letter, space or slash
42568
+ // is certainly not one.
42569
+ idPattern: /^[0-9]{5,20}$/,
42570
+ idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
42571
+ }
42572
+ };
42573
+ var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
42574
+
42559
42575
  // ../core/dist/direct-chat/upload.js
42560
42576
  var MB2 = 1024 * 1024;
42561
42577
  var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;
@@ -1105,11 +1105,11 @@ var require_util = __commonJS({
1105
1105
  return false;
1106
1106
  }
1107
1107
  exports.schemaHasRules = schemaHasRules;
1108
- function schemaHasRulesButRef(schema, RULES) {
1108
+ function schemaHasRulesButRef(schema, RULES2) {
1109
1109
  if (typeof schema == "boolean")
1110
1110
  return !schema;
1111
1111
  for (const key2 in schema)
1112
- if (key2 !== "$ref" && RULES.all[key2])
1112
+ if (key2 !== "$ref" && RULES2.all[key2])
1113
1113
  return true;
1114
1114
  return false;
1115
1115
  }
@@ -2503,17 +2503,17 @@ var require_validate = __commonJS({
2503
2503
  }
2504
2504
  function schemaKeywords(it, types, typeErrors, errsCount) {
2505
2505
  const { gen, schema, data, allErrors, opts, self } = it;
2506
- const { RULES } = self;
2507
- if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES))) {
2508
- gen.block(() => keywordCode(it, "$ref", RULES.all.$ref.definition));
2506
+ const { RULES: RULES2 } = self;
2507
+ if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
2508
+ gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
2509
2509
  return;
2510
2510
  }
2511
2511
  if (!opts.jtd)
2512
2512
  checkStrictTypes(it, types);
2513
2513
  gen.block(() => {
2514
- for (const group of RULES.rules)
2514
+ for (const group of RULES2.rules)
2515
2515
  groupKeywords(group);
2516
- groupKeywords(RULES.post);
2516
+ groupKeywords(RULES2.post);
2517
2517
  });
2518
2518
  function groupKeywords(group) {
2519
2519
  if (!(0, applicability_1.shouldUseGroup)(schema, group))
@@ -4215,10 +4215,10 @@ var require_core = __commonJS({
4215
4215
  }
4216
4216
  // Remove keyword
4217
4217
  removeKeyword(keyword) {
4218
- const { RULES } = this;
4219
- delete RULES.keywords[keyword];
4220
- delete RULES.all[keyword];
4221
- for (const group of RULES.rules) {
4218
+ const { RULES: RULES2 } = this;
4219
+ delete RULES2.keywords[keyword];
4220
+ delete RULES2.all[keyword];
4221
+ for (const group of RULES2.rules) {
4222
4222
  const i = group.rules.findIndex((rule) => rule.keyword === keyword);
4223
4223
  if (i >= 0)
4224
4224
  group.rules.splice(i, 1);
@@ -4386,9 +4386,9 @@ var require_core = __commonJS({
4386
4386
  }
4387
4387
  var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
4388
4388
  function checkKeyword(keyword, def) {
4389
- const { RULES } = this;
4389
+ const { RULES: RULES2 } = this;
4390
4390
  (0, util_1.eachItem)(keyword, (kwd) => {
4391
- if (RULES.keywords[kwd])
4391
+ if (RULES2.keywords[kwd])
4392
4392
  throw new Error(`Keyword ${kwd} is already defined`);
4393
4393
  if (!KEYWORD_NAME.test(kwd))
4394
4394
  throw new Error(`Keyword ${kwd} has invalid name`);
@@ -4404,13 +4404,13 @@ var require_core = __commonJS({
4404
4404
  const post = definition === null || definition === void 0 ? void 0 : definition.post;
4405
4405
  if (dataType && post)
4406
4406
  throw new Error('keyword with "post" flag cannot have "type"');
4407
- const { RULES } = this;
4408
- let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);
4407
+ const { RULES: RULES2 } = this;
4408
+ let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
4409
4409
  if (!ruleGroup) {
4410
4410
  ruleGroup = { type: dataType, rules: [] };
4411
- RULES.rules.push(ruleGroup);
4411
+ RULES2.rules.push(ruleGroup);
4412
4412
  }
4413
- RULES.keywords[keyword] = true;
4413
+ RULES2.keywords[keyword] = true;
4414
4414
  if (!definition)
4415
4415
  return;
4416
4416
  const rule = {
@@ -4425,7 +4425,7 @@ var require_core = __commonJS({
4425
4425
  addBeforeRule.call(this, ruleGroup, rule, definition.before);
4426
4426
  else
4427
4427
  ruleGroup.rules.push(rule);
4428
- RULES.all[keyword] = rule;
4428
+ RULES2.all[keyword] = rule;
4429
4429
  (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
4430
4430
  }
4431
4431
  function addBeforeRule(ruleGroup, rule, before) {
@@ -36995,6 +36995,22 @@ function serializeSlackSocketState(state) {
36995
36995
  // ../core/dist/integrations/integration-broker/batch-card.js
36996
36996
  init_slack_block_kit();
36997
36997
 
36998
+ // ../core/dist/integrations/byo-client-credentials.js
36999
+ var RULES = {
37000
+ "composio/metaads": {
37001
+ idLabel: "App ID",
37002
+ secretLabel: "App Secret",
37003
+ idPlaceholder: "Numbers only, e.g. 1234567890123456",
37004
+ secretPlaceholder: "Your Meta app's App Secret",
37005
+ // Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
37006
+ // shorter legacy id still passes; anything with a letter, space or slash
37007
+ // is certainly not one.
37008
+ idPattern: /^[0-9]{5,20}$/,
37009
+ idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
37010
+ }
37011
+ };
37012
+ var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
37013
+
36998
37014
  // ../core/dist/direct-chat/upload.js
36999
37015
  var MB2 = 1024 * 1024;
37000
37016
  var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;