diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0a34fb4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Johnny Huynh + +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. \ No newline at end of file diff --git a/README.md b/README.md index 03f4832..60939b1 100644 --- a/README.md +++ b/README.md @@ -102,4 +102,4 @@ uv run --with fonttools python scripts/build-screenshot.py # docs/assets/scree ## License -No license chosen yet. Personal project, shared in the open. \ No newline at end of file +[MIT](./LICENSE) — see the file for full text. Personal project, shared in the open. \ No newline at end of file diff --git a/package.json b/package.json index a71d6df..ba988ef 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "pidex", "version": "0.0.1", "private": true, + "license": "MIT", "repository": "https://github.com/echohello-dev/pidex", "main": "dist/main/index.js", "scripts": { diff --git a/src/renderer/api.ts b/src/renderer/api.ts index 89e1e50..ba6faf8 100644 --- a/src/renderer/api.ts +++ b/src/renderer/api.ts @@ -43,7 +43,7 @@ type SessionEventPayload = { event: Record & { type: string }; }; -type OpenPiApi = { +type PidexApi = { platform: string; versions: { electron: string; node: string }; workspaces: () => Promise; @@ -60,8 +60,8 @@ type OpenPiApi = { declare global { interface Window { - pidex: OpenPiApi; + pidex: PidexApi; } } -export type { WorkspaceInfo, SessionInfo, SessionState, OpenResult, SessionEventPayload, OpenPiApi, SlashCommand }; +export type { WorkspaceInfo, SessionInfo, SessionState, OpenResult, SessionEventPayload, PidexApi, SlashCommand };