@happyvertical/smrt-projects 0.51.32 → 0.51.33

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 (37) hide show
  1. package/dist/collections/DevelopmentRequests.d.ts +1 -1
  2. package/dist/collections/Issues.d.ts +7 -2
  3. package/dist/collections/ProjectIntegrations.d.ts +1 -1
  4. package/dist/collections/Projects.d.ts +6 -1
  5. package/dist/collections/PullRequests.d.ts +7 -2
  6. package/dist/collections/Repositories.d.ts +6 -1
  7. package/dist/collections/index.d.ts +12 -0
  8. package/dist/collections/index.d.ts.map +1 -0
  9. package/dist/index.d.ts +45 -0
  10. package/dist/index.js +1 -1
  11. package/dist/managed-client.d.ts +6 -6
  12. package/dist/manifest.json +1 -1
  13. package/dist/migrations/moneyMinorUnits.d.ts +27 -1
  14. package/dist/models/Comment.d.ts +6 -1
  15. package/dist/models/DevelopmentRequest.d.ts +2 -2
  16. package/dist/models/DevelopmentRequestHistory.d.ts +2 -2
  17. package/dist/models/Issue.d.ts +10 -4
  18. package/dist/models/Label.d.ts +6 -1
  19. package/dist/models/Project.d.ts +10 -4
  20. package/dist/models/ProjectIntegration.d.ts +2 -2
  21. package/dist/models/ProjectIntegrationAudit.d.ts +2 -2
  22. package/dist/models/PullRequest.d.ts +8 -2
  23. package/dist/models/Repository.d.ts +10 -4
  24. package/dist/models/delivery-control-plane.d.ts +1 -1
  25. package/dist/models/index.d.ts +16 -0
  26. package/dist/models/index.d.ts.map +1 -0
  27. package/dist/models/service-evidence.d.ts +1 -1
  28. package/dist/prompts.d.ts +1 -1
  29. package/dist/services/assistance-request-service.d.ts +4 -4
  30. package/dist/services/delivery-service.d.ts +5 -5
  31. package/dist/services/development-request-service.d.ts +4 -4
  32. package/dist/services/project-board-service.d.ts +2 -2
  33. package/dist/services/service-evidence-service.d.ts +3 -3
  34. package/dist/services/subscription-commercial-resolver.d.ts +3 -3
  35. package/dist/smrt-knowledge.json +4 -4
  36. package/dist/ui.d.ts +7 -1
  37. package/package.json +12 -12
@@ -1,6 +1,6 @@
1
1
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
2
  import { DevelopmentRequest } from '../models/DevelopmentRequest';
3
- import { DevelopmentRequestStatus, DevelopmentRequestTransitionInput, ManagedDevelopmentRequestCreateInput } from '../types';
3
+ import type { DevelopmentRequestStatus, DevelopmentRequestTransitionInput, ManagedDevelopmentRequestCreateInput } from '../types';
4
4
  export declare class DevelopmentRequestCollection extends SmrtCollection<DevelopmentRequest> {
5
5
  static readonly _itemClass: typeof DevelopmentRequest;
6
6
  createManaged(input: {
@@ -1,7 +1,12 @@
1
+ /**
2
+ * IssueCollection - Collection manager for Issue objects
3
+ *
4
+ * Provides querying and discovery operations for Issue entities.
5
+ */
1
6
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
7
  import { Issue } from '../models/Issue';
3
- import { Repository } from '../models/Repository';
4
- import { SearchFilters } from '../types';
8
+ import type { Repository } from '../models/Repository';
9
+ import type { SearchFilters } from '../types';
5
10
  export declare class IssueCollection extends SmrtCollection<Issue> {
6
11
  static readonly _itemClass: typeof Issue;
7
12
  /**
@@ -1,6 +1,6 @@
1
1
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
2
  import { ProjectIntegration } from '../models/ProjectIntegration';
3
- import { ProjectIntegrationCapability } from '../types';
3
+ import type { ProjectIntegrationCapability } from '../types';
4
4
  export declare class ProjectIntegrationCollection extends SmrtCollection<ProjectIntegration> {
5
5
  static readonly _itemClass: typeof ProjectIntegration;
6
6
  provision(input: {
@@ -1,6 +1,11 @@
1
+ /**
2
+ * ProjectCollection - Collection manager for Project objects
3
+ *
4
+ * Provides querying and discovery operations for Project entities.
5
+ */
1
6
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
7
  import { Project } from '../models/Project';
3
- import { ProjectProviderType } from '../types';
8
+ import type { ProjectProviderType } from '../types';
4
9
  export declare class ProjectCollection extends SmrtCollection<Project> {
5
10
  static readonly _itemClass: typeof Project;
6
11
  /**
@@ -1,7 +1,12 @@
1
+ /**
2
+ * PullRequestCollection - Collection manager for PullRequest objects
3
+ *
4
+ * Provides querying and discovery operations for PullRequest entities.
5
+ */
1
6
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
7
  import { PullRequest } from '../models/PullRequest';
3
- import { Repository } from '../models/Repository';
4
- import { SearchFilters } from '../types';
8
+ import type { Repository } from '../models/Repository';
9
+ import type { SearchFilters } from '../types';
5
10
  export declare class PullRequestCollection extends SmrtCollection<PullRequest> {
6
11
  static readonly _itemClass: typeof PullRequest;
7
12
  /**
@@ -1,6 +1,11 @@
1
+ /**
2
+ * RepositoryCollection - Collection manager for Repository objects
3
+ *
4
+ * Provides querying and discovery operations for Repository entities.
5
+ */
1
6
  import { SmrtCollection } from '@happyvertical/smrt-core';
2
7
  import { Repository } from '../models/Repository';
3
- import { RepositoryProviderType } from '../types';
8
+ import type { RepositoryProviderType } from '../types';
4
9
  export declare class RepositoryCollection extends SmrtCollection<Repository> {
5
10
  static readonly _itemClass: typeof Repository;
6
11
  /**
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @happyvertical/smrt-projects - Collection exports
3
+ */
4
+ export { DevelopmentRequestHistoryCollection } from './DevelopmentRequestHistories';
5
+ export { DevelopmentRequestCollection } from './DevelopmentRequests';
6
+ export { IssueCollection } from './Issues';
7
+ export { ProjectIntegrationAuditCollection } from './ProjectIntegrationAudits';
8
+ export { ProjectIntegrationCollection } from './ProjectIntegrations';
9
+ export { ProjectCollection } from './Projects';
10
+ export { PullRequestCollection } from './PullRequests';
11
+ export { RepositoryCollection } from './Repositories';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,48 @@
1
+ /**
2
+ * @happyvertical/smrt-projects
3
+ *
4
+ * Provider-agnostic project management models for the SMRT framework.
5
+ *
6
+ * This package provides SMRT-wrapped models for Issues, PullRequests, Repositories,
7
+ * and Projects. It uses @happyvertical/repos and @happyvertical/projects SDK packages
8
+ * for provider-agnostic operations (GitHub, GitLab, etc.).
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import {
13
+ * Repository,
14
+ * RepositoryCollection,
15
+ * Issue,
16
+ * IssueCollection
17
+ * } from '@happyvertical/smrt-projects';
18
+ *
19
+ * // Create a collection
20
+ * const repos = await RepositoryCollection.create({
21
+ * persistence: { type: 'sql', url: 'projects.db' }
22
+ * });
23
+ *
24
+ * // Get or create a repository
25
+ * const repo = await repos.getOrCreate('happyvertical', 'smrt', {
26
+ * providerType: 'github',
27
+ * tokenConfigKey: 'GITHUB_TOKEN'
28
+ * });
29
+ *
30
+ * // Sync repository data
31
+ * await repo.sync();
32
+ *
33
+ * // Discover issues
34
+ * const issues = await repo.getIssues({ state: 'open' });
35
+ *
36
+ * // Incorporate feedback into an issue (Living Spec)
37
+ * const result = await issue.incorporateFeedback({
38
+ * prompt: 'Synthesize the feedback',
39
+ * apply: true
40
+ * });
41
+ * ```
42
+ *
43
+ * @packageDocumentation
44
+ */
45
+ import './__smrt-register__.js';
1
46
  export { DevelopmentRequestHistoryCollection } from './collections/DevelopmentRequestHistories';
2
47
  export { DevelopmentRequestCollection } from './collections/DevelopmentRequests';
3
48
  export { IssueCollection } from './collections/Issues';