@dtmd/temper 0.0.1 → 0.0.2
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/dist/src/builtins.d.ts +3 -2
- package/dist/src/builtins.js +3 -2
- package/dist/src/claude-code.d.ts +13 -0
- package/dist/src/claude-code.js +12 -0
- package/dist/src/index.d.ts +11 -9
- package/dist/src/index.js +11 -8
- package/package.json +11 -1
package/dist/src/builtins.d.ts
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* (ownership not privilege). Their five facts are external facts about the Claude
|
|
6
6
|
* Code harness, cited at the point of claim.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* (`50-distribution.md
|
|
8
|
+
* These are the SDK's own provider-face exports, surfaced through the
|
|
9
|
+
* `@dtmd/temper/claude-code` subpath (`50-distribution.md`, "Decision: one SDK
|
|
10
|
+
* package — the provider face is a subpath export") — never from the root.
|
|
10
11
|
*/
|
|
11
12
|
import type { KindDefinition } from "./kind.js";
|
|
12
13
|
import type { Prose } from "./prose.js";
|
package/dist/src/builtins.js
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* (ownership not privilege). Their five facts are external facts about the Claude
|
|
6
6
|
* Code harness, cited at the point of claim.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* (`50-distribution.md
|
|
8
|
+
* These are the SDK's own provider-face exports, surfaced through the
|
|
9
|
+
* `@dtmd/temper/claude-code` subpath (`50-distribution.md`, "Decision: one SDK
|
|
10
|
+
* package — the provider face is a subpath export") — never from the root.
|
|
10
11
|
*/
|
|
11
12
|
import { kind } from "./kind.js";
|
|
12
13
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@dtmd/temper/claude-code` subpath — the first-party Claude Code
|
|
3
|
+
* provider face (`specs/architecture/50-distribution.md`, "Decision: one SDK
|
|
4
|
+
* package — the provider face is a subpath export"). A harness author who
|
|
5
|
+
* targets Claude Code imports the built-in kinds from here, never the root:
|
|
6
|
+
* the root carries only the six-noun core, and identity travels by import
|
|
7
|
+
* (`specs/architecture/15-kinds.md`), so a subpath specifier is a full module
|
|
8
|
+
* specifier like any other. The built-in floors (exported clause arrays) join
|
|
9
|
+
* this entry when they are authored in `sdk/src`; today only the three kinds
|
|
10
|
+
* exist.
|
|
11
|
+
*/
|
|
12
|
+
export type { Memory, Rule, Skill } from "./builtins.js";
|
|
13
|
+
export { memory, rule, skill } from "./builtins.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `@dtmd/temper/claude-code` subpath — the first-party Claude Code
|
|
3
|
+
* provider face (`specs/architecture/50-distribution.md`, "Decision: one SDK
|
|
4
|
+
* package — the provider face is a subpath export"). A harness author who
|
|
5
|
+
* targets Claude Code imports the built-in kinds from here, never the root:
|
|
6
|
+
* the root carries only the six-noun core, and identity travels by import
|
|
7
|
+
* (`specs/architecture/15-kinds.md`), so a subpath specifier is a full module
|
|
8
|
+
* specifier like any other. The built-in floors (exported clause arrays) join
|
|
9
|
+
* this entry when they are authored in `sdk/src`; today only the three kinds
|
|
10
|
+
* exist.
|
|
11
|
+
*/
|
|
12
|
+
export { memory, rule, skill } from "./builtins.js";
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* temper's authoring face — the six-noun
|
|
2
|
+
* temper's authoring face — the six-noun core as a typed module library
|
|
3
3
|
* (`specs/intent/00-intent.md`, the SDK Decision; `specs/architecture/20-surface.md`).
|
|
4
|
-
* A harness author imports plain nouns —
|
|
5
|
-
* clause and requirement constructors, `needs`, and the three
|
|
6
|
-
* and composes members as typed values. `emit` compiles the
|
|
7
|
-
* declaration rows the engine reads, a byte-faithful projection,
|
|
8
|
-
* every type erases at the seam, and Turing-completeness stays
|
|
9
|
-
* authoring time.
|
|
4
|
+
* A harness author imports plain nouns — `harness()`, the generic `kind`/`genre`
|
|
5
|
+
* constructors, the clause and requirement constructors, `needs`, and the three
|
|
6
|
+
* prose constructors — and composes members as typed values. `emit` compiles the
|
|
7
|
+
* whole into the declaration rows the engine reads, a byte-faithful projection,
|
|
8
|
+
* and the lock; every type erases at the seam, and Turing-completeness stays
|
|
9
|
+
* quarantined at authoring time.
|
|
10
|
+
*
|
|
11
|
+
* The first-party Claude Code provider face — the built-in `skill`/`rule`/
|
|
12
|
+
* `memory` kinds — lives at the `./claude-code` subpath, never here
|
|
13
|
+
* (`specs/architecture/50-distribution.md`, "Decision: one SDK package").
|
|
10
14
|
*/
|
|
11
15
|
export type { Blocks, File, Mention, Mentionable, Prose, Text } from "./prose.js";
|
|
12
16
|
export { blocks, file, renderText, text } from "./prose.js";
|
|
@@ -18,8 +22,6 @@ export type { Clause, Predicate, Requirement, Severity } from "./contract.js";
|
|
|
18
22
|
export { allowedChars, clause, forbiddenKeys, maxLen, maxLines, minLen, nameMatchesDir, required, requireSections, requirement, type, } from "./contract.js";
|
|
19
23
|
export type { EdgeField, Format, KindDefinition, KindFacts, Locus, Member, MemberInit, Registration, UnitShape, } from "./kind.js";
|
|
20
24
|
export { genre, kind } from "./kind.js";
|
|
21
|
-
export type { Memory, Rule, Skill } from "./builtins.js";
|
|
22
|
-
export { memory, rule, skill } from "./builtins.js";
|
|
23
25
|
export type { ExpectBinding, Harness } from "./assembly.js";
|
|
24
26
|
export { harness } from "./assembly.js";
|
|
25
27
|
export type { AssemblyFactRow, ClauseRow, Declarations, KindFactRow, RequirementRow, } from "./declarations.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* temper's authoring face — the six-noun
|
|
2
|
+
* temper's authoring face — the six-noun core as a typed module library
|
|
3
3
|
* (`specs/intent/00-intent.md`, the SDK Decision; `specs/architecture/20-surface.md`).
|
|
4
|
-
* A harness author imports plain nouns —
|
|
5
|
-
* clause and requirement constructors, `needs`, and the three
|
|
6
|
-
* and composes members as typed values. `emit` compiles the
|
|
7
|
-
* declaration rows the engine reads, a byte-faithful projection,
|
|
8
|
-
* every type erases at the seam, and Turing-completeness stays
|
|
9
|
-
* authoring time.
|
|
4
|
+
* A harness author imports plain nouns — `harness()`, the generic `kind`/`genre`
|
|
5
|
+
* constructors, the clause and requirement constructors, `needs`, and the three
|
|
6
|
+
* prose constructors — and composes members as typed values. `emit` compiles the
|
|
7
|
+
* whole into the declaration rows the engine reads, a byte-faithful projection,
|
|
8
|
+
* and the lock; every type erases at the seam, and Turing-completeness stays
|
|
9
|
+
* quarantined at authoring time.
|
|
10
|
+
*
|
|
11
|
+
* The first-party Claude Code provider face — the built-in `skill`/`rule`/
|
|
12
|
+
* `memory` kinds — lives at the `./claude-code` subpath, never here
|
|
13
|
+
* (`specs/architecture/50-distribution.md`, "Decision: one SDK package").
|
|
10
14
|
*/
|
|
11
15
|
export { blocks, file, renderText, text } from "./prose.js";
|
|
12
16
|
export { bound, decision, genreValue, law } from "./genres.js";
|
|
13
17
|
export { bash, capability, permissionUnion } from "./needs.js";
|
|
14
18
|
export { allowedChars, clause, forbiddenKeys, maxLen, maxLines, minLen, nameMatchesDir, required, requireSections, requirement, type, } from "./contract.js";
|
|
15
19
|
export { genre, kind } from "./kind.js";
|
|
16
|
-
export { memory, rule, skill } from "./builtins.js";
|
|
17
20
|
export { harness } from "./assembly.js";
|
|
18
21
|
export { SEAM_VERSION, compileDeclarations, declarationsToJson } from "./declarations.js";
|
|
19
22
|
export { placementLines, projectBytes, projectMember, projectionPath, renderField } from "./project.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtmd/temper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "The temper authoring face — the six-noun model as typed modules: harness(), kind<T>(), clause values, needs, and file()/text/blocks(). Emit compiles to the declaration rows the engine reads, a byte-faithful projection, and the lock.",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"main": "./dist/src/index.js",
|
|
22
22
|
"types": "./dist/src/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/src/index.d.ts",
|
|
26
|
+
"default": "./dist/src/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./claude-code": {
|
|
29
|
+
"types": "./dist/src/claude-code.d.ts",
|
|
30
|
+
"default": "./dist/src/claude-code.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
23
33
|
"files": [
|
|
24
34
|
"dist/src",
|
|
25
35
|
"README.md"
|