@plosson/agentio 0.1.10 → 0.1.11
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/package.json +1 -1
- package/src/index.ts +10 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -7,14 +7,22 @@ import { registerJiraCommands } from './commands/jira';
|
|
|
7
7
|
import { registerSlackCommands } from './commands/slack';
|
|
8
8
|
import { registerUpdateCommand } from './commands/update';
|
|
9
9
|
|
|
10
|
-
declare const BUILD_VERSION: string;
|
|
10
|
+
declare const BUILD_VERSION: string | undefined;
|
|
11
|
+
|
|
12
|
+
const getVersion = (): string => {
|
|
13
|
+
if (typeof BUILD_VERSION !== 'undefined') {
|
|
14
|
+
return BUILD_VERSION;
|
|
15
|
+
}
|
|
16
|
+
// Fallback for development mode
|
|
17
|
+
return require('../package.json').version;
|
|
18
|
+
};
|
|
11
19
|
|
|
12
20
|
const program = new Command();
|
|
13
21
|
|
|
14
22
|
program
|
|
15
23
|
.name('agentio')
|
|
16
24
|
.description('CLI for LLM agents to interact with communication and tracking services')
|
|
17
|
-
.version(
|
|
25
|
+
.version(getVersion());
|
|
18
26
|
|
|
19
27
|
registerGmailCommands(program);
|
|
20
28
|
registerTelegramCommands(program);
|