@talesofai/neta-skills 0.16.1 → 0.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @neta/skills-neta
2
2
 
3
+ ## 0.16.5
4
+
5
+ ### Patch Changes
6
+
7
+ - update auth api base url
8
+
9
+ ## 0.16.4
10
+
11
+ ### Patch Changes
12
+
13
+ - fix build
14
+
15
+ ## 0.16.3
16
+
17
+ ### Patch Changes
18
+
19
+ - update auth api resource
20
+
21
+ ## 0.16.2
22
+
23
+ ### Patch Changes
24
+
25
+ - fix auth api endpoint
26
+
3
27
  ## 0.16.1
4
28
 
5
29
  ### Patch Changes
package/bin/utils/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Type } from "@sinclair/typebox";
2
2
  import { Value } from "@sinclair/typebox/value";
3
3
  import { deleteConfig, readConfig, writeConfig } from "./config.js";
4
- import { API_BASE_URL, AUTH_API_BASE_URL, CLIENT_ID } from "./env.js";
4
+ import { AUTH_API_BASE_URL, CLIENT_ID } from "./env.js";
5
5
  import { ApiResponseError } from "./errors.js";
6
6
  import { safeParseJson } from "./json.js";
7
7
  import { logger } from "./logger.js";
@@ -121,7 +121,7 @@ export const requestDeviceCode = async () => {
121
121
  body: new URLSearchParams({
122
122
  client_id: CLIENT_ID,
123
123
  scope: "profile email offline_access",
124
- resource: API_BASE_URL,
124
+ resource: "https://api.talesofai",
125
125
  }),
126
126
  });
127
127
  if (!res.ok) {
@@ -168,7 +168,7 @@ export const refreshToken = async () => {
168
168
  grant_type: "refresh_token",
169
169
  refresh_token: tokenConfig.refresh_token,
170
170
  scope: "profile email offline_access",
171
- resource: API_BASE_URL,
171
+ resource: "https://api.talesofai",
172
172
  }),
173
173
  });
174
174
  if (!res.ok) {
package/bin/utils/env.js CHANGED
@@ -5,7 +5,7 @@ dotenv.config({
5
5
  });
6
6
  export const IS_DEV = process.env["NODE_ENV"] === "development";
7
7
  export const API_BASE_URL = process.env["NETA_API_BASE_URL"] ?? "https://api.talesofai.com";
8
- export const AUTH_API_BASE_URL = process.env["NETA_AUTH_API_BASE_URL"];
8
+ export const AUTH_API_BASE_URL = process.env["NETA_AUTH_API_BASE_URL"] ?? "https://auth.neta.art";
9
9
  export const CLIENT_ID = process.env["NETA_CLIENT_ID"] ?? "ft6zb5zp7fqmq8y807okv";
10
10
  export const NETA_TOKEN = process.env["NETA_TOKEN"] ?? "";
11
11
  export const IS_GLOBAL = API_BASE_URL.endsWith("talesofai.com");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talesofai/neta-skills",
3
- "version": "0.16.1",
3
+ "version": "0.16.5",
4
4
  "description": "Neta API pi coding agent skills for interacting with Neta API to generate images, videos, songs, and manage characters/elements.",
5
5
  "type": "module",
6
6
  "repository": {