@integrity-labs/agt-cli 0.27.98 → 0.27.100

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.
@@ -3756,6 +3756,70 @@ The marginal cost of completeness is near zero. Do the whole thing.
3756
3756
  ${frontmatter.environment === "prod" ? "- Production environment: exercise extra caution with all operations.\n" : ""}`;
3757
3757
  }
3758
3758
 
3759
+ // ../../packages/core/dist/provisioning/env-integrations-file.js
3760
+ function shellQuote(value) {
3761
+ return `'${value.replace(/'/g, `'\\''`)}'`;
3762
+ }
3763
+ var CHANNEL_SECRET_ENV_KEYS = [
3764
+ "SLACK_BOT_TOKEN",
3765
+ "SLACK_APP_TOKEN",
3766
+ "TELEGRAM_BOT_TOKEN",
3767
+ "MSTEAMS_CLIENT_SECRET"
3768
+ ];
3769
+ var MCP_SERVER_SECRET_ENV_KEYS = [
3770
+ "COMPOSIO_API_KEY",
3771
+ "PIPEDREAM_CLIENT_SECRET"
3772
+ ];
3773
+ var PRESERVED_ENV_KEYS = [
3774
+ ...CHANNEL_SECRET_ENV_KEYS,
3775
+ ...MCP_SERVER_SECRET_ENV_KEYS
3776
+ ];
3777
+ var HEADER = "# Augmented integrations \u2014 auto-generated, do not edit";
3778
+ function parseEnvFileEntries(content) {
3779
+ const out = /* @__PURE__ */ new Map();
3780
+ for (const line of content.split("\n")) {
3781
+ if (!line || line.startsWith("#") || !line.includes("="))
3782
+ continue;
3783
+ const eqIdx = line.indexOf("=");
3784
+ out.set(line.slice(0, eqIdx), line.slice(eqIdx + 1));
3785
+ }
3786
+ return out;
3787
+ }
3788
+ function renderEnvIntegrations(entries) {
3789
+ const lines = [HEADER];
3790
+ for (const [key, rendered] of entries)
3791
+ lines.push(`${key}=${rendered}`);
3792
+ return lines.join("\n") + "\n";
3793
+ }
3794
+ function mergeEnvIntegrationsContent(existing, args) {
3795
+ const current = existing === null ? /* @__PURE__ */ new Map() : parseEnvFileEntries(existing);
3796
+ let next;
3797
+ if (args.mode === "upsert") {
3798
+ next = new Map(current);
3799
+ for (const [key, raw] of Object.entries(args.updates)) {
3800
+ if (raw === null)
3801
+ next.delete(key);
3802
+ else
3803
+ next.set(key, shellQuote(raw));
3804
+ }
3805
+ } else {
3806
+ next = /* @__PURE__ */ new Map();
3807
+ for (const [key, raw] of Object.entries(args.updates)) {
3808
+ if (raw !== null)
3809
+ next.set(key, shellQuote(raw));
3810
+ }
3811
+ const preserve = args.preserveKeys ?? PRESERVED_ENV_KEYS;
3812
+ for (const key of preserve) {
3813
+ if (key in args.updates)
3814
+ continue;
3815
+ if (!next.has(key) && current.has(key)) {
3816
+ next.set(key, current.get(key));
3817
+ }
3818
+ }
3819
+ }
3820
+ return renderEnvIntegrations(next);
3821
+ }
3822
+
3759
3823
  // ../../packages/core/dist/provisioning/frameworks/claudecode/index.js
3760
3824
  import { readFileSync as readFileSync5, writeFileSync as writeFileSync5, mkdirSync as mkdirSync4, existsSync as existsSync5, chmodSync as chmodSync5, readdirSync, rmSync, copyFileSync } from "fs";
3761
3825
  import { join as join4, relative, dirname as dirname4 } from "path";
@@ -3848,70 +3912,6 @@ function resolveTemplate(input, ctx) {
3848
3912
  return { value, omit };
3849
3913
  }
3850
3914
 
3851
- // ../../packages/core/dist/provisioning/env-integrations-file.js
3852
- function shellQuote(value) {
3853
- return `'${value.replace(/'/g, `'\\''`)}'`;
3854
- }
3855
- var CHANNEL_SECRET_ENV_KEYS = [
3856
- "SLACK_BOT_TOKEN",
3857
- "SLACK_APP_TOKEN",
3858
- "TELEGRAM_BOT_TOKEN",
3859
- "MSTEAMS_CLIENT_SECRET"
3860
- ];
3861
- var MCP_SERVER_SECRET_ENV_KEYS = [
3862
- "COMPOSIO_API_KEY",
3863
- "PIPEDREAM_CLIENT_SECRET"
3864
- ];
3865
- var PRESERVED_ENV_KEYS = [
3866
- ...CHANNEL_SECRET_ENV_KEYS,
3867
- ...MCP_SERVER_SECRET_ENV_KEYS
3868
- ];
3869
- var HEADER = "# Augmented integrations \u2014 auto-generated, do not edit";
3870
- function parseEnvFileEntries(content) {
3871
- const out = /* @__PURE__ */ new Map();
3872
- for (const line of content.split("\n")) {
3873
- if (!line || line.startsWith("#") || !line.includes("="))
3874
- continue;
3875
- const eqIdx = line.indexOf("=");
3876
- out.set(line.slice(0, eqIdx), line.slice(eqIdx + 1));
3877
- }
3878
- return out;
3879
- }
3880
- function renderEnvIntegrations(entries) {
3881
- const lines = [HEADER];
3882
- for (const [key, rendered] of entries)
3883
- lines.push(`${key}=${rendered}`);
3884
- return lines.join("\n") + "\n";
3885
- }
3886
- function mergeEnvIntegrationsContent(existing, args) {
3887
- const current = existing === null ? /* @__PURE__ */ new Map() : parseEnvFileEntries(existing);
3888
- let next;
3889
- if (args.mode === "upsert") {
3890
- next = new Map(current);
3891
- for (const [key, raw] of Object.entries(args.updates)) {
3892
- if (raw === null)
3893
- next.delete(key);
3894
- else
3895
- next.set(key, shellQuote(raw));
3896
- }
3897
- } else {
3898
- next = /* @__PURE__ */ new Map();
3899
- for (const [key, raw] of Object.entries(args.updates)) {
3900
- if (raw !== null)
3901
- next.set(key, shellQuote(raw));
3902
- }
3903
- const preserve = args.preserveKeys ?? PRESERVED_ENV_KEYS;
3904
- for (const key of preserve) {
3905
- if (key in args.updates)
3906
- continue;
3907
- if (!next.has(key) && current.has(key)) {
3908
- next.set(key, current.get(key));
3909
- }
3910
- }
3911
- }
3912
- return renderEnvIntegrations(next);
3913
- }
3914
-
3915
3915
  // ../../packages/core/dist/provisioning/frameworks/claudecode/index.js
3916
3916
  var VALID_CODE_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
3917
3917
  var SECRET_FILE_MODE = 384;
@@ -7552,6 +7552,7 @@ export {
7552
7552
  INTEGRATIONS_SECTION_START,
7553
7553
  INTEGRATIONS_SECTION_END,
7554
7554
  estimateActiveTasksTokens,
7555
+ CHANNEL_SECRET_ENV_KEYS,
7555
7556
  provisionStopHook,
7556
7557
  provisionIsolationHook,
7557
7558
  provisionOrientHook,
@@ -7585,4 +7586,4 @@ export {
7585
7586
  managerInstallSystemUnitCommand,
7586
7587
  managerUninstallSystemUnitCommand
7587
7588
  };
7588
- //# sourceMappingURL=chunk-S265L5AN.js.map
7589
+ //# sourceMappingURL=chunk-DV3OH45P.js.map