@astrale-domains/issues 0.4.3 → 0.4.5

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 (36) hide show
  1. package/README.md +15 -7
  2. package/dist/schema/modules/comment/classes/comment-authored-by.js +4 -1
  3. package/dist/schema/modules/comment/classes/comment.d.ts +1 -0
  4. package/dist/schema/modules/comment/classes/comment.js +4 -1
  5. package/dist/schema/modules/comment/classes/issue-has-comment.js +1 -1
  6. package/dist/schema/modules/issue/classes/issue-assigned-to.js +1 -1
  7. package/dist/schema/modules/issue/classes/issue-reported-by.js +1 -1
  8. package/dist/schema/modules/issue/classes/issue-subtask-of.js +1 -1
  9. package/dist/schema/modules/issue/classes/issue.d.ts +5 -0
  10. package/dist/schema/modules/issue/classes/issue.js +11 -1
  11. package/dist/schema/modules/issue/classes/project-contains-issue.js +1 -1
  12. package/dist/schema/modules/issue/functions/edit-issue.js +3 -3
  13. package/dist/schema/modules/issue/functions/update-issue.js +3 -3
  14. package/dist/schema/modules/issue/index.d.ts +1 -1
  15. package/dist/schema/modules/issue/index.js +1 -1
  16. package/dist/schema/modules/issue/types/index.d.ts +1 -1
  17. package/dist/schema/modules/issue/types/index.js +1 -1
  18. package/dist/schema/modules/issue/types/issue.d.ts +4 -0
  19. package/dist/schema/modules/issue/types/issue.js +6 -2
  20. package/dist/schema/modules/issue/types/report.d.ts +2 -1
  21. package/dist/schema/modules/issue/types/report.js +3 -0
  22. package/dist/schema/modules/project/classes/project-has-member.js +1 -1
  23. package/dist/schema/modules/project/classes/project-owned-by.js +1 -1
  24. package/dist/schema/modules/project/classes/project.d.ts +2 -1
  25. package/dist/schema/modules/project/classes/project.js +1 -1
  26. package/dist/schema/modules/project/functions/create-project-issue.js +3 -3
  27. package/dist/schema/modules/project/functions/create-project.js +2 -2
  28. package/dist/schema/modules/project/functions/receive-project-report.d.ts +1 -1
  29. package/dist/schema/modules/project/functions/update-project.js +2 -2
  30. package/dist/schema/modules/project/types/project.js +2 -2
  31. package/dist/schema/modules/tag/classes/issue-tagged-with.js +1 -1
  32. package/dist/schema/modules/tag/classes/project-contains-tag.js +1 -1
  33. package/dist/schema/modules/tag/classes/tag.d.ts +1 -0
  34. package/dist/schema/modules/tag/classes/tag.js +1 -1
  35. package/dist/schema/schema.d.ts +9 -1
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ Project
14
14
  contains Issues and Tags
15
15
 
16
16
  Issue
17
- immutable reference; title; optional description
17
+ immutable reference; title (100 characters); optional Markdown description (50,000 characters)
18
18
  status: open | accepted | resolved | deferred | closed
19
19
  priority: 0..4; optional assignee; optional acyclic parent; Tags
20
20
 
@@ -38,8 +38,9 @@ Tag.edit | delete
38
38
 
39
39
  `Tag.delete` remains one atomic Mutation through 2,046 linked Issues, the current supported Kernel
40
40
  execution ceiling after its containment and Node removals. Larger Tags must first be removed from
41
- enough Issues through `Issue.setTags`; the Workflow rejects them explicitly instead of submitting an
42
- oversized Mutation with a backend-dependent failure.
41
+ enough Issues through `Issue.setTags`; the Action rejects them explicitly
42
+ (`TAG_TOO_LARGE_TO_DELETE`) instead of submitting an oversized Mutation with a backend-dependent
43
+ failure.
43
44
 
44
45
  `Project.create` and `Project.list` require authentication. `Project.list` returns only Projects the
45
46
  caller owns or has joined, with their visible Issues and Comment threads nested for one CLI/agent
@@ -51,9 +52,16 @@ members contribute to Issues; an Issue's reporter edits its title and descriptio
51
52
  assignment, Tags, parent, and Comments remain collaborator operations. Issues and their Comments are
52
53
  visible through a Project the caller owns or has joined, and to the Issue's reporter.
53
54
 
55
+ An Issue's title is its Kernel `Named` name, which holds 100 characters. Its description is the
56
+ Issues-owned `body`, because Kernel `Descriptable` holds only 1,000 characters. An Issue described
57
+ before `body` existed keeps that description in `Descriptable` until its next revision moves it to
58
+ `body`; readers take `body` first, then the `Descriptable` description. Titles and descriptions are
59
+ stored without surrounding whitespace. Every callable refuses a longer title or description before
60
+ it runs, and refuses a blank title or a revision that names no field with a declared error.
61
+
54
62
  Ownership, membership, reporting, assignment, and authorship remain graph-native Policy facts. The
55
63
  owning Project, Issue, or Comment also stores the corresponding Identity IDs privately, updated in
56
- the same atomic Mutation as each edge. Recipes and Workflows can therefore validate current
64
+ the same atomic Mutation as each edge. Recipes and Actions can therefore validate current
57
65
  collaboration state without requesting authority over every possible concrete Identity subtype from
58
66
  another Domain.
59
67
  Those private execution fields are not a second public model and never replace the Policy edges.
@@ -64,12 +72,12 @@ supplies a verified `reporterId`, an opaque `requestId`, `title`, `body`, and op
64
72
  must not receive this privileged owner capability or Project membership.
65
73
 
66
74
  One atomic mutation allocates the number, creates the Issue and reporter/containment edges, retains
67
- the original report. A query precondition fences the exact
68
- Project/reporter/request triple. A retry with identical content returns the original `{ id, reference }`,
75
+ the original report exactly as received, and describes the Issue with its trimmed body. A query
76
+ precondition fences the exact Project/reporter/request triple. A retry with identical content returns the original `{ id, reference }`,
69
77
  even after triage edits or archival; changed content under the same key is rejected. Independent
70
78
  request IDs remain independent reports. Known counter/key contention is retried up to eight attempts;
71
79
  unknown outcomes propagate, so the sender must retain the original payload and key until confirmation.
72
- The inline Workflow runner is not the source of durability: the graph receipt and atomic preconditions are.
80
+ Durability comes from the graph receipt and atomic preconditions.
73
81
 
74
82
  Context describes current client observations, separate from mutable Issue text. Missing versions and
75
83
  instance coordinates remain unknown. Creating a report makes the sender the Issue's reporter, with
@@ -5,5 +5,8 @@ export const comment_authored_by = edgeClass.directed({
5
5
  description: 'The immutable author of one Comment.',
6
6
  source: { as: 'author', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'comment', accepts: [() => Comment], incoming: '1' },
8
- policies: { traverse: () => TraverseCommentRelationship },
8
+ policies: {
9
+ read: () => TraverseCommentRelationship,
10
+ traverse: () => TraverseCommentRelationship,
11
+ },
9
12
  });
@@ -27,5 +27,6 @@ export declare const Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass
27
27
  };
28
28
  readonly policies: {
29
29
  read: () => import("@astrale-os/sdk/schema").Policy;
30
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
30
31
  };
31
32
  }>;
@@ -14,5 +14,8 @@ export const Comment = nodeClass({
14
14
  authorId: property(nodeIdValue, {}),
15
15
  },
16
16
  methods: { edit: editCommentMethod, delete: deleteCommentMethod },
17
- policies: { read: () => ContributeToCommentOrReportedIssueOfComment },
17
+ policies: {
18
+ read: () => ContributeToCommentOrReportedIssueOfComment,
19
+ traverse: () => ContributeToCommentOrReportedIssueOfComment,
20
+ },
18
21
  });
@@ -6,5 +6,5 @@ export const issue_has_comment = edgeClass.directed({
6
6
  description: 'One Issue contains one Comment.',
7
7
  source: { as: 'issue', accepts: [() => Issue], outgoing: '0..*' },
8
8
  target: { as: 'comment', accepts: [() => Comment], incoming: '1' },
9
- policies: { traverse: () => TraverseIssueComment },
9
+ policies: { read: () => TraverseIssueComment, traverse: () => TraverseIssueComment },
10
10
  });
@@ -5,5 +5,5 @@ export const issue_assigned_to = edgeClass.directed({
5
5
  description: 'The optional current assignee of one Issue.',
6
6
  source: { as: 'assignee', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'issue', accepts: [() => Issue], incoming: '0..1' },
8
- policies: { traverse: () => TraverseIssueAssignee },
8
+ policies: { read: () => TraverseIssueAssignee, traverse: () => TraverseIssueAssignee },
9
9
  });
@@ -5,5 +5,5 @@ export const issue_reported_by = edgeClass.directed({
5
5
  description: 'The immutable reporter of one Issue.',
6
6
  source: { as: 'reporter', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'issue', accepts: [() => Issue], incoming: '1' },
8
- policies: { traverse: () => TraverseIssueReporter },
8
+ policies: { read: () => TraverseIssueReporter, traverse: () => TraverseIssueReporter },
9
9
  });
@@ -6,5 +6,5 @@ export const issue_subtask_of = edgeClass.directed({
6
6
  source: { as: 'child', accepts: [() => Issue], outgoing: '0..1' },
7
7
  target: { as: 'parent', accepts: [() => Issue], incoming: '0..*' },
8
8
  constraints: { noSelf: true, acyclic: true },
9
- policies: { traverse: () => TraverseIssueParent },
9
+ policies: { read: () => TraverseIssueParent, traverse: () => TraverseIssueParent },
10
10
  });
@@ -5,6 +5,10 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
5
5
  readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
6
6
  readonly properties: {
7
7
  reference: z.ZodString;
8
+ body: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodString, {
9
+ readonly required: false;
10
+ readonly description: "The Issue description, as Markdown.";
11
+ }>;
8
12
  reporterId: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodString, {}>;
9
13
  assigneeId: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodOptional<z.ZodString>, {}>;
10
14
  status: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
@@ -176,5 +180,6 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
176
180
  };
177
181
  readonly policies: {
178
182
  read: () => import("@astrale-os/sdk/schema").Policy;
183
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
179
184
  };
180
185
  }>;
@@ -12,13 +12,20 @@ import { transitionIssueMethod } from '../functions/transition-issue.js';
12
12
  import { updateIssueMethod } from '../functions/update-issue.js';
13
13
  import { ContributeToIssueOrReportedIssue } from '../policies/contribute-to-issue-or-reported-issue.js';
14
14
  import { issueStatus } from '../states/index.js';
15
+ import { issueDescriptionValue } from '../types/issue.js';
15
16
  import { reportContentValue } from '../types/report.js';
16
17
  export const Issue = nodeClass({
17
18
  description: 'One immutable-reference work item contained by exactly one Project.',
18
19
  icon: classIcon.lucide(CircleDot),
20
+ // Kernel `Descriptable` holds 1,000 characters: an Issue keeps it only for the descriptions it
21
+ // stored before `body`, which the next revision of each Issue moves to `body`.
19
22
  extends: [K.classes.Named, K.classes.Descriptable, K.classes.Timestamped],
20
23
  properties: {
21
24
  reference: z.string().min(1).max(32),
25
+ body: property(issueDescriptionValue.min(1), {
26
+ required: false,
27
+ description: 'The Issue description, as Markdown.',
28
+ }),
22
29
  reporterId: property(nodeIdValue, {}),
23
30
  assigneeId: property(nodeIdValue.optional(), {}),
24
31
  status: stateProperty(issueStatus),
@@ -37,5 +44,8 @@ export const Issue = nodeClass({
37
44
  addComment: addIssueCommentMethod,
38
45
  archive: archiveIssueMethod,
39
46
  },
40
- policies: { read: () => ContributeToIssueOrReportedIssue },
47
+ policies: {
48
+ read: () => ContributeToIssueOrReportedIssue,
49
+ traverse: () => ContributeToIssueOrReportedIssue,
50
+ },
41
51
  });
@@ -6,5 +6,5 @@ export const project_contains_issue = edgeClass.directed({
6
6
  description: 'One Project contains and numbers one Issue.',
7
7
  source: { as: 'project', accepts: [() => Project], outgoing: '0..*' },
8
8
  target: { as: 'issue', accepts: [() => Issue], incoming: '1' },
9
- policies: { traverse: () => TraverseProjectIssue },
9
+ policies: { read: () => TraverseProjectIssue, traverse: () => TraverseProjectIssue },
10
10
  });
@@ -1,14 +1,14 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
3
  import { ReportedIssue } from '../policies/reported-issue.js';
4
- import { issueValue } from '../types/issue.js';
4
+ import { issueDescriptionValue, issueTitleValue, issueValue } from '../types/issue.js';
5
5
  export const editIssueMethod = method({
6
6
  description: 'Edit the title and description of this Issue as its reporter.',
7
7
  auth: 'authorized',
8
8
  policy: ({ check, self }) => check(ReportedIssue, self),
9
9
  input: z.strictObject({
10
- title: z.string().min(1).max(200).optional(),
11
- description: z.string().max(50_000).optional(),
10
+ title: issueTitleValue.optional(),
11
+ description: issueDescriptionValue.optional(),
12
12
  }),
13
13
  output: issueValue,
14
14
  });
@@ -1,14 +1,14 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
3
  import { ContributeToIssue } from '../policies/contribute-to-issue.js';
4
- import { issueValue } from '../types/issue.js';
4
+ import { issueDescriptionValue, issueTitleValue, issueValue } from '../types/issue.js';
5
5
  export const updateIssueMethod = method({
6
6
  description: 'Update mutable Issue fields.',
7
7
  auth: 'authorized',
8
8
  policy: ({ check, self }) => check(ContributeToIssue, self),
9
9
  input: z.strictObject({
10
- title: z.string().min(1).max(200).optional(),
11
- description: z.string().max(50_000).optional(),
10
+ title: issueTitleValue.optional(),
11
+ description: issueDescriptionValue.optional(),
12
12
  priority: z.number().int().min(0).max(4).optional(),
13
13
  }),
14
14
  output: issueValue,
@@ -1,4 +1,4 @@
1
- export { issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, type ReportContent, } from './types/index.js';
1
+ export { issueDescriptionValue, issueTitleValue, issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, type ReportContent, } from './types/index.js';
2
2
  export { issueStatus, type IssueEvent, type IssueStatus } from './states/index.js';
3
3
  export { issue_assigned_to, issue_reported_by, issue_subtask_of, Issue, project_contains_issue, } from './classes/index.js';
4
4
  export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, transitionIssueMethod, updateIssueMethod, } from './functions/index.js';
@@ -1,4 +1,4 @@
1
- export { issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, } from './types/index.js';
1
+ export { issueDescriptionValue, issueTitleValue, issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, } from './types/index.js';
2
2
  export { issueStatus } from './states/index.js';
3
3
  export { issue_assigned_to, issue_reported_by, issue_subtask_of, Issue, project_contains_issue, } from './classes/index.js';
4
4
  export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, transitionIssueMethod, updateIssueMethod, } from './functions/index.js';
@@ -1,2 +1,2 @@
1
- export { issueValue } from './issue.js';
1
+ export { issueDescriptionValue, issueTitleValue, issueValue } from './issue.js';
2
2
  export { reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, type ReportContent, } from './report.js';
@@ -1,2 +1,2 @@
1
- export { issueValue } from './issue.js';
1
+ export { issueDescriptionValue, issueTitleValue, issueValue } from './issue.js';
2
2
  export { reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, } from './report.js';
@@ -1,4 +1,8 @@
1
1
  import { z } from 'zod';
2
+ /** An Issue title. The Issue stores it as its Kernel `Named` name, which holds 100 characters. */
3
+ export declare const issueTitleValue: z.ZodString;
4
+ /** An Issue description, as Markdown; empty when the Issue has none. */
5
+ export declare const issueDescriptionValue: z.ZodString;
2
6
  export declare const issueValue: z.ZodObject<{
3
7
  id: z.ZodString;
4
8
  reference: z.ZodString;
@@ -1,11 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  import { nodeIdValue } from '../../../types/index.js';
3
3
  import { issueStatus } from '../states/index.js';
4
+ /** An Issue title. The Issue stores it as its Kernel `Named` name, which holds 100 characters. */
5
+ export const issueTitleValue = z.string().min(1).max(100);
6
+ /** An Issue description, as Markdown; empty when the Issue has none. */
7
+ export const issueDescriptionValue = z.string().max(50_000);
4
8
  export const issueValue = z.strictObject({
5
9
  id: nodeIdValue,
6
10
  reference: z.string().min(1).max(32),
7
- title: z.string().min(1).max(200),
8
- description: z.string().max(50_000),
11
+ title: issueTitleValue,
12
+ description: issueDescriptionValue,
9
13
  status: issueStatus.stateSchema,
10
14
  priority: z.number().int().min(0).max(4),
11
15
  archived: z.boolean(),
@@ -33,6 +33,7 @@ export declare const reportContextValue: z.ZodObject<{
33
33
  url: z.ZodOptional<z.ZodString>;
34
34
  }, z.core.$strict>>;
35
35
  }, z.core.$strict>;
36
+ /** One report exactly as received, retained on its Issue; earlier reports admitted 200-character titles. */
36
37
  export declare const reportContentValue: z.ZodObject<{
37
38
  title: z.ZodString;
38
39
  body: z.ZodString;
@@ -71,7 +72,6 @@ export declare const reportContentValue: z.ZodObject<{
71
72
  }, z.core.$strict>>;
72
73
  }, z.core.$strict>;
73
74
  export declare const receiveReportInput: z.ZodObject<{
74
- title: z.ZodString;
75
75
  body: z.ZodString;
76
76
  context: z.ZodOptional<z.ZodObject<{
77
77
  observedAt: z.ZodString;
@@ -106,6 +106,7 @@ export declare const receiveReportInput: z.ZodObject<{
106
106
  url: z.ZodOptional<z.ZodString>;
107
107
  }, z.core.$strict>>;
108
108
  }, z.core.$strict>>;
109
+ title: z.ZodString;
109
110
  requestId: z.ZodString;
110
111
  reporterId: z.ZodString;
111
112
  }, z.core.$strict>;
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { nodeIdValue } from '../../../types/index.js';
3
+ import { issueTitleValue } from './issue.js';
3
4
  const coordinate = z.string().min(1).max(2_048);
4
5
  const version = z.string().max(128);
5
6
  /** Observations at submission time; never evidence of a historical deployed build. */
@@ -31,12 +32,14 @@ export const reportContextValue = z.strictObject({
31
32
  })
32
33
  .optional(),
33
34
  });
35
+ /** One report exactly as received, retained on its Issue; earlier reports admitted 200-character titles. */
34
36
  export const reportContentValue = z.strictObject({
35
37
  title: z.string().min(1).max(200),
36
38
  body: z.string().min(1).max(50_000),
37
39
  context: reportContextValue.optional(),
38
40
  });
39
41
  export const receiveReportInput = reportContentValue.extend({
42
+ title: issueTitleValue,
40
43
  requestId: z.string().min(1).max(128),
41
44
  reporterId: nodeIdValue,
42
45
  });
@@ -5,5 +5,5 @@ export const project_has_member = edgeClass.directed({
5
5
  description: 'An Identity admitted to collaborate in one Project.',
6
6
  source: { as: 'member', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'project', accepts: [() => Project], incoming: '0..*' },
8
- policies: { traverse: () => TraverseProjectMember },
8
+ policies: { read: () => TraverseProjectMember, traverse: () => TraverseProjectMember },
9
9
  });
@@ -5,5 +5,5 @@ export const project_owned_by = edgeClass.directed({
5
5
  description: 'The exact Identity that owns and administers one Project.',
6
6
  source: { as: 'owner', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'project', accepts: [() => Project], incoming: '1' },
8
- policies: { traverse: () => TraverseProjectOwner },
8
+ policies: { read: () => TraverseProjectOwner, traverse: () => TraverseProjectOwner },
9
9
  });
@@ -100,7 +100,6 @@ export declare const Project: import("@astrale-os/sdk/schema").AuthoredNodeClass
100
100
  };
101
101
  }, "authorized", false, false, undefined>>;
102
102
  receiveReport: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
103
- title: string;
104
103
  body: string;
105
104
  context?: {
106
105
  observedAt: string;
@@ -131,6 +130,7 @@ export declare const Project: import("@astrale-os/sdk/schema").AuthoredNodeClass
131
130
  url?: string | undefined;
132
131
  } | undefined;
133
132
  } | undefined;
133
+ title: string;
134
134
  requestId: string;
135
135
  reporterId: string;
136
136
  }, {
@@ -162,5 +162,6 @@ export declare const Project: import("@astrale-os/sdk/schema").AuthoredNodeClass
162
162
  };
163
163
  readonly policies: {
164
164
  read: () => import("@astrale-os/sdk/schema").Policy;
165
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
165
166
  };
166
167
  }>;
@@ -34,5 +34,5 @@ export const Project = nodeClass({
34
34
  createTag: createProjectTagMethod,
35
35
  archive: archiveProjectMethod,
36
36
  },
37
- policies: { read: () => ContributeToProject },
37
+ policies: { read: () => ContributeToProject, traverse: () => ContributeToProject },
38
38
  });
@@ -1,14 +1,14 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { issueValue } from '../../issue/index.js';
3
+ import { issueDescriptionValue, issueTitleValue, issueValue } from '../../issue/index.js';
4
4
  import { ContributeToProject } from '../policies/contribute-to-project.js';
5
5
  export const createProjectIssueMethod = method({
6
6
  description: 'Create one atomically numbered Issue in this Project.',
7
7
  auth: 'authorized',
8
8
  policy: ({ check, self }) => check(ContributeToProject, self),
9
9
  input: z.strictObject({
10
- title: z.string().min(1).max(200),
11
- description: z.string().max(50_000).optional(),
10
+ title: issueTitleValue,
11
+ description: issueDescriptionValue.optional(),
12
12
  priority: z.number().int().min(0).max(4).optional(),
13
13
  }),
14
14
  output: issueValue,
@@ -7,8 +7,8 @@ export const createProjectMethod = method({
7
7
  auth: 'authenticated',
8
8
  input: z.strictObject({
9
9
  key: z.string().min(1).max(40),
10
- name: z.string().min(1).max(120),
11
- description: z.string().max(5_000).optional(),
10
+ name: z.string().min(1).max(100),
11
+ description: z.string().max(1_000).optional(),
12
12
  }),
13
13
  output: projectValue,
14
14
  });
@@ -1,5 +1,4 @@
1
1
  export declare const receiveProjectReportMethod: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
2
- title: string;
3
2
  body: string;
4
3
  context?: {
5
4
  observedAt: string;
@@ -30,6 +29,7 @@ export declare const receiveProjectReportMethod: import("@astrale-os/sdk/schema"
30
29
  url?: string | undefined;
31
30
  } | undefined;
32
31
  } | undefined;
32
+ title: string;
33
33
  requestId: string;
34
34
  reporterId: string;
35
35
  }, {
@@ -7,8 +7,8 @@ export const updateProjectMethod = method({
7
7
  auth: 'authorized',
8
8
  policy: ({ check, self }) => check(ManageProject, self),
9
9
  input: z.strictObject({
10
- name: z.string().min(1).max(120).optional(),
11
- description: z.string().max(5_000).optional(),
10
+ name: z.string().min(1).max(100).optional(),
11
+ description: z.string().max(1_000).optional(),
12
12
  }),
13
13
  output: projectValue,
14
14
  });
@@ -3,7 +3,7 @@ import { nodeIdValue } from '../../../types/index.js';
3
3
  export const projectValue = z.strictObject({
4
4
  id: nodeIdValue,
5
5
  key: z.string().min(2).max(10),
6
- name: z.string().min(1).max(120),
7
- description: z.string().max(5_000),
6
+ name: z.string().min(1).max(100),
7
+ description: z.string().max(1_000),
8
8
  archived: z.boolean(),
9
9
  });
@@ -6,5 +6,5 @@ export const issue_tagged_with = edgeClass.directed({
6
6
  description: 'One Issue is classified by one Tag from the same Project.',
7
7
  source: { as: 'issue', accepts: [() => Issue], outgoing: '0..*' },
8
8
  target: { as: 'tag', accepts: [() => Tag], incoming: '0..*' },
9
- policies: { traverse: () => TraverseIssueTag },
9
+ policies: { read: () => TraverseIssueTag, traverse: () => TraverseIssueTag },
10
10
  });
@@ -6,5 +6,5 @@ export const project_contains_tag = edgeClass.directed({
6
6
  description: 'One Project owns one local Tag vocabulary entry.',
7
7
  source: { as: 'project', accepts: [() => Project], outgoing: '0..*' },
8
8
  target: { as: 'tag', accepts: [() => Tag], incoming: '1' },
9
- policies: { traverse: () => TraverseProjectTag },
9
+ policies: { read: () => TraverseProjectTag, traverse: () => TraverseProjectTag },
10
10
  });
@@ -32,5 +32,6 @@ export declare const Tag: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
32
32
  };
33
33
  readonly policies: {
34
34
  read: () => import("@astrale-os/sdk/schema").Policy;
35
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
35
36
  };
36
37
  }>;
@@ -13,5 +13,5 @@ export const Tag = nodeClass({
13
13
  color: property(z.string().min(7).max(7), { required: false }),
14
14
  },
15
15
  methods: { edit: editTagMethod, delete: deleteTagMethod },
16
- policies: { read: () => ContributeToTag },
16
+ policies: { read: () => ContributeToTag, traverse: () => ContributeToTag },
17
17
  });
@@ -105,7 +105,6 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
105
105
  };
106
106
  }, "authorized", false, false, undefined>>;
107
107
  receiveReport: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
108
- title: string;
109
108
  body: string;
110
109
  context?: {
111
110
  observedAt: string;
@@ -136,6 +135,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
136
135
  url?: string | undefined;
137
136
  } | undefined;
138
137
  } | undefined;
138
+ title: string;
139
139
  requestId: string;
140
140
  reporterId: string;
141
141
  }, {
@@ -167,6 +167,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
167
167
  };
168
168
  readonly policies: {
169
169
  read: () => import("@astrale-os/sdk/schema").Policy;
170
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
170
171
  };
171
172
  }>;
172
173
  readonly Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -175,6 +176,10 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
175
176
  readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
176
177
  readonly properties: {
177
178
  reference: import("zod").ZodString;
179
+ body: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
180
+ readonly required: false;
181
+ readonly description: "The Issue description, as Markdown.";
182
+ }>;
178
183
  reporterId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {}>;
179
184
  assigneeId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodOptional<import("zod").ZodString>, {}>;
180
185
  status: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
@@ -346,6 +351,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
346
351
  };
347
352
  readonly policies: {
348
353
  read: () => import("@astrale-os/sdk/schema").Policy;
354
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
349
355
  };
350
356
  }>;
351
357
  readonly Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -376,6 +382,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
376
382
  };
377
383
  readonly policies: {
378
384
  read: () => import("@astrale-os/sdk/schema").Policy;
385
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
379
386
  };
380
387
  }>;
381
388
  readonly Tag: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -411,6 +418,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
411
418
  };
412
419
  readonly policies: {
413
420
  read: () => import("@astrale-os/sdk/schema").Policy;
421
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
414
422
  };
415
423
  }>;
416
424
  readonly project_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/issues",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/astrale-os/domains.git",