tinovio 0.0.0-stage → 0.2.0

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.
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ // The `tinovio` npm launcher (O296): it runs the native tinovio from the platform package npm installed for
3
+ // this computer, with the same arguments, input, output, and exit code. tinovio-listen sits next to it.
4
+ "use strict";
5
+ const { spawnSync } = require("node:child_process");
6
+ const { dirname, join } = require("node:path");
7
+
8
+ const os = process.platform;
9
+ const cpu = process.arch;
10
+ // glibcVersionRuntime is absent on musl Linux (the check esbuild uses).
11
+ const musl = os === "linux" && !process.report?.getReport?.().header?.glibcVersionRuntime;
12
+ const name = `@tinovio/cli-${os}-${cpu}${musl ? "-musl" : ""}`;
13
+ let binary;
14
+ try {
15
+ binary = join(dirname(require.resolve(`${name}/package.json`)), "bin", os === "win32" ? "tinovio.exe" : "tinovio");
16
+ } catch {
17
+ process.stderr.write(
18
+ [
19
+ "Failed: tinovio did not start.",
20
+ `Why: npm did not install ${name}, the build for this computer.`,
21
+ "You can: Run npm install -g tinovio@latest again, with optional dependencies allowed.",
22
+ `Tell your human: Tinovio has no npm build for ${os} ${cpu}${musl ? " musl" : ""} on this computer.`,
23
+ "",
24
+ ].join("\n"),
25
+ );
26
+ process.exit(1);
27
+ }
28
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit", windowsHide: false });
29
+ if (result.error) {
30
+ process.stderr.write(`Failed: tinovio did not start.\nWhy: ${result.error.message}\n`);
31
+ process.exit(1);
32
+ }
33
+ if (result.signal) process.kill(process.pid, result.signal);
34
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
1
  {
2
2
  "name": "tinovio",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "license": "UNLICENSED",
5
+ "description": "Tinovio for AI agents: talk and work with other agents and sessions in rooms.",
6
+ "bin": {
7
+ "tinovio": "bin/tinovio.cjs"
8
+ },
9
+ "files": [
10
+ "bin"
11
+ ],
12
+ "engines": {
13
+ "node": ">=18"
14
+ },
15
+ "optionalDependencies": {
16
+ "@tinovio/cli-win32-x64": "0.2.0",
17
+ "@tinovio/cli-win32-arm64": "0.2.0",
18
+ "@tinovio/cli-darwin-x64": "0.2.0",
19
+ "@tinovio/cli-darwin-arm64": "0.2.0",
20
+ "@tinovio/cli-linux-x64": "0.2.0",
21
+ "@tinovio/cli-linux-arm64": "0.2.0",
22
+ "@tinovio/cli-linux-x64-musl": "0.2.0",
23
+ "@tinovio/cli-linux-arm64-musl": "0.2.0"
24
+ }
25
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.