@axonpush/wizard 0.0.3 → 0.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axonpush/wizard",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "AI-powered wizard to integrate AxonPush into your AI agent project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,22 +12,22 @@
12
12
  "skills"
13
13
  ],
14
14
  "scripts": {
15
- "build": "tsup",
16
- "dev": "tsx src/bin.ts",
17
- "start": "node dist/bin.js"
15
+ "build": "bun run scripts/build.ts",
16
+ "dev": "bun src/bin.ts",
17
+ "start": "bun dist/bin.js",
18
+ "typecheck": "tsc --noEmit"
18
19
  },
19
20
  "dependencies": {
20
- "@anthropic-ai/claude-code": "^0.2.20",
21
+ "@anthropic-ai/claude-agent-sdk": "^0.2.87",
21
22
  "chalk": "^5.4.1",
22
23
  "ora": "^8.2.0",
23
24
  "prompts": "^2.4.2",
24
25
  "yargs": "^17.7.2"
25
26
  },
26
27
  "devDependencies": {
28
+ "@types/bun": "latest",
27
29
  "@types/prompts": "^2.4.9",
28
30
  "@types/yargs": "^17.0.33",
29
- "tsup": "^8.4.0",
30
- "tsx": "^4.19.0",
31
31
  "typescript": "^5.7.0"
32
32
  }
33
33
  }
@@ -27,7 +27,7 @@ axonpush_client = AxonPush(
27
27
 
28
28
  tracer = AxonPushAnthropicTracer(
29
29
  client=axonpush_client,
30
- channel_id=1, # Replace with your channel ID
30
+ channel_id=int(os.environ["AXONPUSH_CHANNEL_ID"]),
31
31
  agent_id="claude-agent",
32
32
  )
33
33
 
@@ -45,7 +45,7 @@ tracer = AxonPushAnthropicTracer(
45
45
  ## Steps
46
46
 
47
47
  1. Install `axonpush[anthropic]` using the project's package manager
48
- 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL to .env
48
+ 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL, AXONPUSH_CHANNEL_ID to .env
49
49
  3. Find files that call `client.messages.create()` (the Anthropic API)
50
50
  4. Add imports and create the tracer
51
51
  5. Replace `anthropic_client.messages.create(...)` with `tracer.create_message(anthropic_client, ...)`
@@ -28,7 +28,7 @@ axonpush_client = AxonPush(
28
28
  # axonpush_client.events.publish(
29
29
  # identifier="my.event",
30
30
  # payload={"key": "value"},
31
- # channel_id=1,
31
+ # channel_id=int(os.environ["AXONPUSH_CHANNEL_ID"]),
32
32
  # agent_id="my-agent",
33
33
  # event_type=EventType.CUSTOM,
34
34
  # )
@@ -37,7 +37,7 @@ axonpush_client = AxonPush(
37
37
  ## Steps
38
38
 
39
39
  1. Install `axonpush` using the project's package manager
40
- 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL to .env
40
+ 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL, AXONPUSH_CHANNEL_ID to .env
41
41
  3. Find the main entry point of the project
42
42
  4. Add imports and create the client as a module-level singleton
43
43
  5. Add example publish calls at key points (e.g., start, end, error handling)
@@ -27,7 +27,7 @@ axonpush_client = AxonPush(
27
27
 
28
28
  axonpush_callbacks = AxonPushCrewCallbacks(
29
29
  client=axonpush_client,
30
- channel_id=1, # Replace with your channel ID
30
+ channel_id=int(os.environ["AXONPUSH_CHANNEL_ID"]),
31
31
  agent_id="crewai",
32
32
  )
33
33
 
@@ -46,7 +46,7 @@ axonpush_callbacks = AxonPushCrewCallbacks(
46
46
  ## Steps
47
47
 
48
48
  1. Install `axonpush[crewai]` using the project's package manager
49
- 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL to .env
49
+ 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL, AXONPUSH_CHANNEL_ID to .env
50
50
  3. Find the file where `Crew(...)` is instantiated
51
51
  4. Add imports and create the callbacks object
52
52
  5. Add `step_callback=axonpush_callbacks.on_step` and `task_callback=axonpush_callbacks.on_task_complete` to `Crew()`
@@ -27,7 +27,7 @@ axonpush_client = AxonPush(
27
27
 
28
28
  axonpush_handler = AxonPushCallbackHandler(
29
29
  client=axonpush_client,
30
- channel_id=1, # Replace with your channel ID
30
+ channel_id=int(os.environ["AXONPUSH_CHANNEL_ID"]),
31
31
  agent_id="my-agent",
32
32
  )
33
33
 
@@ -41,7 +41,7 @@ axonpush_handler = AxonPushCallbackHandler(
41
41
  ## Steps
42
42
 
43
43
  1. Install `axonpush[langchain]` using the project's package manager
44
- 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL to .env
44
+ 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL, AXONPUSH_CHANNEL_ID to .env
45
45
  3. Find the main file where chains/agents are invoked
46
46
  4. Add the imports and client initialization (as module-level code)
47
47
  5. Add `config={"callbacks": [axonpush_handler]}` to `.invoke()` calls
@@ -27,7 +27,7 @@ axonpush_client = AsyncAxonPush(
27
27
 
28
28
  axonpush_hooks = AxonPushRunHooks(
29
29
  client=axonpush_client,
30
- channel_id=1, # Replace with your channel ID
30
+ channel_id=int(os.environ["AXONPUSH_CHANNEL_ID"]),
31
31
  )
32
32
 
33
33
  # Usage:
@@ -37,7 +37,7 @@ axonpush_hooks = AxonPushRunHooks(
37
37
  ## Steps
38
38
 
39
39
  1. Install `axonpush[openai-agents]` using the project's package manager
40
- 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL to .env
40
+ 2. Add AXONPUSH_API_KEY, AXONPUSH_TENANT_ID, AXONPUSH_BASE_URL, AXONPUSH_CHANNEL_ID to .env
41
41
  3. Find the main file where Runner.run() is called
42
42
  4. Add the imports and AsyncAxonPush client (this SDK is async-only)
43
43
  5. Pass `hooks=axonpush_hooks` to `Runner.run()`