@lobehub/cli 0.0.82 → 0.0.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 CHANGED
@@ -17720,6 +17720,7 @@ const TRPC_NAMESPACE_API_KEY_RULES = {
17720
17720
  generationBatch: { any: "model:invoke" },
17721
17721
  generationTopic: { any: "model:invoke" },
17722
17722
  goal: rw("agent:read", "agent:write"),
17723
+ goalShare: "blocked",
17723
17724
  group: rw("agent:read", "agent:write"),
17724
17725
  healthcheck: "open",
17725
17726
  home: rw("chat:read", "chat:write"),
@@ -581180,7 +581181,7 @@ function registerNotifyCommand(program) {
581180
581181
  //#endregion
581181
581182
  //#region src/commands/plugin.ts
581182
581183
  function registerLegacyPluginCommand(program) {
581183
- const plugin = program.command("legacy-plugin").alias("plugin").description("Manage legacy 1.0 plugins (user_installed_plugins)");
581184
+ const plugin = program.command("legacy-plugin").alias("plugin").description("Manage legacy 1.0 plugins (user_installed_plugins). Add new MCP servers with lh connector add");
581184
581185
  plugin.command("list").description("List installed plugins").option("--json [fields]", "Output JSON, optionally specify fields (comma-separated)").action(async (options) => {
581185
581186
  const result = await (await getTrpcClient()).plugin.getPlugins.query();
581186
581187
  const items = Array.isArray(result) ? result : [];
@@ -581237,56 +581238,6 @@ function registerLegacyPluginCommand(program) {
581237
581238
  ]);
581238
581239
  if (result?.totalCount > items.length) console.log(import_picocolors.default.dim(`Showing ${items.length} of ${result.totalCount} results.`));
581239
581240
  });
581240
- plugin.command("create").description("Create a new plugin (without settings)").requiredOption("-i, --identifier <id>", "Plugin identifier").requiredOption("--manifest <json>", "Plugin manifest JSON").option("--type <type>", "Plugin type: plugin or customPlugin", "plugin").option("--custom-params <json>", "Custom parameters JSON").action(async (options) => {
581241
- let manifest;
581242
- let customParams = {};
581243
- try {
581244
- manifest = JSON.parse(options.manifest);
581245
- } catch {
581246
- log$13.error("Invalid manifest JSON.");
581247
- process.exit(1);
581248
- return;
581249
- }
581250
- if (options.customParams) try {
581251
- customParams = JSON.parse(options.customParams);
581252
- } catch {
581253
- log$13.error("Invalid custom-params JSON.");
581254
- process.exit(1);
581255
- return;
581256
- }
581257
- const r = await (await getTrpcClient()).plugin.createPlugin.mutate({
581258
- customParams,
581259
- identifier: options.identifier,
581260
- manifest,
581261
- type: options.type
581262
- });
581263
- console.log(`${import_picocolors.default.green("✓")} Created plugin ${import_picocolors.default.bold(r.identifier || options.identifier)}`);
581264
- });
581265
- plugin.command("install").description("Install a plugin").requiredOption("-i, --identifier <id>", "Plugin identifier").requiredOption("--manifest <json>", "Plugin manifest JSON").option("--type <type>", "Plugin type: plugin or customPlugin", "plugin").option("--settings <json>", "Plugin settings JSON").action(async (options) => {
581266
- const client = await getTrpcClient();
581267
- let manifest;
581268
- let settings;
581269
- try {
581270
- manifest = JSON.parse(options.manifest);
581271
- } catch {
581272
- log$13.error("Invalid manifest JSON.");
581273
- process.exit(1);
581274
- }
581275
- if (options.settings) try {
581276
- settings = JSON.parse(options.settings);
581277
- } catch {
581278
- log$13.error("Invalid settings JSON.");
581279
- process.exit(1);
581280
- }
581281
- await client.plugin.createOrInstallPlugin.mutate({
581282
- customParams: {},
581283
- identifier: options.identifier,
581284
- manifest,
581285
- settings,
581286
- type: options.type
581287
- });
581288
- console.log(`${import_picocolors.default.green("✓")} Installed plugin ${import_picocolors.default.bold(options.identifier)}`);
581289
- });
581290
581241
  plugin.command("uninstall <id>").description("Uninstall a plugin").option("--yes", "Skip confirmation prompt").action(async (id, options) => {
581291
581242
  if (!options.yes) {
581292
581243
  if (!await confirm("Are you sure you want to uninstall this plugin?")) {
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.82" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.83" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
@@ -150,7 +150,7 @@ Manage dashboards (boards of monitoring widgets)
150
150
  Build monitoring widgets: sandboxed scripts rendered as dashboard cards
151
151
  .TP
152
152
  .B legacy\-plugin
153
- Manage legacy 1.0 plugins (user_installed_plugins) Alias: plugin.
153
+ Manage legacy 1.0 plugins (user_installed_plugins). Add new MCP servers with lh connector add Alias: plugin.
154
154
  .TP
155
155
  .B connector
156
156
  Manage MCP connectors (user connectors and their synced tools) Alias: mcp.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -82,5 +82,5 @@
82
82
  "access": "public",
83
83
  "registry": "https://registry.npmjs.org"
84
84
  },
85
- "gitHead": "1c4ee6ba2fc1292e44be2fc3a9ab7e278042039f"
85
+ "gitHead": "3492696ffec69b68502c8fa013a050d047ac3f95"
86
86
  }