executor 1.2.4-beta.8 → 1.2.4-beta.9
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/bin/executor.mjs +14 -22
- package/package.json +1 -1
- package/resources/web/assets/{highlighted-body-TPN3WLV5-Baq9vVYv.js → highlighted-body-TPN3WLV5-ClUMlyVS.js} +1 -1
- package/resources/web/assets/{index-DRH7lJOm.js → index-DDjmmEpK.js} +2 -2
- package/resources/web/assets/{mermaid-O7DHMXV3-DGEw29FN.js → mermaid-O7DHMXV3-Db4FZ7mR.js} +3 -3
- package/resources/web/index.html +1 -1
package/bin/executor.mjs
CHANGED
|
@@ -357820,18 +357820,7 @@ var loadWorkspaceCatalogNamespaces = (input) => gen2(function* () {
|
|
|
357820
357820
|
}
|
|
357821
357821
|
return sortNamespaces(namespaces.values());
|
|
357822
357822
|
});
|
|
357823
|
-
var loadWorkspaceCatalogTools = (input) => input.
|
|
357824
|
-
const catalogs = yield* input.sourceCatalogStore.loadWorkspaceSourceCatalogs({
|
|
357825
|
-
scopeId: input.scopeId,
|
|
357826
|
-
actorScopeId: input.actorScopeId
|
|
357827
|
-
});
|
|
357828
|
-
const tools = yield* expandCatalogTools({
|
|
357829
|
-
catalogs,
|
|
357830
|
-
includeSchemas: true,
|
|
357831
|
-
includeTypePreviews: true
|
|
357832
|
-
});
|
|
357833
|
-
return tools.map(loadedSourceCatalogToolIndexEntryFromLoadedTool).filter((tool) => tool.source.enabled && tool.source.status === "connected");
|
|
357834
|
-
}) : map16(input.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({
|
|
357823
|
+
var loadWorkspaceCatalogTools = (input) => map16(input.sourceCatalogStore.loadWorkspaceSourceCatalogToolIndex({
|
|
357835
357824
|
scopeId: input.scopeId,
|
|
357836
357825
|
actorScopeId: input.actorScopeId
|
|
357837
357826
|
}), (tools) => tools.filter((tool) => tool.source.enabled && tool.source.status === "connected"));
|
|
@@ -357935,12 +357924,11 @@ var createScopeSourceCatalog = (input) => {
|
|
|
357935
357924
|
sourceArtifactStore: input.sourceArtifactStore
|
|
357936
357925
|
});
|
|
357937
357926
|
const provideWorkspaceStorage = (effect3) => effect3.pipe(provide2(scopeStorageLayer));
|
|
357938
|
-
const buildSharedCatalog = (
|
|
357927
|
+
const buildSharedCatalog = () => provideWorkspaceStorage(gen2(function* () {
|
|
357939
357928
|
const catalogTools = yield* loadWorkspaceCatalogTools({
|
|
357940
357929
|
scopeId: input.scopeId,
|
|
357941
357930
|
actorScopeId: input.actorScopeId,
|
|
357942
|
-
sourceCatalogStore: input.sourceCatalogStore
|
|
357943
|
-
includeSchemas
|
|
357931
|
+
sourceCatalogStore: input.sourceCatalogStore
|
|
357944
357932
|
});
|
|
357945
357933
|
return createToolCatalogFromEntries({
|
|
357946
357934
|
entries: catalogTools.map((tool) => catalogToolCatalogEntry({
|
|
@@ -357949,23 +357937,27 @@ var createScopeSourceCatalog = (input) => {
|
|
|
357949
357937
|
}))
|
|
357950
357938
|
});
|
|
357951
357939
|
}));
|
|
357952
|
-
const leanSharedCatalog = runSync(cached3(buildSharedCatalog(
|
|
357953
|
-
const schemaSharedCatalog = runSync(cached3(buildSharedCatalog(true)));
|
|
357954
|
-
const createSharedCatalog = (includeSchemas) => includeSchemas ? schemaSharedCatalog : leanSharedCatalog;
|
|
357940
|
+
const leanSharedCatalog = runSync(cached3(buildSharedCatalog()));
|
|
357955
357941
|
return {
|
|
357956
357942
|
listNamespaces: ({ limit }) => provideRuntimeLocalScope(provideWorkspaceStorage(map16(loadWorkspaceCatalogNamespaces({
|
|
357957
357943
|
scopeId: input.scopeId,
|
|
357958
357944
|
actorScopeId: input.actorScopeId,
|
|
357959
357945
|
sourceCatalogStore: input.sourceCatalogStore
|
|
357960
357946
|
}), (namespaces) => namespaces.slice(0, limit))), input.runtimeLocalScope),
|
|
357961
|
-
listTools: ({ namespace, query, limit
|
|
357947
|
+
listTools: ({ namespace, query, limit }) => provideRuntimeLocalScope(flatMap10(leanSharedCatalog, (catalog6) => catalog6.listTools({
|
|
357962
357948
|
...namespace !== undefined ? { namespace } : {},
|
|
357963
357949
|
...query !== undefined ? { query } : {},
|
|
357964
357950
|
limit,
|
|
357965
|
-
includeSchemas
|
|
357951
|
+
includeSchemas: false
|
|
357966
357952
|
})), input.runtimeLocalScope),
|
|
357967
|
-
getToolByPath: ({ path: path4, includeSchemas }) => provideRuntimeLocalScope(
|
|
357968
|
-
|
|
357953
|
+
getToolByPath: ({ path: path4, includeSchemas }) => provideRuntimeLocalScope(includeSchemas ? map16(provideWorkspaceStorage(loadWorkspaceCatalogToolByPath({
|
|
357954
|
+
scopeId: input.scopeId,
|
|
357955
|
+
actorScopeId: input.actorScopeId,
|
|
357956
|
+
sourceCatalogStore: input.sourceCatalogStore,
|
|
357957
|
+
path: path4,
|
|
357958
|
+
includeSchemas: true
|
|
357959
|
+
})), (tool) => tool?.descriptor ?? null) : flatMap10(leanSharedCatalog, (catalog6) => catalog6.getToolByPath({ path: path4, includeSchemas: false })), input.runtimeLocalScope),
|
|
357960
|
+
searchTools: ({ query, namespace, limit }) => provideRuntimeLocalScope(flatMap10(leanSharedCatalog, (catalog6) => catalog6.searchTools({
|
|
357969
357961
|
query,
|
|
357970
357962
|
...namespace !== undefined ? { namespace } : {},
|
|
357971
357963
|
limit
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-
|
|
1
|
+
import{r,R as c,M as p,B as x}from"./mermaid-O7DHMXV3-Db4FZ7mR.js";import{j as d}from"./index-CRuElBS1.js";var R=({code:i,language:e,raw:t,className:g,startLine:u,...m})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:u,...m})};export{R as HighlightedCodeBlockBody};
|