@forwardimpact/librpc 0.1.97 → 0.1.100

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/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # librpc
2
2
 
3
- gRPC framework and utilities — server, client, health checks, and tracing.
3
+ <!-- BEGIN:description — Do not edit. Generated from package.json. -->
4
+
5
+ gRPC server and client framework — ship service endpoints without reimplementing
6
+ transport.
7
+
8
+ <!-- END:description -->
4
9
 
5
10
  ## Getting Started
6
11
 
package/bin/fit-unary.js CHANGED
@@ -4,9 +4,13 @@ import { createCli } from "@forwardimpact/libcli";
4
4
  import { createClient, createTracer } from "@forwardimpact/librpc";
5
5
  import { createLogger } from "@forwardimpact/libtelemetry";
6
6
 
7
- const { version: VERSION } = JSON.parse(
8
- readFileSync(new URL("../package.json", import.meta.url), "utf8"),
9
- );
7
+ // `bun build --compile` injects FIT_UNARY_VERSION via --define, eliminating
8
+ // the readFileSync branch in the compiled binary (which would ENOENT against
9
+ // the bunfs virtual mount). Source execution falls through to package.json.
10
+ const VERSION =
11
+ process.env.FIT_UNARY_VERSION ||
12
+ JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"))
13
+ .version;
10
14
 
11
15
  const definition = {
12
16
  name: "fit-unary",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@forwardimpact/librpc",
3
- "version": "0.1.97",
4
- "description": "gRPC server and client framework — how agent services talk to each other.",
3
+ "version": "0.1.100",
4
+ "description": "gRPC server and client framework — ship service endpoints without reimplementing transport.",
5
5
  "keywords": [
6
6
  "grpc",
7
7
  "rpc",
@@ -17,13 +17,16 @@
17
17
  },
18
18
  "license": "Apache-2.0",
19
19
  "author": "D. Olsson <hi@senzilla.io>",
20
- "forwardimpact": {
21
- "capability": "agent-infrastructure",
22
- "needs": [
23
- "Build a gRPC service",
24
- "Call another gRPC service"
25
- ]
26
- },
20
+ "jobs": [
21
+ {
22
+ "user": "Platform Builders",
23
+ "goal": "Keep Service Contracts Typed",
24
+ "trigger": "Starting a new service and reaching for last project's copy-pasted transport boilerplate.",
25
+ "bigHire": "ship a service endpoint without reimplementing transport.",
26
+ "littleHire": "call a service without managing connections or retries.",
27
+ "competesWith": "copy-pasting boilerplate; hand-writing protobuf clients; tolerating the duplication"
28
+ }
29
+ ],
27
30
  "type": "module",
28
31
  "main": "./src/index.js",
29
32
  "exports": {
@@ -48,7 +51,7 @@
48
51
  "@forwardimpact/libconfig": "^0.1.58",
49
52
  "@forwardimpact/libtelemetry": "^0.1.22",
50
53
  "@forwardimpact/libutil": "^0.1.60",
51
- "@grpc/grpc-js": "^1.14.3"
54
+ "@grpc/grpc-js": "^1.14.4"
52
55
  },
53
56
  "devDependencies": {
54
57
  "@forwardimpact/libharness": "^0.1.14"