@danypops/papyrus 0.58.1 → 0.58.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/package.json
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cross-domain artifact name/id resolution and workflow-run narrative building, split out of
|
|
3
|
-
* handlers/shared.ts as part of a SOLID-audit-driven decomposition (see Doc "Modularity playbook:
|
|
4
|
-
* building-block-shaped TypeScript modules for papyrus/pi-papyrus" and the "handlers/shared.ts
|
|
5
|
-
* split" child of "Epic: Modularize papyrus/pi-papyrus god-files into building-block modules").
|
|
6
|
-
*/
|
|
1
|
+
/** Cross-domain artifact name/id resolution and workflow-run narrative building. */
|
|
7
2
|
import { type VehicleContentBlock, VehicleError } from "@danypops/vehicle-core";
|
|
8
3
|
import type { Artifact } from "../artifact/artifact.ts";
|
|
9
4
|
import type { ArtifactStore } from "../artifact/artifact-store.ts";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generic, domain-agnostic operation-input schema DSL
|
|
3
|
-
* a
|
|
4
|
-
*
|
|
5
|
-
* Modularize papyrus/pi-papyrus god-files into building-block modules"). Nothing here references
|
|
6
|
-
* a specific Papyrus domain (tasks/docs/rules/...) -- a real candidate to eventually become its
|
|
7
|
-
* own building block other Vehicle-backed daemons could reuse directly.
|
|
2
|
+
* Generic, domain-agnostic operation-input schema DSL. Nothing here references a specific
|
|
3
|
+
* Papyrus domain (tasks/docs/rules/...) -- a real candidate to eventually become its own building
|
|
4
|
+
* block other Vehicle-backed daemons could reuse directly.
|
|
8
5
|
*/
|
|
9
6
|
import {
|
|
10
7
|
defineVehicleSchema,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vehicle-operation-definer DSL (createOperationDefiner) and the paired add/remove mutation shape
|
|
3
|
-
* built on top of it (definePairedMutation), split out of handlers/shared.ts as part of a
|
|
4
|
-
* SOLID-audit-driven decomposition (see Doc "Modularity playbook: building-block-shaped
|
|
5
|
-
* TypeScript modules for papyrus/pi-papyrus" and the "handlers/shared.ts split" child of "Epic:
|
|
6
|
-
* Modularize papyrus/pi-papyrus god-files into building-block modules").
|
|
7
|
-
*/
|
|
1
|
+
/** Vehicle-operation-definer DSL (createOperationDefiner) and the paired add/remove mutation shape built on top of it (definePairedMutation). */
|
|
8
2
|
import { bindVehicleOperation, defineVehicleOperation, type VehicleLimits, type VehicleOperationContext } from "@danypops/vehicle-core";
|
|
9
3
|
import type { VehicleRegistry } from "@danypops/vehicle-server";
|
|
10
4
|
import { looseObjectSchema, passthroughOutput } from "./operation-schema.ts";
|
package/src/handlers/shared.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Barrel re-exporting the shared schema helpers and name->id resolution used by every per-domain
|
|
3
|
-
* VehicleRegistry projection (
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* The real implementation now lives in four focused sibling modules instead of one 435-line file
|
|
11
|
-
* mixing four unrelated concerns -- see Doc "Modularity playbook: building-block-shaped
|
|
12
|
-
* TypeScript modules for papyrus/pi-papyrus" and the "handlers/shared.ts split" child of "Epic:
|
|
13
|
-
* Modularize papyrus/pi-papyrus god-files into building-block modules":
|
|
14
|
-
* - operation-schema.ts: generic, domain-agnostic operation-input schema DSL
|
|
15
|
-
* - paired-mutation.ts: the Vehicle-operation-definer DSL and the paired add/remove shape built on it
|
|
16
|
-
* - task-classifiers.ts: business-rule error classifiers specific to this package's own domain errors
|
|
17
|
-
* - artifact-helpers.ts: cross-domain artifact name/id resolution and workflow-run narrative building
|
|
3
|
+
* VehicleRegistry projection. Kept as a real file (not a `shared/index.ts` subdirectory) so every
|
|
4
|
+
* existing `from "./shared.ts"` import keeps resolving unchanged -- this codebase's imports
|
|
5
|
+
* always carry an explicit `.ts` extension, which does not implicitly resolve a bare specifier to
|
|
6
|
+
* a directory's own index file the way Node's CJS `require()` does. Real implementation lives in
|
|
7
|
+
* operation-schema.ts (schema DSL), paired-mutation.ts (operation-definer DSL), task-classifiers.ts
|
|
8
|
+
* (domain error classifiers), artifact-helpers.ts (name/id resolution, workflow-run narrative).
|
|
18
9
|
*/
|
|
19
10
|
export {
|
|
20
11
|
buildWorkflowRunContent,
|