taste 0.4.2 → 0.5.0

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
@@ -69,15 +69,6 @@ npx taste list -g # List global packages
69
69
  npx taste list --remote # List remote packages
70
70
  ```
71
71
 
72
- ### Delete Package
73
-
74
- Delete a taste package:
75
-
76
- ```bash
77
- npx taste delete <package-name>
78
- npx taste delete -g <package-name> # Delete from global storage
79
- ```
80
-
81
72
  ### Lint Package
82
73
 
83
74
  Validate taste file format and structure:
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{spawn as o}from"child_process";import{Command as e,Option as t}from"commander";import{readFileSync as a}from"fs";import{fileURLToPath as n}from"url";import{dirname as r}from"path";import{findUpSync as l}from"find-up";function getPackageJson(){const o=import.meta.url,e=n(o),t=r(e),s=l("package.json",{cwd:t});if(!s)throw new Error("Could not find package.json");return JSON.parse(a(s,"utf8"))}(0,Object.defineProperty)(getPackageJson,"name",{value:"getPackageJson",configurable:!0});var s=getPackageJson(),i=new e;i.name("taste").description("Manage taste learning packages by CommandCode").version(s.version,"-v, --version","output the version number").allowUnknownOption().helpOption("-h, --help","display help for command"),i.command("push [package]").description("Push packages from project to remote or global storage (prompts on conflicts)").option("-g, --global","Push to global storage").option("--remote","Push to remote").option("--all","Push all packages").option("--overwrite","Overwrite target without prompting (default: interactive merge)").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("pull [package]").description("Pull packages from storage to project (prompts on conflicts)").option("-g, --global","Pull from global").option("--remote","Pull from remote").option("--all","Pull all packages").option("--overwrite","Overwrite local without prompting (default: interactive merge)").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("list").description("List available packages").option("-g, --global","List global packages").option("--remote","List remote packages").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("delete <package>").description("Delete a package").option("-g, --global","Delete from global").allowUnknownOption().action(()=>{}),i.command("lint [package]").description("Validate taste file format and structure").option("-g, --global","Lint global packages").option("--all","Lint all packages").allowUnknownOption().action(()=>{}),i.command("open <package>").description("Open a package in your editor").option("-g, --global","Open from global").allowUnknownOption().action(()=>{}),i.command("update").description("Update taste CLI to the latest version").action(async()=>{console.log("Updating taste CLI...");const{execSync:o}=await import("child_process");try{o("npm i -g taste@latest",{stdio:"inherit"}),console.log("\n✅ Taste CLI updated successfully!"),console.log('Run "taste -v" to see the new version.')}catch(o){console.error("\n❌ Failed to update taste CLI"),console.error("Please try manually: npm i -g taste@latest"),process.exit(1)}});var p=process.argv.includes("--version")||process.argv.includes("-v"),c=process.argv.includes("--help")||process.argv.includes("-h")||2===process.argv.length,g="update"===process.argv[2];if(p||c||g)i.parse(process.argv);else{const e=o("npx",["command-code","taste",...process.argv.slice(2)],{stdio:"inherit",env:process.env});e.on("error",o=>{console.error("Error: Failed to execute command-code"),console.error(o.message),process.exit(1)}),e.on("exit",o=>{process.exit(o??0)})}
2
+ import{spawn as o}from"child_process";import{Command as e,Option as t}from"commander";import{readFileSync as a}from"fs";import{fileURLToPath as n}from"url";import{dirname as r}from"path";import{findUpSync as s}from"find-up";function getPackageJson(){const o=import.meta.url,e=n(o),t=r(e),l=s("package.json",{cwd:t});if(!l)throw new Error("Could not find package.json");return JSON.parse(a(l,"utf8"))}(0,Object.defineProperty)(getPackageJson,"name",{value:"getPackageJson",configurable:!0});var l=getPackageJson(),i=new e;i.name("taste").description("Manage taste learning packages by CommandCode").version(l.version,"-v, --version","output the version number").allowUnknownOption().helpOption("-h, --help","display help for command"),i.command("push [package]").description("Push packages from project to remote or global storage (prompts on conflicts)").option("-g, --global","Push to global storage").option("--remote","Push to remote").option("--all","Push all packages").option("--overwrite","Overwrite target without prompting (default: interactive merge)").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("pull [package]").description("Pull packages from storage to project (prompts on conflicts)").option("-g, --global","Pull from global").option("--remote","Pull from remote").option("--all","Pull all packages").option("--overwrite","Overwrite local without prompting (default: interactive merge)").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("list").description("List available packages").option("-g, --global","List global packages").option("--remote","List remote packages").addOption(new t("--local","Use local server").hideHelp()).allowUnknownOption().action(()=>{}),i.command("lint [package]").description("Validate taste file format and structure").option("-g, --global","Lint global packages").option("--all","Lint all packages").allowUnknownOption().action(()=>{}),i.command("open <package>").description("Open a package in your editor").option("-g, --global","Open from global").allowUnknownOption().action(()=>{}),i.command("update").description("Update taste CLI to the latest version").action(async()=>{console.log("Updating taste CLI...");const{execSync:o}=await import("child_process");try{o("npm i -g taste@latest",{stdio:"inherit"}),console.log("\n✅ Taste CLI updated successfully!"),console.log('Run "taste -v" to see the new version.')}catch(o){console.error("\n❌ Failed to update taste CLI"),console.error("Please try manually: npm i -g taste@latest"),process.exit(1)}});var p=process.argv.includes("--version")||process.argv.includes("-v"),c=process.argv.includes("--help")||process.argv.includes("-h")||2===process.argv.length,g="update"===process.argv[2];if(p||c||g)i.parse(process.argv);else{const e=o("npx",["command-code","taste",...process.argv.slice(2)],{stdio:"inherit",env:process.env});e.on("error",o=>{console.error("Error: Failed to execute command-code"),console.error(o.message),process.exit(1)}),e.on("exit",o=>{process.exit(o??0)})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taste",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Taste CLI to manage CommandCode taste",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -30,9 +30,9 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
+ "command-code": "latest",
33
34
  "commander": "^14.0.0",
34
- "find-up": "^7.0.0",
35
- "command-code": "0.10.2"
35
+ "find-up": "^7.0.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^24.2.0",