feat(cli): add inkreach-teable plugin commands

plugin list: list registered plugins (id/name/status/runtimeType)
plugin register: register by URL (--name --url --positions)
plugin config list: list base configs (pluginId/tableId/enabled/form/write)
plugin config enable/disable: enable/disable per table or base-wide

Added 5 client methods: getPlugins, registerPlugin, listPluginConfigs,
upsertPluginConfig for CRUD.
This commit is contained in:
yeuimu
2026-08-06 09:03:04 +08:00
parent 584b75ba69
commit 0891bda134
6 changed files with 294 additions and 0 deletions
Vendored
+2
View File
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
*/
const commander_1 = require("commander");
const package_json_1 = require("../package.json");
const plugin_1 = require("./commands/plugin");
const auth_1 = require("./commands/auth");
const workflow_1 = require("./commands/workflow");
const resources_1 = require("./commands/resources");
@@ -27,6 +28,7 @@ program
.option('--debug', 'Print requests/responses to stderr (verbose)');
// Command groups
program.addCommand((0, auth_1.authCommand)());
program.addCommand((0, plugin_1.pluginCommand)());
for (const c of (0, resources_1.baseResourceCommands)())
program.addCommand(c);
program.addCommand((0, workflow_1.workflowCommand)());