Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

80 lines
2.9 KiB
TypeScript

import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'
import { StepDefinition } from '../steps'
interface LibraryDocsOptions {
title: string
guidance: string
docsLink: string
code?: string
language?: string
}
const createLibraryDocsSteps =
(options: LibraryDocsOptions) =>
(ctx: OnboardingComponentsContext): StepDefinition[] => {
const { CodeBlock, Markdown, dedent } = ctx
return [
{
title: options.title,
badge: 'required',
content: (
<>
<Markdown>
{dedent`
${options.guidance}
[Open the SDK documentation](${options.docsLink}) for installation and configuration details.
`}
</Markdown>
{options.code && options.language ? (
<CodeBlock language={options.language} code={dedent(options.code)} />
) : null}
</>
),
},
]
}
export const JavaErrorTrackingInstallation = createInstallation(
createLibraryDocsSteps({
title: 'Capture Java exceptions',
guidance:
'The Java server SDK supports manual exception capture. It does not install an uncaught-exception handler, so call `captureException` from your application or framework error handler.',
docsLink: 'https://hanzo.ai/docs/libraries/java#request-context',
language: 'java',
code: 'insights.captureException(error);',
})
)
export const KMPErrorTrackingInstallation = createInstallation(
createLibraryDocsSteps({
title: 'Capture Kotlin Multiplatform exceptions',
guidance:
'The Kotlin Multiplatform SDK supports handled exceptions through `Insights.captureException`. The shared KMP API does not currently enable automatic exception capture.',
docsLink: 'https://hanzo.ai/docs/libraries/kmp#error-tracking',
language: 'kotlin',
code: `try {
riskyOperation()
} catch (error: Exception) {
Insights.captureException(error)
}`,
})
)
export const ConvexErrorTrackingInstallation = createInstallation(
createLibraryDocsSteps({
title: 'Capture Convex exceptions',
guidance:
"Configure Convex's first-party Insights Error Tracking destination to capture uncaught exceptions automatically. Convex exception reporting currently requires a Convex Pro plan. Use `captureException` for handled errors that need custom properties.",
docsLink: 'https://hanzo.ai/docs/libraries/convex#6-capture-exceptions-with-custom-properties',
language: 'typescript',
code: `await insights.captureException(ctx, {
error,
distinctId: userId,
additionalProperties: { flow: "checkout" },
})`,
})
)