@elyracode/laravel-starters 0.9.56 → 0.9.58

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.
@@ -1,8 +1,29 @@
1
1
  import { existsSync, mkdirSync, writeFileSync } from "node:fs";
2
2
  import { dirname, join } from "node:path";
3
- import type { ExtensionAPI } from "@elyracode/coding-agent";
3
+ import type { AgentToolResult, ExtensionAPI } from "@elyracode/coding-agent";
4
4
  import { Type } from "typebox";
5
- import { type FetchedFile, fetchRepoContents, formatAsContext, STARTER_KITS } from "./starters.js";
5
+ import { fetchRepoContents, formatAsContext, STARTER_KITS } from "./starters.js";
6
+
7
+ /** Details reported by fetch_laravel_starter. */
8
+ interface FetchStarterDetails {
9
+ kit?: string;
10
+ stack?: string;
11
+ fileCount?: number;
12
+ features?: string[];
13
+ }
14
+
15
+ /** Details reported by apply_starter_files. */
16
+ interface ApplyStarterDetails {
17
+ written?: number;
18
+ skipped?: number;
19
+ }
20
+
21
+ /** Details reported by fetch_github_repo. */
22
+ interface FetchRepoDetails {
23
+ repo?: string;
24
+ branch?: string;
25
+ fileCount?: number;
26
+ }
6
27
 
7
28
  export default function (elyra: ExtensionAPI): void {
8
29
  // -- Command: /laravel:starter --
@@ -61,7 +82,7 @@ export default function (elyra: ExtensionAPI): void {
61
82
  description: "The starter kit ID: react, vue, svelte, livewire",
62
83
  }),
63
84
  }),
64
- execute: async (_toolCallId, params) => {
85
+ execute: async (_toolCallId, params): Promise<AgentToolResult<FetchStarterDetails>> => {
65
86
  const kit = STARTER_KITS.find((k) => k.id === params.kit_id);
66
87
  if (!kit) {
67
88
  const available = STARTER_KITS.map((k) => k.id).join(", ");
@@ -125,7 +146,7 @@ export default function (elyra: ExtensionAPI): void {
125
146
  }),
126
147
  ),
127
148
  }),
128
- execute: async (_toolCallId, params) => {
149
+ execute: async (_toolCallId, params): Promise<AgentToolResult<ApplyStarterDetails>> => {
129
150
  const kit = STARTER_KITS.find((k) => k.id === params.kit_id);
130
151
  if (!kit) {
131
152
  const available = STARTER_KITS.map((k) => k.id).join(", ");
@@ -202,7 +223,7 @@ export default function (elyra: ExtensionAPI): void {
202
223
  ),
203
224
  max_files: Type.Optional(Type.Number({ description: "Maximum number of files to fetch (default: 100)" })),
204
225
  }),
205
- execute: async (_toolCallId, params) => {
226
+ execute: async (_toolCallId, params): Promise<AgentToolResult<FetchRepoDetails>> => {
206
227
  try {
207
228
  const branch = params.branch || "main";
208
229
  const maxFiles = params.max_files || 100;
@@ -27,7 +27,8 @@ export const STARTER_KITS: StarterKit[] = [
27
27
  {
28
28
  id: "react",
29
29
  name: "Laravel React Starter Kit",
30
- description: "Inertia 2, React 19, TypeScript, Tailwind 4, shadcn/ui. Full auth with Fortify, 2FA, teams, WorkOS option.",
30
+ description:
31
+ "Inertia 2, React 19, TypeScript, Tailwind 4, shadcn/ui. Full auth with Fortify, 2FA, teams, WorkOS option.",
31
32
  repo: "laravel/react-starter-kit",
32
33
  branch: "main",
33
34
  stack: "react",
@@ -39,7 +40,8 @@ export const STARTER_KITS: StarterKit[] = [
39
40
  {
40
41
  id: "vue",
41
42
  name: "Laravel Vue Starter Kit",
42
- description: "Inertia 2, Vue 3 Composition API, TypeScript, Tailwind, shadcn-vue. Full auth with Fortify, 2FA, teams, WorkOS option.",
43
+ description:
44
+ "Inertia 2, Vue 3 Composition API, TypeScript, Tailwind, shadcn-vue. Full auth with Fortify, 2FA, teams, WorkOS option.",
43
45
  repo: "laravel/vue-starter-kit",
44
46
  branch: "main",
45
47
  stack: "VILT",
@@ -51,7 +53,8 @@ export const STARTER_KITS: StarterKit[] = [
51
53
  {
52
54
  id: "svelte",
53
55
  name: "Laravel Svelte Starter Kit",
54
- description: "Inertia 2, Svelte 5, TypeScript, Tailwind, shadcn-svelte. Full auth with Fortify, 2FA, teams, WorkOS option.",
56
+ description:
57
+ "Inertia 2, Svelte 5, TypeScript, Tailwind, shadcn-svelte. Full auth with Fortify, 2FA, teams, WorkOS option.",
55
58
  repo: "laravel/svelte-starter-kit",
56
59
  branch: "main",
57
60
  stack: "svelte",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyracode/laravel-starters",
3
- "version": "0.9.56",
3
+ "version": "0.9.58",
4
4
  "description": "Elyra extension for fetching, analyzing, and customizing Laravel starter kits from GitHub",
5
5
  "type": "module",
6
6
  "keywords": [