kollab 0.1.24 → 0.1.25

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/README.md CHANGED
@@ -87,6 +87,8 @@ kollab bot list
87
87
 
88
88
  For read-modify-write flows, use the version from `get-content --json`. Do not update when its `data.truncated` flag is true; HTTP 409 means re-read and reconcile another collaborator's newer content.
89
89
 
90
+ Delete a custom skill with `kollab skill delete --id <skill-id> --confirm`. The workspace defaults to `KOLLAB_SPACE_ID` or the current login workspace; `--space-id <space-id>` overrides it. Missing workspace fails locally before any request. Deletion is permanent. `skill update --enabled true|false` uses the same workspace selection and accepts `--space-id`.
91
+
90
92
  `kollab --help` shows the whole command tree. Every subcommand has its own `--help`.
91
93
 
92
94
  ## Use Cases Worth Opening
package/dist/index.js CHANGED
@@ -16029,7 +16029,7 @@ function registerSkillManageCommands(skill) {
16029
16029
  );
16030
16030
  printResult(result);
16031
16031
  });
16032
- skill.command("update").description("Partially update a skill (name, description, enabled toggle)").requiredOption("--id <uuid>", "Skill ID to update").option("--name <name>", "New display name").option("--description <text>", "New description").option("--enabled <boolean>", "Enable or disable the skill: true|false").action(async (opts) => {
16032
+ skill.command("update").description("Partially update a skill (name, description, enabled toggle)").requiredOption("--id <uuid>", "Skill ID to update").option("--space-id <uuid>", "Target workspace (default: KOLLAB_SPACE_ID or current login workspace)").option("--name <name>", "New display name").option("--description <text>", "New description").option("--enabled <boolean>", "Enable or disable the skill: true|false").action(async (opts) => {
16033
16033
  const creds = requireCredentials();
16034
16034
  const body = {};
16035
16035
  if (opts.name !== void 0) body.name = opts.name;
@@ -16043,6 +16043,10 @@ function registerSkillManageCommands(skill) {
16043
16043
  if (Object.keys(body).length === 0) {
16044
16044
  fail("At least one update field is required (--name, --description, --enabled)");
16045
16045
  }
16046
+ const spaceId = opts.spaceId ?? creds.space_id;
16047
+ if (opts.enabled !== void 0 || spaceId) {
16048
+ body.space_id = requireSpaceId({ ...creds, space_id: spaceId });
16049
+ }
16046
16050
  const result = await api(
16047
16051
  creds,
16048
16052
  "PATCH",
@@ -16051,15 +16055,16 @@ function registerSkillManageCommands(skill) {
16051
16055
  );
16052
16056
  printResult(result);
16053
16057
  });
16054
- skill.command("delete").description("Permanently delete a non-system skill (irreversible)").requiredOption("--id <uuid>", "Skill ID to delete").requiredOption(
16058
+ skill.command("delete").description("Permanently delete a non-system skill (irreversible)").requiredOption("--id <uuid>", "Skill ID to delete").option("--space-id <uuid>", "Target workspace (default: KOLLAB_SPACE_ID or current login workspace)").requiredOption(
16055
16059
  "--confirm",
16056
16060
  "Required: confirm that permanent deletion is intended"
16057
16061
  ).action(async (opts) => {
16058
16062
  const creds = requireCredentials();
16063
+ const spaceId = requireSpaceId({ ...creds, space_id: opts.spaceId ?? creds.space_id });
16059
16064
  const result = await api(
16060
16065
  creds,
16061
16066
  "DELETE",
16062
- `/skills/skills/${opts.id}`
16067
+ `/skills/skills/${opts.id}?spaceId=${encodeURIComponent(spaceId)}`
16063
16068
  );
16064
16069
  printResult(result);
16065
16070
  });
@@ -20653,8 +20658,8 @@ var fs6 = __toESM(require("fs"));
20653
20658
  var path6 = __toESM(require("path"));
20654
20659
  var UNKNOWN_VERSION = "0.0.0";
20655
20660
  function injectedVersion() {
20656
- if ("0.1.24".length > 0) {
20657
- return "0.1.24";
20661
+ if ("0.1.25".length > 0) {
20662
+ return "0.1.25";
20658
20663
  }
20659
20664
  return null;
20660
20665
  }
@@ -28979,7 +28979,7 @@ function registerSkillManageCommands(skill) {
28979
28979
  );
28980
28980
  printResult(result);
28981
28981
  });
28982
- skill.command("update").description("Partially update a skill (name, description, enabled toggle)").requiredOption("--id <uuid>", "Skill ID to update").option("--name <name>", "New display name").option("--description <text>", "New description").option("--enabled <boolean>", "Enable or disable the skill: true|false").action(async (opts) => {
28982
+ skill.command("update").description("Partially update a skill (name, description, enabled toggle)").requiredOption("--id <uuid>", "Skill ID to update").option("--space-id <uuid>", "Target workspace (default: KOLLAB_SPACE_ID or current login workspace)").option("--name <name>", "New display name").option("--description <text>", "New description").option("--enabled <boolean>", "Enable or disable the skill: true|false").action(async (opts) => {
28983
28983
  const creds = requireCredentials();
28984
28984
  const body = {};
28985
28985
  if (opts.name !== void 0) body.name = opts.name;
@@ -28993,6 +28993,10 @@ function registerSkillManageCommands(skill) {
28993
28993
  if (Object.keys(body).length === 0) {
28994
28994
  fail("At least one update field is required (--name, --description, --enabled)");
28995
28995
  }
28996
+ const spaceId = opts.spaceId ?? creds.space_id;
28997
+ if (opts.enabled !== void 0 || spaceId) {
28998
+ body.space_id = requireSpaceId({ ...creds, space_id: spaceId });
28999
+ }
28996
29000
  const result = await api(
28997
29001
  creds,
28998
29002
  "PATCH",
@@ -29001,15 +29005,16 @@ function registerSkillManageCommands(skill) {
29001
29005
  );
29002
29006
  printResult(result);
29003
29007
  });
29004
- skill.command("delete").description("Permanently delete a non-system skill (irreversible)").requiredOption("--id <uuid>", "Skill ID to delete").requiredOption(
29008
+ skill.command("delete").description("Permanently delete a non-system skill (irreversible)").requiredOption("--id <uuid>", "Skill ID to delete").option("--space-id <uuid>", "Target workspace (default: KOLLAB_SPACE_ID or current login workspace)").requiredOption(
29005
29009
  "--confirm",
29006
29010
  "Required: confirm that permanent deletion is intended"
29007
29011
  ).action(async (opts) => {
29008
29012
  const creds = requireCredentials();
29013
+ const spaceId = requireSpaceId({ ...creds, space_id: opts.spaceId ?? creds.space_id });
29009
29014
  const result = await api(
29010
29015
  creds,
29011
29016
  "DELETE",
29012
- `/skills/skills/${opts.id}`
29017
+ `/skills/skills/${opts.id}?spaceId=${encodeURIComponent(spaceId)}`
29013
29018
  );
29014
29019
  printResult(result);
29015
29020
  });
@@ -33647,8 +33652,8 @@ var fs6 = __toESM(require("fs"));
33647
33652
  var path6 = __toESM(require("path"));
33648
33653
  var UNKNOWN_VERSION = "0.0.0";
33649
33654
  function injectedVersion() {
33650
- if ("0.1.24".length > 0) {
33651
- return "0.1.24";
33655
+ if ("0.1.25".length > 0) {
33656
+ return "0.1.25";
33652
33657
  }
33653
33658
  return null;
33654
33659
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kollab",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Kollab workspace CLI",
5
5
  "bin": {
6
6
  "kollab": "dist/index.js"