{"_id":"@0xintuition/predicates","name":"@0xintuition/predicates","dist-tags":{"alpha":"0.1.0-alpha.0","latest":"0.1.0-alpha.0"},"versions":{"0.1.0-alpha.0":{"name":"@0xintuition/predicates","version":"0.1.0-alpha.0","description":"Canonical Intuition predicate registry, entity mappings, and display helpers","private":false,"license":"MIT","type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json","./*":{"types":"./dist/standalone/*.d.ts","import":"./dist/standalone/*.js"}},"keywords":["intuition","predicates","knowledge-graph"],"repository":{"type":"git","url":"git+https://github.com/0xIntuition/packages.git","directory":"packages/predicates"},"bugs":{"url":"https://github.com/0xIntuition/packages/issues"},"homepage":"https://github.com/0xIntuition/packages/tree/main/packages/predicates#readme","publishConfig":{"access":"public","tag":"alpha"},"scripts":{"build":"node ../../scripts/generate-predicate-standalone-modules.mjs && node ../../scripts/clean-dist.mjs && tsc -p tsconfig.build.json && node ../../scripts/normalize-dist-imports.mjs","clean":"git clean -xdf .cache .turbo dist node_modules","dev":"tsc --watch","pack:dry-run":"bun run build && npm pack --ignore-scripts --dry-run --json","pack:release":"bun run build && node ../../scripts/pack-release.mjs","prepack":"bun run build","prepublishOnly":"bun run build && node ../../scripts/guard-direct-publish.mjs","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","ci":"biome check","lint":"biome lint","format":"biome format","check":"biome check","lint:write":"biome lint --write","format:write":"biome format --write","check:write":"biome check --write","check:unsafe:write":"biome check --write --unsafe"},"dependencies":{"@0xintuition/ids":"0.1.0-alpha.0"},"peerDependencies":{"viem":"^2.0.0"},"devDependencies":{"typescript":"^5.9.3","vitest":"^4.0.16","viem":"^2.31.4"},"_id":"@0xintuition/predicates@0.1.0-alpha.0","gitHead":"ddc3489f8fe6d70b089adb37f26b030be763538f","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-pe4usDE7HUsJSG6QktWlvmtlhSNOHI32WOJl7B+XInXsHwDTh65TIryhOUBMNmG5x/nrPkYr3TLEncxw758leQ==","shasum":"ea6eca6c4aed15c50c7abc2ebf68fbf7c49b94bf","tarball":"https://registry.npmjs.org/@0xintuition/predicates/-/predicates-0.1.0-alpha.0.tgz","fileCount":840,"unpackedSize":1073191,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGXLWyx4wtIyyQga7pfPkYYV8TWeqoGXDZ0LlhTSNuwwAiBDVx0T+3sCSsWH3VyU28xDkAm4q9Dzd6cwJenOQUExjg=="}]},"_npmUser":{"name":"jpbuilds","email":"jp@intuition.systems"},"directories":{},"maintainers":[{"name":"orbro","email":"wluedtke207@gmail.com"},{"name":"jojikun","email":"jojikun@intuition.systems"},{"name":"jpbuilds","email":"jp@intuition.systems"},{"name":"vitalsine","email":"vital@intuition.systems"},{"name":"intuition_kames","email":"kames@intuition.systems"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/predicates_0.1.0-alpha.0_1781558275609_0.5816857954518364"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-15T21:17:55.486Z","0.1.0-alpha.0":"2026-06-15T21:17:55.752Z","modified":"2026-06-15T21:17:56.018Z"},"maintainers":[{"name":"orbro","email":"wluedtke207@gmail.com"},{"name":"jojikun","email":"jojikun@intuition.systems"},{"name":"jpbuilds","email":"jp@intuition.systems"},{"name":"vitalsine","email":"vital@intuition.systems"},{"name":"intuition_kames","email":"kames@intuition.systems"}],"description":"Canonical Intuition predicate registry, entity mappings, and display helpers","homepage":"https://github.com/0xIntuition/packages/tree/main/packages/predicates#readme","keywords":["intuition","predicates","knowledge-graph"],"repository":{"type":"git","url":"git+https://github.com/0xIntuition/packages.git","directory":"packages/predicates"},"bugs":{"url":"https://github.com/0xIntuition/packages/issues"},"license":"MIT","readme":"# @0xintuition/predicates\n\nCanonical Intuition predicate registry, launch constants, entity mappings, and display helpers.\n\nAlpha status: publish under the alpha dist-tag after release review. Predicate standalone modules are generated from per-predicate source specs.\n\nRuntime: ESM-only. This package does not publish CommonJS `require` entrypoints.\n\n## Included\n\n- 97-predicate registry with deterministic inline `DefinedTerm` atom data and atom IDs\n- Semantic metadata on every record: `isTransitive`, `isSymmetric`, `isHierarchical`, and optional `inversePredicate`\n- Launch-set constants, bootstrap helpers, and market-pattern marker atoms\n- Strategy helpers for canonical inline atom data and optional IPFS enrichment documents (IPFS documents carry the semantic flags in `additionalProperty`; inline atom data stays minimal for identity stability)\n- Legacy entity-type recommendations plus subject-aware display and localization primitives\n\n## Relationship Modeling\n\n`@0xintuition/predicates` owns reusable predicate vocabulary: keys, names, descriptions, deterministic IDs, launch constants, and display helpers.\n\nThe legacy entity-type map remains exported for compatibility and broad discovery, but its `expectedObjectType` values are human-readable hints. New classification-specific creation UI should use `@0xintuition/classifications` metadata predicate matrix instead, where object targets are typed as classification, schema, primitive, same-classification, or any.\n\n## Example\n\n```ts\nimport {\n\tbuildPredicateIpfsDocument,\n\tcreatePredicateAtomData,\n\tgetLaunchPredicateBootstrapTriples,\n\tPREDICATE_IDS,\n} from '@0xintuition/predicates'\nimport {\n\tfollow,\n\tfollowSpec,\n\tfollowAtomData as standaloneFollowAtomData,\n\tfollowId as standaloneFollowId,\n} from '@0xintuition/predicates/follow'\n\nconst followAtomData = createPredicateAtomData(\n\t'follow',\n\t'Directional subscription or tracking of the object entity'\n)\n\nconst registryFollowId = PREDICATE_IDS.follow\nconst followName = follow.name\nconst followKey = followSpec.key\nconst standaloneFollow = { id: standaloneFollowId, atomData: standaloneFollowAtomData }\n\nconst containIpfsDoc = buildPredicateIpfsDocument('contain', {\n\tdescription: 'The subject collection or container includes the object as a member or entry',\n\tmarketPattern: 'attributive',\n\tconjugates: true,\n\ti18n: {\n\t\ten: { base: 'contain', thirdPerson: 'contains', displayName: 'Contain' },\n\t},\n\tisHierarchical: true,\n\tinversePredicate: 'listed in',\n})\n\nconst bootstrapTriples = getLaunchPredicateBootstrapTriples()\n```\n\n\n## Install\n\n```bash\nbun add @0xintuition/predicates@alpha @0xintuition/ids@alpha viem\n```\n\nPeer dependency: `viem ^2.0.0`. Release smoke tests install `viem@2.31.4`.\n","readmeFilename":"README.md","_rev":"1-f4ac7fb3feb55c1c2d96af78a80561e0"}