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) <noreply@anthropic.com>
This commit is contained in:
parent
e677d877eb
commit
2f9ff11204
10 changed files with 17 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[](https://pkg.go.dev/forge.lthn.ai/core/go-webview)
|
||||
[](https://pkg.go.dev/dappco.re/go/core/webview)
|
||||
[](LICENSE.md)
|
||||
[](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()
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
2
cdp.go
2
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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
6
go.mod
6
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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue