@lmctl-ai/lmauth 0.0.0-stage → 0.1.13
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/LICENSE +25 -0
- package/README.md +9 -2
- package/bin/lmauth.js +47 -0
- package/package.json +30 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Releases up to and including v0.1.27 were published under the MIT License (see the LICENSE asset of that release). Releases after v0.1.27 are published under the Lattice Systems Binary License 1.0 (this file).
|
|
2
|
+
|
|
3
|
+
# Lattice Systems Binary License 1.0
|
|
4
|
+
Copyright (c) 2026 Lattice Systems LLC ("Lattice").
|
|
5
|
+
|
|
6
|
+
**Definitions.** "Software" means the binary software package supplied by Lattice with this license; bundled third-party components, examples and documentation remain governed by their own separate licenses. "You" means the individual or legal entity using the Software, including its employees, contractors, infrastructure providers and affiliates acting solely on its behalf.
|
|
7
|
+
"Redistribution" means distributing or making copies of the Software available to third parties outside Your organization; provisioning or caching copies for Your use across Your machines, internal networks, CI/CD pipelines, containers, VMs or private cloud infrastructure is not Redistribution.
|
|
8
|
+
|
|
9
|
+
**Grant.** Subject to this license, Lattice grants You a free, non-exclusive, non-transferable, worldwide license to download, install, make working, backup and internal deployment copies of, and run the Software for personal or commercial purposes, including internal company use and execution in CI/CD, containers, VMs, cloud environments and providing services.
|
|
10
|
+
|
|
11
|
+
**Restrictions.** Without separate written permission from Lattice, You must not engage in Redistribution or sublicense, sell, rent, lease or lend the Software. You must not remove or alter any copyright, trademark, attribution or license notices (including Apache-2.0 NOTICE files) supplied with the Software. Reverse engineering, decompilation and disassembly of the Software are prohibited except to the extent permitted by a bundled component's license or non-waivable applicable law.
|
|
12
|
+
|
|
13
|
+
**Ownership and outputs.** Lattice and its licensors retain all rights in the Software not expressly granted here and claim no ownership of Your inputs or output files. Bundled fonts (such as SIL OFL fonts) embedded in Your output documents impose no Lattice restrictions on those outputs; standalone extraction or redistribution of bundled fonts or other third-party components is governed by their respective licenses (such as the SIL Open Font License), not by Lattice.
|
|
14
|
+
|
|
15
|
+
**Third-party software.** Bundled components keep their own licenses and exceptions, including OpenCASCADE/OCCT (LGPL-2.1 with Open CASCADE exception), glibc (LGPL-2.1+), GCC/libstdc++ runtime libraries (GPL-3.0 with GCC Runtime Library Exception), and MPL-2.0, Apache-2.0 (including its notice and patent terms), BSD, MIT, zlib and SIL OFL components. NOTHING here restricts, limits or alters any rights or patent grants under those licenses; their terms control over any conflicting restriction here without requiring separate Lattice permission.
|
|
16
|
+
Where required by LGPL-2.1, You may modify the linked application for Your own use, reverse engineer, decompile or disassemble it to debug those modifications, and relink it with a modified library. Lattice must supply the required source, application object code or other relinking materials, license texts and notices; this license does not replace those obligations.
|
|
17
|
+
|
|
18
|
+
**Release scope.** This license governs only the release distributed with it; earlier releases remain under the license (such as MIT) published with them.
|
|
19
|
+
|
|
20
|
+
**Termination.** Lattice may terminate this license for breach by written notice; You must then stop using and delete all copies of the Software. Independent third-party component rights, Your rights in Your outputs, and the Warranty, Liability and General sections survive termination.
|
|
21
|
+
|
|
22
|
+
**Warranty.** The Software is provided "as is" and "as available", at Your own risk. To the maximum extent permitted by applicable law, Lattice and its licensors disclaim all express, implied or statutory warranties, including merchantability, fitness for a particular purpose, title and non-infringement.
|
|
23
|
+
**Liability.** To the maximum extent permitted by applicable law, neither Lattice nor its licensors are liable for any indirect, incidental, special, consequential or punitive damages, or any loss of profits, revenue, data or business interruption, under any theory of liability, and Lattice's total cumulative liability under or relating to this license is capped at USD 50. Nothing here limits liability for fraud, intentional misconduct, death or personal injury caused by negligence, or any liability or consumer right that cannot be excluded or limited by law.
|
|
24
|
+
|
|
25
|
+
**General.** Request separate written permission (such as for Redistribution) from Lattice Systems LLC via https://github.com/lmctl-ai (open an issue or use the contact on the organization page). If any provision is held unenforceable, the remaining provisions remain in effect; failure to enforce a provision is not a waiver; and, subject to any separate written agreement with Lattice, this license (with applicable third-party and example licenses) is the entire agreement for the Software.
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @lmctl-ai/lmauth
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Guided, LLM-drivable authorization helper: click-through token setup that never shows the secret to the caller
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g @lmctl-ai/lmauth
|
|
7
|
+
lmauth --help
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The package holds a small launcher; the native binary comes from the matching platform package (linux-x64, linux-arm64, darwin-x64, darwin-arm64, windows-x64). Source and issues: https://github.com/lmctl-ai/lmauth
|
package/bin/lmauth.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
// Starts the lmauth binary of this platform (installed as an optional dependency) and passes everything through.
|
|
4
|
+
const { spawnSync } = require('node:child_process');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const table = {
|
|
7
|
+
"darwin-arm64": {
|
|
8
|
+
"pkg": "@lmctl-ai/lmauth-darwin-arm64",
|
|
9
|
+
"exe": "lmauth"
|
|
10
|
+
},
|
|
11
|
+
"darwin-x64": {
|
|
12
|
+
"pkg": "@lmctl-ai/lmauth-darwin-x64",
|
|
13
|
+
"exe": "lmauth"
|
|
14
|
+
},
|
|
15
|
+
"linux-arm64": {
|
|
16
|
+
"pkg": "@lmctl-ai/lmauth-linux-arm64",
|
|
17
|
+
"exe": "lmauth"
|
|
18
|
+
},
|
|
19
|
+
"linux-x64": {
|
|
20
|
+
"pkg": "@lmctl-ai/lmauth-linux-x64",
|
|
21
|
+
"exe": "lmauth"
|
|
22
|
+
},
|
|
23
|
+
"win32-x64": {
|
|
24
|
+
"pkg": "@lmctl-ai/lmauth-windows-x64",
|
|
25
|
+
"exe": "lmauth.exe"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const key = process.platform + '-' + process.arch;
|
|
29
|
+
const entry = table[key];
|
|
30
|
+
if (!entry) {
|
|
31
|
+
console.error('lmauth: no binary for ' + key + '; supported: ' + Object.keys(table).join(', '));
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
let binary;
|
|
35
|
+
try {
|
|
36
|
+
binary = path.join(path.dirname(require.resolve(entry.pkg + '/package.json')), 'bin', entry.exe);
|
|
37
|
+
} catch {
|
|
38
|
+
console.error('lmauth: the platform package ' + entry.pkg + ' is not installed (was it installed with --omit=optional?). Reinstall with optional dependencies enabled.');
|
|
39
|
+
process.exit(1);
|
|
40
|
+
}
|
|
41
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
|
|
42
|
+
if (result.error) {
|
|
43
|
+
console.error('lmauth: cannot run ' + binary + ': ' + result.error.message);
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
46
|
+
if (result.signal) process.kill(process.pid, result.signal);
|
|
47
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
+
"bin": {
|
|
3
|
+
"lmauth": "bin/lmauth.js"
|
|
4
|
+
},
|
|
5
|
+
"description": "Guided, LLM-drivable authorization helper: click-through token setup that never shows the secret to the caller",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "\u003e=18"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/lmctl-ai/lmauth#readme",
|
|
15
|
+
"license": "MIT",
|
|
2
16
|
"name": "@lmctl-ai/lmauth",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
17
|
+
"optionalDependencies": {
|
|
18
|
+
"@lmctl-ai/lmauth-darwin-arm64": "0.1.13",
|
|
19
|
+
"@lmctl-ai/lmauth-darwin-x64": "0.1.13",
|
|
20
|
+
"@lmctl-ai/lmauth-linux-arm64": "0.1.13",
|
|
21
|
+
"@lmctl-ai/lmauth-linux-x64": "0.1.13",
|
|
22
|
+
"@lmctl-ai/lmauth-windows-x64": "0.1.13"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/lmctl-ai/lmauth.git"
|
|
30
|
+
},
|
|
31
|
+
"version": "0.1.13"
|
|
32
|
+
}
|