@stack-spot/portal-network 0.113.1 → 0.113.2
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 +7 -0
- package/dist/client/agent.d.ts +24 -1
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +9 -3
- package/dist/client/agent.js.map +1 -1
- package/package.json +1 -1
- package/src/client/agent.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.113.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.113.1...portal-network@v0.113.2) (2025-04-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add get publicAgent ([#884](https://github.com/stack-spot/portal-commons/issues/884)) ([142629a](https://github.com/stack-spot/portal-commons/commit/142629ac85c96a430d61827b62787cc4ea609637))
|
|
9
|
+
|
|
3
10
|
## [0.113.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.113.0...portal-network@v0.113.1) (2025-04-02)
|
|
4
11
|
|
|
5
12
|
|
package/dist/client/agent.d.ts
CHANGED
|
@@ -7,10 +7,33 @@ declare class AgentClient extends ReactQueryNetworkClient {
|
|
|
7
7
|
agents: import("../network/types.js").QueryObject<{
|
|
8
8
|
visibility?: import("../api/agent.js").VisibilityLevel | undefined;
|
|
9
9
|
}, import("../api/agent.js").AgentResponse[]>;
|
|
10
|
+
agent: import("../network/types.js").QueryObject<{
|
|
11
|
+
agentId: string;
|
|
12
|
+
}, {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
avatar?: string | undefined;
|
|
18
|
+
system_prompt: string;
|
|
19
|
+
type: string;
|
|
20
|
+
llm_config?: import("../api/agent.js").LlmConfigResponse | undefined;
|
|
21
|
+
suggested_prompts?: string[] | undefined;
|
|
22
|
+
knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse | undefined;
|
|
23
|
+
visibility_level: string;
|
|
24
|
+
use_only: boolean;
|
|
25
|
+
creator_name: string;
|
|
26
|
+
created_by: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_by?: string | undefined;
|
|
29
|
+
updated_at?: string | undefined;
|
|
30
|
+
toolkits?: import("../api/agent.js").ToolkitsInAgentResponse | undefined;
|
|
31
|
+
detail_mode?: boolean | undefined;
|
|
32
|
+
}>;
|
|
10
33
|
publicAgents: import("../network/types.js").QueryObject<{
|
|
11
34
|
visibility?: import("../api/agent.js").VisibilityLevel | undefined;
|
|
12
35
|
}, import("../api/agent.js").AgentResponse[]>;
|
|
13
|
-
|
|
36
|
+
publicAgent: import("../network/types.js").QueryObject<{
|
|
14
37
|
agentId: string;
|
|
15
38
|
}, {
|
|
16
39
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAQ5E,cAAM,WAAY,SAAQ,uBAAuB;;IAK/C,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAalE,MAAM;;+CAA0B;IAChC,YAAY;;+CAAgC;IAC5C,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAQ5E,cAAM,WAAY,SAAQ,uBAAuB;;IAK/C,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAalE,MAAM;;+CAA0B;IAChC,KAAK;;;;;;;;;;;;;;;;;;;;;;OAAkC;IACvC,YAAY;;+CAAgC;IAC5C,WAAW;;;;;;;;;;;;;;;;;;;;;;OAAwC;CACpD;AAED,eAAO,MAAM,WAAW,aAAoB,CAAA"}
|
package/dist/client/agent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaults, getV1AgentByAgentId, getV1Agents, getV1PublicAgents } from '../api/agent.js';
|
|
1
|
+
import { defaults, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents } from '../api/agent.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
4
4
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
@@ -11,17 +11,23 @@ class AgentClient extends ReactQueryNetworkClient {
|
|
|
11
11
|
writable: true,
|
|
12
12
|
value: this.query(getV1Agents)
|
|
13
13
|
});
|
|
14
|
+
Object.defineProperty(this, "agent", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: this.query(getV1AgentByAgentId)
|
|
19
|
+
});
|
|
14
20
|
Object.defineProperty(this, "publicAgents", {
|
|
15
21
|
enumerable: true,
|
|
16
22
|
configurable: true,
|
|
17
23
|
writable: true,
|
|
18
24
|
value: this.query(getV1PublicAgents)
|
|
19
25
|
});
|
|
20
|
-
Object.defineProperty(this, "
|
|
26
|
+
Object.defineProperty(this, "publicAgent", {
|
|
21
27
|
enumerable: true,
|
|
22
28
|
configurable: true,
|
|
23
29
|
writable: true,
|
|
24
|
-
value: this.query(
|
|
30
|
+
value: this.query(getV1PublicAgentByAgentId)
|
|
25
31
|
});
|
|
26
32
|
}
|
|
27
33
|
buildStackSpotError(error) {
|
package/dist/client/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACvH,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAQ5E,MAAM,WAAY,SAAQ,uBAAuB;IAC/C;QACE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAgBjC;;;;mBAAS,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;WAAA;QAChC;;;;mBAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC;WAAA;QACvC;;;;mBAAe,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC;WAAA;QAC5C;;;;mBAAc,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC;WAAA;IAlBnD,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,MAAM,SAAS,GAAG,KAAK,CAAC,IAA8B,CAAA;QACtD,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QACpC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,SAAS,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACpI,OAAO,IAAI,iBAAiB,CAAC;YAC3B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI;YACtB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;SAC5B,CAAC,CAAA;IACJ,CAAC;CAMF;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAA"}
|
package/package.json
CHANGED
package/src/client/agent.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { defaults, getV1AgentByAgentId, getV1Agents, getV1PublicAgents } from '../api/agent'
|
|
2
|
+
import { defaults, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents } from '../api/agent'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
5
5
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
@@ -29,8 +29,9 @@ class AgentClient extends ReactQueryNetworkClient {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
agents = this.query(getV1Agents)
|
|
32
|
-
publicAgents = this.query(getV1PublicAgents)
|
|
33
32
|
agent = this.query(getV1AgentByAgentId)
|
|
33
|
+
publicAgents = this.query(getV1PublicAgents)
|
|
34
|
+
publicAgent = this.query(getV1PublicAgentByAgentId)
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export const agentClient = new AgentClient()
|