@nitrostack/cli 1.0.3 → 1.0.4
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/package.json +1 -1
- package/templates/typescript-oauth/src/modules/flights/booking.tools.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.prompts.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.resources.ts +2 -1
- package/templates/typescript-oauth/src/modules/flights/flights.tools.ts +2 -1
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.tools.ts +2 -1
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@ import { ToolDecorator as Tool, Widget, ExecutionContext, z, UseGuards, Injectab
|
|
|
2
2
|
import { OAuthGuard } from '../../guards/oauth.guard.js';
|
|
3
3
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// Note: Using explicit deps for ESM compatibility
|
|
6
|
+
@Injectable({ deps: [DuffelService] })
|
|
6
7
|
export class BookingTools {
|
|
7
8
|
constructor(private duffelService: DuffelService) { }
|
|
8
9
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PromptDecorator as Prompt, ExecutionContext, Injectable } from 'nitrostack';
|
|
2
2
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Note: Using explicit deps for ESM compatibility
|
|
5
|
+
@Injectable({ deps: [DuffelService] })
|
|
5
6
|
export class FlightPrompts {
|
|
6
7
|
constructor(private duffelService: DuffelService) { }
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ResourceDecorator as Resource, ExecutionContext, z, Injectable } from 'nitrostack';
|
|
2
2
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// Note: Using explicit deps for ESM compatibility
|
|
5
|
+
@Injectable({ deps: [DuffelService] })
|
|
5
6
|
export class FlightResources {
|
|
6
7
|
constructor(private duffelService: DuffelService) { }
|
|
7
8
|
|
|
@@ -3,7 +3,8 @@ import { OAuthGuard } from '../../guards/oauth.guard.js';
|
|
|
3
3
|
import { DuffelService } from '../../services/duffel.service.js';
|
|
4
4
|
import { format } from 'date-fns';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// Note: Using explicit deps for ESM compatibility
|
|
7
|
+
@Injectable({ deps: [DuffelService] })
|
|
7
8
|
export class FlightTools {
|
|
8
9
|
constructor(private duffelService: DuffelService) { }
|
|
9
10
|
|
|
@@ -15,7 +15,8 @@ const ShowShopSchema = z.object({
|
|
|
15
15
|
shopId: z.string().describe('ID of the pizza shop to display'),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// Note: Using explicit deps for ESM compatibility
|
|
19
|
+
@Injectable({ deps: [PizzazService] })
|
|
19
20
|
export class PizzazTools {
|
|
20
21
|
constructor(private readonly pizzazService: PizzazService) { }
|
|
21
22
|
|