vibes-diy 2.2.16-dev.1 → 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.
@@ -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("use-vibes.cli.edit");
8
+ expect(handlers).toContain("vibes-diy.cli.edit");
9
9
  });
10
10
  });
11
11
  //# sourceMappingURL=cmd-evento.test.js.map
@@ -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: "use-vibes.cli.res-edit";
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: "use-vibes.cli.edit";
17
+ type: "vibes-diy.cli.edit";
18
18
  appSlug: string;
19
19
  prompt: string;
20
20
  userSlug: string;
@@ -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: "'use-vibes.cli.res-edit'",
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: "'use-vibes.cli.edit'",
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: "use-vibes.cli.edit",
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 'use-vibes login' first.");
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: "use-vibes.cli.res-edit",
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: "use-vibes.cli.res-edit",
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: "use-vibes.cli.edit", ...args };
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 use-vibes.cli.edit request", async () => {
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: "use-vibes.cli.edit",
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: "use-vibes.cli.edit",
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: "use-vibes.cli.edit",
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 === "use-vibes.cli.res-edit";
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: "use-vibes.cli.edit",
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 === "use-vibes.cli.res-edit";
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: "use-vibes.cli.edit",
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: "use-vibes.cli.res-generate";
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: "use-vibes.cli.generate";
15
+ type: "vibes-diy.cli.generate";
16
16
  prompt: string;
17
17
  appSlug: string;
18
18
  userSlug: string;
@@ -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: "'use-vibes.cli.res-generate'",
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: "'use-vibes.cli.generate'",
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: "use-vibes.cli.generate",
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 'use-vibes login' first.");
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: "use-vibes.cli.res-generate",
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: "use-vibes.cli.generate", ...args };
228
+ const base = { type: "vibes-diy.cli.generate", ...args };
229
229
  return args.focus === undefined ? base : { ...base, focusPath: args.focus };
230
230
  }),
231
231
  });
@@ -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: "use-vibes.cli.push";
6
+ type: "vibes-diy.cli.push";
7
7
  mode: string;
8
8
  appSlug: string;
9
9
  userSlug: string;
@@ -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: "'use-vibes.cli.push'",
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: "use-vibes.cli.push",
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 'use-vibes login' first.");
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: "use-vibes.cli.push", ...args };
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: "use-vibes.cli.put-asset";
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: "use-vibes.cli.res-put-asset";
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: "'use-vibes.cli.put-asset'",
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: "'use-vibes.cli.res-put-asset'",
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: "use-vibes.cli.put-asset",
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: "use-vibes.cli.res-put-asset",
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: "use-vibes.cli.put-asset",
191
+ type: "vibes-diy.cli.put-asset",
192
192
  file: args.file,
193
193
  appSlug: args.appSlug,
194
194
  userSlug: args.userSlug,
@@ -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: "use-vibes.cli.res-skills-list";
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: "use-vibes.cli.res-skill-content";
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: "use-vibes.cli.skills";
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;
@@ -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: "'use-vibes.cli.res-skills-list'",
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: "'use-vibes.cli.res-skill-content'",
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: "'use-vibes.cli.skills'",
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: "use-vibes.cli.skills",
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: "use-vibes.cli.res-skills-list",
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: "use-vibes.cli.res-skill-content",
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: "use-vibes.cli.skills" };
95
+ return { type: "vibes-diy.cli.skills" };
96
96
  }),
97
97
  });
98
98
  }
@@ -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: "use-vibes.cli.res-system";
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: "use-vibes.cli.system";
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;
@@ -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: "'use-vibes.cli.res-system'",
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: "'use-vibes.cli.system'",
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: "use-vibes.cli.system",
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: "use-vibes.cli.res-system",
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: "use-vibes.cli.system" };
52
+ return { type: "vibes-diy.cli.system" };
53
53
  }),
54
54
  });
55
55
  }
@@ -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: "use-vibes.cli.user-settings";
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: "'use-vibes.cli.user-settings'",
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: "use-vibes.cli.user-settings",
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 'use-vibes login' first.");
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: "use-vibes.cli.user-settings", ...args };
41
+ return { type: "vibes-diy.cli.user-settings", ...args };
42
42
  }),
43
43
  });
44
44
  }
package/cli/main.js CHANGED
@@ -250,7 +250,7 @@ async function main() {
250
250
  }
251
251
  main()
252
252
  .catch((e) => {
253
- console.error("Error in use-vibes cli:", e);
253
+ console.error("Error in vibes-diy cli:", e);
254
254
  process.exit(1);
255
255
  })
256
256
  .then((code) => process.exit(code));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibes-diy",
3
- "version": "2.2.16-dev.1",
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.16-dev.1",
43
- "@vibes.diy/api-types": "^2.2.16-dev.1",
44
- "@vibes.diy/call-ai-v2": "^2.2.16-dev.1",
45
- "@vibes.diy/prompts": "^2.2.16-dev.1",
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",