(frame: ToolFrame)
| 137 | } |
| 138 | |
| 139 | function props<T = Tool.Info>(frame: ToolFrame): ToolProps<T> { |
| 140 | return { |
| 141 | input: Object.assign(Object.create(null), frame.input), |
| 142 | metadata: Object.assign(Object.create(null), frame.meta), |
| 143 | frame, |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | function permission<T = Tool.Info>(ctx: ToolPermissionCtx): ToolPermissionProps<T> { |
| 148 | return { |
no test coverage detected