signetai 0.170.0 → 0.171.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.
- package/native-manifest.json +12 -12
- package/package.json +6 -6
- package/scripts/install-native.js +63 -4
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "d9a9f6bbf507325f5e99545fac91c17f109eb9578bbc02dcdba69cd954e12774",
|
|
9
9
|
"size": 117028384
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "547ae0cea8586971d25b85ad69b93a60ffdcdf891aa0e620d200a0f51ec0db36",
|
|
15
15
|
"size": 121653824
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "146a24621e2ae52363a22d62fca30a47f964f5ed89c2850359a416a8fce9b525",
|
|
21
|
+
"size": 154263445
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "c6c7691736e1f13b37b0551d6a3c855e3d858dfa95262639a426d753eacfe7b6",
|
|
27
|
+
"size": 154822430
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "513b24743e548c2aafbefd493e1930b96ab24b7c551b4129d5eb6d3ba2a77e61",
|
|
33
|
+
"size": 170955776
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.171.0.tar.gz",
|
|
39
|
+
"sha256": "757ced8e001d76c600178dea22708921daaaf4d0e5854d80bd2473d9bb061b5c",
|
|
40
|
+
"size": 16249
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"description": "Signet native CLI installer wrapper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.171.0/signetai-darwin-arm64-0.171.0.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.171.0/signetai-darwin-x64-0.171.0.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.171.0/signetai-linux-arm64-0.171.0.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.171.0/signetai-linux-x64-0.171.0.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.171.0/signetai-win32-x64-0.171.0.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -24,6 +24,54 @@ const require = createRequire(import.meta.url);
|
|
|
24
24
|
|
|
25
25
|
const CONNECTOR_COMPONENT = "connectors";
|
|
26
26
|
|
|
27
|
+
// Phase-1 telemetry (issue #1026): a single anonymous install counter sent to
|
|
28
|
+
// the Signet PostHog project. Payload is version+platform only — no
|
|
29
|
+
// identifier, no IP logging. Each install generates a fresh anonymous id, so
|
|
30
|
+
// every ping counts as one distinct install without persisting anything.
|
|
31
|
+
// Opt-out via SIGNET_TELEMETRY_OPTOUT=1 (Homebrew-style). Never blocks the
|
|
32
|
+
// install and never fails it: the request is time-bounded and errors are
|
|
33
|
+
// swallowed, so a telemetry outage cannot break postinstall.
|
|
34
|
+
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
35
|
+
const TELEMETRY_API_KEY = "phc_mLsvJmbmp6e9UarrX9Cq5QtTjVNiiphM9mvi5Xnddd8Q"; // public ingest key
|
|
36
|
+
const TELEMETRY_TIMEOUT_MS = 2000;
|
|
37
|
+
const pendingPings = [];
|
|
38
|
+
|
|
39
|
+
function telemetryEnabled() {
|
|
40
|
+
if (process.env.SIGNET_TELEMETRY_OPTOUT === "1" || process.env.SIGNET_TELEMETRY_OPTOUT === "true") {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (process.env.SIGNET_SKIP_NATIVE_POSTINSTALL === "1" || isWorkspacePackage()) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function fireInstallPing(platform) {
|
|
50
|
+
if (!telemetryEnabled()) return;
|
|
51
|
+
const body = JSON.stringify({
|
|
52
|
+
api_key: TELEMETRY_API_KEY,
|
|
53
|
+
batch: [
|
|
54
|
+
{
|
|
55
|
+
event: "install.ping",
|
|
56
|
+
distinct_id: require("node:crypto").randomUUID(),
|
|
57
|
+
timestamp: new Date().toISOString(),
|
|
58
|
+
properties: {
|
|
59
|
+
version: nativePackageVersion(),
|
|
60
|
+
platform,
|
|
61
|
+
$lib: "signet-install",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
});
|
|
66
|
+
const promise = fetch(`${TELEMETRY_HOST}/batch/`, {
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: { "Content-Type": "application/json" },
|
|
69
|
+
body,
|
|
70
|
+
signal: AbortSignal.timeout(TELEMETRY_TIMEOUT_MS),
|
|
71
|
+
}).catch(() => {});
|
|
72
|
+
pendingPings.push(promise);
|
|
73
|
+
}
|
|
74
|
+
|
|
27
75
|
function isWorkspacePackage() {
|
|
28
76
|
const workspaceRoot = dirname(dirname(packageDir));
|
|
29
77
|
if (basename(dirname(packageDir)) !== "dist") return false;
|
|
@@ -66,6 +114,8 @@ async function main() {
|
|
|
66
114
|
}
|
|
67
115
|
|
|
68
116
|
const platform = detectNativePlatform();
|
|
117
|
+
// Anonymous install counter (issue #1026): one ping per real install.
|
|
118
|
+
fireInstallPing(platform);
|
|
69
119
|
const nativePackage = nativePlatforms[platform];
|
|
70
120
|
let source;
|
|
71
121
|
try {
|
|
@@ -208,7 +258,16 @@ async function installConnectorAssets() {
|
|
|
208
258
|
}
|
|
209
259
|
}
|
|
210
260
|
|
|
211
|
-
main()
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
261
|
+
main()
|
|
262
|
+
.catch((err) => {
|
|
263
|
+
console.error(`Signet native install failed: ${err.message}`);
|
|
264
|
+
process.exit(1);
|
|
265
|
+
})
|
|
266
|
+
.finally(async () => {
|
|
267
|
+
// Give the fire-and-forget telemetry ping a bounded chance to flush.
|
|
268
|
+
// Each request self-times-out, so this never delays the install by
|
|
269
|
+
// more than TELEMETRY_TIMEOUT_MS even if the endpoint hangs.
|
|
270
|
+
if (pendingPings.length > 0) {
|
|
271
|
+
await Promise.allSettled(pendingPings);
|
|
272
|
+
}
|
|
273
|
+
});
|