I tested to make sure I wasn't insane^H^H^H^H^H^Hmissing something:
-
The plugin says it looks for:
~/.local/state/tstruct/auth.json
and consumes the value of the key api_token for TALA license validation.
-
d2 / tala use ~/.config/tstruct/auth.json in the same format.
-
I validated that d2/tala cli are consuming my license properly:
$ d2 layout tala|grep -E '(API token \(v|Email:|Renewal)'
*** API token (v1) found from ~/.config/tstruct/auth.json ***
Email: wolf@wolfspyre.com
Renewal Date: 30 Nov 25 15:49 CST
- I validated that the content is the same between
~/.local/state/tstruct/auth.json and ~/.config/tstruct/auth.json:
me@host:~$ md5 /Users/me/.local/state/tstruct/auth.json
MD5 (/Users/me/.local/state/tstruct/auth.json) = 58ef8caefcefb8670bf34583b1bf5282
me@host:~$ md5 ~/.config/tstruct/auth.json
MD5 (/Users/me/.config/tstruct/auth.json) = 58ef8caefcefb8670bf34583b1bf5282
so from a files in place perspective, this should accomplish the needful as far as I can tell;
however:
if I configure the D2 plugin in obsidian to use the TALA layout, and I do NOT paste an api token into the configuration pane within obsidian, diagrams are rendered as unlicensed.
once I paste the exact same value as is stored in the specified json file under the 'api_token' key into the API token window in obsidian, diagrams are properly rendered:
Note - no API key in the config ui:

validation that the files have the same content, and that the d2 binary sees the license file, and validates it properly:

SAD PANDA:

Paste API token into UI:

LESS?? sad panda...

(yes it works... but.... )
is there any additional information I can provide about my env that would be helpful?
I tested to make sure I wasn't insane^H^H^H^H^H^Hmissing something:
The plugin says it looks for:
~/.local/state/tstruct/auth.jsonand consumes the value of the key
api_tokenfor TALA license validation.d2 / tala use
~/.config/tstruct/auth.jsonin the same format.I validated that d2/tala cli are consuming my license properly:
~/.local/state/tstruct/auth.jsonand~/.config/tstruct/auth.json:so from a files in place perspective, this should accomplish the needful as far as I can tell;
however:
if I configure the D2 plugin in obsidian to use the
TALAlayout, and I do NOT paste an api token into the configuration pane within obsidian, diagrams are rendered as unlicensed.once I paste the exact same value as is stored in the specified json file under the 'api_token' key into the API token window in obsidian, diagrams are properly rendered:
Note - no API key in the config ui:

validation that the files have the same content, and that the d2 binary sees the license file, and validates it properly:

SAD PANDA:

Paste API token into UI:

LESS?? sad panda...

(yes it works... but.... )
is there any additional information I can provide about my env that would be helpful?