8004-solana 0.2.1 → 0.2.2
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/README.md
CHANGED
|
@@ -331,6 +331,13 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
331
331
|
|
|
332
332
|
---
|
|
333
333
|
|
|
334
|
+
## Community & Support
|
|
335
|
+
|
|
336
|
+
- **Telegram (Builder Support)**: [t.me/sol8004](https://t.me/sol8004)
|
|
337
|
+
- **X (Twitter)**: [x.com/Quantu_AI](https://x.com/Quantu_AI)
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
334
341
|
## Links
|
|
335
342
|
|
|
336
343
|
- **8004 Standard**: [eips.ethereum.org/EIPS/eip-8004](https://eips.ethereum.org/EIPS/eip-8004)
|
|
@@ -345,4 +352,4 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
345
352
|
|
|
346
353
|
---
|
|
347
354
|
|
|
348
|
-
**Built for the Solana ecosystem** | v0.2.
|
|
355
|
+
**Built for the Solana ecosystem** | v0.2.2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oasf-validator.d.ts","sourceRoot":"","sources":["../../src/core/oasf-validator.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"oasf-validator.d.ts","sourceRoot":"","sources":["../../src/core/oasf-validator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAkBH;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGpD;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OASF taxonomy validation utilities
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { createRequire } from 'module';
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
// Use createRequire for JSON imports - works across all Node.js versions
|
|
7
|
+
const allSkills = require('../taxonomies/all_skills.json');
|
|
8
|
+
const allDomains = require('../taxonomies/all_domains.json');
|
|
6
9
|
/**
|
|
7
10
|
* Validate if a skill slug exists in the OASF taxonomy
|
|
8
11
|
* @param slug The skill slug to validate (e.g., "natural_language_processing/summarization")
|
|
9
12
|
* @returns True if the skill exists in the taxonomy, False otherwise
|
|
10
13
|
*/
|
|
11
14
|
export function validateSkill(slug) {
|
|
12
|
-
const
|
|
13
|
-
const skills = skillsData.skills || {};
|
|
15
|
+
const skills = allSkills.skills || {};
|
|
14
16
|
return slug in skills;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
@@ -19,8 +21,7 @@ export function validateSkill(slug) {
|
|
|
19
21
|
* @returns True if the domain exists in the taxonomy, False otherwise
|
|
20
22
|
*/
|
|
21
23
|
export function validateDomain(slug) {
|
|
22
|
-
const
|
|
23
|
-
const domains = domainsData.domains || {};
|
|
24
|
+
const domains = allDomains.domains || {};
|
|
24
25
|
return slug in domains;
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
@@ -28,15 +29,13 @@ export function validateDomain(slug) {
|
|
|
28
29
|
* @returns Array of all valid skill slugs
|
|
29
30
|
*/
|
|
30
31
|
export function getAllSkills() {
|
|
31
|
-
|
|
32
|
-
return Object.keys(skillsData.skills || {});
|
|
32
|
+
return Object.keys(allSkills.skills || {});
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Get all available OASF domain slugs
|
|
36
36
|
* @returns Array of all valid domain slugs
|
|
37
37
|
*/
|
|
38
38
|
export function getAllDomains() {
|
|
39
|
-
|
|
40
|
-
return Object.keys(domainsData.domains || {});
|
|
39
|
+
return Object.keys(allDomains.domains || {});
|
|
41
40
|
}
|
|
42
41
|
//# sourceMappingURL=oasf-validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oasf-validator.js","sourceRoot":"","sources":["../../src/core/oasf-validator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,SAAS,
|
|
1
|
+
{"version":3,"file":"oasf-validator.js","sourceRoot":"","sources":["../../src/core/oasf-validator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAU/C,yEAAyE;AACzE,MAAM,SAAS,GAAG,OAAO,CAAC,+BAA+B,CAAe,CAAC;AACzE,MAAM,UAAU,GAAG,OAAO,CAAC,gCAAgC,CAAgB,CAAC;AAE5E;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC;IACtC,OAAO,IAAI,IAAI,MAAM,CAAC;AACxB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;IACzC,OAAO,IAAI,IAAI,OAAO,CAAC;AACzB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|