vibes-diy 2.2.15 → 2.2.16-dev.2
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/cli/cmd-evento.js +2 -0
- package/cli/cmd-evento.js.map +1 -1
- package/cli/cmd-evento.test.js +1 -1
- package/cli/cmds/edit-cmd.d.ts +2 -2
- package/cli/cmds/edit-cmd.js +7 -7
- package/cli/cmds/edit-cmd.test.js +8 -8
- package/cli/cmds/generate-cmd.d.ts +2 -2
- package/cli/cmds/generate-cmd.js +6 -6
- package/cli/cmds/push-cmd.d.ts +1 -1
- package/cli/cmds/push-cmd.js +4 -4
- package/cli/cmds/put-asset-cmd.d.ts +2 -2
- package/cli/cmds/put-asset-cmd.js +5 -5
- package/cli/cmds/skills-cmd.d.ts +3 -3
- package/cli/cmds/skills-cmd.js +7 -7
- package/cli/cmds/system-cmd.d.ts +2 -2
- package/cli/cmds/system-cmd.js +5 -5
- package/cli/cmds/themes-cmd.d.ts +42 -0
- package/cli/cmds/themes-cmd.js +91 -0
- package/cli/cmds/themes-cmd.js.map +1 -0
- package/cli/cmds/user-settings-cmd.d.ts +1 -1
- package/cli/cmds/user-settings-cmd.js +4 -4
- package/cli/index.d.ts +1 -0
- package/cli/index.js +1 -0
- package/cli/index.js.map +1 -1
- package/cli/main.js +13 -1
- package/cli/main.js.map +1 -1
- package/package.json +5 -5
package/cli/cmd-evento.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Evento, EventoResult, Result } from "@adviser/cement";
|
|
2
2
|
import { userSettingsEvento } from "./cmds/user-settings-cmd.js";
|
|
3
3
|
import { skillsEvento } from "./cmds/skills-cmd.js";
|
|
4
|
+
import { themesEvento } from "./cmds/themes-cmd.js";
|
|
4
5
|
import { systemEvento } from "./cmds/system-cmd.js";
|
|
5
6
|
import { pushEvento } from "./cmds/push-cmd.js";
|
|
6
7
|
import { putAssetEvento } from "./cmds/put-asset-cmd.js";
|
|
@@ -29,6 +30,7 @@ export function cmdTsEvento() {
|
|
|
29
30
|
evento.push([
|
|
30
31
|
userSettingsEvento,
|
|
31
32
|
skillsEvento,
|
|
33
|
+
themesEvento,
|
|
32
34
|
systemEvento,
|
|
33
35
|
pushEvento,
|
|
34
36
|
putAssetEvento,
|
package/cli/cmd-evento.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-evento.js","sourceRoot":"","sources":["../../jsr/cli/cmd-evento.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAsC,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3H,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,YAAY,GAIb,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAEvC,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,GAAkD,EAClD,MAAS;IAET,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;QACvB,GAAG,GAAG,CAAC,OAAO;QACd,MAAM;KACmB,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,C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UAAU;QACV,sBAAsB;QACtB,YAAY;QACZ,WAAW;QACX,WAAW;QACX,WAAW;QACX,aAAa;QACb,iBAAiB;KAClB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/cli/cmd-evento.test.js
CHANGED
|
@@ -5,7 +5,7 @@ describe("cmdTsEvento", () => {
|
|
|
5
5
|
const handlers = cmdTsEvento()
|
|
6
6
|
.handlers()
|
|
7
7
|
.actions.map((h) => h.hash);
|
|
8
|
-
expect(handlers).toContain("
|
|
8
|
+
expect(handlers).toContain("vibes-diy.cli.edit");
|
|
9
9
|
});
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=cmd-evento.test.js.map
|
package/cli/cmds/edit-cmd.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { SelectedSlotInput } from "@vibes.diy/api-types";
|
|
|
5
5
|
import { CliCtx } from "../cli-ctx.js";
|
|
6
6
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
7
7
|
export declare const ResEdit: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
8
|
-
type: "
|
|
8
|
+
type: "vibes-diy.cli.res-edit";
|
|
9
9
|
appSlug: string;
|
|
10
10
|
userSlug: string;
|
|
11
11
|
url: string;
|
|
@@ -14,7 +14,7 @@ export declare const ResEdit: import("arktype/internal/variants/object.ts").Obje
|
|
|
14
14
|
export type ResEdit = typeof ResEdit.infer;
|
|
15
15
|
export declare function isResEdit(obj: unknown): obj is ResEdit;
|
|
16
16
|
export declare const ReqEdit: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
17
|
-
type: "
|
|
17
|
+
type: "vibes-diy.cli.edit";
|
|
18
18
|
appSlug: string;
|
|
19
19
|
prompt: string;
|
|
20
20
|
userSlug: string;
|
package/cli/cmds/edit-cmd.js
CHANGED
|
@@ -13,7 +13,7 @@ import { readProjectFiles, pushFromDir } from "./push-from-dir.js";
|
|
|
13
13
|
import { formatErr } from "./format-err.js";
|
|
14
14
|
import { formatNoFilesError } from "./format-no-files-error.js";
|
|
15
15
|
export const ResEdit = type({
|
|
16
|
-
type: "'
|
|
16
|
+
type: "'vibes-diy.cli.res-edit'",
|
|
17
17
|
appSlug: "string",
|
|
18
18
|
userSlug: "string",
|
|
19
19
|
url: "string",
|
|
@@ -23,7 +23,7 @@ export function isResEdit(obj) {
|
|
|
23
23
|
return !(ResEdit(obj) instanceof type.errors);
|
|
24
24
|
}
|
|
25
25
|
export const ReqEdit = type({
|
|
26
|
-
type: "'
|
|
26
|
+
type: "'vibes-diy.cli.edit'",
|
|
27
27
|
appSlug: "string",
|
|
28
28
|
prompt: "string",
|
|
29
29
|
userSlug: "string",
|
|
@@ -105,7 +105,7 @@ export async function readSeedFilesFromDir(dir) {
|
|
|
105
105
|
})));
|
|
106
106
|
}
|
|
107
107
|
export const editEvento = {
|
|
108
|
-
hash: "
|
|
108
|
+
hash: "vibes-diy.cli.edit",
|
|
109
109
|
validate: (ctx) => {
|
|
110
110
|
if (isReqEdit(ctx.enRequest)) {
|
|
111
111
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -115,7 +115,7 @@ export const editEvento = {
|
|
|
115
115
|
handle: async (ctx) => {
|
|
116
116
|
const ectx = ctx.ctx.getOrThrow("cliCtx");
|
|
117
117
|
if (ectx.vibesDiyApiFactory === undefined) {
|
|
118
|
-
return Result.Err("Not logged in. Run '
|
|
118
|
+
return Result.Err("Not logged in. Run 'vibes-diy login' first.");
|
|
119
119
|
}
|
|
120
120
|
const args = ctx.validated;
|
|
121
121
|
const api = ectx.vibesDiyApiFactory(args.apiUrl);
|
|
@@ -151,7 +151,7 @@ export const editEvento = {
|
|
|
151
151
|
: JSON.stringify({ model: payload.model, messages: payload.messages }, null, 2);
|
|
152
152
|
process.stdout.write(out + "\n");
|
|
153
153
|
return sendMsg(ctx, {
|
|
154
|
-
type: "
|
|
154
|
+
type: "vibes-diy.cli.res-edit",
|
|
155
155
|
appSlug: chat.appSlug,
|
|
156
156
|
userSlug: chat.userSlug,
|
|
157
157
|
url: "",
|
|
@@ -273,7 +273,7 @@ export const editEvento = {
|
|
|
273
273
|
return Result.Err(rPush.Err());
|
|
274
274
|
await sendProgress(ctx, "info", `Updated: ${dir}`);
|
|
275
275
|
return sendMsg(ctx, {
|
|
276
|
-
type: "
|
|
276
|
+
type: "vibes-diy.cli.res-edit",
|
|
277
277
|
appSlug: pushAppSlug,
|
|
278
278
|
userSlug: pushUserSlug,
|
|
279
279
|
url: rPush.Ok().publicUrl,
|
|
@@ -335,7 +335,7 @@ export function editCmd(ctx) {
|
|
|
335
335
|
}),
|
|
336
336
|
},
|
|
337
337
|
handler: ctx.cliStream.enqueue((args) => {
|
|
338
|
-
const base = { type: "
|
|
338
|
+
const base = { type: "vibes-diy.cli.edit", ...args };
|
|
339
339
|
return args.focus === undefined ? base : { ...base, focusPath: args.focus };
|
|
340
340
|
}),
|
|
341
341
|
});
|
|
@@ -155,7 +155,7 @@ function buildApi(opts) {
|
|
|
155
155
|
return { api, calls };
|
|
156
156
|
}
|
|
157
157
|
describe("editEvento", () => {
|
|
158
|
-
it("maps CLI args into a
|
|
158
|
+
it("maps CLI args into a vibes-diy.cli.edit request", async () => {
|
|
159
159
|
const cliStream = cmd_tsStream();
|
|
160
160
|
const ctx = {
|
|
161
161
|
sthis: { env: { get: () => undefined } },
|
|
@@ -180,7 +180,7 @@ describe("editEvento", () => {
|
|
|
180
180
|
expect(first.done).toBe(false);
|
|
181
181
|
const request = first.value.result;
|
|
182
182
|
expect(request).toMatchObject({
|
|
183
|
-
type: "
|
|
183
|
+
type: "vibes-diy.cli.edit",
|
|
184
184
|
appSlug: "todo-app",
|
|
185
185
|
prompt: "Refine the UI",
|
|
186
186
|
userSlug: "alice",
|
|
@@ -208,7 +208,7 @@ describe("editEvento", () => {
|
|
|
208
208
|
expect(first.done).toBe(false);
|
|
209
209
|
const request = first.value.result;
|
|
210
210
|
expect(request).toMatchObject({
|
|
211
|
-
type: "
|
|
211
|
+
type: "vibes-diy.cli.edit",
|
|
212
212
|
focusPath: "Card.jsx",
|
|
213
213
|
});
|
|
214
214
|
});
|
|
@@ -234,7 +234,7 @@ describe("editEvento", () => {
|
|
|
234
234
|
});
|
|
235
235
|
const sent = [];
|
|
236
236
|
const args = {
|
|
237
|
-
type: "
|
|
237
|
+
type: "vibes-diy.cli.edit",
|
|
238
238
|
appSlug: "todo-app",
|
|
239
239
|
prompt: "Update the greeting",
|
|
240
240
|
userSlug: "alice",
|
|
@@ -265,7 +265,7 @@ describe("editEvento", () => {
|
|
|
265
265
|
expect(pushedApp?.content).toContain("Hello, world");
|
|
266
266
|
const resEdit = sent.find((msg) => {
|
|
267
267
|
const maybe = msg;
|
|
268
|
-
return maybe.result?.type === "
|
|
268
|
+
return maybe.result?.type === "vibes-diy.cli.res-edit";
|
|
269
269
|
});
|
|
270
270
|
expect(resEdit.result.directory).toBe(cwd);
|
|
271
271
|
});
|
|
@@ -293,7 +293,7 @@ describe("editEvento", () => {
|
|
|
293
293
|
});
|
|
294
294
|
const sent = [];
|
|
295
295
|
const args = {
|
|
296
|
-
type: "
|
|
296
|
+
type: "vibes-diy.cli.edit",
|
|
297
297
|
appSlug: "todo-app",
|
|
298
298
|
prompt: "Edit in target dir",
|
|
299
299
|
userSlug: "alice",
|
|
@@ -315,7 +315,7 @@ describe("editEvento", () => {
|
|
|
315
315
|
expect(pushedApp?.content).toContain("Target Updated");
|
|
316
316
|
const resEdit = sent.find((msg) => {
|
|
317
317
|
const maybe = msg;
|
|
318
|
-
return maybe.result?.type === "
|
|
318
|
+
return maybe.result?.type === "vibes-diy.cli.res-edit";
|
|
319
319
|
});
|
|
320
320
|
expect(resEdit.result.directory).toBe(target);
|
|
321
321
|
});
|
|
@@ -362,7 +362,7 @@ describe("editEvento", () => {
|
|
|
362
362
|
});
|
|
363
363
|
const sent = [];
|
|
364
364
|
const args = {
|
|
365
|
-
type: "
|
|
365
|
+
type: "vibes-diy.cli.edit",
|
|
366
366
|
appSlug: "todo-app",
|
|
367
367
|
prompt: "Add a tea button",
|
|
368
368
|
userSlug: "alice",
|
|
@@ -3,7 +3,7 @@ import { ResEnsureAppSlug } from "@vibes.diy/api-types";
|
|
|
3
3
|
import { CliCtx } from "../cli-ctx.js";
|
|
4
4
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
5
5
|
export declare const ResGenerate: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
6
|
-
type: "
|
|
6
|
+
type: "vibes-diy.cli.res-generate";
|
|
7
7
|
appSlug: string;
|
|
8
8
|
userSlug: string;
|
|
9
9
|
url: string;
|
|
@@ -12,7 +12,7 @@ export declare const ResGenerate: import("arktype/internal/variants/object.ts").
|
|
|
12
12
|
export type ResGenerate = typeof ResGenerate.infer;
|
|
13
13
|
export declare function isResGenerate(obj: unknown): obj is ResGenerate;
|
|
14
14
|
export declare const ReqGenerate: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
15
|
-
type: "
|
|
15
|
+
type: "vibes-diy.cli.generate";
|
|
16
16
|
prompt: string;
|
|
17
17
|
appSlug: string;
|
|
18
18
|
userSlug: string;
|
package/cli/cmds/generate-cmd.js
CHANGED
|
@@ -12,7 +12,7 @@ import { pushFromDir } from "./push-from-dir.js";
|
|
|
12
12
|
import { formatErr } from "./format-err.js";
|
|
13
13
|
import { formatNoFilesError } from "./format-no-files-error.js";
|
|
14
14
|
export const ResGenerate = type({
|
|
15
|
-
type: "'
|
|
15
|
+
type: "'vibes-diy.cli.res-generate'",
|
|
16
16
|
appSlug: "string",
|
|
17
17
|
userSlug: "string",
|
|
18
18
|
url: "string",
|
|
@@ -22,7 +22,7 @@ export function isResGenerate(obj) {
|
|
|
22
22
|
return !(ResGenerate(obj) instanceof type.errors);
|
|
23
23
|
}
|
|
24
24
|
export const ReqGenerate = type({
|
|
25
|
-
type: "'
|
|
25
|
+
type: "'vibes-diy.cli.generate'",
|
|
26
26
|
prompt: "string",
|
|
27
27
|
appSlug: "string",
|
|
28
28
|
userSlug: "string",
|
|
@@ -35,7 +35,7 @@ export function isReqGenerate(obj) {
|
|
|
35
35
|
return !(ReqGenerate(obj) instanceof type.errors);
|
|
36
36
|
}
|
|
37
37
|
export const generateEvento = {
|
|
38
|
-
hash: "
|
|
38
|
+
hash: "vibes-diy.cli.generate",
|
|
39
39
|
validate: (ctx) => {
|
|
40
40
|
if (isReqGenerate(ctx.enRequest)) {
|
|
41
41
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -45,7 +45,7 @@ export const generateEvento = {
|
|
|
45
45
|
handle: async (ctx) => {
|
|
46
46
|
const ectx = ctx.ctx.getOrThrow("cliCtx");
|
|
47
47
|
if (ectx.vibesDiyApiFactory === undefined) {
|
|
48
|
-
return Result.Err("Not logged in. Run '
|
|
48
|
+
return Result.Err("Not logged in. Run 'vibes-diy login' first.");
|
|
49
49
|
}
|
|
50
50
|
const args = ctx.validated;
|
|
51
51
|
const api = ectx.vibesDiyApiFactory(args.apiUrl);
|
|
@@ -162,7 +162,7 @@ export const generateEvento = {
|
|
|
162
162
|
return Result.Err(rPush.Err());
|
|
163
163
|
await sendProgress(ctx, "info", `Created: ${dir}`);
|
|
164
164
|
return sendMsg(ctx, {
|
|
165
|
-
type: "
|
|
165
|
+
type: "vibes-diy.cli.res-generate",
|
|
166
166
|
appSlug: pushAppSlug,
|
|
167
167
|
userSlug: pushUserSlug,
|
|
168
168
|
url: rPush.Ok().publicUrl,
|
|
@@ -225,7 +225,7 @@ export function generateCmd(ctx) {
|
|
|
225
225
|
}),
|
|
226
226
|
},
|
|
227
227
|
handler: ctx.cliStream.enqueue((args) => {
|
|
228
|
-
const base = { type: "
|
|
228
|
+
const base = { type: "vibes-diy.cli.generate", ...args };
|
|
229
229
|
return args.focus === undefined ? base : { ...base, focusPath: args.focus };
|
|
230
230
|
}),
|
|
231
231
|
});
|
package/cli/cmds/push-cmd.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ResEnsureAppSlug } from "@vibes.diy/api-types";
|
|
|
3
3
|
import { CliCtx } from "../cli-ctx.js";
|
|
4
4
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
5
5
|
export declare const ReqPush: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
6
|
-
type: "
|
|
6
|
+
type: "vibes-diy.cli.push";
|
|
7
7
|
mode: string;
|
|
8
8
|
appSlug: string;
|
|
9
9
|
userSlug: string;
|
package/cli/cmds/push-cmd.js
CHANGED
|
@@ -7,7 +7,7 @@ import { sendMsg } from "../cmd-evento.js";
|
|
|
7
7
|
import { resolveUserSlug } from "../resolve-user-slug.js";
|
|
8
8
|
import { pushFromDir } from "./push-from-dir.js";
|
|
9
9
|
export const ReqPush = type({
|
|
10
|
-
type: "'
|
|
10
|
+
type: "'vibes-diy.cli.push'",
|
|
11
11
|
mode: "string",
|
|
12
12
|
appSlug: "string",
|
|
13
13
|
userSlug: "string",
|
|
@@ -20,7 +20,7 @@ export function isReqPush(obj) {
|
|
|
20
20
|
return !(ReqPush(obj) instanceof type.errors);
|
|
21
21
|
}
|
|
22
22
|
export const pushEvento = {
|
|
23
|
-
hash: "
|
|
23
|
+
hash: "vibes-diy.cli.push",
|
|
24
24
|
validate: (ctx) => {
|
|
25
25
|
if (isReqPush(ctx.enRequest)) {
|
|
26
26
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -30,7 +30,7 @@ export const pushEvento = {
|
|
|
30
30
|
handle: async (ctx) => {
|
|
31
31
|
const ectx = ctx.ctx.getOrThrow("cliCtx");
|
|
32
32
|
if (ectx.vibesDiyApiFactory === undefined) {
|
|
33
|
-
return Result.Err("Not logged in. Run '
|
|
33
|
+
return Result.Err("Not logged in. Run 'vibes-diy login' first.");
|
|
34
34
|
}
|
|
35
35
|
const args = ctx.validated;
|
|
36
36
|
const api = ectx.vibesDiyApiFactory(args.apiUrl, { idleTimeoutMs: args.idleTimeoutMs });
|
|
@@ -96,7 +96,7 @@ export function pushCmd(ctx) {
|
|
|
96
96
|
}),
|
|
97
97
|
},
|
|
98
98
|
handler: ctx.cliStream.enqueue((args) => {
|
|
99
|
-
return { type: "
|
|
99
|
+
return { type: "vibes-diy.cli.push", ...args };
|
|
100
100
|
}),
|
|
101
101
|
});
|
|
102
102
|
}
|
|
@@ -2,7 +2,7 @@ import { EventoHandler } from "@adviser/cement";
|
|
|
2
2
|
import { CliCtx } from "../cli-ctx.js";
|
|
3
3
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
4
4
|
export declare const ReqPutAsset: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
5
|
-
type: "
|
|
5
|
+
type: "vibes-diy.cli.put-asset";
|
|
6
6
|
file: string;
|
|
7
7
|
appSlug: string;
|
|
8
8
|
userSlug: string;
|
|
@@ -13,7 +13,7 @@ export declare const ReqPutAsset: import("arktype/internal/variants/object.ts").
|
|
|
13
13
|
export type ReqPutAsset = typeof ReqPutAsset.infer;
|
|
14
14
|
export declare function isReqPutAsset(obj: unknown): obj is ReqPutAsset;
|
|
15
15
|
export declare const ResPutAssetCli: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
16
|
-
type: "
|
|
16
|
+
type: "vibes-diy.cli.res-put-asset";
|
|
17
17
|
cid: string;
|
|
18
18
|
getURL: string;
|
|
19
19
|
size: number;
|
|
@@ -9,7 +9,7 @@ import { cmdTsDefaultArgs } from "../cli-ctx.js";
|
|
|
9
9
|
import { sendMsg } from "../cmd-evento.js";
|
|
10
10
|
import { resolveUserSlug } from "../resolve-user-slug.js";
|
|
11
11
|
export const ReqPutAsset = type({
|
|
12
|
-
type: "'
|
|
12
|
+
type: "'vibes-diy.cli.put-asset'",
|
|
13
13
|
file: "string",
|
|
14
14
|
appSlug: "string",
|
|
15
15
|
userSlug: "string",
|
|
@@ -21,7 +21,7 @@ export function isReqPutAsset(obj) {
|
|
|
21
21
|
return !(ReqPutAsset(obj) instanceof type.errors);
|
|
22
22
|
}
|
|
23
23
|
export const ResPutAssetCli = type({
|
|
24
|
-
type: "'
|
|
24
|
+
type: "'vibes-diy.cli.res-put-asset'",
|
|
25
25
|
cid: "string",
|
|
26
26
|
getURL: "string",
|
|
27
27
|
size: "number",
|
|
@@ -70,7 +70,7 @@ function hostRoot(apiUrl) {
|
|
|
70
70
|
return `${u.protocol}//${u.host}`;
|
|
71
71
|
}
|
|
72
72
|
export const putAssetEvento = {
|
|
73
|
-
hash: "
|
|
73
|
+
hash: "vibes-diy.cli.put-asset",
|
|
74
74
|
validate: (ctx) => {
|
|
75
75
|
if (isReqPutAsset(ctx.enRequest)) {
|
|
76
76
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -138,7 +138,7 @@ export const putAssetEvento = {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
return sendMsg(ctx, {
|
|
141
|
-
type: "
|
|
141
|
+
type: "vibes-diy.cli.res-put-asset",
|
|
142
142
|
cid: body.cid,
|
|
143
143
|
getURL: body.getURL,
|
|
144
144
|
size: body.size,
|
|
@@ -188,7 +188,7 @@ export function putAssetCmd(ctx) {
|
|
|
188
188
|
handler: ctx.cliStream.enqueue((args) => {
|
|
189
189
|
const mimeType = args.mimeType === "" ? inferMimeType(args.file) : args.mimeType;
|
|
190
190
|
return {
|
|
191
|
-
type: "
|
|
191
|
+
type: "vibes-diy.cli.put-asset",
|
|
192
192
|
file: args.file,
|
|
193
193
|
appSlug: args.appSlug,
|
|
194
194
|
userSlug: args.userSlug,
|
package/cli/cmds/skills-cmd.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EventoHandler } from "@adviser/cement";
|
|
|
2
2
|
import { CliCtx } from "../cli-ctx.js";
|
|
3
3
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
4
4
|
export declare const ResSkillsList: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
5
|
-
type: "
|
|
5
|
+
type: "vibes-diy.cli.res-skills-list";
|
|
6
6
|
skills: {
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
@@ -11,7 +11,7 @@ export declare const ResSkillsList: import("arktype/internal/variants/object.ts"
|
|
|
11
11
|
export type ResSkillsList = typeof ResSkillsList.infer;
|
|
12
12
|
export declare function isResSkillsList(obj: unknown): obj is ResSkillsList;
|
|
13
13
|
export declare const ResSkillContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
14
|
-
type: "
|
|
14
|
+
type: "vibes-diy.cli.res-skill-content";
|
|
15
15
|
name: string;
|
|
16
16
|
content: string;
|
|
17
17
|
}, {}>;
|
|
@@ -19,7 +19,7 @@ export type ResSkillContent = typeof ResSkillContent.infer;
|
|
|
19
19
|
export declare function isResSkillContent(obj: unknown): obj is ResSkillContent;
|
|
20
20
|
type ResSkills = ResSkillsList | ResSkillContent;
|
|
21
21
|
export declare const ReqSkills: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
22
|
-
type: "
|
|
22
|
+
type: "vibes-diy.cli.skills";
|
|
23
23
|
}, {}>;
|
|
24
24
|
export type ReqSkills = typeof ReqSkills.infer;
|
|
25
25
|
export declare function isReqSkills(obj: unknown): obj is ReqSkills;
|
package/cli/cmds/skills-cmd.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getLlmCatalog, getLlmCatalogNames, getSkillText } from "@vibes.diy/prom
|
|
|
5
5
|
import { cmdTsDefaultArgs } from "../cli-ctx.js";
|
|
6
6
|
import { sendMsg } from "../cmd-evento.js";
|
|
7
7
|
export const ResSkillsList = type({
|
|
8
|
-
type: "'
|
|
8
|
+
type: "'vibes-diy.cli.res-skills-list'",
|
|
9
9
|
skills: type({
|
|
10
10
|
name: "string",
|
|
11
11
|
description: "string",
|
|
@@ -15,7 +15,7 @@ export function isResSkillsList(obj) {
|
|
|
15
15
|
return !(ResSkillsList(obj) instanceof type.errors);
|
|
16
16
|
}
|
|
17
17
|
export const ResSkillContent = type({
|
|
18
|
-
type: "'
|
|
18
|
+
type: "'vibes-diy.cli.res-skill-content'",
|
|
19
19
|
name: "string",
|
|
20
20
|
content: "string",
|
|
21
21
|
});
|
|
@@ -23,14 +23,14 @@ export function isResSkillContent(obj) {
|
|
|
23
23
|
return !(ResSkillContent(obj) instanceof type.errors);
|
|
24
24
|
}
|
|
25
25
|
export const ReqSkills = type({
|
|
26
|
-
type: "'
|
|
26
|
+
type: "'vibes-diy.cli.skills'",
|
|
27
27
|
});
|
|
28
28
|
export function isReqSkills(obj) {
|
|
29
29
|
return !(ReqSkills(obj) instanceof type.errors);
|
|
30
30
|
}
|
|
31
31
|
const SkillsRawArgs = type({ name: "string" });
|
|
32
32
|
export const skillsEvento = {
|
|
33
|
-
hash: "
|
|
33
|
+
hash: "vibes-diy.cli.skills",
|
|
34
34
|
validate: (ctx) => {
|
|
35
35
|
if (isReqSkills(ctx.enRequest)) {
|
|
36
36
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -51,7 +51,7 @@ export const skillsEvento = {
|
|
|
51
51
|
}
|
|
52
52
|
const skills = rCatalog.Ok().map((s) => ({ name: s.name, description: s.description }));
|
|
53
53
|
return sendMsg(ctx, {
|
|
54
|
-
type: "
|
|
54
|
+
type: "vibes-diy.cli.res-skills-list",
|
|
55
55
|
skills,
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -68,7 +68,7 @@ export const skillsEvento = {
|
|
|
68
68
|
return Result.Err(`Failed to load skill content: ${rText.Err().message}`);
|
|
69
69
|
}
|
|
70
70
|
return sendMsg(ctx, {
|
|
71
|
-
type: "
|
|
71
|
+
type: "vibes-diy.cli.res-skill-content",
|
|
72
72
|
name,
|
|
73
73
|
content: rText.Ok(),
|
|
74
74
|
});
|
|
@@ -92,7 +92,7 @@ export function skillsCmd(ctx) {
|
|
|
92
92
|
}),
|
|
93
93
|
},
|
|
94
94
|
handler: ctx.cliStream.enqueue((_args) => {
|
|
95
|
-
return { type: "
|
|
95
|
+
return { type: "vibes-diy.cli.skills" };
|
|
96
96
|
}),
|
|
97
97
|
});
|
|
98
98
|
}
|
package/cli/cmds/system-cmd.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { EventoHandler } from "@adviser/cement";
|
|
|
2
2
|
import { CliCtx } from "../cli-ctx.js";
|
|
3
3
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
4
4
|
export declare const ResSystem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
5
|
-
type: "
|
|
5
|
+
type: "vibes-diy.cli.res-system";
|
|
6
6
|
systemPrompt: string;
|
|
7
7
|
}, {}>;
|
|
8
8
|
export type ResSystem = typeof ResSystem.infer;
|
|
9
9
|
export declare function isResSystem(obj: unknown): obj is ResSystem;
|
|
10
10
|
export declare const ReqSystem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
11
|
-
type: "
|
|
11
|
+
type: "vibes-diy.cli.system";
|
|
12
12
|
}, {}>;
|
|
13
13
|
export type ReqSystem = typeof ReqSystem.infer;
|
|
14
14
|
export declare function isReqSystem(obj: unknown): obj is ReqSystem;
|
package/cli/cmds/system-cmd.js
CHANGED
|
@@ -5,20 +5,20 @@ import { makeBaseSystemPrompt, getCliFooter } from "@vibes.diy/prompts";
|
|
|
5
5
|
import { cmdTsDefaultArgs } from "../cli-ctx.js";
|
|
6
6
|
import { sendMsg } from "../cmd-evento.js";
|
|
7
7
|
export const ResSystem = type({
|
|
8
|
-
type: "'
|
|
8
|
+
type: "'vibes-diy.cli.res-system'",
|
|
9
9
|
systemPrompt: "string",
|
|
10
10
|
});
|
|
11
11
|
export function isResSystem(obj) {
|
|
12
12
|
return !(ResSystem(obj) instanceof type.errors);
|
|
13
13
|
}
|
|
14
14
|
export const ReqSystem = type({
|
|
15
|
-
type: "'
|
|
15
|
+
type: "'vibes-diy.cli.system'",
|
|
16
16
|
});
|
|
17
17
|
export function isReqSystem(obj) {
|
|
18
18
|
return !(ReqSystem(obj) instanceof type.errors);
|
|
19
19
|
}
|
|
20
20
|
export const systemEvento = {
|
|
21
|
-
hash: "
|
|
21
|
+
hash: "vibes-diy.cli.system",
|
|
22
22
|
validate: (ctx) => {
|
|
23
23
|
if (isReqSystem(ctx.enRequest)) {
|
|
24
24
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -36,7 +36,7 @@ export const systemEvento = {
|
|
|
36
36
|
const rFooter = await exception2Result(() => getCliFooter());
|
|
37
37
|
const footer = rFooter.isOk() ? "\n" + rFooter.Ok() : "";
|
|
38
38
|
return sendMsg(ctx, {
|
|
39
|
-
type: "
|
|
39
|
+
type: "vibes-diy.cli.res-system",
|
|
40
40
|
systemPrompt: rPrompt.Ok().systemPrompt + footer,
|
|
41
41
|
});
|
|
42
42
|
},
|
|
@@ -49,7 +49,7 @@ export function systemCmd(ctx) {
|
|
|
49
49
|
...cmdTsDefaultArgs(ctx),
|
|
50
50
|
},
|
|
51
51
|
handler: ctx.cliStream.enqueue((_args) => {
|
|
52
|
-
return { type: "
|
|
52
|
+
return { type: "vibes-diy.cli.system" };
|
|
53
53
|
}),
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventoHandler } from "@adviser/cement";
|
|
2
|
+
import { CliCtx } from "../cli-ctx.js";
|
|
3
|
+
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
4
|
+
export declare const ResThemesList: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
5
|
+
type: "use-vibes.cli.res-themes-list";
|
|
6
|
+
themes: {
|
|
7
|
+
slug: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
}, {}>;
|
|
11
|
+
export type ResThemesList = typeof ResThemesList.infer;
|
|
12
|
+
export declare function isResThemesList(obj: unknown): obj is ResThemesList;
|
|
13
|
+
export declare const ResThemeContent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
14
|
+
type: "use-vibes.cli.res-theme-content";
|
|
15
|
+
slug: string;
|
|
16
|
+
content: string;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export type ResThemeContent = typeof ResThemeContent.infer;
|
|
19
|
+
export declare function isResThemeContent(obj: unknown): obj is ResThemeContent;
|
|
20
|
+
type ResThemes = ResThemesList | ResThemeContent;
|
|
21
|
+
export declare const ReqThemes: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
22
|
+
type: "use-vibes.cli.themes";
|
|
23
|
+
}, {}>;
|
|
24
|
+
export type ReqThemes = typeof ReqThemes.infer;
|
|
25
|
+
export declare function isReqThemes(obj: unknown): obj is ReqThemes;
|
|
26
|
+
export declare const themesEvento: EventoHandler<WrapCmdTSMsg<unknown>, ReqThemes, ResThemes>;
|
|
27
|
+
export declare function themesCmd(ctx: CliCtx): Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
28
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
29
|
+
slug: string;
|
|
30
|
+
apiUrl: string;
|
|
31
|
+
json: boolean;
|
|
32
|
+
text: boolean;
|
|
33
|
+
}>>;
|
|
34
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
|
|
35
|
+
slug: string;
|
|
36
|
+
apiUrl: string;
|
|
37
|
+
json: boolean;
|
|
38
|
+
text: boolean;
|
|
39
|
+
}, never> & {
|
|
40
|
+
run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<never>>;
|
|
41
|
+
} & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { command, option, string } from "cmd-ts";
|
|
2
|
+
import { Result, Option, exception2Result, } from "@adviser/cement";
|
|
3
|
+
import { type } from "arktype";
|
|
4
|
+
import { getThemeCatalogNames, getThemeText, vibesThemes } from "@vibes.diy/prompts";
|
|
5
|
+
import { cmdTsDefaultArgs } from "../cli-ctx.js";
|
|
6
|
+
import { sendMsg } from "../cmd-evento.js";
|
|
7
|
+
export const ResThemesList = type({
|
|
8
|
+
type: "'use-vibes.cli.res-themes-list'",
|
|
9
|
+
themes: type({
|
|
10
|
+
slug: "string",
|
|
11
|
+
name: "string",
|
|
12
|
+
}).array(),
|
|
13
|
+
});
|
|
14
|
+
export function isResThemesList(obj) {
|
|
15
|
+
return !(ResThemesList(obj) instanceof type.errors);
|
|
16
|
+
}
|
|
17
|
+
export const ResThemeContent = type({
|
|
18
|
+
type: "'use-vibes.cli.res-theme-content'",
|
|
19
|
+
slug: "string",
|
|
20
|
+
content: "string",
|
|
21
|
+
});
|
|
22
|
+
export function isResThemeContent(obj) {
|
|
23
|
+
return !(ResThemeContent(obj) instanceof type.errors);
|
|
24
|
+
}
|
|
25
|
+
export const ReqThemes = type({
|
|
26
|
+
type: "'use-vibes.cli.themes'",
|
|
27
|
+
});
|
|
28
|
+
export function isReqThemes(obj) {
|
|
29
|
+
return !(ReqThemes(obj) instanceof type.errors);
|
|
30
|
+
}
|
|
31
|
+
const ThemesRawArgs = type({ slug: "string" });
|
|
32
|
+
export const themesEvento = {
|
|
33
|
+
hash: "use-vibes.cli.themes",
|
|
34
|
+
validate: (ctx) => {
|
|
35
|
+
if (isReqThemes(ctx.enRequest)) {
|
|
36
|
+
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
37
|
+
}
|
|
38
|
+
return Promise.resolve(Result.Ok(Option.None()));
|
|
39
|
+
},
|
|
40
|
+
handle: async (ctx) => {
|
|
41
|
+
const rRaw = ThemesRawArgs(ctx.request.cmdTs.raw);
|
|
42
|
+
if (rRaw instanceof type.errors) {
|
|
43
|
+
return Result.Err(`invalid args: ${rRaw.summary}`);
|
|
44
|
+
}
|
|
45
|
+
const slug = rRaw.slug;
|
|
46
|
+
switch (true) {
|
|
47
|
+
case slug === "": {
|
|
48
|
+
const themes = vibesThemes.map((t) => ({ slug: t.slug, name: t.name }));
|
|
49
|
+
return sendMsg(ctx, {
|
|
50
|
+
type: "use-vibes.cli.res-themes-list",
|
|
51
|
+
themes,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
default: {
|
|
55
|
+
if (getThemeCatalogNames().has(slug) === false) {
|
|
56
|
+
return Result.Err(`Unknown theme: ${slug}`);
|
|
57
|
+
}
|
|
58
|
+
const rText = await exception2Result(() => getThemeText(slug));
|
|
59
|
+
if (rText.isErr()) {
|
|
60
|
+
return Result.Err(`Failed to load theme content: ${rText.Err().message}`);
|
|
61
|
+
}
|
|
62
|
+
return sendMsg(ctx, {
|
|
63
|
+
type: "use-vibes.cli.res-theme-content",
|
|
64
|
+
slug,
|
|
65
|
+
content: rText.Ok(),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
export function themesCmd(ctx) {
|
|
72
|
+
return command({
|
|
73
|
+
name: "themes",
|
|
74
|
+
description: "List available themes or show a theme's design markdown.",
|
|
75
|
+
args: {
|
|
76
|
+
...cmdTsDefaultArgs(ctx),
|
|
77
|
+
slug: option({
|
|
78
|
+
long: "slug",
|
|
79
|
+
short: "s",
|
|
80
|
+
description: "Theme slug to show content for (omit to list all)",
|
|
81
|
+
type: string,
|
|
82
|
+
defaultValue: () => "",
|
|
83
|
+
defaultValueIsSerializable: true,
|
|
84
|
+
}),
|
|
85
|
+
},
|
|
86
|
+
handler: ctx.cliStream.enqueue((_args) => {
|
|
87
|
+
return { type: "use-vibes.cli.themes" };
|
|
88
|
+
}),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=themes-cmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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|
|
@@ -3,7 +3,7 @@ import type { ResEnsureUserSettings } from "@vibes.diy/api-types";
|
|
|
3
3
|
import { CliCtx } from "../cli-ctx.js";
|
|
4
4
|
import { WrapCmdTSMsg } from "../cmd-evento.js";
|
|
5
5
|
export declare const ReqUserSettings: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
6
|
-
type: "
|
|
6
|
+
type: "vibes-diy.cli.user-settings";
|
|
7
7
|
apiUrl: string;
|
|
8
8
|
}, {}>;
|
|
9
9
|
export type ReqUserSettings = typeof ReqUserSettings.infer;
|
|
@@ -4,14 +4,14 @@ import { type } from "arktype";
|
|
|
4
4
|
import { cmdTsDefaultArgs } from "../cli-ctx.js";
|
|
5
5
|
import { sendMsg } from "../cmd-evento.js";
|
|
6
6
|
export const ReqUserSettings = type({
|
|
7
|
-
type: "'
|
|
7
|
+
type: "'vibes-diy.cli.user-settings'",
|
|
8
8
|
apiUrl: "string",
|
|
9
9
|
});
|
|
10
10
|
export function isReqUserSettings(obj) {
|
|
11
11
|
return !(ReqUserSettings(obj) instanceof type.errors);
|
|
12
12
|
}
|
|
13
13
|
export const userSettingsEvento = {
|
|
14
|
-
hash: "
|
|
14
|
+
hash: "vibes-diy.cli.user-settings",
|
|
15
15
|
validate: (ctx) => {
|
|
16
16
|
if (isReqUserSettings(ctx.enRequest)) {
|
|
17
17
|
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
@@ -21,7 +21,7 @@ export const userSettingsEvento = {
|
|
|
21
21
|
handle: async (ctx) => {
|
|
22
22
|
const ectx = ctx.ctx.getOrThrow("cliCtx");
|
|
23
23
|
if (!ectx.vibesDiyApiFactory) {
|
|
24
|
-
return Result.Err("Not logged in. Run '
|
|
24
|
+
return Result.Err("Not logged in. Run 'vibes-diy login' first.");
|
|
25
25
|
}
|
|
26
26
|
const rResult = await ectx.vibesDiyApiFactory(ctx.validated.apiUrl).ensureUserSettings({ settings: [] });
|
|
27
27
|
if (rResult.isErr()) {
|
|
@@ -38,7 +38,7 @@ export function userSettingsCmd(ctx) {
|
|
|
38
38
|
...cmdTsDefaultArgs(ctx),
|
|
39
39
|
},
|
|
40
40
|
handler: ctx.cliStream.enqueue((args) => {
|
|
41
|
-
return { type: "
|
|
41
|
+
return { type: "vibes-diy.cli.user-settings", ...args };
|
|
42
42
|
}),
|
|
43
43
|
});
|
|
44
44
|
}
|
package/cli/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./cli-ctx.js";
|
|
|
2
2
|
export * from "./cmds/login-cmd.js";
|
|
3
3
|
export * from "./cmds/push-cmd.js";
|
|
4
4
|
export * from "./cmds/skills-cmd.js";
|
|
5
|
+
export * from "./cmds/themes-cmd.js";
|
|
5
6
|
export * from "./cmds/system-cmd.js";
|
|
6
7
|
export * from "./cmds/user-settings-cmd.js";
|
|
7
8
|
export * from "./cmd-evento.js";
|
package/cli/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./cli-ctx.js";
|
|
|
2
2
|
export * from "./cmds/login-cmd.js";
|
|
3
3
|
export * from "./cmds/push-cmd.js";
|
|
4
4
|
export * from "./cmds/skills-cmd.js";
|
|
5
|
+
export * from "./cmds/themes-cmd.js";
|
|
5
6
|
export * from "./cmds/system-cmd.js";
|
|
6
7
|
export * from "./cmds/user-settings-cmd.js";
|
|
7
8
|
export * from "./cmd-evento.js";
|
package/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
package/cli/main.js
CHANGED
|
@@ -16,6 +16,7 @@ import { putAssetCmd, isResPutAssetCli } from "./cmds/put-asset-cmd.js";
|
|
|
16
16
|
import { generateCmd, isResGenerate } from "./cmds/generate-cmd.js";
|
|
17
17
|
import { editCmd, isResEdit } from "./cmds/edit-cmd.js";
|
|
18
18
|
import { skillsCmd, isResSkillsList, isResSkillContent } from "./cmds/skills-cmd.js";
|
|
19
|
+
import { themesCmd, isResThemesList, isResThemeContent } from "./cmds/themes-cmd.js";
|
|
19
20
|
import { systemCmd, isResSystem } from "./cmds/system-cmd.js";
|
|
20
21
|
import { defaultCliOutput } from "./cli-ctx.js";
|
|
21
22
|
import { cmdTsEvento, isCmdProgress } from "./cmd-evento.js";
|
|
@@ -106,6 +107,7 @@ async function main() {
|
|
|
106
107
|
push: pushCmd(ctx),
|
|
107
108
|
"put-asset": putAssetCmd(ctx),
|
|
108
109
|
skills: skillsCmd(ctx),
|
|
110
|
+
themes: themesCmd(ctx),
|
|
109
111
|
system: systemCmd(ctx),
|
|
110
112
|
"user-settings": userSettingsCmd(ctx),
|
|
111
113
|
},
|
|
@@ -172,6 +174,16 @@ async function main() {
|
|
|
172
174
|
console.log(msg.content);
|
|
173
175
|
break;
|
|
174
176
|
}
|
|
177
|
+
case isResThemesList(msg): {
|
|
178
|
+
for (const theme of msg.themes) {
|
|
179
|
+
console.log(`${theme.slug.padEnd(24)}${theme.name}`);
|
|
180
|
+
}
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
case isResThemeContent(msg): {
|
|
184
|
+
console.log(msg.content);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
175
187
|
case isResSystem(msg): {
|
|
176
188
|
console.log(msg.systemPrompt);
|
|
177
189
|
break;
|
|
@@ -238,7 +250,7 @@ async function main() {
|
|
|
238
250
|
}
|
|
239
251
|
main()
|
|
240
252
|
.catch((e) => {
|
|
241
|
-
console.error("Error in
|
|
253
|
+
console.error("Error in vibes-diy cli:", e);
|
|
242
254
|
process.exit(1);
|
|
243
255
|
})
|
|
244
256
|
.then((code) => process.exit(code));
|
package/cli/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../jsr/cli/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAsB,gBAAgB,EAAoB,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAClI,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,WAAW,EAEX,UAAU,EAEV,UAAU,EAEV,UAAU,EAEV,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,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AC,UAAU,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;oBACpC,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;oBAChC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACxC,IAAI,GAAG,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAC/B,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;oBAC1C,CAAC;oBACD,MAAM;gBACR,CAAC;gBACD;oBACE,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;oBAC1D,MAAM;YACV,CAAC;QACH,CAAC,CAAC,CACH;QACD,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE;KACtB,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,QAAQ,CAAC;AACtB,CAAC;AAED,IAAI,EAAE;KACH,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;IACX,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;KACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.16-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Transform any DOM element into an AI-powered micro-app",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@fireproof/core-types-protocols-cloud": "~0.24.19",
|
|
40
40
|
"@fireproof/core-types-protocols-dashboard": "~0.24.19",
|
|
41
41
|
"@fireproof/use-fireproof": "~0.24.19",
|
|
42
|
-
"@vibes.diy/api-impl": "^2.2.
|
|
43
|
-
"@vibes.diy/api-types": "^2.2.
|
|
44
|
-
"@vibes.diy/call-ai-v2": "^2.2.
|
|
45
|
-
"@vibes.diy/prompts": "^2.2.
|
|
42
|
+
"@vibes.diy/api-impl": "^2.2.16-dev.2",
|
|
43
|
+
"@vibes.diy/api-types": "^2.2.16-dev.2",
|
|
44
|
+
"@vibes.diy/call-ai-v2": "^2.2.16-dev.2",
|
|
45
|
+
"@vibes.diy/prompts": "^2.2.16-dev.2",
|
|
46
46
|
"arktype": "~2.2.0",
|
|
47
47
|
"charwise": "~3.0.1",
|
|
48
48
|
"cmd-ts": "~0.15.0",
|