Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change entity data namespace from agiguild.near to near #25

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nexus/components/src/Agent/AgentEntityConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const renderItem = (item, editFunction) => {
props={{
item: convertSnakeToPascal(flatItem),
editFunction,
namespace: 'agiguild',
namespace: 'near',
entityType: 'agent',
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Agent",
}}
Expand All @@ -24,7 +24,7 @@ const renderItem = (item, editFunction) => {
};
return (
<Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'agent', title: 'Agent',
props={{namespace: 'near', entityType: 'agent', title: 'Agent',
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Agent",
renderItem,
}}/>
Expand Down
2 changes: 1 addition & 1 deletion nexus/components/src/Overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const dummyData = {
logo_url: "",
};
const prefillData = Array(TRENDING_APPS_LIMIT).fill(dummyData);
const namespace = "agiguild";
const namespace = "near";
const entityType = "agent";
const collection = "dataplatform_near_entities_entities";
const buildQueries = () => {
Expand Down
6 changes: 3 additions & 3 deletions nexus/components/src/Placeholder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ const createWidget = "${REPL_ACCOUNT}/widget/Entities.Template.EntityCreate";

const loadItems = (queries, queryName, offset, collection, onLoad) => {
const placeholderData = { data: [
{name: 'test1', displayName: 'Alpha Alpaca Aardvark Alumnus', accountId: 'agiguild.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
{name: 'test2', displayName: 'Beta Barracuda Baleen Boilermaker', accountId: 'agiguild.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
{name: 'test3', displayName: 'Gamma Guppy Gorilla Grapher', accountId: 'agiguild.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
{name: 'test1', displayName: 'Alpha Alpaca Aardvark Alumnus', accountId: 'root.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
{name: 'test2', displayName: 'Beta Barracuda Baleen Boilermaker', accountId: 'root.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
{name: 'test3', displayName: 'Gamma Guppy Gorilla Grapher', accountId: 'root.near', logoUrl: 'https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu'},
]};
return Promise.resolve().then(() => onLoad(placeholderData.data, placeholderData.data.length));
};
Expand Down
2 changes: 1 addition & 1 deletion nexus/components/src/Schema/Agent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {genSchema: genericGenSchema} = VM.require("${REPL_ACCOUNT}/widget/Entitie


const genSchema = (ignored) => {
const namespace = "agiguild";
const namespace = "near";
const entityType = "agent";
const entityTitle = "Agent";

Expand Down
2 changes: 1 addition & 1 deletion nexus/components/src/Schema/AlignmentDataset.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


const genSchema = () => {
const namespace = 'agiguild';
const namespace = 'near';
const entityType = 'alignmentDataset';
const entityTitle = 'Alignment Dataset';
const title = entityTitle;
Expand Down
6 changes: 3 additions & 3 deletions nexus/components/src/Schema/ModelName.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {genSchema: genericGenSchema} = VM.require("${REPL_ACCOUNT}/widget/Entities.Template.GenericSchema");

const genSchema = (ignored) => {
const namespace = "agiguild";
const namespace = "near";
const entityType = "modelName";
const entityTitle = "Model Name";

Expand All @@ -22,13 +22,13 @@ const genSchema = (ignored) => {
// we can have both!
// relationships: [
// {
// namespace: "agiguild",
// namespace: "near",
// entityType: "provider",
// }
// ],
// providers: {
// type: "object",
// schema: "agiguild.provider",
// schema: "near.provider",
// }
// }
};
Expand Down
38 changes: 19 additions & 19 deletions nexus/components/src/Schema/Nexus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@ const schema = {
name: "Crowdsourcing",
value: "crowdsourcing",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'crowdsourcedDataset'}}/>,
props={{namespace: 'near', entityType: 'crowdsourcedDataset'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Data marketplace",
value: "dataMarketplace",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'dataMarketplace'}}/>,
props={{namespace: 'near', entityType: 'dataMarketplace'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Foundation",
value: "foundation",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'foundationDataset'}}/>,
props={{namespace: 'near', entityType: 'foundationDataset'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Supervised Fine Tuning",
value: "fineTuning",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'fineTuningDataset',
props={{namespace: 'near', entityType: 'fineTuningDataset',
title: 'Supervised Fine Tuning Datasets'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Alignment",
value: "alignment",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'alignmentDataset',
props={{namespace: 'near', entityType: 'alignmentDataset',
title: 'Alignment Datasets: RLHF, DPO',
schemaFile: "${REPL_AGIGUILD}/widget/Schema.AlignmentDataset"}}/>,
icon: "ph ph-chart-bar-horizontal",
Expand All @@ -71,23 +71,23 @@ const schema = {
name: "Providers",
value: "providers",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'modelProvider',
props={{namespace: 'near', entityType: 'modelProvider',
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Provider"}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Standard Model Names",
value: "modelNames",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'modelName', title: 'Standard Model Names',
props={{namespace: 'near', entityType: 'modelName', title: 'Standard Model Names',
schemaFile: "${REPL_AGIGUILD}/widget/Schema.ModelName"}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Model Weights",
value: "models",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'model', title: 'Model Weights'}}/>,
props={{namespace: 'near', entityType: 'model', title: 'Model Weights'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
],
Expand All @@ -107,21 +107,21 @@ const schema = {
name: "Frameworks",
value: "frameworks",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'agentFramework'}}/>,
props={{namespace: 'near', entityType: 'agentFramework'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Modules",
value: "modules",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'agentModule'}}/>,
props={{namespace: 'near', entityType: 'agentModule'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "User Interfaces",
value: "uis",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'customUI', title: 'Custom User Interfaces'}}/>,
props={{namespace: 'near', entityType: 'customUI', title: 'Custom User Interfaces'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
],
Expand All @@ -135,14 +135,14 @@ const schema = {
name: "On-chain Contracts",
value: "contracts",
content: <Widget src="${REPL_AGIGUILD}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'contractTool', title: 'On-Chain Contracts'}}/>,
props={{namespace: 'near', entityType: 'contractTool', title: 'On-Chain Contracts'}}/>,
icon: "ph ph-address-book",
},
{
name: "APIs",
value: "apis",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'apiTool', title: 'API Tools'}}/>,
props={{namespace: 'near', entityType: 'apiTool', title: 'API Tools'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
],
Expand All @@ -156,21 +156,21 @@ const schema = {
name: "Data Sources",
value: "dataSource",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'dataSource'}}/>,
props={{namespace: 'near', entityType: 'dataSource'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Data Source Types",
value: "dataSourceType",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'dataSourceType'}}/>,
props={{namespace: 'near', entityType: 'dataSourceType'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Delegated Permissions",
value: "delegation",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'delegation',
props={{namespace: 'near', entityType: 'delegation',
title: 'Permissions you can Delegate'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
Expand All @@ -185,21 +185,21 @@ const schema = {
name: "Data Reputation",
value: "dataReputation",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'dataReputation'}}/>,
props={{namespace: 'near', entityType: 'dataReputation'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Agent Reputation",
value: "agentReputation",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'agentReputation'}}/>,
props={{namespace: 'near', entityType: 'agentReputation'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
{
name: "Compliance Proofs",
value: "proof",
content: <Widget src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{namespace: 'agiguild', entityType: 'proof',
props={{namespace: 'near', entityType: 'proof',
title: 'Compliance Proofs'}}/>,
icon: "ph ph-chart-bar-horizontal",
},
Expand Down
Loading