@arbidocs/sdk 0.3.110 → 0.3.112

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.cjs CHANGED
@@ -5347,6 +5347,7 @@ __export(assistant_exports, {
5347
5347
  buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
5348
5348
  buildRetrievalTocTool: () => buildRetrievalTocTool,
5349
5349
  filterSkills: () => filterSkills,
5350
+ listCommands: () => listCommands,
5350
5351
  listSkills: () => listSkills,
5351
5352
  parseSlashCommand: () => parseSlashCommand,
5352
5353
  parseSlashTokenInProgress: () => parseSlashTokenInProgress,
@@ -5454,6 +5455,13 @@ async function listSkills(arbi, options) {
5454
5455
  );
5455
5456
  return result.skills;
5456
5457
  }
5458
+ async function listCommands(arbi) {
5459
+ const result = requireData(
5460
+ await arbi.fetch.GET("/v1/assistant/commands", {}),
5461
+ "Failed to list commands"
5462
+ );
5463
+ return result.commands;
5464
+ }
5457
5465
  function parseSlashCommand(input) {
5458
5466
  const m2 = /^\s*\/([a-zA-Z0-9_-]+)(?:\s+([\s\S]*))?$/.exec(input);
5459
5467
  if (!m2) return null;