@astrale-domains/issues 0.4.6 → 0.5.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/README.md CHANGED
@@ -50,7 +50,12 @@ Schema-owned Policies: Project owners administer metadata, membership, Tags, and
50
50
  members contribute to Issues; an Issue's reporter edits its title and description through
51
51
  `Issue.edit` and archives it; only a Comment author edits or deletes it. Priority, status,
52
52
  assignment, Tags, parent, and Comments remain collaborator operations. Issues and their Comments are
53
- visible through a Project the caller owns or has joined, and to the Issue's reporter.
53
+ visible through a Project the caller owns or has joined, and to the Issue's reporter. Deleting an
54
+ Identity, such as by uninstalling the Domain that owns it, removes only its `issue_reported_by`,
55
+ `comment_authored_by` and `project_owned_by` Edges: its Issues, Comments and Projects stay, with
56
+ their `reporterId`, `authorId` and `ownerId`. A Project whose owner is deleted keeps its members,
57
+ who still contribute, but no one administers it, and a Comment whose author is deleted can no
58
+ longer be edited or deleted.
54
59
 
55
60
  An Issue's title is its Kernel `Named` name, which holds 100 characters. Its description is the
56
61
  Issues-owned `body`, because Kernel `Descriptable` holds only 1,000 characters. An Issue described
@@ -9,7 +9,7 @@ export declare const comment_authored_by: import("@astrale-os/sdk/schema").Direc
9
9
  };
10
10
  readonly target: {
11
11
  readonly as: "comment";
12
- readonly incoming: "1";
12
+ readonly incoming: "0..1";
13
13
  };
14
14
  readonly constraints: Record<never, never>;
15
15
  readonly effectiveProperties: never;
@@ -2,9 +2,9 @@ import { K, edgeClass } from '@astrale-os/sdk/schema';
2
2
  import { TraverseCommentRelationship } from '../policies/traverse-comment-relationship.js';
3
3
  import { Comment } from './comment.js';
4
4
  export const comment_authored_by = edgeClass.directed({
5
- description: 'The immutable author of one Comment.',
5
+ description: 'The immutable author of one Comment. Deleting the author removes this Edge; the Comment stays.',
6
6
  source: { as: 'author', accepts: [K.classes.Identity], outgoing: '0..*' },
7
- target: { as: 'comment', accepts: [() => Comment], incoming: '1' },
7
+ target: { as: 'comment', accepts: [() => Comment], incoming: '0..1' },
8
8
  policies: {
9
9
  read: () => TraverseCommentRelationship,
10
10
  traverse: () => TraverseCommentRelationship,
@@ -9,7 +9,7 @@ export declare const issue_reported_by: import("@astrale-os/sdk/schema").Directe
9
9
  };
10
10
  readonly target: {
11
11
  readonly as: "issue";
12
- readonly incoming: "1";
12
+ readonly incoming: "0..1";
13
13
  };
14
14
  readonly constraints: Record<never, never>;
15
15
  readonly effectiveProperties: never;
@@ -2,8 +2,8 @@ import { K, edgeClass } from '@astrale-os/sdk/schema';
2
2
  import { TraverseIssueReporter } from '../policies/traverse-issue-reporter.js';
3
3
  import { Issue } from './issue.js';
4
4
  export const issue_reported_by = edgeClass.directed({
5
- description: 'The immutable reporter of one Issue.',
5
+ description: 'The immutable reporter of one Issue. Deleting the reporter removes this Edge; the Issue stays.',
6
6
  source: { as: 'reporter', accepts: [K.classes.Identity], outgoing: '0..*' },
7
- target: { as: 'issue', accepts: [() => Issue], incoming: '1' },
7
+ target: { as: 'issue', accepts: [() => Issue], incoming: '0..1' },
8
8
  policies: { read: () => TraverseIssueReporter, traverse: () => TraverseIssueReporter },
9
9
  });
@@ -9,7 +9,7 @@ export declare const project_owned_by: import("@astrale-os/sdk/schema").Directed
9
9
  };
10
10
  readonly target: {
11
11
  readonly as: "project";
12
- readonly incoming: "1";
12
+ readonly incoming: "0..1";
13
13
  };
14
14
  readonly constraints: Record<never, never>;
15
15
  readonly effectiveProperties: never;
@@ -2,8 +2,8 @@ import { K, edgeClass } from '@astrale-os/sdk/schema';
2
2
  import { TraverseProjectOwner } from '../policies/traverse-project-owner.js';
3
3
  import { Project } from './project.js';
4
4
  export const project_owned_by = edgeClass.directed({
5
- description: 'The exact Identity that owns and administers one Project.',
5
+ description: 'The exact Identity that owns and administers one Project. Deleting the owner removes this Edge; the Project stays, administered by no one.',
6
6
  source: { as: 'owner', accepts: [K.classes.Identity], outgoing: '0..*' },
7
- target: { as: 'project', accepts: [() => Project], incoming: '1' },
7
+ target: { as: 'project', accepts: [() => Project], incoming: '0..1' },
8
8
  policies: { read: () => TraverseProjectOwner, traverse: () => TraverseProjectOwner },
9
9
  });
@@ -432,7 +432,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
432
432
  };
433
433
  readonly target: {
434
434
  readonly as: "project";
435
- readonly incoming: "1";
435
+ readonly incoming: "0..1";
436
436
  };
437
437
  readonly constraints: Record<never, never>;
438
438
  readonly effectiveProperties: never;
@@ -480,7 +480,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
480
480
  };
481
481
  readonly target: {
482
482
  readonly as: "issue";
483
- readonly incoming: "1";
483
+ readonly incoming: "0..1";
484
484
  };
485
485
  readonly constraints: Record<never, never>;
486
486
  readonly effectiveProperties: never;
@@ -547,7 +547,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
547
547
  };
548
548
  readonly target: {
549
549
  readonly as: "comment";
550
- readonly incoming: "1";
550
+ readonly incoming: "0..1";
551
551
  };
552
552
  readonly constraints: Record<never, never>;
553
553
  readonly effectiveProperties: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/issues",
3
- "version": "0.4.6",
3
+ "version": "0.5.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/astrale-os/domains.git",
@@ -34,9 +34,9 @@
34
34
  "devDependencies": {
35
35
  "@astrale-os/adapter-cloudflare": "0.5.0-beta.186",
36
36
  "@astrale-os/ox": ">=0.1.4 <1.0.0",
37
- "@astrale-os/shell": "0.7.0-beta.5",
38
- "@astrale-os/shell-react": "0.6.0-beta.4",
39
- "@astrale-os/ui": "1.0.0-beta.32",
37
+ "@astrale-os/shell": "0.7.0-beta.6",
38
+ "@astrale-os/shell-react": "0.6.0-beta.6",
39
+ "@astrale-os/ui": "1.0.0-beta.37",
40
40
  "@tailwindcss/vite": "^4.3.3",
41
41
  "@tanstack/react-router": "1.170.18",
42
42
  "@tanstack/router-plugin": "1.168.23",
@@ -49,6 +49,7 @@
49
49
  "bun": "1.4.2",
50
50
  "esbuild": "0.28.1",
51
51
  "jsdom": "30.0.1",
52
+ "lucide-react": "1.32.0",
52
53
  "mermaid": "^11.17.0",
53
54
  "oxlint": ">=1.79.0 <2.0.0",
54
55
  "react": "^19.2.8",