@vibesdotdev/integrations-bark 0.0.0-stage → 1.0.0-rc.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.
Files changed (75) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +22 -2
  3. package/dist/ai/index.d.ts +5 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/index.js +5 -0
  6. package/dist/ai/index.js.map +1 -0
  7. package/dist/ai/metadata.plugin.d.ts +6 -0
  8. package/dist/ai/metadata.plugin.d.ts.map +1 -0
  9. package/dist/ai/metadata.plugin.js +70 -0
  10. package/dist/ai/metadata.plugin.js.map +1 -0
  11. package/dist/ai/provider.consumer.plugin.d.ts +5 -0
  12. package/dist/ai/provider.consumer.plugin.d.ts.map +1 -0
  13. package/dist/ai/provider.consumer.plugin.js +33 -0
  14. package/dist/ai/provider.consumer.plugin.js.map +1 -0
  15. package/dist/ai/provider.plugin.d.ts +2 -0
  16. package/dist/ai/provider.plugin.d.ts.map +1 -0
  17. package/dist/ai/provider.plugin.js +2 -0
  18. package/dist/ai/provider.plugin.js.map +1 -0
  19. package/dist/ai/providers/bark/bark.provider.impl.d.ts +24 -0
  20. package/dist/ai/providers/bark/bark.provider.impl.d.ts.map +1 -0
  21. package/dist/ai/providers/bark/bark.provider.impl.js +89 -0
  22. package/dist/ai/providers/bark/bark.provider.impl.js.map +1 -0
  23. package/dist/ai/providers/bark/detection/index.d.ts +2 -0
  24. package/dist/ai/providers/bark/detection/index.d.ts.map +1 -0
  25. package/dist/ai/providers/bark/detection/index.js +2 -0
  26. package/dist/ai/providers/bark/detection/index.js.map +1 -0
  27. package/dist/ai/providers/bark/detection/system.d.ts +13 -0
  28. package/dist/ai/providers/bark/detection/system.d.ts.map +1 -0
  29. package/dist/ai/providers/bark/detection/system.js +38 -0
  30. package/dist/ai/providers/bark/detection/system.js.map +1 -0
  31. package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.d.ts +4 -0
  32. package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.d.ts.map +1 -0
  33. package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.js +40 -0
  34. package/dist/ai/providers/bark/docs/ai.providers.bark.docs.descriptor.js.map +1 -0
  35. package/dist/ai/providers/bark/index.d.ts +4 -0
  36. package/dist/ai/providers/bark/index.d.ts.map +1 -0
  37. package/dist/ai/providers/bark/index.js +4 -0
  38. package/dist/ai/providers/bark/index.js.map +1 -0
  39. package/dist/ai/providers/bark/recommendations.d.ts +23 -0
  40. package/dist/ai/providers/bark/recommendations.d.ts.map +1 -0
  41. package/dist/ai/providers/bark/recommendations.js +71 -0
  42. package/dist/ai/providers/bark/recommendations.js.map +1 -0
  43. package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.d.ts +4194 -0
  44. package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.d.ts.map +1 -0
  45. package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.js +63 -0
  46. package/dist/ai/providers/local/speech/bark/config/config.bark.descriptor.js.map +1 -0
  47. package/dist/ai/providers/local/speech/bark/config/schemas/index.d.ts +11 -0
  48. package/dist/ai/providers/local/speech/bark/config/schemas/index.d.ts.map +1 -0
  49. package/dist/ai/providers/local/speech/bark/config/schemas/index.js +9 -0
  50. package/dist/ai/providers/local/speech/bark/config/schemas/index.js.map +1 -0
  51. package/dist/ai/providers/local/speech/bark/index.d.ts +5 -0
  52. package/dist/ai/providers/local/speech/bark/index.d.ts.map +1 -0
  53. package/dist/ai/providers/local/speech/bark/index.js +4 -0
  54. package/dist/ai/providers/local/speech/bark/index.js.map +1 -0
  55. package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.d.ts +183 -0
  56. package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.d.ts.map +1 -0
  57. package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.js +48 -0
  58. package/dist/ai/providers/local/speech/bark/provider.bark.descriptor.js.map +1 -0
  59. package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.d.ts +36 -0
  60. package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.d.ts.map +1 -0
  61. package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.js +25 -0
  62. package/dist/ai/specs/bark-cli/bark-cli.spec.descriptor.js.map +1 -0
  63. package/dist/ai/specs/bark-cli/bark-cli.spec.impl.d.ts +25 -0
  64. package/dist/ai/specs/bark-cli/bark-cli.spec.impl.d.ts.map +1 -0
  65. package/dist/ai/specs/bark-cli/bark-cli.spec.impl.js +138 -0
  66. package/dist/ai/specs/bark-cli/bark-cli.spec.impl.js.map +1 -0
  67. package/dist/index.d.ts +2 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +2 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/schemas/speech.d.ts +52 -0
  72. package/dist/schemas/speech.d.ts.map +1 -0
  73. package/dist/schemas/speech.js +27 -0
  74. package/dist/schemas/speech.js.map +1 -0
  75. package/package.json +73 -4
@@ -0,0 +1,52 @@
1
+ import * as z from 'zod/v4';
2
+ import type { BarkConnection } from '../ai/providers/local/speech/bark/config/schemas/index.ts';
3
+ /** Bark accepts the generic audio aliases and its native sampling options. */
4
+ declare const BarkSpeechInputSchema: z.ZodObject<{
5
+ text: z.ZodString;
6
+ speaker: z.ZodOptional<z.ZodString>;
7
+ voiceId: z.ZodOptional<z.ZodString>;
8
+ format: z.ZodOptional<z.ZodString>;
9
+ textTemp: z.ZodOptional<z.ZodNumber>;
10
+ style: z.ZodOptional<z.ZodNumber>;
11
+ waveformTemp: z.ZodOptional<z.ZodNumber>;
12
+ stability: z.ZodOptional<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ export interface BarkSpeechSource {
15
+ /** The parsed stored connection; the barkConnectionSchema owns every default. */
16
+ readonly connection: BarkConnection;
17
+ /** The selected model id, which is a Bark speaker preset. */
18
+ readonly wireModelId: string;
19
+ }
20
+ /**
21
+ * Speaker: request.speaker, request.voiceId, selected model, connection.
22
+ * Temperatures: request option, connection (whose schema supplies the default).
23
+ */
24
+ export declare function barkSpeechRequestSchema(source: BarkSpeechSource): z.ZodPipe<z.ZodObject<{
25
+ text: z.ZodString;
26
+ speaker: z.ZodOptional<z.ZodString>;
27
+ voiceId: z.ZodOptional<z.ZodString>;
28
+ format: z.ZodOptional<z.ZodString>;
29
+ textTemp: z.ZodOptional<z.ZodNumber>;
30
+ style: z.ZodOptional<z.ZodNumber>;
31
+ waveformTemp: z.ZodOptional<z.ZodNumber>;
32
+ stability: z.ZodOptional<z.ZodNumber>;
33
+ }, z.core.$strip>, z.ZodTransform<{
34
+ text: string;
35
+ speaker: string;
36
+ textTemp: number;
37
+ waveformTemp: number;
38
+ modelsDir: string | undefined;
39
+ }, {
40
+ text: string;
41
+ speaker?: string | undefined;
42
+ voiceId?: string | undefined;
43
+ format?: string | undefined;
44
+ textTemp?: number | undefined;
45
+ style?: number | undefined;
46
+ waveformTemp?: number | undefined;
47
+ stability?: number | undefined;
48
+ }>>;
49
+ export type BarkSpeechRequest = z.input<typeof BarkSpeechInputSchema>;
50
+ export type BarkScriptArgs = z.output<ReturnType<typeof barkSpeechRequestSchema>>;
51
+ export {};
52
+ //# sourceMappingURL=speech.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../src/schemas/speech.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2DAA2D,CAAC;AAEhG,8EAA8E;AAC9E,QAAA,MAAM,qBAAqB;;;;;;;;;iBASzB,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAChC,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;IAS/D;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import * as z from 'zod/v4';
2
+ /** Bark accepts the generic audio aliases and its native sampling options. */
3
+ const BarkSpeechInputSchema = z.object({
4
+ text: z.string(),
5
+ speaker: z.string().optional(),
6
+ voiceId: z.string().optional(),
7
+ format: z.string().optional(),
8
+ textTemp: z.number().optional(),
9
+ style: z.number().optional(),
10
+ waveformTemp: z.number().optional(),
11
+ stability: z.number().optional()
12
+ });
13
+ /**
14
+ * Speaker: request.speaker, request.voiceId, selected model, connection.
15
+ * Temperatures: request option, connection (whose schema supplies the default).
16
+ */
17
+ export function barkSpeechRequestSchema(source) {
18
+ const { connection, wireModelId } = source;
19
+ return BarkSpeechInputSchema.transform((speech) => ({
20
+ text: speech.text,
21
+ speaker: (speech.speaker ?? speech.voiceId ?? (wireModelId || connection.speaker)).replace(/[^a-zA-Z0-9_/.-]/g, ''),
22
+ textTemp: Math.min(1, Math.max(0, speech.textTemp ?? speech.style ?? connection.textTemp)),
23
+ waveformTemp: Math.min(1, Math.max(0, speech.waveformTemp ?? speech.stability ?? connection.waveformTemp)),
24
+ modelsDir: connection.modelsDir
25
+ }));
26
+ }
27
+ //# sourceMappingURL=speech.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"speech.js","sourceRoot":"","sources":["../../src/schemas/speech.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,8EAA8E;AAC9E,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CA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"}
package/package.json CHANGED
@@ -1,6 +1,75 @@
1
1
  {
2
2
  "name": "@vibesdotdev/integrations-bark",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0-rc.0",
4
+ "dependencies": {
5
+ "@vibesdotdev/ai": "^1.0.0-rc.2",
6
+ "@vibesdotdev/ai-schemas": "^1.0.0-rc.3",
7
+ "@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
8
+ "@vibesdotdev/logging": "^1.0.0-rc.3",
9
+ "@vibesdotdev/kernel": "^1.0.0-rc.5",
10
+ "zod": "^4.6.7"
11
+ },
12
+ "main": "./dist/index.js",
13
+ "exports": {
14
+ ".": {
15
+ "bun": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "default": "./dist/index.js"
19
+ },
20
+ "./ai": {
21
+ "bun": "./dist/ai/index.js",
22
+ "types": "./dist/ai/index.d.ts",
23
+ "import": "./dist/ai/index.js",
24
+ "default": "./dist/ai/index.js"
25
+ },
26
+ "./ai/*": {
27
+ "bun": "./dist/ai/*.js",
28
+ "types": "./dist/ai/*.d.ts",
29
+ "import": "./dist/ai/*.js",
30
+ "default": "./dist/ai/*.js"
31
+ },
32
+ "./ai/plugin": {
33
+ "bun": "./dist/ai/provider.plugin.js",
34
+ "types": "./dist/ai/provider.plugin.d.ts",
35
+ "import": "./dist/ai/provider.plugin.js",
36
+ "default": "./dist/ai/provider.plugin.js"
37
+ }
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "README.md",
42
+ "LICENSE"
43
+ ],
44
+ "scripts": {
45
+ "lint": "node ../../node_modules/@vibesdotdev/internal-oxlint-toolchain/ratchet.mjs .",
46
+ "check": "bun --bun tsc -p tsconfig.json --noEmit",
47
+ "test": "bun test src",
48
+ "build": "tsc -p tsconfig.build.json"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
53
+ "directory": "integrations/bark"
54
+ },
55
+ "publishConfig": {
56
+ "registry": "https://packages.vibes.dev",
57
+ "access": "public"
58
+ },
59
+ "vibes": {
60
+ "visibility": "public",
61
+ "registry": {
62
+ "repositoryId": "70be51c9-5ab7-4d7e-9f47-801cb17720d8",
63
+ "directory": "integrations/bark"
64
+ }
65
+ },
66
+ "type": "module",
67
+ "types": "./dist/index.d.ts",
68
+ "license": "BUSL-1.1",
69
+ "gitHead": "494ddfcab4c073eef61acb182042223d7e4da2e5",
70
+ "_vibes_source": {
71
+ "repo": "ssh://git@git.vibes.dev/vibesdotdev/integrations.git",
72
+ "sha": "494ddfcab4c073eef61acb182042223d7e4da2e5",
73
+ "workspaceDigest": "sha256:bc82cc0cbf45eb8eb4deaeaac6811190e182111c0fb3d30c255a0f93fae94573"
74
+ }
75
+ }