kalshi-trading-bot-cli 2.1.2 → 2.1.3

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
@@ -21,7 +21,7 @@ Integrates with the [Octagon Research API](https://app.octagonai.co) for AI-gene
21
21
  ## Quick Start
22
22
 
23
23
  ```bash
24
- bunx kalshi-trading-bot-cli
24
+ bunx kalshi-trading-bot-cli@latest
25
25
  ```
26
26
 
27
27
  That's it — no clone, no install. The setup wizard runs automatically on first launch and walks you through API keys.
@@ -43,10 +43,30 @@ bun start
43
43
  - **API keys (`.env`):** `~/.kalshi-bot/.env` — written by the setup wizard. A `.env` in the current directory takes precedence (handy for dev).
44
44
  - **First run** with no keys configured triggers the setup wizard automatically.
45
45
 
46
- ## Example Session
46
+ ### Updating
47
+
48
+ Using `@latest` in the `bunx` command always pulls the newest published version — so `bunx kalshi-trading-bot-cli@latest` is the zero-friction path.
47
49
 
50
+ If you ran `bunx kalshi-trading-bot-cli` without `@latest`, Bun may serve a cached copy. Force a refresh:
51
+
52
+ ```bash
53
+ bunx kalshi-trading-bot-cli@latest # pin latest for this invocation
54
+ bun pm cache rm # or clear Bun's install cache
48
55
  ```
49
- $ bunx kalshi-trading-bot-cli
56
+
57
+ If you installed globally with `bun add -g kalshi-trading-bot-cli`:
58
+
59
+ ```bash
60
+ bun update -g kalshi-trading-bot-cli # update in place
61
+ bun add -g kalshi-trading-bot-cli@latest # or reinstall pinned to latest
62
+ ```
63
+
64
+ Check your installed version with `kalshi --version` (or `bun pm ls -g | grep kalshi`).
65
+
66
+ ## Example Session
67
+
68
+ ```text
69
+ $ bunx kalshi-trading-bot-cli@latest
50
70
 
51
71
  Welcome to Kalshi Trading Bot CLI
52
72
  Type help for commands, or just ask a question.
@@ -344,7 +364,7 @@ TELEMETRY_ENABLED=false
344
364
  Or set the environment variable before running:
345
365
 
346
366
  ```bash
347
- TELEMETRY_ENABLED=false bunx kalshi-trading-bot-cli
367
+ TELEMETRY_ENABLED=false bunx kalshi-trading-bot-cli@latest
348
368
  ```
349
369
 
350
370
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kalshi-trading-bot-cli",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Kalshi Trading Bot CLI - AI-powered prediction market terminal.",
5
5
  "license": "MIT",
6
6
  "author": "Octagon AI, Inc.",
@@ -1,6 +1,6 @@
1
1
  import { callKalshiApi } from '../tools/kalshi/api.js';
2
- import { PROVIDERS } from '@/providers';
3
- import { getDefaultModelForProvider } from '@/utils/model';
2
+ import { PROVIDERS } from '../providers.js';
3
+ import { getDefaultModelForProvider } from '../utils/model.js';
4
4
 
5
5
  /**
6
6
  * Verify setup: check API keys, exchange connectivity, and optional services.
package/src/model/llm.ts CHANGED
@@ -9,11 +9,11 @@ import { BaseChatModel } from '@langchain/core/language_models/chat_models';
9
9
  import { StructuredToolInterface } from '@langchain/core/tools';
10
10
  import { Runnable } from '@langchain/core/runnables';
11
11
  import { z } from 'zod';
12
- import { DEFAULT_SYSTEM_PROMPT } from '@/agent/prompts';
13
- import type { TokenUsage } from '@/agent/types';
14
- import { logger } from '@/utils';
15
- import { classifyError, isNonRetryableError } from '@/utils/errors';
16
- import { resolveProvider, getProviderById } from '@/providers';
12
+ import { DEFAULT_SYSTEM_PROMPT } from '../agent/prompts.js';
13
+ import type { TokenUsage } from '../agent/types.js';
14
+ import { logger } from '../utils/index.js';
15
+ import { classifyError, isNonRetryableError } from '../utils/errors.js';
16
+ import { resolveProvider, getProviderById } from '../providers.js';
17
17
 
18
18
  export const DEFAULT_PROVIDER = 'openai';
19
19
  export const DEFAULT_MODEL = process.env.DEFAULT_MODEL ?? 'gpt-5.4';
package/src/utils/env.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
3
  import { config } from 'dotenv';
4
- import { getProviderById } from '@/providers';
4
+ import { getProviderById } from '../providers.js';
5
5
  import { appPath, getAppDir } from './paths.js';
6
6
 
7
7
  // Resolve .env from a CWD override (dev workflow) or the home config dir
@@ -1,4 +1,4 @@
1
- import { PROVIDERS as PROVIDER_DEFS } from '@/providers';
1
+ import { PROVIDERS as PROVIDER_DEFS } from '../providers.js';
2
2
 
3
3
  export interface Model {
4
4
  id: string;