indiecrm-cli 0.2.0 → 0.2.1
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/CHANGELOG.md +5 -0
- package/dist/cli.js +3 -2
- package/dist/indiecrm/commands.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- Keep IndieCRM CRM commands outside the inherited Salesprompter research authentication hook.
|
|
6
|
+
- Verify both authentication boundaries through the packaged `indiecrm` executable.
|
|
7
|
+
|
|
3
8
|
## 0.2.0
|
|
4
9
|
|
|
5
10
|
- Restore the full Salesprompter research command surface in `indiecrm`, including `leads:at-companies`, browser research, enrichment, scoring, and sync.
|
package/dist/cli.js
CHANGED
|
@@ -13722,7 +13722,8 @@ program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
13722
13722
|
const parentCommandName = actionCommand.parent && typeof actionCommand.parent.name === "function"
|
|
13723
13723
|
? actionCommand.parent.name()
|
|
13724
13724
|
: "";
|
|
13725
|
-
if (
|
|
13725
|
+
if (crmCommands.has(actionCommand) ||
|
|
13726
|
+
commandName.startsWith("auth:") ||
|
|
13726
13727
|
commandName === "setup" ||
|
|
13727
13728
|
commandName === "doctor" ||
|
|
13728
13729
|
commandName === "upgrade" ||
|
|
@@ -19604,7 +19605,7 @@ program
|
|
|
19604
19605
|
}
|
|
19605
19606
|
});
|
|
19606
19607
|
});
|
|
19607
|
-
registerCrmCommands(program);
|
|
19608
|
+
const crmCommands = registerCrmCommands(program);
|
|
19608
19609
|
async function main() {
|
|
19609
19610
|
if (process.argv.length <= 2) {
|
|
19610
19611
|
program.outputHelp();
|
|
@@ -39,6 +39,7 @@ async function call(name, args) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
export function registerCrmCommands(program) {
|
|
42
|
+
const existingCommands = new Set(program.commands);
|
|
42
43
|
program.command("login").description("Sign in through indiecrm.app").action(login);
|
|
43
44
|
program.command("logout").description("Remove the local sign-in session").action(async () => {
|
|
44
45
|
await logout();
|
|
@@ -103,4 +104,5 @@ export function registerCrmCommands(program) {
|
|
|
103
104
|
throw new Error("Input must be a JSON object");
|
|
104
105
|
return call(tool, input);
|
|
105
106
|
});
|
|
107
|
+
return new Set(program.commands.filter((command) => !existingCommands.has(command)));
|
|
106
108
|
}
|