@proletariat/cli 0.3.87 → 0.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/db/repair.d.ts +14 -0
- package/dist/commands/db/repair.js +186 -0
- package/dist/commands/db/repair.js.map +1 -0
- package/dist/commands/init.d.ts +6 -1
- package/dist/commands/init.js +44 -89
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/new.d.ts +30 -2
- package/dist/commands/new.js +141 -9
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/session/list.js +42 -0
- package/dist/commands/session/list.js.map +1 -1
- package/dist/commands/session/poke.d.ts +6 -0
- package/dist/commands/session/poke.js +40 -0
- package/dist/commands/session/poke.js.map +1 -1
- package/dist/commands/work/start.d.ts +1 -0
- package/dist/commands/work/start.js +20 -1
- package/dist/commands/work/start.js.map +1 -1
- package/dist/hooks/init.js +3 -6
- package/dist/hooks/init.js.map +1 -1
- package/dist/lib/asana/config.d.ts +1 -1
- package/dist/lib/asana/config.js +18 -30
- package/dist/lib/asana/config.js.map +1 -1
- package/dist/lib/asana/mapper.d.ts +4 -3
- package/dist/lib/asana/mapper.js +17 -10
- package/dist/lib/asana/mapper.js.map +1 -1
- package/dist/lib/dashboard/data.js +2 -2
- package/dist/lib/dashboard/data.js.map +1 -1
- package/dist/lib/database/agents.d.ts +73 -0
- package/dist/lib/database/agents.js +341 -0
- package/dist/lib/database/agents.js.map +1 -0
- package/dist/lib/database/db-safety.d.ts +59 -0
- package/dist/lib/database/db-safety.js +295 -0
- package/dist/lib/database/db-safety.js.map +1 -0
- package/dist/lib/database/driver.d.ts +115 -0
- package/dist/lib/database/driver.js +110 -0
- package/dist/lib/database/driver.js.map +1 -0
- package/dist/lib/database/index.d.ts +26 -287
- package/dist/lib/database/index.js +37 -1067
- package/dist/lib/database/index.js.map +1 -1
- package/dist/lib/database/media.d.ts +53 -0
- package/dist/lib/database/media.js +118 -0
- package/dist/lib/database/media.js.map +1 -0
- package/dist/lib/database/migrations/0012_add_action_network_allowlist.d.ts +9 -0
- package/dist/lib/database/migrations/0012_add_action_network_allowlist.js +22 -0
- package/dist/lib/database/migrations/0012_add_action_network_allowlist.js.map +1 -0
- package/dist/lib/database/migrations/index.js +2 -0
- package/dist/lib/database/migrations/index.js.map +1 -1
- package/dist/lib/database/pmo-bootstrap.d.ts +30 -0
- package/dist/lib/database/pmo-bootstrap.js +105 -0
- package/dist/lib/database/pmo-bootstrap.js.map +1 -0
- package/dist/lib/database/repositories.d.ts +26 -0
- package/dist/lib/database/repositories.js +56 -0
- package/dist/lib/database/repositories.js.map +1 -0
- package/dist/lib/database/settings-store.d.ts +60 -0
- package/dist/lib/database/settings-store.js +87 -0
- package/dist/lib/database/settings-store.js.map +1 -0
- package/dist/lib/database/themes.d.ts +59 -0
- package/dist/lib/database/themes.js +212 -0
- package/dist/lib/database/themes.js.map +1 -0
- package/dist/lib/database/workspace.d.ts +51 -0
- package/dist/lib/database/workspace.js +194 -0
- package/dist/lib/database/workspace.js.map +1 -0
- package/dist/lib/database/worktrees.d.ts +33 -0
- package/dist/lib/database/worktrees.js +60 -0
- package/dist/lib/database/worktrees.js.map +1 -0
- package/dist/lib/execution/config.d.ts +14 -1
- package/dist/lib/execution/config.js +67 -17
- package/dist/lib/execution/config.js.map +1 -1
- package/dist/lib/execution/devcontainer.d.ts +2 -0
- package/dist/lib/execution/devcontainer.js +6 -1
- package/dist/lib/execution/devcontainer.js.map +1 -1
- package/dist/lib/execution/runners/docker-management.d.ts +6 -0
- package/dist/lib/execution/runners/docker-management.js +28 -12
- package/dist/lib/execution/runners/docker-management.js.map +1 -1
- package/dist/lib/execution/runners/sandbox.js +2 -1
- package/dist/lib/execution/runners/sandbox.js.map +1 -1
- package/dist/lib/execution/spawner.d.ts +3 -1
- package/dist/lib/execution/spawner.js +1 -0
- package/dist/lib/execution/spawner.js.map +1 -1
- package/dist/lib/execution/storage.d.ts +47 -12
- package/dist/lib/execution/storage.js +69 -47
- package/dist/lib/execution/storage.js.map +1 -1
- package/dist/lib/execution/types.d.ts +1 -0
- package/dist/lib/execution/types.js.map +1 -1
- package/dist/lib/external-issues/mapping-store.d.ts +4 -3
- package/dist/lib/external-issues/mapping-store.js +21 -13
- package/dist/lib/external-issues/mapping-store.js.map +1 -1
- package/dist/lib/external-issues/outbound-sync.d.ts +1 -1
- package/dist/lib/jira/config.d.ts +1 -6
- package/dist/lib/jira/config.js +16 -33
- package/dist/lib/jira/config.js.map +1 -1
- package/dist/lib/linear/config.d.ts +1 -1
- package/dist/lib/linear/config.js +16 -38
- package/dist/lib/linear/config.js.map +1 -1
- package/dist/lib/linear/mapper.d.ts +4 -3
- package/dist/lib/linear/mapper.js +20 -13
- package/dist/lib/linear/mapper.js.map +1 -1
- package/dist/lib/monday/config.d.ts +1 -1
- package/dist/lib/monday/config.js +16 -32
- package/dist/lib/monday/config.js.map +1 -1
- package/dist/lib/monday/mapper.d.ts +4 -3
- package/dist/lib/monday/mapper.js +19 -12
- package/dist/lib/monday/mapper.js.map +1 -1
- package/dist/lib/onboarding/wizard.d.ts +2 -2
- package/dist/lib/onboarding/wizard.js +32 -24
- package/dist/lib/onboarding/wizard.js.map +1 -1
- package/dist/lib/pmo/diet.d.ts +1 -1
- package/dist/lib/pmo/find-pmo.js +10 -10
- package/dist/lib/pmo/find-pmo.js.map +1 -1
- package/dist/lib/pmo/schema.d.ts +1 -1
- package/dist/lib/pmo/schema.js +1 -0
- package/dist/lib/pmo/schema.js.map +1 -1
- package/dist/lib/pmo/storage/actions.js +9 -3
- package/dist/lib/pmo/storage/actions.js.map +1 -1
- package/dist/lib/pmo/storage/index.d.ts +8 -0
- package/dist/lib/pmo/storage/index.js +13 -1
- package/dist/lib/pmo/storage/index.js.map +1 -1
- package/dist/lib/pmo/storage/types.d.ts +5 -1
- package/dist/lib/pmo/types.d.ts +1 -0
- package/dist/lib/pmo/types.js.map +1 -1
- package/dist/lib/registry/index.d.ts +2 -2
- package/dist/lib/registry/index.js +5 -6
- package/dist/lib/registry/index.js.map +1 -1
- package/dist/lib/session-store.js +2 -2
- package/dist/lib/session-store.js.map +1 -1
- package/dist/lib/shortcut/config.d.ts +1 -7
- package/dist/lib/shortcut/config.js +13 -32
- package/dist/lib/shortcut/config.js.map +1 -1
- package/dist/lib/trello/config.d.ts +1 -26
- package/dist/lib/trello/config.js +23 -64
- package/dist/lib/trello/config.js.map +1 -1
- package/dist/lib/trello/mapper.d.ts +4 -3
- package/dist/lib/trello/mapper.js +17 -10
- package/dist/lib/trello/mapper.js.map +1 -1
- package/dist/lib/work-lifecycle/action-chaining.js +4 -0
- package/dist/lib/work-lifecycle/action-chaining.js.map +1 -1
- package/dist/lib/work-lifecycle/post-execution.d.ts +1 -1
- package/dist/lib/work-source/config.d.ts +1 -1
- package/dist/lib/work-source/config.js +14 -24
- package/dist/lib/work-source/config.js.map +1 -1
- package/dist/lib/work-source/provider-sources.d.ts +1 -1
- package/dist/lib/work-source/provider-sources.js +8 -20
- package/dist/lib/work-source/provider-sources.js.map +1 -1
- package/oclif.manifest.json +1111 -1001
- package/package.json +1 -1
|
@@ -1,289 +1,28 @@
|
|
|
1
|
-
import Database from 'better-sqlite3';
|
|
2
|
-
export { CREATE_TABLES_SQL } from './workspace-schema.js';
|
|
3
|
-
export interface WorkspaceConfig {
|
|
4
|
-
id: number;
|
|
5
|
-
type: 'hq' | 'workspace';
|
|
6
|
-
workspace_name: string;
|
|
7
|
-
has_pmo: boolean;
|
|
8
|
-
active_theme_id: string | null;
|
|
9
|
-
created_at: string;
|
|
10
|
-
}
|
|
11
|
-
export interface Repository {
|
|
12
|
-
name: string;
|
|
13
|
-
path: string;
|
|
14
|
-
type: 'main' | 'dependency';
|
|
15
|
-
source_url?: string;
|
|
16
|
-
action?: 'clone' | 'move' | 'link';
|
|
17
|
-
added_at: string;
|
|
18
|
-
}
|
|
19
|
-
export type AgentType = 'persistent' | 'ephemeral';
|
|
20
|
-
export type AgentStatus = 'active' | 'cleaned';
|
|
21
|
-
export type MountMode = 'worktree' | 'clone';
|
|
22
|
-
export interface Agent {
|
|
23
|
-
name: string;
|
|
24
|
-
type: AgentType;
|
|
25
|
-
status: AgentStatus;
|
|
26
|
-
base_name: string | null;
|
|
27
|
-
theme_id: string | null;
|
|
28
|
-
worktree_path: string | null;
|
|
29
|
-
mount_mode: MountMode;
|
|
30
|
-
created_at: string;
|
|
31
|
-
cleaned_at: string | null;
|
|
32
|
-
}
|
|
33
|
-
export interface AgentTheme {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
display_name: string;
|
|
37
|
-
description: string | null;
|
|
38
|
-
builtin: boolean;
|
|
39
|
-
created_at: string;
|
|
40
|
-
}
|
|
41
|
-
export interface AgentThemeName {
|
|
42
|
-
theme_id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
}
|
|
45
|
-
export interface AgentWorktree {
|
|
46
|
-
agent_name: string;
|
|
47
|
-
repo_name: string;
|
|
48
|
-
worktree_path: string;
|
|
49
|
-
branch: string;
|
|
50
|
-
created_at: string;
|
|
51
|
-
last_commit_hash?: string;
|
|
52
|
-
commits_ahead: number;
|
|
53
|
-
is_clean: boolean;
|
|
54
|
-
last_checked?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get the database path for a workspace
|
|
58
|
-
*/
|
|
59
|
-
export declare function getDatabasePath(workspacePath: string): string;
|
|
60
|
-
/**
|
|
61
|
-
* Get the config path for a workspace
|
|
62
|
-
*/
|
|
63
|
-
export declare function getConfigPath(workspacePath: string): string;
|
|
64
|
-
/**
|
|
65
|
-
* Open workspace database connection
|
|
66
|
-
*/
|
|
67
|
-
export declare function openWorkspaceDatabase(workspacePath: string): Database.Database;
|
|
68
|
-
/**
|
|
69
|
-
* Create and initialize workspace database
|
|
70
|
-
*/
|
|
71
|
-
export declare function createWorkspaceDatabase(workspacePath: string, type: 'hq' | 'workspace', workspaceName: string, hasPMO?: boolean): Database.Database;
|
|
72
|
-
/**
|
|
73
|
-
* Get workspace configuration
|
|
74
|
-
*/
|
|
75
|
-
export declare function getWorkspaceConfig(workspacePath: string): WorkspaceConfig | null;
|
|
76
|
-
/**
|
|
77
|
-
* Get the active theme for a workspace
|
|
78
|
-
* Auto-detects theme from existing agents if not explicitly set
|
|
79
|
-
*/
|
|
80
|
-
export declare function getActiveTheme(workspacePath: string): AgentTheme | null;
|
|
81
|
-
/**
|
|
82
|
-
* Set the active theme for a workspace
|
|
83
|
-
*/
|
|
84
|
-
export declare function setActiveTheme(workspacePath: string, themeId: string | null): void;
|
|
85
|
-
/**
|
|
86
|
-
* Add repositories to database
|
|
87
|
-
*/
|
|
88
|
-
export declare function addRepositoriesToDatabase(workspacePath: string, repos: {
|
|
89
|
-
name: string;
|
|
90
|
-
path: string;
|
|
91
|
-
source_url?: string;
|
|
92
|
-
action?: 'clone' | 'move' | 'link';
|
|
93
|
-
}[]): void;
|
|
94
|
-
/**
|
|
95
|
-
* Add agents to database (case-insensitive uniqueness)
|
|
96
|
-
*/
|
|
97
|
-
export declare function addAgentsToDatabase(workspacePath: string, agentNames: string[], themeId?: string, mountMode?: MountMode): void;
|
|
98
|
-
/**
|
|
99
|
-
* Add an ephemeral agent to the database.
|
|
100
|
-
* Throws on name collision — use tryAddEphemeralAgentToDatabase for
|
|
101
|
-
* concurrency-safe insertion with conflict detection.
|
|
102
|
-
*/
|
|
103
|
-
export declare function addEphemeralAgentToDatabase(workspacePath: string, agentName: string, baseName: string, themeId?: string, mountMode?: MountMode): Agent;
|
|
104
|
-
/**
|
|
105
|
-
* Try to add an ephemeral agent to the database.
|
|
106
|
-
* Returns the Agent on success, or null if the name already exists
|
|
107
|
-
* (SQLITE_CONSTRAINT_PRIMARYKEY). This is concurrency-safe: parallel
|
|
108
|
-
* processes that generate the same name will not crash — the loser
|
|
109
|
-
* simply gets null and can retry with a different name.
|
|
110
|
-
*/
|
|
111
|
-
export declare function tryAddEphemeralAgentToDatabase(workspacePath: string, agentName: string, baseName: string, themeId?: string, mountMode?: MountMode): Agent | null;
|
|
112
|
-
/**
|
|
113
|
-
* Get all ephemeral agent names from the database
|
|
114
|
-
*/
|
|
115
|
-
export declare function getEphemeralAgentNames(workspacePath: string): Set<string>;
|
|
116
|
-
/**
|
|
117
|
-
* Remove an ephemeral agent from the database
|
|
118
|
-
*/
|
|
119
|
-
export declare function removeEphemeralAgent(workspacePath: string, agentName: string): void;
|
|
120
|
-
/**
|
|
121
|
-
* Get all agents in workspace
|
|
122
|
-
*/
|
|
123
|
-
export declare function getWorkspaceAgents(workspacePath: string, includeCleanedUp?: boolean): Agent[];
|
|
124
|
-
/**
|
|
125
|
-
* Get an agent by directory path.
|
|
126
|
-
* Looks up agent where the given absolute path is inside the agent's worktree.
|
|
127
|
-
* Returns null if no matching agent found.
|
|
128
|
-
*/
|
|
129
|
-
export declare function getAgentByPath(workspacePath: string, absolutePath: string): Agent | null;
|
|
130
|
-
/**
|
|
131
|
-
* Mark an agent as cleaned up (keeps the record for history)
|
|
132
|
-
*/
|
|
133
|
-
export declare function markAgentCleaned(workspacePath: string, agentName: string): void;
|
|
134
|
-
/**
|
|
135
|
-
* Sync agents in database with what exists on disk.
|
|
136
|
-
* Marks agents as 'cleaned' if their directory no longer exists.
|
|
137
|
-
* Returns list of agents that were cleaned up.
|
|
138
|
-
*/
|
|
139
|
-
export declare function syncAgentsWithDisk(workspacePath: string): string[];
|
|
140
|
-
export interface DiscoverResult {
|
|
141
|
-
discovered: {
|
|
142
|
-
name: string;
|
|
143
|
-
type: AgentType;
|
|
144
|
-
path: string;
|
|
145
|
-
}[];
|
|
146
|
-
cleaned: string[];
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Discover agents on disk that aren't in the database and register them.
|
|
150
|
-
* Also cleans up agents in DB whose directories no longer exist.
|
|
151
|
-
* Returns both discovered and cleaned agents.
|
|
152
|
-
*/
|
|
153
|
-
export declare function discoverAgentsOnDisk(workspacePath: string): DiscoverResult;
|
|
154
|
-
/**
|
|
155
|
-
* Get all repositories in workspace
|
|
156
|
-
*/
|
|
157
|
-
export declare function getWorkspaceRepositories(workspacePath: string): Repository[];
|
|
158
1
|
/**
|
|
159
|
-
*
|
|
2
|
+
* Database Module - Re-export Facade
|
|
3
|
+
*
|
|
4
|
+
* This module re-exports all database operations from domain-specific modules.
|
|
5
|
+
* Consumers should import from this index for backward compatibility.
|
|
6
|
+
*
|
|
7
|
+
* Domain modules:
|
|
8
|
+
* - workspace.ts - Database lifecycle (open, create, config)
|
|
9
|
+
* - agents.ts - Agent CRUD operations
|
|
10
|
+
* - repositories.ts - Repository operations
|
|
11
|
+
* - themes.ts - Agent naming theme operations
|
|
12
|
+
* - worktrees.ts - Agent worktree queries
|
|
13
|
+
* - media.ts - Media item operations
|
|
14
|
+
* - pmo-bootstrap.ts - PMO initialization/teardown
|
|
15
|
+
* - driver.ts - DatabaseDriver abstraction layer
|
|
16
|
+
* - settings-store.ts - Workspace settings key-value store
|
|
160
17
|
*/
|
|
161
|
-
export
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
export
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
commits_ahead: number;
|
|
173
|
-
branch: string;
|
|
174
|
-
}>;
|
|
175
|
-
/**
|
|
176
|
-
* Upsert a workspace setting (key-value pair).
|
|
177
|
-
*/
|
|
178
|
-
export declare function upsertWorkspaceSetting(db: Database.Database, key: string, value: string): void;
|
|
179
|
-
/**
|
|
180
|
-
* Remove agents from database
|
|
181
|
-
*/
|
|
182
|
-
export declare function removeAgentsFromDatabase(workspacePath: string, agentNames: string[]): void;
|
|
183
|
-
/**
|
|
184
|
-
* Check if PMO tables exist and get basic stats.
|
|
185
|
-
* Used by pmo init to detect existing PMO before storage layer is available.
|
|
186
|
-
* Raw SQL: uses sqlite_master introspection (pre-migration bootstrap).
|
|
187
|
-
*/
|
|
188
|
-
export declare function checkPMOExists(dbPath: string): {
|
|
189
|
-
exists: boolean;
|
|
190
|
-
projectCount: number;
|
|
191
|
-
ticketCount: number;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Get a PMO setting from the pmo_settings table.
|
|
195
|
-
* Used for bootstrapping queries before storage layer is available.
|
|
196
|
-
* Raw SQL: pre-migration bootstrap query.
|
|
197
|
-
*/
|
|
198
|
-
export declare function getPMOSetting(dbPath: string, key: string): string | null;
|
|
199
|
-
/**
|
|
200
|
-
* Drop PMO tables from the database.
|
|
201
|
-
* Used during PMO reinitialization.
|
|
202
|
-
* Raw SQL: DDL operations (DROP TABLE) are not supported by Drizzle.
|
|
203
|
-
*/
|
|
204
|
-
export declare function dropPMOTables(dbPath: string, tables: string[]): void;
|
|
205
|
-
/**
|
|
206
|
-
* Get all themes
|
|
207
|
-
*/
|
|
208
|
-
export declare function getThemes(workspacePath: string): AgentTheme[];
|
|
209
|
-
/**
|
|
210
|
-
* Get a theme by ID
|
|
211
|
-
*/
|
|
212
|
-
export declare function getTheme(workspacePath: string, themeId: string): AgentTheme | null;
|
|
213
|
-
/**
|
|
214
|
-
* Create a new theme
|
|
215
|
-
*/
|
|
216
|
-
export declare function createTheme(workspacePath: string, theme: {
|
|
217
|
-
id: string;
|
|
218
|
-
name: string;
|
|
219
|
-
displayName: string;
|
|
220
|
-
description?: string;
|
|
221
|
-
builtin?: boolean;
|
|
222
|
-
}): AgentTheme;
|
|
223
|
-
/**
|
|
224
|
-
* Delete a theme (cannot delete builtin themes)
|
|
225
|
-
*/
|
|
226
|
-
export declare function deleteTheme(workspacePath: string, themeId: string): boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Get names for a theme
|
|
229
|
-
*/
|
|
230
|
-
export declare function getThemeNames(workspacePath: string, themeId: string): AgentThemeName[];
|
|
231
|
-
/**
|
|
232
|
-
* Get available names for a theme.
|
|
233
|
-
* A name is available if:
|
|
234
|
-
* 1. No staff agent exists in the database with that name (case-insensitive), OR
|
|
235
|
-
* 2. The agent exists but its worktree directory is missing (manually deleted)
|
|
236
|
-
*/
|
|
237
|
-
export declare function getAvailableThemeNames(workspacePath: string, themeId: string): string[];
|
|
238
|
-
/**
|
|
239
|
-
* Add names to a theme (case-insensitive uniqueness)
|
|
240
|
-
*/
|
|
241
|
-
export declare function addThemeNames(workspacePath: string, themeId: string, names: string[]): void;
|
|
242
|
-
export interface MediaItem {
|
|
243
|
-
name: string;
|
|
244
|
-
path: string;
|
|
245
|
-
source_path: string | null;
|
|
246
|
-
media_type: 'video' | 'audio';
|
|
247
|
-
duration_seconds: number | null;
|
|
248
|
-
resolution: string | null;
|
|
249
|
-
frame_count: number;
|
|
250
|
-
has_transcript: boolean;
|
|
251
|
-
frame_interval: number;
|
|
252
|
-
status: 'pending' | 'processing' | 'ready' | 'error';
|
|
253
|
-
error_message: string | null;
|
|
254
|
-
added_at: string;
|
|
255
|
-
processed_at: string | null;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Add a media item to the database
|
|
259
|
-
*/
|
|
260
|
-
export declare function addMediaItemToDatabase(workspacePath: string, item: {
|
|
261
|
-
name: string;
|
|
262
|
-
path: string;
|
|
263
|
-
source_path?: string;
|
|
264
|
-
media_type: 'video' | 'audio';
|
|
265
|
-
frame_interval?: number;
|
|
266
|
-
}): void;
|
|
267
|
-
/**
|
|
268
|
-
* Update media item after preprocessing
|
|
269
|
-
*/
|
|
270
|
-
export declare function updateMediaItemStatus(workspacePath: string, name: string, updates: {
|
|
271
|
-
status: 'pending' | 'processing' | 'ready' | 'error';
|
|
272
|
-
duration_seconds?: number;
|
|
273
|
-
resolution?: string;
|
|
274
|
-
frame_count?: number;
|
|
275
|
-
has_transcript?: boolean;
|
|
276
|
-
error_message?: string;
|
|
277
|
-
}): void;
|
|
278
|
-
/**
|
|
279
|
-
* Get all media items in workspace
|
|
280
|
-
*/
|
|
281
|
-
export declare function getWorkspaceMediaItems(workspacePath: string): MediaItem[];
|
|
282
|
-
/**
|
|
283
|
-
* Get a single media item by name
|
|
284
|
-
*/
|
|
285
|
-
export declare function getMediaItem(workspacePath: string, name: string): MediaItem | null;
|
|
286
|
-
/**
|
|
287
|
-
* Remove a media item from the database
|
|
288
|
-
*/
|
|
289
|
-
export declare function removeMediaItemFromDatabase(workspacePath: string, name: string): void;
|
|
18
|
+
export { CREATE_TABLES_SQL } from './workspace-schema.js';
|
|
19
|
+
export { type WorkspaceConfig, withDrizzle, getDatabasePath, getConfigPath, openWorkspaceDatabase, openWorkspaceDriver, createWorkspaceDatabase, getWorkspaceConfig, } from './workspace.js';
|
|
20
|
+
export { type AgentType, type AgentStatus, type MountMode, type Agent, type DiscoverResult, addAgentsToDatabase, addEphemeralAgentToDatabase, tryAddEphemeralAgentToDatabase, getEphemeralAgentNames, removeEphemeralAgent, getWorkspaceAgents, getAgentByPath, markAgentCleaned, syncAgentsWithDisk, discoverAgentsOnDisk, removeAgentsFromDatabase, } from './agents.js';
|
|
21
|
+
export { type Repository, addRepositoriesToDatabase, getWorkspaceRepositories, } from './repositories.js';
|
|
22
|
+
export { type AgentTheme, type AgentThemeName, getActiveTheme, setActiveTheme, getThemes, getTheme, createTheme, deleteTheme, getThemeNames, getAvailableThemeNames, addThemeNames, } from './themes.js';
|
|
23
|
+
export { type AgentWorktree, getAgentWorktrees, findWorktreesByBranch, getWorktreesForRepo, } from './worktrees.js';
|
|
24
|
+
export { type MediaItem, addMediaItemToDatabase, updateMediaItemStatus, getWorkspaceMediaItems, getMediaItem, removeMediaItemFromDatabase, } from './media.js';
|
|
25
|
+
export { checkPMOExists, getPMOSetting, dropPMOTables, upsertWorkspaceSetting, } from './pmo-bootstrap.js';
|
|
26
|
+
export { type DatabaseDriver, type PreparedStatement, type RunResult, BetterSqlite3Driver, wrapDatabase, openDriver, getRawDatabase, } from './driver.js';
|
|
27
|
+
export { SettingsStore, createSettingsStore, } from './settings-store.js';
|
|
28
|
+
export { enableWALMode, createRotatingBackup, checkIntegrity, quickCheckIntegrity, repairDatabase, getBackupPath, type IntegrityCheckResult, type RepairResult, } from './db-safety.js';
|