@stack-spot/portal-network 0.194.2 → 0.195.0-beta.1
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 +174 -0
- package/dist/api/agent-tools.d.ts +6 -0
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +70 -129
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +79 -72
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +315 -62
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +153 -12
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +124 -124
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +10 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +123 -77
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +44 -1
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +19 -19
- package/dist/client/cloud-platform.d.ts +114 -89
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +73 -46
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +356 -258
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +91 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +55 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/discover.d.ts +15 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +48 -48
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +2 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +9 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +142 -216
- package/src/api/codeShift.ts +607 -69
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/agent-tools.ts +10 -1
- package/src/client/ai.ts +37 -0
- package/src/client/cloud-platform.ts +40 -25
- package/src/client/code-shift.ts +54 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/src/client/types.ts
CHANGED
|
@@ -361,10 +361,25 @@ export interface FixedChatResponse extends ChatResponse3 {
|
|
|
361
361
|
agent_info: AgentInfo,
|
|
362
362
|
tools?: string[],
|
|
363
363
|
}
|
|
364
|
+
export interface OpportunitiesPMAgent {
|
|
365
|
+
title: string,
|
|
366
|
+
description: string,
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export type HypothesisPMAgent = OpportunitiesPMAgent
|
|
364
370
|
|
|
371
|
+
export type PrfaqPMAgent = {
|
|
372
|
+
title: string,
|
|
373
|
+
content: string,
|
|
374
|
+
}
|
|
365
375
|
export interface ChatResponseWithSteps extends FixedChatResponse {
|
|
366
376
|
steps: ChatStep[],
|
|
367
377
|
}
|
|
378
|
+
export interface ChatResponseWithPMResources {
|
|
379
|
+
opportunities?: OpportunitiesPMAgent[],
|
|
380
|
+
hypothesis?: HypothesisPMAgent[],
|
|
381
|
+
prfaq?: PrfaqPMAgent,
|
|
382
|
+
}
|
|
368
383
|
|
|
369
384
|
export type OazapftsFunction<Variables = any, Result = any> = (variables: Variables, opts?: RequestOpts) => Promise<Result>
|
|
370
385
|
|
|
@@ -380,12 +395,12 @@ export type FixVariables<
|
|
|
380
395
|
|
|
381
396
|
export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>
|
|
382
397
|
|
|
383
|
-
export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'>
|
|
398
|
+
export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
|
|
384
399
|
builtIn?: boolean,
|
|
385
400
|
spaceName?: string,
|
|
386
401
|
conversation_starter?: string[] | null,
|
|
387
402
|
avatar?: string | null | undefined,
|
|
388
|
-
}
|
|
403
|
+
}
|
|
389
404
|
|
|
390
405
|
export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
|
|
391
406
|
|
|
@@ -39,6 +39,9 @@ export const scfDictionary = {
|
|
|
39
39
|
SCF_VPN_ERROR: 'VPN operation failed.',
|
|
40
40
|
SCF_VPN_NOT_FOUND_ERROR: 'VPN with ID {1} not found.',
|
|
41
41
|
SCF_VPN_NOT_READY_ERROR: 'VPN with ID {1} not ready.',
|
|
42
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone with ID {1} is not empty.',
|
|
43
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder with ID {1} is not empty.',
|
|
44
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: 'Project with ID {1} is not empty.',
|
|
42
45
|
},
|
|
43
46
|
pt: {
|
|
44
47
|
SCF_CERTIFICATE_ERROR: 'Falha na operação de Certificado.',
|
|
@@ -78,5 +81,8 @@ export const scfDictionary = {
|
|
|
78
81
|
SCF_VPN_ERROR: 'Falha na operação de VPN.',
|
|
79
82
|
SCF_VPN_NOT_FOUND_ERROR: 'VPN com ID {1} não encontrada.',
|
|
80
83
|
SCF_VPN_NOT_READY_ERROR: 'VPN com ID {1} não está pronta.',
|
|
84
|
+
SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone com ID {1} não está vazia.',
|
|
85
|
+
SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder com ID {1} não está vazia.',
|
|
86
|
+
SCF_PROJECT_NOT_EMPTY_ERROR: 'Project com ID {1} não está vazia.',
|
|
81
87
|
},
|
|
82
88
|
} satisfies Dictionary
|
|
@@ -64,7 +64,14 @@ export class StreamedJson<T> {
|
|
|
64
64
|
for await (const event of events) {
|
|
65
65
|
if (this.error) return
|
|
66
66
|
if (event.data) {
|
|
67
|
-
|
|
67
|
+
let json
|
|
68
|
+
try {
|
|
69
|
+
json = JSON.parse(event.data)
|
|
70
|
+
} catch (e) {
|
|
71
|
+
// eslint-disable-next-line no-console
|
|
72
|
+
console.warn('Mal formed JSON in streaming:', event.data)
|
|
73
|
+
continue
|
|
74
|
+
}
|
|
68
75
|
await this.transform?.(json, this.data)
|
|
69
76
|
this.merge(json, this.data)
|
|
70
77
|
if (new Date().getTime() - lastChangeCall >= minChangeIntervalMS) {
|
|
@@ -138,7 +145,7 @@ export class StreamedJson<T> {
|
|
|
138
145
|
onChange(listener: (value: Partial<T>) => void) {
|
|
139
146
|
if (this.fullPromise.resolved) {
|
|
140
147
|
listener(this.data)
|
|
141
|
-
return () => {}
|
|
148
|
+
return () => { }
|
|
142
149
|
}
|
|
143
150
|
this.onChangeListeners.push(listener)
|
|
144
151
|
return () => {
|