Documentation
¶
Index ¶
- func ACPProbeCacheFile() (string, error)
- func AgentCatalogFile() (string, error)
- func AuthConfigDir() (string, error)
- func AuthRolesDir() (string, error)
- func AuthSessionsDir() (string, error)
- func AuthSystemFile() (string, error)
- func AuthUsersDir() (string, error)
- func CodexAccountsFile() (string, error)
- func CodexHome(environment map[string]string) (string, error)
- func CodexLoginTmpDir() (string, error)
- func FileSharesFile() (string, error)
- func GlobalMessagePresetsFile() (string, error)
- func GraphRunDir(wsID, jobID string) string
- func GraphRunEdgesFile(wsID, jobID string) string
- func GraphRunEventsFile(wsID, jobID string) string
- func GraphRunFile(wsID, jobID string) string
- func GraphRunInstancesFile(wsID, jobID string) string
- func GraphRunProgressFile(wsID, jobID string) string
- func GraphRunResumeFile(wsID, jobID string) string
- func GraphRunSessionLineageFile(wsID, jobID string) string
- func GraphRunVariablesFile(wsID, jobID string) string
- func GraphWorkflowsDir() (string, error)
- func IMJobMappingDir() string
- func IMJobMappingFilePath(platform, chatID string) string
- func IMJobMappingLegacyFilePath(platform, chatID string) string
- func IMMediaCacheDir() (string, error)
- func IMMessageDir(chatID string) string
- func IMMessageFilePath(chatID string, t time.Time) string
- func IconCacheDir() (string, error)
- func JobMetaDir(jobDir string) string
- func JobMetaFilePath(jobDir string) string
- func LocalJobDirInWorkspace(wsID, jobID string) string
- func LocalJobsDirInWorkspace(wsID string) string
- func LocalMemoryDir() (string, error)
- func LocalSessionDirInWorkspaceJob(wsID, jobID, sessionID string) string
- func LocalSessionsDirInWorkspaceJob(wsID, jobID string) string
- func LocalWorkspaceDir(id string) string
- func LocalWorkspacesDir() string
- func MessagePresetsDir() (string, error)
- func MessagesFilePath(sessionDir string) string
- func MetaDir(sessionDir string) string
- func MetaFilePath(sessionDir string) string
- func PersistentIMMediaDir() (string, error)
- func PromptsDir() (string, error)
- func QuartetCacheDir() (string, error)
- func QuartetConfigDir() (string, error)
- func QuartetDataDir() (string, error)
- func QuartetDir() (string, error)
- func QuartetRuntimeDir() (string, error)
- func QuartetStateDir() (string, error)
- func QuartetTmpDir() (string, error)
- func RecentDirsFile() (string, error)
- func ScheduleStatesDir() (string, error)
- func SchedulesDir() (string, error)
- func SettingsConfigFile() (string, error)
- func ShellTempDir() (string, error)
- func UploadsDir() (string, error)
- func UsageStatsDir() (string, error)
- func UsageStatsMonthFile(t time.Time) (string, error)
- func UserInputDir() string
- func UserInputFilePath(t time.Time) string
- func WeChatAccountsDir() string
- func WeChatOutboxDir() string
- func WeChatOutboxTaskFile(taskID string) string
- func WeChatSyncBufFile(botID string) string
- func WeChatUserTokensFile() string
- func WorkspaceMessagePresetsDir() (string, error)
- func WorkspaceMessagePresetsFile(workspaceID string) (string, error)
- func WorkspaceMetaDir(wsDir string) string
- func WorkspaceMetaFilePath(wsDir string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ACPProbeCacheFile ¶
ACPProbeCacheFile returns the persisted ACP selector snapshot path.
func AgentCatalogFile ¶
AgentCatalogFile returns the persistent custom-agent catalog path.
func AuthConfigDir ¶
AuthConfigDir returns the persistent authentication configuration root.
func AuthRolesDir ¶
func AuthSessionsDir ¶
func AuthSystemFile ¶
func AuthUsersDir ¶
func CodexAccountsFile ¶
CodexAccountsFile stores private Codex profiles and interrupted file swaps.
func CodexLoginTmpDir ¶
func FileSharesFile ¶
FileSharesFile returns {LOCAL_MEMORY}/quartet/data/file-shares.json.
func GraphRunDir ¶
GraphRunDir returns the runtime artifact directory for a GraphRun bound to a Job: {LOCAL_MEMORY}/quartet/data/workspaces/{wsID}/jobs/{jobID}/graph_run/. The run data lives with the Job, not in the global agent directory.
func GraphRunEdgesFile ¶
GraphRunEdgesFile returns the edge-state snapshot file for a run.
func GraphRunEventsFile ¶
GraphRunEventsFile returns the append-only event log file for a run.
func GraphRunFile ¶
GraphRunFile returns the persisted GraphRun metadata and baseline snapshot.
func GraphRunInstancesFile ¶
GraphRunInstancesFile returns the instance-state snapshot file for a run.
func GraphRunProgressFile ¶
GraphRunProgressFile returns the progress snapshot file for a run.
func GraphRunResumeFile ¶
GraphRunResumeFile returns the resume snapshot file for a run.
func GraphRunSessionLineageFile ¶
GraphRunSessionLineageFile returns the session-lineage snapshot file for a run.
func GraphRunVariablesFile ¶
GraphRunVariablesFile returns the visible-variable snapshot file for a run.
func GraphWorkflowsDir ¶
GraphWorkflowsDir returns {LOCAL_MEMORY}/quartet/config/graph-workflows/. Holds one JSON file per GraphWorkflow config (the editable/saved workflow definitions). GraphRun runtime artifacts (snapshots, instance/edge state) live elsewhere and are owned by the execution engine, not here.
func IMJobMappingDir ¶
func IMJobMappingDir() string
IMJobMappingDir returns {LOCAL_MEMORY}/quartet/data/im/mappings/, the persistent IM mapping directory.
func IMJobMappingFilePath ¶
IMJobMappingFilePath returns {LOCAL_MEMORY}/quartet/data/im/mappings/{platform}/{chatID}.json.
func IMJobMappingLegacyFilePath ¶
IMJobMappingLegacyFilePath returns the old flat layout used by early versions: {LOCAL_MEMORY}/quartet/data/im/mappings/{platform}_{chatID}.json.
Kept for backward-compatible reads so existing deployments do not lose mappings after upgrading.
func IMMediaCacheDir ¶
IMMediaCacheDir returns {LOCAL_MEMORY}/var/quartet/cache/im-media/, the disposable processing cache for IM media.
func IMMessageDir ¶
IMMessageDir returns {LOCAL_MEMORY}/quartet/data/im/{chatID}/, the persistent IM message directory for a chat.
func IMMessageFilePath ¶
IMMessageFilePath returns {LOCAL_MEMORY}/quartet/data/im/{chatID}/YYYY-MM-DD.jsonl.
func IconCacheDir ¶
IconCacheDir returns {LOCAL_MEMORY}/var/quartet/cache/icons/.
func JobMetaFilePath ¶
JobMetaFilePath returns the job.json file path within a job directory
func LocalJobDirInWorkspace ¶
LocalJobDirInWorkspace returns {LOCAL_MEMORY}/quartet/data/workspaces/{wsID}/jobs/{jobID}.
func LocalJobsDirInWorkspace ¶
LocalJobsDirInWorkspace returns {LOCAL_MEMORY}/quartet/data/workspaces/{wsID}/jobs/.
func LocalMemoryDir ¶
LocalMemoryDir returns {LOCAL_MEMORY}/, the stable Memory root configured by the LOCAL_MEMORY env var.
func LocalSessionDirInWorkspaceJob ¶
LocalSessionDirInWorkspaceJob returns {LOCAL_MEMORY}/quartet/data/workspaces/{wsID}/jobs/{jobID}/sessions/{sessionID}.
func LocalSessionsDirInWorkspaceJob ¶
LocalSessionsDirInWorkspaceJob returns {LOCAL_MEMORY}/quartet/data/workspaces/{wsID}/jobs/{jobID}/sessions/.
func LocalWorkspaceDir ¶
LocalWorkspaceDir returns {LOCAL_MEMORY}/quartet/data/workspaces/{id}.
func LocalWorkspacesDir ¶
func LocalWorkspacesDir() string
LocalWorkspacesDir returns {LOCAL_MEMORY}/quartet/data/workspaces/. Panics if the env var is not set — the previous behaviour (falling back to the relative path "workspaces") created data directories in whatever CWD the process happened to have, which routinely caused data to silently land outside LOCAL_MEMORY. Every binary that needs workspace I/O already validates LOCAL_MEMORY at startup, so reaching this path without the env var set is a programming bug. Panic (rather than log.Fatalf) runs deferred cleanup and yields a stack trace so the buggy caller is obvious.
func MessagePresetsDir ¶
MessagePresetsDir returns the persistent preset-message configuration root.
func MessagesFilePath ¶
MessagesFilePath returns the messages.jsonl file path within a session directory
func MetaFilePath ¶
MetaFilePath returns the meta.json file path within a session directory
func PersistentIMMediaDir ¶
PersistentIMMediaDir returns {LOCAL_MEMORY}/quartet/data/uploads/im-media/, the directory for media referenced by durable records.
func PromptsDir ¶
PromptsDir returns {LOCAL_MEMORY}/quartet/config/prompts/, the human-maintained prompt directory.
func QuartetCacheDir ¶
QuartetCacheDir returns {LOCAL_MEMORY}/var/quartet/cache/.
func QuartetConfigDir ¶
QuartetConfigDir returns {LOCAL_MEMORY}/quartet/config/, the root of human-maintained Quartet configuration.
func QuartetDataDir ¶
QuartetDataDir returns {LOCAL_MEMORY}/quartet/data/, the root of persistent Quartet business data.
func QuartetDir ¶
QuartetDir returns {LOCAL_MEMORY}/quartet/, the root of Quartet-owned files.
func QuartetRuntimeDir ¶
QuartetRuntimeDir returns {LOCAL_MEMORY}/var/quartet/, the root of Quartet runtime state, cache and temp files.
func QuartetStateDir ¶
QuartetStateDir returns {LOCAL_MEMORY}/var/quartet/state/.
func QuartetTmpDir ¶
QuartetTmpDir returns {LOCAL_MEMORY}/var/quartet/tmp/.
func RecentDirsFile ¶
RecentDirsFile returns the runtime recent-directory state file.
func ScheduleStatesDir ¶
ScheduleStatesDir returns {LOCAL_MEMORY}/var/quartet/state/schedules/, the machine-local Schedule activation and runtime state directory.
func SchedulesDir ¶
SchedulesDir returns {LOCAL_MEMORY}/quartet/config/schedules/, the Schedule definition directory.
func SettingsConfigFile ¶
SettingsConfigFile returns the persistent settings.json path.
func ShellTempDir ¶
ShellTempDir returns {LOCAL_MEMORY}/var/quartet/tmp/shell/, the process-owned temp directory for shell helper scripts and control files. Such a script is a process artifact, not user content, so it lives here rather than in the job's workdir — a leaked file then sits in reconstructable state instead of dirtying the user's checkout.
func UploadsDir ¶
UploadsDir returns {LOCAL_MEMORY}/quartet/data/uploads/, the persistent upload directory.
func UsageStatsDir ¶
UsageStatsDir returns {LOCAL_MEMORY}/quartet/usage-stats/. Usage statistics live outside quartet/data as persistent configuration data.
func UsageStatsMonthFile ¶
UsageStatsMonthFile returns {LOCAL_MEMORY}/quartet/usage-stats/YYYY-MM.json for the given time in the server's local timezone.
func UserInputDir ¶
func UserInputDir() string
UserInputDir returns {LOCAL_MEMORY}/quartet/data/user-input/, the persistent flat user-input directory.
func UserInputFilePath ¶
UserInputFilePath returns {LOCAL_MEMORY}/quartet/data/user-input/YYYY-MM-DD.jsonl for the given time in the server's local timezone.
func WeChatAccountsDir ¶
func WeChatAccountsDir() string
WeChatAccountsDir returns {LOCAL_MEMORY}/quartet/data/wechat/accounts/, the persistent WeChat account directory.
func WeChatOutboxDir ¶
func WeChatOutboxDir() string
WeChatOutboxDir returns the durable proactive-send queue directory. Each task is a standalone JSON file so enqueue/progress updates are atomic and a backend restart can resume from the last acknowledged chunk.
func WeChatOutboxTaskFile ¶
func WeChatSyncBufFile ¶
WeChatSyncBufFile returns {LOCAL_MEMORY}/quartet/data/wechat/accounts/{botID}.sync.json. Used by the iLink long-poll monitor to persist get_updates_buf so reconnects after a restart resume from the last seen seq instead of replaying history.
func WeChatUserTokensFile ¶
func WeChatUserTokensFile() string
WeChatUserTokensFile returns {LOCAL_MEMORY}/quartet/data/wechat/accounts/user_tokens.json. It persists the botID → fromUserID → latest ContextToken map so proactive sends (Replier.SendText) keep working across backend restarts and account changes.
func WorkspaceMetaDir ¶
WorkspaceMetaDir returns {wsDir}/.meta/.
func WorkspaceMetaFilePath ¶
WorkspaceMetaFilePath returns the workspace.json file path within a workspace directory
Types ¶
This section is empty.