hackshop-mcp 0.0.3 → 0.0.5
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/README.md +88 -34
- package/catalog.json +1584 -25
- package/dist/build-plan/index.d.ts +10 -0
- package/dist/build-plan/index.js +550 -0
- package/dist/build-plan/index.js.map +1 -0
- package/dist/build-plan/types.d.ts +153 -0
- package/dist/build-plan/types.js +2 -0
- package/dist/build-plan/types.js.map +1 -0
- package/dist/catalog/schema.d.ts +523 -7
- package/dist/catalog/schema.js +49 -0
- package/dist/catalog/schema.js.map +1 -1
- package/dist/core/assess.d.ts +36 -0
- package/dist/core/assess.js +100 -0
- package/dist/core/assess.js.map +1 -0
- package/dist/core/errors.d.ts +2 -0
- package/dist/core/errors.js +70 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/links.d.ts +3 -0
- package/dist/core/links.js +19 -0
- package/dist/core/links.js.map +1 -0
- package/dist/core/plan-gadget.d.ts +85 -0
- package/dist/core/plan-gadget.js +619 -0
- package/dist/core/plan-gadget.js.map +1 -0
- package/dist/core/resources.d.ts +37 -0
- package/dist/core/resources.js +143 -0
- package/dist/core/resources.js.map +1 -0
- package/dist/core/safety.d.ts +7 -0
- package/dist/core/safety.js +28 -0
- package/dist/core/safety.js.map +1 -0
- package/dist/core/tools.d.ts +247 -0
- package/dist/core/tools.js +164 -0
- package/dist/core/tools.js.map +1 -0
- package/dist/core/types.d.ts +163 -0
- package/dist/core/types.js +17 -0
- package/dist/core/types.js.map +1 -0
- package/dist/platforms/index.d.ts +26 -0
- package/dist/platforms/index.js +52 -0
- package/dist/platforms/index.js.map +1 -0
- package/dist/platforms/load.d.ts +4 -0
- package/dist/platforms/load.js +78 -0
- package/dist/platforms/load.js.map +1 -0
- package/dist/platforms/schema.d.ts +587 -0
- package/dist/platforms/schema.js +64 -0
- package/dist/platforms/schema.js.map +1 -0
- package/dist/sampling.d.ts +5 -0
- package/dist/sampling.js +44 -21
- package/dist/sampling.js.map +1 -1
- package/dist/server.d.ts +14 -1
- package/dist/server.js +164 -40
- package/dist/server.js.map +1 -1
- package/dist/site-url.d.ts +1 -0
- package/dist/site-url.js +4 -0
- package/dist/site-url.js.map +1 -0
- package/dist/telemetry.d.ts +29 -0
- package/dist/telemetry.js +100 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/tools/assess_hackability.d.ts +2 -29
- package/dist/tools/assess_hackability.js +11 -43
- package/dist/tools/assess_hackability.js.map +1 -1
- package/dist/tools/get_build_plan.d.ts +6 -0
- package/dist/tools/get_build_plan.js +16 -0
- package/dist/tools/get_build_plan.js.map +1 -0
- package/dist/tools/plan_gadget.d.ts +4 -0
- package/dist/tools/plan_gadget.js +14 -0
- package/dist/tools/plan_gadget.js.map +1 -0
- package/dist/tools/propose_hardware.d.ts +5 -0
- package/dist/tools/propose_hardware.js +57 -8
- package/dist/tools/propose_hardware.js.map +1 -1
- package/dist/tools/simulate_assembly.d.ts +315 -0
- package/dist/tools/simulate_assembly.js +145 -0
- package/dist/tools/simulate_assembly.js.map +1 -0
- package/package.json +4 -1
- package/platforms.json +779 -0
- package/tags.md +1 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export type FeatureValue = boolean | string | number | null;
|
|
2
|
+
export interface DeviceEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
buy_url?: string;
|
|
6
|
+
firmware_links: string[];
|
|
7
|
+
est_used_price_usd_min?: number;
|
|
8
|
+
est_used_price_usd_max?: number;
|
|
9
|
+
est_setup_hours_min?: number;
|
|
10
|
+
est_setup_hours_max?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface PlatformBoardPart {
|
|
13
|
+
name: string;
|
|
14
|
+
qty: number;
|
|
15
|
+
required: boolean;
|
|
16
|
+
note: string;
|
|
17
|
+
buy_url?: string;
|
|
18
|
+
search?: string;
|
|
19
|
+
est_price_usd?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface PlatformBoard {
|
|
22
|
+
device_id: string;
|
|
23
|
+
support: "official" | "possible";
|
|
24
|
+
tier: string;
|
|
25
|
+
kind: string;
|
|
26
|
+
build: string;
|
|
27
|
+
eol?: boolean;
|
|
28
|
+
note: string;
|
|
29
|
+
features: Record<string, FeatureValue>;
|
|
30
|
+
parts: PlatformBoardPart[];
|
|
31
|
+
try_saying: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface Platform {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
homepage: string;
|
|
37
|
+
sdk_repo: string;
|
|
38
|
+
sdk_path: string;
|
|
39
|
+
docs_url: string;
|
|
40
|
+
toolchain: string;
|
|
41
|
+
setup_steps: string[];
|
|
42
|
+
tiers: Array<{
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
description: string;
|
|
46
|
+
}>;
|
|
47
|
+
caveats: string[];
|
|
48
|
+
terms: {
|
|
49
|
+
url: string;
|
|
50
|
+
summary: string;
|
|
51
|
+
max_devices_per_token: number;
|
|
52
|
+
selling_allowed: boolean;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface Printable {
|
|
56
|
+
part: "desk-stand" | "enclosure";
|
|
57
|
+
title: string;
|
|
58
|
+
stl_url: string;
|
|
59
|
+
step_url: string;
|
|
60
|
+
svg_url: string;
|
|
61
|
+
fab_url: string;
|
|
62
|
+
fab?: {
|
|
63
|
+
print?: {
|
|
64
|
+
orientation?: string;
|
|
65
|
+
supports?: boolean;
|
|
66
|
+
material?: string;
|
|
67
|
+
layer_mm?: number;
|
|
68
|
+
infill_pct?: number;
|
|
69
|
+
};
|
|
70
|
+
params?: {
|
|
71
|
+
clearance?: number;
|
|
72
|
+
cable_d?: number;
|
|
73
|
+
plug_overmold?: number[];
|
|
74
|
+
tilt_deg?: number;
|
|
75
|
+
};
|
|
76
|
+
checks?: Record<string, boolean | null>;
|
|
77
|
+
caveats?: string[];
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export interface BuildPlanPart {
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
qty: number;
|
|
84
|
+
required: boolean;
|
|
85
|
+
note: string;
|
|
86
|
+
buy_url: string | null;
|
|
87
|
+
search_url: string | null;
|
|
88
|
+
kind: "board" | "part" | "printed";
|
|
89
|
+
est_price_usd: number | null;
|
|
90
|
+
}
|
|
91
|
+
export interface BuildPlanStep {
|
|
92
|
+
id: string;
|
|
93
|
+
title: string;
|
|
94
|
+
why: string;
|
|
95
|
+
body_md: string;
|
|
96
|
+
commands: string[];
|
|
97
|
+
links: Array<{
|
|
98
|
+
label: string;
|
|
99
|
+
url: string;
|
|
100
|
+
}>;
|
|
101
|
+
}
|
|
102
|
+
export interface AssemblyStep {
|
|
103
|
+
id: string;
|
|
104
|
+
order: number;
|
|
105
|
+
action: "print" | "place" | "insert" | "connect" | "route_cable" | "fasten" | "power" | "flash" | "pair" | "verify";
|
|
106
|
+
part_ids: string[];
|
|
107
|
+
tools: string[];
|
|
108
|
+
instruction: string;
|
|
109
|
+
check: string;
|
|
110
|
+
robot: {
|
|
111
|
+
feasible: boolean;
|
|
112
|
+
notes: string;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export interface ShoppingList {
|
|
116
|
+
items: Array<{
|
|
117
|
+
part_id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
qty: number;
|
|
120
|
+
url: string | null;
|
|
121
|
+
url_kind: "buy" | "search";
|
|
122
|
+
est_price_usd: number | null;
|
|
123
|
+
required: boolean;
|
|
124
|
+
}>;
|
|
125
|
+
est_total_usd: number | null;
|
|
126
|
+
currency: "USD";
|
|
127
|
+
purchase_policy: string;
|
|
128
|
+
}
|
|
129
|
+
export interface BuildPlan {
|
|
130
|
+
device_id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
platform_id: string | null;
|
|
133
|
+
tier_label: string | null;
|
|
134
|
+
summary: string;
|
|
135
|
+
est_cost_label: string | null;
|
|
136
|
+
est_time_label: string | null;
|
|
137
|
+
parts: BuildPlanPart[];
|
|
138
|
+
shopping_list: ShoppingList;
|
|
139
|
+
steps: BuildPlanStep[];
|
|
140
|
+
assembly: AssemblyStep[];
|
|
141
|
+
try_saying: string[];
|
|
142
|
+
caveats: string[];
|
|
143
|
+
terms: {
|
|
144
|
+
summary: string;
|
|
145
|
+
url: string;
|
|
146
|
+
} | null;
|
|
147
|
+
agent_brief_md: string;
|
|
148
|
+
urls: {
|
|
149
|
+
build_page: string;
|
|
150
|
+
build_md: string;
|
|
151
|
+
muse_page: string | null;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/build-plan/types.ts"],"names":[],"mappings":""}
|