lightning-terminal/scripting
sputn1ck 43df8e2d7d scripting: fix LND RPC authentication using lndclient wrappers
This commit fixes LND RPC authentication by switching from raw gRPC
clients to lndclient wrappers that provide proper macaroon authentication.

Changes:
- Update LNDClients to use lndclient.LightningClient and
  lndclient.RouterClient instead of raw gRPC clients
- Add getRawLightningClient() and getRawRouterClient() helpers that use
  RawClientWithMacAuth() for authenticated raw client access
- Update all 21 LND builtin methods to use the new pattern
- Add InMemoryStore implementation for testing
- Wire up LND clients in terminal.go after LND connects
- Fix integration test function signatures

All 7 scripts integration tests now pass:
- scripts_basic_crud
- scripts_validation
- scripts_execution
- scripts_kv_store
- scripts_lnd_access
- scripts_builtins
- scripts_kv_builtins
2026-01-30 23:28:52 +01:00
..
builtins.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
builtins_http.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
builtins_kv.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
builtins_lnd.go scripting: fix LND RPC authentication using lndclient wrappers 2026-01-30 23:28:52 +01:00
builtins_subscribe.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
engine.go scripting: fix LND RPC authentication using lndclient wrappers 2026-01-30 23:28:52 +01:00
kvstore.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
log.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
manager.go scripting: fix LND RPC authentication using lndclient wrappers 2026-01-30 23:28:52 +01:00
rpcserver.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
runner.go scripting: fix LND RPC authentication using lndclient wrappers 2026-01-30 23:28:52 +01:00
sandbox.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
store.go scripting: fix LND RPC authentication using lndclient wrappers 2026-01-30 23:28:52 +01:00
store_sql.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
types.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00
validator.go scripting: add Starlark scripting system for LiT automation 2026-01-30 23:28:52 +01:00