@livestore/cli 0.0.0-snapshot-2ac5fd340c97c9e07fe4c5dc6d31d5132aa6557c.0
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/.claude/settings.local.json +12 -0
- package/LICENSE +201 -0
- package/dist/cli +0 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +22 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/mcp-coach.d.ts +15 -0
- package/dist/commands/mcp-coach.d.ts.map +1 -0
- package/dist/commands/mcp-coach.js +87 -0
- package/dist/commands/mcp-coach.js.map +1 -0
- package/dist/commands/mcp-tools.d.ts +41 -0
- package/dist/commands/mcp-tools.d.ts.map +1 -0
- package/dist/commands/mcp-tools.js +148 -0
- package/dist/commands/mcp-tools.js.map +1 -0
- package/dist/commands/mcp.d.ts +5 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +67 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/new-project.d.ts +34 -0
- package/dist/commands/new-project.d.ts.map +1 -0
- package/dist/commands/new-project.js +163 -0
- package/dist/commands/new-project.js.map +1 -0
- package/dist/mcp-content/architecture.d.ts +2 -0
- package/dist/mcp-content/architecture.d.ts.map +1 -0
- package/dist/mcp-content/architecture.js +171 -0
- package/dist/mcp-content/architecture.js.map +1 -0
- package/dist/mcp-content/features.d.ts +2 -0
- package/dist/mcp-content/features.d.ts.map +1 -0
- package/dist/mcp-content/features.js +177 -0
- package/dist/mcp-content/features.js.map +1 -0
- package/dist/mcp-content/getting-started.d.ts +2 -0
- package/dist/mcp-content/getting-started.d.ts.map +1 -0
- package/dist/mcp-content/getting-started.js +405 -0
- package/dist/mcp-content/getting-started.js.map +1 -0
- package/dist/mcp-content/overview.d.ts +2 -0
- package/dist/mcp-content/overview.d.ts.map +1 -0
- package/dist/mcp-content/overview.js +120 -0
- package/dist/mcp-content/overview.js.map +1 -0
- package/dist/mcp-content/schemas/blog.d.ts +2 -0
- package/dist/mcp-content/schemas/blog.d.ts.map +1 -0
- package/dist/mcp-content/schemas/blog.js +223 -0
- package/dist/mcp-content/schemas/blog.js.map +1 -0
- package/dist/mcp-content/schemas/ecommerce.d.ts +2 -0
- package/dist/mcp-content/schemas/ecommerce.d.ts.map +1 -0
- package/dist/mcp-content/schemas/ecommerce.js +436 -0
- package/dist/mcp-content/schemas/ecommerce.js.map +1 -0
- package/dist/mcp-content/schemas/social.d.ts +2 -0
- package/dist/mcp-content/schemas/social.d.ts.map +1 -0
- package/dist/mcp-content/schemas/social.js +339 -0
- package/dist/mcp-content/schemas/social.js.map +1 -0
- package/dist/mcp-content/schemas/todo.d.ts +2 -0
- package/dist/mcp-content/schemas/todo.d.ts.map +1 -0
- package/dist/mcp-content/schemas/todo.js +172 -0
- package/dist/mcp-content/schemas/todo.js.map +1 -0
- package/dist/mod.d.ts +2 -0
- package/dist/mod.d.ts.map +1 -0
- package/dist/mod.js +2 -0
- package/dist/mod.js.map +1 -0
- package/dist/test-tool.d.ts +2 -0
- package/dist/test-tool.d.ts.map +1 -0
- package/dist/test-tool.js +57 -0
- package/dist/test-tool.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -0
- package/src/cli.ts +35 -0
- package/src/commands/mcp-coach.ts +121 -0
- package/src/commands/mcp-tools.ts +169 -0
- package/src/commands/mcp.ts +97 -0
- package/src/commands/new-project.ts +263 -0
- package/src/mcp-content/architecture.ts +170 -0
- package/src/mcp-content/features.ts +176 -0
- package/src/mcp-content/getting-started.ts +404 -0
- package/src/mcp-content/overview.ts +119 -0
- package/src/mcp-content/schemas/blog.ts +222 -0
- package/src/mcp-content/schemas/ecommerce.ts +435 -0
- package/src/mcp-content/schemas/social.ts +338 -0
- package/src/mcp-content/schemas/todo.ts +171 -0
- package/src/mod.ts +1 -0
- package/tsconfig.json +9 -0
package/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2025 Overengineering Studio
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
package/dist/cli
ADDED
Binary file
|
package/dist/cli.d.ts
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
import { Cli } from '@livestore/utils/node';
|
3
|
+
export declare const command: Cli.Command.Command<"livestore", import("@effect/platform/HttpClient").HttpClient | Cli.Prompt.Prompt.Environment | import("@effect/platform/CommandExecutor").CommandExecutor, Error | import("@effect/platform/HttpClientError").ResponseError | import("@effect/platform/Error").PlatformError, {
|
4
|
+
readonly verbose: boolean;
|
5
|
+
readonly subcommand: import("effect/Option").Option<{
|
6
|
+
readonly subcommand: import("effect/Option").Option<{}>;
|
7
|
+
} | {
|
8
|
+
readonly example: import("effect/Option").Option<string>;
|
9
|
+
readonly branch: string;
|
10
|
+
readonly path: import("effect/Option").Option<string>;
|
11
|
+
} | {
|
12
|
+
readonly name: string;
|
13
|
+
}>;
|
14
|
+
}>;
|
15
|
+
//# sourceMappingURL=cli.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,GAAG,EAAgB,MAAM,uBAAuB,CAAA;AAczD,eAAO,MAAM,OAAO;;;;;;;;;;;EAE+D,CAAA"}
|
package/dist/cli.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
import { Effect, FetchHttpClient, Layer, Logger, LogLevel } from '@livestore/utils/effect';
|
3
|
+
import { Cli, PlatformNode } from '@livestore/utils/node';
|
4
|
+
import { mcpCommand } from "./commands/mcp.js";
|
5
|
+
import { newProjectCommand } from "./commands/new-project.js";
|
6
|
+
const helloCommand = Cli.Command.make('hello', {
|
7
|
+
name: Cli.Options.text('name').pipe(Cli.Options.withDefault('World')),
|
8
|
+
}, Effect.fn(function* ({ name }) {
|
9
|
+
yield* Effect.log(`Hello, ${name}! 🎉`);
|
10
|
+
}));
|
11
|
+
export const command = Cli.Command.make('livestore', {
|
12
|
+
verbose: Cli.Options.boolean('verbose').pipe(Cli.Options.withDefault(false)),
|
13
|
+
}).pipe(Cli.Command.withSubcommands([helloCommand, mcpCommand, newProjectCommand]));
|
14
|
+
if (import.meta.main) {
|
15
|
+
const cli = Cli.Command.run(command, {
|
16
|
+
name: 'livestore',
|
17
|
+
version: '0.1.0',
|
18
|
+
});
|
19
|
+
const layer = Layer.mergeAll(PlatformNode.NodeContext.layer, FetchHttpClient.layer, Logger.minimumLogLevel(LogLevel.Info));
|
20
|
+
cli(process.argv).pipe(Effect.provide(layer), PlatformNode.NodeRuntime.runMain);
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAC1F,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CACnC,OAAO,EACP;IACE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;CACtE,EACD,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAoB;IAC7C,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,IAAI,MAAM,CAAC,CAAA;AACzC,CAAC,CAAC,CACH,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;IACnD,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;CAC7E,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAEnF,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACrB,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;QACnC,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAO;KACjB,CAAC,CAAA;IAEF,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAC1B,YAAY,CAAC,WAAW,CAAC,KAAK,EAC9B,eAAe,CAAC,KAAK,EACrB,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CACtC,CAAA;IAED,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AACjF,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { AiError, AiTool, Effect, Schema } from '@livestore/utils/effect';
|
2
|
+
export declare const coachTool: AiTool.AiTool<"livestore_coach", Schema.Struct<{
|
3
|
+
code: Schema.SchemaClass<string, string, never>;
|
4
|
+
codeType: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
5
|
+
}>, Schema.Struct<{
|
6
|
+
feedback: Schema.SchemaClass<string, string, never>;
|
7
|
+
score: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
8
|
+
suggestions: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
9
|
+
}>, typeof AiError.AiError, never>;
|
10
|
+
export declare const coachToolHandler: (args_0: any) => Effect.Effect<{
|
11
|
+
feedback: string;
|
12
|
+
score: number | undefined;
|
13
|
+
suggestions: string[];
|
14
|
+
}, AiError.AiError, never>;
|
15
|
+
//# sourceMappingURL=mcp-coach.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mcp-coach.d.ts","sourceRoot":"","sources":["../../src/commands/mcp-coach.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EAEP,MAAM,EAEN,MAAM,EAGN,MAAM,EACP,MAAM,yBAAyB,CAAA;AAGhC,eAAO,MAAM,SAAS;;;;;;;kCA+BpB,CAAA;AAWF,eAAO,MAAM,gBAAgB;;;;0BAiE5B,CAAA"}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { OpenAiClient, OpenAiLanguageModel } from '@effect/ai-openai';
|
2
|
+
import { AiError, AiLanguageModel, AiTool, Config, Effect, FetchHttpClient, Layer, Schema, } from '@livestore/utils/effect';
|
3
|
+
// Define the coach tool that analyzes LiveStore usage
|
4
|
+
export const coachTool = AiTool.make('livestore_coach', {
|
5
|
+
description: 'Analyze LiveStore code (schemas, queries, mutations, etc.) and provide AI-powered feedback on best practices, performance, and improvements.',
|
6
|
+
parameters: {
|
7
|
+
code: Schema.String.annotations({
|
8
|
+
description: 'The LiveStore code to analyze (TypeScript/JavaScript)',
|
9
|
+
}),
|
10
|
+
codeType: Schema.optional(Schema.String.annotations({
|
11
|
+
description: "Type of code being analyzed: 'schema', 'query', 'mutation', 'component', or 'general'",
|
12
|
+
})),
|
13
|
+
},
|
14
|
+
success: Schema.Struct({
|
15
|
+
feedback: Schema.String.annotations({
|
16
|
+
description: 'AI-generated feedback and recommendations for the code',
|
17
|
+
}),
|
18
|
+
score: Schema.optional(Schema.Number.annotations({
|
19
|
+
description: 'Code quality score from 1-10 (optional)',
|
20
|
+
})),
|
21
|
+
suggestions: Schema.Array(Schema.String.annotations({
|
22
|
+
description: 'Specific actionable suggestions for improvement',
|
23
|
+
})).annotations({
|
24
|
+
description: 'List of specific improvement suggestions',
|
25
|
+
}),
|
26
|
+
}),
|
27
|
+
failure: AiError.AiError,
|
28
|
+
});
|
29
|
+
const OpenAiClientLayer = OpenAiClient.layerConfig({
|
30
|
+
apiKey: Config.redacted('OPENAI_API_KEY'),
|
31
|
+
});
|
32
|
+
const OpenAiModel = OpenAiLanguageModel.layer({
|
33
|
+
model: 'gpt-5-nano',
|
34
|
+
});
|
35
|
+
// Coach tool handler that uses OpenAI for analysis
|
36
|
+
export const coachToolHandler = Effect.fnUntraced(function* ({ code, codeType }) {
|
37
|
+
// Build the analysis prompt
|
38
|
+
const codeTypeContext = codeType ? `This is ${codeType} code using LiveStore. ` : 'This is LiveStore code. ';
|
39
|
+
const prompt = `${codeTypeContext}Please review the following code and provide helpful feedback focusing on:
|
40
|
+
|
41
|
+
1. LiveStore best practices and conventions
|
42
|
+
2. Schema design and relationships (if applicable)
|
43
|
+
3. Query optimization and performance
|
44
|
+
4. Code structure and maintainability
|
45
|
+
5. Security considerations
|
46
|
+
6. Naming conventions
|
47
|
+
7. TypeScript usage and type safety
|
48
|
+
|
49
|
+
Code to review:
|
50
|
+
\`\`\`typescript
|
51
|
+
${code}
|
52
|
+
\`\`\`
|
53
|
+
|
54
|
+
Please provide:
|
55
|
+
1. Overall assessment and quality score (1-10)
|
56
|
+
2. Specific areas for improvement
|
57
|
+
3. Best practice recommendations
|
58
|
+
4. Any potential issues or concerns
|
59
|
+
|
60
|
+
Format your response as constructive feedback that helps developers improve their LiveStore usage.`;
|
61
|
+
const systemPrompt = `You are an expert LiveStore developer and code reviewer. Provide constructive, specific, and actionable feedback on LiveStore code. Focus on best practices, performance, and maintainability.`;
|
62
|
+
// Get OpenAI client and call the API
|
63
|
+
const llm = yield* AiLanguageModel.AiLanguageModel;
|
64
|
+
const completion = yield* llm.generateText({ prompt, system: systemPrompt });
|
65
|
+
const feedback = completion.text ?? 'Unable to generate feedback';
|
66
|
+
// Extract suggestions from the feedback (simple approach)
|
67
|
+
const suggestions = feedback
|
68
|
+
.split('\n')
|
69
|
+
.filter((line) => line.trim().startsWith('-') ||
|
70
|
+
line.trim().startsWith('*') ||
|
71
|
+
line.trim().startsWith('•') ||
|
72
|
+
line.toLowerCase().includes('recommend') ||
|
73
|
+
line.toLowerCase().includes('consider') ||
|
74
|
+
line.toLowerCase().includes('improve'))
|
75
|
+
.map((line) => line.replace(/^[-*•]\s*/, '').trim())
|
76
|
+
.filter((suggestion) => suggestion.length > 10)
|
77
|
+
.slice(0, 5); // Limit to 5 suggestions
|
78
|
+
// Try to extract a score (simple regex approach)
|
79
|
+
const scoreMatch = feedback.match(/(?:score|rating|quality).*?(\d+(?:\.\d+)?)/i);
|
80
|
+
const score = scoreMatch ? Number.parseFloat(scoreMatch[1] ?? '0') : undefined;
|
81
|
+
return {
|
82
|
+
feedback,
|
83
|
+
score: score && score >= 1 && score <= 10 ? score : undefined,
|
84
|
+
suggestions,
|
85
|
+
};
|
86
|
+
}, Effect.provide(Layer.provideMerge(OpenAiModel, OpenAiClientLayer)), Effect.provide(FetchHttpClient.layer), Effect.catchTag('ConfigError', (e) => Effect.die(e)));
|
87
|
+
//# sourceMappingURL=mcp-coach.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mcp-coach.js","sourceRoot":"","sources":["../../src/commands/mcp-coach.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACrE,OAAO,EACL,OAAO,EACP,eAAe,EACf,MAAM,EACN,MAAM,EACN,MAAM,EACN,eAAe,EACf,KAAK,EACL,MAAM,GACP,MAAM,yBAAyB,CAAA;AAEhC,sDAAsD;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE;IACtD,WAAW,EACT,8IAA8I;IAChJ,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YAC9B,WAAW,EAAE,uDAAuD;SACrE,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YACxB,WAAW,EAAE,uFAAuF;SACrG,CAAC,CACH;KACF;IACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,Q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,CAAA;AACH,CAAC,EACD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAClE,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,EACrC,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CACrD,CAAA"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { AiTool, AiToolkit, Effect, Schema } from '@livestore/utils/effect';
|
2
|
+
export declare const livestoreToolkit: AiToolkit.AiToolkit<AiTool.AiTool<"livestore_coach", Schema.Struct<{
|
3
|
+
code: Schema.SchemaClass<string, string, never>;
|
4
|
+
codeType: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
5
|
+
}>, Schema.Struct<{
|
6
|
+
feedback: Schema.SchemaClass<string, string, never>;
|
7
|
+
score: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
8
|
+
suggestions: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
9
|
+
}>, typeof import("@effect/ai/AiError").AiError, never> | AiTool.AiTool<"livestore_generate_schema", Schema.Struct<{
|
10
|
+
schemaType: Schema.SchemaClass<string, string, never>;
|
11
|
+
customDescription: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
12
|
+
}>, Schema.Struct<{
|
13
|
+
schemaCode: Schema.SchemaClass<string, string, never>;
|
14
|
+
explanation: Schema.SchemaClass<string, string, never>;
|
15
|
+
}>, typeof Schema.Never, never> | AiTool.AiTool<"livestore_get_example_schema", Schema.Struct<{
|
16
|
+
type: Schema.SchemaClass<string, string, never>;
|
17
|
+
}>, Schema.Struct<{
|
18
|
+
schemaCode: Schema.SchemaClass<string, string, never>;
|
19
|
+
description: Schema.SchemaClass<string, string, never>;
|
20
|
+
}>, typeof Schema.Never, never>>;
|
21
|
+
export declare const toolHandlers: {
|
22
|
+
livestore_coach: (args_0: any) => Effect.Effect<{
|
23
|
+
feedback: string;
|
24
|
+
score: number | undefined;
|
25
|
+
suggestions: string[];
|
26
|
+
}, import("@effect/ai/AiError").AiError, never>;
|
27
|
+
livestore_generate_schema: (args_0: {
|
28
|
+
readonly schemaType: string;
|
29
|
+
readonly customDescription?: string | undefined;
|
30
|
+
}) => Effect.Effect<{
|
31
|
+
schemaCode: string;
|
32
|
+
explanation: string;
|
33
|
+
}, never, never>;
|
34
|
+
livestore_get_example_schema: (args_0: {
|
35
|
+
readonly type: string;
|
36
|
+
}) => Effect.Effect<{
|
37
|
+
schemaCode: string;
|
38
|
+
description: string;
|
39
|
+
}, never, never>;
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=mcp-tools.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mcp-tools.d.ts","sourceRoot":"","sources":["../../src/commands/mcp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAQ3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;gCA8C5B,CAAA;AAGD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CA+GvB,CAAA"}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
import { AiTool, AiToolkit, Effect, Schema } from '@livestore/utils/effect';
|
2
|
+
import { blogSchemaContent } from "../mcp-content/schemas/blog.js";
|
3
|
+
import { ecommerceSchemaContent } from "../mcp-content/schemas/ecommerce.js";
|
4
|
+
import { socialSchemaContent } from "../mcp-content/schemas/social.js";
|
5
|
+
import { todoSchemaContent } from "../mcp-content/schemas/todo.js";
|
6
|
+
import { coachTool, coachToolHandler } from "./mcp-coach.js";
|
7
|
+
// Create toolkit with tools and handlers following Tim Smart's pattern
|
8
|
+
export const livestoreToolkit = AiToolkit.make(coachTool, AiTool.make('livestore_generate_schema', {
|
9
|
+
description: 'Generate a LiveStore schema for a specific use case. Choose from predefined types (todo, blog, social, ecommerce) or request a custom schema by providing a description.',
|
10
|
+
parameters: {
|
11
|
+
schemaType: Schema.String.annotations({
|
12
|
+
description: "Schema type: 'todo', 'blog', 'social', 'ecommerce', or 'custom'",
|
13
|
+
}),
|
14
|
+
customDescription: Schema.optional(Schema.String.annotations({
|
15
|
+
description: "For custom schemas: describe your data model needs (e.g., 'user management system with roles and permissions')",
|
16
|
+
})),
|
17
|
+
},
|
18
|
+
success: Schema.Struct({
|
19
|
+
schemaCode: Schema.String.annotations({
|
20
|
+
description: 'The generated LiveStore schema TypeScript code',
|
21
|
+
}),
|
22
|
+
explanation: Schema.String.annotations({
|
23
|
+
description: 'Brief explanation of the schema structure',
|
24
|
+
}),
|
25
|
+
}),
|
26
|
+
}), AiTool.make('livestore_get_example_schema', {
|
27
|
+
description: 'Get a complete example LiveStore schema with TypeScript code. Returns ready-to-use schema definitions for common application types.',
|
28
|
+
parameters: {
|
29
|
+
type: Schema.String.annotations({
|
30
|
+
description: "Example type: 'todo', 'blog', 'social', or 'ecommerce'",
|
31
|
+
}),
|
32
|
+
},
|
33
|
+
success: Schema.Struct({
|
34
|
+
schemaCode: Schema.String.annotations({
|
35
|
+
description: 'The complete LiveStore schema code',
|
36
|
+
}),
|
37
|
+
description: Schema.String.annotations({
|
38
|
+
description: 'Description of what this schema models',
|
39
|
+
}),
|
40
|
+
}),
|
41
|
+
})
|
42
|
+
.annotate(AiTool.Readonly, true)
|
43
|
+
.annotate(AiTool.Destructive, false));
|
44
|
+
// Tool handlers using Tim Smart's pattern
|
45
|
+
export const toolHandlers = livestoreToolkit.of({
|
46
|
+
livestore_coach: coachToolHandler,
|
47
|
+
livestore_generate_schema: Effect.fnUntraced(function* ({ schemaType, customDescription }) {
|
48
|
+
let schemaCode;
|
49
|
+
let explanation;
|
50
|
+
switch (schemaType.toLowerCase()) {
|
51
|
+
case 'todo':
|
52
|
+
schemaCode = todoSchemaContent;
|
53
|
+
explanation = 'Todo application schema with tasks, tags, and many-to-many relationships';
|
54
|
+
break;
|
55
|
+
case 'blog':
|
56
|
+
schemaCode = blogSchemaContent;
|
57
|
+
explanation = 'Blog platform schema with posts, comments, and publishing workflow';
|
58
|
+
break;
|
59
|
+
case 'social':
|
60
|
+
schemaCode = socialSchemaContent;
|
61
|
+
explanation = 'Social media schema with users, posts, follows, and likes';
|
62
|
+
break;
|
63
|
+
case 'ecommerce':
|
64
|
+
schemaCode = ecommerceSchemaContent;
|
65
|
+
explanation = 'E-commerce schema with products, categories, orders, and inventory';
|
66
|
+
break;
|
67
|
+
case 'custom': {
|
68
|
+
if (!customDescription) {
|
69
|
+
schemaCode = `// Custom schema requested but no description provided
|
70
|
+
import { Schema } from '@livestore/livestore'
|
71
|
+
|
72
|
+
// Please provide a description of your data model needs
|
73
|
+
export const CustomSchema = Schema.table('items', {
|
74
|
+
id: Schema.id,
|
75
|
+
name: Schema.text,
|
76
|
+
createdAt: Schema.datetime.default('now')
|
77
|
+
})
|
78
|
+
|
79
|
+
export const schema = Schema.create({
|
80
|
+
items: CustomSchema
|
81
|
+
})`;
|
82
|
+
explanation = 'Basic custom schema template - please provide more details about your requirements';
|
83
|
+
break;
|
84
|
+
}
|
85
|
+
// Generate a basic custom schema based on description
|
86
|
+
const tableName = customDescription.toLowerCase().includes('user')
|
87
|
+
? 'users'
|
88
|
+
: customDescription.toLowerCase().includes('product')
|
89
|
+
? 'products'
|
90
|
+
: customDescription.toLowerCase().includes('post')
|
91
|
+
? 'posts'
|
92
|
+
: 'items';
|
93
|
+
schemaCode = `// Custom schema based on: ${customDescription}
|
94
|
+
import { Schema } from '@livestore/livestore'
|
95
|
+
|
96
|
+
export const ${tableName.charAt(0).toUpperCase() + tableName.slice(0, -1)}Schema = Schema.table('${tableName}', {
|
97
|
+
id: Schema.id,
|
98
|
+
name: Schema.text,
|
99
|
+
description: Schema.text.optional(),
|
100
|
+
createdAt: Schema.datetime.default('now'),
|
101
|
+
updatedAt: Schema.datetime.default('now')
|
102
|
+
})
|
103
|
+
|
104
|
+
export const schema = Schema.create({
|
105
|
+
${tableName}: ${tableName.charAt(0).toUpperCase() + tableName.slice(0, -1)}Schema
|
106
|
+
})`;
|
107
|
+
explanation = `Custom schema generated for: ${customDescription}. This is a basic template - you may need to customize the fields based on your specific requirements.`;
|
108
|
+
break;
|
109
|
+
}
|
110
|
+
default:
|
111
|
+
schemaCode = todoSchemaContent;
|
112
|
+
explanation =
|
113
|
+
'Unknown schema type, returning todo example. Available types: todo, blog, social, ecommerce, custom';
|
114
|
+
}
|
115
|
+
return { schemaCode, explanation };
|
116
|
+
}),
|
117
|
+
livestore_get_example_schema: Effect.fnUntraced(function* ({ type }) {
|
118
|
+
let schemaCode;
|
119
|
+
let description;
|
120
|
+
switch (type.toLowerCase()) {
|
121
|
+
case 'todo':
|
122
|
+
schemaCode = todoSchemaContent;
|
123
|
+
description =
|
124
|
+
'Complete todo application with tasks, tags, and many-to-many relationships. Includes boolean completion status and timestamps.';
|
125
|
+
break;
|
126
|
+
case 'blog':
|
127
|
+
schemaCode = blogSchemaContent;
|
128
|
+
description =
|
129
|
+
'Blog platform with posts and comments. Features published status, unique slugs, and author attribution.';
|
130
|
+
break;
|
131
|
+
case 'social':
|
132
|
+
schemaCode = socialSchemaContent;
|
133
|
+
description =
|
134
|
+
'Social media platform with users, posts, follows, and likes. Includes user profiles and social interactions.';
|
135
|
+
break;
|
136
|
+
case 'ecommerce':
|
137
|
+
schemaCode = ecommerceSchemaContent;
|
138
|
+
description =
|
139
|
+
'E-commerce platform with products, categories, orders, and inventory management. Features order items and status tracking.';
|
140
|
+
break;
|
141
|
+
default:
|
142
|
+
schemaCode = todoSchemaContent;
|
143
|
+
description = 'Default todo example (unknown type requested). Available types: todo, blog, social, ecommerce';
|
144
|
+
}
|
145
|
+
return { schemaCode, description };
|
146
|
+
}),
|
147
|
+
});
|
148
|
+
//# sourceMappingURL=mcp-tools.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mcp-tools.js","sourceRoot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