Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { defineBlock, type ExtractLoadType, LoadErrors } from '@core/block';
import { ok } from 'neverthrow';
import { lazy } from 'solid-js';
export const definition = defineBlock({
name: 'routine',
description: 'view and edit a single routine',
defaultFilename: 'Untitled routine',
component: lazy(async () => ({
default: (await import('./routine-detail')).Routine,
})),
accepted: {},
async load(source, intent) {
if (source.type === 'dss') {
if (intent === 'preload') {
return ok({
type: 'preload',
origin: source,
});
}
return ok({ scheduleId: source.id });
}
return LoadErrors.INVALID;
},
liveTrackingEnabled: false,
});
export type RoutineData = ExtractLoadType<(typeof definition)['load']>;