pi-server 0.1.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.
Files changed (3) hide show
  1. package/README.md +29 -0
  2. package/cli.js +5 -0
  3. package/package.json +19 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # pi-server
2
+
3
+ > **This is a namespace reservation package.** Install [`@marcfargas/pi-server`](https://www.npmjs.com/package/@marcfargas/pi-server) for the real package.
4
+
5
+ ## Why does this package exist?
6
+
7
+ This unscoped wrapper exists to prevent supply-chain attacks. Without it, a
8
+ malicious actor could publish a package named `pi-server` on npm. Anyone who
9
+ then ran `npx pi-server` without having installed the scoped package first
10
+ would unknowingly execute the attacker's code.
11
+
12
+ By holding this name, `npx pi-server` safely delegates to the real
13
+ `@marcfargas/pi-server` package.
14
+
15
+ ## Usage
16
+
17
+ ```bash
18
+ # These all work:
19
+ npx pi-server serve --provider google --model gemini-2.5-flash
20
+ npx @marcfargas/pi-server serve --provider google --model gemini-2.5-flash
21
+
22
+ # Or install globally:
23
+ npm install -g pi-server
24
+ pi-server serve --port 3333
25
+ ```
26
+
27
+ ## License
28
+
29
+ MIT
package/cli.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ // Thin wrapper — delegates to @marcfargas/pi-server.
3
+ // This unscoped package exists to prevent supply-chain attacks via npm name
4
+ // squatting. The real implementation lives in @marcfargas/pi-server.
5
+ import("@marcfargas/pi-server/cli");
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "pi-server",
3
+ "version": "0.1.0",
4
+ "description": "Namespace reservation for @marcfargas/pi-server. This package exists solely to prevent supply-chain attacks via npm name squatting. Install @marcfargas/pi-server for the real package.",
5
+ "type": "module",
6
+ "bin": {
7
+ "pi-server": "./cli.js",
8
+ "pi-serve": "./cli.js"
9
+ },
10
+ "dependencies": {
11
+ "@marcfargas/pi-server": "0.1.0"
12
+ },
13
+ "license": "MIT",
14
+ "author": "Marc Fargas",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/marcfargas/pi-server"
18
+ }
19
+ }