@simonfestl/husky-cli 0.8.2 → 0.9.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.
Files changed (44) hide show
  1. package/README.md +3 -116
  2. package/dist/commands/biz/customers.d.ts +8 -0
  3. package/dist/commands/biz/customers.js +181 -0
  4. package/dist/commands/biz/orders.d.ts +8 -0
  5. package/dist/commands/biz/orders.js +226 -0
  6. package/dist/commands/biz/products.d.ts +8 -0
  7. package/dist/commands/biz/products.js +255 -0
  8. package/dist/commands/biz/qdrant.d.ts +8 -0
  9. package/dist/commands/biz/qdrant.js +170 -0
  10. package/dist/commands/biz/seatable.d.ts +8 -0
  11. package/dist/commands/biz/seatable.js +449 -0
  12. package/dist/commands/biz/tickets.d.ts +8 -0
  13. package/dist/commands/biz/tickets.js +600 -0
  14. package/dist/commands/biz.d.ts +9 -0
  15. package/dist/commands/biz.js +22 -0
  16. package/dist/commands/config.d.ts +13 -0
  17. package/dist/commands/config.js +43 -16
  18. package/dist/commands/explain.js +12 -595
  19. package/dist/commands/idea.js +2 -50
  20. package/dist/commands/project.js +2 -47
  21. package/dist/commands/roadmap.js +0 -107
  22. package/dist/commands/task.js +11 -17
  23. package/dist/commands/vm.js +0 -225
  24. package/dist/commands/workflow.js +4 -60
  25. package/dist/index.js +5 -1
  26. package/dist/lib/biz/billbee-types.d.ts +259 -0
  27. package/dist/lib/biz/billbee-types.js +41 -0
  28. package/dist/lib/biz/billbee.d.ts +37 -0
  29. package/dist/lib/biz/billbee.js +165 -0
  30. package/dist/lib/biz/embeddings.d.ts +45 -0
  31. package/dist/lib/biz/embeddings.js +115 -0
  32. package/dist/lib/biz/index.d.ts +13 -0
  33. package/dist/lib/biz/index.js +11 -0
  34. package/dist/lib/biz/qdrant.d.ts +52 -0
  35. package/dist/lib/biz/qdrant.js +158 -0
  36. package/dist/lib/biz/seatable-types.d.ts +115 -0
  37. package/dist/lib/biz/seatable-types.js +27 -0
  38. package/dist/lib/biz/seatable.d.ts +49 -0
  39. package/dist/lib/biz/seatable.js +210 -0
  40. package/dist/lib/biz/zendesk-types.d.ts +136 -0
  41. package/dist/lib/biz/zendesk-types.js +28 -0
  42. package/dist/lib/biz/zendesk.d.ts +45 -0
  43. package/dist/lib/biz/zendesk.js +206 -0
  44. package/package.json +2 -2
@@ -60,29 +60,56 @@ configCommand
60
60
  .description("Set a configuration value")
61
61
  .action((key, value) => {
62
62
  const config = getConfig();
63
- if (key === "api-url") {
64
- const validation = validateApiUrl(value);
65
- if (!validation.valid) {
66
- console.error(`Error: ${validation.error}`);
67
- process.exit(1);
68
- }
69
- config.apiUrl = value;
63
+ // Key mappings for kebab-case to camelCase
64
+ const keyMappings = {
65
+ "api-url": "apiUrl",
66
+ "api-key": "apiKey",
67
+ // Billbee
68
+ "billbee-api-key": "billbeeApiKey",
69
+ "billbee-username": "billbeeUsername",
70
+ "billbee-password": "billbeePassword",
71
+ "billbee-base-url": "billbeeBaseUrl",
72
+ // Zendesk
73
+ "zendesk-subdomain": "zendeskSubdomain",
74
+ "zendesk-email": "zendeskEmail",
75
+ "zendesk-api-token": "zendeskApiToken",
76
+ // SeaTable
77
+ "seatable-api-token": "seatableApiToken",
78
+ "seatable-server-url": "seatableServerUrl",
79
+ // Qdrant
80
+ "qdrant-url": "qdrantUrl",
81
+ "qdrant-api-key": "qdrantApiKey",
82
+ // GCP
83
+ "gcp-project-id": "gcpProjectId",
84
+ "gcp-location": "gcpLocation",
85
+ };
86
+ const configKey = keyMappings[key];
87
+ if (!configKey) {
88
+ console.error(`Unknown config key: ${key}`);
89
+ console.log("Available keys:");
90
+ console.log(" Core: api-url, api-key");
91
+ console.log(" Billbee: billbee-api-key, billbee-username, billbee-password, billbee-base-url");
92
+ console.log(" Zendesk: zendesk-subdomain, zendesk-email, zendesk-api-token");
93
+ console.log(" SeaTable: seatable-api-token, seatable-server-url");
94
+ console.log(" Qdrant: qdrant-url, qdrant-api-key");
95
+ console.log(" GCP: gcp-project-id, gcp-location");
96
+ process.exit(1);
70
97
  }
71
- else if (key === "api-key") {
72
- const validation = validateApiKey(value);
98
+ // Validation for specific keys
99
+ if (key === "api-url" || key === "billbee-base-url") {
100
+ const validation = validateApiUrl(value);
73
101
  if (!validation.valid) {
74
102
  console.error(`Error: ${validation.error}`);
75
103
  process.exit(1);
76
104
  }
77
- config.apiKey = value;
78
- }
79
- else {
80
- console.error(`Unknown config key: ${key}`);
81
- console.log("Available keys: api-url, api-key");
82
- process.exit(1);
83
105
  }
106
+ // Set the value
107
+ config[configKey] = value;
84
108
  saveConfig(config);
85
- console.log(`Set ${key} = ${key === "api-key" ? "***" : value}`);
109
+ // Mask sensitive values in output
110
+ const sensitiveKeys = ["api-key", "billbee-api-key", "billbee-password", "zendesk-api-token", "seatable-api-token"];
111
+ const displayValue = sensitiveKeys.includes(key) ? "***" : value;
112
+ console.log(`✓ Set ${key} = ${displayValue}`);
86
113
  });
87
114
  // husky config get <key>
88
115
  configCommand