loopgen 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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "loopgen-demo-webapp",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "test": "vitest run",
7
+ "lint": "eslint src",
8
+ "build": "vite build"
9
+ },
10
+ "dependencies": {
11
+ "@vitejs/plugin-react": "^6.0.2",
12
+ "vite": "^8.0.16",
13
+ "vitest": "^4.0.15"
14
+ }
15
+ }
@@ -0,0 +1,13 @@
1
+ import { describe, expect, test } from "vitest";
2
+ import { calculateSubtotal } from "./checkout";
3
+
4
+ describe("calculateSubtotal", () => {
5
+ test("totals item prices by quantity", () => {
6
+ expect(
7
+ calculateSubtotal([
8
+ { sku: "starter", price: 12, quantity: 2 },
9
+ { sku: "team", price: 20, quantity: 1 }
10
+ ])
11
+ ).toBe(44);
12
+ });
13
+ });
@@ -0,0 +1,9 @@
1
+ export interface CartItem {
2
+ sku: string;
3
+ price: number;
4
+ quantity: number;
5
+ }
6
+
7
+ export function calculateSubtotal(items: CartItem[]) {
8
+ return items.reduce((total, item) => total + item.price * item.quantity, 0);
9
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "loopgen",
3
+ "version": "0.1.0",
4
+ "description": "Generate bounded, verifiable AI agent configs for Codex, Claude, Cursor, and local models — with safety rails baked in.",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=18"
8
+ },
9
+ "bin": {
10
+ "loopgen": "dist/cli.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "dist-web",
15
+ "examples",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite --host 127.0.0.1",
21
+ "build": "tsc -p tsconfig.node.json && vite build",
22
+ "typecheck": "tsc -p tsconfig.node.json --noEmit && tsc -p tsconfig.web.json --noEmit",
23
+ "test": "vitest run",
24
+ "start": "node dist/cli.js init --no-open",
25
+ "loopgen": "node dist/cli.js",
26
+ "prepublishOnly": "npm run build"
27
+ },
28
+ "keywords": [
29
+ "loop-engineering",
30
+ "ai-agents",
31
+ "agents-md",
32
+ "codex",
33
+ "claude-code",
34
+ "cursor",
35
+ "developer-tools",
36
+ "cli",
37
+ "typescript"
38
+ ],
39
+ "license": "MIT",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/Nagiici/Loopgen.git"
43
+ },
44
+ "homepage": "https://github.com/Nagiici/Loopgen#readme",
45
+ "bugs": {
46
+ "url": "https://github.com/Nagiici/Loopgen/issues"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "dependencies": {
52
+ "commander": "^14.0.2",
53
+ "lucide-react": "^0.556.0",
54
+ "react": "^19.2.1",
55
+ "react-dom": "^19.2.1",
56
+ "yaml": "^2.8.2"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^24.10.1",
60
+ "@types/react": "^19.2.7",
61
+ "@types/react-dom": "^19.2.3",
62
+ "@vitejs/plugin-react": "^6.0.2",
63
+ "typescript": "^5.9.3",
64
+ "vite": "^8.0.16",
65
+ "vitest": "^4.0.15"
66
+ }
67
+ }