@kvell007/embed-labs-cli 0.1.0-alpha.19 → 0.1.0-alpha.20

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.
package/dist/index.js CHANGED
@@ -29,7 +29,8 @@ const QUERY_USAGE = "Usage: embed query <natural language request> [--account <a
29
29
  const DEFAULT_PLUGIN_RELEASE_URL = process.env.EMBED_PLUGIN_RELEASE_URL?.trim() || "https://api.embedboard.com/plugin-releases/agent-plugins/latest";
30
30
  const PLUGIN_LIST_USAGE = "Usage: embed plugin list [--release-dir <dir>] [--release-url <url>] [--json]";
31
31
  const CODEX_PLUGIN_NAME = "embed-labs";
32
- const CODEX_MARKETPLACE_NAME = "embed-labs-plugins";
32
+ const CODEX_MARKETPLACE_NAME = "embed-labs";
33
+ const LEGACY_CODEX_MARKETPLACE_NAMES = new Set(["embed-labs-plugins"]);
33
34
  const PLUGIN_INSTALL_USAGE = "Usage: embed plugin install <codex|opencode|all> [--release-dir <dir>] [--release-url <url>] [--target <dir>] [--codex-target <dir>] [--opencode-target <dir>] [--force] [--json]";
34
35
  const CLOUD_TASK_ARTIFACTS_USAGE = "Usage: embed cloud task artifacts <task_id> [--json]";
35
36
  const CLOUD_TASK_EVIDENCE_USAGE = "Usage: embed cloud task evidence <task_id> [--json]";
@@ -2165,12 +2166,24 @@ function parseTomlTableHeader(line) {
2165
2166
  }
2166
2167
  function isLegacyCodexConfigTable(table) {
2167
2168
  return /^plugins\."dbt-agent@[^"]+"$/.test(table)
2169
+ || isLegacyEmbedLabsCodexMarketplaceConfigTable(table)
2168
2170
  || table === "mcp_servers.dbt-agent"
2169
2171
  || table.startsWith("mcp_servers.dbt-agent.")
2170
2172
  || table === 'mcp_servers."dbt-agent"'
2171
2173
  || table.startsWith('mcp_servers."dbt-agent".')
2172
2174
  || /^projects\."[^"]*\/DBT-Agent-Project(?:\/[^"]*)?"$/.test(table);
2173
2175
  }
2176
+ function isLegacyEmbedLabsCodexMarketplaceConfigTable(table) {
2177
+ for (const marketplaceName of LEGACY_CODEX_MARKETPLACE_NAMES) {
2178
+ if (table === `marketplaces.${marketplaceName}`) {
2179
+ return true;
2180
+ }
2181
+ if (table === `plugins."${CODEX_PLUGIN_NAME}@${marketplaceName}"`) {
2182
+ return true;
2183
+ }
2184
+ }
2185
+ return false;
2186
+ }
2174
2187
  function legacyCodexCleanupWarning(cleanup) {
2175
2188
  const parts = [];
2176
2189
  if (cleanup.legacy_removed_paths.length > 0) {