@kindlingai/tessera 0.0.0 → 0.4.2
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/bin/tesserax.js +25 -1
- package/package.json +14 -9
- package/LICENSE +0 -21
package/bin/tesserax.js
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
// Runs the tesserax binary from this platform's package.
|
|
3
|
+
const { spawnSync } = require("node:child_process");
|
|
4
|
+
const path = require("node:path");
|
|
5
|
+
|
|
6
|
+
const pkg = `@kindlingai/tessera-${process.platform}-${process.arch}`;
|
|
7
|
+
let dir;
|
|
8
|
+
try {
|
|
9
|
+
dir = path.dirname(require.resolve(`${pkg}/package.json`));
|
|
10
|
+
} catch {
|
|
11
|
+
console.error(`tesserax: no build for ${process.platform}-${process.arch} (${pkg} is not installed)`);
|
|
12
|
+
// npx keeps an install that ran before the platform package was served.
|
|
13
|
+
const npx = __dirname.match(/^(.*[\\/]_npx[\\/][^\\/]+)[\\/]/);
|
|
14
|
+
if (npx) {
|
|
15
|
+
console.error(`tesserax: if ${pkg} exists for this version, delete ${npx[1]} and run npx again`);
|
|
16
|
+
} else {
|
|
17
|
+
console.error(`tesserax: if ${pkg} exists for this version, reinstall @kindlingai/tessera`);
|
|
18
|
+
}
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
const run = spawnSync(path.join(dir, "bin", "tesserax"), process.argv.slice(2), { stdio: "inherit" });
|
|
22
|
+
if (run.error) {
|
|
23
|
+
console.error(`tesserax: ${run.error.message}`);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
process.exit(run.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"bin": {
|
|
3
|
+
"tesserax": "bin/tesserax.js"
|
|
4
|
+
},
|
|
5
|
+
"description": "The tesserax command: opens a recipe, then serves, fetches or runs tasks",
|
|
6
|
+
"files": [
|
|
7
|
+
"bin/"
|
|
8
|
+
],
|
|
3
9
|
"license": "MIT",
|
|
10
|
+
"name": "@kindlingai/tessera",
|
|
11
|
+
"optionalDependencies": {
|
|
12
|
+
"@kindlingai/tessera-darwin-arm64": "0.4.2",
|
|
13
|
+
"@kindlingai/tessera-linux-arm64": "0.4.2",
|
|
14
|
+
"@kindlingai/tessera-linux-x64": "0.4.2"
|
|
15
|
+
},
|
|
4
16
|
"repository": {
|
|
5
17
|
"type": "git",
|
|
6
18
|
"url": "git+https://github.com/kindlingai/tessera.git"
|
|
7
19
|
},
|
|
8
|
-
"
|
|
9
|
-
"access": "public"
|
|
10
|
-
},
|
|
11
|
-
"name": "@kindlingai/tessera",
|
|
12
|
-
"description": "Reserved for the tesserax command of the Tessera inference engine.",
|
|
13
|
-
"bin": {
|
|
14
|
-
"tesserax": "bin/tesserax.js"
|
|
15
|
-
}
|
|
20
|
+
"version": "0.4.2"
|
|
16
21
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Matt Mastracci
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|