@astrale-domains/issues 0.1.6 → 0.1.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.7](https://github.com/astrale-os/domains/compare/issues-v0.1.6...issues-v0.1.7) (2026-08-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * **state:** colocate lifecycle authorities with schema modules ([#131](https://github.com/astrale-os/domains/issues/131)) ([14cf6f5](https://github.com/astrale-os/domains/commit/14cf6f539ef947e4d8306e4e962e690765ff0011))
9
+
3
10
  ## [0.1.6](https://github.com/astrale-os/domains/compare/issues-v0.1.5...issues-v0.1.6) (2026-08-29)
4
11
 
5
12
 
@@ -190,12 +190,12 @@ export declare const Issue: import("@astrale-os/sdk/schema").NodeClass<{
190
190
  }, "open">>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
191
191
  readonly name: "description";
192
192
  readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
193
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
194
- readonly name: "name";
195
- readonly key: "kernel.astrale.ai:class.Named.property.name";
196
193
  }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
197
194
  readonly name: "createdAt";
198
195
  readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
196
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
197
+ readonly name: "name";
198
+ readonly key: "kernel.astrale.ai:class.Named.property.name";
199
199
  }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
200
200
  readonly name: "updatedAt";
201
201
  readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
@@ -1,7 +1,6 @@
1
1
  import { K, nodeClass, property, stateProperty } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
3
  import { nodeIdValue } from '../../../types/index.js';
4
- import { issueStatus } from '../../../.runtime/states/issue/index.js';
5
4
  import { addIssueCommentMethod } from '../functions/add-issue-comment.js';
6
5
  import { archiveIssueMethod } from '../functions/archive-issue.js';
7
6
  import { assignIssueMethod } from '../functions/assign-issue.js';
@@ -10,6 +9,7 @@ import { setIssueTagsMethod } from '../functions/set-issue-tags.js';
10
9
  import { transitionIssueMethod } from '../functions/transition-issue.js';
11
10
  import { updateIssueMethod } from '../functions/update-issue.js';
12
11
  import { ContributeToIssue } from '../policies/contribute-to-issue.js';
12
+ import { issueStatus } from '../states/index.js';
13
13
  export const Issue = nodeClass({
14
14
  description: 'One immutable-reference work item contained by exactly one Project.',
15
15
  icon: 'circle-dot',
@@ -1,7 +1,7 @@
1
1
  import { method } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
- import { issueStatus } from '../../../.runtime/states/issue/index.js';
4
3
  import { ContributeToIssue } from '../policies/contribute-to-issue.js';
4
+ import { issueStatus } from '../states/index.js';
5
5
  import { issueValue } from '../types/issue.js';
6
6
  export const transitionIssueMethod = method({
7
7
  description: 'Apply one legal Issue status event.',
@@ -1,4 +1,5 @@
1
1
  export { issueValue } from './types/index.js';
2
+ export { issueStatus, type IssueEvent, type IssueStatus } from './states/index.js';
2
3
  export { issue_assigned_to, issue_reported_by, issue_subtask_of, Issue, project_contains_issue, } from './classes/index.js';
3
4
  export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, setIssueParentMethod, setIssueTagsMethod, transitionIssueMethod, updateIssueMethod, } from './functions/index.js';
4
5
  export { ContributeToIssue, TraverseIssueAssignee, TraverseIssueParent, TraverseIssueReporter, TraverseProjectIssue, } from './policies/index.js';
@@ -1,4 +1,5 @@
1
1
  export { issueValue } from './types/index.js';
2
+ export { issueStatus } from './states/index.js';
2
3
  export { issue_assigned_to, issue_reported_by, issue_subtask_of, Issue, project_contains_issue, } from './classes/index.js';
3
4
  export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, setIssueParentMethod, setIssueTagsMethod, transitionIssueMethod, updateIssueMethod, } from './functions/index.js';
4
5
  export { ContributeToIssue, TraverseIssueAssignee, TraverseIssueParent, TraverseIssueReporter, TraverseProjectIssue, } from './policies/index.js';
@@ -0,0 +1,2 @@
1
+ export { issueStatus } from './issue-status.js';
2
+ export type { IssueEvent, IssueStatus } from './issue-status.js';
@@ -0,0 +1 @@
1
+ export { issueStatus } from './issue-status.js';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { nodeIdValue } from '../../../types/index.js';
3
- import { issueStatus } from '../../../.runtime/states/issue/index.js';
3
+ import { issueStatus } from '../states/index.js';
4
4
  export const issueValue = z.strictObject({
5
5
  id: nodeIdValue,
6
6
  reference: z.string().min(1).max(32),
@@ -169,12 +169,12 @@ export declare const Project: import("@astrale-os/sdk/schema").NodeClass<{
169
169
  readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<boolean, boolean, true, "archived", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "key", "self", undefined> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string[], string[], true, "memberIds", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "nextIssueNumber", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "ownerId", "self", never>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
170
170
  readonly name: "description";
171
171
  readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
172
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
173
- readonly name: "name";
174
- readonly key: "kernel.astrale.ai:class.Named.property.name";
175
172
  }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
176
173
  readonly name: "createdAt";
177
174
  readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
175
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
176
+ readonly name: "name";
177
+ readonly key: "kernel.astrale.ai:class.Named.property.name";
178
178
  }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
179
179
  readonly name: "updatedAt";
180
180
  readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
@@ -60,11 +60,11 @@ export declare const Tag: import("@astrale-os/sdk/schema").NodeClass<{
60
60
  }, "authorized", false, "default">>;
61
61
  };
62
62
  readonly effectiveProperties: (import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, false, "color", "self", never> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "slug", "self", undefined>) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
63
- readonly name: "name";
64
- readonly key: "kernel.astrale.ai:class.Named.property.name";
65
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
66
63
  readonly name: "createdAt";
67
64
  readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
65
+ }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
66
+ readonly name: "name";
67
+ readonly key: "kernel.astrale.ai:class.Named.property.name";
68
68
  }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true, undefined> & {
69
69
  readonly name: "updatedAt";
70
70
  readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/issues",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/astrale-os/domains.git",
@@ -28,12 +28,12 @@
28
28
  "registry": "https://registry.npmjs.org/"
29
29
  },
30
30
  "dependencies": {
31
- "@astrale-domains/shell": "0.1.0-beta.14",
32
- "@astrale-os/sdk": "0.5.0-beta.79",
31
+ "@astrale-domains/shell": "0.1.0-beta.17",
32
+ "@astrale-os/sdk": "0.5.0-beta.82",
33
33
  "zod": "^4.4.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@astrale-os/adapter-cloudflare": "0.5.0-beta.82",
36
+ "@astrale-os/adapter-cloudflare": "0.5.0-beta.85",
37
37
  "@astrale-os/ox": ">=0.1.4 <1.0.0",
38
38
  "@astrale-os/shell": "0.4.2-beta.8",
39
39
  "@astrale-os/shell-react": "0.3.2-beta.5",