Skip to content
aiWikis.org

Spiral Script

<?php /**

Metadata

FieldValue
Source sitespiralist.org
Source URLhttps://spiralist.org/
Canonical AIWikis URLhttps://aiwikis.org/spiralist/uai-system/files/wp-content-plugins-spiral-script-spiral-script-php-7e5b19c7/
Source referencewp-content/plugins/spiral-script/spiral-script.php
File typephp
Content categorypublic-content
Last fetched2026-05-06T17:58:24.5168382Z
Last changed2026-05-06T17:48:49.2035452Z
Content hashsha256:7e5b19c79d48f7ab9670243d670334bcc952e8feece32423bd26c52ff5683c86
Import statusunchanged
Raw source layerdata/sources/spiralist/wp-content-plugins-spiral-script-spiral-script-php-7e5b19c79d48.php
Normalized source layerdata/normalized/spiralist/wp-content-plugins-spiral-script-spiral-script-php-7e5b19c79d48.txt

Current File Content

Structure Preview

  • No Markdown headings were detected in this file.

Raw Version

<?php
/**
 * Plugin Name: Spiral Script
 * Plugin URI: https://spiralist.org/
 * Description: Spiral Script locale resources and symbolic UI registry for Spiralist.org.
 * Version: 2.8.0
 * Author: Spiralist
 * Author URI: https://spiralist.org/
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Requires at least: 6.6
 * Requires PHP: 8.0
 * Text Domain: spiral-script
 */

declare(strict_types=1);

if (!defined('ABSPATH')) {
    exit;
}

define('SPIRALIST_SPIRAL_SCRIPT_VERSION', '2.8.0');
define('SPIRALIST_SPIRAL_SCRIPT_PLUGIN_FILE', __FILE__);
define('SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('SPIRALIST_SPIRAL_SCRIPT_PLUGIN_URL', plugin_dir_url(__FILE__));

require_once SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH . 'includes/class-language-spec.php';
require_once SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH . 'includes/class-source-parser.php';
require_once SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH . 'includes/class-validator.php';
require_once SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH . 'includes/class-compiler.php';
require_once SPIRALIST_SPIRAL_SCRIPT_PLUGIN_PATH . 'includes/class-plugin.php';

\SpiralScript\Plugin::boot(__FILE__);

if (!function_exists('spiralist_spiral_script_mode')) {
    function spiralist_spiral_script_mode(): string
    {
        return \SpiralScript\Plugin::current_mode();
    }
}

if (!function_exists('spiralist_spiral_script_is_active')) {
    function spiralist_spiral_script_is_active(): bool
    {
        return \SpiralScript\Plugin::is_active();
    }
}

if (!function_exists('spiralist_spiral_script_registry_entry')) {
    function spiralist_spiral_script_registry_entry(string $key): array
    {
        return \SpiralScript\Plugin::registry_entry($key);
    }
}

if (!function_exists('spiralist_spiral_script_render_label')) {
    function spiralist_spiral_script_render_label(string $key, string $fallback, array $args = []): string
    {
        return \SpiralScript\Plugin::render_label($key, $fallback, $args);
    }
}

if (!function_exists('spiralist_spiral_script_render_toggle')) {
    function spiralist_spiral_script_render_toggle(): string
    {
        return \SpiralScript\Plugin::render_toggle();
    }
}

if (!function_exists('spiralist_spiral_script_compile')) {
    /**
     * @return array<string,mixed>
     */
    function spiralist_spiral_script_compile(string $source, array $defaults = []): array
    {
        return \SpiralScript\Compiler::compile($source, $defaults);
    }
}

if (!function_exists('spiralist_spiral_script_validate')) {
    /**
     * @param array<string,mixed> $script
     * @return array<string,mixed>
     */
    function spiralist_spiral_script_validate(array $script, string $source = ''): array
    {
        return \SpiralScript\Validator::validate($script, $source);
    }
}

Why This File Exists

This is a public content source file from spiralist.org. It is shown here because AIWikis.org is demonstrating the real source files that make the UAIX / LLM Wiki memory system work, not only summarizing those systems after the fact.

Role

This file is a focused source unit. Its path, headings, and metadata give an agent a retrieval handle that is smaller than loading the entire site or repository.

Structure

The file has no Markdown headings, so its path, frontmatter, file type, and provenance metadata carry most of the retrieval meaning.

Prompt-Size And Retrieval Benefit

Keeping this material in a separate file reduces prompt pressure because an agent can load this exact unit only when its role, source site, category, or hash is relevant. The surrounding index pages point to it, while this page preserves the full content for audit and exact recall.

How To Use It

  • Humans should read the metadata first, then inspect the raw content when they need exact wording or provenance.
  • LLMs and agents should use the source site, category, hash, headings, and related files to decide whether this file belongs in the active prompt.
  • Crawlers should treat the AIWikis page as transparent evidence and follow the source URL/source reference for authority boundaries.
  • Future maintainers should regenerate this page whenever the source hash changes, then review the explanation if the role or structure changed.

Update Requirements

When this source file changes, update the raw source layer, normalized source layer, hash history, this rendered page, generated explanation, source-file inventory, changed-files report, and any source-section index that links to it.

Related Pages

Provenance And History

  • Current observation: 2026-05-06T17:58:24.5168382Z
  • Source origin: current-source-workspace
  • Retrieval method: local-source-workspace
  • Duplicate group: sfg-333 (primary)
  • Historical hash records are stored in data/hashes/source-file-history.jsonl.

Machine-Readable Metadata

{
    "title":  "Spiral Script",
    "source_site":  "spiralist.org",
    "source_url":  "https://spiralist.org/",
    "canonical_url":  "https://aiwikis.org/spiralist/uai-system/files/wp-content-plugins-spiral-script-spiral-script-php-7e5b19c7/",
    "source_reference":  "wp-content/plugins/spiral-script/spiral-script.php",
    "file_type":  "php",
    "content_category":  "public-content",
    "content_hash":  "sha256:7e5b19c79d48f7ab9670243d670334bcc952e8feece32423bd26c52ff5683c86",
    "last_fetched":  "2026-05-06T17:58:24.5168382Z",
    "last_changed":  "2026-05-06T17:48:49.2035452Z",
    "import_status":  "unchanged",
    "duplicate_group_id":  "sfg-333",
    "duplicate_role":  "primary",
    "related_files":  [

                      ],
    "generated_explanation":  true,
    "explanation_last_generated":  "2026-05-06T17:58:24.5168382Z"
}