-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
79 lines (59 loc) · 2.51 KB
/
Copy pathconfig.py
File metadata and controls
79 lines (59 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""Project-wide constants for the `dlthub-start` CLI."""
from __future__ import annotations
from dataclasses import dataclass
from importlib.metadata import PackageNotFoundError, version
DISTRIBUTION_NAME = "dlthub-start"
try:
VERSION = version(DISTRIBUTION_NAME)
except PackageNotFoundError:
VERSION = "0.0.0+unknown"
POSTHOG_HOST = "https://eu.i.posthog.com"
GITHUB_ORG = "dlt-hub"
# dltHub brand palette; rich styles across the CLI reference these.
COLOR_CYAN = "#59C1D5"
COLOR_LIME = "#C6D300"
COLOR_AMBER = "#E0A500"
AGENTS = ("claude", "codex", "cursor")
AGENT_LAUNCH_COMMANDS = {
"claude": ("claude",),
"codex": ("codex",),
}
# Per-agent skills directory, relative to the workspace root (validated against the
# generated scaffold in test_config). Used to show where the entry skill lives.
AGENT_SKILLS_DIR = {
"claude": ".claude/skills",
"codex": ".agents/skills",
"cursor": ".cursor/skills",
}
# Name of the platform workspace the first pipeline run binds the project to.
# A binding only (no destination) — the warehouse still comes from the profile.
# Adjust here to rename it everywhere (CLI command + user-facing messages).
PLAYGROUND_WORKSPACE = "playground"
TOOLKITS = ("one-shot",)
# Workflow entry skill of the one-shot toolkit. The non-TTY handoff points the calling
# agent at it; test_config asserts it exists in the generated scaffold so it can't drift.
ONE_SHOT_ENTRY_SKILL = "deploy-run-sample-pipeline"
# The dltHub AI workbench repo that `make generate-ai` / `make update-ai` pull from.
WORKBENCH_REPO_NAME = "dlthub-ai-workbench"
WORKBENCH_REPO = f"https://github.com/{GITHUB_ORG}/{WORKBENCH_REPO_NAME}.git"
# Pinned commit of dlt-hub/dlthub-ai-workbench that `make generate-ai` fetches.
# Setting a SHA keeps generation reproducible across machines and over time:
# CI's `check-ai` step compares the committed scaffold against whatever this
# ref produces, so any drift becomes a deliberate two-line PR (bump SHA +
# commit regenerated scaffold).
#
# To bump: pick a new SHA (the workbench repo has no tags today), update the
# constant below, run `make generate-ai`, commit the resulting scaffold diff
# alongside this change.
WORKBENCH_REF: str | None = "e82e1029ca56512631d4e7133f5d3b7186f54965"
@dataclass(frozen=True)
class RecommendedPath:
"""The path we recommend new users follow. Also the path `--setup-only` runs."""
scaffold: str
install_uv: bool
agent: str
RECOMMENDED = RecommendedPath(
scaffold="minimal_workspace",
install_uv=True,
agent="claude",
)