This folder is a standalone publish bundle extracted from the working branch. It is intended for sharing/releasing the publication flow separately.
The pipeline publishes the AI papers graph into a Geo space in 4 sequential scripts:
30a_foundation_people_papers1-30.ts- creates foundation entities: eras, domains, venues, datasets, concepts, organizations
- creates missing people entities
- publishes papers 1-30
30b_papers31-90.tspublishes papers 31-9030c_papers91-150.tspublishes papers 91-15030d_papers151-202.tspublishes the final papers batch31_rollback_top200.tsrolls back entities and relations created by the30a-30dlayers using savedbounty_*.txtops files32_cleanup_top200_space.tsfinds and deletes current Top200 entities in the target space by dataset names, including legacy papers created asProject
The scripts read JSON files from geo_publish_v2/.
By default src/bounty_shared.ts auto-resolves the first existing directory from:
-
./geo_publish_v2 -
../geo_publish_v2 -
entities:
eras.json,domains.json,venues.json,datasets.json,concepts.json,organizations.json,persons.json,papers.json -
relations:
rel_paper_person.json,rel_paper_venue.json,rel_paper_dataset.json,rel_paper_concept.json,rel_paper_org.json,rel_paper_era.json,rel_paper_domain.json -
images:
paper_images_202/(optional; papers still publish if an image is missing; auto-resolve order is./paper_images_202then../paper_images_202)
If your data lives elsewhere, update DATA_DIR and IMAGES_DIR in src/bounty_shared.ts.
- Each script builds Geo SDK operations (
ops) for entities, relations, blocks, and images. publishBatchwrites ops snapshots todata_to_delete/for audit/debug.- In live mode,
publishOpsresolves space type (PERSONAL or DAO) and submits/proposes the edit on testnet.
Install with Bun:
bun installMain dependencies (from package.json):
@geoprotocol/geo-sdkdotenvviemtypescript(+@types/node)
Use .env (or .env.example as a template):
DEMO_SPACE_ID=<target_space_id>
PK_SW=0x<private_key>Optional:
DRY_RUN=1bun run 30a_foundation_people_papers1-30.ts
bun run 30b_papers31-90.ts
bun run 30c_papers91-150.ts
bun run 30d_papers151-202.tsRollback dry-run / apply:
bun run 31_rollback_top200.ts
APPLY=true CONFIRM=ROLLBACK_TOP200 bun run 31_rollback_top200.tsCleanup current space data dry-run / apply:
bun run 32_cleanup_top200_space.ts
APPLY=true CONFIRM=DELETE_TOP200 bun run 32_cleanup_top200_space.tsBoth cleanup scripts default to BATCH_SIZE=1200. Override with BATCH_SIZE=<n> if you need smaller or larger transaction chunks.
- Keep this bundle and your exploratory scripts separate.