@danypops/papyrus 0.60.0 → 0.60.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danypops/papyrus",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.1",
|
|
4
4
|
"description": "Daemon-backed graph artifacts, evidence-bearing tasks, rules, skills, and native TUI workflows for Pi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"files": ["src", "README.md"],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@danypops/vehicle-client": "^0.10.3",
|
|
61
|
-
"@danypops/vehicle-core": "^0.
|
|
61
|
+
"@danypops/vehicle-core": "^0.18.5",
|
|
62
62
|
"@danypops/vehicle-server": "^0.25.2",
|
|
63
63
|
"@stricli/core": "^1.3.0"
|
|
64
64
|
}
|
package/src/handlers/tasks.ts
CHANGED
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
*
|
|
20
20
|
* remove/remove_subtree/restore are not duplicated here -- see ./artifact-trash-vehicle.ts.
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
VEHICLE_SCHEMA_PRESENTATION_EXTENSION,
|
|
24
|
+
VehicleError,
|
|
25
|
+
type VehicleLimits,
|
|
26
|
+
type VehicleOperationContext,
|
|
27
|
+
} from "@danypops/vehicle-core";
|
|
23
28
|
import type { VehicleRegistry } from "@danypops/vehicle-server";
|
|
24
29
|
import type { ArtifactStore } from "../artifact/artifact-store.ts";
|
|
25
30
|
import { GATE_TIMEOUT_MAX_MS, TASK_CREATE_IDEMPOTENCY_KEY_MAX_LENGTH, TASK_MUTATION_IDEMPOTENCY_KEY_MAX_LENGTH } from "../constants.ts";
|
|
@@ -83,6 +88,7 @@ const GATE_OPERATION_LIMITS: VehicleLimits = {
|
|
|
83
88
|
const objectProp = { type: "object" } as const;
|
|
84
89
|
const arrayProp = { type: "array" } as const;
|
|
85
90
|
const _boolProp = { type: "boolean" } as const;
|
|
91
|
+
const streamingStringProp = { ...stringProp, [VEHICLE_SCHEMA_PRESENTATION_EXTENSION]: "stream" } as const;
|
|
86
92
|
const mutationIdempotencyProp = {
|
|
87
93
|
type: "string",
|
|
88
94
|
minLength: 1,
|
|
@@ -368,7 +374,7 @@ export function registerTasksVehicleOperations(registry: VehicleRegistry, deps:
|
|
|
368
374
|
"local-write",
|
|
369
375
|
{
|
|
370
376
|
title: stringProp,
|
|
371
|
-
body:
|
|
377
|
+
body: streamingStringProp,
|
|
372
378
|
status: stringProp,
|
|
373
379
|
labels: arrayProp,
|
|
374
380
|
extra: objectProp,
|
|
@@ -418,7 +424,7 @@ export function registerTasksVehicleOperations(registry: VehicleRegistry, deps:
|
|
|
418
424
|
id: stringProp,
|
|
419
425
|
name: stringProp,
|
|
420
426
|
title: stringProp,
|
|
421
|
-
body:
|
|
427
|
+
body: streamingStringProp,
|
|
422
428
|
labels: arrayProp,
|
|
423
429
|
status: stringProp,
|
|
424
430
|
reason: stringProp,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isAbsolute, normalize } from "node:path";
|
|
2
2
|
import { TASK_PROJECT_ROOT_MAX_LENGTH } from "../constants.ts";
|
|
3
3
|
|
|
4
4
|
/** How a project root got attached to a scoped artifact -- shared across Tasks/Docs/Rules/Playbooks, same category as Project in project-registry.ts. */
|