@orkestrel/brief 0.0.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 +21 -0
- package/README.md +47 -0
- package/dist/src/core/index.cjs +2219 -0
- package/dist/src/core/index.cjs.map +1 -0
- package/dist/src/core/index.d.cts +1911 -0
- package/dist/src/core/index.d.ts +1911 -0
- package/dist/src/core/index.js +2129 -0
- package/dist/src/core/index.js.map +1 -0
- package/package.json +92 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Orkestrel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @orkestrel/brief
|
|
2
|
+
|
|
3
|
+
A synchronous, deterministic specification compiler. A rough request compiles into a
|
|
4
|
+
`Brief` — a closed, JSON-serializable execution contract another agent can run with no
|
|
5
|
+
interpretation left to do — and every downstream artifact (the prompt a model reads, a
|
|
6
|
+
completion condition, a subagent dispatch) is projected from that one source of truth.
|
|
7
|
+
|
|
8
|
+
A brief with blocking gaps never emits. The readiness gate is a `@orkestrel/reason`
|
|
9
|
+
`LogicalDefinition`, so every verdict carries a traceable account of which check missed.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @orkestrel/brief
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import {
|
|
17
|
+
createBriefCompiler,
|
|
18
|
+
briefToGoal,
|
|
19
|
+
briefToMarkdown,
|
|
20
|
+
outcome,
|
|
21
|
+
proof,
|
|
22
|
+
task,
|
|
23
|
+
} from '@orkestrel/brief'
|
|
24
|
+
|
|
25
|
+
const compiler = createBriefCompiler()
|
|
26
|
+
const briefing = compiler.compile({
|
|
27
|
+
task: task('refactor', 'code', 'Refactor useForm to native browser form APIs.'),
|
|
28
|
+
outcomes: [outcome(1, 'useForm uses native FormData with no behavior change')],
|
|
29
|
+
proofs: [proof('type-check and lint pass', 'npm run check')],
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
if (briefing.brief !== undefined) {
|
|
33
|
+
briefToMarkdown(briefing.brief) // the copy-ready agent prompt
|
|
34
|
+
briefToGoal(briefing.brief) // the completion condition
|
|
35
|
+
}
|
|
36
|
+
compiler.destroy()
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Full documentation: [`guides/brief.md`](guides/brief.md). The guides index lives at
|
|
40
|
+
[`guides/README.md`](guides/README.md).
|
|
41
|
+
|
|
42
|
+
## Development
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npm install
|
|
46
|
+
npm test
|
|
47
|
+
```
|