skedyul 1.7.28 → 1.7.30
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/README.md +1 -0
- package/dist/.build-stamp +1 -1
- package/dist/cli/api/apps.d.ts +38 -0
- package/dist/cli/api/index.d.ts +5 -2
- package/dist/cli/api/index.js +64 -1
- package/dist/cli/api/playground.d.ts +92 -0
- package/dist/cli/commands/apps.d.ts +1 -0
- package/dist/cli/index.js +398 -2
- package/dist/config/types/entity.d.ts +41 -0
- package/dist/esm/index.mjs +475 -339
- package/dist/index.d.ts +2 -2
- package/dist/index.js +487 -339
- package/dist/schemas/agent-schema-v3.d.ts +3 -0
- package/dist/schemas/agent-schema-v3.js +56 -1
- package/dist/schemas/agent-schema-v3.mjs +56 -1
- package/dist/schemas/agent-schema.d.ts +248 -1
- package/dist/schemas/agent-schema.js +36 -1
- package/dist/schemas/agent-schema.mjs +36 -1
- package/dist/schemas/crm-schema.d.ts +16 -16
- package/dist/schemas.d.ts +282 -20
- package/dist/skills/index.d.ts +1 -1
- package/dist/skills/types.d.ts +176 -0
- package/dist/skills/types.js +57 -1
- package/dist/skills/types.mjs +53 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -238,6 +238,7 @@ skedyul workflows deploy --file ./workflows/reminder.yaml --workplace <subdomain
|
|
|
238
238
|
# Testing
|
|
239
239
|
skedyul chat --agent booking --workplace <subdomain>
|
|
240
240
|
skedyul dev invoke my_tool --workplace <subdomain>
|
|
241
|
+
skedyul apps deployment --id dpl_... # build + provision logs
|
|
241
242
|
```
|
|
242
243
|
|
|
243
244
|
See [CLI reference](./docs/cli.md) for every command, flag, and config file path.
|
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1789421195637
|
package/dist/cli/api/apps.d.ts
CHANGED
|
@@ -109,6 +109,43 @@ export declare function listTools(ctx: CliContext, input: {
|
|
|
109
109
|
tool?: PlatformTool;
|
|
110
110
|
}>;
|
|
111
111
|
export declare function invokeTool(ctx: CliContext, input: InvokeToolInput): Promise<InvokeToolResult>;
|
|
112
|
+
export interface GetDeploymentInput {
|
|
113
|
+
deploymentId: string;
|
|
114
|
+
tail?: number;
|
|
115
|
+
includeLogs?: boolean;
|
|
116
|
+
errorsOnly?: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface DeploymentLogEntry {
|
|
119
|
+
timestamp?: string;
|
|
120
|
+
level?: string;
|
|
121
|
+
message?: string;
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
}
|
|
124
|
+
export interface GetDeploymentResult {
|
|
125
|
+
success?: boolean;
|
|
126
|
+
deploymentId?: string;
|
|
127
|
+
status?: string;
|
|
128
|
+
appHandle?: string | null;
|
|
129
|
+
invokeEndpoint?: string | null;
|
|
130
|
+
readyToInvoke?: boolean;
|
|
131
|
+
provision?: {
|
|
132
|
+
id?: string;
|
|
133
|
+
status?: string;
|
|
134
|
+
currentStep?: string | null;
|
|
135
|
+
errorMessage?: string | null;
|
|
136
|
+
} | null;
|
|
137
|
+
pendingMigration?: unknown;
|
|
138
|
+
logs?: DeploymentLogEntry[];
|
|
139
|
+
errors?: DeploymentLogEntry[];
|
|
140
|
+
logsTotal?: number;
|
|
141
|
+
logsTruncated?: boolean;
|
|
142
|
+
logsError?: string | null;
|
|
143
|
+
hint?: string;
|
|
144
|
+
lastError?: string | null;
|
|
145
|
+
error?: string;
|
|
146
|
+
[key: string]: unknown;
|
|
147
|
+
}
|
|
148
|
+
export declare function getDeployment(ctx: CliContext, input: GetDeploymentInput): Promise<GetDeploymentResult>;
|
|
112
149
|
export declare const apps: {
|
|
113
150
|
link: typeof linkApp;
|
|
114
151
|
registerEndpoint: typeof registerEndpoint;
|
|
@@ -120,4 +157,5 @@ export declare const apps: {
|
|
|
120
157
|
syncResources: typeof syncResources;
|
|
121
158
|
listTools: typeof listTools;
|
|
122
159
|
invokeTool: typeof invokeTool;
|
|
160
|
+
getDeployment: typeof getDeployment;
|
|
123
161
|
};
|
package/dist/cli/api/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export { listModels, pullSchema, diffSchema, pushSchema, approveMigration, } fro
|
|
|
6
6
|
export { workflows } from './workflows';
|
|
7
7
|
export type { WorkflowRecord, WorkflowVersion, DeployWorkflowResult, ValidateWorkflowResult, RunWorkflowResult, WorkflowRunStatus, WorkflowSchema, PublishWorkflowResult, PullWorkflowResult, DeployWorkflowOptions, } from './workflows';
|
|
8
8
|
export { listWorkflows, getWorkflow, listWorkflowVersions, validateWorkflow, validateWorkflowContent, deployWorkflow, publishWorkflow, pullWorkflow, getWorkflowSchema, runWorkflow, getWorkflowRun, } from './workflows';
|
|
9
|
+
export { playground } from './playground';
|
|
10
|
+
export type { PlaygroundSendResult, PlaygroundInspectResult, PlaygroundCreateResult, PlaygroundTurnInput, PlaygroundScheduledMessage, PlaygroundSchedulingCheck, } from './playground';
|
|
11
|
+
export { sendPlaygroundTurn, inspectPlaygroundSession, createPlaygroundSession, } from './playground';
|
|
9
12
|
export { apps } from './apps';
|
|
10
|
-
export type { LinkAppInput, LinkAppResult, InvokeToolInput, InvokeToolResult, SyncResourcesResult, PlatformTool, } from './apps';
|
|
11
|
-
export { linkApp, registerEndpoint, unregisterEndpoint, heartbeat, installApp, uninstallApp, getInstallation, syncResources, listTools, invokeTool, } from './apps';
|
|
13
|
+
export type { LinkAppInput, LinkAppResult, InvokeToolInput, InvokeToolResult, SyncResourcesResult, PlatformTool, GetDeploymentInput, GetDeploymentResult, DeploymentLogEntry, } from './apps';
|
|
14
|
+
export { linkApp, registerEndpoint, unregisterEndpoint, heartbeat, installApp, uninstallApp, getInstallation, syncResources, listTools, invokeTool, getDeployment, } from './apps';
|
package/dist/cli/api/index.js
CHANGED
|
@@ -32,15 +32,18 @@ var api_exports = {};
|
|
|
32
32
|
__export(api_exports, {
|
|
33
33
|
approveMigration: () => approveMigration,
|
|
34
34
|
apps: () => apps,
|
|
35
|
+
createPlaygroundSession: () => createPlaygroundSession,
|
|
35
36
|
crm: () => crm,
|
|
36
37
|
deployWorkflow: () => deployWorkflow,
|
|
37
38
|
diffSchema: () => diffSchema,
|
|
39
|
+
getDeployment: () => getDeployment,
|
|
38
40
|
getInstallation: () => getInstallation,
|
|
39
41
|
getWorkflow: () => getWorkflow,
|
|
40
42
|
getWorkflowRun: () => getWorkflowRun,
|
|
41
43
|
getWorkflowSchema: () => getWorkflowSchema,
|
|
42
44
|
getWorkplaceToken: () => getWorkplaceToken,
|
|
43
45
|
heartbeat: () => heartbeat,
|
|
46
|
+
inspectPlaygroundSession: () => inspectPlaygroundSession,
|
|
44
47
|
installApp: () => installApp,
|
|
45
48
|
invokeTool: () => invokeTool,
|
|
46
49
|
linkApp: () => linkApp,
|
|
@@ -49,12 +52,14 @@ __export(api_exports, {
|
|
|
49
52
|
listWorkflowVersions: () => listWorkflowVersions,
|
|
50
53
|
listWorkflows: () => listWorkflows,
|
|
51
54
|
listWorkplaces: () => listWorkplaces,
|
|
55
|
+
playground: () => playground,
|
|
52
56
|
publishWorkflow: () => publishWorkflow,
|
|
53
57
|
pullSchema: () => pullSchema,
|
|
54
58
|
pullWorkflow: () => pullWorkflow,
|
|
55
59
|
pushSchema: () => pushSchema,
|
|
56
60
|
registerEndpoint: () => registerEndpoint,
|
|
57
61
|
runWorkflow: () => runWorkflow,
|
|
62
|
+
sendPlaygroundTurn: () => sendPlaygroundTurn,
|
|
58
63
|
syncResources: () => syncResources,
|
|
59
64
|
uninstallApp: () => uninstallApp,
|
|
60
65
|
unregisterEndpoint: () => unregisterEndpoint,
|
|
@@ -685,6 +690,47 @@ var workflows = {
|
|
|
685
690
|
getRun: getWorkflowRun
|
|
686
691
|
};
|
|
687
692
|
|
|
693
|
+
// src/cli/api/playground.ts
|
|
694
|
+
async function sendPlaygroundTurn(ctx, workplace, input) {
|
|
695
|
+
const workplaceToken = await getWorkplaceToken(ctx, workplace);
|
|
696
|
+
return callCliApi(cliApi(ctx), "/playground", {
|
|
697
|
+
workplaceId: workplaceToken.workplaceId,
|
|
698
|
+
action: "send",
|
|
699
|
+
handle: input.handle,
|
|
700
|
+
agentId: input.agentId,
|
|
701
|
+
threadId: input.threadId,
|
|
702
|
+
content: input.message,
|
|
703
|
+
currentTime: input.currentTime,
|
|
704
|
+
contactId: input.contactId,
|
|
705
|
+
appInstallationId: input.appInstallationId,
|
|
706
|
+
title: input.title,
|
|
707
|
+
sandbox: input.sandbox
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
async function inspectPlaygroundSession(ctx, workplace, threadId) {
|
|
711
|
+
const workplaceToken = await getWorkplaceToken(ctx, workplace);
|
|
712
|
+
return callCliApi(cliApi(ctx), "/playground", void 0, {
|
|
713
|
+
method: "GET",
|
|
714
|
+
query: {
|
|
715
|
+
workplaceId: workplaceToken.workplaceId,
|
|
716
|
+
threadId
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
async function createPlaygroundSession(ctx, workplace, input) {
|
|
721
|
+
const workplaceToken = await getWorkplaceToken(ctx, workplace);
|
|
722
|
+
return callCliApi(cliApi(ctx), "/playground", {
|
|
723
|
+
workplaceId: workplaceToken.workplaceId,
|
|
724
|
+
action: "create",
|
|
725
|
+
...input
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
var playground = {
|
|
729
|
+
send: sendPlaygroundTurn,
|
|
730
|
+
get: inspectPlaygroundSession,
|
|
731
|
+
create: createPlaygroundSession
|
|
732
|
+
};
|
|
733
|
+
|
|
688
734
|
// src/cli/api/apps.ts
|
|
689
735
|
async function linkApp(ctx, input) {
|
|
690
736
|
return callCliApi(cliApi(ctx), "/link", {
|
|
@@ -753,6 +799,17 @@ async function invokeTool(ctx, input) {
|
|
|
753
799
|
timeout: input.timeout
|
|
754
800
|
});
|
|
755
801
|
}
|
|
802
|
+
async function getDeployment(ctx, input) {
|
|
803
|
+
return callCliApi(cliApi(ctx), "/app-deploy", void 0, {
|
|
804
|
+
method: "GET",
|
|
805
|
+
query: {
|
|
806
|
+
deploymentId: input.deploymentId,
|
|
807
|
+
tail: input.tail != null ? String(input.tail) : void 0,
|
|
808
|
+
logs: input.includeLogs === false ? "false" : "true",
|
|
809
|
+
errorsOnly: input.errorsOnly ? "true" : void 0
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}
|
|
756
813
|
var apps = {
|
|
757
814
|
link: linkApp,
|
|
758
815
|
registerEndpoint,
|
|
@@ -763,21 +820,25 @@ var apps = {
|
|
|
763
820
|
installation: getInstallation,
|
|
764
821
|
syncResources,
|
|
765
822
|
listTools,
|
|
766
|
-
invokeTool
|
|
823
|
+
invokeTool,
|
|
824
|
+
getDeployment
|
|
767
825
|
};
|
|
768
826
|
// Annotate the CommonJS export names for ESM import in node:
|
|
769
827
|
0 && (module.exports = {
|
|
770
828
|
approveMigration,
|
|
771
829
|
apps,
|
|
830
|
+
createPlaygroundSession,
|
|
772
831
|
crm,
|
|
773
832
|
deployWorkflow,
|
|
774
833
|
diffSchema,
|
|
834
|
+
getDeployment,
|
|
775
835
|
getInstallation,
|
|
776
836
|
getWorkflow,
|
|
777
837
|
getWorkflowRun,
|
|
778
838
|
getWorkflowSchema,
|
|
779
839
|
getWorkplaceToken,
|
|
780
840
|
heartbeat,
|
|
841
|
+
inspectPlaygroundSession,
|
|
781
842
|
installApp,
|
|
782
843
|
invokeTool,
|
|
783
844
|
linkApp,
|
|
@@ -786,12 +847,14 @@ var apps = {
|
|
|
786
847
|
listWorkflowVersions,
|
|
787
848
|
listWorkflows,
|
|
788
849
|
listWorkplaces,
|
|
850
|
+
playground,
|
|
789
851
|
publishWorkflow,
|
|
790
852
|
pullSchema,
|
|
791
853
|
pullWorkflow,
|
|
792
854
|
pushSchema,
|
|
793
855
|
registerEndpoint,
|
|
794
856
|
runWorkflow,
|
|
857
|
+
sendPlaygroundTurn,
|
|
795
858
|
syncResources,
|
|
796
859
|
uninstallApp,
|
|
797
860
|
unregisterEndpoint,
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { type CliContext } from './context';
|
|
2
|
+
export interface PlaygroundScheduledMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
status: string;
|
|
5
|
+
scheduledAt: string;
|
|
6
|
+
content: string;
|
|
7
|
+
requiresApproval?: boolean;
|
|
8
|
+
cancelOnActivity?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface PlaygroundSchedulingCheck {
|
|
11
|
+
applicable: boolean;
|
|
12
|
+
passed: boolean;
|
|
13
|
+
reason: string;
|
|
14
|
+
namedDelay: boolean;
|
|
15
|
+
verbalFollowUp: boolean;
|
|
16
|
+
scheduledSend: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface PlaygroundSendResult {
|
|
19
|
+
success: boolean;
|
|
20
|
+
threadId: string;
|
|
21
|
+
userMessageId?: string;
|
|
22
|
+
agentMessageId?: string;
|
|
23
|
+
agentResponse: string;
|
|
24
|
+
agentRunId?: string;
|
|
25
|
+
status: string;
|
|
26
|
+
currentTime?: string;
|
|
27
|
+
scheduledMessageIds?: string[];
|
|
28
|
+
scheduledMessages: PlaygroundScheduledMessage[];
|
|
29
|
+
schedulingCheck?: PlaygroundSchedulingCheck;
|
|
30
|
+
session?: {
|
|
31
|
+
threadId: string;
|
|
32
|
+
agentId: string;
|
|
33
|
+
agentHandle: string | null;
|
|
34
|
+
agentName: string;
|
|
35
|
+
} | null;
|
|
36
|
+
error?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PlaygroundInspectResult {
|
|
39
|
+
success: boolean;
|
|
40
|
+
threadId: string;
|
|
41
|
+
title: string | null;
|
|
42
|
+
agentId?: string;
|
|
43
|
+
agentHandle?: string | null;
|
|
44
|
+
agentName?: string;
|
|
45
|
+
messages: Array<{
|
|
46
|
+
id: string;
|
|
47
|
+
role: 'user' | 'assistant';
|
|
48
|
+
content: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
}>;
|
|
51
|
+
scheduledMessages: PlaygroundScheduledMessage[];
|
|
52
|
+
sendCalls: Array<{
|
|
53
|
+
toolName: string;
|
|
54
|
+
content: string | null;
|
|
55
|
+
sendAt: unknown;
|
|
56
|
+
}>;
|
|
57
|
+
schedulingCheck?: PlaygroundSchedulingCheck;
|
|
58
|
+
error?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface PlaygroundCreateResult {
|
|
61
|
+
success: boolean;
|
|
62
|
+
threadId: string;
|
|
63
|
+
agentId: string;
|
|
64
|
+
agentHandle: string | null;
|
|
65
|
+
agentName: string;
|
|
66
|
+
error?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PlaygroundTurnInput {
|
|
69
|
+
handle?: string;
|
|
70
|
+
agentId?: string;
|
|
71
|
+
threadId?: string;
|
|
72
|
+
message: string;
|
|
73
|
+
currentTime?: string;
|
|
74
|
+
contactId?: string;
|
|
75
|
+
appInstallationId?: string;
|
|
76
|
+
title?: string;
|
|
77
|
+
sandbox?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare function sendPlaygroundTurn(ctx: CliContext, workplace: string, input: PlaygroundTurnInput): Promise<PlaygroundSendResult>;
|
|
80
|
+
export declare function inspectPlaygroundSession(ctx: CliContext, workplace: string, threadId: string): Promise<PlaygroundInspectResult>;
|
|
81
|
+
export declare function createPlaygroundSession(ctx: CliContext, workplace: string, input: {
|
|
82
|
+
handle?: string;
|
|
83
|
+
agentId?: string;
|
|
84
|
+
title?: string;
|
|
85
|
+
contactId?: string;
|
|
86
|
+
appInstallationId?: string;
|
|
87
|
+
}): Promise<PlaygroundCreateResult>;
|
|
88
|
+
export declare const playground: {
|
|
89
|
+
send: typeof sendPlaygroundTurn;
|
|
90
|
+
get: typeof inspectPlaygroundSession;
|
|
91
|
+
create: typeof createPlaygroundSession;
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function appsCommand(args: string[]): Promise<void>;
|