@moneysiren/app 0.1.0-alpha.9
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/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/apps/cli/src/cli.d.ts +59 -0
- package/dist/apps/cli/src/cli.js +199 -0
- package/dist/apps/cli/src/commands/dashboard.d.ts +3 -0
- package/dist/apps/cli/src/commands/dashboard.js +239 -0
- package/dist/apps/cli/src/commands/doctor.d.ts +3 -0
- package/dist/apps/cli/src/commands/doctor.js +25 -0
- package/dist/apps/cli/src/commands/init.d.ts +3 -0
- package/dist/apps/cli/src/commands/init.js +18 -0
- package/dist/apps/cli/src/commands/install.d.ts +3 -0
- package/dist/apps/cli/src/commands/install.js +244 -0
- package/dist/apps/cli/src/commands/modes.d.ts +3 -0
- package/dist/apps/cli/src/commands/modes.js +73 -0
- package/dist/apps/cli/src/commands/notify.d.ts +3 -0
- package/dist/apps/cli/src/commands/notify.js +430 -0
- package/dist/apps/cli/src/commands/report.d.ts +3 -0
- package/dist/apps/cli/src/commands/report.js +206 -0
- package/dist/apps/cli/src/commands/runtime.d.ts +10 -0
- package/dist/apps/cli/src/commands/runtime.js +499 -0
- package/dist/apps/cli/src/commands/shared.d.ts +9 -0
- package/dist/apps/cli/src/commands/shared.js +29 -0
- package/dist/apps/cli/src/commands/summary.d.ts +3 -0
- package/dist/apps/cli/src/commands/summary.js +15 -0
- package/dist/apps/cli/src/commands/sync.d.ts +3 -0
- package/dist/apps/cli/src/commands/sync.js +393 -0
- package/dist/apps/cli/src/commands/theme.d.ts +3 -0
- package/dist/apps/cli/src/commands/theme.js +181 -0
- package/dist/apps/cli/src/desktop-runtime.d.ts +54 -0
- package/dist/apps/cli/src/desktop-runtime.js +720 -0
- package/dist/apps/cli/src/home.d.ts +7 -0
- package/dist/apps/cli/src/home.js +124 -0
- package/dist/apps/cli/src/index.d.ts +3 -0
- package/dist/apps/cli/src/index.js +14 -0
- package/dist/apps/cli/src/install-profile.d.ts +35 -0
- package/dist/apps/cli/src/install-profile.js +124 -0
- package/dist/apps/cli/src/install-selector.d.ts +10 -0
- package/dist/apps/cli/src/install-selector.js +66 -0
- package/dist/apps/cli/src/interactive.d.ts +3 -0
- package/dist/apps/cli/src/interactive.js +32 -0
- package/dist/apps/cli/src/postinstall.d.ts +3 -0
- package/dist/apps/cli/src/postinstall.js +42 -0
- package/dist/apps/cli/src/release-installer.d.ts +57 -0
- package/dist/apps/cli/src/release-installer.js +432 -0
- package/dist/apps/cli/src/runtime-adapter.d.ts +24 -0
- package/dist/apps/cli/src/runtime-adapter.js +185 -0
- package/dist/apps/cli/src/slash.d.ts +15 -0
- package/dist/apps/cli/src/slash.js +229 -0
- package/dist/apps/cli/src/summary-model.d.ts +51 -0
- package/dist/apps/cli/src/summary-model.js +136 -0
- package/dist/apps/cli/src/theme.d.ts +18 -0
- package/dist/apps/cli/src/theme.js +118 -0
- package/dist/apps/cli/src/version.d.ts +2 -0
- package/dist/apps/cli/src/version.js +2 -0
- package/dist/packages/config/src/index.d.ts +3 -0
- package/dist/packages/config/src/index.js +3 -0
- package/dist/packages/config/src/load.d.ts +3 -0
- package/dist/packages/config/src/load.js +80 -0
- package/dist/packages/config/src/schema.d.ts +49 -0
- package/dist/packages/config/src/schema.js +28 -0
- package/dist/packages/connectors/aws/src/cost-explorer.d.ts +34 -0
- package/dist/packages/connectors/aws/src/cost-explorer.js +43 -0
- package/dist/packages/connectors/aws/src/index.d.ts +35 -0
- package/dist/packages/connectors/aws/src/index.js +67 -0
- package/dist/packages/connectors/aws/src/normalize.d.ts +69 -0
- package/dist/packages/connectors/aws/src/normalize.js +141 -0
- package/dist/packages/connectors/aws/src/sdk-client.d.ts +6 -0
- package/dist/packages/connectors/aws/src/sdk-client.js +21 -0
- package/dist/packages/connectors/cloudflare/src/client.d.ts +23 -0
- package/dist/packages/connectors/cloudflare/src/client.js +107 -0
- package/dist/packages/connectors/cloudflare/src/index.d.ts +33 -0
- package/dist/packages/connectors/cloudflare/src/index.js +81 -0
- package/dist/packages/connectors/cloudflare/src/normalize.d.ts +113 -0
- package/dist/packages/connectors/cloudflare/src/normalize.js +288 -0
- package/dist/packages/connectors/mock/src/index.d.ts +58 -0
- package/dist/packages/connectors/mock/src/index.js +66 -0
- package/dist/packages/connectors/openai/src/index.d.ts +55 -0
- package/dist/packages/connectors/openai/src/index.js +169 -0
- package/dist/packages/connectors/openai/src/normalize.d.ts +91 -0
- package/dist/packages/connectors/openai/src/normalize.js +180 -0
- package/dist/packages/connectors/supabase/src/client.d.ts +22 -0
- package/dist/packages/connectors/supabase/src/client.js +132 -0
- package/dist/packages/connectors/supabase/src/index.d.ts +33 -0
- package/dist/packages/connectors/supabase/src/index.js +87 -0
- package/dist/packages/connectors/supabase/src/normalize.d.ts +106 -0
- package/dist/packages/connectors/supabase/src/normalize.js +266 -0
- package/dist/packages/core/src/collector.d.ts +12 -0
- package/dist/packages/core/src/collector.js +68 -0
- package/dist/packages/core/src/index.d.ts +5 -0
- package/dist/packages/core/src/index.js +4 -0
- package/dist/packages/core/src/provider.d.ts +18 -0
- package/dist/packages/core/src/provider.js +2 -0
- package/dist/packages/core/src/risk-engine.d.ts +9 -0
- package/dist/packages/core/src/risk-engine.js +4 -0
- package/dist/packages/core/src/snapshots.d.ts +49 -0
- package/dist/packages/core/src/snapshots.js +9 -0
- package/dist/packages/db/src/client.d.ts +11 -0
- package/dist/packages/db/src/client.js +14 -0
- package/dist/packages/db/src/index.d.ts +6 -0
- package/dist/packages/db/src/index.js +6 -0
- package/dist/packages/db/src/local-store.d.ts +161 -0
- package/dist/packages/db/src/local-store.js +623 -0
- package/dist/packages/db/src/migrate.d.ts +17 -0
- package/dist/packages/db/src/migrate.js +35 -0
- package/dist/packages/db/src/schema.d.ts +5 -0
- package/dist/packages/db/src/schema.js +120 -0
- package/dist/packages/db/src/sqlite-bin.d.ts +3 -0
- package/dist/packages/db/src/sqlite-bin.js +16 -0
- package/dist/packages/local-api/src/index.d.ts +2 -0
- package/dist/packages/local-api/src/index.js +2 -0
- package/dist/packages/local-api/src/server.d.ts +36 -0
- package/dist/packages/local-api/src/server.js +310 -0
- package/dist/packages/report/src/daily.d.ts +24 -0
- package/dist/packages/report/src/daily.js +9 -0
- package/dist/packages/report/src/index.d.ts +4 -0
- package/dist/packages/report/src/index.js +4 -0
- package/dist/packages/report/src/korean.d.ts +3 -0
- package/dist/packages/report/src/korean.js +62 -0
- package/dist/packages/report/src/slack.d.ts +34 -0
- package/dist/packages/report/src/slack.js +134 -0
- package/dist/packages/runtime/src/index.d.ts +2 -0
- package/dist/packages/runtime/src/index.js +2 -0
- package/dist/packages/runtime/src/runtime.d.ts +26 -0
- package/dist/packages/runtime/src/runtime.js +182 -0
- package/dist/packages/view-model/src/hud-model.d.ts +74 -0
- package/dist/packages/view-model/src/hud-model.js +295 -0
- package/dist/packages/view-model/src/index.d.ts +6 -0
- package/dist/packages/view-model/src/index.js +6 -0
- package/dist/packages/view-model/src/notification-preferences-model.d.ts +75 -0
- package/dist/packages/view-model/src/notification-preferences-model.js +400 -0
- package/dist/packages/view-model/src/notification-preferences.d.ts +6 -0
- package/dist/packages/view-model/src/notification-preferences.js +36 -0
- package/dist/packages/view-model/src/sync-state.d.ts +47 -0
- package/dist/packages/view-model/src/sync-state.js +140 -0
- package/dist/packages/view-model/src/usage-progress.d.ts +22 -0
- package/dist/packages/view-model/src/usage-progress.js +57 -0
- package/dist/packages/view-model/src/view-model.d.ts +215 -0
- package/dist/packages/view-model/src/view-model.js +826 -0
- package/package.json +40 -0
- package/scripts/postinstall.mjs +69 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createMoneySirenDbClient, type MoneySirenDbClient, type MoneySirenDbClientOptions, } from "./client.js";
|
|
2
|
+
export { getPendingMigrations, MIGRATIONS, runMigrations, type Migration, type MigrationExecutor, type MigrationRunResult, } from "./migrate.js";
|
|
3
|
+
export { INITIAL_SCHEMA_SQL, REQUIRED_TABLES, type RequiredTable } from "./schema.js";
|
|
4
|
+
export { resolveSqliteBin, SQLITE_BIN_ENV_KEY } from "./sqlite-bin.js";
|
|
5
|
+
export { initializeLocalStore, readLocalStore, recordLocalReportRun, saveLocalProviderCollection, type LocalAlertInput, type LocalAlertRecord, type LocalBillingSnapshotInput, type LocalBillingSnapshotRecord, type LocalCostEstimateInput, type LocalCostEstimateRecord, type LocalStore, type LocalStoreOptions, type LocalProviderCollectionInput, type LocalProviderRecord, type LocalReportRunInput, type LocalReportRunRecord, type LocalServiceHealthSnapshotInput, type LocalServiceHealthSnapshotRecord, type LocalUsageSnapshotInput, type LocalUsageSnapshotRecord, } from "./local-store.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createMoneySirenDbClient, } from "./client.js";
|
|
2
|
+
export { getPendingMigrations, MIGRATIONS, runMigrations, } from "./migrate.js";
|
|
3
|
+
export { INITIAL_SCHEMA_SQL, REQUIRED_TABLES } from "./schema.js";
|
|
4
|
+
export { resolveSqliteBin, SQLITE_BIN_ENV_KEY } from "./sqlite-bin.js";
|
|
5
|
+
export { initializeLocalStore, readLocalStore, recordLocalReportRun, saveLocalProviderCollection, } from "./local-store.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { type MigrationRunResult } from "./migrate.js";
|
|
2
|
+
export interface LocalProviderRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
connectorVersion: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
}
|
|
10
|
+
export interface LocalUsageSnapshotRecord {
|
|
11
|
+
id: string;
|
|
12
|
+
providerKey: string;
|
|
13
|
+
collectedAt: string;
|
|
14
|
+
service: string;
|
|
15
|
+
metric: string;
|
|
16
|
+
unit: string;
|
|
17
|
+
value: number;
|
|
18
|
+
providerAccountRef?: string;
|
|
19
|
+
metadataJson: Record<string, never>;
|
|
20
|
+
}
|
|
21
|
+
export interface LocalBillingSnapshotRecord {
|
|
22
|
+
id: string;
|
|
23
|
+
providerKey: string;
|
|
24
|
+
collectedAt: string;
|
|
25
|
+
periodStart: string;
|
|
26
|
+
periodEnd: string;
|
|
27
|
+
amountMinor: number;
|
|
28
|
+
currency: string;
|
|
29
|
+
status: string;
|
|
30
|
+
providerAccountRef?: string;
|
|
31
|
+
metadataJson: Record<string, never>;
|
|
32
|
+
}
|
|
33
|
+
export interface LocalServiceHealthSnapshotRecord {
|
|
34
|
+
id: string;
|
|
35
|
+
providerKey: string;
|
|
36
|
+
collectedAt: string;
|
|
37
|
+
service: string;
|
|
38
|
+
region?: string;
|
|
39
|
+
status: "ok" | "degraded" | "down" | "unknown";
|
|
40
|
+
message?: string;
|
|
41
|
+
metadataJson: Record<string, never>;
|
|
42
|
+
}
|
|
43
|
+
export interface LocalCostEstimateRecord {
|
|
44
|
+
id: string;
|
|
45
|
+
providerKey: string;
|
|
46
|
+
collectedAt: string;
|
|
47
|
+
periodStart: string;
|
|
48
|
+
periodEnd: string;
|
|
49
|
+
estimatedAmountMinor: number;
|
|
50
|
+
currency: string;
|
|
51
|
+
confidence: "low" | "medium" | "high";
|
|
52
|
+
providerAccountRef?: string;
|
|
53
|
+
metadataJson: Record<string, never>;
|
|
54
|
+
}
|
|
55
|
+
export interface LocalAlertRecord {
|
|
56
|
+
id: string;
|
|
57
|
+
providerKey?: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
severity: "info" | "warning" | "critical";
|
|
60
|
+
category: string;
|
|
61
|
+
title: string;
|
|
62
|
+
message: string;
|
|
63
|
+
metadataJson: Record<string, never>;
|
|
64
|
+
}
|
|
65
|
+
export interface LocalReportRunRecord {
|
|
66
|
+
id: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
reportDate: string;
|
|
69
|
+
language: "ko" | "en";
|
|
70
|
+
deliveryTarget: "stdout" | "local-file" | "slack";
|
|
71
|
+
status: "rendered" | "sent" | "error";
|
|
72
|
+
metadataJson: Record<string, never>;
|
|
73
|
+
}
|
|
74
|
+
export interface LocalStore {
|
|
75
|
+
appliedMigrationIds: string[];
|
|
76
|
+
providers: LocalProviderRecord[];
|
|
77
|
+
usageSnapshots: LocalUsageSnapshotRecord[];
|
|
78
|
+
billingSnapshots: LocalBillingSnapshotRecord[];
|
|
79
|
+
serviceHealthSnapshots: LocalServiceHealthSnapshotRecord[];
|
|
80
|
+
costEstimates: LocalCostEstimateRecord[];
|
|
81
|
+
alerts: LocalAlertRecord[];
|
|
82
|
+
reportRuns: LocalReportRunRecord[];
|
|
83
|
+
}
|
|
84
|
+
export interface LocalStoreOptions {
|
|
85
|
+
dbPath: string;
|
|
86
|
+
}
|
|
87
|
+
export interface LocalProviderCollectionInput {
|
|
88
|
+
dbPath: string;
|
|
89
|
+
provider: {
|
|
90
|
+
key: string;
|
|
91
|
+
displayName: string;
|
|
92
|
+
connectorVersion: string;
|
|
93
|
+
};
|
|
94
|
+
collectedAt: string;
|
|
95
|
+
status: "ok" | "partial" | "error";
|
|
96
|
+
snapshots: {
|
|
97
|
+
usage: readonly LocalUsageSnapshotInput[];
|
|
98
|
+
billing: readonly LocalBillingSnapshotInput[];
|
|
99
|
+
serviceHealth: readonly LocalServiceHealthSnapshotInput[];
|
|
100
|
+
costEstimates: readonly LocalCostEstimateInput[];
|
|
101
|
+
};
|
|
102
|
+
alerts: readonly LocalAlertInput[];
|
|
103
|
+
}
|
|
104
|
+
export interface LocalUsageSnapshotInput {
|
|
105
|
+
provider: string;
|
|
106
|
+
collectedAt: string;
|
|
107
|
+
service?: string;
|
|
108
|
+
metric: string;
|
|
109
|
+
unit: string;
|
|
110
|
+
value: number;
|
|
111
|
+
providerAccountRef?: string;
|
|
112
|
+
}
|
|
113
|
+
export interface LocalBillingSnapshotInput {
|
|
114
|
+
provider: string;
|
|
115
|
+
collectedAt: string;
|
|
116
|
+
periodStart: string;
|
|
117
|
+
periodEnd: string;
|
|
118
|
+
amountMinor: number;
|
|
119
|
+
currency: string;
|
|
120
|
+
status: string;
|
|
121
|
+
providerAccountRef?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface LocalServiceHealthSnapshotInput {
|
|
124
|
+
provider: string;
|
|
125
|
+
collectedAt: string;
|
|
126
|
+
service: string;
|
|
127
|
+
region?: string;
|
|
128
|
+
status: "ok" | "degraded" | "down" | "unknown";
|
|
129
|
+
message?: string;
|
|
130
|
+
}
|
|
131
|
+
export interface LocalCostEstimateInput {
|
|
132
|
+
provider: string;
|
|
133
|
+
collectedAt: string;
|
|
134
|
+
periodStart: string;
|
|
135
|
+
periodEnd: string;
|
|
136
|
+
estimatedAmountMinor: number;
|
|
137
|
+
currency: string;
|
|
138
|
+
confidence: "low" | "medium" | "high";
|
|
139
|
+
providerAccountRef?: string;
|
|
140
|
+
}
|
|
141
|
+
export interface LocalAlertInput {
|
|
142
|
+
provider?: string;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
severity: "info" | "warning" | "critical";
|
|
145
|
+
category: string;
|
|
146
|
+
title: string;
|
|
147
|
+
message: string;
|
|
148
|
+
}
|
|
149
|
+
export interface LocalReportRunInput {
|
|
150
|
+
dbPath: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
reportDate: string;
|
|
153
|
+
language: "ko" | "en";
|
|
154
|
+
deliveryTarget: "stdout" | "local-file" | "slack";
|
|
155
|
+
status: "rendered" | "sent" | "error";
|
|
156
|
+
}
|
|
157
|
+
export declare function initializeLocalStore(options: LocalStoreOptions): Promise<MigrationRunResult>;
|
|
158
|
+
export declare function readLocalStore(options: LocalStoreOptions): Promise<LocalStore>;
|
|
159
|
+
export declare function saveLocalProviderCollection(input: LocalProviderCollectionInput): Promise<void>;
|
|
160
|
+
export declare function recordLocalReportRun(input: LocalReportRunInput): Promise<void>;
|
|
161
|
+
//# sourceMappingURL=local-store.d.ts.map
|