← Commit history

page content: renamed from adom-laserchip

Ray ·3f29c24973 · ·parent a678ed2
3 files changed +65−39
adom-chip-laseradded+26
@@ -0,0 +1,26 @@+#!/usr/bin/env bash+# adom-chip-laser — lightweight client for the Adom Chip Laser service.+# Etches a component's MPN into its STEP at the STEP layer. No cadquery needed+# locally; this just calls the shared service.+set -uo pipefail+SVC="${ADOM_CHIP_LASER_URL:-https://laserchip-6dn1tl7vjz5u.adom.cloud}"+VERSION="0.1.0"++case "${1:-}" in+  etch)   # adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]+    step="${2:-}"; mpn="${3:-}"; out="${4:-etched.step}"; frac="${5:-0.55}"+    [ -f "$step" ] && [ -n "$mpn" ] || { echo "usage: adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]"; exit 1; }+    if curl -sf -X POST "$SVC/etch?mpn=$mpn&frac=$frac" --data-binary @"$step" -o "$out"; then+      echo "etched $mpn -> $out"+    else+      echo "etch failed (service: $SVC)"; exit 1+    fi ;;+  health)  curl -s "$SVC/health"; echo ;;+  url)     echo "$SVC" ;;+  version|--version) echo "adom-chip-laser $VERSION" ;;+  *) echo "adom-chip-laser $VERSION — laser-etch an MPN into a component's STEP"+     echo "usage:"+     echo "  adom-chip-laser etch <chip.step> <MPN> [out.step] [frac]"+     echo "  adom-chip-laser health | url | version"+     echo "  (override the service with ADOM_CHIP_LASER_URL)"; exit 1 ;;+esac
hero.pngadded
⋯ 1 unchanged line ⋯
page.json+39−39
@@ -1,21 +1,20 @@ {+  "schema_version": 1,+  "type": "app",   "slug": "adom-chip-laser",+  "title": "Adom Chip Laser",+  "brief": "Laser-etch a component's MPN into its CAD at the STEP layer \u2014 so the downloadable STEP, a Fusion import, and the 3D model all carry the part number on the die. A callable HTTP service; output is a STEP file.",   "version": "0.1.0",-  "type": "app",-  "description": "Laser-etch a component's MPN into its CAD at the STEP layer — a callable HTTP service with STEP output, so the download, the Fusion import, and the 3D model all carry the part number on the die.",-  "dependencies": {},-  "license": "MIT",-  "needs_sudo": false,-  "files": [-    "page.json",-    "README.md",-    "screenshots/**",-    "client/**",-    "install.sh",-    "uninstall.sh",-    "package.json",-    "SKILL.md"-  ],+  "install": {+    "binary_name": "adom-chip-laser",+    "install_dir": "",+    "install_hint": "adompkg install adom-chip-laser",+    "version_cmd": "adom-chip-laser version"+  },+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  },   "tags": [     "laser-etch",     "step",@@ -28,22 +27,14 @@     "service",     "electronics"   ],-  "scripts": {-    "install": "./install.sh",-    "uninstall": "./uninstall.sh"+  "license": "MIT",+  "visibility": {+    "public": true+  },+  "hero": {+    "type": "image",+    "path": "screenshots/hero.png"   },-  "discovery_triggers": [-    "laser etch",-    "laser-etch step",-    "etch mpn",-    "chip marking",-    "laser mark step",-    "part number on chip",-    "fusion step etch",-    "step laser etch",-    "die marking"-  ],-  "discovery_pitch": "Laser-etch a component's MPN into its CAD at the STEP layer — a callable HTTP service with STEP output, so the download, the Fusion import, and the 3D model all carry the part number on the die.",   "sample_prompts": [     {       "label": "Etch MPN into STEP",@@ -58,14 +49,23 @@       "prompt": "etch STM32F103C8T6 onto the die in the 3D model"     }   ],-  "hero": {-    "type": "image",-    "path": "screenshots/hero.png"+  "discovery_triggers": [+    "laser etch",+    "laser-etch step",+    "etch mpn",+    "chip marking",+    "laser mark step",+    "part number on chip",+    "fusion step etch",+    "step laser etch",+    "die marking"+  ],+  "discovery_pitch": "Laser-etch a component's MPN into its CAD at the STEP layer \u2014 a callable HTTP service with STEP output, so the download, the Fusion import, and the 3D model all carry the part number on the die.",+  "metadata": {+    "platform": "linux",+    "service_url": "https://laserchip-6dn1tl7vjz5u.adom.cloud"   },-  "visibility": "public",-  "org": "adom",-  "author": {-    "name": "Ray",-    "email": "[email protected]"-  }+  "description": "Laser-etch a component's MPN into its CAD at the STEP layer \u2014 not a viewer-only texture, so the downloadable STEP, a Fusion 360 import, and the derived 3D model all carry the part number on the die. Callable by other Adom apps as an HTTP service (POST a STEP, get an etched STEP) or a CLI. Proven across LQFP / QFN / TQFP / LGA packages.",+  "dependencies": {},+  "needs_sudo": false }\ No newline at end of file