@arbidocs/tui 0.5.81 → 0.5.83
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 +16 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1218,8 +1218,8 @@ var conversationCommands = [
|
|
|
1218
1218
|
description: "List conversations",
|
|
1219
1219
|
requires: "workspace",
|
|
1220
1220
|
run: async (ctx) => {
|
|
1221
|
-
const { arbi } = ctx;
|
|
1222
|
-
const convs = await sdk.conversations.listConversations(arbi);
|
|
1221
|
+
const { arbi, wsContext } = ctx;
|
|
1222
|
+
const convs = await sdk.conversations.listConversations(arbi, wsContext.workspaceId);
|
|
1223
1223
|
if (convs.length === 0) return "No conversations in this workspace.";
|
|
1224
1224
|
const lines = convs.map((c) => ` ${c.external_id} ${c.title ?? "(untitled)"}`);
|
|
1225
1225
|
return [`Conversations (${convs.length}):`, "", ...lines];
|
|
@@ -1772,9 +1772,12 @@ var historyCommands = [
|
|
|
1772
1772
|
argHint: "count|all",
|
|
1773
1773
|
requires: "workspace",
|
|
1774
1774
|
run: async (ctx) => {
|
|
1775
|
-
const { arbi, args } = ctx;
|
|
1775
|
+
const { arbi, args, wsContext } = ctx;
|
|
1776
1776
|
const arg = args[0]?.trim().toLowerCase();
|
|
1777
|
-
const convs = await sdk.conversations.listConversations(
|
|
1777
|
+
const convs = await sdk.conversations.listConversations(
|
|
1778
|
+
arbi,
|
|
1779
|
+
wsContext.workspaceId
|
|
1780
|
+
);
|
|
1778
1781
|
if (convs.length === 0) {
|
|
1779
1782
|
return "No conversations yet in this workspace. Ask a question to start one.";
|
|
1780
1783
|
}
|
|
@@ -1898,8 +1901,8 @@ var skillCommands = [
|
|
|
1898
1901
|
description: "List user-invocable skills in the active workspace",
|
|
1899
1902
|
requires: "workspace",
|
|
1900
1903
|
run: async (ctx) => {
|
|
1901
|
-
const { arbi, tui } = ctx;
|
|
1902
|
-
const list = await sdk.assistant.listSkills(arbi);
|
|
1904
|
+
const { arbi, tui, wsContext } = ctx;
|
|
1905
|
+
const list = await sdk.assistant.listSkills(arbi, { workspaceExtId: wsContext.workspaceId });
|
|
1903
1906
|
tui.skillsCache = list;
|
|
1904
1907
|
if (list.length === 0) {
|
|
1905
1908
|
return [
|
|
@@ -1937,7 +1940,10 @@ var skillCommands = [
|
|
|
1937
1940
|
if (sub !== "view" && sub !== "source" && sub !== "edit") {
|
|
1938
1941
|
return `Unknown /skill subcommand "${sub}". Use /skill view <slug>, /skill source <slug>, or /skill edit <slug>.`;
|
|
1939
1942
|
}
|
|
1940
|
-
const list = tui.skillsCache?.length ? tui.skillsCache : await sdk.assistant.listSkills(arbi, {
|
|
1943
|
+
const list = tui.skillsCache?.length ? tui.skillsCache : await sdk.assistant.listSkills(arbi, {
|
|
1944
|
+
includeHidden: true,
|
|
1945
|
+
workspaceExtId: ctx.wsContext.workspaceId
|
|
1946
|
+
});
|
|
1941
1947
|
const skill = list.find((s) => s.slug === slug || s.name === slug);
|
|
1942
1948
|
if (!skill) {
|
|
1943
1949
|
return `No skill matching "${slug}" in this workspace. Use /skills to list available skills.`;
|
|
@@ -2542,7 +2548,9 @@ var ArbiTui = class {
|
|
|
2542
2548
|
return;
|
|
2543
2549
|
}
|
|
2544
2550
|
try {
|
|
2545
|
-
this.skillsCache = await sdk.assistant.listSkills(this.workspaceContext.arbi
|
|
2551
|
+
this.skillsCache = await sdk.assistant.listSkills(this.workspaceContext.arbi, {
|
|
2552
|
+
workspaceExtId: this.workspaceContext.workspaceId
|
|
2553
|
+
});
|
|
2546
2554
|
} catch {
|
|
2547
2555
|
this.skillsCache = [];
|
|
2548
2556
|
}
|