ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/thatdeveloperguy-website / tools/import-truth.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/thatdeveloperguy-website / tools/import-truth.ts
DateNot specified in source
RepositoryJanady13/thatdeveloperguy-website
Revision2bea2ebdff0e34494bff597d4fa9c8422a0c3a94
Branchmain
Path or archive membertools/import-truth.ts
Original SHA-256d68c1a712535aa454a5205348135eafc683357729be029dd417919e58ad8a0ff
Git blob SHA1a9463becc544591320dc04c0c9ae620e66b3e73
Reading-copy SHA-256d68c1a712535aa454a5205348135eafc683357729be029dd417919e58ad8a0ff

Original source ↗

Recovered source transcript

import { execFileSync } from 'node:child_process'; import { readFileSync, writeFileSync, mkdirSync } from 'node:fs'; import { resolve } from 'node:path'; import { pathToFileURL } from 'node:url'; import { repoRoot } from './kits.ts'; export const NODE_ROOT = '/Users/josephanady/Code/thatdeveloperguy-truth'; export const OWNER_TO_SUPPLY = ['CAGE code', 'SAM.gov Active date', 'SBA VetCert status', 'NAICS approval', 'PSC codes', 'Named past-performance clients'] as const; export interface Projection { schema: 'tdg-site-truth/v1'; sourceCommit: string; importedAt: string; org: { id: string; name: string; legalName: string; telephone: string; telephoneDisplay: string; email: string; foundingDate: string; address: Record<string, string>; sameAs: string[] }; person: { id: string; name: string; jobTitle: string; url: string }; host: { host: string; role: string }; ownerToSupply: string[]; } /** Copies fields verbatim; never derives, rewrites or "improves" wording. */ export function project(node: any, sourceCommit: string): Projection { const host = (node.properties?.hosts ?? []).find((h: any) => h.host === 'thatdeveloperguy.com') ?? { host: 'thatdeveloperguy.com', role: '' }; return { schema: 'tdg-site-truth/v1', sourceCommit, importedAt: new Date().toISOString(), org: { id: node.org['@id'], name: node.org.name, legalName: node.org.legalName, telephone: node.org.telephone, telephoneDisplay: node.org.telephoneDisplay ?? '', email: node.org.email, foundingDate: String(node.org.foundingDate ?? ''), address: node.org.address ?? {}, sameAs: node.org.sameAs ?? [] }, person: { id: node.person['@id'], name: node.person.name, jobTitle: node.person.jobTitle, url: node.person.url }, host: { host: host.host, role: host.role }, ownerToSupply: [...OWNER_TO_SUPPLY], }; } if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) { const node = JSON.parse(readFileSync(resolve(NODE_ROOT, 'organization.json'), 'utf8')); const commit = execFileSync('git', ['-C', NODE_ROOT, 'rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(); const out = resolve(repoRoot, 'build-inputs/authority'); mkdirSync(out, { recursive: true }); writeFileSync(resolve(out, 'public-projection.json'), JSON.stringify(project(node, commit), null, 2) + '\n'); console.log(`truth projected from ${NODE_ROOT}@${commit.slice(0, 8)}`); }

Search equations, builds, manuscript text, and recovered sources.