@vibesdotdev/integrations-meta 0.0.0-stage → 1.0.0-rc.1
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 +126 -0
- package/README.md +38 -2
- package/dist/ai/index.d.ts +5 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +5 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/metadata/provider-models/meta/meta-muse-spark-1-1.json +18 -0
- package/dist/ai/metadata/provider-models/meta/meta-muse-spark-1-2-contributor.json +18 -0
- package/dist/ai/metadata/provider-models/meta/meta-muse-spark-1-2.json +18 -0
- package/dist/ai/metadata/provider-models/meta/meta-muse-spark-1-3-contributor.json +18 -0
- package/dist/ai/metadata/provider-models/meta/meta-muse-spark-1-3.json +18 -0
- package/dist/ai/metadata/providers/meta.json +8 -0
- package/dist/ai/muse-client.consumer.d.ts +10 -0
- package/dist/ai/muse-client.consumer.d.ts.map +1 -0
- package/dist/ai/muse-client.consumer.js +31 -0
- package/dist/ai/muse-client.consumer.js.map +1 -0
- package/dist/ai/provider.cloud.plugin.d.ts +6 -0
- package/dist/ai/provider.cloud.plugin.d.ts.map +1 -0
- package/dist/ai/provider.cloud.plugin.js +105 -0
- package/dist/ai/provider.cloud.plugin.js.map +1 -0
- package/dist/ai/provider.consumer.plugin.d.ts +3 -0
- package/dist/ai/provider.consumer.plugin.d.ts.map +1 -0
- package/dist/ai/provider.consumer.plugin.js +30 -0
- package/dist/ai/provider.consumer.plugin.js.map +1 -0
- package/dist/ai/provider.plugin.d.ts +6 -0
- package/dist/ai/provider.plugin.d.ts.map +1 -0
- package/dist/ai/provider.plugin.js +17 -0
- package/dist/ai/provider.plugin.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/config/config.meta.descriptor.d.ts +4194 -0
- package/dist/ai/providers/cloud/frontier/meta/config/config.meta.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/config/config.meta.descriptor.js +13 -0
- package/dist/ai/providers/cloud/frontier/meta/config/config.meta.descriptor.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/config/schemas/index.d.ts +39 -0
- package/dist/ai/providers/cloud/frontier/meta/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/config/schemas/index.js +34 -0
- package/dist/ai/providers/cloud/frontier/meta/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/index.d.ts +5 -0
- package/dist/ai/providers/cloud/frontier/meta/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/index.js +4 -0
- package/dist/ai/providers/cloud/frontier/meta/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/provider.meta.descriptor.d.ts +183 -0
- package/dist/ai/providers/cloud/frontier/meta/provider.meta.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/meta/provider.meta.descriptor.js +97 -0
- package/dist/ai/providers/cloud/frontier/meta/provider.meta.descriptor.js.map +1 -0
- package/dist/ai/providers/meta/detection/system.d.ts +8 -0
- package/dist/ai/providers/meta/detection/system.d.ts.map +1 -0
- package/dist/ai/providers/meta/detection/system.js +16 -0
- package/dist/ai/providers/meta/detection/system.js.map +1 -0
- package/dist/ai/providers/meta/docs/ai.providers.meta.docs.descriptor.d.ts +4 -0
- package/dist/ai/providers/meta/docs/ai.providers.meta.docs.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/meta/docs/ai.providers.meta.docs.descriptor.js +20 -0
- package/dist/ai/providers/meta/docs/ai.providers.meta.docs.descriptor.js.map +1 -0
- package/dist/ai/providers/meta/index.d.ts +7 -0
- package/dist/ai/providers/meta/index.d.ts.map +1 -0
- package/dist/ai/providers/meta/index.js +6 -0
- package/dist/ai/providers/meta/index.js.map +1 -0
- package/dist/ai/providers/meta/meta-known-models.d.ts +3 -0
- package/dist/ai/providers/meta/meta-known-models.d.ts.map +1 -0
- package/dist/ai/providers/meta/meta-known-models.js +2 -0
- package/dist/ai/providers/meta/meta-known-models.js.map +1 -0
- package/dist/ai/providers/meta/meta.provider.impl.d.ts +42 -0
- package/dist/ai/providers/meta/meta.provider.impl.d.ts.map +1 -0
- package/dist/ai/providers/meta/meta.provider.impl.js +269 -0
- package/dist/ai/providers/meta/meta.provider.impl.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/client.d.ts +66 -0
- package/dist/ai/providers/meta/muse-server/client.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/client.js +209 -0
- package/dist/ai/providers/meta/muse-server/client.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/connection.d.ts +77 -0
- package/dist/ai/providers/meta/muse-server/connection.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/connection.js +174 -0
- package/dist/ai/providers/meta/muse-server/connection.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/failure-chunk.d.ts +10 -0
- package/dist/ai/providers/meta/muse-server/failure-chunk.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/failure-chunk.js +33 -0
- package/dist/ai/providers/meta/muse-server/failure-chunk.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/index.d.ts +9 -0
- package/dist/ai/providers/meta/muse-server/index.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/index.js +9 -0
- package/dist/ai/providers/meta/muse-server/index.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-failure.d.ts +189 -0
- package/dist/ai/providers/meta/muse-server/muse-failure.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-failure.js +226 -0
- package/dist/ai/providers/meta/muse-server/muse-failure.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-messages.d.ts +19 -0
- package/dist/ai/providers/meta/muse-server/muse-messages.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-messages.js +83 -0
- package/dist/ai/providers/meta/muse-server/muse-messages.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.descriptor.d.ts +25 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.descriptor.js +21 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.descriptor.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.impl.d.ts +33 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.impl.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.impl.js +192 -0
- package/dist/ai/providers/meta/muse-server/muse-server.spec.impl.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.descriptor.d.ts +13 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.descriptor.js +11 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.descriptor.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.impl.consumer.d.ts +41 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.impl.consumer.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.impl.consumer.js +103 -0
- package/dist/ai/providers/meta/muse-server/muse-server.transport.impl.consumer.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/protocol.d.ts +138 -0
- package/dist/ai/providers/meta/muse-server/protocol.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/protocol.js +106 -0
- package/dist/ai/providers/meta/muse-server/protocol.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/runtime-execution.d.ts +14 -0
- package/dist/ai/providers/meta/muse-server/runtime-execution.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/runtime-execution.js +39 -0
- package/dist/ai/providers/meta/muse-server/runtime-execution.js.map +1 -0
- package/dist/ai/providers/meta/muse-server/session.d.ts +19 -0
- package/dist/ai/providers/meta/muse-server/session.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-server/session.js +341 -0
- package/dist/ai/providers/meta/muse-server/session.js.map +1 -0
- package/dist/ai/providers/meta/muse-subscription.d.ts +38 -0
- package/dist/ai/providers/meta/muse-subscription.d.ts.map +1 -0
- package/dist/ai/providers/meta/muse-subscription.js +77 -0
- package/dist/ai/providers/meta/muse-subscription.js.map +1 -0
- package/dist/ai/providers/meta/recommendations.d.ts +26 -0
- package/dist/ai/providers/meta/recommendations.d.ts.map +1 -0
- package/dist/ai/providers/meta/recommendations.js +24 -0
- package/dist/ai/providers/meta/recommendations.js.map +1 -0
- package/dist/ai/providers/meta/schemas/index.d.ts +12 -0
- package/dist/ai/providers/meta/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/meta/schemas/index.js +8 -0
- package/dist/ai/providers/meta/schemas/index.js.map +1 -0
- package/dist/external/external.plugin.d.ts +3 -0
- package/dist/external/external.plugin.d.ts.map +1 -0
- package/dist/external/external.plugin.js +18 -0
- package/dist/external/external.plugin.js.map +1 -0
- package/dist/external/index.d.ts +2 -0
- package/dist/external/index.d.ts.map +1 -0
- package/dist/external/index.js +2 -0
- package/dist/external/index.js.map +1 -0
- package/dist/external/muse/index.d.ts +162 -0
- package/dist/external/muse/index.d.ts.map +1 -0
- package/dist/external/muse/index.js +7 -0
- package/dist/external/muse/index.js.map +1 -0
- package/dist/external/muse/manifest.d.ts +7 -0
- package/dist/external/muse/manifest.d.ts.map +1 -0
- package/dist/external/muse/manifest.js +25 -0
- package/dist/external/muse/manifest.js.map +1 -0
- package/dist/external/muse-subscription.operation.descriptors.d.ts +29 -0
- package/dist/external/muse-subscription.operation.descriptors.d.ts.map +1 -0
- package/dist/external/muse-subscription.operation.descriptors.js +12 -0
- package/dist/external/muse-subscription.operation.descriptors.js.map +1 -0
- package/dist/external/muse-subscription.operations.d.ts +3 -0
- package/dist/external/muse-subscription.operations.d.ts.map +1 -0
- package/dist/external/muse-subscription.operations.js +23 -0
- package/dist/external/muse-subscription.operations.js.map +1 -0
- package/dist/failure-outcome.d.ts +21 -0
- package/dist/failure-outcome.d.ts.map +1 -0
- package/dist/failure-outcome.js +22 -0
- package/dist/failure-outcome.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/package.json +103 -4
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-meta
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Meta integration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Provides the Meta Model API provider and Muse subscription transport through
|
|
4
|
+
Vibes runtime capabilities.
|
|
5
|
+
|
|
6
|
+
Consumer hosts compose `@vibesdotdev/integrations-meta/ai/plugin` after
|
|
7
|
+
AI's runtime plugin and Config's manifest kind. Cloud hosts compose
|
|
8
|
+
`@vibesdotdev/integrations-meta/ai/cloud.plugin`. That slice has no consumer
|
|
9
|
+
transport import; the completed consumer entrypoint adds
|
|
10
|
+
`./ai/consumer.plugin`. Consumer Muse execution requires the host's
|
|
11
|
+
`runtime/execution` capability.
|
|
12
|
+
|
|
13
|
+
Resolve providers through `ai/provider#meta`, recommendations through
|
|
14
|
+
`ai/provider-recommendation#meta`, and the subscription transport through
|
|
15
|
+
`ai/transport#muse-server`. The kernel owns the transport's
|
|
16
|
+
`runtime/client#meta.muse` lifetime. Runtime disposal closes only its own
|
|
17
|
+
transport and reports typed close failures.
|
|
18
|
+
|
|
19
|
+
The root exports connection and known-model schemas. Existing implementation
|
|
20
|
+
classes remain available on `./ai` and explicit `./ai/*` paths. Use runtime
|
|
21
|
+
resolution for capabilities; `metaRecommendation(runtime)` replaces the
|
|
22
|
+
former ambient recommendation instance.
|
|
23
|
+
|
|
24
|
+
Compose `./external/plugin` with External's consumer plugin for
|
|
25
|
+
`vibes dev external muse login`. Login resolves execution and stdout from
|
|
26
|
+
the handed runtime and streams the child's sign-in messages. Muse owns the
|
|
27
|
+
account session. API credentials remain references resolved by the runtime.
|
|
28
|
+
|
|
29
|
+
Muse carries text requests. Images, native tools, tool calls and results
|
|
30
|
+
refuse typed rather than disappearing. JSON schemas are validated once with
|
|
31
|
+
the kernel schema; malformed/unreadable input and serialization failures
|
|
32
|
+
produce value-free `invalid-request` refusals. See [SPEC](SPEC.md) for the
|
|
33
|
+
full refusal and approval contract.
|
|
34
|
+
|
|
35
|
+
Run `bun run check`, `bun run test`, and `bun run build`, plus workspace
|
|
36
|
+
rules and the configured Oxlint check. The main TypeScript project checks
|
|
37
|
+
tests and TSX with no emit; the build project excludes tests and harnesses.
|
|
38
|
+
Unit tests are in process. `test:node` is an optional real-pipe integration
|
|
39
|
+
suite, separate from unit tests.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,yDAAyD,CAAC;AACxE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC"}
|
package/dist/ai/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,yDAAyD,CAAC;AACxE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta:muse-spark-1.1",
|
|
3
|
+
"providerId": "meta",
|
|
4
|
+
"providerModelId": "muse-spark-1.1",
|
|
5
|
+
"aliases": ["muse-spark-1.1", "meta:muse-spark-1.1"],
|
|
6
|
+
"globalModelId": "meta:muse-spark-1.1",
|
|
7
|
+
"source": "curated",
|
|
8
|
+
"displayName": "Muse Spark 1.1",
|
|
9
|
+
"description": "Original Muse Spark version with a 1M-token context.",
|
|
10
|
+
"modelType": "llm_chat",
|
|
11
|
+
"capabilities": ["chat_completion", "text_generation", "code_generation", "function_calling", "image_understanding"],
|
|
12
|
+
"modalities": ["text", "image"],
|
|
13
|
+
"tokenLimit": 1048576,
|
|
14
|
+
"configuration": { "modelId": "muse-spark-1.1", "maxTokens": 131072, "contextLength": 1048576 },
|
|
15
|
+
"hardware": ["consumer", "cloud"],
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"tags": ["meta", "muse-spark", "agentic", "frontier", "reasoning", "multimodal", "api-key"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta:muse-spark-1.2-contributor",
|
|
3
|
+
"providerId": "meta",
|
|
4
|
+
"providerModelId": "muse-spark-1.2-contributor",
|
|
5
|
+
"aliases": ["muse-spark-1.2-contributor", "meta:muse-spark-1.2-contributor"],
|
|
6
|
+
"globalModelId": "meta:muse-spark-1.2-contributor",
|
|
7
|
+
"source": "curated",
|
|
8
|
+
"displayName": "Muse Spark 1.2 Contributor",
|
|
9
|
+
"description": "Discounted Muse Spark 1.2 tier that permits training on prompts and completions.",
|
|
10
|
+
"modelType": "llm_chat",
|
|
11
|
+
"capabilities": ["chat_completion", "text_generation", "code_generation", "function_calling", "image_understanding"],
|
|
12
|
+
"modalities": ["text", "image"],
|
|
13
|
+
"tokenLimit": 1048576,
|
|
14
|
+
"configuration": { "modelId": "muse-spark-1.2-contributor", "maxTokens": 131072, "contextLength": 1048576 },
|
|
15
|
+
"hardware": ["consumer", "cloud"],
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"tags": ["meta", "muse-spark", "agentic", "frontier", "reasoning", "multimodal", "api-key", "contributor"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta:muse-spark-1.2",
|
|
3
|
+
"providerId": "meta",
|
|
4
|
+
"providerModelId": "muse-spark-1.2",
|
|
5
|
+
"aliases": ["muse-spark-1.2", "meta:muse-spark-1.2"],
|
|
6
|
+
"globalModelId": "meta:muse-spark-1.2",
|
|
7
|
+
"source": "curated",
|
|
8
|
+
"displayName": "Muse Spark 1.2",
|
|
9
|
+
"description": "Previous Muse Spark version with full audio understanding support and a 1M-token context.",
|
|
10
|
+
"modelType": "llm_chat",
|
|
11
|
+
"capabilities": ["chat_completion", "text_generation", "code_generation", "function_calling", "image_understanding"],
|
|
12
|
+
"modalities": ["text", "image"],
|
|
13
|
+
"tokenLimit": 1048576,
|
|
14
|
+
"configuration": { "modelId": "muse-spark-1.2", "maxTokens": 131072, "contextLength": 1048576 },
|
|
15
|
+
"hardware": ["consumer", "cloud"],
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"tags": ["meta", "muse-spark", "agentic", "frontier", "reasoning", "multimodal", "api-key"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta:muse-spark-1.3-contributor",
|
|
3
|
+
"providerId": "meta",
|
|
4
|
+
"providerModelId": "muse-spark-1.3-contributor",
|
|
5
|
+
"aliases": ["muse-spark-1.3-contributor", "meta:muse-spark-1.3-contributor"],
|
|
6
|
+
"globalModelId": "meta:muse-spark-1.3-contributor",
|
|
7
|
+
"source": "curated",
|
|
8
|
+
"displayName": "Muse Spark 1.3 Contributor",
|
|
9
|
+
"description": "Discounted Muse Spark 1.3 tier that permits training on prompts and completions.",
|
|
10
|
+
"modelType": "llm_chat",
|
|
11
|
+
"capabilities": ["chat_completion", "text_generation", "code_generation", "function_calling", "image_understanding"],
|
|
12
|
+
"modalities": ["text", "image"],
|
|
13
|
+
"tokenLimit": 1048576,
|
|
14
|
+
"configuration": { "modelId": "muse-spark-1.3-contributor", "maxTokens": 131072, "contextLength": 1048576 },
|
|
15
|
+
"hardware": ["consumer", "cloud"],
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"tags": ["meta", "muse-spark", "agentic", "frontier", "reasoning", "multimodal", "api-key", "contributor"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta:muse-spark-1.3",
|
|
3
|
+
"providerId": "meta",
|
|
4
|
+
"providerModelId": "muse-spark-1.3",
|
|
5
|
+
"aliases": ["muse-spark-1.3", "meta:muse-spark-1.3"],
|
|
6
|
+
"globalModelId": "meta:muse-spark-1.3",
|
|
7
|
+
"source": "curated",
|
|
8
|
+
"displayName": "Muse Spark 1.3",
|
|
9
|
+
"description": "Latest Muse Spark, tuned for agentic workflows and coding with a 1M-token context. Recommended for new work.",
|
|
10
|
+
"modelType": "llm_chat",
|
|
11
|
+
"capabilities": ["chat_completion", "text_generation", "code_generation", "function_calling", "image_understanding"],
|
|
12
|
+
"modalities": ["text", "image"],
|
|
13
|
+
"tokenLimit": 1048576,
|
|
14
|
+
"configuration": { "modelId": "muse-spark-1.3", "maxTokens": 131072, "contextLength": 1048576 },
|
|
15
|
+
"hardware": ["consumer", "cloud"],
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"tags": ["meta", "muse-spark", "agentic", "frontier", "reasoning", "multimodal", "api-key"]
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "meta",
|
|
3
|
+
"name": "Meta Model API",
|
|
4
|
+
"baseUrl": "https://api.meta.ai/v1",
|
|
5
|
+
"compatibleKindId": "openai-compatible",
|
|
6
|
+
"docsUrl": "https://dev.meta.ai/docs",
|
|
7
|
+
"sourceUrls": ["https://dev.meta.ai/docs/models", "https://dev.meta.ai/docs/authentication"]
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
import type { AITransportInterface } from '@vibesdotdev/ai/transports/interfaces';
|
|
3
|
+
/** The kernel retains and disposes one Muse client per resolving runtime. */
|
|
4
|
+
export declare class MuseTransportClient extends BaseRuntimeClient {
|
|
5
|
+
private ownedTransport?;
|
|
6
|
+
protected onLoad(): Promise<void>;
|
|
7
|
+
transport(): Promise<AITransportInterface>;
|
|
8
|
+
protected onDispose(): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=muse-client.consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muse-client.consumer.d.ts","sourceRoot":"","sources":["../../src/ai/muse-client.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAKlF,6EAA6E;AAC7E,qBAAa,mBAAoB,SAAQ,iBAAiB;IACzD,OAAO,CAAC,cAAc,CAAC,CAAuB;cAErB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,SAAS,IAAI,OAAO,CAAC,oBAAoB,CAAC;cAMvB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAYnD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
import { createRuntimeMuseServerTransport } from "./providers/meta/muse-server/runtime-execution.js";
|
|
3
|
+
import { museFailure } from "./providers/meta/muse-server/muse-failure.js";
|
|
4
|
+
import { settle } from "../failure-outcome.js";
|
|
5
|
+
/** The kernel retains and disposes one Muse client per resolving runtime. */
|
|
6
|
+
export class MuseTransportClient extends BaseRuntimeClient {
|
|
7
|
+
ownedTransport;
|
|
8
|
+
async onLoad() {
|
|
9
|
+
this.ownedTransport = await createRuntimeMuseServerTransport(this.runtime);
|
|
10
|
+
}
|
|
11
|
+
async transport() {
|
|
12
|
+
await this.ensureLoaded();
|
|
13
|
+
if (!this.ownedTransport)
|
|
14
|
+
throw museFailure('muse-transport-closed');
|
|
15
|
+
return this.ownedTransport;
|
|
16
|
+
}
|
|
17
|
+
async onDispose() {
|
|
18
|
+
const transport = this.ownedTransport;
|
|
19
|
+
this.ownedTransport = undefined;
|
|
20
|
+
if (!transport)
|
|
21
|
+
return;
|
|
22
|
+
const closed = await settle(Promise.resolve().then(() => transport.close?.()));
|
|
23
|
+
if (closed.failed) {
|
|
24
|
+
throw museFailure('muse-transport-close-failed', {
|
|
25
|
+
details: { failed: 1, of: 1 },
|
|
26
|
+
cause: new AggregateError([closed.cause])
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=muse-client.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muse-client.consumer.js","sourceRoot":"","sources":["../../src/ai/muse-client.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,6EAA6E;AAC7E,MAAM,OAAO,mBAAoB,SAAQ,iBAAiB;IACjD,cAAc,CAAwB;IAE3B,KAAK,CAAC,MAAM;QAC9B,IAAI,CAAC,cAAc,GAAG,MAAM,gCAAgC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,SAAS;QACd,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,cAAc;YAAE,MAAM,WAAW,CAAC,uBAAuB,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,cAAc,CAAC;IAC5B,CAAC;IAEkB,KAAK,CAAC,SAAS;QACjC,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/E,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,MAAM,WAAW,CAAC,6BAA6B,EAAE;gBAChD,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;gBAC7B,KAAK,EAAE,IAAI,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aACzC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
/** Cloud-safe Meta provider capabilities; consumer transports compose separately. */
|
|
3
|
+
export declare function createMetaAICloudPlugin(): RuntimePlugin;
|
|
4
|
+
export declare const metaAICloudPlugin: RuntimePlugin;
|
|
5
|
+
export default metaAICloudPlugin;
|
|
6
|
+
//# sourceMappingURL=provider.cloud.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.cloud.plugin.d.ts","sourceRoot":"","sources":["../../src/ai/provider.cloud.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA8E9E,qFAAqF;AACrF,wBAAgB,uBAAuB,IAAI,aAAa,CAyDvD;AAED,eAAO,MAAM,iBAAiB,eAA4B,CAAC;AAC3D,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
import { AI_PROVIDER_SCHEMA_KIND } from '@vibesdotdev/ai/providers-runtime';
|
|
3
|
+
import { AI_PROVIDER_RECOMMENDATION_KIND, createAIProviderRecommendationDescriptor } from '@vibesdotdev/ai/recommendations';
|
|
4
|
+
import metaProviderDescriptor from "./providers/cloud/frontier/meta/provider.meta.descriptor.js";
|
|
5
|
+
import metaProviderConfigDescriptor from "./providers/cloud/frontier/meta/config/config.meta.descriptor.js";
|
|
6
|
+
import metaDocsDescriptor from "./providers/meta/docs/ai.providers.meta.docs.descriptor.js";
|
|
7
|
+
import { metaConnectionSchema as schema0 } from "./providers/cloud/frontier/meta/config/schemas/index.js";
|
|
8
|
+
import provider_meta from './metadata/providers/meta.json' with { type: 'json' };
|
|
9
|
+
import providerModel_meta_meta_muse_spark_1_1 from './metadata/provider-models/meta/meta-muse-spark-1-1.json' with { type: 'json' };
|
|
10
|
+
import providerModel_meta_meta_muse_spark_1_2 from './metadata/provider-models/meta/meta-muse-spark-1-2.json' with { type: 'json' };
|
|
11
|
+
import providerModel_meta_meta_muse_spark_1_2_contributor from './metadata/provider-models/meta/meta-muse-spark-1-2-contributor.json' with { type: 'json' };
|
|
12
|
+
import providerModel_meta_meta_muse_spark_1_3 from './metadata/provider-models/meta/meta-muse-spark-1-3.json' with { type: 'json' };
|
|
13
|
+
import providerModel_meta_meta_muse_spark_1_3_contributor from './metadata/provider-models/meta/meta-muse-spark-1-3-contributor.json' with { type: 'json' };
|
|
14
|
+
import { AIProviderMetadataSchema, AIProviderModelMetadataSchema } from '@vibesdotdev/ai/metadata/schemas';
|
|
15
|
+
import { toAIModelDescriptor } from '@vibesdotdev/ai/metadata/models';
|
|
16
|
+
const providerDetectionDescriptor = {
|
|
17
|
+
id: 'meta',
|
|
18
|
+
kind: 'ai/provider-detection',
|
|
19
|
+
providerId: 'meta',
|
|
20
|
+
description: `System detection loader for ${'meta'}`
|
|
21
|
+
};
|
|
22
|
+
const providerRecommendationDescriptor = createAIProviderRecommendationDescriptor({
|
|
23
|
+
id: 'meta',
|
|
24
|
+
providerType: 'meta',
|
|
25
|
+
displayName: 'Meta Model API',
|
|
26
|
+
name: 'Meta provider recommendation',
|
|
27
|
+
description: 'Scores Meta Model API without embedding vendor policy in Framework',
|
|
28
|
+
hardware: ['consumer', 'cloud'],
|
|
29
|
+
enabled: true,
|
|
30
|
+
tags: ['meta', 'muse-spark', 'cloud']
|
|
31
|
+
});
|
|
32
|
+
const providerDocsDescriptor = metaDocsDescriptor;
|
|
33
|
+
const providerSchemaDescriptor = {
|
|
34
|
+
id: 'integrations/meta/ai/meta',
|
|
35
|
+
kind: AI_PROVIDER_SCHEMA_KIND,
|
|
36
|
+
providerId: 'meta',
|
|
37
|
+
schemaKind: 'connection',
|
|
38
|
+
sourcePath: 'integrations/meta/src/ai/providers/cloud/frontier/meta/config/schemas/index.ts',
|
|
39
|
+
version: '0.1.0-rc.0',
|
|
40
|
+
name: 'Meta Model API',
|
|
41
|
+
description: 'Muse Spark models for text, reasoning, and multimodal generation through the Meta Model API.'
|
|
42
|
+
};
|
|
43
|
+
const providerMetadata = AIProviderMetadataSchema.parse(provider_meta);
|
|
44
|
+
const providerModelDescriptor1 = toAIModelDescriptor(AIProviderModelMetadataSchema.parse(providerModel_meta_meta_muse_spark_1_1), providerMetadata);
|
|
45
|
+
const providerModelDescriptor2 = toAIModelDescriptor(AIProviderModelMetadataSchema.parse(providerModel_meta_meta_muse_spark_1_2), providerMetadata);
|
|
46
|
+
const providerModelDescriptor3 = toAIModelDescriptor(AIProviderModelMetadataSchema.parse(providerModel_meta_meta_muse_spark_1_2_contributor), providerMetadata);
|
|
47
|
+
const providerModelDescriptor4 = toAIModelDescriptor(AIProviderModelMetadataSchema.parse(providerModel_meta_meta_muse_spark_1_3), providerMetadata);
|
|
48
|
+
const providerModelDescriptor5 = toAIModelDescriptor(AIProviderModelMetadataSchema.parse(providerModel_meta_meta_muse_spark_1_3_contributor), providerMetadata);
|
|
49
|
+
/** Cloud-safe Meta provider capabilities; consumer transports compose separately. */
|
|
50
|
+
export function createMetaAICloudPlugin() {
|
|
51
|
+
return createRuntimePlugin({
|
|
52
|
+
id: 'integrations-meta/ai/cloud',
|
|
53
|
+
name: 'Meta AI Integration',
|
|
54
|
+
description: 'Registers Meta-owned AI descriptors and lazy implementations',
|
|
55
|
+
dependencies: ['ai.runtime'],
|
|
56
|
+
onRegister(runtime) {
|
|
57
|
+
runtime.registerDescriptor('ai/provider', metaProviderDescriptor);
|
|
58
|
+
runtime.registerDescriptor('config/manifest', metaProviderConfigDescriptor);
|
|
59
|
+
runtime.registerDescriptor('ai/provider-detection', providerDetectionDescriptor);
|
|
60
|
+
runtime.registerDescriptor(AI_PROVIDER_SCHEMA_KIND, providerSchemaDescriptor);
|
|
61
|
+
runtime.registerDescriptor(AI_PROVIDER_RECOMMENDATION_KIND, providerRecommendationDescriptor);
|
|
62
|
+
if (runtime.hasKind('docs/topic'))
|
|
63
|
+
runtime.registerDescriptor('docs/topic', providerDocsDescriptor);
|
|
64
|
+
runtime.registerDescriptor('ai/model', providerModelDescriptor1);
|
|
65
|
+
runtime.registerDescriptor('ai/model', providerModelDescriptor2);
|
|
66
|
+
runtime.registerDescriptor('ai/model', providerModelDescriptor3);
|
|
67
|
+
runtime.registerDescriptor('ai/model', providerModelDescriptor4);
|
|
68
|
+
runtime.registerDescriptor('ai/model', providerModelDescriptor5);
|
|
69
|
+
},
|
|
70
|
+
onActivate(runtime) {
|
|
71
|
+
runtime.registerLoader('ai/provider', 'meta', async () => ({
|
|
72
|
+
meta: { id: 'meta', kind: 'ai/provider', priority: 0 },
|
|
73
|
+
impl: (await import("./providers/meta/meta.provider.impl.js")).default
|
|
74
|
+
}));
|
|
75
|
+
runtime.registerLoader('ai/provider-detection', 'meta', async () => ({
|
|
76
|
+
meta: { id: 'meta', kind: 'ai/provider-detection', priority: 0 },
|
|
77
|
+
impl: { detect: async () => (await import("./providers/meta/detection/system.js")).detectMetaSystem(runtime) }
|
|
78
|
+
}));
|
|
79
|
+
runtime.registerLoader(AI_PROVIDER_SCHEMA_KIND, providerSchemaDescriptor.id, async () => ({
|
|
80
|
+
meta: { id: providerSchemaDescriptor.id, kind: AI_PROVIDER_SCHEMA_KIND, priority: 0 },
|
|
81
|
+
impl: {
|
|
82
|
+
connectionSchema: schema0,
|
|
83
|
+
metadata: {
|
|
84
|
+
name: 'Meta Model API',
|
|
85
|
+
description: 'Muse Spark models for text, reasoning, and multimodal generation through the Meta Model API.',
|
|
86
|
+
category: 'cloud',
|
|
87
|
+
capabilities: ['text', 'reasoning', 'vision', 'connection'],
|
|
88
|
+
fields: []
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
runtime.registerLoader(AI_PROVIDER_RECOMMENDATION_KIND, providerRecommendationDescriptor.id, async () => ({
|
|
93
|
+
meta: {
|
|
94
|
+
id: providerRecommendationDescriptor.id,
|
|
95
|
+
kind: AI_PROVIDER_RECOMMENDATION_KIND,
|
|
96
|
+
priority: providerRecommendationDescriptor.priority ?? 0
|
|
97
|
+
},
|
|
98
|
+
impl: new (await import("./providers/meta/recommendations.js")).MetaRecommendation()
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
export const metaAICloudPlugin = createMetaAICloudPlugin();
|
|
104
|
+
export default metaAICloudPlugin;
|
|
105
|
+
//# sourceMappingURL=provider.cloud.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.cloud.plugin.js","sourceRoot":"","sources":["../../src/ai/provider.cloud.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACN,uBAAuB,EAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,+BAA+B,EAC/B,wCAAwC,EACxC,MAAM,iCAAiC,CAAC;AAIzC,OAAO,sBAAsB,MAAM,6DAA6D,CAAC;AACjG,OAAO,4BAA4B,MAA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|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
import { getVibesClient, runtimeClientPlugin } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import transportDescriptor from "./providers/meta/muse-server/muse-server.transport.descriptor.js";
|
|
4
|
+
import museServerSpecDescriptor from "./providers/meta/muse-server/muse-server.spec.descriptor.js";
|
|
5
|
+
// The Muse spec drives the local muse-server child over stdio JSON-RPC, so it
|
|
6
|
+
// registers with its transport here, never in the cloud slice.
|
|
7
|
+
const metaAIConsumerPlugin = createRuntimePlugin({
|
|
8
|
+
id: 'integrations-meta/ai/consumer',
|
|
9
|
+
dependencies: ['integrations-meta/ai/cloud'],
|
|
10
|
+
async onRegister(runtime) {
|
|
11
|
+
await runtime.registerPlugin(runtimeClientPlugin);
|
|
12
|
+
runtime.registerDescriptor('runtime/client', {
|
|
13
|
+
kind: 'runtime/client', id: 'meta.muse', hardware: ['consumer'],
|
|
14
|
+
description: 'Runtime-owned Muse transport lifecycle'
|
|
15
|
+
});
|
|
16
|
+
runtime.registerDescriptor('ai/transport', transportDescriptor);
|
|
17
|
+
runtime.registerLoader('runtime/client', 'meta.muse', async () => ({
|
|
18
|
+
impl: (await import("./muse-client.consumer.js")).MuseTransportClient
|
|
19
|
+
}), { constraint: { hardware: ['consumer'] } });
|
|
20
|
+
runtime.registerLoader('ai/transport', transportDescriptor.id, async () => ({
|
|
21
|
+
impl: await (await getVibesClient('meta.muse', runtime)).transport()
|
|
22
|
+
}));
|
|
23
|
+
runtime.registerDescriptor('ai/spec', museServerSpecDescriptor);
|
|
24
|
+
runtime.registerLoader('ai/spec', museServerSpecDescriptor.id, async () => ({
|
|
25
|
+
impl: (await import("./providers/meta/muse-server/muse-server.spec.impl.js")).default
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export default metaAIConsumerPlugin;
|
|
30
|
+
//# sourceMappingURL=provider.consumer.plugin.js.map
|
|
@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,CAAC,SAAS,EAAE;SACzF,CAAC,CAAC,CAAC;QACJ,OAAO,CAAC,kBAAkB,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;QAChE,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,wBAAwB,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAC3E,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,uDAAuD,CAAC,CAAC,CAAC,OAAO;SACrF,CAAC,CAAC,CAAC;IACL,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
/** Compatible completed consumer entrypoint. */
|
|
3
|
+
export declare function createMetaAIPlugin(): RuntimePlugin;
|
|
4
|
+
export declare const metaAIPlugin: RuntimePlugin;
|
|
5
|
+
export default metaAIPlugin;
|
|
6
|
+
//# sourceMappingURL=provider.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.plugin.d.ts","sourceRoot":"","sources":["../../src/ai/provider.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAI9E,gDAAgD;AAChD,wBAAgB,kBAAkB,IAAI,aAAa,CASlD;AAED,eAAO,MAAM,YAAY,eAAuB,CAAC;AACjD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
2
|
+
import metaAICloudPlugin from "./provider.cloud.plugin.js";
|
|
3
|
+
import metaAIConsumerPlugin from "./provider.consumer.plugin.js";
|
|
4
|
+
/** Compatible completed consumer entrypoint. */
|
|
5
|
+
export function createMetaAIPlugin() {
|
|
6
|
+
return createRuntimePlugin({
|
|
7
|
+
id: 'integrations-meta/ai',
|
|
8
|
+
dependencies: ['ai.runtime'],
|
|
9
|
+
async onRegister(runtime) {
|
|
10
|
+
await runtime.registerPlugin(metaAICloudPlugin);
|
|
11
|
+
await runtime.registerPlugin(metaAIConsumerPlugin);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export const metaAIPlugin = createMetaAIPlugin();
|
|
16
|
+
export default metaAIPlugin;
|
|
17
|
+
//# sourceMappingURL=provider.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.plugin.js","sourceRoot":"","sources":["../../src/ai/provider.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,oBAAoB,MAAM,+BAA+B,CAAC;AAEjE,gDAAgD;AAChD,MAAM,UAAU,kBAAkB;IACjC,OAAO,mBAAmB,CAAC;QAC1B,EAAE,EAAE,sBAAsB;QAC1B,YAAY,EAAE,CAAC,YAAY,CAAC;QAC5B,KAAK,CAAC,UAAU,CAAC,OAAO;YACvB,MAAM,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAChD,MAAM,OAAO,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QACpD,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AACjD,eAAe,YAAY,CAAC"}
|