File tree Expand file tree Collapse file tree 7 files changed +13
-10
lines changed
Expand file tree Collapse file tree 7 files changed +13
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
2424if ( import . meta. main ) {
2525 const agent = new PyodideRuntimeAgent ( ) ;
26- await runner ( agent ) ;
26+ await runner ( agent , "PyoRunt" ) ;
2727}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export { PythonRuntimeAgent };
44
55if ( import . meta. main ) {
66 const agent = new PythonRuntimeAgent ( ) ;
7- await runner ( agent ) ;
7+ await runner ( agent , "PyRunt" ) ;
88}
You can’t perform that action at this time.
0 commit comments