@mp-lb/forum-cli 0.1.58 → 0.1.60

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
@@ -19233,6 +19233,7 @@ var fileTypeIdSchema = external_exports.union([
19233
19233
  external_exports.literal("meta_ad_campaign"),
19234
19234
  external_exports.literal("resume"),
19235
19235
  external_exports.literal("signing-packet"),
19236
+ external_exports.literal("secrets"),
19236
19237
  external_exports.literal("html"),
19237
19238
  external_exports.literal("web-link"),
19238
19239
  external_exports.literal("vault"),
@@ -19336,6 +19337,12 @@ var fileTypeDefinitions = [
19336
19337
  extensions: [".signing.json"],
19337
19338
  storageClass: textStorageClass
19338
19339
  },
19340
+ {
19341
+ id: "secrets",
19342
+ label: "Secrets",
19343
+ extensions: [".secrets.json"],
19344
+ storageClass: textStorageClass
19345
+ },
19339
19346
  {
19340
19347
  id: "list",
19341
19348
  label: "List",
@@ -34720,7 +34727,7 @@ var connectSkillCollection = async (scan, input) => {
34720
34727
  const collection = skillScanSchema.parse(scan);
34721
34728
  if (collection.problems.some((problem) => problem.kind === "invalid"))
34722
34729
  return { status: "invalid", collection, changes: [] };
34723
- if (!collection.skills.length)
34730
+ if (!collection.skills.length && collection.markdownCount > 0)
34724
34731
  return { status: "empty", collection, changes: [] };
34725
34732
  const result = await loadSkillStubs({
34726
34733
  ...input,
@@ -34756,9 +34763,9 @@ var renderSkillConnection = (result, json2) => {
34756
34763
  );
34757
34764
  if (!collection.markdownCount)
34758
34765
  renderOutput(
34759
- "No Markdown files were found directly in this folder. Choose a folder containing .md or .markdown files; nested folders are separate collections."
34766
+ "No Markdown files were found directly in this folder. Reconnecting removes its previously installed skills; nested folders are separate collections."
34760
34767
  );
34761
- if (collection.problems.length || !collection.skills.length) {
34768
+ if (collection.problems.length) {
34762
34769
  renderOutput(
34763
34770
  "Each skill needs YAML frontmatter at the beginning of its Markdown file:"
34764
34771
  );
@@ -34783,7 +34790,7 @@ var renderSkillConnection = (result, json2) => {
34783
34790
  );
34784
34791
  else
34785
34792
  renderOutput(
34786
- result.status === "preview" ? "Preview complete. No local skills changed." : "Skills connected. Instructions are fetched from Forum when used. Reconnect this folder after adding skills or changing names/descriptions. Start a new agent session if the skills are not yet visible."
34793
+ result.status === "preview" ? "Preview complete. No local skills changed." : "Skills connected. Instructions are fetched from Forum when used. Reconnect this folder after adding/removing skills or changing names/descriptions. Start a new agent session if the skills are not yet visible."
34787
34794
  );
34788
34795
  };
34789
34796