@0xward/thesisai-sdk 1.0.1 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/generator-generic-ossf-slsa3-publish.yml +66 -0
- package/LICENSE +5 -0
- package/README.md +69 -5
- package/assets/header-sync.svg +14 -0
- package/examples/basic-demo.js +5 -0
- package/index.js +7 -1
- package/package.json +12 -4
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
+
# They are provided by a third-party and are governed by
|
|
3
|
+
# separate terms of service, privacy policy, and support
|
|
4
|
+
# documentation.
|
|
5
|
+
|
|
6
|
+
# This workflow lets you generate SLSA provenance file for your project.
|
|
7
|
+
# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
|
|
8
|
+
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
|
|
9
|
+
# https://github.com/slsa-framework/slsa-github-generator.
|
|
10
|
+
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
|
|
11
|
+
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
|
|
12
|
+
|
|
13
|
+
name: SLSA generic generator
|
|
14
|
+
on:
|
|
15
|
+
workflow_dispatch:
|
|
16
|
+
release:
|
|
17
|
+
types: [created]
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
build:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
outputs:
|
|
23
|
+
digests: ${{ steps.hash.outputs.digests }}
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
# ========================================================
|
|
29
|
+
#
|
|
30
|
+
# Step 1: Build your artifacts.
|
|
31
|
+
#
|
|
32
|
+
# ========================================================
|
|
33
|
+
- name: Build artifacts
|
|
34
|
+
run: |
|
|
35
|
+
# These are some amazing artifacts.
|
|
36
|
+
echo "artifact1" > artifact1
|
|
37
|
+
echo "artifact2" > artifact2
|
|
38
|
+
|
|
39
|
+
# ========================================================
|
|
40
|
+
#
|
|
41
|
+
# Step 2: Add a step to generate the provenance subjects
|
|
42
|
+
# as shown below. Update the sha256 sum arguments
|
|
43
|
+
# to include all binaries that you generate
|
|
44
|
+
# provenance for.
|
|
45
|
+
#
|
|
46
|
+
# ========================================================
|
|
47
|
+
- name: Generate subject for provenance
|
|
48
|
+
id: hash
|
|
49
|
+
run: |
|
|
50
|
+
set -euo pipefail
|
|
51
|
+
|
|
52
|
+
# List the artifacts the provenance will refer to.
|
|
53
|
+
files=$(ls artifact*)
|
|
54
|
+
# Generate the subjects (base64 encoded).
|
|
55
|
+
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
|
|
56
|
+
|
|
57
|
+
provenance:
|
|
58
|
+
needs: [build]
|
|
59
|
+
permissions:
|
|
60
|
+
actions: read # To read the workflow path.
|
|
61
|
+
id-token: write # To sign the provenance.
|
|
62
|
+
contents: write # To add assets to a release.
|
|
63
|
+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
|
|
64
|
+
with:
|
|
65
|
+
base64-subjects: "${{ needs.build.outputs.digests }}"
|
|
66
|
+
upload-assets: true # Optional: Upload to a new release
|
package/LICENSE
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 0xward
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software... Full MIT Granted.
|
package/README.md
CHANGED
|
@@ -1,15 +1,79 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./assets/header-sync.svg" alt="0xward Core Intelligence Sync Animation" width="120" height="120" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @0xward/thesisai-sdk
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/@0xward/thesisai-sdk"><img src="https://img.shields.io/npm/v/@0xward/thesisai-sdk?style=flat-square" alt="NPM Version" /></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/@0xward/thesisai-sdk"><img src="https://img.shields.io/npm/dm/@0xward/thesisai-sdk?style=flat-square" alt="NPM Downloads" /></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/@0xward/thesisai-sdk"><img src="https://img.shields.io/npm/l/@0xward/thesisai-sdk?style=flat-square" alt="License" /></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
A specialized algorithmic research framework providing autonomous document processing, text synthesis structure, and distributed index registration tools bound to the Stacks infrastructure layer.
|
|
4
14
|
|
|
5
|
-
|
|
6
|
-
- **Academic Synthesis Engine:** High-performance data pipelines parsing raw knowledge documents into logical structures.
|
|
7
|
-
- **Formatting Adapters:** Normalization logic to align output with academic publishing guidelines.
|
|
15
|
+
---
|
|
8
16
|
|
|
9
17
|
## Installation
|
|
18
|
+
|
|
19
|
+
### Prerequisites
|
|
20
|
+
- Node.js >= 18.0.0
|
|
21
|
+
- npm >= 9.0.0 (or yarn >= 1.22.0 / pnpm >= 8.0.0)
|
|
22
|
+
|
|
23
|
+
### Package Deployment
|
|
24
|
+
Execute the targeted acquisition command matching your production environment package manager setup:
|
|
25
|
+
|
|
10
26
|
```bash
|
|
27
|
+
# Using Node Package Manager (Default)
|
|
11
28
|
npm install @0xward/thesisai-sdk
|
|
29
|
+
|
|
30
|
+
# Using Yarn Package Manager
|
|
31
|
+
yarn add @0xward/thesisai-sdk
|
|
32
|
+
|
|
33
|
+
# Using PNPM Package Manager
|
|
34
|
+
pnpm add @0xward/thesisai-sdk
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Peer Dependencies
|
|
38
|
+
For secure runtime cryptographic executions and ledger state mutations, ensure your runtime container establishes communication boundaries with the primary network bindings if processing on-chain blocks:
|
|
39
|
+
- For Stacks L2 layers: @stacks/transactions (>= 6.x) for absolute proof anchoring orchestration.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Core Capabilities
|
|
44
|
+
|
|
45
|
+
* **Multi-Source Synthesis:** Standardizes ingestion pipelines to extract technical structures and parse them into clean markdown payloads.
|
|
46
|
+
* **Proof of Authorship:** Cryptographically hashes compilation instances, preparing data strings for native anchoring routines.
|
|
47
|
+
* **Decentralized Storage Mapping:** Formats data payloads ensuring strict compliance with SIP-010 metadata schemas and external storage registries.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Quick Start
|
|
52
|
+
|
|
53
|
+
```javascript
|
|
54
|
+
const { ThesisAISDK } = require("@0xward/thesisai-sdk");
|
|
55
|
+
const sdk = new ThesisAISDK();
|
|
56
|
+
|
|
57
|
+
async function runTask() {
|
|
58
|
+
const dataset = await sdk.synthesizeResearch("Stacks Architecture Analysis", ["SIP-010"]);
|
|
59
|
+
console.log("Generated Dataset:", dataset);
|
|
60
|
+
}
|
|
61
|
+
runTask();
|
|
12
62
|
```
|
|
13
63
|
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## API Reference
|
|
67
|
+
|
|
68
|
+
### Methods
|
|
69
|
+
|
|
70
|
+
| Method | Parameters | Return Type | Description |
|
|
71
|
+
| :--- | :--- | :--- | :--- |
|
|
72
|
+
| `synthesizeResearch` | `topic: string`, `sources: Array` | `Promise<Object>` | Consolidates incoming parameters into formal scientific indexes. |
|
|
73
|
+
| `verifyProofOfAuthorship` | `hash: string` | `Promise<Object>` | References on-chain blocks to guarantee immutable registration records. |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
14
77
|
## License
|
|
15
|
-
|
|
78
|
+
|
|
79
|
+
This project is licensed under the terms of the MIT License.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="120" height="120">
|
|
2
|
+
<style>
|
|
3
|
+
.layer { fill: none; stroke: #888888; stroke-width: 2; transform-origin: center; }
|
|
4
|
+
.l1 { animation: slide 3s ease-in-out infinite; }
|
|
5
|
+
.l2 { animation: slide 3s ease-in-out infinite; animation-delay: 1s; }
|
|
6
|
+
.l3 { animation: slide 3s ease-in-out infinite; animation-delay: 2s; }
|
|
7
|
+
@keyframes slide { 0%, 100% { transform: translateY(0px) scale(0.9); opacity: 0.4; } 50% { transform: translateY(-5px) scale(1); opacity: 0.9; } }
|
|
8
|
+
</style>
|
|
9
|
+
<g>
|
|
10
|
+
<polygon points="50,20 80,35 50,50 20,35" class="layer l1" />
|
|
11
|
+
<polygon points="50,40 80,55 50,70 20,55" class="layer l2" />
|
|
12
|
+
<polygon points="50,60 80,75 50,90 20,75" class="layer l3" />
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const { ThesisAISDK } = require("../index.js");
|
|
2
|
+
const sdk = new ThesisAISDK();
|
|
3
|
+
console.log("📚 Running Autonomous Research Synthesis Agent on Stacks...");
|
|
4
|
+
sdk.synthesizeResearch("Web3 Identity", ["SIP-010"]).then(res => console.log("Synthesis:", res));
|
|
5
|
+
console.log("✅ [thesisai-sdk] Demo running successfully!");
|
package/index.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// ThesisAI SDK - Autonomous Research Agent framework on Stacks
|
|
2
|
+
class ThesisAISDK {
|
|
3
|
+
async synthesizeResearch(topic, sources = []) {
|
|
4
|
+
return { topic: topic, summary: "Autonomous synthesis completed.", citationsCount: sources.length, blockchain: "Stacks" };
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
module.exports = { ThesisAISDK };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xward/thesisai-sdk",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "High-performance Autonomous Research Agent designed to streamline and synthesize academic writing.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"0xward",
|
|
@@ -12,5 +12,13 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
|
-
}
|
|
16
|
-
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/0xward/thesisai-sdk.git"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/0xward/thesisai-sdk/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://www.npmjs.com/package/@0xward/thesisai-sdk#readme"
|
|
24
|
+
}
|