fix: restore cli telemetry config handling in worktrees
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
85e6371cb6
commit
38833304d4
4 changed files with 19 additions and 6 deletions
|
|
@ -12,8 +12,7 @@ import type {
|
||||||
CompanyPortabilityPreviewResult,
|
CompanyPortabilityPreviewResult,
|
||||||
CompanyPortabilityImportResult,
|
CompanyPortabilityImportResult,
|
||||||
} from "@paperclipai/shared";
|
} from "@paperclipai/shared";
|
||||||
import { trackCompanyImported } from "@paperclipai/shared/telemetry";
|
import { getTelemetryClient, trackCompanyImported } from "../../telemetry.js";
|
||||||
import { getTelemetryClient } from "../../telemetry.js";
|
|
||||||
import { ApiRequestError } from "../../client/http.js";
|
import { ApiRequestError } from "../../client/http.js";
|
||||||
import { openUrl } from "../../client/board-auth.js";
|
import { openUrl } from "../../client/board-auth.js";
|
||||||
import { binaryContentTypeByExtension, readZipArchive } from "./zip.js";
|
import { binaryContentTypeByExtension, readZipArchive } from "./zip.js";
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,11 @@ import {
|
||||||
} from "../config/home.js";
|
} from "../config/home.js";
|
||||||
import { bootstrapCeoInvite } from "./auth-bootstrap-ceo.js";
|
import { bootstrapCeoInvite } from "./auth-bootstrap-ceo.js";
|
||||||
import { printPaperclipCliBanner } from "../utils/banner.js";
|
import { printPaperclipCliBanner } from "../utils/banner.js";
|
||||||
import { getTelemetryClient } from "../telemetry.js";
|
import {
|
||||||
import { trackInstallStarted, trackInstallCompleted } from "@paperclipai/shared/telemetry";
|
getTelemetryClient,
|
||||||
|
trackInstallStarted,
|
||||||
|
trackInstallCompleted,
|
||||||
|
} from "../telemetry.js";
|
||||||
|
|
||||||
type SetupMode = "quickstart" | "advanced";
|
type SetupMode = "quickstart" | "advanced";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ export {
|
||||||
loggingConfigSchema,
|
loggingConfigSchema,
|
||||||
serverConfigSchema,
|
serverConfigSchema,
|
||||||
authConfigSchema,
|
authConfigSchema,
|
||||||
|
telemetryConfigSchema,
|
||||||
storageConfigSchema,
|
storageConfigSchema,
|
||||||
storageLocalDiskConfigSchema,
|
storageLocalDiskConfigSchema,
|
||||||
storageS3ConfigSchema,
|
storageS3ConfigSchema,
|
||||||
|
|
@ -19,10 +20,11 @@ export {
|
||||||
type LoggingConfig,
|
type LoggingConfig,
|
||||||
type ServerConfig,
|
type ServerConfig,
|
||||||
type AuthConfig,
|
type AuthConfig,
|
||||||
|
type TelemetryConfig,
|
||||||
type StorageConfig,
|
type StorageConfig,
|
||||||
type StorageLocalDiskConfig,
|
type StorageLocalDiskConfig,
|
||||||
type StorageS3Config,
|
type StorageS3Config,
|
||||||
type SecretsConfig,
|
type SecretsConfig,
|
||||||
type SecretsLocalEncryptedConfig,
|
type SecretsLocalEncryptedConfig,
|
||||||
type ConfigMeta,
|
type ConfigMeta,
|
||||||
} from "@paperclipai/shared";
|
} from "../../../packages/shared/src/config-schema.js";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@ import {
|
||||||
TelemetryClient,
|
TelemetryClient,
|
||||||
resolveTelemetryConfig,
|
resolveTelemetryConfig,
|
||||||
loadOrCreateState,
|
loadOrCreateState,
|
||||||
} from "@paperclipai/shared/telemetry";
|
trackInstallStarted,
|
||||||
|
trackInstallCompleted,
|
||||||
|
trackCompanyImported,
|
||||||
|
} from "../../packages/shared/src/telemetry/index.js";
|
||||||
import { resolvePaperclipInstanceRoot } from "./config/home.js";
|
import { resolvePaperclipInstanceRoot } from "./config/home.js";
|
||||||
import { readConfig } from "./config/store.js";
|
import { readConfig } from "./config/store.js";
|
||||||
import { cliVersion } from "./version.js";
|
import { cliVersion } from "./version.js";
|
||||||
|
|
@ -38,3 +41,9 @@ export async function flushTelemetry(): Promise<void> {
|
||||||
await client.flush();
|
await client.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
trackInstallStarted,
|
||||||
|
trackInstallCompleted,
|
||||||
|
trackCompanyImported,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue