Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

592 B
Raw Blame
// serverStatusSlice.ts
import { StateCreator } from 'zustand';
import { BuilderStore } from '../store'; // important: import the final store type
import { Slice } from '../..';

export interface BaseSlice extends Slice {
  agentDomains: {
    dev: string | null;
    prod: string | null;
    defaultProd: string | null;
    scheme: string | null;
  };
}

// Add all 3 args: set, get, store
export const baseSlice: StateCreator<BuilderStore, [], [], BaseSlice> = (set, get, store) => ({
  agentDomains: { dev: null, prod: null, defaultProd: null, scheme: null },

  init: async () => {},
});