add canonical permacomputer preamble to all source files
This commit is contained in:
parent
255f0089f6
commit
95d6baeebb
113 changed files with 1406 additions and 1221 deletions
|
|
@ -1,9 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
// Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Comprehensive Integration tests to verify all imports, exports, and functionality work correctly
|
||||
// Run with: node integration_tests.js
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, join } from 'path';
|
||||
|
|
|
|||
17
journal.rst
17
journal.rst
|
|
@ -1,3 +1,20 @@
|
|||
.. This is free software for the public good of a permacomputer hosted at
|
||||
.. permacomputer.com, an always-on computer by the people, for the people.
|
||||
.. One which is durable, easy to repair, & distributed like tap water
|
||||
.. for machine learning intelligence.
|
||||
..
|
||||
.. The permacomputer is community-owned infrastructure optimized around
|
||||
.. four values:
|
||||
..
|
||||
.. TRUTH First principles, math & science, open source code freely distributed
|
||||
.. FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
.. HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
.. LOVE Be yourself without hurting others, cooperation through natural law
|
||||
..
|
||||
.. This software contributes to that vision by making machine learning
|
||||
.. accessible to everyone through a free, open, embeddable chat interface.
|
||||
.. Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
====================
|
||||
Development Journal
|
||||
====================
|
||||
|
|
|
|||
17
lib/un.js
17
lib/un.js
|
|
@ -1,3 +1,20 @@
|
|||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
/**
|
||||
* PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* This is free software for the public good of a permacomputer hosted at
|
||||
* permacomputer.com, an always-on computer by the people, for the people.
|
||||
* One which is durable, easy to repair, & distributed like tap water
|
||||
* for machine learning intelligence.
|
||||
*
|
||||
* The permacomputer is community-owned infrastructure optimized around
|
||||
* four values:
|
||||
*
|
||||
* TRUTH First principles, math & science, open source code freely distributed
|
||||
* FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
* HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
* LOVE Be yourself without hurting others, cooperation through natural law
|
||||
*
|
||||
* This software contributes to that vision by making machine learning
|
||||
* accessible to everyone through a free, open, embeddable chat interface.
|
||||
* Code is seeds to sprout on any abandoned technology.
|
||||
*/
|
||||
|
||||
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on October 4, 2021 */
|
||||
|
||||
@font-face {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
/*
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
* This is free software for the public good of a permacomputer hosted at
|
||||
* permacomputer.com, an always-on computer by the people, for the people.
|
||||
* One which is durable, easy to repair, & distributed like tap water
|
||||
* for machine learning intelligence.
|
||||
*
|
||||
* The permacomputer is community-owned infrastructure optimized around
|
||||
* four values:
|
||||
*
|
||||
* TRUTH First principles, math & science, open source code freely distributed
|
||||
* FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
* HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
* LOVE Be yourself without hurting others, cooperation through natural law
|
||||
*
|
||||
* This software contributes to that vision by making machine learning
|
||||
* accessible to everyone through a free, open, embeddable chat interface.
|
||||
* Code is seeds to sprout on any abandoned technology.
|
||||
*/
|
||||
|
||||
/* CSS Grid-based sidebar navigation theme for PicoCSS */
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,20 @@
|
|||
#!/bin/bash
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# UncloseAI Bash Library - OpenAI-compatible API client with streaming support
|
||||
# Compatible with vLLM, Ollama, and OpenAI-compatible endpoints
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# Model discovery for COBOL - outputs discovered models to files
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# Use first discovered model
|
||||
if [ ! -f /tmp/model_0.txt ] || [ ! -f /tmp/endpoint_0.txt ]; then
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# Use second discovered model (or first if only one)
|
||||
if [ -f /tmp/model_1.txt ] && [ -f /tmp/endpoint_1.txt ]; then
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# Use first TTS endpoint
|
||||
if [ ! -f /tmp/tts_endpoint.txt ]; then
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
defmodule UncloseAI do
|
||||
@moduledoc """
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
defmodule AIExamples.MixProject do
|
||||
use Mix.Project
|
||||
|
|
|
|||
|
|
@ -1,8 +1,20 @@
|
|||
#!/usr/bin/env elixir
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
# Load dependencies (skip Mix.install when running via Docker with pre-compiled deps)
|
||||
unless System.get_env("MIX_ENV") == "prod" do
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
defmodule UncloseaiOpenai.MixProject do
|
||||
use Mix.Project
|
||||
|
|
|
|||
|
|
@ -1,8 +1,20 @@
|
|||
#!/usr/bin/env elixir
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
Mix.install([{:openai_ex, "~> 0.9.18"}, {:httpoison, "~> 2.2"}, {:jason, "~> 1.4"}])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
// Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// UncloseAI Go Library - Usage Examples
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// Demonstrates how to use the UncloseAI library for:
|
||||
// - Model discovery
|
||||
// - Non-streaming chat completions
|
||||
// - Streaming chat completions
|
||||
// - Text-to-speech generation
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
// Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
// Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
package main
|
||||
|
||||
|
|
|
|||
|
|
@ -1,26 +1,20 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
// Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
// Package uncloseai provides a Go client library for interacting with vLLM, Ollama, and OpenAI-compatible APIs.
|
||||
//
|
||||
// Features:
|
||||
// - Automatic model discovery from environment variables
|
||||
// - Streaming and non-streaming chat completions
|
||||
// - Text-to-speech generation
|
||||
// - Support for multiple endpoints
|
||||
// - Type-safe API with comprehensive error handling
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// client, err := uncloseai.New(nil)
|
||||
// if err != nil {
|
||||
// log.Fatal(err)
|
||||
// }
|
||||
//
|
||||
// response, err := client.Chat(ctx, []uncloseai.Message{
|
||||
// {Role: "user", Content: "Hello!"},
|
||||
// }, nil)
|
||||
package uncloseai
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,32 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
//
|
||||
// This is free public domain software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute
|
||||
// this software, either in source code form or as a compiled binary, for any
|
||||
// purpose, commercial or non-commercial, and by any means.
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
const https = require('https');
|
||||
const fs = require('fs');
|
||||
|
|
|
|||
|
|
@ -1,32 +1,19 @@
|
|||
// PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
//
|
||||
// This is free public domain software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// Anyone is free to copy, modify, publish, use, compile, sell, or distribute
|
||||
// this software, either in source code form or as a compiled binary, for any
|
||||
// purpose, commercial or non-commercial, and by any means.
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
import OpenAI from 'openai';
|
||||
import fs from 'fs';
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
"""
|
||||
uncloseai. - Async Python Client (aiohttp)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
"""
|
||||
uncloseai. - Async Python Client (httpx)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
"""
|
||||
uncloseai. - Python Client using OpenAI SDK
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
#!/usr/bin/env python3
|
||||
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
# https://www.permacomputer.com
|
||||
# This is free software for the public good of a permacomputer hosted at
|
||||
# permacomputer.com, an always-on computer by the people, for the people.
|
||||
# One which is durable, easy to repair, & distributed like tap water
|
||||
# for machine learning intelligence.
|
||||
#
|
||||
# The permacomputer is community-owned infrastructure optimized around
|
||||
# four values:
|
||||
#
|
||||
# TRUTH First principles, math & science, open source code freely distributed
|
||||
# FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
# HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
# LOVE Be yourself without hurting others, cooperation through natural law
|
||||
#
|
||||
# This software contributes to that vision by making machine learning
|
||||
# accessible to everyone through a free, open, embeddable chat interface.
|
||||
# Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
"""
|
||||
uncloseai - Python client library for OpenAI-compatible APIs
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
AGPL-3.0-only
|
||||
Copyright 2025-2026 TimeHexOn & foxhop & cthegray & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
-->
|
||||
This is free software for the public good of a permacomputer hosted at
|
||||
permacomputer.com, an always-on computer by the people, for the people.
|
||||
One which is durable, easy to repair, & distributed like tap water
|
||||
for machine learning intelligence.
|
||||
|
||||
The permacomputer is community-owned infrastructure optimized around
|
||||
four values:
|
||||
|
||||
TRUTH First principles, math & science, open source code freely distributed
|
||||
FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
LOVE Be yourself without hurting others, cooperation through natural law
|
||||
|
||||
This software contributes to that vision by making machine learning
|
||||
accessible to everyone through a free, open, embeddable chat interface.
|
||||
Code is seeds to sprout on any abandoned technology.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -1,28 +1,20 @@
|
|||
// ago.js: JavaScript port of russell ballestrini's ago (https://pypi.org/project/ago/)
|
||||
// "he might have died by now but his code should last."
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// Copyright (C) 2025 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
// Define time units as a data structure
|
||||
// Each unit contains:
|
||||
// - name: full name of the unit (e.g., "year")
|
||||
// - abbr: abbreviation (e.g., "y")
|
||||
// - seconds: number of seconds in this unit (for reference)
|
||||
// - extract: function to extract this unit's value from a delta object {days, seconds, microseconds}
|
||||
const TIME_UNITS = [
|
||||
{
|
||||
name: "year",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Chat functionality and message handling
|
||||
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
|
||||
import hljs from "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/es/highlight.min.js";
|
||||
import { API_KEY, getAPIConfig } from "./config.js";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Code execution sandbox functionality
|
||||
import { CODE_EXEC_URL } from "./config.js";
|
||||
import * as un from "./un.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,30 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Configuration and endpoints for uncloseai.js
|
||||
|
||||
export const TTS_API_URL = "https://speech.ai.unturf.com/v1/audio/speech";
|
||||
export const VOICES_API_URL = "https://speech.ai.unturf.com/v1/voices";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Content extraction and processing functionality
|
||||
|
||||
import { human, delta2dict } from "./ago.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,28 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
import { chatHistory } from "./chat.js";
|
||||
import { MEGAPARCE_API_URL } from "./config.js";
|
||||
|
|
|
|||
|
|
@ -1,31 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Groq-aware fetch wrapper that handles TPM rate limits
|
||||
// Use this for all API requests to Groq endpoints
|
||||
|
||||
export async function groqAwareFetch(url, options = {}) {
|
||||
// If not a Groq URL, use regular fetch
|
||||
|
|
|
|||
|
|
@ -1,30 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Language detection functionality using AI and fallback methods
|
||||
|
||||
import { API_KEY } from "./config.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,20 @@
|
|||
#!/usr/bin/env node
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
/**
|
||||
* Script to add missing translation keys to all language files
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Arabic (العَرَبِيَّة) UI Translations
|
||||
export const ar = {
|
||||
// Main buttons
|
||||
readPage: "📖 قراءة الصفحة",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Bengali (বাংলা) UI Translations
|
||||
export const bn = {
|
||||
// Main buttons
|
||||
readPage: "📖 পৃষ্ঠা পড়ুন",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// German (Deutsch) UI Translations
|
||||
export const de = {
|
||||
// Main buttons
|
||||
readPage: "📖 Seite Lesen",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// English UI Translations
|
||||
export const en = {
|
||||
// Main buttons
|
||||
readPage: "📖 Read Page",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Spanish (Español) UI Translations
|
||||
export const es = {
|
||||
// Main buttons
|
||||
readPage: "📖 Leer Página",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// French (Français) UI Translations
|
||||
export const fr = {
|
||||
// Main buttons
|
||||
readPage: "📖 Lire la Page",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Hindi (हिंदी) UI Translations
|
||||
export const hi = {
|
||||
// Main buttons
|
||||
readPage: "📖 पृष्ठ पढ़ें",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Indonesian (Bahasa Indonesia) UI Translations
|
||||
export const id = {
|
||||
// Main buttons
|
||||
readPage: "📖 Baca Halaman",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// All language translations
|
||||
import { en } from "./en.js";
|
||||
import { zh } from "./zh.js";
|
||||
import { hi } from "./hi.js";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Italian UI Translations
|
||||
export const it = {
|
||||
// Main buttons
|
||||
readPage: "📖 Leggi Pagina",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Japanese (日本語) UI Translations
|
||||
export const ja = {
|
||||
// Main buttons
|
||||
readPage: "📖 ページを読む",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Korean (한국어) UI Translations
|
||||
export const ko = {
|
||||
// Main buttons
|
||||
readPage: "📖 페이지 읽기",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Marathi (मराठी) UI Translations
|
||||
export const mr = {
|
||||
// Main buttons
|
||||
readPage: "📖 पान वाचा",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Dutch UI Translations
|
||||
export const nl = {
|
||||
// Main buttons
|
||||
readPage: "📖 Lees Pagina",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Polish UI Translations
|
||||
export const pl = {
|
||||
// Main buttons
|
||||
readPage: "📖 Czytaj Stronę",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Portuguese (Português) UI Translations
|
||||
export const pt = {
|
||||
// Main buttons
|
||||
readPage: "📖 Ler Página",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Russian (Русский) UI Translations
|
||||
export const ru = {
|
||||
// Main buttons
|
||||
readPage: "📖 Читать Страницу",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Swedish UI Translations
|
||||
export const sv = {
|
||||
// Main buttons
|
||||
readPage: "📖 Läs Sida",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Swahili (Kiswahili) UI Translations
|
||||
export const sw = {
|
||||
// Main buttons
|
||||
readPage: "📖 Soma Ukurasa",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Telugu (తెలుగు) UI Translations
|
||||
export const te = {
|
||||
// Main buttons
|
||||
readPage: "📖 పేజీ చదవండి",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Thai UI Translations
|
||||
export const th = {
|
||||
// Main buttons
|
||||
readPage: "📖 อ่านหน้า",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Turkish (Türkçe) UI Translations
|
||||
export const tr = {
|
||||
// Main buttons
|
||||
readPage: "📖 Sayfayı Oku",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Ukrainian UI Translations
|
||||
export const uk = {
|
||||
// Main buttons
|
||||
readPage: "📖 Читати Сторінку",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Urdu (اُردُو) UI Translations
|
||||
export const ur = {
|
||||
// Main buttons
|
||||
readPage: "📖 صفحہ پڑھیں",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,20 @@
|
|||
#!/usr/bin/env node
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
/**
|
||||
* Translation Completeness Verification Script
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Vietnamese UI Translations
|
||||
export const vi = {
|
||||
// Main buttons
|
||||
readPage: "📖 Đọc Trang",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Chinese Traditional (中文(繁體)) UI Translations
|
||||
export const zhTw = {
|
||||
// Main buttons
|
||||
readPage: "📖 閱讀頁面",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Chinese Simplified (中文(简体)) UI Translations
|
||||
export const zh = {
|
||||
// Main buttons
|
||||
readPage: "📖 阅读页面",
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Model registry and selection functionality
|
||||
import { VLLM_ENDPOINTS, getAPIConfig, DEFAULT_MAX_TOKENS } from "./config.js";
|
||||
|
||||
// Helper to get vault value or fallback to default (no plaintext localStorage)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,20 @@
|
|||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
|
||||
// page-intelligence.js: Computed page metrics for augmenting LLM context
|
||||
//
|
||||
// Pure JS computation, zero API calls, instant execution.
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Page reading functionality
|
||||
import { extractWebpageContent } from "./content.js";
|
||||
import { processContentWithHermes, speakText } from "./tts.js";
|
||||
import { getUIText } from "./ui-translations.js";
|
||||
|
|
|
|||
|
|
@ -1,31 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Conversation history and localStorage functionality
|
||||
// Supports automatic AES-256 encryption when vault is unlocked
|
||||
import { getSystemMessage } from "./config.js";
|
||||
|
||||
// Encrypted storage format version
|
||||
|
|
|
|||
|
|
@ -1,35 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Simplified BPE tokenizer based on tiktoken's core logic
|
||||
// MIT License - Derived from tiktoken (https://github.com/dqbd/tiktoken)
|
||||
// Copyright (c) 2023 David Bezdek
|
||||
|
||||
// Core regex pattern simplified from cl100k_base encoding
|
||||
// Original tiktoken pattern: r"""'(?i:[sdmt]|ll|ve|re)|[^\r\n\p{L}\p{N}]?+\p{L}++|\p{N}{1,3}+| ?[^\s\p{L}\p{N}]++[\r\n]*+|\s++$|\s*[\r\n]|\s+(?!\S)|\s"""
|
||||
|
||||
export class SimpleBPETokenizer {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Translation Modal functionality
|
||||
import { initializeChunkFiveFont } from "./ui-themes.js";
|
||||
import { getUIText } from "./ui-translations.js";
|
||||
import { extractWebpageContent } from "./content.js";
|
||||
|
|
|
|||
|
|
@ -1,28 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
import { API_KEY, getAPIConfig } from "./config.js";
|
||||
import { getSelectedModel, getSelectedModelEndpoint, getSelectedModelMaxTokens, getSelectedModelMaxCompletionTokens, modelRegistry } from "./models.js";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// TTS Modal functionality
|
||||
import { initializeChunkFiveFont } from "./ui-themes.js";
|
||||
import { getUIText } from "./ui-translations.js";
|
||||
import { handleTTS, downloadAudio, generateTitleForTTS, getTTSMode, setTTSMode } from "./tts.js";
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Text-to-speech functionality
|
||||
import { API_KEY, MODEL, setLastTTS, TTS_API_URL } from "./config.js";
|
||||
import { getSelectedModel, getSelectedModelEndpoint, getSelectedModelMaxTokens, getSelectedModelMaxCompletionTokens } from "./models.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,32 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Theme detection and styling functionality
|
||||
|
||||
// Theme detection and styling functions
|
||||
export function detectCurrentTheme() {
|
||||
const isDark =
|
||||
document.documentElement.getAttribute("data-theme") === "dark" ||
|
||||
|
|
|
|||
|
|
@ -1,33 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// UI Translations for all supported languages
|
||||
// This file contains all user interface text translations
|
||||
|
||||
// Import translations from individual language files
|
||||
import { UI_TRANSLATIONS } from "./languages/index.js";
|
||||
import { normalizeLanguageCode } from "./config.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// UI creation and management functionality
|
||||
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
|
||||
import hljs from "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/es/highlight.min.js";
|
||||
import { API_KEY, setSystemMessageAppend, TTS_API_URL, getAPIConfig } from "./config.js";
|
||||
|
|
|
|||
|
|
@ -1,28 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
/**
|
||||
* un.js - Unsandbox.com Browser SDK
|
||||
|
|
|
|||
|
|
@ -1,30 +1,20 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
// Main Hermes AI modal functionality - COMPLETE WORKING VERSION
|
||||
import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
|
||||
import hljs from "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/es/highlight.min.js";
|
||||
import { setSystemMessageAppend } from "./config.js";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
/*
|
||||
AGPL-3.0-only
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
* This is free software for the public good of a permacomputer hosted at
|
||||
* permacomputer.com, an always-on computer by the people, for the people.
|
||||
* One which is durable, easy to repair, & distributed like tap water
|
||||
* for machine learning intelligence.
|
||||
*
|
||||
* The permacomputer is community-owned infrastructure optimized around
|
||||
* four values:
|
||||
*
|
||||
* TRUTH First principles, math & science, open source code freely distributed
|
||||
* FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
* HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
* LOVE Be yourself without hurting others, cooperation through natural law
|
||||
*
|
||||
* This software contributes to that vision by making machine learning
|
||||
* accessible to everyone through a free, open, embeddable chat interface.
|
||||
* Code is seeds to sprout on any abandoned technology.
|
||||
*/
|
||||
|
||||
/* uncloseai. Modal - Built-in Styles (for blog versions without PicoCSS) */
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
/*
|
||||
AGPL-3.0-only
|
||||
Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
||||
https://www.permacomputer.com
|
||||
* This is free software for the public good of a permacomputer hosted at
|
||||
* permacomputer.com, an always-on computer by the people, for the people.
|
||||
* One which is durable, easy to repair, & distributed like tap water
|
||||
* for machine learning intelligence.
|
||||
*
|
||||
* The permacomputer is community-owned infrastructure optimized around
|
||||
* four values:
|
||||
*
|
||||
* TRUTH First principles, math & science, open source code freely distributed
|
||||
* FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
* HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
* LOVE Be yourself without hurting others, cooperation through natural law
|
||||
*
|
||||
* This software contributes to that vision by making machine learning
|
||||
* accessible to everyone through a free, open, embeddable chat interface.
|
||||
* Code is seeds to sprout on any abandoned technology.
|
||||
*/
|
||||
|
||||
/* uncloseai. Modal - PicoCSS Override Styles */
|
||||
|
|
|
|||
|
|
@ -1,28 +1,19 @@
|
|||
// AGPL-3.0-only
|
||||
//
|
||||
// This is free software for the public good of a permacomputer
|
||||
// hosted at permacomputer.com, an always-on computer by the people, for the
|
||||
// people. One which is durable, easy to repair, and distributed like tap water
|
||||
// This is free software for the public good of a permacomputer hosted at
|
||||
// permacomputer.com, an always-on computer by the people, for the people.
|
||||
// One which is durable, easy to repair, & distributed like tap water
|
||||
// for machine learning intelligence.
|
||||
//
|
||||
// The permacomputer is community-owned infrastructure optimized around
|
||||
// four values:
|
||||
//
|
||||
// TRUTH - First principles, math & science, open source code
|
||||
// FREEDOM - Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY - Minimal waste, self-renewing systems with diverse connections
|
||||
// LOVE - Be yourself without hurting others, cooperation through natural law
|
||||
// TRUTH First principles, math & science, open source code freely distributed
|
||||
// FREEDOM Voluntary partnerships, freedom from tyranny & corporate control
|
||||
// HARMONY Minimal waste, self-renewing systems with diverse thriving connections
|
||||
// LOVE Be yourself without hurting others, cooperation through natural law
|
||||
//
|
||||
// This software contributes to that vision by making machine learning
|
||||
// accessible to everyone through a free, open, embeddable chat interface.
|
||||
// Code is seeds to sprout on any abandoned technology.
|
||||
//
|
||||
// Learn more: https://www.permacomputer.com
|
||||
//
|
||||
// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
|
||||
//
|
||||
// Copyright 2025-2026 TimeHexOn & foxhop & russell@unturf
|
||||
// https://www.permacomputer.com
|
||||
|
||||
/**
|
||||
* UncloseAI Vault - Encrypted Settings Storage
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue