opencode-snippets 1.4.1 → 1.4.2

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/index.ts CHANGED
@@ -33,7 +33,7 @@ export const SnippetsPlugin: Plugin = async (ctx) => {
33
33
  opencodeConfig.command ??= {};
34
34
  opencodeConfig.command.snippet = {
35
35
  template: "",
36
- description: "Manage text snippets (create, delete, list, help)",
36
+ description: "Manage text snippets (add, delete, list, help)",
37
37
  };
38
38
  },
39
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-snippets",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Hashtag-based snippet expansion plugin for OpenCode - instant inline text shortcuts",
5
5
  "main": "index.ts",
6
6
  "type": "module",
package/src/commands.ts CHANGED
@@ -300,7 +300,7 @@ const DIVIDER = "─────────────────────
300
300
  */
301
301
  function truncate(text: string, maxLength: number): string {
302
302
  if (text.length <= maxLength) return text;
303
- return text.slice(0, maxLength - 3) + "...";
303
+ return `${text.slice(0, maxLength - 3)}...`;
304
304
  }
305
305
 
306
306
  /**