@contractspec/bundle.library 3.5.3 → 3.5.5
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +64 -0
- package/dist/application/index.js +20 -4
- package/dist/application/mcp/cliMcp.js +1 -1
- package/dist/application/mcp/index.js +20 -4
- package/dist/application/mcp/internalMcp.js +2 -2
- package/dist/application/mcp/providerRankingMcp.js +17 -1
- package/dist/features/docs.feature.js +1 -1
- package/dist/features/index.js +1 -1
- package/dist/features/registry.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node/application/index.js +20 -4
- package/dist/node/application/mcp/cliMcp.js +1 -1
- package/dist/node/application/mcp/index.js +20 -4
- package/dist/node/application/mcp/internalMcp.js +2 -2
- package/dist/node/application/mcp/providerRankingMcp.js +17 -1
- package/dist/node/features/docs.feature.js +1 -1
- package/dist/node/features/index.js +1 -1
- package/dist/node/features/registry.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/presentation/features/hooks/index.js +1 -1
- package/dist/node/presentation/features/hooks/useContractsRegistry.js +1 -1
- package/dist/node/presentation/features/hooks/useFeatureRegistry.js +1 -1
- package/dist/node/presentation/features/index.js +1 -1
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +1 -1
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -1
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +1 -1
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +1 -1
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +1 -1
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +1 -1
- package/dist/node/presentation/features/organisms/index.js +1 -1
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -1
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -1
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -1
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +1 -1
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -1
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +1 -1
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -1
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -1
- package/dist/presentation/features/hooks/index.js +1 -1
- package/dist/presentation/features/hooks/useContractsRegistry.js +1 -1
- package/dist/presentation/features/hooks/useFeatureRegistry.js +1 -1
- package/dist/presentation/features/index.js +1 -1
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +1 -1
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +1 -1
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +1 -1
- package/dist/presentation/features/organisms/FeatureEventsList.js +1 -1
- package/dist/presentation/features/organisms/FeatureFormsList.js +1 -1
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +1 -1
- package/dist/presentation/features/organisms/index.js +1 -1
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +1 -1
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +1 -1
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +1 -1
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +1 -1
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +1 -1
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +1 -1
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +1 -1
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +1 -1
- package/package.json +23 -22
- package/src/application/mcp/cliMcp.ts +1 -1
- package/src/application/mcp/internalMcp.ts +2 -2
- package/src/application/mcp/providerRankingMcp.ts +23 -1
- package/src/components/docs/generated/docs-index._common.json +94 -445
- package/src/components/docs/generated/docs-index.platform-docs.json +5 -5
- package/src/components/docs/generated/docs-index.unknown.json +5 -5
- package/src/features/docs.feature.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/bundle.library",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf dist",
|
|
@@ -2161,22 +2161,23 @@
|
|
|
2161
2161
|
},
|
|
2162
2162
|
"dependencies": {
|
|
2163
2163
|
"@apollo/client": "^4.1.6",
|
|
2164
|
-
"@contractspec/lib.
|
|
2165
|
-
"@contractspec/lib.contracts-
|
|
2166
|
-
"@contractspec/lib.
|
|
2167
|
-
"@contractspec/lib.
|
|
2168
|
-
"@contractspec/lib.
|
|
2169
|
-
"@contractspec/lib.
|
|
2170
|
-
"@contractspec/lib.
|
|
2171
|
-
"@contractspec/lib.
|
|
2172
|
-
"@contractspec/lib.
|
|
2173
|
-
"@contractspec/lib.
|
|
2174
|
-
"@contractspec/lib.
|
|
2175
|
-
"@contractspec/lib.
|
|
2176
|
-
"@contractspec/lib.
|
|
2177
|
-
"@contractspec/lib.ui-
|
|
2178
|
-
"@contractspec/
|
|
2179
|
-
"@contractspec/module.
|
|
2164
|
+
"@contractspec/lib.ai-providers": "3.5.5",
|
|
2165
|
+
"@contractspec/lib.contracts-spec": "3.5.5",
|
|
2166
|
+
"@contractspec/lib.contracts-library": "3.5.5",
|
|
2167
|
+
"@contractspec/lib.content-gen": "3.5.5",
|
|
2168
|
+
"@contractspec/lib.contracts-runtime-server-mcp": "3.5.5",
|
|
2169
|
+
"@contractspec/lib.design-system": "3.5.5",
|
|
2170
|
+
"@contractspec/lib.surface-runtime": "0.3.5",
|
|
2171
|
+
"@contractspec/lib.provider-ranking": "0.5.5",
|
|
2172
|
+
"@contractspec/lib.example-shared-ui": "4.0.5",
|
|
2173
|
+
"@contractspec/lib.knowledge": "3.5.5",
|
|
2174
|
+
"@contractspec/lib.logger": "3.5.5",
|
|
2175
|
+
"@contractspec/lib.runtime-sandbox": "2.5.5",
|
|
2176
|
+
"@contractspec/lib.schema": "3.5.5",
|
|
2177
|
+
"@contractspec/lib.ui-kit-web": "3.5.5",
|
|
2178
|
+
"@contractspec/lib.ui-link": "3.5.5",
|
|
2179
|
+
"@contractspec/module.context-storage": "0.5.5",
|
|
2180
|
+
"@contractspec/module.examples": "3.5.5",
|
|
2180
2181
|
"@dnd-kit/core": "^6.1.0",
|
|
2181
2182
|
"@dnd-kit/sortable": "^10.0.0",
|
|
2182
2183
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -2191,16 +2192,16 @@
|
|
|
2191
2192
|
"posthog-react-native": "^4.37.1",
|
|
2192
2193
|
"react-hook-form": "^7.71.2",
|
|
2193
2194
|
"zod": "^4.3.5",
|
|
2194
|
-
"@contractspec/lib.contracts-integrations": "3.5.
|
|
2195
|
-
"@contractspec/lib.contracts-runtime-server-rest": "3.5.
|
|
2196
|
-
"@contractspec/lib.contracts-runtime-server-graphql": "3.5.
|
|
2195
|
+
"@contractspec/lib.contracts-integrations": "3.5.5",
|
|
2196
|
+
"@contractspec/lib.contracts-runtime-server-rest": "3.5.5",
|
|
2197
|
+
"@contractspec/lib.contracts-runtime-server-graphql": "3.5.5"
|
|
2197
2198
|
},
|
|
2198
2199
|
"devDependencies": {
|
|
2199
2200
|
"@types/react": "~19.2.14",
|
|
2200
|
-
"@contractspec/tool.typescript": "3.5.
|
|
2201
|
+
"@contractspec/tool.typescript": "3.5.5",
|
|
2201
2202
|
"typescript": "^5.9.3",
|
|
2202
2203
|
"@types/bun": "~1.3.10",
|
|
2203
|
-
"@contractspec/tool.bun": "3.5.
|
|
2204
|
+
"@contractspec/tool.bun": "3.5.5"
|
|
2204
2205
|
},
|
|
2205
2206
|
"publishConfig": {
|
|
2206
2207
|
"access": "public",
|
|
@@ -140,7 +140,7 @@ function buildInternalPrompts() {
|
|
|
140
140
|
prompts.register(
|
|
141
141
|
definePrompt({
|
|
142
142
|
meta: {
|
|
143
|
-
key: '
|
|
143
|
+
key: 'internal_bootstrap',
|
|
144
144
|
version: '1.0.0',
|
|
145
145
|
title: 'Bootstrap internal ContractSpec agent',
|
|
146
146
|
description:
|
|
@@ -184,7 +184,7 @@ function buildInternalOps() {
|
|
|
184
184
|
|
|
185
185
|
const describeSpec = defineCommand({
|
|
186
186
|
meta: {
|
|
187
|
-
key: '
|
|
187
|
+
key: 'internal_describe',
|
|
188
188
|
version: '1.0.0',
|
|
189
189
|
stability: 'stable',
|
|
190
190
|
owners: INTERNAL_OWNERS,
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ProviderTransportSupport,
|
|
20
20
|
ProviderAuthSupport,
|
|
21
21
|
} from '@contractspec/lib.provider-ranking/types';
|
|
22
|
+
import { getModelInfo } from '@contractspec/lib.ai-providers/models';
|
|
22
23
|
import { InMemoryProviderRankingStore } from '@contractspec/lib.provider-ranking/in-memory-store';
|
|
23
24
|
import { createDefaultIngesterRegistry } from '@contractspec/lib.provider-ranking/ingesters';
|
|
24
25
|
import { computeModelRankings } from '@contractspec/lib.provider-ranking/scoring';
|
|
@@ -145,10 +146,31 @@ function buildRankingResources() {
|
|
|
145
146
|
data: JSON.stringify({ error: 'not_found', modelId }),
|
|
146
147
|
};
|
|
147
148
|
}
|
|
149
|
+
// Enrich with cost from ai-providers when store has none
|
|
150
|
+
const enriched =
|
|
151
|
+
profile.costPerMillion == null
|
|
152
|
+
? (() => {
|
|
153
|
+
const info = getModelInfo(profile.modelId);
|
|
154
|
+
return info?.costPerMillion
|
|
155
|
+
? {
|
|
156
|
+
...profile,
|
|
157
|
+
costPerMillion: info.costPerMillion,
|
|
158
|
+
displayName: info.name,
|
|
159
|
+
contextWindow: info.contextWindow,
|
|
160
|
+
capabilities: [
|
|
161
|
+
...(info.capabilities.vision ? ['vision'] : []),
|
|
162
|
+
...(info.capabilities.tools ? ['tools'] : []),
|
|
163
|
+
...(info.capabilities.reasoning ? ['reasoning'] : []),
|
|
164
|
+
...(info.capabilities.streaming ? ['streaming'] : []),
|
|
165
|
+
],
|
|
166
|
+
}
|
|
167
|
+
: profile;
|
|
168
|
+
})()
|
|
169
|
+
: profile;
|
|
148
170
|
return {
|
|
149
171
|
uri: `ranking://model/${encodeURIComponent(modelId)}`,
|
|
150
172
|
mimeType: 'application/json',
|
|
151
|
-
data: JSON.stringify(
|
|
173
|
+
data: JSON.stringify(enriched, null, 2),
|
|
152
174
|
};
|
|
153
175
|
},
|
|
154
176
|
})
|