@org-dashboard/cli 0.0.1-beta.15 → 0.0.1-beta.17
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4719,7 +4719,7 @@ async function tools(client, args) {
|
|
|
4719
4719
|
}
|
|
4720
4720
|
if (args.length === 1) {
|
|
4721
4721
|
const result2 = await client.toolsProvider(provider);
|
|
4722
|
-
renderProviderManifest(result2.provider, result2.status, result2.items);
|
|
4722
|
+
renderProviderManifest(result2.provider, result2.status, result2.sharing_mode, result2.items);
|
|
4723
4723
|
return;
|
|
4724
4724
|
}
|
|
4725
4725
|
const parsed = parseToolExecutionArgs(args.slice(1));
|
|
@@ -4734,13 +4734,13 @@ function renderProviders(items) {
|
|
|
4734
4734
|
console.log(`Connected tools:
|
|
4735
4735
|
`);
|
|
4736
4736
|
for (const item of items) {
|
|
4737
|
-
console.log(`- ${item.provider} (${item.status})`);
|
|
4737
|
+
console.log(`- ${item.provider} (${item.status}, ${formatSharingMode(item.sharing_mode)})`);
|
|
4738
4738
|
}
|
|
4739
4739
|
console.log("\nUse `org tools <provider>` to inspect provider commands.");
|
|
4740
4740
|
console.log("Use `org tools history` to inspect recent executions.");
|
|
4741
4741
|
}
|
|
4742
|
-
function renderProviderManifest(provider, status, items) {
|
|
4743
|
-
console.log(`${provider} (${status})`);
|
|
4742
|
+
function renderProviderManifest(provider, status, sharingMode, items) {
|
|
4743
|
+
console.log(`${provider} (${status}, ${formatSharingMode(sharingMode)})`);
|
|
4744
4744
|
if (items.length === 0) {
|
|
4745
4745
|
console.log(`
|
|
4746
4746
|
No commands available for this provider.`);
|
|
@@ -4819,6 +4819,9 @@ function parseJson(raw) {
|
|
|
4819
4819
|
process.exit(1);
|
|
4820
4820
|
}
|
|
4821
4821
|
}
|
|
4822
|
+
function formatSharingMode(value) {
|
|
4823
|
+
return value === "member_private" ? "private" : "shared";
|
|
4824
|
+
}
|
|
4822
4825
|
|
|
4823
4826
|
// commands/action.ts
|
|
4824
4827
|
async function actionPropose(client, args) {
|