mirror of
https://github.com/urbit/shrub.git
synced 2025-01-08 22:18:12 +03:00
2c5510db64
Resolves a good number of conflicts. Most notably, re-propagates removal of gall's %onto, confirms new /app/herm behavior, coerces hood/drum state adapters back into place, and updates webterm to use the latest api.
21 lines
514 B
TypeScript
21 lines
514 B
TypeScript
import { Scry } from '../http-api/src'
|
|
import { Poke } from '../http-api/src/types';
|
|
import { Belt, Task, SessionTask } from './types';
|
|
|
|
export const pokeTask = (session: string, task: Task): Poke<SessionTask> => ({
|
|
app: 'herm',
|
|
mark: 'herm-task',
|
|
json: { session, ...task }
|
|
});
|
|
|
|
export const pokeBelt = (
|
|
session: string,
|
|
belt: Belt
|
|
): Poke<SessionTask> => pokeTask(session, { belt });
|
|
|
|
//NOTE scry will return string[]
|
|
export const scrySessions = (): Scry => ({
|
|
app: 'herm',
|
|
path: `/sessions`
|
|
});
|