feega 0.1.16 → 0.1.17

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/feega.mjs CHANGED
@@ -6,7 +6,7 @@ import { join } from 'node:path';
6
6
  import { Readable } from 'node:stream';
7
7
  import { pipeline } from 'node:stream/promises';
8
8
 
9
- import { sendTelemetry } from '../telemetry.mjs';
9
+ import { sendTelemetry, telemetryEnv } from '../telemetry.mjs';
10
10
  import { MCP_ENTRY, USAGE, appDir, bundleSource, boundUrl, cachedVersions, freePort, isCached, latestAppVersion, markCached, mcpEnv, parseArgs, pickVersion } from '../launcher.mjs';
11
11
 
12
12
  const MIN_NODE_MAJOR = 22;
@@ -148,7 +148,7 @@ async function main() {
148
148
  console.log(`feega: open ${url}`);
149
149
 
150
150
  const nodeOptions = nodeMajor >= WEBSTORAGE_NODE_MAJOR ? '--no-experimental-webstorage' : '';
151
- const env = { ...process.env, NODE_OPTIONS: [process.env.NODE_OPTIONS, nodeOptions].filter(Boolean).join(' ') };
151
+ const env = { ...process.env, ...telemetryEnv(homedir(), process.env), NODE_OPTIONS: [process.env.NODE_OPTIONS, nodeOptions].filter(Boolean).join(' ') };
152
152
  const server = spawn(process.execPath, [realpathSync(join(dir, 'scripts/local.mjs')), file, `--port=${port}`], { stdio: 'inherit', env });
153
153
  forward(server);
154
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feega",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Run feega's infinite canvas locally, saved to a .feega file. No account, no database.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/telemetry.mjs CHANGED
@@ -35,6 +35,8 @@ export function installId(home) {
35
35
  return id;
36
36
  }
37
37
 
38
+ export const telemetryEnv = (home, env) => (isOptedOut(env) ? {} : { FEEGA_TELEMETRY_ID: installId(home), FEEGA_TELEMETRY_KEY: PUBLIC_KEY });
39
+
38
40
  export function buildEvent(event, id, info) {
39
41
  return {
40
42
  api_key: PUBLIC_KEY,