@agentuity/runtime 0.0.41 → 0.0.42

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/router.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/runtime",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",
package/src/router.ts CHANGED
@@ -121,7 +121,7 @@ export const createRouter = <E extends Env = Env, S extends Schema = Schema>():
121
121
  // shim in special routes
122
122
  _router.email = (address: string, handler: AgentHandler) => {
123
123
  const id = hash(address);
124
- const path = `/email/${id}`;
124
+ const path = `/${id}`;
125
125
  // registerEmailHandler(address)
126
126
  const wrapper = async (c: Context): Promise<Response> => {
127
127
  let result = handler(c);
@@ -133,7 +133,7 @@ export const createRouter = <E extends Env = Env, S extends Schema = Schema>():
133
133
 
134
134
  _router.sms = ({ number }: { number: string }, handler: AgentHandler) => {
135
135
  const id = hash(number);
136
- const path = `/sms/${id}`;
136
+ const path = `/${id}`;
137
137
  // registerSMSHandler(number)
138
138
  const wrapper = async (c: Context): Promise<Response> => {
139
139
  let result = handler(c);
@@ -145,7 +145,7 @@ export const createRouter = <E extends Env = Env, S extends Schema = Schema>():
145
145
 
146
146
  _router.cron = (schedule: string, handler: AgentHandler) => {
147
147
  const id = hash(schedule);
148
- const path = `/cron/${id}`;
148
+ const path = `/${id}`;
149
149
  // registerCronHandler(schedule)
150
150
  const wrapper = async (c: Context): Promise<Response> => {
151
151
  let result = handler(c);