From 2f9ff11204689912588efd67d2e35b44b38b84f4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Mar 2026 23:45:30 +0000 Subject: [PATCH] chore: migrate to dappco.re vanity import path Change module path from forge.lthn.ai/core/go-webview to dappco.re/go/core/webview. Update all Go imports and documentation references. The go-log dependency uses a replace directive to resolve via the forge until the vanity redirect is configured. Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 2 +- README.md | 6 +++--- actions.go | 2 +- angular.go | 2 +- cdp.go | 2 +- docs/development.md | 2 +- docs/history.md | 4 ++-- docs/index.md | 4 ++-- go.mod | 6 ++++-- webview.go | 2 +- 10 files changed, 17 insertions(+), 15 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 30d9b77..09be2f1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,7 +2,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. -Module: `forge.lthn.ai/core/go-webview` — Chrome DevTools Protocol client for browser automation. +Module: `dappco.re/go/core/webview` — Chrome DevTools Protocol client for browser automation. ## Commands diff --git a/README.md b/README.md index e8cdc96..83ff28d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Go Reference](https://pkg.go.dev/badge/forge.lthn.ai/core/go-webview.svg)](https://pkg.go.dev/forge.lthn.ai/core/go-webview) +[![Go Reference](https://pkg.go.dev/badge/dappco.re/go/core/webview.svg)](https://pkg.go.dev/dappco.re/go/core/webview) [![License: EUPL-1.2](https://img.shields.io/badge/License-EUPL--1.2-blue.svg)](LICENSE.md) [![Go Version](https://img.shields.io/badge/Go-1.26-00ADD8?style=flat&logo=go)](go.mod) @@ -6,14 +6,14 @@ Chrome DevTools Protocol (CDP) client for browser automation, testing, and scraping. Connects to an externally managed Chrome or Chromium instance running with `--remote-debugging-port=9222`, providing navigation, DOM queries, click and type actions, console capture, JavaScript evaluation, screenshots, multi-tab support, viewport emulation, and a fluent `ActionSequence` builder. Includes Angular-specific helpers for Zone.js stability, router navigation, component introspection, and ngModel access. -**Module**: `forge.lthn.ai/core/go-webview` +**Module**: `dappco.re/go/core/webview` **Licence**: EUPL-1.2 **Language**: Go 1.25 ## Quick Start ```go -import "forge.lthn.ai/core/go-webview" +import "dappco.re/go/core/webview" wv, err := webview.New(webview.WithDebugURL("http://localhost:9222")) defer wv.Close() diff --git a/actions.go b/actions.go index 254906d..f1fe510 100644 --- a/actions.go +++ b/actions.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Action represents a browser action that can be performed. diff --git a/angular.go b/angular.go index 844e21a..6028a13 100644 --- a/angular.go +++ b/angular.go @@ -6,7 +6,7 @@ import ( "strings" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // AngularHelper provides Angular-specific testing utilities. diff --git a/cdp.go b/cdp.go index 8855d5d..365c198 100644 --- a/cdp.go +++ b/cdp.go @@ -12,7 +12,7 @@ import ( "github.com/gorilla/websocket" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // CDPClient handles communication with Chrome DevTools Protocol via WebSocket. diff --git a/docs/development.md b/docs/development.md index df2aff3..fc15046 100644 --- a/docs/development.md +++ b/docs/development.md @@ -9,7 +9,7 @@ description: How to build, test, and contribute to go-webview -- prerequisites, ### Go -Go 1.26 or later is required. The module path is `forge.lthn.ai/core/go-webview`. +Go 1.26 or later is required. The module path is `dappco.re/go/core/webview`. ### Chrome or Chromium diff --git a/docs/history.md b/docs/history.md index 372e5ae..54aebc6 100644 --- a/docs/history.md +++ b/docs/history.md @@ -2,7 +2,7 @@ ## Origin -go-webview was extracted from the `pkg/webview/` directory of `forge.lthn.ai/core/go` on 19 February 2026 by Virgil. The extraction made the package independently importable and gave it its own module path, dependency management, and commit history. +go-webview was extracted from the `pkg/webview/` directory of `dappco.re/go/core` on 19 February 2026 by Virgil. The extraction made the package independently importable and gave it its own module path, dependency management, and commit history. --- @@ -12,7 +12,7 @@ go-webview was extracted from the `pkg/webview/` directory of `forge.lthn.ai/cor Commit `45f119b9ac0e0ebe34f5c8387a070a5b8bd2de6b` — 2026-02-19 -Initial extraction. All source files were moved from `go` `pkg/webview/` into the root of this repository. The module was renamed from the internal path to `forge.lthn.ai/core/go-webview`. +Initial extraction. All source files were moved from `go` `pkg/webview/` into the root of this repository. The module was renamed from the internal path to `dappco.re/go/core/webview`. Files established at extraction: diff --git a/docs/index.md b/docs/index.md index ed3e3ca..b6c57dc 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,7 +9,7 @@ description: Chrome DevTools Protocol client for browser automation, testing, an The package does not launch Chrome itself. The caller is responsible for starting the browser process before constructing a `Webview`. -**Module path:** `forge.lthn.ai/core/go-webview` +**Module path:** `dappco.re/go/core/webview` **Licence:** EUPL-1.2 **Go version:** 1.26+ **Dependencies:** `github.com/gorilla/websocket v1.5.3` @@ -33,7 +33,7 @@ google-chrome --headless=new --remote-debugging-port=9222 --no-sandbox --disable Then use the package in Go: ```go -import "forge.lthn.ai/core/go-webview" +import "dappco.re/go/core/webview" // Connect to Chrome wv, err := webview.New(webview.WithDebugURL("http://localhost:9222")) diff --git a/go.mod b/go.mod index b04a469..155e30d 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,9 @@ -module forge.lthn.ai/core/go-webview +module dappco.re/go/core/webview go 1.26.0 require github.com/gorilla/websocket v1.5.3 -require forge.lthn.ai/core/go-log v0.0.4 +require dappco.re/go/core/log v0.0.4 + +replace dappco.re/go/core/log v0.0.4 => forge.lthn.ai/core/go-log v0.0.4 diff --git a/webview.go b/webview.go index 58d0ff0..5305e9c 100644 --- a/webview.go +++ b/webview.go @@ -31,7 +31,7 @@ import ( "sync" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Webview represents a connection to a Chrome DevTools Protocol endpoint.