From: Thomas Walker Lynch Date: Wed, 24 Jun 2026 14:20:42 +0000 (+0000) Subject: counter foundation X-Git-Url: https://git.reasoningtechnology.com/RT-Manuscript_locator.js?a=commitdiff_plain;h=b82c2cbaf1d2203257cdc70d121f0d3cdf15847d;p=RT-Style counter foundation --- diff --git a/administrator/document/RT-Style_locator.js b/administrator/document/RT-Style_locator.js index 39b2706..2f93eb7 100644 --- a/administrator/document/RT-Style_locator.js +++ b/administrator/document/RT-Style_locator.js @@ -1,48 +1,34 @@ /* + direct.js + + We have four scenarios - immediate - used in the RT-Style distribution itself (authored, consumer, staged) - direct - used in the RT-Style project itself, but not in the distribution + immediate - used in the RT-style distribution itself (authored, consummer, staged) + direct - used in the RT-style project itself, but not in the distribution indirect - the version all Harmony projects use - URL-only - always pulls style through a URL, a webserver must be present + URL_only - always pulls style through a URL, a webserver must be present */ window.RT = window.RT || {}; -// --- Configuration --- -// Define the consumer project name to allow dynamic local file:// calculation. -window.RT.project_name = "Harmony"; - -// Fallback URL when served over a network where the project root is not in the URI. -window.RT.server_url = "http://localhost:8000/shared/linked-project/RT-Style/Manuscript"; - (function() { - let style_path = window.RT.server_url; - - if (window.RT.project_name) { - const path = window.location.pathname; - const project_root_index = path.indexOf('/' + window.RT.project_name + '/'); - - if (project_root_index !== -1) { - // substring(0, stop) extracts up to the project name, leaving off the trailing slash. - // We append the explicit forward slash before navigating into the shared boundary. - const absolute_project_root = path.substring(0, project_root_index + window.RT.project_name.length + 1); - - // The symlink 'RT-Style' already drops us inside the 'consumer/' directory, - // so we proceed directly to 'Manuscript'. - style_path = absolute_project_root + "/shared/linked-project/RT-Style/Manuscript"; - } else { - console.warn("RT-Style: Cannot locate project root '/" + window.RT.project_name + "/' in URI. Falling back to server_url."); - } - } + const project_name = "RT-Style"; + const path = window.location.pathname; + const project_root_index = path.indexOf('/' + project_name + '/'); - window.RT.dirpr_library = style_path; + if (project_root_index !== -1) { + // substring(0, x) excludes the trailing slash. We must prepend it to the payload. + const absolute_project_root = path.substring(0, project_root_index + project_name.length + 1); + window.RT.dirpr_library = absolute_project_root + "/consumer/Manuscript"; + } else { + // Fallback for when served via local Python HTTP daemon from the project root + window.RT.dirpr_library = "../consumer/made/Manuscript"; + } - // 1. Inject the loader script document.write(' + + + + + + +

Primary Analysis

+

+ Observe the data in Figure . +

+ + + +

+ Detail view of the left quadrant: Figure . +

+ + +

+ Detail view of the right quadrant: Figure . +

+ + + +

+ Microscopic inspection: Figure . +

+ +
+
+ +

Secondary Analysis

+

+ Proceeding to the next major component, shown in Figure . +

+ +
+

Forward Reference Validation

+

This text proves we can accurately call back to earlier elements.

+ +
+ + + + diff --git a/tester/authored/test_routine.sh b/tester/authored/test_routine.sh deleted file mode 100644 index f22c3ba..0000000 --- a/tester/authored/test_routine.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# test_routing.sh -# Sends mock HTTP requests to the local unix socket to verify domain routing. - -SOCKET_FP="../user/release/scratchpad/network_interface/RT_server.sock" - -if [ ! -S "${SOCKET_FP}" ]; then - echo "Error: Socket not found at ${SOCKET_FP}" >&2 - echo "Make sure the HTTP_server.js process is running in the user workspace." >&2 - exit 1 -fi - -echo "=== Testing Reasoning Technology domain ===" -curl --unix-socket "${SOCKET_FP}" \ - -H "Host: x6.reasoningtechnology.com" \ - http://localhost/ - -echo -e "\n\n=== Testing Thomas Walker Lynch domain ===" -curl --unix-socket "${SOCKET_FP}" \ - -H "Host: x6.thomas-walker-lynch.com" \ - http://localhost/ - -echo -e "\n\n=== Testing Unknown domain ===" -curl --unix-socket "${SOCKET_FP}" \ - -H "Host: nonexistent-domain.com" \ - http://localhost/