Documentation
¶
Overview ¶
Package app owns Pinax application-service orchestration.
Index ¶
- Constants
- func BuildAgentBrainContextBundle(req AgentBrainContextBundleRequest) domain.AgentBrainContextBundle
- func BuildEnhancedLinkGraph(notes []domain.Note) (enhancedLinks map[string][]domain.NoteLink, ...)
- func FindRemoteRPCMethod(method string) (domain.RemoteRoute, bool)
- func RemoteCapabilities() []domain.RemoteCapability
- func RemoteRoutes() []domain.RemoteRoute
- func TemplateCompletionItems(root, kind string, includeBuiltins, includeLocal bool) []string
- func TemplateVariableCompletionItems(root, name string) []string
- type APIRequest
- type ActivityEntry
- type ActivityRequest
- type AgentBrainContextBundleRequest
- type AgentContextRequest
- type AgentFeedbackAddRequest
- type AgentHandoffCreateRequest
- type AgentMemoryFacts
- type AgentMemoryProposeRequest
- type AgentMemoryService
- func (s *AgentMemoryService) AgentContextRuntime(ctx context.Context, req AgentContextRequest) (agentprotocol.ContextPack, error)
- func (s *AgentMemoryService) AgentContextRuntimeWithLegacy(ctx context.Context, req AgentContextRequest, ...) (agentprotocol.ContextPack, error)
- func (s *AgentMemoryService) AgentContinuity(ctx context.Context, req ContinuityRequest) (agentcontinuity.ContinuityPack, error)
- func (s *AgentMemoryService) AgentFeedbackAdd(ctx context.Context, req AgentFeedbackAddRequest) (string, error)
- func (s *AgentMemoryService) AgentFeedbackList(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentFeedbackRow, error)
- func (s *AgentMemoryService) AgentHandoffCreate(ctx context.Context, req AgentHandoffCreateRequest) (string, error)
- func (s *AgentMemoryService) AgentHandoffList(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentHandoffRow, error)
- func (s *AgentMemoryService) AgentMemoryApprove(ctx context.Context, vaultPath, proposalID string, ...) (ApproveFacts, error)
- func (s *AgentMemoryService) AgentMemoryExpire(ctx context.Context, vaultPath, memoryID string, ...) error
- func (s *AgentMemoryService) AgentMemoryListProposals(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentProposalRow, error)
- func (s *AgentMemoryService) AgentMemoryPropose(ctx context.Context, req AgentMemoryProposeRequest) (AgentMemoryFacts, *agentprotocol.ProposalReview, error)
- func (s *AgentMemoryService) AgentMemoryRecall(ctx context.Context, vaultPath string, query agentmemory.RecallQuery) ([]agentprotocol.MemoryRecord, error)
- func (s *AgentMemoryService) AgentMemoryRecallQuery(ctx context.Context, vaultPath string, q RecallQuery) ([]agentprotocol.MemoryRecord, error)
- func (s *AgentMemoryService) AgentMemoryReject(ctx context.Context, vaultPath, proposalID string, ...) error
- func (s *AgentMemoryService) AgentMemoryResolveConflict(ctx context.Context, vaultPath, winnerID string, ...) error
- func (s *AgentMemoryService) AgentMemoryRollback(ctx context.Context, vaultPath, supersededID string, ...) error
- func (s *AgentMemoryService) AgentMemoryShowProposal(ctx context.Context, vaultPath, proposalID string) (agentmemory.AgentProposalRow, error)
- func (s *AgentMemoryService) AgentMemoryStatus(ctx context.Context, vaultPath string, scope agentprotocol.Scope) (map[agentprotocol.LifecycleState]int, error)
- func (s *AgentMemoryService) AgentMemorySupersede(ctx context.Context, vaultPath, oldID, replacementID string, ...) error
- func (s *AgentMemoryService) AgentTrustCenter(ctx context.Context, req TrustCenterRequest) (TrustCenterProjection, error)
- func (s *AgentMemoryService) Close() error
- func (s *AgentMemoryService) InboxItemDetail(ctx context.Context, req InboxItemDetailRequest) (memoryinbox.InboxItem, error)
- func (s *AgentMemoryService) MemoryInbox(ctx context.Context, req InboxRequest) (memoryinbox.InboxPack, error)
- type ApplyRequest
- type ApproveFacts
- type AssetRequest
- type BackendAddRequest
- type BackendNotesRequest
- type BackendObjectListRequest
- type BackendObjectStatRequest
- type BackendPlanRequest
- type BackendRequest
- type BrainAnswerRequest
- type BrainMaintenanceRequest
- type BriefingRecipeRequest
- type BriefingRunRequest
- type CloudBackendSetRequest
- type CloudLoginRequest
- type CloudRequest
- type CollectionRequest
- type ContinuityRequest
- type CreateNoteRequest
- type DailyRequest
- type DatabaseSchemaRequest
- type DataviewRequest
- type DraftPromoteRequest
- type ExportMarkdownRequest
- type FeishuDeliveryRequest
- type FolderListRequest
- type FolderOperationRequest
- type FolderRepairRequest
- type FolderRequest
- type GraphRequest
- type IdentityMigrationApplyRequest
- type IdentityMigrationRequest
- type ImportMarkdownRequest
- type InboxItemDetailRequest
- type InboxPromoteRequest
- type InboxRequest
- type InboxTriageRequest
- type IndexLookupRequest
- type IndexPageRequest
- type IndexRefreshRequest
- type IndexRepairRequest
- type InitVaultRequest
- type KBImportRequest
- type KBIndexRequest
- type MemoryCaptureRequest
- type MemoryListRequest
- type MemoryRecallRequest
- type MonitorEvent
- type MonitorMetrics
- type MonitorRequest
- type MonitorRun
- type MonitorStep
- type NoteAttachRequest
- type NoteBacklinkGraphRequest
- type NoteDeleteRequest
- type NoteEditRequest
- type NoteFolderBulkRequest
- type NoteLinkGraphRequest
- type NoteLinkGraphService
- type NoteLinkRequest
- type NoteListRequest
- type NoteMutationRequest
- type NoteOrphansRequest
- type NotePropertyRequest
- type NoteRefreshRequest
- type NoteTagBulkRequest
- type NoteTagRequest
- type OrganizeSuggestRequest
- type ParseRawLink
- type PlanningRequest
- type PluginRequest
- type ProjectBoardRequest
- type ProjectDeleteRequest
- type ProjectItemRequest
- type ProjectLearningRequest
- type ProjectRequest
- type ProjectSubprojectDeleteRequest
- type ProjectWorkspaceRequest
- type PromptAssetRequest
- type ProofLoopRunRequest
- type PublishEvent
- type PublishEventSink
- type PublishRequest
- type QueryRequest
- type RecallQuery
- type RecordRequest
- type RenderRunRequest
- type RepairApplyRequest
- type RepairPlanRequest
- type ResolveResult
- type ResolverRequest
- type ResolverResult
- type ResolverSnapshot
- type SearchRequest
- type SearchResult
- type Service
- func (s *Service) APIRoutes(_ context.Context, req APIRequest) (domain.Projection, error)
- func (s *Service) APISchemaExport(_ context.Context, req APIRequest) (domain.Projection, error)
- func (s *Service) ActivityList(_ context.Context, req ActivityRequest) (domain.Projection, error)
- func (s *Service) ActivityManage(_ context.Context, req ActivityRequest) (domain.Projection, error)
- func (s *Service) ActivityShow(_ context.Context, req ActivityRequest) (domain.Projection, error)
- func (s *Service) ActivitySources(_ context.Context, req ActivityRequest) (domain.Projection, error)
- func (s *Service) ActivityTail(ctx context.Context, req ActivityRequest) (domain.Projection, error)
- func (s *Service) AddBackend(_ context.Context, req BackendAddRequest) (domain.Projection, error)
- func (s *Service) AdoptFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
- func (s *Service) ApplyMetadata(ctx context.Context, req ApplyRequest) (domain.Projection, error)
- func (s *Service) ApplyOrganize(ctx context.Context, req ApplyRequest) (domain.Projection, error)
- func (s *Service) ApplyRepair(ctx context.Context, req RepairApplyRequest) (domain.Projection, error)
- func (s *Service) ArchiveNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) AssetAdd(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetBacklinks(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetLink(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetList(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) AssetMissing(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) AssetMovePlan(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetOrphans(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) AssetPreview(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetRemovePlan(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetRepairPlan(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) AssetShow(_ context.Context, req AssetRequest) (domain.Projection, error)
- func (s *Service) AssetVerify(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) AttachNoteFile(ctx context.Context, req NoteAttachRequest) (domain.Projection, error)
- func (s *Service) BackendCapabilities(_ context.Context, req BackendRequest) (domain.Projection, error)
- func (s *Service) BackendDiff(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
- func (s *Service) BackendDoctor(_ context.Context, req BackendRequest) (domain.Projection, error)
- func (s *Service) BackendNotesList(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
- func (s *Service) BackendNotesStat(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
- func (s *Service) BackendNotesSummary(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
- func (s *Service) BackendObjectList(ctx context.Context, req BackendObjectListRequest) (domain.Projection, error)
- func (s *Service) BackendObjectStat(ctx context.Context, req BackendObjectStatRequest) (domain.Projection, error)
- func (s *Service) BackendPull(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
- func (s *Service) BackendPush(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
- func (s *Service) BackendShow(_ context.Context, req BackendRequest) (domain.Projection, error)
- func (s *Service) BrainAnswerPreview(ctx context.Context, req BrainAnswerRequest) (domain.Projection, error)
- func (s *Service) BrainMaintenancePlan(_ context.Context, req BrainMaintenanceRequest) (domain.Projection, error)
- func (s *Service) BriefingRecipeInit(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
- func (s *Service) BriefingRecipeSet(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
- func (s *Service) BriefingRecipeShow(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
- func (s *Service) BriefingRun(_ context.Context, req BriefingRunRequest) (domain.Projection, error)
- func (s *Service) BulkFolder(ctx context.Context, req NoteFolderBulkRequest) (domain.Projection, error)
- func (s *Service) BulkTag(ctx context.Context, req NoteTagBulkRequest) (domain.Projection, error)
- func (s *Service) CapsaBackendSetRclone(ctx context.Context, req CloudBackendSetRequest) (domain.Projection, error)
- func (s *Service) CapsaBackendSetS3(ctx context.Context, req CloudBackendSetRequest) (domain.Projection, error)
- func (s *Service) CapsaDoctor(ctx context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CapsaLogin(ctx context.Context, req CloudLoginRequest) (domain.Projection, error)
- func (s *Service) CapsaLogout(ctx context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CapsaStatus(ctx context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CloudBackendSetRclone(_ context.Context, req CloudBackendSetRequest) (domain.Projection, error)
- func (s *Service) CloudBackendSetS3(_ context.Context, req CloudBackendSetRequest) (domain.Projection, error)
- func (s *Service) CloudDoctor(_ context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CloudLogin(_ context.Context, req CloudLoginRequest) (domain.Projection, error)
- func (s *Service) CloudLogout(_ context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CloudStatus(_ context.Context, req CloudRequest) (domain.Projection, error)
- func (s *Service) CollectionDiff(ctx context.Context, req CollectionRequest) (domain.Projection, error)
- func (s *Service) CollectionDoctor(ctx context.Context, req CollectionRequest) (domain.Projection, error)
- func (s *Service) CollectionExport(ctx context.Context, req CollectionRequest) (domain.Projection, error)
- func (s *Service) CollectionImport(ctx context.Context, req CollectionRequest) (domain.Projection, error)
- func (s *Service) CreateFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
- func (s *Service) CreateIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
- func (s *Service) CreateNote(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
- func (s *Service) CreateProject(_ context.Context, req ProjectRequest) (domain.Projection, error)
- func (s *Service) CreateTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) DailyAppend(_ context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) DailyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) DailyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) DatabaseSchemaInfer(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) DatabaseSchemaList(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) DatabaseSchemaSet(_ context.Context, req DatabaseSchemaRequest) (domain.Projection, error)
- func (s *Service) DatabaseSchemaShow(_ context.Context, req DatabaseSchemaRequest) (domain.Projection, error)
- func (s *Service) DataviewExplain(_ context.Context, req DataviewRequest) (domain.Projection, error)
- func (s *Service) DataviewRun(ctx context.Context, req DataviewRequest) (projection domain.Projection, err error)
- func (s *Service) DeleteFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
- func (s *Service) DeleteNote(ctx context.Context, req NoteDeleteRequest) (domain.Projection, error)
- func (s *Service) DeleteTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) DeleteView(_ context.Context, req ViewRequest) (domain.Projection, error)
- func (s *Service) DeliverFeishu(ctx context.Context, req FeishuDeliveryRequest) (domain.Projection, error)
- func (s *Service) DraftArchive(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) DraftCreate(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
- func (s *Service) DraftDiscard(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) DraftList(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) DraftPromote(ctx context.Context, req DraftPromoteRequest) (domain.Projection, error)
- func (s *Service) DraftShow(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
- func (s *Service) EditNote(ctx context.Context, req NoteEditRequest) (domain.Projection, error)
- func (s *Service) ExportMarkdown(_ context.Context, req ExportMarkdownRequest) (domain.Projection, error)
- func (s *Service) GitSnapshot(ctx context.Context, req SnapshotRequest) (domain.Projection, error)
- func (s *Service) GraphQuery(ctx context.Context, req GraphRequest) (domain.Projection, error)
- func (s *Service) GraphRebuild(ctx context.Context, req GraphRequest) (domain.Projection, error)
- func (s *Service) GraphSummary(_ context.Context, vaultPath string) (domain.NoteGraphProjection, error)
- func (s *Service) GraphSummaryProjection(ctx context.Context, vaultPath string) (domain.Projection, error)
- func (s *Service) ImportMarkdown(_ context.Context, req ImportMarkdownRequest) (domain.Projection, error)
- func (s *Service) InboxCapture(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
- func (s *Service) InboxDiscard(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) InboxList(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) InboxPromote(ctx context.Context, req InboxPromoteRequest) (domain.Projection, error)
- func (s *Service) InboxShow(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
- func (s *Service) InboxTriage(_ context.Context, req InboxTriageRequest) (domain.Projection, error)
- func (s *Service) IndexDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) IndexExplain(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) IndexLookup(_ context.Context, req IndexLookupRequest) (domain.Projection, error)
- func (s *Service) IndexRefresh(ctx context.Context, req IndexRefreshRequest) (projection domain.Projection, err error)
- func (s *Service) IndexRepair(_ context.Context, req IndexRepairRequest) (projection domain.Projection, err error)
- func (s *Service) IndexStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) IndexSummary(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) InitIndex(_ context.Context, req VaultRequest) (projection domain.Projection, err error)
- func (s *Service) InitTemplates(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) InitVault(_ context.Context, req InitVaultRequest) (domain.Projection, error)
- func (s *Service) InspectTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) KBContext(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBDoctor(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBImport(_ context.Context, req KBImportRequest) (domain.Projection, error)
- func (s *Service) KBProviderDoctor(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBProviderList(_ context.Context, _ KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBRebuild(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBRefresh(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) KBSearch(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
- func (s *Service) ListBackends(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListDimension(_ context.Context, req VaultRequest, dimension string) (domain.Projection, error)
- func (s *Service) ListFolders(_ context.Context, req FolderListRequest) (domain.Projection, error)
- func (s *Service) ListNotes(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListNotesQuery(_ context.Context, req NoteListRequest) (domain.Projection, error)
- func (s *Service) ListOrganizePlans(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListProjects(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListRepairPlans(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListTemplateCatalog(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) ListTemplates(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) ListViews(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) MemoryCapture(ctx context.Context, req MemoryCaptureRequest) (domain.Projection, error)
- func (s *Service) MemoryContext(ctx context.Context, req MemoryRecallRequest) (domain.Projection, error)
- func (s *Service) MemoryList(ctx context.Context, req MemoryListRequest) (domain.Projection, error)
- func (s *Service) MemoryRecall(ctx context.Context, req MemoryRecallRequest) (domain.Projection, error)
- func (s *Service) MemoryStats(ctx context.Context, req MemoryListRequest) (domain.Projection, error)
- func (s *Service) MonitorList(_ context.Context, req MonitorRequest) (domain.Projection, error)
- func (s *Service) MonitorManage(_ context.Context, req MonitorRequest) (domain.Projection, error)
- func (s *Service) MonitorShow(_ context.Context, req MonitorRequest) (domain.Projection, error)
- func (s *Service) MonitorSummary(_ context.Context, req MonitorRequest) (domain.Projection, error)
- func (s *Service) MonitorTail(ctx context.Context, req MonitorRequest) (domain.Projection, error)
- func (s *Service) MonthlyAppend(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) MonthlyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) MonthlyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) MoveFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
- func (s *Service) MoveNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) NoteAttachments(_ context.Context, req NoteLinkRequest) (domain.Projection, error)
- func (s *Service) NoteBacklinks(ctx context.Context, req NoteLinkRequest) (domain.Projection, error)
- func (s *Service) NoteLinks(ctx context.Context, req NoteLinkRequest) (domain.Projection, error)
- func (s *Service) NoteOrphans(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) PatchNoteProperty(ctx context.Context, req NotePropertyRequest) (domain.Projection, error)
- func (s *Service) PlanActions(ctx context.Context, req PlanningRequest) (domain.Projection, error)
- func (s *Service) PlanDaily(ctx context.Context, req PlanningRequest) (domain.Projection, error)
- func (s *Service) PlanMetadata(ctx context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) PlanMonthly(ctx context.Context, req PlanningRequest) (domain.Projection, error)
- func (s *Service) PlanOrganize(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) PlanRepair(ctx context.Context, req RepairPlanRequest) (domain.Projection, error)
- func (s *Service) PlanSnapshot(_ context.Context, req PlanningRequest) (domain.Projection, error)
- func (s *Service) PlanWeekly(ctx context.Context, req PlanningRequest) (domain.Projection, error)
- func (s *Service) PluginDisable(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginDoctor(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginEnable(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginInspect(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginInstall(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginList(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginPermissionsGrant(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginPermissionsList(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginPermissionsRevoke(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginRun(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginUninstall(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PluginValidate(ctx context.Context, req PluginRequest) (domain.Projection, error)
- func (s *Service) PreviewIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
- func (s *Service) PreviewTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) ProjectBoardConfigure(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
- func (s *Service) ProjectBoardExport(ctx context.Context, req ProjectBoardRequest) (domain.Projection, error)
- func (s *Service) ProjectBoardPlan(ctx context.Context, req ProjectBoardRequest) (domain.Projection, error)
- func (s *Service) ProjectBoardShow(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
- func (s *Service) ProjectBoardViewSave(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
- func (s *Service) ProjectDelete(_ context.Context, req ProjectDeleteRequest) (domain.Projection, error)
- func (s *Service) ProjectItemAdd(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
- func (s *Service) ProjectItemArchive(ctx context.Context, req ProjectItemRequest) (domain.Projection, error)
- func (s *Service) ProjectItemMove(ctx context.Context, req ProjectItemRequest) (domain.Projection, error)
- func (s *Service) ProjectItemPlan(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
- func (s *Service) ProjectItemShow(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
- func (s *Service) ProjectLearningInit(ctx context.Context, req ProjectLearningRequest) (domain.Projection, error)
- func (s *Service) ProjectShow(_ context.Context, req ProjectRequest) (domain.Projection, error)
- func (s *Service) ProjectSubprojectCreate(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
- func (s *Service) ProjectSubprojectDelete(_ context.Context, req ProjectSubprojectDeleteRequest) (domain.Projection, error)
- func (s *Service) ProjectSubprojectList(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
- func (s *Service) ProjectSubprojectShow(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
- func (s *Service) PromptCreate(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptFeedbackImport(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptImport(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptLifecycle(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptResolve(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptSearch(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) PromptShow(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
- func (s *Service) ProofLoopRun(ctx context.Context, req ProofLoopRunRequest) (domain.Projection, error)
- func (s *Service) PruneTemplateRuns(_ context.Context, req RenderRunRequest) (domain.Projection, error)
- func (s *Service) PublishBuild(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDeploy(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDev(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocLink(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocList(_ context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocPrepare(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocPrepareAll(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocProfileSet(_ context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocProviderDoctor(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocProviderList(_ context.Context, _ PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocPush(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocPushAll(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocStatus(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocUnlink(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDocUnlinkAll(_ context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishDoctor(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishPlan(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishPreviewApprove(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishProfileInit(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishProfileList(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishProfileShow(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishProfileValidate(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishServe(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishThemeEject(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) PublishThemeList(ctx context.Context, req PublishRequest) (domain.Projection, error)
- func (s *Service) QueryBacklinks(ctx context.Context, req NoteBacklinkGraphRequest) (domain.Projection, error)
- func (s *Service) QueryExplain(_ context.Context, req QueryRequest) (domain.Projection, error)
- func (s *Service) QueryOrphans(_ context.Context, req NoteOrphansRequest) (domain.Projection, error)
- func (s *Service) QueryOutgoingLinks(ctx context.Context, req NoteLinkGraphRequest) (domain.Projection, error)
- func (s *Service) QueryRun(ctx context.Context, req QueryRequest) (projection domain.Projection, err error)
- func (s *Service) RebuildIndex(_ context.Context, req VaultRequest) (projection domain.Projection, err error)
- func (s *Service) RecommendTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) RecordAdopt(ctx context.Context, req RecordRequest) (domain.Projection, error)
- func (s *Service) RecordHistory(ctx context.Context, req RecordRequest) (domain.Projection, error)
- func (s *Service) RecordIdentityApply(ctx context.Context, req IdentityMigrationApplyRequest) (domain.Projection, error)
- func (s *Service) RecordIdentityAudit(ctx context.Context, req IdentityMigrationRequest) (domain.Projection, error)
- func (s *Service) RecordIdentityPlan(ctx context.Context, req IdentityMigrationRequest) (domain.Projection, error)
- func (s *Service) RecordInit(ctx context.Context, req RecordRequest) (domain.Projection, error)
- func (s *Service) RecordStatus(ctx context.Context, req RecordRequest) (domain.Projection, error)
- func (s *Service) RefreshIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
- func (s *Service) RefreshNoteRendered(ctx context.Context, req NoteRefreshRequest) (domain.Projection, error)
- func (s *Service) RemoveBackend(_ context.Context, req BackendRequest) (domain.Projection, error)
- func (s *Service) RenameFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
- func (s *Service) RenameNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
- func (s *Service) RenderDatabaseView(ctx context.Context, req ViewRequest) (projection domain.Projection, err error)
- func (s *Service) RenderTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) RepairFolders(_ context.Context, req FolderRepairRequest) (domain.Projection, error)
- func (s *Service) RepairTemplateRuns(_ context.Context, req RenderRunRequest) (domain.Projection, error)
- func (s *Service) ResolveManagedObjectForMutation(ctx context.Context, req ResolverRequest) (ResolverResult, error)
- func (s *Service) ResolveNote(ctx context.Context, req ShowNoteRequest) (domain.Note, error)
- func (s *Service) ResolveNoteWithResolver(ctx context.Context, req ShowNoteRequest) (domain.Note, ResolverResult, error)
- func (s *Service) ResolveVaultObject(_ context.Context, req ResolverRequest) (ResolverResult, error)
- func (s *Service) ResolveVaultObjectForWrite(ctx context.Context, req ResolverRequest) (ResolverResult, error)
- func (s *Service) ResolveVaultObjectProjection(ctx context.Context, req ResolverRequest) (domain.Projection, error)
- func (s *Service) SaveDatabaseView(_ context.Context, req ViewRequest) (domain.Projection, error)
- func (s *Service) SaveView(_ context.Context, req ViewRequest) (domain.Projection, error)
- func (s *Service) SearchNotes(ctx context.Context, req SearchRequest) (result SearchResult, err error)
- func (s *Service) SearchProjection(ctx context.Context, req SearchRequest) (domain.Projection, error)
- func (s *Service) SetLocalStorage(_ context.Context, req StorageRequest) (domain.Projection, error)
- func (s *Service) SetS3Storage(_ context.Context, req StorageRequest) (domain.Projection, error)
- func (s *Service) ShareStart(ctx context.Context, req ShareRequest) (domain.Projection, error)
- func (s *Service) ShowDatabaseView(ctx context.Context, req ViewRequest) (domain.Projection, error)
- func (s *Service) ShowFolder(_ context.Context, req FolderRequest) (domain.Projection, error)
- func (s *Service) ShowNote(ctx context.Context, req ShowNoteRequest) (domain.Note, error)
- func (s *Service) ShowNoteProjection(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
- func (s *Service) ShowTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) ShowView(ctx context.Context, req ViewRequest) (domain.Projection, error)
- func (s *Service) StorageDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) StorageStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) SuggestOrganize(_ context.Context, req OrganizeSuggestRequest) (domain.Projection, error)
- func (s *Service) SwitchProject(_ context.Context, req ProjectRequest) (domain.Projection, error)
- func (s *Service) SyncAll(ctx context.Context, req SyncRequest) (domain.Projection, error)
- func (s *Service) SyncConflictsDiff(_ context.Context, req SyncConflictFileRequest) (domain.Projection, error)
- func (s *Service) SyncConflictsList(_ context.Context, req SyncConflictsListRequest) (domain.Projection, error)
- func (s *Service) SyncConflictsResolve(_ context.Context, req SyncConflictResolveRequest) (domain.Projection, error)
- func (s *Service) SyncConflictsShow(_ context.Context, req SyncConflictFileRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonInstall(_ context.Context, req SyncDaemonInstallRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonLogs(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonRun(ctx context.Context, req SyncDaemonRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonStart(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonStatus(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonStop(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
- func (s *Service) SyncDaemonUninstall(_ context.Context, req SyncDaemonInstallRequest) (domain.Projection, error)
- func (s *Service) SyncDiff(ctx context.Context, req SyncRequest) (domain.Projection, error)
- func (s *Service) SyncEnv(_ context.Context, req SyncEnvRequest) (domain.Projection, error)
- func (s *Service) SyncIndex(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) SyncInit(ctx context.Context, req SyncInitRequest) (domain.Projection, error)
- func (s *Service) SyncLogsFollow(ctx context.Context, req SyncLogsRequest, emit func(map[string]any) error) error
- func (s *Service) SyncLogsList(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
- func (s *Service) SyncLogsPrune(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
- func (s *Service) SyncLogsShow(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
- func (s *Service) SyncLogsTail(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
- func (s *Service) SyncManifestAudit(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
- func (s *Service) SyncManifestPlan(ctx context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
- func (s *Service) SyncManifestPromote(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
- func (s *Service) SyncManifestRollback(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
- func (s *Service) SyncPull(ctx context.Context, req SyncRequest) (domain.Projection, error)
- func (s *Service) SyncPush(ctx context.Context, req SyncRequest) (domain.Projection, error)
- func (s *Service) SyncRepoApply(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
- func (s *Service) SyncRepoBootstrap(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
- func (s *Service) SyncRepoDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) SyncRepoInit(_ context.Context, req SyncRepoInitRequest) (domain.Projection, error)
- func (s *Service) SyncRepoPlan(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
- func (s *Service) SyncRepoSecret(_ context.Context, req SyncRepoSecretRequest) (domain.Projection, error)
- func (s *Service) SyncStatus(ctx context.Context, req SyncStatusRequest) (domain.Projection, error)
- func (s *Service) TagNote(ctx context.Context, req NoteTagRequest) (domain.Projection, error)
- func (s *Service) TaskAdopt(_ context.Context, req TaskAdoptRequest) (domain.Projection, error)
- func (s *Service) TrashList(_ context.Context, req TrashRequest) (domain.Projection, error)
- func (s *Service) TrashPurge(_ context.Context, req TrashRequest) (domain.Projection, error)
- func (s *Service) TrashRestore(ctx context.Context, req TrashRequest) (domain.Projection, error)
- func (s *Service) ValidateTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
- func (s *Service) ValidateVault(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) VaultDoctor(_ context.Context, req VaultDoctorRequest) (domain.Projection, error)
- func (s *Service) VaultIgnoreApply(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
- func (s *Service) VaultIgnorePlan(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
- func (s *Service) VaultIgnoreStatus(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
- func (s *Service) VaultStats(_ context.Context, req VaultStatsRequest) (domain.Projection, error)
- func (s *Service) VersionBackends(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) VersionChanged(ctx context.Context, req VersionChangedRequest) (domain.Projection, error)
- func (s *Service) VersionDiff(ctx context.Context, req VersionDiffRequest) (domain.Projection, error)
- func (s *Service) VersionHistory(ctx context.Context, req VersionHistoryRequest) (domain.Projection, error)
- func (s *Service) VersionRestoreApply(ctx context.Context, req VersionRestoreApplyRequest) (domain.Projection, error)
- func (s *Service) VersionRestorePlan(ctx context.Context, req VersionRestorePlanRequest) (domain.Projection, error)
- func (s *Service) VersionShow(ctx context.Context, req VersionShowRequest) (domain.Projection, error)
- func (s *Service) VersionSnapshot(ctx context.Context, req SnapshotRequest) (domain.Projection, error)
- func (s *Service) VersionStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
- func (s *Service) WeeklyAppend(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) WeeklyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) WeeklyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
- func (s *Service) WorkbenchStatus(ctx context.Context, req APIRequest) (domain.Projection, error)
- type ShareRequest
- type ShowNoteRequest
- type SnapshotRequest
- type StorageRequest
- type SyncConflictFileRequest
- type SyncConflictResolveRequest
- type SyncConflictsListRequest
- type SyncDaemonInstallRequest
- type SyncDaemonRequest
- type SyncEnvRequest
- type SyncInitRequest
- type SyncLogsRequest
- type SyncManifestCapabilityState
- type SyncManifestIdentityAllocation
- type SyncManifestIdentityAudit
- type SyncManifestIdentityIssue
- type SyncManifestMigrationPlan
- type SyncManifestMigrationRequest
- type SyncManifestPromotionReceipt
- type SyncRepoInitRequest
- type SyncRepoRuntimeRequest
- type SyncRepoSecretRequest
- type SyncRequest
- type SyncRunReceipt
- type SyncRunRedaction
- type SyncStatusRequest
- type TaskAdoptRequest
- type TemplateCatalogItem
- type TemplatePack
- type TemplateRequest
- type TrashRequest
- type TrustCenterMetrics
- type TrustCenterProjection
- type TrustCenterRequest
- type TrustCenterSection
- type VaultDoctorRequest
- type VaultHealthService
- type VaultIgnoreRequest
- type VaultObjectCandidate
- type VaultRequest
- type VaultStatsRequest
- type VersionChangedRequest
- type VersionDiffRequest
- type VersionHistoryRequest
- type VersionRestoreApplyRequest
- type VersionRestorePlanRequest
- type VersionShowRequest
- type ViewRequest
- type WorkflowRecommendation
Constants ¶
const SyncEnvSchemaFact = pinaxremote.EnvAssetSchemaVersion
SyncEnvSchemaFact is the stable schema version fact surfaced in env projections.
Variables ¶
This section is empty.
Functions ¶
func BuildAgentBrainContextBundle ¶ added in v0.1.3
func BuildAgentBrainContextBundle(req AgentBrainContextBundleRequest) domain.AgentBrainContextBundle
func BuildEnhancedLinkGraph ¶
func BuildEnhancedLinkGraph(notes []domain.Note) ( enhancedLinks map[string][]domain.NoteLink, incoming map[string][]domain.NoteLink, )
BuildEnhancedLinkGraph 构建增强的双联关系图。 返回所有出链、入链索引和增强的 NoteLink 列表。
func FindRemoteRPCMethod ¶
func FindRemoteRPCMethod(method string) (domain.RemoteRoute, bool)
func RemoteCapabilities ¶
func RemoteCapabilities() []domain.RemoteCapability
func RemoteRoutes ¶
func RemoteRoutes() []domain.RemoteRoute
func TemplateCompletionItems ¶
Types ¶
type APIRequest ¶
type ActivityEntry ¶ added in v0.1.3
type ActivityEntry struct {
SchemaVersion string `json:"schema_version"`
EventID string `json:"event_id"`
Source string `json:"source"`
Kind string `json:"kind"`
Status string `json:"status,omitempty"`
Severity string `json:"severity,omitempty"`
Summary string `json:"summary"`
ObjectRef string `json:"object_ref,omitempty"`
Path string `json:"path,omitempty"`
RunID string `json:"run_id,omitempty"`
Timestamp string `json:"ts,omitempty"`
DurationMS int64 `json:"duration_ms,omitempty"`
Facts map[string]string `json:"facts,omitempty"`
Evidence []string `json:"evidence,omitempty"`
Actions []domain.Action `json:"actions,omitempty"`
}
type ActivityRequest ¶ added in v0.1.3
type AgentBrainContextBundleRequest ¶ added in v0.1.3
type AgentBrainContextBundleRequest struct {
Task string
Contexts []domain.AgentContext
Receipts []domain.AgentBrainReceiptRef
Freshness domain.AgentBrainFreshness
Actions []domain.Action
}
type AgentContextRequest ¶ added in v0.1.6
type AgentContextRequest struct {
VaultPath string
Principal agentprotocol.Principal
Scope agentprotocol.Scope
Task string
Intent string
Entities []string
KindFilter []agentprotocol.MemoryKind
MaxItems int
MaxChars int
}
AgentContextRequest 描述一次 context compilation 的输入。
type AgentFeedbackAddRequest ¶ added in v0.1.6
type AgentFeedbackAddRequest struct {
VaultPath string
Principal agentprotocol.Principal
Scope agentprotocol.Scope
Kind agentprotocol.FeedbackKind
MemoryID string
ContextRef string
Comment string
}
AgentFeedbackAddRequest 描述一次 feedback add 的输入。
type AgentHandoffCreateRequest ¶ added in v0.1.6
type AgentHandoffCreateRequest struct {
VaultPath string
From agentprotocol.Principal
To agentprotocol.Principal
Scope agentprotocol.Scope
Objective string
CurrentState string
Decisions []string
CompletedWork []string
Blockers []string
Verification []string
FollowUps []string
Sources agentprotocol.SourceRefList
RequestedNextCapability string
}
AgentHandoffCreateRequest 描述一次 handoff create 的输入。
type AgentMemoryFacts ¶ added in v0.1.6
type AgentMemoryFacts struct {
MemoryID string `json:"memory_id,omitempty"`
ProposalID string `json:"proposal_id,omitempty"`
Status agentprotocol.ProposalStatus `json:"status,omitempty"`
Reason agentprotocol.ProposalStatusReason `json:"reason,omitempty"`
Conflicts []string `json:"conflicts,omitempty"`
DuplicateID string `json:"duplicate_id,omitempty"`
State agentprotocol.LifecycleState `json:"state,omitempty"`
Count int `json:"count,omitempty"`
}
AgentMemoryFacts 是 projection facts 的结构化提取,便于 CLI/MCP/API 共用。
type AgentMemoryProposeRequest ¶ added in v0.1.6
type AgentMemoryProposeRequest struct {
VaultPath string
Principal agentprotocol.Principal
Scope agentprotocol.Scope
Kind agentprotocol.MemoryKind
Subject string
Summary string
Object string
Sources agentprotocol.SourceRefList
}
AgentMemoryProposeRequest 描述一次 propose 操作的输入。
type AgentMemoryService ¶ added in v0.1.6
type AgentMemoryService struct {
// contains filtered or unexported fields
}
AgentMemoryService 是 Agent memory runtime 的 application service 入口。 它编排 store、lifecycle 和 policy,为 CLI/MCP/API/SDK 提供统一用例。 Agent 默认只能 propose;confirmed mutation 受 policy 和 receipt 控制。
func NewAgentMemoryService ¶ added in v0.1.6
func NewAgentMemoryService() *AgentMemoryService
NewAgentMemoryService 构造 application service。
func (*AgentMemoryService) AgentContextRuntime ¶ added in v0.1.6
func (s *AgentMemoryService) AgentContextRuntime(ctx context.Context, req AgentContextRequest) (agentprotocol.ContextPack, error)
AgentContextRuntime 编译 context request → projection。 复用 agentcontext.Compiler,不直接访问 transport。 输出 pinax.agent_context_pack.v1。
func (*AgentMemoryService) AgentContextRuntimeWithLegacy ¶ added in v0.1.6
func (s *AgentMemoryService) AgentContextRuntimeWithLegacy(ctx context.Context, req AgentContextRequest, legacyRecords []agentmemory.LegacyRecord, workspaceID string) (agentprotocol.ContextPack, error)
AgentContextRuntimeWithLegacy 合并新 agent memory 和旧 memory rows 后编译 context。 旧 records 通过 legacy mapping 读取,不静默 backfill。
func (*AgentMemoryService) AgentContinuity ¶ added in v0.1.6
func (s *AgentMemoryService) AgentContinuity(ctx context.Context, req ContinuityRequest) (agentcontinuity.ContinuityPack, error)
AgentContinuity 编译 bounded continuity pack。 复用 agentcontinuity.Orchestrator,不直接访问 transport。
func (*AgentMemoryService) AgentFeedbackAdd ¶ added in v0.1.6
func (s *AgentMemoryService) AgentFeedbackAdd(ctx context.Context, req AgentFeedbackAddRequest) (string, error)
AgentFeedbackAdd 记录一条 recall feedback。 Feedback 不静默改写 memory content。
func (*AgentMemoryService) AgentFeedbackList ¶ added in v0.1.6
func (s *AgentMemoryService) AgentFeedbackList(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentFeedbackRow, error)
AgentFeedbackList 列出指定 scope 的 feedback。
func (*AgentMemoryService) AgentHandoffCreate ¶ added in v0.1.6
func (s *AgentMemoryService) AgentHandoffCreate(ctx context.Context, req AgentHandoffCreateRequest) (string, error)
AgentHandoffCreate 创建一条 cross-agent handoff。 Handoff 不自动 confirm;它只是 bounded working state。
func (*AgentMemoryService) AgentHandoffList ¶ added in v0.1.6
func (s *AgentMemoryService) AgentHandoffList(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentHandoffRow, error)
AgentHandoffList 列出指定 scope 的 handoffs。
func (*AgentMemoryService) AgentMemoryApprove ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryApprove(ctx context.Context, vaultPath, proposalID string, approver agentprotocol.Principal) (ApproveFacts, error)
AgentMemoryApprove 批准一条 proposal,创建 confirmed memory 并写 receipt。 只有有 approve capability 的 principal 才能执行。
func (*AgentMemoryService) AgentMemoryExpire ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryExpire(ctx context.Context, vaultPath, memoryID string, principal agentprotocol.Principal) error
AgentMemoryExpire 标记 memory 为 expired。
func (*AgentMemoryService) AgentMemoryListProposals ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryListProposals(ctx context.Context, vaultPath string, scope agentprotocol.Scope) ([]agentmemory.AgentProposalRow, error)
AgentMemoryListProposals 列出指定 scope 的 proposals。
func (*AgentMemoryService) AgentMemoryPropose ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryPropose(ctx context.Context, req AgentMemoryProposeRequest) (AgentMemoryFacts, *agentprotocol.ProposalReview, error)
AgentMemoryPropose 执行 propose → review 流程。 Agent 默认只能 propose;review 返回 draft_saved/approval_required/conflict_required/rejected。 不自动 confirm。
func (*AgentMemoryService) AgentMemoryRecall ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryRecall(ctx context.Context, vaultPath string, query agentmemory.RecallQuery) ([]agentprotocol.MemoryRecord, error)
AgentMemoryRecall 检索 memory records(read-only,不写 receipt)。
func (*AgentMemoryService) AgentMemoryRecallQuery ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryRecallQuery(ctx context.Context, vaultPath string, q RecallQuery) ([]agentprotocol.MemoryRecord, error)
AgentMemoryRecallQuery 通过 RecallQuery 执行 recall。
func (*AgentMemoryService) AgentMemoryReject ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryReject(ctx context.Context, vaultPath, proposalID string, reviewer agentprotocol.Principal, reason string) error
AgentMemoryReject 拒绝一条 proposal。
func (*AgentMemoryService) AgentMemoryResolveConflict ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryResolveConflict(ctx context.Context, vaultPath, winnerID string, principal agentprotocol.Principal) error
AgentMemoryResolveConflict 解决冲突,选择 winner,其余标记为 superseded。
func (*AgentMemoryService) AgentMemoryRollback ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryRollback(ctx context.Context, vaultPath, supersededID string, principal agentprotocol.Principal) error
AgentMemoryRollback 回滚一条 superseded memory 为 confirmed。
func (*AgentMemoryService) AgentMemoryShowProposal ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryShowProposal(ctx context.Context, vaultPath, proposalID string) (agentmemory.AgentProposalRow, error)
AgentMemoryShowProposal 显示单个 proposal 详情。
func (*AgentMemoryService) AgentMemoryStatus ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemoryStatus(ctx context.Context, vaultPath string, scope agentprotocol.Scope) (map[agentprotocol.LifecycleState]int, error)
AgentMemoryStatus 返回某 scope 的 memory 计数摘要。
func (*AgentMemoryService) AgentMemorySupersede ¶ added in v0.1.6
func (s *AgentMemoryService) AgentMemorySupersede(ctx context.Context, vaultPath, oldID, replacementID string, principal agentprotocol.Principal) error
AgentMemorySupersede 将 old memory 标记为 superseded,由 replacement 接替。
func (*AgentMemoryService) AgentTrustCenter ¶ added in v0.1.6
func (s *AgentMemoryService) AgentTrustCenter(ctx context.Context, req TrustCenterRequest) (TrustCenterProjection, error)
AgentTrustCenter 生成 Trust Center 只读投影。 section 失败可隔离,projection 无写 side effect。
func (*AgentMemoryService) Close ¶ added in v0.1.6
func (s *AgentMemoryService) Close() error
Close 关闭所有打开的 store。
func (*AgentMemoryService) InboxItemDetail ¶ added in v0.1.6
func (s *AgentMemoryService) InboxItemDetail(ctx context.Context, req InboxItemDetailRequest) (memoryinbox.InboxItem, error)
InboxItemDetail 返回单个 inbox item 的详情(不含 body)。
func (*AgentMemoryService) MemoryInbox ¶ added in v0.1.6
func (s *AgentMemoryService) MemoryInbox(ctx context.Context, req InboxRequest) (memoryinbox.InboxPack, error)
MemoryInbox 聚合 proposals 和 memories 投影为 inbox pack。 不创建第二套 canonical store。
type ApplyRequest ¶
type ApproveFacts ¶ added in v0.1.6
type ApproveFacts struct {
ProposalID string `json:"proposal_id"`
MemoryID string `json:"memory_id"`
LifecycleFrom agentprotocol.LifecycleState `json:"lifecycle_from"`
LifecycleTo agentprotocol.LifecycleState `json:"lifecycle_to"`
ReceiptID string `json:"receipt_id"`
}
ApproveFacts 描述一次 approve 操作的结果。
type AssetRequest ¶
type BackendAddRequest ¶
type BackendAddRequest struct {
VaultPath string
Name string
Kind string
Root string
Bucket string
Region string
Prefix string
Endpoint string
Profile string
Remote string
}
BackendAddRequest 描述 backend add 请求。
type BackendNotesRequest ¶ added in v0.1.4
BackendNotesRequest describes read-only note-oriented backend inspection.
type BackendObjectListRequest ¶
BackendObjectListRequest 描述 backend object list 请求。
type BackendObjectStatRequest ¶
BackendObjectStatRequest 描述 backend object stat 请求。
type BackendPlanRequest ¶
type BackendPlanRequest struct {
VaultPath string
Name string
Direction string // push, pull
DryRun bool
Yes bool
}
BackendPlanRequest 描述 backend diff/push/pull 请求。
type BackendRequest ¶
type BrainAnswerRequest ¶ added in v0.1.3
type BrainMaintenanceRequest ¶ added in v0.1.3
type BriefingRecipeRequest ¶
type BriefingRunRequest ¶
type CloudBackendSetRequest ¶
type CloudLoginRequest ¶
type CloudRequest ¶
type CloudRequest struct {
VaultPath string
}
type CollectionRequest ¶ added in v0.1.3
type ContinuityRequest ¶ added in v0.1.6
type ContinuityRequest struct {
VaultPath string
Principal agentprotocol.Principal
Scope agentprotocol.Scope
Task string
Intent string
MaxItems int
MaxChars int
MaxSources int
HandoffID string
}
ContinuityRequest 描述一次 continuity compilation 的输入。
type CreateNoteRequest ¶
type DailyRequest ¶
type DatabaseSchemaRequest ¶
type DataviewRequest ¶ added in v0.1.3
type DraftPromoteRequest ¶
type ExportMarkdownRequest ¶
type FeishuDeliveryRequest ¶
type FolderListRequest ¶
type FolderOperationRequest ¶
type FolderRepairRequest ¶
type FolderRequest ¶
type GraphRequest ¶ added in v0.1.3
type IdentityMigrationApplyRequest ¶ added in v0.1.6
type IdentityMigrationRequest ¶ added in v0.1.6
type ImportMarkdownRequest ¶
type InboxItemDetailRequest ¶ added in v0.1.6
type InboxItemDetailRequest struct {
VaultPath string
Scope agentprotocol.Scope
ItemID string
}
InboxItemDetailRequest 描述单个 inbox item 的查询条件。
type InboxPromoteRequest ¶
type InboxRequest ¶ added in v0.1.6
type InboxRequest struct {
VaultPath string
Scope agentprotocol.Scope
Limit int
}
InboxRequest 描述一次 inbox 聚合请求。
type InboxTriageRequest ¶
type IndexLookupRequest ¶
type IndexPageRequest ¶
type IndexRefreshRequest ¶
type IndexRepairRequest ¶
type InitVaultRequest ¶
type KBImportRequest ¶ added in v0.1.2
type KBIndexRequest ¶ added in v0.1.2
type MemoryCaptureRequest ¶ added in v0.1.3
type MemoryListRequest ¶ added in v0.1.3
type MemoryRecallRequest ¶ added in v0.1.3
type MonitorEvent ¶ added in v0.1.3
type MonitorEvent struct {
SchemaVersion string `json:"schema_version"`
Type string `json:"type"`
RunID string `json:"run_id"`
Command string `json:"command"`
Status string `json:"status"`
StartedAt string `json:"started_at"`
FinishedAt string `json:"finished_at"`
DurationMS int64 `json:"duration_ms"`
Steps int `json:"steps"`
Facts map[string]string `json:"facts,omitempty"`
Metrics MonitorMetrics `json:"metrics"`
Evidence []string `json:"evidence,omitempty"`
ErrorCode string `json:"error_code,omitempty"`
}
type MonitorMetrics ¶ added in v0.1.3
type MonitorMetrics struct {
WallMS int64 `json:"wall_ms"`
HeapAllocBytes uint64 `json:"heap_alloc_bytes"`
HeapAllocDeltaBytes int64 `json:"heap_alloc_delta_bytes"`
TotalAllocDeltaBytes uint64 `json:"total_alloc_delta_bytes"`
SysBytes uint64 `json:"sys_bytes"`
HeapInuseBytes uint64 `json:"heap_inuse_bytes"`
StackInuseBytes uint64 `json:"stack_inuse_bytes"`
GCDelta uint32 `json:"gc_delta"`
Goroutines int `json:"goroutines"`
PeakHeapAllocBytes uint64 `json:"peak_heap_alloc_bytes"`
PeakGoroutines int `json:"peak_goroutines"`
CPUUserMicrosDelta int64 `json:"cpu_user_micros_delta"`
CPUSystemMicrosDelta int64 `json:"cpu_system_micros_delta"`
CPUSupported bool `json:"cpu_supported"`
RSSBytes uint64 `json:"rss_bytes,omitempty"`
PeakRSSBytes uint64 `json:"peak_rss_bytes,omitempty"`
RSSSupported bool `json:"rss_supported"`
}
type MonitorRequest ¶ added in v0.1.3
type MonitorRun ¶ added in v0.1.3
type MonitorRun struct {
SchemaVersion string `json:"schema_version"`
RunID string `json:"run_id"`
Command string `json:"command"`
Status string `json:"status"`
StartedAt string `json:"started_at"`
FinishedAt string `json:"finished_at"`
DurationMS int64 `json:"duration_ms"`
Facts map[string]string `json:"facts,omitempty"`
Metrics MonitorMetrics `json:"metrics"`
Steps []MonitorStep `json:"steps"`
Evidence []string `json:"evidence,omitempty"`
ErrorCode string `json:"error_code,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
}
type MonitorStep ¶ added in v0.1.3
type MonitorStep struct {
Name string `json:"name"`
Status string `json:"status"`
StartedAt string `json:"started_at"`
FinishedAt string `json:"finished_at"`
DurationMS int64 `json:"duration_ms"`
Facts map[string]string `json:"facts,omitempty"`
Metrics MonitorMetrics `json:"metrics"`
ErrorCode string `json:"error_code,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
}
type NoteAttachRequest ¶
type NoteBacklinkGraphRequest ¶
type NoteBacklinkGraphRequest struct {
VaultPath string
NoteRef string
IncludeBroken bool
Limit int
}
NoteBacklinkGraphRequest 描述反链查询请求。
type NoteDeleteRequest ¶
type NoteEditRequest ¶
type NoteFolderBulkRequest ¶
type NoteLinkGraphRequest ¶
type NoteLinkGraphRequest struct {
VaultPath string
NoteRef string
All bool
BrokenOnly bool
Kind string // wiki|markdown|""(all)
Status string // resolved|broken|ambiguous|external|ignored|""(all)
IncludeIgnored bool
Limit int
}
NoteLinkGraphRequest 描述出链查询请求。
type NoteLinkGraphService ¶
type NoteLinkGraphService struct{}
NoteLinkGraphService 提供统一的双联关系图查询。 CLI、doctor、repair、organize、dashboard 和 MCP 都从此服务读取。
type NoteLinkRequest ¶
type NoteListRequest ¶
type NoteMutationRequest ¶
type NoteOrphansRequest ¶
type NoteOrphansRequest struct {
VaultPath string
Mode string // full|no-incoming|no-outgoing
ExcludeKind string
}
NoteOrphansRequest 描述孤立笔记查询请求。
type NotePropertyRequest ¶
type NoteRefreshRequest ¶
type NoteTagBulkRequest ¶
type NoteTagRequest ¶
type OrganizeSuggestRequest ¶
type ParseRawLink ¶
ParseRawLink 描述从 Markdown body 解析出的一条原始链接。
func ParseNoteLinks ¶
func ParseNoteLinks(body string) []ParseRawLink
ParseNoteLinks 从 note body 解析所有 wiki link 和 markdown relative link。
type PlanningRequest ¶
type PluginRequest ¶ added in v0.1.3
type ProjectBoardRequest ¶
type ProjectDeleteRequest ¶ added in v0.1.3
type ProjectItemRequest ¶
type ProjectLearningRequest ¶ added in v0.1.3
type ProjectRequest ¶
type ProjectSubprojectDeleteRequest ¶ added in v0.1.3
type ProjectWorkspaceRequest ¶ added in v0.1.3
type PromptAssetRequest ¶ added in v0.1.1
type ProofLoopRunRequest ¶
ProofLoopRunRequest drives the proof loop run orchestration.
type PublishEvent ¶ added in v0.1.3
type PublishEventSink ¶ added in v0.1.3
type PublishEventSink func(PublishEvent)
type PublishRequest ¶ added in v0.1.1
type PublishRequest struct {
VaultPath string
Profile string
Target string
Note string
PackageID string
Workspace string
ParentPage string
Space string
Folder string
ExternalURL string
As string
Layout string
Template string
IndexPage bool
DryRun bool
All bool
Renderer string
Title string
BaseURL string
Theme string
Out string
Repo string
Branch string
Endpoint string
Method string
SecretRef string
GistID string
Visibility string
Project string
Host string
Port int
Once bool
Watch bool
Yes bool
LiveEvents PublishEventSink
}
type QueryRequest ¶
type RecallQuery ¶ added in v0.1.6
type RecallQuery struct {
Scope agentprotocol.Scope
Text string
Kinds []agentprotocol.MemoryKind
States []agentprotocol.LifecycleState
Limit int
}
RecallQuery 是 CLI/API 用的 recall 查询构造器(避免 CLI 直接 import agentmemory)。
type RecordRequest ¶
type RenderRunRequest ¶
type RepairApplyRequest ¶
type RepairPlanRequest ¶
type ResolveResult ¶
type ResolveResult = notelinks.ResolveResult
ResolveResult 描述单条链接的解析结果。
func ResolveLinkTarget ¶
func ResolveLinkTarget(source domain.Note, rawLink ParseRawLink, snap ResolverSnapshot) ResolveResult
ResolveLinkTarget 按确定性优先级解析链接目标。
type ResolverRequest ¶
type ResolverResult ¶
type ResolverResult struct {
Facts domain.ResolverFacts `json:"facts"`
LedgerSeq uint64 `json:"ledger_seq,omitempty"`
Candidates []domain.VaultObjectCandidate `json:"candidates"`
}
type ResolverSnapshot ¶
type ResolverSnapshot = notelinks.ResolverSnapshot
ResolverSnapshot 存储 note 的查找索引,用于确定性解析。
func BuildResolverSnapshot ¶
func BuildResolverSnapshot(notes []domain.Note) ResolverSnapshot
BuildResolverSnapshot 从 notes 列表构建解析索引。
type SearchRequest ¶
type SearchRequest struct {
VaultPath string
Query string
Tags []string
Group string
Folder string
Kind string
Status string
CreatedAfter string
UpdatedAfter string
LinkTarget string
HasAttachment bool
Limit int
Sort string
AllowStale bool
Engine string
LazyIndex string
At string
IncludeDirty bool
ChangedSince string
Revision string
}
type SearchResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func NewServiceWithVersionBackend ¶
func NewServiceWithVersionBackend(backend pinaxversion.VersionBackend) *Service
func (*Service) APIRoutes ¶
func (s *Service) APIRoutes(_ context.Context, req APIRequest) (domain.Projection, error)
func (*Service) APISchemaExport ¶
func (s *Service) APISchemaExport(_ context.Context, req APIRequest) (domain.Projection, error)
func (*Service) ActivityList ¶ added in v0.1.3
func (s *Service) ActivityList(_ context.Context, req ActivityRequest) (domain.Projection, error)
func (*Service) ActivityManage ¶ added in v0.1.3
func (s *Service) ActivityManage(_ context.Context, req ActivityRequest) (domain.Projection, error)
func (*Service) ActivityShow ¶ added in v0.1.3
func (s *Service) ActivityShow(_ context.Context, req ActivityRequest) (domain.Projection, error)
func (*Service) ActivitySources ¶ added in v0.1.3
func (s *Service) ActivitySources(_ context.Context, req ActivityRequest) (domain.Projection, error)
func (*Service) ActivityTail ¶ added in v0.1.3
func (s *Service) ActivityTail(ctx context.Context, req ActivityRequest) (domain.Projection, error)
func (*Service) AddBackend ¶
func (s *Service) AddBackend(_ context.Context, req BackendAddRequest) (domain.Projection, error)
AddBackend 添加或更新 backend profile。
func (*Service) AdoptFolder ¶
func (s *Service) AdoptFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
func (*Service) ApplyMetadata ¶
func (s *Service) ApplyMetadata(ctx context.Context, req ApplyRequest) (domain.Projection, error)
func (*Service) ApplyOrganize ¶
func (s *Service) ApplyOrganize(ctx context.Context, req ApplyRequest) (domain.Projection, error)
func (*Service) ApplyRepair ¶
func (s *Service) ApplyRepair(ctx context.Context, req RepairApplyRequest) (domain.Projection, error)
func (*Service) ArchiveNote ¶
func (s *Service) ArchiveNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) AssetAdd ¶
func (s *Service) AssetAdd(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetBacklinks ¶
func (s *Service) AssetBacklinks(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetLink ¶
func (s *Service) AssetLink(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetList ¶
func (s *Service) AssetList(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) AssetMissing ¶
func (s *Service) AssetMissing(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) AssetMovePlan ¶
func (s *Service) AssetMovePlan(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetOrphans ¶
func (s *Service) AssetOrphans(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) AssetPreview ¶
func (s *Service) AssetPreview(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetRemovePlan ¶
func (s *Service) AssetRemovePlan(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetRepairPlan ¶
func (s *Service) AssetRepairPlan(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) AssetShow ¶
func (s *Service) AssetShow(_ context.Context, req AssetRequest) (domain.Projection, error)
func (*Service) AssetVerify ¶
func (s *Service) AssetVerify(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) AttachNoteFile ¶
func (s *Service) AttachNoteFile(ctx context.Context, req NoteAttachRequest) (domain.Projection, error)
func (*Service) BackendCapabilities ¶
func (s *Service) BackendCapabilities(_ context.Context, req BackendRequest) (domain.Projection, error)
BackendCapabilities 查看 backend 能力列表。
func (*Service) BackendDiff ¶
func (s *Service) BackendDiff(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
BackendDiff 生成 dry-run SyncPlan。
func (*Service) BackendDoctor ¶
func (s *Service) BackendDoctor(_ context.Context, req BackendRequest) (domain.Projection, error)
BackendDoctor 诊断 backend 配置。
func (*Service) BackendNotesList ¶ added in v0.1.4
func (s *Service) BackendNotesList(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
BackendNotesList lists note-like Markdown objects available through a backend.
func (*Service) BackendNotesStat ¶ added in v0.1.4
func (s *Service) BackendNotesStat(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
BackendNotesStat views one note-like object status through a backend.
func (*Service) BackendNotesSummary ¶ added in v0.1.4
func (s *Service) BackendNotesSummary(ctx context.Context, req BackendNotesRequest) (domain.Projection, error)
BackendNotesSummary summarizes note-like objects available through a backend.
func (*Service) BackendObjectList ¶
func (s *Service) BackendObjectList(ctx context.Context, req BackendObjectListRequest) (domain.Projection, error)
BackendObjectList 列出 backend 对象。
func (*Service) BackendObjectStat ¶
func (s *Service) BackendObjectStat(ctx context.Context, req BackendObjectStatRequest) (domain.Projection, error)
BackendObjectStat 查看 backend 对象状态。
func (*Service) BackendPull ¶
func (s *Service) BackendPull(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
BackendPull 执行 pull SyncPlan。
func (*Service) BackendPush ¶
func (s *Service) BackendPush(_ context.Context, req BackendPlanRequest) (domain.Projection, error)
BackendPush 执行 push SyncPlan。
func (*Service) BackendShow ¶
func (s *Service) BackendShow(_ context.Context, req BackendRequest) (domain.Projection, error)
BackendShow 查看单个 backend 状态。
func (*Service) BrainAnswerPreview ¶ added in v0.1.3
func (s *Service) BrainAnswerPreview(ctx context.Context, req BrainAnswerRequest) (domain.Projection, error)
func (*Service) BrainMaintenancePlan ¶ added in v0.1.3
func (s *Service) BrainMaintenancePlan(_ context.Context, req BrainMaintenanceRequest) (domain.Projection, error)
func (*Service) BriefingRecipeInit ¶
func (s *Service) BriefingRecipeInit(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
func (*Service) BriefingRecipeSet ¶
func (s *Service) BriefingRecipeSet(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
func (*Service) BriefingRecipeShow ¶
func (s *Service) BriefingRecipeShow(_ context.Context, req BriefingRecipeRequest) (domain.Projection, error)
func (*Service) BriefingRun ¶
func (s *Service) BriefingRun(_ context.Context, req BriefingRunRequest) (domain.Projection, error)
func (*Service) BulkFolder ¶
func (s *Service) BulkFolder(ctx context.Context, req NoteFolderBulkRequest) (domain.Projection, error)
func (*Service) BulkTag ¶
func (s *Service) BulkTag(ctx context.Context, req NoteTagBulkRequest) (domain.Projection, error)
func (*Service) CapsaBackendSetRclone ¶ added in v0.1.6
func (s *Service) CapsaBackendSetRclone(ctx context.Context, req CloudBackendSetRequest) (domain.Projection, error)
func (*Service) CapsaBackendSetS3 ¶ added in v0.1.6
func (s *Service) CapsaBackendSetS3(ctx context.Context, req CloudBackendSetRequest) (domain.Projection, error)
func (*Service) CapsaDoctor ¶ added in v0.1.6
func (s *Service) CapsaDoctor(ctx context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CapsaLogin ¶ added in v0.1.6
func (s *Service) CapsaLogin(ctx context.Context, req CloudLoginRequest) (domain.Projection, error)
func (*Service) CapsaLogout ¶ added in v0.1.6
func (s *Service) CapsaLogout(ctx context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CapsaStatus ¶ added in v0.1.6
func (s *Service) CapsaStatus(ctx context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CloudBackendSetRclone ¶
func (s *Service) CloudBackendSetRclone(_ context.Context, req CloudBackendSetRequest) (domain.Projection, error)
func (*Service) CloudBackendSetS3 ¶
func (s *Service) CloudBackendSetS3(_ context.Context, req CloudBackendSetRequest) (domain.Projection, error)
func (*Service) CloudDoctor ¶
func (s *Service) CloudDoctor(_ context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CloudLogin ¶
func (s *Service) CloudLogin(_ context.Context, req CloudLoginRequest) (domain.Projection, error)
func (*Service) CloudLogout ¶
func (s *Service) CloudLogout(_ context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CloudStatus ¶
func (s *Service) CloudStatus(_ context.Context, req CloudRequest) (domain.Projection, error)
func (*Service) CollectionDiff ¶ added in v0.1.3
func (s *Service) CollectionDiff(ctx context.Context, req CollectionRequest) (domain.Projection, error)
func (*Service) CollectionDoctor ¶ added in v0.1.3
func (s *Service) CollectionDoctor(ctx context.Context, req CollectionRequest) (domain.Projection, error)
func (*Service) CollectionExport ¶ added in v0.1.3
func (s *Service) CollectionExport(ctx context.Context, req CollectionRequest) (domain.Projection, error)
func (*Service) CollectionImport ¶ added in v0.1.3
func (s *Service) CollectionImport(ctx context.Context, req CollectionRequest) (domain.Projection, error)
func (*Service) CreateFolder ¶
func (s *Service) CreateFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
func (*Service) CreateIndexPage ¶
func (s *Service) CreateIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
func (*Service) CreateNote ¶
func (s *Service) CreateNote(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
func (*Service) CreateProject ¶
func (s *Service) CreateProject(_ context.Context, req ProjectRequest) (domain.Projection, error)
func (*Service) CreateTemplate ¶
func (s *Service) CreateTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) DailyAppend ¶
func (s *Service) DailyAppend(_ context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) DailyOpen ¶
func (s *Service) DailyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) DailyShow ¶
func (s *Service) DailyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) DatabaseSchemaInfer ¶
func (s *Service) DatabaseSchemaInfer(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) DatabaseSchemaList ¶ added in v0.1.3
func (s *Service) DatabaseSchemaList(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) DatabaseSchemaSet ¶
func (s *Service) DatabaseSchemaSet(_ context.Context, req DatabaseSchemaRequest) (domain.Projection, error)
func (*Service) DatabaseSchemaShow ¶ added in v0.1.3
func (s *Service) DatabaseSchemaShow(_ context.Context, req DatabaseSchemaRequest) (domain.Projection, error)
func (*Service) DataviewExplain ¶ added in v0.1.3
func (s *Service) DataviewExplain(_ context.Context, req DataviewRequest) (domain.Projection, error)
func (*Service) DataviewRun ¶ added in v0.1.3
func (s *Service) DataviewRun(ctx context.Context, req DataviewRequest) (projection domain.Projection, err error)
func (*Service) DeleteFolder ¶
func (s *Service) DeleteFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
func (*Service) DeleteNote ¶
func (s *Service) DeleteNote(ctx context.Context, req NoteDeleteRequest) (domain.Projection, error)
func (*Service) DeleteTemplate ¶
func (s *Service) DeleteTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) DeleteView ¶
func (s *Service) DeleteView(_ context.Context, req ViewRequest) (domain.Projection, error)
func (*Service) DeliverFeishu ¶
func (s *Service) DeliverFeishu(ctx context.Context, req FeishuDeliveryRequest) (domain.Projection, error)
func (*Service) DraftArchive ¶
func (s *Service) DraftArchive(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) DraftCreate ¶
func (s *Service) DraftCreate(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
func (*Service) DraftDiscard ¶
func (s *Service) DraftDiscard(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) DraftList ¶
func (s *Service) DraftList(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) DraftPromote ¶
func (s *Service) DraftPromote(ctx context.Context, req DraftPromoteRequest) (domain.Projection, error)
func (*Service) DraftShow ¶
func (s *Service) DraftShow(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
func (*Service) EditNote ¶
func (s *Service) EditNote(ctx context.Context, req NoteEditRequest) (domain.Projection, error)
func (*Service) ExportMarkdown ¶
func (s *Service) ExportMarkdown(_ context.Context, req ExportMarkdownRequest) (domain.Projection, error)
func (*Service) GitSnapshot ¶
func (s *Service) GitSnapshot(ctx context.Context, req SnapshotRequest) (domain.Projection, error)
func (*Service) GraphQuery ¶ added in v0.1.3
func (s *Service) GraphQuery(ctx context.Context, req GraphRequest) (domain.Projection, error)
func (*Service) GraphRebuild ¶ added in v0.1.3
func (s *Service) GraphRebuild(ctx context.Context, req GraphRequest) (domain.Projection, error)
func (*Service) GraphSummary ¶
func (s *Service) GraphSummary(_ context.Context, vaultPath string) (domain.NoteGraphProjection, error)
GraphSummary 返回 vault 的链接图健康摘要。
func (*Service) GraphSummaryProjection ¶ added in v0.1.3
func (*Service) ImportMarkdown ¶
func (s *Service) ImportMarkdown(_ context.Context, req ImportMarkdownRequest) (domain.Projection, error)
func (*Service) InboxCapture ¶
func (s *Service) InboxCapture(ctx context.Context, req CreateNoteRequest) (domain.Projection, error)
func (*Service) InboxDiscard ¶
func (s *Service) InboxDiscard(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) InboxList ¶
func (s *Service) InboxList(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) InboxPromote ¶
func (s *Service) InboxPromote(ctx context.Context, req InboxPromoteRequest) (domain.Projection, error)
func (*Service) InboxShow ¶
func (s *Service) InboxShow(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
func (*Service) InboxTriage ¶
func (s *Service) InboxTriage(_ context.Context, req InboxTriageRequest) (domain.Projection, error)
func (*Service) IndexDoctor ¶
func (s *Service) IndexDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) IndexExplain ¶
func (s *Service) IndexExplain(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) IndexLookup ¶
func (s *Service) IndexLookup(_ context.Context, req IndexLookupRequest) (domain.Projection, error)
func (*Service) IndexRefresh ¶
func (s *Service) IndexRefresh(ctx context.Context, req IndexRefreshRequest) (projection domain.Projection, err error)
func (*Service) IndexRepair ¶
func (s *Service) IndexRepair(_ context.Context, req IndexRepairRequest) (projection domain.Projection, err error)
func (*Service) IndexStatus ¶
func (s *Service) IndexStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) IndexSummary ¶
func (s *Service) IndexSummary(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) InitIndex ¶
func (s *Service) InitIndex(_ context.Context, req VaultRequest) (projection domain.Projection, err error)
func (*Service) InitTemplates ¶
func (s *Service) InitTemplates(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) InitVault ¶
func (s *Service) InitVault(_ context.Context, req InitVaultRequest) (domain.Projection, error)
func (*Service) InspectTemplate ¶
func (s *Service) InspectTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) KBContext ¶ added in v0.1.2
func (s *Service) KBContext(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) KBDoctor ¶ added in v0.1.2
func (s *Service) KBDoctor(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) KBImport ¶ added in v0.1.2
func (s *Service) KBImport(_ context.Context, req KBImportRequest) (domain.Projection, error)
func (*Service) KBProviderDoctor ¶ added in v0.1.3
func (s *Service) KBProviderDoctor(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) KBProviderList ¶ added in v0.1.3
func (s *Service) KBProviderList(_ context.Context, _ KBIndexRequest) (domain.Projection, error)
func (*Service) KBRebuild ¶ added in v0.1.2
func (s *Service) KBRebuild(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) KBRefresh ¶ added in v0.1.2
func (s *Service) KBRefresh(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) KBSearch ¶ added in v0.1.2
func (s *Service) KBSearch(ctx context.Context, req KBIndexRequest) (domain.Projection, error)
func (*Service) ListBackends ¶
func (s *Service) ListBackends(_ context.Context, req VaultRequest) (domain.Projection, error)
ListBackends 列出 vault 所有 backend profile。
func (*Service) ListDimension ¶
func (s *Service) ListDimension(_ context.Context, req VaultRequest, dimension string) (domain.Projection, error)
func (*Service) ListFolders ¶
func (s *Service) ListFolders(_ context.Context, req FolderListRequest) (domain.Projection, error)
func (*Service) ListNotes ¶
func (s *Service) ListNotes(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) ListNotesQuery ¶
func (s *Service) ListNotesQuery(_ context.Context, req NoteListRequest) (domain.Projection, error)
func (*Service) ListOrganizePlans ¶
func (s *Service) ListOrganizePlans(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) ListProjects ¶
func (s *Service) ListProjects(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) ListRepairPlans ¶
func (s *Service) ListRepairPlans(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) ListTemplateCatalog ¶
func (s *Service) ListTemplateCatalog(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) ListTemplates ¶
func (s *Service) ListTemplates(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) ListViews ¶
func (s *Service) ListViews(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) MemoryCapture ¶ added in v0.1.3
func (s *Service) MemoryCapture(ctx context.Context, req MemoryCaptureRequest) (domain.Projection, error)
func (*Service) MemoryContext ¶ added in v0.1.3
func (s *Service) MemoryContext(ctx context.Context, req MemoryRecallRequest) (domain.Projection, error)
func (*Service) MemoryList ¶ added in v0.1.3
func (s *Service) MemoryList(ctx context.Context, req MemoryListRequest) (domain.Projection, error)
func (*Service) MemoryRecall ¶ added in v0.1.3
func (s *Service) MemoryRecall(ctx context.Context, req MemoryRecallRequest) (domain.Projection, error)
func (*Service) MemoryStats ¶ added in v0.1.3
func (s *Service) MemoryStats(ctx context.Context, req MemoryListRequest) (domain.Projection, error)
func (*Service) MonitorList ¶ added in v0.1.3
func (s *Service) MonitorList(_ context.Context, req MonitorRequest) (domain.Projection, error)
func (*Service) MonitorManage ¶ added in v0.1.3
func (s *Service) MonitorManage(_ context.Context, req MonitorRequest) (domain.Projection, error)
func (*Service) MonitorShow ¶ added in v0.1.3
func (s *Service) MonitorShow(_ context.Context, req MonitorRequest) (domain.Projection, error)
func (*Service) MonitorSummary ¶ added in v0.1.3
func (s *Service) MonitorSummary(_ context.Context, req MonitorRequest) (domain.Projection, error)
func (*Service) MonitorTail ¶ added in v0.1.3
func (s *Service) MonitorTail(ctx context.Context, req MonitorRequest) (domain.Projection, error)
func (*Service) MonthlyAppend ¶
func (s *Service) MonthlyAppend(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) MonthlyOpen ¶
func (s *Service) MonthlyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) MonthlyShow ¶
func (s *Service) MonthlyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) MoveFolder ¶
func (s *Service) MoveFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
func (*Service) MoveNote ¶
func (s *Service) MoveNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) NoteAttachments ¶
func (s *Service) NoteAttachments(_ context.Context, req NoteLinkRequest) (domain.Projection, error)
func (*Service) NoteBacklinks ¶
func (s *Service) NoteBacklinks(ctx context.Context, req NoteLinkRequest) (domain.Projection, error)
func (*Service) NoteLinks ¶
func (s *Service) NoteLinks(ctx context.Context, req NoteLinkRequest) (domain.Projection, error)
func (*Service) NoteOrphans ¶
func (s *Service) NoteOrphans(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) PatchNoteProperty ¶
func (s *Service) PatchNoteProperty(ctx context.Context, req NotePropertyRequest) (domain.Projection, error)
func (*Service) PlanActions ¶
func (s *Service) PlanActions(ctx context.Context, req PlanningRequest) (domain.Projection, error)
PlanActions 生成 TaskBridge action file 草稿。
func (*Service) PlanDaily ¶
func (s *Service) PlanDaily(ctx context.Context, req PlanningRequest) (domain.Projection, error)
PlanDaily 生成每日Plan。
func (*Service) PlanMetadata ¶
func (s *Service) PlanMetadata(ctx context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) PlanMonthly ¶
func (s *Service) PlanMonthly(ctx context.Context, req PlanningRequest) (domain.Projection, error)
PlanMonthly 生成每月Plan。
func (*Service) PlanOrganize ¶
func (s *Service) PlanOrganize(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) PlanRepair ¶
func (s *Service) PlanRepair(ctx context.Context, req RepairPlanRequest) (domain.Projection, error)
func (*Service) PlanSnapshot ¶
func (s *Service) PlanSnapshot(_ context.Context, req PlanningRequest) (domain.Projection, error)
PlanSnapshot 生成Plan快照。
func (*Service) PlanWeekly ¶
func (s *Service) PlanWeekly(ctx context.Context, req PlanningRequest) (domain.Projection, error)
PlanWeekly 生成每周Plan。
func (*Service) PluginDisable ¶ added in v0.1.3
func (s *Service) PluginDisable(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginDoctor ¶ added in v0.1.3
func (s *Service) PluginDoctor(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginEnable ¶ added in v0.1.3
func (s *Service) PluginEnable(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginInspect ¶ added in v0.1.3
func (s *Service) PluginInspect(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginInstall ¶ added in v0.1.3
func (s *Service) PluginInstall(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginList ¶ added in v0.1.3
func (s *Service) PluginList(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginPermissionsGrant ¶ added in v0.1.3
func (s *Service) PluginPermissionsGrant(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginPermissionsList ¶ added in v0.1.3
func (s *Service) PluginPermissionsList(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginPermissionsRevoke ¶ added in v0.1.3
func (s *Service) PluginPermissionsRevoke(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginRun ¶ added in v0.1.3
func (s *Service) PluginRun(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginUninstall ¶ added in v0.1.3
func (s *Service) PluginUninstall(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PluginValidate ¶ added in v0.1.3
func (s *Service) PluginValidate(ctx context.Context, req PluginRequest) (domain.Projection, error)
func (*Service) PreviewIndexPage ¶
func (s *Service) PreviewIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
func (*Service) PreviewTemplate ¶
func (s *Service) PreviewTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) ProjectBoardConfigure ¶
func (s *Service) ProjectBoardConfigure(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
func (*Service) ProjectBoardExport ¶
func (s *Service) ProjectBoardExport(ctx context.Context, req ProjectBoardRequest) (domain.Projection, error)
func (*Service) ProjectBoardPlan ¶
func (s *Service) ProjectBoardPlan(ctx context.Context, req ProjectBoardRequest) (domain.Projection, error)
func (*Service) ProjectBoardShow ¶
func (s *Service) ProjectBoardShow(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
func (*Service) ProjectBoardViewSave ¶ added in v0.1.3
func (s *Service) ProjectBoardViewSave(_ context.Context, req ProjectBoardRequest) (domain.Projection, error)
func (*Service) ProjectDelete ¶ added in v0.1.3
func (s *Service) ProjectDelete(_ context.Context, req ProjectDeleteRequest) (domain.Projection, error)
func (*Service) ProjectItemAdd ¶
func (s *Service) ProjectItemAdd(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
func (*Service) ProjectItemArchive ¶
func (s *Service) ProjectItemArchive(ctx context.Context, req ProjectItemRequest) (domain.Projection, error)
func (*Service) ProjectItemMove ¶
func (s *Service) ProjectItemMove(ctx context.Context, req ProjectItemRequest) (domain.Projection, error)
func (*Service) ProjectItemPlan ¶
func (s *Service) ProjectItemPlan(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
func (*Service) ProjectItemShow ¶ added in v0.1.3
func (s *Service) ProjectItemShow(_ context.Context, req ProjectItemRequest) (domain.Projection, error)
func (*Service) ProjectLearningInit ¶ added in v0.1.3
func (s *Service) ProjectLearningInit(ctx context.Context, req ProjectLearningRequest) (domain.Projection, error)
func (*Service) ProjectShow ¶ added in v0.1.3
func (s *Service) ProjectShow(_ context.Context, req ProjectRequest) (domain.Projection, error)
func (*Service) ProjectSubprojectCreate ¶ added in v0.1.3
func (s *Service) ProjectSubprojectCreate(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
func (*Service) ProjectSubprojectDelete ¶ added in v0.1.3
func (s *Service) ProjectSubprojectDelete(_ context.Context, req ProjectSubprojectDeleteRequest) (domain.Projection, error)
func (*Service) ProjectSubprojectList ¶ added in v0.1.3
func (s *Service) ProjectSubprojectList(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
func (*Service) ProjectSubprojectShow ¶ added in v0.1.3
func (s *Service) ProjectSubprojectShow(_ context.Context, req ProjectWorkspaceRequest) (domain.Projection, error)
func (*Service) PromptCreate ¶ added in v0.1.1
func (s *Service) PromptCreate(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptFeedbackImport ¶ added in v0.1.1
func (s *Service) PromptFeedbackImport(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptImport ¶ added in v0.1.1
func (s *Service) PromptImport(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptLifecycle ¶ added in v0.1.1
func (s *Service) PromptLifecycle(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptResolve ¶ added in v0.1.1
func (s *Service) PromptResolve(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptSearch ¶ added in v0.1.1
func (s *Service) PromptSearch(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) PromptShow ¶ added in v0.1.1
func (s *Service) PromptShow(ctx context.Context, req PromptAssetRequest) (domain.Projection, error)
func (*Service) ProofLoopRun ¶
func (s *Service) ProofLoopRun(ctx context.Context, req ProofLoopRunRequest) (domain.Projection, error)
ProofLoopRun 编排本地 proof loop。它复用内部 service,不 shell out 到子命令。 每个阶段把有界事实汇入一个 projection;preview 不写 vault,apply 路径先 fresh snapshot 再执行已批准的 repair/organize apply。
func (*Service) PruneTemplateRuns ¶
func (s *Service) PruneTemplateRuns(_ context.Context, req RenderRunRequest) (domain.Projection, error)
func (*Service) PublishBuild ¶ added in v0.1.1
func (s *Service) PublishBuild(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDeploy ¶ added in v0.1.1
func (s *Service) PublishDeploy(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDev ¶ added in v0.1.3
func (s *Service) PublishDev(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocLink ¶ added in v0.1.4
func (s *Service) PublishDocLink(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocList ¶ added in v0.1.4
func (s *Service) PublishDocList(_ context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocPrepare ¶ added in v0.1.4
func (s *Service) PublishDocPrepare(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocPrepareAll ¶ added in v0.1.4
func (s *Service) PublishDocPrepareAll(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocProfileSet ¶ added in v0.1.4
func (s *Service) PublishDocProfileSet(_ context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocProviderDoctor ¶ added in v0.1.4
func (s *Service) PublishDocProviderDoctor(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocProviderList ¶ added in v0.1.4
func (s *Service) PublishDocProviderList(_ context.Context, _ PublishRequest) (domain.Projection, error)
func (*Service) PublishDocPush ¶ added in v0.1.4
func (s *Service) PublishDocPush(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocPushAll ¶ added in v0.1.4
func (s *Service) PublishDocPushAll(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocStatus ¶ added in v0.1.4
func (s *Service) PublishDocStatus(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocUnlink ¶ added in v0.1.4
func (s *Service) PublishDocUnlink(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDocUnlinkAll ¶ added in v0.1.4
func (s *Service) PublishDocUnlinkAll(_ context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishDoctor ¶ added in v0.1.1
func (s *Service) PublishDoctor(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishPlan ¶ added in v0.1.1
func (s *Service) PublishPlan(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishPreviewApprove ¶ added in v0.1.3
func (s *Service) PublishPreviewApprove(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishProfileInit ¶ added in v0.1.1
func (s *Service) PublishProfileInit(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishProfileList ¶ added in v0.1.1
func (s *Service) PublishProfileList(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishProfileShow ¶ added in v0.1.1
func (s *Service) PublishProfileShow(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishProfileValidate ¶ added in v0.1.1
func (s *Service) PublishProfileValidate(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishServe ¶ added in v0.1.1
func (s *Service) PublishServe(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishThemeEject ¶ added in v0.1.1
func (s *Service) PublishThemeEject(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) PublishThemeList ¶ added in v0.1.1
func (s *Service) PublishThemeList(ctx context.Context, req PublishRequest) (domain.Projection, error)
func (*Service) QueryBacklinks ¶
func (s *Service) QueryBacklinks(ctx context.Context, req NoteBacklinkGraphRequest) (domain.Projection, error)
QueryBacklinks 查询指定 note 的反链。
func (*Service) QueryExplain ¶
func (s *Service) QueryExplain(_ context.Context, req QueryRequest) (domain.Projection, error)
func (*Service) QueryOrphans ¶
func (s *Service) QueryOrphans(_ context.Context, req NoteOrphansRequest) (domain.Projection, error)
QueryOrphans 查询孤立笔记。
func (*Service) QueryOutgoingLinks ¶
func (s *Service) QueryOutgoingLinks(ctx context.Context, req NoteLinkGraphRequest) (domain.Projection, error)
QueryOutgoingLinks 查询指定 note 的出链。
func (*Service) QueryRun ¶
func (s *Service) QueryRun(ctx context.Context, req QueryRequest) (projection domain.Projection, err error)
func (*Service) RebuildIndex ¶
func (s *Service) RebuildIndex(_ context.Context, req VaultRequest) (projection domain.Projection, err error)
func (*Service) RecommendTemplate ¶
func (s *Service) RecommendTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) RecordAdopt ¶
func (s *Service) RecordAdopt(ctx context.Context, req RecordRequest) (domain.Projection, error)
func (*Service) RecordHistory ¶
func (s *Service) RecordHistory(ctx context.Context, req RecordRequest) (domain.Projection, error)
func (*Service) RecordIdentityApply ¶ added in v0.1.6
func (s *Service) RecordIdentityApply(ctx context.Context, req IdentityMigrationApplyRequest) (domain.Projection, error)
func (*Service) RecordIdentityAudit ¶ added in v0.1.6
func (s *Service) RecordIdentityAudit(ctx context.Context, req IdentityMigrationRequest) (domain.Projection, error)
func (*Service) RecordIdentityPlan ¶ added in v0.1.6
func (s *Service) RecordIdentityPlan(ctx context.Context, req IdentityMigrationRequest) (domain.Projection, error)
func (*Service) RecordInit ¶
func (s *Service) RecordInit(ctx context.Context, req RecordRequest) (domain.Projection, error)
func (*Service) RecordStatus ¶
func (s *Service) RecordStatus(ctx context.Context, req RecordRequest) (domain.Projection, error)
func (*Service) RefreshIndexPage ¶
func (s *Service) RefreshIndexPage(ctx context.Context, req IndexPageRequest) (domain.Projection, error)
func (*Service) RefreshNoteRendered ¶
func (s *Service) RefreshNoteRendered(ctx context.Context, req NoteRefreshRequest) (domain.Projection, error)
func (*Service) RemoveBackend ¶
func (s *Service) RemoveBackend(_ context.Context, req BackendRequest) (domain.Projection, error)
RemoveBackend 移除 backend profile。
func (*Service) RenameFolder ¶
func (s *Service) RenameFolder(_ context.Context, req FolderOperationRequest) (domain.Projection, error)
func (*Service) RenameNote ¶
func (s *Service) RenameNote(ctx context.Context, req NoteMutationRequest) (domain.Projection, error)
func (*Service) RenderDatabaseView ¶ added in v0.1.3
func (s *Service) RenderDatabaseView(ctx context.Context, req ViewRequest) (projection domain.Projection, err error)
func (*Service) RenderTemplate ¶
func (s *Service) RenderTemplate(ctx context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) RepairFolders ¶
func (s *Service) RepairFolders(_ context.Context, req FolderRepairRequest) (domain.Projection, error)
func (*Service) RepairTemplateRuns ¶
func (s *Service) RepairTemplateRuns(_ context.Context, req RenderRunRequest) (domain.Projection, error)
func (*Service) ResolveManagedObjectForMutation ¶ added in v0.1.6
func (s *Service) ResolveManagedObjectForMutation(ctx context.Context, req ResolverRequest) (ResolverResult, error)
func (*Service) ResolveNote ¶
func (*Service) ResolveNoteWithResolver ¶
func (s *Service) ResolveNoteWithResolver(ctx context.Context, req ShowNoteRequest) (domain.Note, ResolverResult, error)
func (*Service) ResolveVaultObject ¶
func (s *Service) ResolveVaultObject(_ context.Context, req ResolverRequest) (ResolverResult, error)
func (*Service) ResolveVaultObjectForWrite ¶
func (s *Service) ResolveVaultObjectForWrite(ctx context.Context, req ResolverRequest) (ResolverResult, error)
func (*Service) ResolveVaultObjectProjection ¶
func (s *Service) ResolveVaultObjectProjection(ctx context.Context, req ResolverRequest) (domain.Projection, error)
func (*Service) SaveDatabaseView ¶
func (s *Service) SaveDatabaseView(_ context.Context, req ViewRequest) (domain.Projection, error)
func (*Service) SaveView ¶
func (s *Service) SaveView(_ context.Context, req ViewRequest) (domain.Projection, error)
func (*Service) SearchNotes ¶
func (s *Service) SearchNotes(ctx context.Context, req SearchRequest) (result SearchResult, err error)
func (*Service) SearchProjection ¶
func (s *Service) SearchProjection(ctx context.Context, req SearchRequest) (domain.Projection, error)
func (*Service) SetLocalStorage ¶
func (s *Service) SetLocalStorage(_ context.Context, req StorageRequest) (domain.Projection, error)
func (*Service) SetS3Storage ¶
func (s *Service) SetS3Storage(_ context.Context, req StorageRequest) (domain.Projection, error)
func (*Service) ShareStart ¶ added in v0.1.3
func (s *Service) ShareStart(ctx context.Context, req ShareRequest) (domain.Projection, error)
func (*Service) ShowDatabaseView ¶
func (s *Service) ShowDatabaseView(ctx context.Context, req ViewRequest) (domain.Projection, error)
func (*Service) ShowFolder ¶
func (s *Service) ShowFolder(_ context.Context, req FolderRequest) (domain.Projection, error)
func (*Service) ShowNoteProjection ¶
func (s *Service) ShowNoteProjection(ctx context.Context, req ShowNoteRequest) (domain.Projection, error)
func (*Service) ShowTemplate ¶
func (s *Service) ShowTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) ShowView ¶
func (s *Service) ShowView(ctx context.Context, req ViewRequest) (domain.Projection, error)
func (*Service) StorageDoctor ¶
func (s *Service) StorageDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) StorageStatus ¶
func (s *Service) StorageStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) SuggestOrganize ¶
func (s *Service) SuggestOrganize(_ context.Context, req OrganizeSuggestRequest) (domain.Projection, error)
func (*Service) SwitchProject ¶
func (s *Service) SwitchProject(_ context.Context, req ProjectRequest) (domain.Projection, error)
func (*Service) SyncAll ¶
func (s *Service) SyncAll(ctx context.Context, req SyncRequest) (domain.Projection, error)
func (*Service) SyncConflictsDiff ¶
func (s *Service) SyncConflictsDiff(_ context.Context, req SyncConflictFileRequest) (domain.Projection, error)
func (*Service) SyncConflictsList ¶
func (s *Service) SyncConflictsList(_ context.Context, req SyncConflictsListRequest) (domain.Projection, error)
func (*Service) SyncConflictsResolve ¶
func (s *Service) SyncConflictsResolve(_ context.Context, req SyncConflictResolveRequest) (domain.Projection, error)
func (*Service) SyncConflictsShow ¶
func (s *Service) SyncConflictsShow(_ context.Context, req SyncConflictFileRequest) (domain.Projection, error)
func (*Service) SyncDaemonInstall ¶ added in v0.1.6
func (s *Service) SyncDaemonInstall(_ context.Context, req SyncDaemonInstallRequest) (domain.Projection, error)
SyncDaemonInstall writes a platform-specific service unit (systemd user unit on Linux, launchd plist on macOS) for the sync daemon. It does not start the service; the returned enable_command tells the user how to start it. Windows is unsupported and returns a platform_unsupported error.
func (*Service) SyncDaemonLogs ¶ added in v0.1.3
func (s *Service) SyncDaemonLogs(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
func (*Service) SyncDaemonRun ¶ added in v0.1.3
func (s *Service) SyncDaemonRun(ctx context.Context, req SyncDaemonRequest) (domain.Projection, error)
func (*Service) SyncDaemonStart ¶ added in v0.1.3
func (s *Service) SyncDaemonStart(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
func (*Service) SyncDaemonStatus ¶ added in v0.1.3
func (s *Service) SyncDaemonStatus(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
func (*Service) SyncDaemonStop ¶ added in v0.1.3
func (s *Service) SyncDaemonStop(_ context.Context, req SyncDaemonRequest) (domain.Projection, error)
func (*Service) SyncDaemonUninstall ¶ added in v0.1.6
func (s *Service) SyncDaemonUninstall(_ context.Context, req SyncDaemonInstallRequest) (domain.Projection, error)
SyncDaemonUninstall removes the sync daemon service unit for a vault. It does not stop a running service; the caller is expected to stop it first.
func (*Service) SyncDiff ¶
func (s *Service) SyncDiff(ctx context.Context, req SyncRequest) (domain.Projection, error)
func (*Service) SyncEnv ¶ added in v0.1.6
func (s *Service) SyncEnv(_ context.Context, req SyncEnvRequest) (domain.Projection, error)
SyncEnv is the entry point for the `pinax sync env` command tree. It dispatches to the per-action service handlers. Plaintext values are accepted transiently and never persisted, logged or emitted in any projection.
func (*Service) SyncIndex ¶
func (s *Service) SyncIndex(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) SyncInit ¶
func (s *Service) SyncInit(ctx context.Context, req SyncInitRequest) (domain.Projection, error)
func (*Service) SyncLogsFollow ¶ added in v0.1.6
func (*Service) SyncLogsList ¶
func (s *Service) SyncLogsList(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
func (*Service) SyncLogsPrune ¶
func (s *Service) SyncLogsPrune(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
func (*Service) SyncLogsShow ¶
func (s *Service) SyncLogsShow(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
func (*Service) SyncLogsTail ¶
func (s *Service) SyncLogsTail(_ context.Context, req SyncLogsRequest) (domain.Projection, error)
func (*Service) SyncManifestAudit ¶ added in v0.1.6
func (s *Service) SyncManifestAudit(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
func (*Service) SyncManifestPlan ¶ added in v0.1.6
func (s *Service) SyncManifestPlan(ctx context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
func (*Service) SyncManifestPromote ¶ added in v0.1.6
func (s *Service) SyncManifestPromote(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
func (*Service) SyncManifestRollback ¶ added in v0.1.6
func (s *Service) SyncManifestRollback(_ context.Context, req SyncManifestMigrationRequest) (domain.Projection, error)
func (*Service) SyncPull ¶
func (s *Service) SyncPull(ctx context.Context, req SyncRequest) (domain.Projection, error)
func (*Service) SyncPush ¶
func (s *Service) SyncPush(ctx context.Context, req SyncRequest) (domain.Projection, error)
func (*Service) SyncRepoApply ¶ added in v0.1.6
func (s *Service) SyncRepoApply(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
SyncRepoApply regenerates the runtime config from the declaration on an already-initialized device. High-risk changes (workspace/namespace/key identity/remote-delete) require explicit --yes.
func (*Service) SyncRepoBootstrap ¶ added in v0.1.6
func (s *Service) SyncRepoBootstrap(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
SyncRepoBootstrap is the new-device pull-only first run: it unlocks secrets, compiles + applies the runtime config and writes the source marker. On a device with no local sync receipt it does NOT upload local deletions.
func (*Service) SyncRepoDoctor ¶ added in v0.1.6
func (s *Service) SyncRepoDoctor(_ context.Context, req VaultRequest) (domain.Projection, error)
SyncRepoDoctor diagnoses drift, key identity, device and protected-path state.
func (*Service) SyncRepoInit ¶ added in v0.1.6
func (s *Service) SyncRepoInit(_ context.Context, req SyncRepoInitRequest) (domain.Projection, error)
SyncRepoInit creates or updates the repository sync declaration. It is idempotent: re-running with the same workspace preserves the encryption key identity. It never writes plaintext credentials.
func (*Service) SyncRepoPlan ¶ added in v0.1.6
func (s *Service) SyncRepoPlan(_ context.Context, req SyncRepoRuntimeRequest) (domain.Projection, error)
SyncRepoPlan reports intended changes WITHOUT writing anything.
func (*Service) SyncRepoSecret ¶ added in v0.1.6
func (s *Service) SyncRepoSecret(_ context.Context, req SyncRepoSecretRequest) (domain.Projection, error)
SyncRepoSecret mutates or inspects the encrypted secrets asset.
func (*Service) SyncStatus ¶
func (s *Service) SyncStatus(ctx context.Context, req SyncStatusRequest) (domain.Projection, error)
func (*Service) TagNote ¶
func (s *Service) TagNote(ctx context.Context, req NoteTagRequest) (domain.Projection, error)
func (*Service) TaskAdopt ¶ added in v0.1.3
func (s *Service) TaskAdopt(_ context.Context, req TaskAdoptRequest) (domain.Projection, error)
func (*Service) TrashList ¶ added in v0.1.3
func (s *Service) TrashList(_ context.Context, req TrashRequest) (domain.Projection, error)
func (*Service) TrashPurge ¶ added in v0.1.3
func (s *Service) TrashPurge(_ context.Context, req TrashRequest) (domain.Projection, error)
func (*Service) TrashRestore ¶ added in v0.1.3
func (s *Service) TrashRestore(ctx context.Context, req TrashRequest) (domain.Projection, error)
func (*Service) ValidateTemplate ¶
func (s *Service) ValidateTemplate(_ context.Context, req TemplateRequest) (domain.Projection, error)
func (*Service) ValidateVault ¶
func (s *Service) ValidateVault(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) VaultDoctor ¶
func (s *Service) VaultDoctor(_ context.Context, req VaultDoctorRequest) (domain.Projection, error)
func (*Service) VaultIgnoreApply ¶ added in v0.1.3
func (s *Service) VaultIgnoreApply(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
func (*Service) VaultIgnorePlan ¶ added in v0.1.3
func (s *Service) VaultIgnorePlan(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
func (*Service) VaultIgnoreStatus ¶ added in v0.1.3
func (s *Service) VaultIgnoreStatus(_ context.Context, req VaultIgnoreRequest) (domain.Projection, error)
func (*Service) VaultStats ¶
func (s *Service) VaultStats(_ context.Context, req VaultStatsRequest) (domain.Projection, error)
func (*Service) VersionBackends ¶
func (s *Service) VersionBackends(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) VersionChanged ¶
func (s *Service) VersionChanged(ctx context.Context, req VersionChangedRequest) (domain.Projection, error)
func (*Service) VersionDiff ¶
func (s *Service) VersionDiff(ctx context.Context, req VersionDiffRequest) (domain.Projection, error)
func (*Service) VersionHistory ¶
func (s *Service) VersionHistory(ctx context.Context, req VersionHistoryRequest) (domain.Projection, error)
func (*Service) VersionRestoreApply ¶
func (s *Service) VersionRestoreApply(ctx context.Context, req VersionRestoreApplyRequest) (domain.Projection, error)
VersionRestoreApply 消费已保存的 restore plan,把历史 revision 的文件内容写回本地 Markdown。它复用 version backend 的 ReadFile 读取历史内容,只做本地写入: remote_write=false、local_write=true,绝不调用 provider/cloud/MCP 写面。 必须显式 --yes;plan 的 vault hash 与 revision 必须与当前 vault 一致。
func (*Service) VersionRestorePlan ¶
func (s *Service) VersionRestorePlan(ctx context.Context, req VersionRestorePlanRequest) (domain.Projection, error)
func (*Service) VersionShow ¶
func (s *Service) VersionShow(ctx context.Context, req VersionShowRequest) (domain.Projection, error)
func (*Service) VersionSnapshot ¶
func (s *Service) VersionSnapshot(ctx context.Context, req SnapshotRequest) (domain.Projection, error)
func (*Service) VersionStatus ¶
func (s *Service) VersionStatus(_ context.Context, req VaultRequest) (domain.Projection, error)
func (*Service) WeeklyAppend ¶
func (s *Service) WeeklyAppend(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) WeeklyOpen ¶
func (s *Service) WeeklyOpen(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) WeeklyShow ¶
func (s *Service) WeeklyShow(ctx context.Context, req DailyRequest) (domain.Projection, error)
func (*Service) WorkbenchStatus ¶ added in v0.1.3
func (s *Service) WorkbenchStatus(ctx context.Context, req APIRequest) (domain.Projection, error)
type ShareRequest ¶ added in v0.1.3
type ShareRequest struct {
}
type ShowNoteRequest ¶
type SnapshotRequest ¶
type StorageRequest ¶
type SyncConflictFileRequest ¶
type SyncConflictsListRequest ¶
type SyncConflictsListRequest struct {
VaultPath string
}
type SyncDaemonInstallRequest ¶ added in v0.1.6
type SyncDaemonInstallRequest struct {
VaultPath string
}
SyncDaemonInstallRequest configures a sync daemon service unit for a vault.
type SyncDaemonRequest ¶ added in v0.1.3
type SyncEnvRequest ¶ added in v0.1.6
type SyncEnvRequest struct {
VaultPath string
Action string // init, set, list, unlock, clean, doctor
// For set: the env key name and plaintext value (transient, never persisted).
Key string
Value string
Provider string
// For unlock --materialize: keys to allowlist for the materialized file.
Allowlist []string
// Materialize requests writing the plaintext to the managed runtime path.
Materialize bool
}
SyncEnvRequest drives the `pinax sync env` command tree.
type SyncInitRequest ¶
type SyncLogsRequest ¶
type SyncManifestCapabilityState ¶ added in v0.1.6
type SyncManifestCapabilityState struct {
SchemaVersion string `json:"schema_version"`
Status string `json:"status"`
ManifestVersion string `json:"manifest_version"`
DeviceID string `json:"device_id"`
PlanID string `json:"plan_id,omitempty"`
AuditID string `json:"audit_id,omitempty"`
PromotedAt string `json:"promoted_at,omitempty"`
FirstV2RemoteRevision string `json:"first_v2_remote_revision,omitempty"`
}
type SyncManifestIdentityAllocation ¶ added in v0.1.6
type SyncManifestIdentityAudit ¶ added in v0.1.6
type SyncManifestIdentityAudit struct {
SchemaVersion string `json:"schema_version"`
AuditID string `json:"audit_id"`
Eligible bool `json:"eligible"`
DeviceID string `json:"device_id"`
EntryCount int `json:"entry_count"`
ResolvedCount int `json:"resolved_count"`
Issues []SyncManifestIdentityIssue `json:"issues,omitempty"`
Identities map[string]pinaxcloud.ManifestIdentity `json:"-"`
}
type SyncManifestIdentityIssue ¶ added in v0.1.6
type SyncManifestMigrationPlan ¶ added in v0.1.6
type SyncManifestMigrationPlan struct {
SchemaVersion string `json:"schema_version"`
PlanID string `json:"plan_id"`
AuditID string `json:"audit_id"`
FromVersion string `json:"from_version"`
ToVersion string `json:"to_version"`
DeviceID string `json:"device_id"`
EntryCount int `json:"entry_count"`
IdentityAllocations []SyncManifestIdentityAllocation `json:"identity_allocations,omitempty"`
SavedPath string `json:"saved_path"`
CreatedAt string `json:"created_at"`
}
type SyncManifestMigrationRequest ¶ added in v0.1.6
type SyncManifestPromotionReceipt ¶ added in v0.1.6
type SyncManifestPromotionReceipt struct {
SchemaVersion string `json:"schema_version"`
ReceiptID string `json:"receipt_id"`
PlanID string `json:"plan_id"`
AuditID string `json:"audit_id"`
FromVersion string `json:"from_version"`
ToVersion string `json:"to_version"`
DeviceID string `json:"device_id"`
RemoteCapability string `json:"remote_capability"`
Status string `json:"status"`
SavedPath string `json:"saved_path"`
CreatedAt string `json:"created_at"`
}
type SyncRepoInitRequest ¶ added in v0.1.6
type SyncRepoInitRequest struct {
VaultPath string
BackendKind string
Endpoint string
WorkspaceID string
TenantID string
AppID string
CredentialID string
EncryptionKeyID string
RemoteDelete string
// ExistingIfPresent reuses an existing declaration's identity fields when the
// repo is re-initialized (idempotent init).
ExistingIfPresent bool
}
SyncRepoInitRequest initializes a repository sync declaration.
type SyncRepoRuntimeRequest ¶ added in v0.1.6
type SyncRepoRuntimeRequest struct {
VaultPath string
DeviceID string
Yes bool
// UnlockProvider overrides the default provider (for tests / explicit choice).
UnlockProvider pinaxremote.UnlockProvider
}
SyncRepoRuntimeRequest drives bootstrap, plan and apply.
type SyncRepoSecretRequest ¶ added in v0.1.6
type SyncRepoSecretRequest struct {
VaultPath string
Action string // set, import, list, remove
Name string
Identity string
Kind string // credential, encryption_key
Plaintext string // for set; transient
Provider string // fake, env
}
SyncRepoSecretRequest drives secret set/import/list/remove. Plaintext is accepted only transiently and never persisted outside the encrypted asset.
type SyncRequest ¶
type SyncRunReceipt ¶
type SyncRunReceipt struct {
SchemaVersion string `json:"schema_version"`
RunID string `json:"run_id"`
Command string `json:"command"`
Target string `json:"target"`
Direction string `json:"direction"`
Status string `json:"status"`
RemoteWrite bool `json:"remote_write"`
LocalWrite bool `json:"local_write"`
BackendKind string `json:"backend_kind"`
Transport string `json:"transport"`
WorkspaceID string `json:"workspace_id"`
VaultID string `json:"vault_id"`
DeviceID string `json:"device_id"`
RequestID string `json:"request_id"`
BaseRevision string `json:"base_revision"`
RemoteRevisionBefore string `json:"remote_revision_before"`
RevisionID string `json:"revision_id"`
ManifestBlobID string `json:"manifest_blob_id"`
Counts map[string]int `json:"counts"`
TimingsMS map[string]int64 `json:"timings_ms"`
Error *domain.CommandError `json:"error"`
Actions []domain.Action `json:"actions"`
Redaction SyncRunRedaction `json:"redaction"`
Operations []syncplan.Operation `json:"operations,omitempty"`
CreatedAt string `json:"created_at"`
}
type SyncRunRedaction ¶
type SyncStatusRequest ¶
type SyncStatusRequest struct {
VaultPath string
}
type TaskAdoptRequest ¶ added in v0.1.3
type TemplateCatalogItem ¶
type TemplateCatalogItem struct {
Name string `json:"name"`
Source string `json:"source"`
Kind string `json:"kind"`
Title string `json:"title,omitempty"`
UseCases []string `json:"use_cases,omitempty"`
Aliases []string `json:"aliases,omitempty"`
Difficulty string `json:"difficulty,omitempty"`
Starter bool `json:"starter"`
ScenarioID string `json:"scenario_id,omitempty"`
TemplateKind string `json:"template_kind,omitempty"`
Intents []string `json:"intents,omitempty"`
VariableSchema map[string]templateengine.VariableMetadata `json:"variable_schema,omitempty"`
OutputPolicy templateengine.TemplateOutputPolicy `json:"output_policy,omitempty"`
AfterCreateActions []templateengine.TemplateActionMetadata `json:"after_create_actions,omitempty"`
Maturity string `json:"maturity,omitempty"`
ProofGate templateengine.TemplateProofGate `json:"proof_gate,omitempty"`
Pack TemplatePack `json:"pack,omitempty"`
Lifecycle string `json:"lifecycle,omitempty"`
Replacement string `json:"replacement,omitempty"`
Metrics map[string]string `json:"metrics,omitempty"`
}
type TemplatePack ¶ added in v0.1.3
type TemplateRequest ¶
type TrashRequest ¶ added in v0.1.3
type TrustCenterMetrics ¶ added in v0.1.6
type TrustCenterMetrics struct {
ContextReuse float64 `json:"context_reuse"`
SourceResolvability float64 `json:"source_resolvability"`
ProposalAcceptance float64 `json:"proposal_acceptance"`
HandoffContinuation float64 `json:"handoff_continuation"`
SilentPromotion int `json:"silent_promotion"`
StaleResolved int `json:"stale_resolved"`
ConflictResolved int `json:"conflict_resolved"`
WindowDays int `json:"window_days"`
}
TrustCenterMetrics 是本地 trust metrics 投影。 只保存计数、比例和时间窗口,不保存正文或完整会话。
type TrustCenterProjection ¶ added in v0.1.6
type TrustCenterProjection struct {
SchemaVersion string `json:"schema_version"`
Continuity TrustCenterSection `json:"continuity"`
Inbox TrustCenterSection `json:"inbox"`
Activity TrustCenterSection `json:"activity"`
Metrics TrustCenterMetrics `json:"metrics"`
Experimental bool `json:"experimental"`
}
TrustCenterProjection 是 Agent Trust Center 的只读投影。 聚合 bounded recent activity、continuity summary、inbox counts、 proposal decisions、adapter health 和 section errors。
type TrustCenterRequest ¶ added in v0.1.6
type TrustCenterRequest struct {
VaultPath string
Scope agentprotocol.Scope
}
TrustCenterRequest 描述一次 Trust Center 投影请求。
type TrustCenterSection ¶ added in v0.1.6
type TrustCenterSection struct {
Status string `json:"status"` // "ok" | "degraded" | "unavailable"
Error string `json:"error,omitempty"`
Data interface{} `json:"data,omitempty"`
}
TrustCenterSection 是 Trust Center 的一个 section,支持 partial success。
type VaultDoctorRequest ¶
type VaultHealthService ¶
type VaultHealthService struct{}
func (VaultHealthService) Issues ¶
func (VaultHealthService) Issues(root string, facts []noteFact, stats domain.VaultStats, staleAfter time.Duration) []domain.VaultIssue
type VaultIgnoreRequest ¶ added in v0.1.3
type VaultObjectCandidate ¶
type VaultObjectCandidate = domain.VaultObjectCandidate
type VaultRequest ¶
type VaultStatsRequest ¶
type VaultStatsRequest struct {
VaultPath string
}
type VersionChangedRequest ¶
type VersionDiffRequest ¶
type VersionHistoryRequest ¶
type VersionRestoreApplyRequest ¶
VersionRestoreApplyRequest drives version restore apply.
type VersionShowRequest ¶
type ViewRequest ¶
type ViewRequest struct {
VaultPath string
Name string
Tags []string
Group string
Folder string
Kind string
Status string
Sort string
Limit int
CreatedAfter string
UpdatedBefore string
Yes bool
Language string
Query string
Columns []string
Display string
GroupBy string
CalendarField string
BoardColumn string
}
type WorkflowRecommendation ¶ added in v0.1.3
type WorkflowRecommendation struct {
Template string `json:"template"`
ScenarioID string `json:"scenario_id,omitempty"`
Maturity string `json:"maturity,omitempty"`
Pack TemplatePack `json:"pack,omitempty"`
FitReason string `json:"fit_reason,omitempty"`
PreviewCommand string `json:"preview_command,omitempty"`
CreateCommand string `json:"create_command,omitempty"`
EvidencePath string `json:"evidence_path,omitempty"`
ProofGate templateengine.TemplateProofGate `json:"proof_gate,omitempty"`
AfterCreateActions []templateengine.TemplateActionMetadata `json:"after_create_actions,omitempty"`
Lifecycle string `json:"lifecycle,omitempty"`
Executable bool `json:"executable"`
Replacement string `json:"replacement,omitempty"`
}
Source Files
¶
- activity.go
- agent_context.go
- agent_context_runtime.go
- agent_continuity.go
- agent_feedback.go
- agent_handoff.go
- agent_inbox.go
- agent_memory_lifecycle.go
- agent_memory_proposal.go
- agent_memory_recall.go
- agent_memory_service.go
- agent_trust_center.go
- apply_receipt.go
- brain_answer.go
- brain_maintenance.go
- builtin_templates.go
- capsa_bridge.go
- cloud.go
- cloud_sync.go
- collection_graph.go
- doc.go
- draft_inbox.go
- folder.go
- identity_migration.go
- index_pages.go
- kb.go
- legacy_identity.go
- linkgraph.go
- memory.go
- monitor.go
- monitor_resource_unix.go
- object_plan_binding.go
- plugin.go
- project_board.go
- project_workspace.go
- proof_loop.go
- publish.go
- publish_doc.go
- publish_doc_assets.go
- publish_doc_crosslinks.go
- publish_doc_native.go
- publish_doc_package.go
- query.go
- records.go
- remote.go
- render_runs.go
- requests.go
- resolver.go
- service.go
- service_asset.go
- service_backend.go
- service_index.go
- service_journal.go
- service_note.go
- service_plan.go
- service_prompt.go
- service_sync_briefing.go
- service_sync_remote.go
- service_template.go
- service_vault.go
- service_version.go
- share.go
- sync_conflicts.go
- sync_daemon.go
- sync_env.go
- sync_manifest_migration.go
- sync_repo.go
- sync_runs.go
- taskbridge_planning.go
- trash.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package briefingops owns app-layer briefing workflows behind the app.Service facade.
|
Package briefingops owns app-layer briefing workflows behind the app.Service facade. |
|
Package noteops owns app-layer note workflows behind the app.Service facade.
|
Package noteops owns app-layer note workflows behind the app.Service facade. |
|
Package planningops owns app-layer planning workflows behind the app.Service facade.
|
Package planningops owns app-layer planning workflows behind the app.Service facade. |
|
Package publishops owns pure rules for the publish command family.
|
Package publishops owns pure rules for the publish command family. |
|
Package searchops owns app-layer search and query workflows behind the app.Service facade.
|
Package searchops owns app-layer search and query workflows behind the app.Service facade. |
|
Package syncops owns app-layer cloud and backend sync workflows behind the app.Service facade.
|
Package syncops owns app-layer cloud and backend sync workflows behind the app.Service facade. |
|
Package templateops owns app-layer template and journal workflows behind the app.Service facade.
|
Package templateops owns app-layer template and journal workflows behind the app.Service facade. |
|
Package vaultops owns app-layer vault maintenance workflows behind the app.Service facade.
|
Package vaultops owns app-layer vault maintenance workflows behind the app.Service facade. |
|
Package versionops owns app-layer version-control workflows behind the app.Service facade.
|
Package versionops owns app-layer version-control workflows behind the app.Service facade. |