human-to-code 0.1.27 → 0.1.28
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 +56 -36
- package/dist/agents/direct/file-memory.d.ts.map +1 -1
- package/dist/agents/direct/file-memory.js +70 -1
- package/dist/agents/direct/file-memory.js.map +1 -1
- package/dist/agents/direct/generation-client.d.ts +10 -0
- package/dist/agents/direct/generation-client.d.ts.map +1 -1
- package/dist/agents/direct/generation-client.js +19 -0
- package/dist/agents/direct/generation-client.js.map +1 -1
- package/dist/agents/direct/index.d.ts +3 -0
- package/dist/agents/direct/index.d.ts.map +1 -1
- package/dist/agents/direct/index.js +3 -0
- package/dist/agents/direct/index.js.map +1 -1
- package/dist/agents/direct/presentation.d.ts +20 -0
- package/dist/agents/direct/presentation.d.ts.map +1 -1
- package/dist/agents/direct/presentation.js +33 -3
- package/dist/agents/direct/presentation.js.map +1 -1
- package/dist/agents/direct/project-blueprint.d.ts +29 -0
- package/dist/agents/direct/project-blueprint.d.ts.map +1 -0
- package/dist/agents/direct/project-blueprint.js +170 -0
- package/dist/agents/direct/project-blueprint.js.map +1 -0
- package/dist/agents/direct/project-contracts.d.ts +34 -0
- package/dist/agents/direct/project-contracts.d.ts.map +1 -1
- package/dist/agents/direct/project-contracts.js +59 -42
- package/dist/agents/direct/project-contracts.js.map +1 -1
- package/dist/agents/direct/project-memory.d.ts +6 -0
- package/dist/agents/direct/project-memory.d.ts.map +1 -1
- package/dist/agents/direct/project-memory.js +20 -0
- package/dist/agents/direct/project-memory.js.map +1 -1
- package/dist/agents/direct/reference-validation.d.ts +55 -0
- package/dist/agents/direct/reference-validation.d.ts.map +1 -0
- package/dist/agents/direct/reference-validation.js +415 -0
- package/dist/agents/direct/reference-validation.js.map +1 -0
- package/dist/agents/direct/types.d.ts +45 -0
- package/dist/agents/direct/types.d.ts.map +1 -1
- package/dist/agents/direct/unit-todos.d.ts +51 -0
- package/dist/agents/direct/unit-todos.d.ts.map +1 -0
- package/dist/agents/direct/unit-todos.js +223 -0
- package/dist/agents/direct/unit-todos.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +147 -10
- package/dist/cli.js.map +1 -1
- package/dist/config/config.d.ts +22 -1
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +40 -6
- package/dist/config/config.js.map +1 -1
- package/dist/prompts/direct-blueprint.d.ts +19 -0
- package/dist/prompts/direct-blueprint.d.ts.map +1 -0
- package/dist/prompts/direct-blueprint.js +49 -0
- package/dist/prompts/direct-blueprint.js.map +1 -0
- package/dist/prompts/direct-conversion.d.ts +8 -0
- package/dist/prompts/direct-conversion.d.ts.map +1 -1
- package/dist/prompts/direct-conversion.js +26 -0
- package/dist/prompts/direct-conversion.js.map +1 -1
- package/dist/prompts/direct-todos.d.ts +17 -0
- package/dist/prompts/direct-todos.d.ts.map +1 -0
- package/dist/prompts/direct-todos.js +43 -0
- package/dist/prompts/direct-todos.js.map +1 -0
- package/dist/prompts/index.d.ts +2 -0
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +2 -0
- package/dist/prompts/index.js.map +1 -1
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/provider.js +3 -1
- package/dist/providers/provider.js.map +1 -1
- package/docs/ARCHITECTURE.md +23 -6
- package/docs/CONFIGURATION.md +251 -0
- package/docs/MODULES.md +5 -2
- package/package.json +1 -1
package/docs/MODULES.md
CHANGED
|
@@ -95,11 +95,14 @@ accept typed, already-reviewed data and perform no I/O or mutation.
|
|
|
95
95
|
| `candidate-overlay.ts` | In-memory candidate overlay combining whole-file outputs and inline replacements for staged validation; the working tree stays unchanged and stale or conflicting units are excluded fail-closed. |
|
|
96
96
|
| `program-diagnostics.ts` | Combined TypeScript Compiler API validation over the candidate overlay: TypeScript is checked semantically; JavaScript follows explicit project `checkJs` or file `@ts-check` policy. Includes an overlay-aware compiler host, bundled `node:` typings, and multiplicity/location-aware baseline comparison. |
|
|
97
97
|
| `dependency-graph.ts` | Resolved-import dependency grouping of candidate files and bounded diagnostic-to-unit attribution; diagnostics that cannot be safely attributed fail the whole staged batch. |
|
|
98
|
-
| `integration-validation.ts` |
|
|
98
|
+
| `integration-validation.ts` | Cross-language audit orchestration (on by default). It groups generated files using structured ProjectMemory relationships, validates exact audit JSON against real group paths, permits one repair per named target, verifies once, and rejects unresolved groups. Large components are split into bounded relationship neighborhoods. |
|
|
99
|
+
| `project-blueprint.ts` | The shared contract agreed once per run before any file is generated: strict bounded parser for the planning JSON, plus per-target rendering. Every path is checked against real planned targets; a credential-bearing blueprint is discarded. |
|
|
100
|
+
| `unit-todos.ts` | Per-unit todo parsing, the deterministic `todoCoverage` check, and the `contractRegression` ratchet that discards a refinement unless it preserves everything the previous pass produced. |
|
|
101
|
+
| `reference-validation.ts` | Deterministic cross-file reference checking over generated HTML/CSS/JS with zero model requests: missing script selectors and assets are blocking; markup/stylesheet naming drift is advisory. Includes a CSS rule scanner and specificity comparator. |
|
|
99
102
|
| `staged-validation.ts` | Orchestrates overlay build, combined program validation, group rejection, and the bounded per-unit repair budget (secret-scanned repair context, injected repair callback). Produces per-unit accept/reject results for the CLI. |
|
|
100
103
|
| `file-memory.ts` | Ephemeral declaration memory, replacement normalization, candidate-validation retry isolation, and sequential per-file generation. |
|
|
101
104
|
| `project-memory.ts` | Ephemeral codebase context for direct generation. Stores current and projected path inventories, planned source-to-output mappings, target-relative companion/asset paths, language package-module guidance, and secret-aware compact contracts. Renders a deterministic bounded subset per target and learns accepted candidate contracts for later generation/repair requests; it never executes source or persists a cache. |
|
|
102
|
-
| `project-contracts.ts` | Static language-aware summarizers used by ProjectMemory: imports/includes/declarations, HTML references/ids/classes/elements/inline handler calls/control labels, CSS imports/URLs/custom properties/selectors, JavaScript DOM selectors, and limited package metadata. Credential-bearing content produces no contract. |
|
|
105
|
+
| `project-contracts.ts` | Static language-aware summarizers used by ProjectMemory and by cross-file reference checking. Exposes structured `htmlFacts`/`cssFacts`/`javaScriptFacts` with the `*Contract` renderers formatting over them — one parser, two consumers. Extracts: imports/includes/declarations, HTML references/ids/classes/elements/inline handler calls/control labels, CSS imports/URLs/custom properties/selectors, JavaScript DOM selectors, and limited package metadata. Credential-bearing content produces no contract. |
|
|
103
106
|
| `language-relationships.ts` | Declarative/extensible language relationship profiles for scripts/modules, Python, Rust, Go, Java, C/C++, C#, Ruby, HTML/CSS/assets, and same-language fallbacks. Integration orchestration consumes only their structured role/path/reference output. |
|
|
104
107
|
| `generation-client.ts` | Direct provider requests through OpenAI-compatible chat or Ollama: one conversion request per unit plus optional bounded integration and compiler-repair requests, always using the central prompt builders. |
|
|
105
108
|
| `presentation.ts` | Stable conversion receipt and unambiguous single-code-block extraction; rejects multiple or unterminated fences. |
|