Skip to content

Commit d4608a6

Browse files
Change pyrunt to be for python, and pyorunt to be for pyodide
1 parent 4227aa2 commit d4608a6

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ AI behavior with iterative tool calls.
4242
- ✅ Cross-package TypeScript imports with proper typing
4343
- ✅ CI/CD pipeline with multi-platform testing
4444
- ✅ JSR publishing for all packages with executable installation
45-
- ✅ Global executable installation as `pyrunt`
45+
- ✅ Global executable installation as `pyrunt` or `pyorunt` (pyodide)
4646
- ✅ Agentic AI behavior with iterative tool call responses
4747
- ✅ Interrupt-aware AI conversations with configurable max iterations
4848
- ✅ Streaming output support with granular event types

packages/lib/src/runtime-runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import type { RuntimeAgent } from "./runtime-agent.ts";
55
* Helper function to implement a CLI entrypoint for python agents
66
* Each agent implementation just needs to call main() with their RuntimeAgent
77
*/
8-
export async function runner(agent: RuntimeAgent) {
9-
const logger = createLogger("pyrunt");
8+
export async function runner(agent: RuntimeAgent, name: string) {
9+
const logger = createLogger(name);
1010

1111
try {
1212
await agent.start();
13-
logger.info("PyRunt started");
13+
logger.info(`${name} started`);
1414

1515
await agent.keepAlive();
1616
} catch (error) {
17-
logger.error("Failed to start PyRunt", error);
17+
logger.error(`Failed to start ${name}`, error);
1818
Deno.exit(1);
1919
} finally {
2020
await agent.shutdown();

packages/pyodide-runtime-agent/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
".": "./src/mod.ts"
1212
},
1313
"bin": {
14-
"pyrunt": "./src/mod.ts"
14+
"pyorunt": "./src/mod.ts"
1515
},
1616
"imports": {
1717
"@runt/ai": "jsr:@runt/ai@^0.6.2",

packages/pyodide-runtime-agent/src/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env -S deno run --allow-all --unstable-broadcast-channel
22
/**
3-
* PyRunt - Python Runtime Agent
3+
* PyoRunt - Python Runtime Agent
44
*
55
* Main executable entry point for the Pyodide runtime agent.
66
* This file serves as both the library entry point and the executable.
@@ -23,5 +23,5 @@ export {
2323
// Run the agent if this file is executed directly
2424
if (import.meta.main) {
2525
const agent = new PyodideRuntimeAgent();
26-
await runner(agent);
26+
await runner(agent, "PyoRunt");
2727
}

packages/pyodide-runtime-agent/src/pyodide-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class PyodideRuntimeAgent extends RuntimeAgent {
9191
console.error(
9292
" deno install -gf --allow-all jsr:@runt/pyodide-runtime-agent",
9393
);
94-
console.error(" pyrunt --notebook my-notebook --auth-token your-token");
94+
console.error(" pyorunt --notebook my-notebook --auth-token your-token");
9595
Deno.exit(1);
9696
}
9797

packages/python-runtime-agent/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"exports": {
1111
".": "./mod.ts"
1212
},
13+
"bin": {
14+
"pyrunt": "./mod.ts"
15+
},
1316
"imports": {
1417
"@runt/lib": "jsr:@runt/lib@^0.6.2",
1518
"@runt/schema": "jsr:@runt/schema@^0.6.2"

packages/python-runtime-agent/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export { PythonRuntimeAgent };
44

55
if (import.meta.main) {
66
const agent = new PythonRuntimeAgent();
7-
await runner(agent);
7+
await runner(agent, "PyRunt");
88
}

0 commit comments

Comments
 (0)