@vibesdotdev/integrations-civitai 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.
package/LICENSE ADDED
@@ -0,0 +1,126 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: VIBES DEV LLC
6
+ Licensed Work: @vibesdotdev/integrations-civitai
7
+ The Licensed Work is (c) 2026 VIBES DEV LLC.
8
+ Additional Use Grant: In this grant, "Vibes Platform" means the hosted services VIBES DEV LLC
9
+ operates at vibes.dev and its subdomains.
10
+
11
+ You may make production use of the Licensed Work, including commercial
12
+ use, subject to the limits below. Permitted production use includes:
13
+ building, operating and selling your own applications, agents and services
14
+ on or with the Vibes Platform; self-hosting the Licensed Work for use inside
15
+ your own organization; and providing consulting, integration or development
16
+ services to clients who build on the Vibes Platform.
17
+
18
+ The production use permitted above does not include use that:
19
+
20
+ (a) offers third parties a hosted, managed or embedded service that
21
+ substitutes for the Vibes Platform or a material part of it (including
22
+ agent hosting; fleet, sandbox or container provisioning; package
23
+ registry; source hosting and continuous integration; and managed AI,
24
+ storage, secrets or messaging), where the Licensed Work provides a
25
+ material part of that service's value and that service earns more than
26
+ US$1,000,000 in gross revenue in any twelve-month period;
27
+ (b) sells, rents, sublicenses or white-labels the Licensed Work, or access
28
+ to Vibes Platform functionality, as a product in its own right;
29
+ (c) removes, disables or works around entitlement checks, usage metering,
30
+ quotas or plan limits, or reaches Vibes Platform features the user's
31
+ account is not entitled to;
32
+ (d) scrapes, bulk-exports or harvests data or content from the Vibes
33
+ Platform or its users other than through documented interfaces and
34
+ within their terms, or uses outputs or data obtained from the Vibes
35
+ Platform to train or improve a product that competes with it;
36
+ (e) violates applicable law, infringes anyone's rights, commits fraud or
37
+ deception, conducts unlawful surveillance or harassment, distributes
38
+ malware, or accesses systems without authorization; or
39
+ (f) violates applicable antitrust or competition law.
40
+
41
+ A written permission from the Licensor extends this grant.
42
+ Change Date: Four years from the date the Licensed Work is published.
43
+ Change License: MIT
44
+
45
+ For information about alternative licensing arrangements for the Licensed Work,
46
+ contact VIBES DEV LLC through https://vibes.dev.
47
+
48
+ Notice
49
+
50
+ The Business Source License (this document, or the "License") is not an Open
51
+ Source license. However, the Licensed Work will eventually be made available
52
+ under an Open Source License, as stated in this License.
53
+
54
+ -----------------------------------------------------------------------------
55
+
56
+ Business Source License 1.1
57
+
58
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
59
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
60
+
61
+ Terms
62
+
63
+ The Licensor hereby grants you the right to copy, modify, create derivative
64
+ works, redistribute, and make non-production use of the Licensed Work. The
65
+ Licensor may make an Additional Use Grant, above, permitting limited
66
+ production use.
67
+
68
+ Effective on the Change Date, or the fourth anniversary of the first publicly
69
+ available distribution of a specific version of the Licensed Work under this
70
+ License, whichever comes first, the Licensor hereby grants you rights under
71
+ the terms of the Change License, and the rights granted in the paragraph
72
+ above terminate.
73
+
74
+ If your use of the Licensed Work does not comply with the requirements
75
+ currently in effect as described in this License, you must purchase a
76
+ commercial license from the Licensor, its affiliated entities, or authorized
77
+ resellers, or you must refrain from using the Licensed Work.
78
+
79
+ All copies of the original and modified Licensed Work, and derivative works
80
+ of the Licensed Work, are subject to this License. This License applies
81
+ separately for each version of the Licensed Work and the Change Date may vary
82
+ for each version of the Licensed Work released by Licensor.
83
+
84
+ You must conspicuously display this License on each original or modified copy
85
+ of the Licensed Work. If you receive the Licensed Work in original or
86
+ modified form from a third party, the terms and conditions set forth in this
87
+ License apply to your use of that work.
88
+
89
+ Any use of the Licensed Work in violation of this License will automatically
90
+ terminate your rights under this License for the current and all other
91
+ versions of the Licensed Work.
92
+
93
+ This License does not grant you any right in any trademark or logo of
94
+ Licensor or its affiliates (provided that you may use a trademark or logo of
95
+ Licensor as expressly required by this License).
96
+
97
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
98
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
99
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
100
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
101
+ TITLE.
102
+
103
+ MariaDB hereby grants you permission to use this License’s text to license
104
+ your works, and to refer to it using the trademark “Business Source License”,
105
+ as long as you comply with the Covenants of Licensor below.
106
+
107
+ Covenants of Licensor
108
+
109
+ In consideration of the right to use this License’s text and the “Business
110
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
111
+ other recipients of the licensed work to be provided by Licensor:
112
+
113
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
114
+ or a license that is compatible with GPL Version 2.0 or a later version,
115
+ where “compatible” means that software provided under the Change License can
116
+ be included in a program with software provided under GPL Version 2.0 or a
117
+ later version. Licensor may specify additional Change Licenses without
118
+ limitation.
119
+
120
+ 2. To either: (a) specify an additional grant of rights to use that does not
121
+ impose any additional restriction on the right granted in this License, as
122
+ the Additional Use Grant; or (b) insert the text “None”.
123
+
124
+ 3. To specify a Change Date.
125
+
126
+ 4. Not to modify this License in any other way.
@@ -0,0 +1,3 @@
1
+ export declare const civitaiModelHubPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export default civitaiModelHubPlugin;
3
+ //# sourceMappingURL=model-hub.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-hub.plugin.d.ts","sourceRoot":"","sources":["../../src/ai/model-hub.plugin.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,qBAAqB,6CAyBhC,CAAC;AAEH,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { createRuntimePlugin } from '@vibesdotdev/kernel';
2
+ import { AI_MODEL_HUB_KIND } from '@vibesdotdev/ai/model-hubs';
3
+ const hubDescriptor = {
4
+ id: 'civitai',
5
+ kind: AI_MODEL_HUB_KIND,
6
+ name: 'CivitAI model hub',
7
+ displayName: 'CivitAI',
8
+ description: 'Search and download image-generation models published through CivitAI.',
9
+ icon: '🎨',
10
+ configurationUrl: 'https://civitai.com/user/account',
11
+ requiresSecret: false,
12
+ enabled: true,
13
+ hardware: ['consumer', 'cloud']
14
+ };
15
+ export const civitaiModelHubPlugin = createRuntimePlugin({
16
+ id: 'integrations-civitai/ai',
17
+ name: 'CivitAI model hub integration',
18
+ description: 'Registers the CivitAI model-hub descriptor and implementation',
19
+ dependencies: ['ai.runtime'],
20
+ onRegister(runtime) {
21
+ runtime.registerDescriptor(AI_MODEL_HUB_KIND, hubDescriptor);
22
+ },
23
+ onActivate(runtime) {
24
+ runtime.registerLoader(AI_MODEL_HUB_KIND, hubDescriptor.id, async () => {
25
+ const { CivitAIAdapter } = await import("../model-hub/adapter.js");
26
+ return ({
27
+ meta: { id: hubDescriptor.id, kind: AI_MODEL_HUB_KIND, priority: 0 },
28
+ impl: class CivitAIModelHubFactory {
29
+ descriptor;
30
+ context;
31
+ constructor(descriptor, context) {
32
+ this.descriptor = descriptor;
33
+ this.context = context;
34
+ }
35
+ create(config = {}) {
36
+ return new CivitAIAdapter(this.context.runtime, config);
37
+ }
38
+ }
39
+ });
40
+ });
41
+ }
42
+ });
43
+ export default civitaiModelHubPlugin;
44
+ //# sourceMappingURL=model-hub.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-hub.plugin.js","sourceRoot":"","sources":["../../src/ai/model-hub.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAuC,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACN,iBAAiB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,aAAa,GAAyB;IAC3C,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,wEAAwE;IACrF,IAAI,EAAE,IAAI;I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ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { civitaiModelHubPlugin as default, civitaiModelHubPlugin } from "./ai/model-hub.plugin.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,IAAI,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CivitAIHubClient as CivitAIAdapter } from './client.ts';
2
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/model-hub/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CivitAIHubClient as CivitAIAdapter } from "./client.js";
2
+ //# sourceMappingURL=adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../src/model-hub/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC"}