@happyvertical/smrt-projects 0.51.31 → 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 (40) hide show
  1. package/README.md +2 -1
  2. package/dist/collections/DevelopmentRequests.d.ts +1 -1
  3. package/dist/collections/Issues.d.ts +7 -2
  4. package/dist/collections/ProjectIntegrations.d.ts +1 -1
  5. package/dist/collections/Projects.d.ts +6 -1
  6. package/dist/collections/PullRequests.d.ts +7 -2
  7. package/dist/collections/Repositories.d.ts +6 -1
  8. package/dist/collections/index.d.ts +12 -0
  9. package/dist/collections/index.d.ts.map +1 -0
  10. package/dist/index.d.ts +45 -0
  11. package/dist/index.js +28 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/managed-client.d.ts +6 -6
  14. package/dist/manifest.json +2 -2
  15. package/dist/migrations/moneyMinorUnits.d.ts +27 -1
  16. package/dist/models/Comment.d.ts +16 -2
  17. package/dist/models/Comment.d.ts.map +1 -1
  18. package/dist/models/DevelopmentRequest.d.ts +2 -2
  19. package/dist/models/DevelopmentRequestHistory.d.ts +2 -2
  20. package/dist/models/Issue.d.ts +10 -4
  21. package/dist/models/Label.d.ts +6 -1
  22. package/dist/models/Project.d.ts +10 -4
  23. package/dist/models/ProjectIntegration.d.ts +2 -2
  24. package/dist/models/ProjectIntegrationAudit.d.ts +2 -2
  25. package/dist/models/PullRequest.d.ts +8 -2
  26. package/dist/models/Repository.d.ts +10 -4
  27. package/dist/models/delivery-control-plane.d.ts +1 -1
  28. package/dist/models/index.d.ts +16 -0
  29. package/dist/models/index.d.ts.map +1 -0
  30. package/dist/models/service-evidence.d.ts +1 -1
  31. package/dist/prompts.d.ts +1 -1
  32. package/dist/services/assistance-request-service.d.ts +4 -4
  33. package/dist/services/delivery-service.d.ts +5 -5
  34. package/dist/services/development-request-service.d.ts +4 -4
  35. package/dist/services/project-board-service.d.ts +2 -2
  36. package/dist/services/service-evidence-service.d.ts +3 -3
  37. package/dist/services/subscription-commercial-resolver.d.ts +3 -3
  38. package/dist/smrt-knowledge.json +5 -5
  39. package/dist/ui.d.ts +7 -1
  40. package/package.json +12 -12
@@ -1,6 +1,6 @@
1
- import { DatabaseInterface } from '@happyvertical/sql';
2
- import { ProjectBoardMoveIntent } from './services/project-board-service';
3
- import { ManagedDevelopmentRequestCreateInput } from './types';
1
+ import type { DatabaseInterface } from '@happyvertical/sql';
2
+ import { type ProjectBoardMoveIntent } from './services/project-board-service';
3
+ import type { ManagedDevelopmentRequestCreateInput } from './types';
4
4
  export declare class ManagedProjectClient {
5
5
  #private;
6
6
  private constructor();
@@ -8,8 +8,8 @@ export declare class ManagedProjectClient {
8
8
  db: DatabaseInterface;
9
9
  requesterId: string;
10
10
  }): Promise<ManagedProjectClient>;
11
- createRequest(input: Omit<ManagedDevelopmentRequestCreateInput, 'requesterId'>): Promise<import('.').DevelopmentRequest>;
12
- listRequests(): Promise<import('.').DevelopmentRequest[]>;
11
+ createRequest(input: Omit<ManagedDevelopmentRequestCreateInput, 'requesterId'>): Promise<import(".").DevelopmentRequest>;
12
+ listRequests(): Promise<import(".").DevelopmentRequest[]>;
13
13
  /**
14
14
  * Move a project-board item through this authenticated integration.
15
15
  *
@@ -17,6 +17,6 @@ export declare class ManagedProjectClient {
17
17
  * authentication boundary server-side and ProjectBoardService reloads active
18
18
  * capability state again immediately before the provider mutation.
19
19
  */
20
- moveProjectBoardItem(input: ProjectBoardMoveIntent): Promise<import('./services').ProjectBoardMoveResult>;
20
+ moveProjectBoardItem(input: ProjectBoardMoveIntent): Promise<import("./services").ProjectBoardMoveResult>;
21
21
  }
22
22
  //# sourceMappingURL=managed-client.d.ts.map
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-projects",
5
- "packageVersion": "0.51.31",
5
+ "packageVersion": "0.51.33",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-projects:DevelopmentRequestHistoryCollection": {
8
8
  "name": "developmentrequesthistorycollection",
@@ -2235,7 +2235,7 @@
2235
2235
  "name": "getSentiment",
2236
2236
  "async": true,
2237
2237
  "parameters": [],
2238
- "returnType": "Promise<'positive' | 'negative' | 'neutral'>",
2238
+ "returnType": "Promise<CommentSentiment>",
2239
2239
  "isStatic": false,
2240
2240
  "isPublic": true
2241
2241
  }
@@ -1,4 +1,30 @@
1
- import { DatabaseInterface, MinorUnitsPreflightResult, MinorUnitsRescaleResult, MoneyColumnTarget } from '@happyvertical/smrt-core/migrations';
1
+ /**
2
+ * Projects money columns: floating-point major units → integer minor units.
3
+ *
4
+ * Ships as an explicit, opt-in migration rather than a schema-differ upgrade
5
+ * because REAL→INTEGER is not information-preserving: an automatic
6
+ * `ALTER … TYPE integer` would truncate `19.99` to `19`. The values have to be
7
+ * rescaled by the currency's minor-unit factor during the type change (#2401).
8
+ *
9
+ * ```ts
10
+ * console.log((await preflightProjectsMoneyMinorUnits(db)).summary);
11
+ * await migrateProjectsMoneyToMinorUnits(db);
12
+ * ```
13
+ *
14
+ * The two snapshot tables convert together: the delivery margin is
15
+ * `charge - compensation`, so a half-converted pair produces a nonsense number
16
+ * rather than an error.
17
+ *
18
+ * Both tables are immutable-on-save, and the immutability check compares a
19
+ * stringified field snapshot. Rescaling changes those strings, which is
20
+ * harmless — the snapshot is recomputed from the row on load — but it does mean
21
+ * a row must not be mid-flight while the migration runs.
22
+ *
23
+ * On SQLite the values are rescaled but the declared type cannot change in
24
+ * place; those columns come back in `declaredTypeChangePending` and need the
25
+ * table-rebuild path (#2370).
26
+ */
27
+ import { type DatabaseInterface, type MinorUnitsPreflightResult, type MinorUnitsRescaleResult, type MoneyColumnTarget } from '@happyvertical/smrt-core/migrations';
2
28
  /** Marker recorded in `_smrt_backfills` once the rescale has run. */
3
29
  export declare const PROJECTS_MONEY_MINOR_UNITS_BACKFILL = "@happyvertical/smrt-projects:money-minor-units:v1";
4
30
  /** Every projects money column that held major units before #2401. */
@@ -1,4 +1,15 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
1
+ /**
2
+ * Comment model - SMRT wrapper for issue/PR comments
3
+ *
4
+ * Represents a comment on an issue or pull request.
5
+ */
6
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
7
+ declare const SENTIMENT_CHOICES: {
8
+ readonly positive: null;
9
+ readonly negative: null;
10
+ readonly neutral: null;
11
+ };
12
+ type CommentSentiment = keyof typeof SENTIMENT_CHOICES;
2
13
  export interface CommentOptions extends SmrtObjectOptions {
3
14
  issueId?: string;
4
15
  commentId?: string;
@@ -72,6 +83,9 @@ export declare class Comment extends SmrtObject {
72
83
  *
73
84
  * @returns Sentiment classification
74
85
  */
75
- getSentiment(): Promise<'positive' | 'negative' | 'neutral'>;
86
+ getSentiment(): Promise<CommentSentiment>;
87
+ /** Preserve the existing generative prompt and permissive response parsing. */
88
+ private getLegacySentiment;
76
89
  }
90
+ export {};
77
91
  //# sourceMappingURL=Comment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Comment.d.ts","sourceRoot":"","sources":["../../src/models/Comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAKlC,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBAMa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAM;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE9B;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAM;gBAEL,OAAO,GAAE,cAAmB;IAYxC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAMzC;;;;OAIG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAuB7C;;;;OAIG;IACG,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IASlC;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;CAcnE"}
1
+ {"version":3,"file":"Comment.d.ts","sourceRoot":"","sources":["../../src/models/Comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAEL,UAAU,EACV,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAKlC,QAAA,MAAM,iBAAiB;;;;CAIb,CAAC;AAGX,KAAK,gBAAgB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAMvD,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBAMa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAM;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE9B;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAM;gBAEL,OAAO,GAAE,cAAmB;IAYxC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAMzC;;;;OAIG;IACG,kBAAkB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAuB7C;;;;OAIG;IACG,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;IASlC;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,gBAAgB,CAAC;IA6C/C,+EAA+E;YACjE,kBAAkB;CAcjC"}
@@ -1,5 +1,5 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { DevelopmentRequestEvidence, DevelopmentRequestOrigin, DevelopmentRequestStatus, DevelopmentRequestType, DevelopmentRequestVisibility } from '../types';
1
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
2
+ import type { DevelopmentRequestEvidence, DevelopmentRequestOrigin, DevelopmentRequestStatus, DevelopmentRequestType, DevelopmentRequestVisibility } from '../types';
3
3
  export interface DevelopmentRequestOptions extends SmrtObjectOptions {
4
4
  tenantId?: string;
5
5
  projectId?: string;
@@ -1,5 +1,5 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { DevelopmentRequestStatus } from '../types';
1
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
2
+ import type { DevelopmentRequestStatus } from '../types';
3
3
  export interface DevelopmentRequestHistoryOptions extends SmrtObjectOptions {
4
4
  tenantId?: string;
5
5
  requestId?: string;
@@ -1,7 +1,13 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { IncorporateFeedbackOptions, IncorporateFeedbackResult, IRepository, SyncOptions } from '../types';
3
- import { Comment } from './Comment';
4
- import { Repository } from './Repository';
1
+ /**
2
+ * Issue model - SMRT wrapper for issue tracking
3
+ *
4
+ * Provides persistent issue tracking with AI-powered feedback incorporation.
5
+ * Uses @happyvertical/repos SDK for actual API calls.
6
+ */
7
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
8
+ import type { IncorporateFeedbackOptions, IncorporateFeedbackResult, IRepository, SyncOptions } from '../types';
9
+ import type { Comment } from './Comment';
10
+ import type { Repository } from './Repository';
5
11
  export interface IssueOptions extends SmrtObjectOptions {
6
12
  repositoryId?: string;
7
13
  number?: number;
@@ -1,4 +1,9 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
1
+ /**
2
+ * Label model - SMRT wrapper for repository labels
3
+ *
4
+ * Represents a label that can be applied to issues and PRs.
5
+ */
6
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
2
7
  export interface LabelOptions extends SmrtObjectOptions {
3
8
  repositoryId?: string;
4
9
  name?: string;
@@ -1,7 +1,13 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { IProject, ItemFilters, ProjectField, ProjectItem, ProjectProviderType, ProjectStatus, SyncOptions } from '../types';
3
- import { Issue } from './Issue';
4
- import { PullRequest } from './PullRequest';
1
+ /**
2
+ * Project model - SMRT wrapper for project board operations
3
+ *
4
+ * Provides persistent project tracking with provider-agnostic operations.
5
+ * Uses @happyvertical/projects SDK for actual API calls.
6
+ */
7
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
8
+ import type { IProject, ItemFilters, ProjectField, ProjectItem, ProjectProviderType, ProjectStatus, SyncOptions } from '../types';
9
+ import type { Issue } from './Issue';
10
+ import type { PullRequest } from './PullRequest';
5
11
  export interface ProjectOptions extends SmrtObjectOptions {
6
12
  projectId?: string;
7
13
  projectNumber?: number;
@@ -1,5 +1,5 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { ProjectIntegrationCapability, ProjectIntegrationStatus } from '../types';
1
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
2
+ import type { ProjectIntegrationCapability, ProjectIntegrationStatus } from '../types';
3
3
  export interface ProjectIntegrationOptions extends SmrtObjectOptions {
4
4
  tenantId?: string;
5
5
  projectId?: string;
@@ -1,5 +1,5 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { ProjectIntegrationAuditAction } from '../types';
1
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
2
+ import type { ProjectIntegrationAuditAction } from '../types';
3
3
  export interface ProjectIntegrationAuditOptions extends SmrtObjectOptions {
4
4
  tenantId?: string;
5
5
  integrationId?: string;
@@ -1,5 +1,11 @@
1
- import { MergeMethod, SyncOptions } from '../types';
2
- import { Issue, IssueOptions } from './Issue';
1
+ /**
2
+ * PullRequest model - SMRT wrapper for pull request operations
3
+ *
4
+ * Extends Issue with PR-specific fields and methods.
5
+ * Uses @happyvertical/repos SDK for actual API calls.
6
+ */
7
+ import type { MergeMethod, SyncOptions } from '../types';
8
+ import { Issue, type IssueOptions } from './Issue';
3
9
  export interface PullRequestOptions extends IssueOptions {
4
10
  headRef?: string;
5
11
  baseRef?: string;
@@ -1,7 +1,13 @@
1
- import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core';
2
- import { CreateIssueInput, CreatePRInput, IRepository, RepositoryProviderType, SearchFilters, SyncOptions } from '../types';
3
- import { Issue } from './Issue';
4
- import { PullRequest } from './PullRequest';
1
+ /**
2
+ * Repository model - SMRT wrapper for repository operations
3
+ *
4
+ * Provides persistent repository tracking with provider-agnostic operations.
5
+ * Uses @happyvertical/repos SDK for actual API calls.
6
+ */
7
+ import { SmrtObject, type SmrtObjectOptions } from '@happyvertical/smrt-core';
8
+ import type { CreateIssueInput, CreatePRInput, IRepository, RepositoryProviderType, SearchFilters, SyncOptions } from '../types';
9
+ import type { Issue } from './Issue';
10
+ import type { PullRequest } from './PullRequest';
5
11
  export interface RepositoryOptions extends SmrtObjectOptions {
6
12
  owner?: string;
7
13
  name?: string;
@@ -1,5 +1,5 @@
1
1
  import { SmrtCollection, SmrtObject } from '@happyvertical/smrt-core';
2
- import { AssistanceClassification, DeliveryEventType } from '../types.js';
2
+ import type { AssistanceClassification, DeliveryEventType } from '../types.js';
3
3
  export declare function parseProjectJson<T>(value: string, fallback: T): T;
4
4
  /** Provider-neutral connection from a Development Request to canonical work. */
5
5
  export declare class DevelopmentRequestWorkLink extends SmrtObject {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @happyvertical/smrt-projects - Model exports
3
+ */
4
+ export { Comment, type CommentOptions } from './Comment';
5
+ export { DevelopmentRequest, type DevelopmentRequestOptions, } from './DevelopmentRequest';
6
+ export { DevelopmentRequestHistory, type DevelopmentRequestHistoryOptions, } from './DevelopmentRequestHistory';
7
+ export * from './delivery-control-plane.js';
8
+ export { Issue, type IssueOptions } from './Issue';
9
+ export { Label, type LabelOptions } from './Label';
10
+ export { Project, type ProjectOptions } from './Project';
11
+ export { ProjectIntegration, type ProjectIntegrationOptions, } from './ProjectIntegration';
12
+ export { ProjectIntegrationAudit, type ProjectIntegrationAuditOptions, } from './ProjectIntegrationAudit';
13
+ export { PullRequest, type PullRequestOptions } from './PullRequest';
14
+ export { Repository, type RepositoryOptions } from './Repository';
15
+ export * from './service-evidence.js';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,KAAK,gCAAgC,GACtC,MAAM,6BAA6B,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,cAAc,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { SmrtCollection, SmrtObject } from '@happyvertical/smrt-core';
2
- import { ServiceEvidence, ServiceParticipantKind, ServiceTimeEntrySource, ServiceTimeEntryStatus } from '../types.js';
2
+ import type { ServiceEvidence, ServiceParticipantKind, ServiceTimeEntrySource, ServiceTimeEntryStatus } from '../types.js';
3
3
  /**
4
4
  * Canonical Professional Service evidence shared by planning, development,
5
5
  * and support. Commercial snapshots are deliberately separate models.
package/dist/prompts.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const issueIncorporateFeedbackPrompt: import('@happyvertical/smrt-prompts').PromptDefinition;
1
+ export declare const issueIncorporateFeedbackPrompt: import("@happyvertical/smrt-prompts").PromptDefinition;
2
2
  //# sourceMappingURL=prompts.d.ts.map
@@ -1,9 +1,9 @@
1
- import { SmrtClassOptions } from '@happyvertical/smrt-core';
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
2
  import { DevelopmentRequestCollection } from '../collections/DevelopmentRequests.js';
3
3
  import { ProjectIntegrationCollection } from '../collections/ProjectIntegrations.js';
4
- import { AssistanceRequest, AssistanceRequestCollection, AssistanceRequestEventCollection } from '../models/delivery-control-plane.js';
5
- import { ProjectIntegration } from '../models/ProjectIntegration.js';
6
- import { AssistanceClassification, DevelopmentRequestEvidence, ManagedAssistanceRequestInput } from '../types.js';
4
+ import { type AssistanceRequest, AssistanceRequestCollection, AssistanceRequestEventCollection } from '../models/delivery-control-plane.js';
5
+ import type { ProjectIntegration } from '../models/ProjectIntegration.js';
6
+ import type { AssistanceClassification, DevelopmentRequestEvidence, ManagedAssistanceRequestInput } from '../types.js';
7
7
  export interface AssistanceSupportPort {
8
8
  openOrJoin(input: {
9
9
  assistanceRequestId: string;
@@ -1,10 +1,10 @@
1
- import { SmrtClassOptions } from '@happyvertical/smrt-core';
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
2
  import { DevelopmentRequestCollection } from '../collections/DevelopmentRequests.js';
3
3
  import { ProjectIntegrationCollection } from '../collections/ProjectIntegrations.js';
4
- import { PreviewApproval, PreviewApprovalCollection, ProjectDeliveryEvent, ProjectDeliveryEventCollection } from '../models/delivery-control-plane.js';
5
- import { ProjectIntegration } from '../models/ProjectIntegration.js';
6
- import { DeliveryEventType } from '../types.js';
7
- import { DevelopmentWorkAdapter } from './development-request-service.js';
4
+ import { type PreviewApproval, PreviewApprovalCollection, type ProjectDeliveryEvent, ProjectDeliveryEventCollection } from '../models/delivery-control-plane.js';
5
+ import type { ProjectIntegration } from '../models/ProjectIntegration.js';
6
+ import type { DeliveryEventType } from '../types.js';
7
+ import type { DevelopmentWorkAdapter } from './development-request-service.js';
8
8
  export interface DeliveryEventSender {
9
9
  send(event: ProjectDeliveryEvent): Promise<void>;
10
10
  }
@@ -1,8 +1,8 @@
1
- import { SmrtClassOptions } from '@happyvertical/smrt-core';
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
2
  import { DevelopmentRequestCollection } from '../collections/DevelopmentRequests.js';
3
- import { DevelopmentRequest } from '../models/DevelopmentRequest.js';
4
- import { DevelopmentRequestWorkLink, DevelopmentRequestWorkLinkCollection } from '../models/delivery-control-plane.js';
5
- import { DevelopmentTriageDecision } from '../types.js';
3
+ import type { DevelopmentRequest } from '../models/DevelopmentRequest.js';
4
+ import { type DevelopmentRequestWorkLink, DevelopmentRequestWorkLinkCollection } from '../models/delivery-control-plane.js';
5
+ import type { DevelopmentTriageDecision } from '../types.js';
6
6
  export interface DevelopmentWorkItem {
7
7
  type: string;
8
8
  id: string;
@@ -1,8 +1,8 @@
1
- import { SmrtClassOptions } from '@happyvertical/smrt-core';
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
2
  import { ProjectIntegrationCollection } from '../collections/ProjectIntegrations.js';
3
3
  import { ProjectCollection } from '../collections/Projects.js';
4
4
  import { ProjectIntegration } from '../models/ProjectIntegration.js';
5
- import { ProjectBoardMoveIntent } from '../project-board-types.js';
5
+ import type { ProjectBoardMoveIntent } from '../project-board-types.js';
6
6
  export type { ProjectBoardMoveIntent } from '../project-board-types.js';
7
7
  /** Pure data returned after a provider-backed project board move. */
8
8
  export interface ProjectBoardMoveResult {
@@ -1,6 +1,6 @@
1
- import { SmrtClassOptions } from '@happyvertical/smrt-core';
2
- import { ServiceChargeSnapshotCollection, ServiceCompensationSnapshotCollection, ServiceTimeEntry, ServiceTimeEntryCollection } from '../models/service-evidence.js';
3
- import { ServiceEvidence, ServiceParticipantKind, ServiceTimeEntrySource } from '../types.js';
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
+ import { ServiceChargeSnapshotCollection, ServiceCompensationSnapshotCollection, type ServiceTimeEntry, ServiceTimeEntryCollection } from '../models/service-evidence.js';
3
+ import type { ServiceEvidence, ServiceParticipantKind, ServiceTimeEntrySource } from '../types.js';
4
4
  export interface RecordServiceTimeInput {
5
5
  tenantId?: string | null;
6
6
  caseId?: string | null;
@@ -1,6 +1,6 @@
1
- import { CommercialUsageService, CommercialUsageServiceOptions } from '@happyvertical/smrt-subscriptions';
2
- import { ServiceTimeEntry } from '../models/service-evidence.js';
3
- import { CommercialSnapshot, ServiceCommercialResolver } from './service-evidence-service.js';
1
+ import { CommercialUsageService, type CommercialUsageServiceOptions } from '@happyvertical/smrt-subscriptions';
2
+ import type { ServiceTimeEntry } from '../models/service-evidence.js';
3
+ import type { CommercialSnapshot, ServiceCommercialResolver } from './service-evidence-service.js';
4
4
  export interface ProviderCompensationResolver {
5
5
  compensate(entry: ServiceTimeEntry): Promise<CommercialSnapshot>;
6
6
  }
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-projects",
6
- "packageVersion": "0.51.31",
6
+ "packageVersion": "0.51.33",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "dd743d950dad14d162e73dca3a7b020250e6e29c555837475b6fa8336ce0f138",
11
- "packageJson": "defed24231b40c7e5ed9aa10ea95be32b1557c84ec34aef3717a55bff499614b",
10
+ "manifest": "645d0367e349814ee3db580d45383de94d4708cbba81028f54c4ab1658e26027",
11
+ "packageJson": "d298f8af71e72bc2679f7b7273746da59cf2212b9716db2d124f2f81f36b67e8",
12
12
  "agents": "1642532c0c1bf16fb07b0184326f76f9fb3b142cb111e39f8e763c2d08be40d3"
13
13
  },
14
14
  "exports": [
@@ -42,7 +42,7 @@
42
42
  "fast-glob": "3.3.3",
43
43
  "svelte": "^5.57.1",
44
44
  "svelte-check": "^4.7.6",
45
- "typescript": "5.9.3",
45
+ "typescript": "6.0.3",
46
46
  "vite": "8.1.4",
47
47
  "vitest": "4.1.10"
48
48
  },
@@ -1894,7 +1894,7 @@
1894
1894
  {
1895
1895
  "name": "getSentiment",
1896
1896
  "async": true,
1897
- "returns": "Promise<'positive' | 'negative' | 'neutral'>"
1897
+ "returns": "Promise<CommentSentiment>"
1898
1898
  },
1899
1899
  {
1900
1900
  "name": "isApproval",
package/dist/ui.d.ts CHANGED
@@ -1,4 +1,10 @@
1
- import { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';
1
+ /**
2
+ * Projects Module UI Slot Declarations
3
+ *
4
+ * This file defines the UI extension points for the projects module.
5
+ * UI components are implemented in the ./svelte subpath.
6
+ */
7
+ import type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';
2
8
  /**
3
9
  * Projects module UI slots
4
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-projects",
3
- "version": "0.51.31",
3
+ "version": "0.51.33",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Provider-agnostic project management models (Issues, PRs, Repositories, Projects) for SMRT framework",
6
6
  "type": "module",
@@ -39,14 +39,14 @@
39
39
  "@happyvertical/logger": "^0.94.1",
40
40
  "@happyvertical/projects": "^0.94.1",
41
41
  "@happyvertical/repos": "^0.94.1",
42
- "@happyvertical/smrt-config": "0.51.31",
43
- "@happyvertical/smrt-core": "0.51.31",
44
- "@happyvertical/smrt-prompts": "0.51.31",
45
- "@happyvertical/smrt-svelte": "0.51.31",
46
- "@happyvertical/smrt-subscriptions": "0.51.31",
47
- "@happyvertical/smrt-tenancy": "0.51.31",
48
- "@happyvertical/smrt-types": "0.51.31",
49
- "@happyvertical/smrt-ui": "0.51.31",
42
+ "@happyvertical/smrt-config": "0.51.33",
43
+ "@happyvertical/smrt-core": "0.51.33",
44
+ "@happyvertical/smrt-prompts": "0.51.33",
45
+ "@happyvertical/smrt-svelte": "0.51.33",
46
+ "@happyvertical/smrt-subscriptions": "0.51.33",
47
+ "@happyvertical/smrt-tenancy": "0.51.33",
48
+ "@happyvertical/smrt-types": "0.51.33",
49
+ "@happyvertical/smrt-ui": "0.51.33",
50
50
  "@happyvertical/sql": "^0.94.1",
51
51
  "@happyvertical/utils": "^0.94.1"
52
52
  },
@@ -59,15 +59,15 @@
59
59
  }
60
60
  },
61
61
  "devDependencies": {
62
- "@happyvertical/smrt-cli": "0.51.31",
63
- "@happyvertical/smrt-vitest": "0.51.31",
62
+ "@happyvertical/smrt-cli": "0.51.33",
63
+ "@happyvertical/smrt-vitest": "0.51.33",
64
64
  "@sveltejs/package": "^2.5.8",
65
65
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
66
66
  "@types/node": "24.13.6",
67
67
  "fast-glob": "3.3.3",
68
68
  "svelte": "^5.57.1",
69
69
  "svelte-check": "^4.7.6",
70
- "typescript": "5.9.3",
70
+ "typescript": "6.0.3",
71
71
  "vite": "8.1.4",
72
72
  "vitest": "4.1.10"
73
73
  },