Skip to content

Commit f1b1f9f

Browse files
Merge pull request #1 from lnflash/fix/regenerate-spec-remove-banner
fix: regenerate spec.html each build; remove dev notice; unrot spectaql
2 parents b7d1021 + 5aa830f commit f1b1f9f

9 files changed

Lines changed: 16816 additions & 7373 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: '18'
28+
node-version: '20'
2929
cache: 'npm'
3030

3131
- name: Install dependencies

.github/workflows/update-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Node.js
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: '16'
18+
node-version: '20'
1919
cache: 'npm'
2020

2121
- name: Install dependencies
@@ -49,5 +49,5 @@ jobs:
4949
git config --local user.email "action@github.com"
5050
git config --local user.name "GitHub Action"
5151
git add schema.graphql public/
52-
git commit -m "Update API documentation based on schema changes [skip ci]"
52+
git commit -m "Update API documentation based on schema changes"
5353
git push

docs/index.html

Lines changed: 8472 additions & 3578 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 20 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"generate-docs": "spectaql spectaql-config.yml",
1212
"patch-spec": "node src/spec-patch.js",
1313
"copy-assets": "cp -r src/css public/css && cp -r src/js public/js && cp -r src/images public/images && cp -f src/index.html public/index.html && cp -f src/stylesheets/* public/stylesheets/",
14-
"build": "npm run fetch-schema && npm run generate-docs && cp -r docs/* public/ && npm run copy-assets && npm run patch-spec",
14+
"build": "npm run fetch-schema && npm run generate-docs && cp -r docs/* public/ && cp docs/index.html public/spec.html && npm run copy-assets && npm run patch-spec",
1515
"build:versions": "npm run build && node build-versions.js",
1616
"start": "serve public",
1717
"dev": "serve public --cors -l 3000"
@@ -31,7 +31,7 @@
3131
"get-graphql-schema": "^2.1.2",
3232
"graphql": "^16.11.0",
3333
"node-fetch": "^2.7.0",
34-
"spectaql": "^3.0.4"
34+
"spectaql": "^3.0.9"
3535
},
3636
"devDependencies": {
3737
"serve": "^14.2.4"

public/index.html

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,6 @@ <h2>Endpoints</h2>
267267
</div>
268268

269269
<div class="content">
270-
<div class="notice">
271-
<strong>⚠️ Development Notice:</strong> The Flash API is currently under active development. All endpoints, parameters, and responses are subject to change and improvement. This documentation will be updated as the API evolves.
272-
</div>
273270

274271
<h1>Flash GraphQL API</h1>
275272
<p>This API provides access to Flash's Bitcoin and Lightning Network payment services for the Caribbean region.</p>
@@ -454,73 +451,7 @@ <h2 id="error-handling">Error Handling</h2>
454451
<div class="footer-content">
455452
<p>&copy; 2024 Flash. All rights reserved.</p>
456453

457-
<details class="footer-note">
458-
<summary>Absolute Zero Method</summary>
459-
<div class="footer-note-content">
460-
<p>The Flash API documentation implementation uses the Absolute Zero methodology for continuous improvement. This revolutionary approach, based on reinforced self-play reasoning with zero data, ensures our API and its documentation evolve with minimal human intervention.</p>
461-
462-
<div class="auth-diagram">
463-
<img src="images/diagrams/absolute-zero.svg" alt="Absolute Zero Method Diagram" style="max-width: 100%;">
464-
</div>
465-
466-
<h4>Core Principles</h4>
467-
<p>The Absolute Zero methodology operates on three fundamental components:</p>
468-
469-
<ul>
470-
<li>
471-
<strong>Task Proposer (πpropose):</strong> This component autonomously generates tasks optimized for learning and improvement, creating challenges specifically designed to enhance the system's capabilities.
472-
</li>
473-
<li>
474-
<strong>Environment (e):</strong> Provides verifiable feedback and ground truth validation, ensuring all improvements are measured against reliable metrics without relying on external validation.
475-
</li>
476-
<li>
477-
<strong>Solution Generator (πsolve):</strong> Solves the self-generated tasks and learns from outcomes, continuously enhancing its capabilities through reinforced self-learning.
478-
</li>
479-
</ul>
480-
481-
<h4>Implementation Benefits</h4>
482-
<p>By implementing the Absolute Zero method in our documentation system, we achieve:</p>
483-
484-
<ul>
485-
<li><strong>Self-Improving Documentation:</strong> The documentation evolves automatically based on usage patterns and identified pain points</li>
486-
<li><strong>Zero Training Data Requirements:</strong> No need for extensive manually labeled datasets or examples</li>
487-
<li><strong>Continuous Enhancement:</strong> The system perpetually refines itself through reinforced feedback loops</li>
488-
<li><strong>Cross-Domain Learning:</strong> Improvements in one area benefit the entire system through knowledge transfer</li>
489-
</ul>
490-
491-
<div class="code-sample" data-language="javascript">
492-
<pre>// Absolute Zero implementation pseudocode
493-
class AbsoluteZeroReasoner {
494-
constructor() {
495-
this.model = new UnifiedModel();
496-
this.metrics = new PerformanceMetrics();
497-
this.environment = new VerifiableEnvironment();
498-
}
499-
500-
async improveSystem() {
501-
// Task proposal phase
502-
const task = this.model.proposeTask();
503-
504-
// Environment verification
505-
const { verifiedTask, groundTruth } =
506-
this.environment.validate(task);
507-
508-
// Solution generation
509-
const solution = this.model.solveTask(verifiedTask);
510-
511-
// Learning from outcomes
512-
const feedback = this.metrics.evaluate(solution, groundTruth);
513-
await this.model.learn(feedback);
514-
515-
return feedback.improvements;
516-
}
517-
}</pre>
518-
</div>
519-
520-
<p>For more information on the Absolute Zero methodology, refer to the research paper: <a href="https://arxiv.org/abs/2505.03335" target="_blank">Absolute Zero: Reinforced Self-play Reasoning with Zero Data</a>.</p>
521-
</div>
522-
</details>
523-
</div>
454+
</div>
524455

525456
<style>
526457
.footer-content {

0 commit comments

Comments
 (0)