@protoboardai/ext-docs 0.0.0-stage → 0.2.1
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 +202 -0
- package/NOTICE +18 -0
- package/README.md +78 -2
- package/evals/build-datasheet/case.json +147 -0
- package/fonts/KodeMono-Bold.ttf +0 -0
- package/fonts/KodeMono-Medium.ttf +0 -0
- package/fonts/KodeMono-Regular.ttf +0 -0
- package/fonts/KodeMono-SemiBold.ttf +0 -0
- package/fonts/OFL.txt +93 -0
- package/lib/blocks.ts +268 -0
- package/lib/bom.ts +126 -0
- package/lib/build.ts +202 -0
- package/lib/charts.ts +241 -0
- package/lib/context.ts +122 -0
- package/lib/derived.ts +181 -0
- package/lib/docs/assembly.ts +674 -0
- package/lib/docs/common.ts +81 -0
- package/lib/docs/datasheet.ts +875 -0
- package/lib/docs/product.ts +45 -0
- package/lib/figures.ts +195 -0
- package/lib/format.ts +221 -0
- package/lib/html.ts +135 -0
- package/lib/model.ts +312 -0
- package/lib/package/assembly.ts +268 -0
- package/lib/package/common.ts +109 -0
- package/lib/package/plan.ts +432 -0
- package/lib/package/spec.ts +203 -0
- package/lib/png.ts +91 -0
- package/lib/render/cdp.ts +5 -0
- package/lib/render/page/render.html +17 -0
- package/lib/render/page/render.js +390 -0
- package/lib/render/renderer.ts +161 -0
- package/lib/render/server.ts +105 -0
- package/lib/standin.ts +36 -0
- package/lib/standins/multirotor.ts +283 -0
- package/lib/templates/doc.css +247 -0
- package/lib/templates/flow.js +131 -0
- package/lib/testdata.ts +85 -0
- package/lib/types.ts +120 -0
- package/lib/values.ts +309 -0
- package/lib/verify.ts +276 -0
- package/ops/docs.ts +52 -0
- package/ops/package.ts +9 -0
- package/package.json +62 -4
- package/protoboard-extension.json +94 -0
- package/skills/uhd-tech-docs/SKILL.md +234 -0
- package/skills/uhd-tech-docs/references/docspec.md +56 -0
- package/skills/uhd-tech-docs/references/house-style.md +50 -0
- package/skills/uhd-tech-docs/references/style-study.md +270 -0
- package/skills/uhd-tech-docs/references/test-data.md +49 -0
- package/skills/uhd-tech-docs/references/value-queries.md +67 -0
- package/skills/uhd-tech-docs/templates/test-data.example.json +33 -0
- package/skills/uhd-tech-docs/templates/test-data.schema.json +213 -0
- package/skills/uhd-tech-docs-verify/SKILL.md +104 -0
- package/skills/uhd-tech-docs-verify/references/visual-review.md +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Protoboard Stack: @protoboardai/ext-docs
|
|
2
|
+
Copyright 2026 Delta Robotics, Inc.
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Delta Robotics, Inc.
|
|
5
|
+
(https://deltaroboticsinc.com).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
8
|
+
See the LICENSE file in this package for full terms.
|
|
9
|
+
|
|
10
|
+
"Protoboard", the Protoboard logo and the "0" mark are trademarks of
|
|
11
|
+
Delta Robotics, Inc. The License grants no rights to them (section 6);
|
|
12
|
+
see TRADEMARKS.md in the Protoboard Stack repository
|
|
13
|
+
(https://github.com/Delta-Robotics-Inc/protoboard-stack).
|
|
14
|
+
|
|
15
|
+
The Kode Mono font, Copyright 2023 The Kode Mono Project Authors
|
|
16
|
+
(https://github.com/isaozler/kode-mono), ships unmodified in fonts/ under
|
|
17
|
+
the SIL Open Font License 1.1 (fonts/OFL.txt). Documents use it for all
|
|
18
|
+
text, its Bold for display text.
|
package/README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @protoboardai/ext-docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Technical documents for a project's system: a datasheet and an assembly
|
|
4
|
+
guide, as HTML and PDF, in which every value is a query into the UHD model
|
|
5
|
+
(re-checked by the verifier), figures are rendered from the CAD artifacts
|
|
6
|
+
placed by `assemble()`, and stand-in test data carries a watermark until
|
|
7
|
+
measured data replaces it. Moved out of UHD, where it was
|
|
8
|
+
`scripts/docs` with the `uhd-tech-docs` skills and read a library system
|
|
9
|
+
folder; it now reads a Protoboard project.
|
|
10
|
+
|
|
11
|
+
| Kind | Id | What |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Operation | `tech-docs` (export; tool `chrome`) | Builds `docs/<system-id>-datasheet.*`, `-assembly-guide.*` (`.html`, `.pdf`, `.values.json`), `docs/<system-id>-bom.json`, `docs/images/`, `docs/test-data/`; inputs `only`, `pdf`, `standins` |
|
|
14
|
+
| Operation | `tech-docs-verify` (export; tools `chrome`, `poppler`) | Re-resolves every bound value; checks format, placeholders, stand-in marks, images, layout, typography, BOM, assembly coverage; writes `docs/.review/` |
|
|
15
|
+
| Operations | `package:spec`, `package:assembly` (pure) | Manufacturing Package sections (@protoboardai/ext-release), per unit: what is designed for the unit (boards, mechanical parts and cables from the providers' standard outputs, with figures), and the illustrated assembly guide |
|
|
16
|
+
| Skill | `uhd-tech-docs` | Writing the doc spec, value queries, figures, test data; verified by `uhd-tech-docs-verify` |
|
|
17
|
+
| Skill | `uhd-tech-docs-verify` | The automated checks and the visual review |
|
|
18
|
+
|
|
19
|
+
Inputs from the project: the root system and the definitions it uses, the
|
|
20
|
+
configured scenarios, `docs/docspec.ts` (a `DocConfig`, `import type {
|
|
21
|
+
DocConfig } from "@protoboardai/ext-docs"`), and each part's evidence
|
|
22
|
+
(`parts/evidence/<id>/`, or the evidence files a catalog revision vendored
|
|
23
|
+
into `parts/catalog/<id>/`). Artifact files resolve against each definition's
|
|
24
|
+
artifact base: the project, the `parts/catalog/<id>/` directory of a catalog
|
|
25
|
+
part, or (older package-vendored pins) that package (`lib/model.ts`).
|
|
26
|
+
|
|
27
|
+
Requirements: Google Chrome (`$CHROME` for another binary), poppler
|
|
28
|
+
(`pdfinfo`, `pdffonts`, `pdftoppm`), three.js (a dependency;
|
|
29
|
+
`$PROTOBOARD_THREE_DIR` overrides it). The documents' font, Kode Mono (SIL
|
|
30
|
+
Open Font License 1.1), ships in this package (`fonts/`, with `OFL.txt`), so
|
|
31
|
+
every machine renders the same documents; display text is Kode Mono Bold. A
|
|
32
|
+
file in a folder named by `$PROTOBOARD_DOC_FONTS` replaces the bundled one of
|
|
33
|
+
the same name. A body whose CAD file is not in the
|
|
34
|
+
checkout (vendor CAD whose redistribution is not cleared) is left out of the
|
|
35
|
+
assembly figures, shown as "CAD file not available" in the kit and as an
|
|
36
|
+
empty slot in a step's parts strip, never as a blank image.
|
|
37
|
+
|
|
38
|
+
Worked example: `examples/quadcopter-5in` (`docs/docspec.ts` and the built
|
|
39
|
+
documents). `test/docs.test.ts` checks that its committed documents are
|
|
40
|
+
current against the model, and runs the verifier when Chrome is present.
|
|
41
|
+
|
|
42
|
+
## In the Manufacturing Package
|
|
43
|
+
|
|
44
|
+
With @protoboardai/ext-release, `protoboard release` calls two sections of
|
|
45
|
+
this extension once per unit (`ops/package.ts`):
|
|
46
|
+
|
|
47
|
+
- **`package:assembly`**: the unit's assembly plan (`lib/package/plan.ts`,
|
|
48
|
+
exported as `@protoboardai/ext-docs/plan`): the doc spec's steps and the
|
|
49
|
+
automatic ones, scoped to the links the unit makes (a step split across
|
|
50
|
+
units says so; a board's nets are not steps). Each step gets its parts
|
|
51
|
+
with thumbnails and letters, an exploded line-art figure lettered like
|
|
52
|
+
them (or, for connections, the routed cables in the accent colour with the
|
|
53
|
+
camera fitted on them), generated actions, the connection table, torque,
|
|
54
|
+
tools, materials and the model's notes, merged when several cables say
|
|
55
|
+
the same. Before the steps: sub-units to bring, tools, materials, and the
|
|
56
|
+
kit (a sub-unit drawn as it arrives). After them: a coverage table. The
|
|
57
|
+
release's work order numbers the same steps as its operations. Steps that
|
|
58
|
+
must follow the bench test and configuration (a step that fits
|
|
59
|
+
propellers, or one the doc spec marks `after: "test"`) are planned last;
|
|
60
|
+
the work order runs the test before them. A unit named by module id and
|
|
61
|
+
built several times is planned once; where its builds differ in what the
|
|
62
|
+
parent sets (`spin`, `overrides`), a step that depends on it lists each
|
|
63
|
+
build (the propeller's hand at each position), and the plan reports the
|
|
64
|
+
differences (`builds`, `variants`).
|
|
65
|
+
- **`package:spec`**: each module of the unit a capability provider
|
|
66
|
+
designs: boards (layers, thickness, outline, placements by side, nets and
|
|
67
|
+
rails, edge), mechanical parts (material, size from the GLB, thickness,
|
|
68
|
+
volume and mass, pieces, interface features) with a figure, and cables in
|
|
69
|
+
one table with their routed shapes.
|
|
70
|
+
|
|
71
|
+
Figures are rendered by the release (`SectionContext.figure`), so this
|
|
72
|
+
extension never starts Chrome during a release. `test/package.test.ts`
|
|
73
|
+
checks both sections on the quadcopter with figures recorded, not rendered.
|
|
74
|
+
|
|
75
|
+
## Evals
|
|
76
|
+
|
|
77
|
+
`evals/build-datasheet`: build and verify the quadcopter's datasheet only,
|
|
78
|
+
and read two figures from it (needs Chrome and poppler). Run it with
|
|
79
|
+
`protoboard evals --extension docs`; see the [evals guide](../../docs/guides/evals.md).
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "protoboard.eval-case/v0",
|
|
3
|
+
"title": "Build and verify the quadcopter's datasheet",
|
|
4
|
+
"skills": [
|
|
5
|
+
"uhd-tech-docs",
|
|
6
|
+
"uhd-tech-docs-verify"
|
|
7
|
+
],
|
|
8
|
+
"tags": [
|
|
9
|
+
"documents"
|
|
10
|
+
],
|
|
11
|
+
"requires": [
|
|
12
|
+
"chrome",
|
|
13
|
+
"poppler"
|
|
14
|
+
],
|
|
15
|
+
"fixture": {
|
|
16
|
+
"from": "../../../../examples/quadcopter-5in",
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"note": "no datasheet yet",
|
|
20
|
+
"remove": "docs/quadcopter-5in-datasheet.html"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"remove": "docs/quadcopter-5in-datasheet.pdf"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"remove": "docs/quadcopter-5in-datasheet.values.json"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"instruction": "This quadcopter has no datasheet yet. Produce its datasheet (HTML and PDF in docs/), verified against the model, and tell me the all-up mass and the docId the datasheet states. Only the datasheet: leave the assembly guide as it is.",
|
|
31
|
+
"tools": {
|
|
32
|
+
"read": true,
|
|
33
|
+
"edit": true,
|
|
34
|
+
"commands": [
|
|
35
|
+
"npx protoboard *"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"budget": {
|
|
39
|
+
"turns": 20,
|
|
40
|
+
"seconds": 900,
|
|
41
|
+
"usd": 3
|
|
42
|
+
},
|
|
43
|
+
"graders": [
|
|
44
|
+
{
|
|
45
|
+
"id": "files",
|
|
46
|
+
"kind": "files",
|
|
47
|
+
"exist": [
|
|
48
|
+
"docs/quadcopter-5in-datasheet.html",
|
|
49
|
+
"docs/quadcopter-5in-datasheet.pdf",
|
|
50
|
+
"docs/quadcopter-5in-datasheet.values.json"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "pdf-complete",
|
|
55
|
+
"kind": "format",
|
|
56
|
+
"file": "docs/quadcopter-5in-datasheet.pdf",
|
|
57
|
+
"format": "pdf"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "verified",
|
|
61
|
+
"kind": "operation",
|
|
62
|
+
"run": [
|
|
63
|
+
"tech-docs-verify",
|
|
64
|
+
"--input",
|
|
65
|
+
"only=datasheet"
|
|
66
|
+
],
|
|
67
|
+
"status": "succeeded"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "bound-values",
|
|
71
|
+
"kind": "facts",
|
|
72
|
+
"file": "docs/quadcopter-5in-datasheet.values.json",
|
|
73
|
+
"facts": [
|
|
74
|
+
{
|
|
75
|
+
"path": "docId",
|
|
76
|
+
"equals": "UHD-QUAD5-DS"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "system",
|
|
80
|
+
"equals": "quadcopter-5in"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"path": "values[q=derived:mass.all_up].text",
|
|
84
|
+
"matches": "^587\\s*g$"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "values[q=derived:mass.all_up].status",
|
|
88
|
+
"equals": "assumption"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "values[q=derived:propulsion.thrust_full_total].text",
|
|
92
|
+
"matches": "^6\\.3\\s*kg$"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "answer",
|
|
98
|
+
"kind": "text",
|
|
99
|
+
"matches": [
|
|
100
|
+
"587\\s*g",
|
|
101
|
+
"UHD-QUAD5-DS"
|
|
102
|
+
],
|
|
103
|
+
"description": "the answer reads the figures from the document"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "assembly-guide-untouched",
|
|
107
|
+
"kind": "digest",
|
|
108
|
+
"file": "docs/quadcopter-5in-assembly-guide.pdf",
|
|
109
|
+
"changed": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "reads-well",
|
|
113
|
+
"kind": "rubric",
|
|
114
|
+
"files": [
|
|
115
|
+
"docs/quadcopter-5in-datasheet.values.json"
|
|
116
|
+
],
|
|
117
|
+
"rubric": "A datasheet's bound values for a 5-inch 6S quadcopter. 1. Every value has a status (source, derived, model, assumption, measured, stand-in, or gap: a value the model does not state, shown as the gap marker \u2014 and listed for the model's author, as the uhd-tech-docs skill requires instead of a typed value) and derived values name their formula and inputs. 2. The displayed values (`text`) carry units that are SI or conventional for the field (V, mAh, A, g, kg, mm); the `unit` metadata fields are written by the generator, not the agent. 3. No value is a placeholder (TBD, NaN, undefined, an empty string); a gap marker is not a placeholder. 4. Stand-in test data, if any, is labelled as such, not as measured. 5. Key figures a buyer needs are present: all-up mass, battery voltage and capacity, thrust, peak current."
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"solution": [
|
|
121
|
+
{
|
|
122
|
+
"protoboard": [
|
|
123
|
+
"run",
|
|
124
|
+
"tech-docs",
|
|
125
|
+
"--input",
|
|
126
|
+
"only=datasheet"
|
|
127
|
+
],
|
|
128
|
+
"expect": {
|
|
129
|
+
"status": "succeeded"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"protoboard": [
|
|
134
|
+
"run",
|
|
135
|
+
"tech-docs-verify",
|
|
136
|
+
"--input",
|
|
137
|
+
"only=datasheet"
|
|
138
|
+
],
|
|
139
|
+
"expect": {
|
|
140
|
+
"status": "succeeded"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"say": "Built docs/quadcopter-5in-datasheet.html and .pdf (docId UHD-QUAD5-DS) and verified them against the model: 0 errors. The datasheet states an all-up mass of 587 g."
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/fonts/OFL.txt
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2023 The Kode Mono Project Authors (https://github.com/isaozler/kode-mono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|