@elevasis/sdk 0.4.4 → 0.4.5

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 (2) hide show
  1. package/dist/cli.cjs +7 -3
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -43808,7 +43808,7 @@ async function apiDelete(endpoint, apiUrl = resolveApiUrl()) {
43808
43808
  }
43809
43809
 
43810
43810
  // src/cli/version.ts
43811
- var SDK_VERSION = "0.4.4";
43811
+ var SDK_VERSION = "0.4.5";
43812
43812
 
43813
43813
  // src/cli/commands/deploy.ts
43814
43814
  var import_meta2 = {};
@@ -43859,6 +43859,10 @@ async function scanDocumentation() {
43859
43859
  await scan(docsDir, "");
43860
43860
  return files.length > 0 ? files : void 0;
43861
43861
  }
43862
+ function escapeMdx(text) {
43863
+ if (!text) return "";
43864
+ return text.replace(/\|/g, "\\|").replace(/\{/g, "\\{").replace(/\}/g, "\\}");
43865
+ }
43862
43866
  async function generateResourceMap(org) {
43863
43867
  const workflows = org.workflows ?? [];
43864
43868
  const agents = org.agents ?? [];
@@ -43883,7 +43887,7 @@ async function generateResourceMap(org) {
43883
43887
  "| --- | --- | --- | --- | --- |"
43884
43888
  );
43885
43889
  for (const w of workflows) {
43886
- const desc = w.config.description?.replace(/\|/g, "\\|") ?? "";
43890
+ const desc = escapeMdx(w.config.description);
43887
43891
  lines.push(`| \`${w.config.resourceId}\` | ${w.config.name} | ${w.config.version} | ${w.config.status} | ${desc} |`);
43888
43892
  }
43889
43893
  lines.push("");
@@ -43896,7 +43900,7 @@ async function generateResourceMap(org) {
43896
43900
  "| --- | --- | --- | --- | --- |"
43897
43901
  );
43898
43902
  for (const a of agents) {
43899
- const desc = a.config.description?.replace(/\|/g, "\\|") ?? "";
43903
+ const desc = escapeMdx(a.config.description);
43900
43904
  lines.push(`| \`${a.config.resourceId}\` | ${a.config.name} | ${a.config.version} | ${a.config.status} | ${desc} |`);
43901
43905
  }
43902
43906
  lines.push("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "comment:bin": "IMPORTANT: This package shares the 'elevasis' binary name with @repo/cli. They never conflict because @elevasis/sdk must NEVER be added as a dependency of any workspace package (apps/*, packages/*, organizations/*). Workspace projects use @repo/cli for the 'elevasis' binary. External developers (outside the workspace) get this SDK's binary via npm install.",
6
6
  "type": "module",