@danypops/papyrus 0.44.7 → 0.44.9

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.
Files changed (77) hide show
  1. package/package.json +1 -1
  2. package/src/{ports → artifact}/artifact-event-reader.ts +1 -1
  3. package/src/{artifact-relationship-view.ts → artifact/artifact-relationship-view.ts} +3 -3
  4. package/src/{ports → artifact}/artifact-store.ts +2 -2
  5. package/src/{artifact-subtree.ts → artifact/artifact-subtree.ts} +4 -4
  6. package/src/{ports → artifact}/artifact-trash-store.ts +2 -2
  7. package/src/{adapters → artifact}/sqlite-artifact-scope-store.ts +1 -1
  8. package/src/{adapters → artifact}/sqlite-artifact-store.ts +15 -15
  9. package/src/authority-registry.ts +3 -3
  10. package/src/cli.ts +5 -5
  11. package/src/client.ts +2 -2
  12. package/src/{daemon-state.ts → daemon/daemon-state.ts} +1 -1
  13. package/src/{daemon.ts → daemon/daemon.ts} +3 -3
  14. package/src/db.ts +1 -1
  15. package/src/{discussion-service.ts → discussion/discussion-service.ts} +7 -6
  16. package/src/domain-services.ts +5 -5
  17. package/src/{graph-projection-service.ts → graph-projection/graph-projection-service.ts} +6 -6
  18. package/src/{vehicle/artifact-trash-vehicle.ts → handlers/artifact-trash.ts} +4 -4
  19. package/src/{vehicle/discuss-vehicle.ts → handlers/discuss.ts} +4 -11
  20. package/src/{vehicle/docs-vehicle.ts → handlers/docs.ts} +3 -10
  21. package/src/{vehicle/notes-vehicle.ts → handlers/notes.ts} +3 -10
  22. package/src/{vehicle/playbooks-vehicle.ts → handlers/playbooks.ts} +10 -10
  23. package/src/{vehicle/papyrus-vehicle.ts → handlers/registry.ts} +21 -16
  24. package/src/{vehicle/rules-vehicle.ts → handlers/rules.ts} +3 -10
  25. package/src/{vehicle/artifact-vehicle-shared.ts → handlers/shared.ts} +5 -5
  26. package/src/{vehicle/tasks-vehicle.ts → handlers/tasks.ts} +6 -6
  27. package/src/index.ts +13 -13
  28. package/src/{log-service.ts → log/log-service.ts} +2 -2
  29. package/src/modules/discuss.ts +2 -2
  30. package/src/modules/docs.ts +3 -2
  31. package/src/modules/graph-projection.ts +4 -3
  32. package/src/modules/logs.ts +1 -1
  33. package/src/modules/notes.ts +1 -1
  34. package/src/modules/playbooks.ts +12 -11
  35. package/src/modules/rules.ts +3 -2
  36. package/src/modules/session-identity.ts +1 -1
  37. package/src/modules/tasks.ts +6 -5
  38. package/src/{note-service.ts → note/note-service.ts} +6 -6
  39. package/src/ops.ts +6 -6
  40. package/src/{playbook-definition.ts → playbook/playbook-definition.ts} +7 -6
  41. package/src/{playbook-execution.ts → playbook/playbook-execution.ts} +5 -4
  42. package/src/{workflow-execution.ts → playbook/workflow-execution.ts} +12 -12
  43. package/src/service.ts +29 -29
  44. package/src/{session-identity-service.ts → session-identity/session-identity-service.ts} +2 -2
  45. package/src/{ports → stores}/session-identity-store.ts +1 -1
  46. package/src/{adapters → stores}/sqlite-discussion-round-store.ts +1 -1
  47. package/src/{adapters → stores}/sqlite-gate-runner.ts +1 -1
  48. package/src/{adapters → stores}/sqlite-graph-projection-store.ts +1 -1
  49. package/src/{adapters → stores}/sqlite-log-store.ts +1 -1
  50. package/src/{adapters → stores}/sqlite-note-event-store.ts +1 -1
  51. package/src/{adapters → stores}/sqlite-session-identity-store.ts +1 -1
  52. package/src/{adapters → stores}/sqlite-task-event-store.ts +1 -1
  53. package/src/{adapters → stores}/sqlite-task-focus-store.ts +1 -1
  54. package/src/{adapters → stores}/sqlite-task-lease-store.ts +1 -1
  55. package/src/{adapters → stores}/sqlite-task-scope-store.ts +1 -1
  56. package/src/{task-context.ts → task/task-context.ts} +4 -4
  57. package/src/{task-execution.ts → task/task-execution.ts} +1 -1
  58. package/src/{task-graph-view.ts → task/task-graph-view.ts} +1 -1
  59. package/src/{task-relationship-view.ts → task/task-relationship-view.ts} +3 -3
  60. package/src/{task-service.ts → task/task-service.ts} +14 -14
  61. /package/src/{domain → artifact}/artifact-alias.ts +0 -0
  62. /package/src/{domain → artifact}/artifact-event.ts +0 -0
  63. /package/src/{ports → artifact}/artifact-scope-store.ts +0 -0
  64. /package/src/{domain → artifact}/artifact-trash.ts +0 -0
  65. /package/src/{domain → artifact}/artifact.ts +0 -0
  66. /package/src/{ports → artifact}/atomic-artifact-store.ts +0 -0
  67. /package/src/{log.ts → log/log.ts} +0 -0
  68. /package/src/{ports → stores}/discussion-round-store.ts +0 -0
  69. /package/src/{ports → stores}/gate-runner.ts +0 -0
  70. /package/src/{ports → stores}/graph-projection-store.ts +0 -0
  71. /package/src/{ports → stores}/graph-renderer.ts +0 -0
  72. /package/src/{ports → stores}/log-store.ts +0 -0
  73. /package/src/{ports → stores}/note-event-store.ts +0 -0
  74. /package/src/{ports → stores}/task-event-store.ts +0 -0
  75. /package/src/{ports → stores}/task-focus-store.ts +0 -0
  76. /package/src/{ports → stores}/task-lease-store.ts +0 -0
  77. /package/src/{ports → stores}/task-scope-store.ts +0 -0
@@ -1,3 +1,5 @@
1
+ import type { Artifact } from "../artifact/artifact.ts";
2
+ import type { ArtifactStore } from "../artifact/artifact-store.ts";
1
3
  import {
2
4
  TASK_BODY_MAX_LENGTH,
3
5
  TASK_CANCEL_SUBTREE_MAX_NODES,
@@ -9,11 +11,10 @@ import {
9
11
  TASK_LABEL_MAX_LENGTH,
10
12
  TASK_SCOPE_MAX_TASKS,
11
13
  TASK_TITLE_MAX_LENGTH,
12
- } from "./constants.ts";
13
- import type { Artifact } from "./domain/artifact.ts";
14
- import { type Checklist, checklistEntries, type ProofReference, validateChecklist } from "./domain/checklist.ts";
15
- import { DISCUSSION_SUBTYPE, isDiscussionArtifact, readDiscussionExtra } from "./domain/discussion.ts";
16
- import { type Gate, type GateResult, validateGates } from "./domain/gate.ts";
14
+ } from "../constants.ts";
15
+ import { type Checklist, checklistEntries, type ProofReference, validateChecklist } from "../domain/checklist.ts";
16
+ import { DISCUSSION_SUBTYPE, isDiscussionArtifact, readDiscussionExtra } from "../domain/discussion.ts";
17
+ import { type Gate, type GateResult, validateGates } from "../domain/gate.ts";
17
18
  import type {
18
19
  AppendTaskEvent,
19
20
  TaskEventContext,
@@ -22,21 +23,20 @@ import type {
22
23
  TaskHistoryPage,
23
24
  TaskHistoryQuery,
24
25
  TaskLifecycleStatus,
25
- } from "./domain/task-event.ts";
26
- import type { TaskLease } from "./domain/task-lease.ts";
26
+ } from "../domain/task-event.ts";
27
+ import type { TaskLease } from "../domain/task-lease.ts";
27
28
  import {
28
29
  normalizeProjectRoot,
29
30
  type TaskScopeSource,
30
31
  type TaskViewMode,
31
32
  type TaskViewSelection,
32
33
  taskScopeLabel,
33
- } from "./domain/task-scope.ts";
34
- import type { ArtifactStore } from "./ports/artifact-store.ts";
35
- import type { GateRunner } from "./ports/gate-runner.ts";
36
- import { InMemoryTaskEventStore, type TaskEventStore } from "./ports/task-event-store.ts";
37
- import { InMemoryTaskFocusStore, type TaskFocusStatus, type TaskFocusStore } from "./ports/task-focus-store.ts";
38
- import { InMemoryTaskLeaseStore, type TaskLeaseStore } from "./ports/task-lease-store.ts";
39
- import { InMemoryTaskScopeStore, type TaskScopeStore } from "./ports/task-scope-store.ts";
34
+ } from "../domain/task-scope.ts";
35
+ import type { GateRunner } from "../stores/gate-runner.ts";
36
+ import { InMemoryTaskEventStore, type TaskEventStore } from "../stores/task-event-store.ts";
37
+ import { InMemoryTaskFocusStore, type TaskFocusStatus, type TaskFocusStore } from "../stores/task-focus-store.ts";
38
+ import { InMemoryTaskLeaseStore, type TaskLeaseStore } from "../stores/task-lease-store.ts";
39
+ import { InMemoryTaskScopeStore, type TaskScopeStore } from "../stores/task-scope-store.ts";
40
40
  import { assertDependencyEdgeAllowed, TaskExecutionBoundExceededError } from "./task-execution.ts";
41
41
 
42
42
  export interface UpdateTaskInput {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes