-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/licensing architecture #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8fc4628
before any license work
magmacomputing 74817ac
feat: add Cipher export and implement detailed architecture for JWT-b…
magmacomputing 29694b1
1st draft of Licensing support
magmacomputing 7824c43
PR 1st review
magmacomputing 775fdd4
PR 2nd review
magmacomputing b9c760e
CHANGELOG
magmacomputing 6b753e5
swap over community version
magmacomputing ed73329
wrap-up v2.10.0
magmacomputing c1cb2be
re-wire the license
magmacomputing ec868a0
PR 2nd review
magmacomputing 064f036
PR 3rd review
magmacomputing 01a21ef
clarify License boot order
magmacomputing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Magma Computing | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), 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, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| "composite": true, | ||
| "lib": [ | ||
| "ESNext", | ||
| "ESNext.Temporal", | ||
| "DOM" | ||
| ], | ||
| "types": [ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { Tempo, enums } from '#tempo'; | ||
| import { stringify, objectify, enumify, getType, Pledge } from '#library'; | ||
| import { AstroTerm } from '/home/michael/Project/tempo-plugin/packages/astro/dist/index.js'; | ||
|
|
||
| const mockToken = 'eyJhbGciOiJSUzI1NiJ9.eyJwZXJtaXNzaW9ucyI6eyJhc3RybyI6eyJleHAiOjE5NTQxMTA1MDMsInVwZGF0ZWRfYXQiOjE3NzkwNjc3MDN9fSwianRpIjoiNTJiMGRiNjQtNTBlYy00YmRhLWFiZWItOTUzOGRmODFiZTgwIiwiaWF0IjoxNzc5MDY3NzAzLCJpc3MiOiJNYWdtYSBDb21wdXRpbmciLCJzdWIiOiJ0ZXN0QGV4YW1wbGUuY29tIiwiZXhwIjoxOTU0MTEwNTAzfQ.NfdBM-V_LhWu0A6DEy9F4lMRMKSs6cFySwGGYQ3RizsuygWHXNf6LfskidZS5F5iwbm4INx5j8UW-Y463pohbjf_PSsGqlit5Qobd9180fwN8iadXkISito7XbaLldRCpsggvPVeXJC64e4EKSB0TNTRs1wQCKqFgmgN-_C5ubybpQlPAEQ1bmHo1sfYRTjqoPI66y7es_40EEJoH7ozzx29OlwtmyrHlkdA026T8o_Z9ny1OppSxMChBKiVqunbv_bfs0ZcG3kz8HAXxPPn4zBgDwI8kwr-BXz-idezDyCCXBfnn_dz3ejozU_ec1RghNsfnWxwtXIn6dJ21SbUKQ'; | ||
|
|
||
| // Initialize Tempo with a mock license | ||
| Tempo.init({ license: mockToken }); | ||
|
magmacomputing marked this conversation as resolved.
Outdated
|
||
|
|
||
| // Register the Astro plugin term directly | ||
| Tempo.extend(AstroTerm); | ||
|
|
||
| Object.assign(globalThis, { Tempo, getType, stringify, objectify, enumify, enums, Pledge }); | ||
|
|
||
| console.log(`\n\x1b[38;2;252;194;1m\x1b[1m ⏳ Tempo \x1b[0m\x1b[38;2;45;212;191m Astro REPL initialized.\x1b[0m\n`); | ||
|
|
||
| let idleTimer: NodeJS.Timeout; | ||
| const resetIdle = () => { | ||
| clearTimeout(idleTimer); | ||
| idleTimer = setTimeout(() => { | ||
| console.warn('\n\x1b[33m[Tempo] REPL idle for 1 hour. Safety shutdown triggered.\x1b[0m'); | ||
| process.exit(0); | ||
| }, 3600 * 1000); | ||
| idleTimer.unref(); | ||
| }; | ||
|
|
||
| process.stdin.on('data', resetIdle); | ||
| resetIdle(); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.