@crewx/sdk 0.9.0-rc.164 → 0.9.0-rc.165
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/dist/app/app.d.ts +10 -0
- package/dist/app/entry.d.ts +2 -0
- package/dist/app/index.d.ts +6 -0
- package/dist/app/index.js +12 -10
- package/dist/app/job-bridge.child.d.ts +1 -0
- package/dist/app/job-bridge.d.ts +67 -0
- package/dist/app/job-bridge.drain.child.d.ts +1 -0
- package/dist/app/job-bridge.example.d.ts +11 -0
- package/dist/app/job-contract.d.ts +40 -0
- package/dist/app/job-wire.d.ts +149 -0
- package/dist/app/runtime.d.ts +2 -0
- package/dist/app-artifact-policy/check.d.ts +2 -0
- package/dist/app-artifact-policy/contract.d.ts +54 -0
- package/dist/app-artifact-policy/helper.d.ts +15 -0
- package/dist/app-artifact-policy/index.d.ts +3 -0
- package/dist/app-artifact-policy/index.js +18 -0
- package/dist/app-artifact-policy/paths.d.ts +24 -0
- package/dist/app-artifact-policy/scan.d.ts +47 -0
- package/dist/desktop/index.js +3 -3
- package/dist/esm/app/index.js +12 -10
- package/dist/esm/app-artifact-policy/index.js +18 -0
- package/dist/esm/desktop/index.js +3 -3
- package/dist/esm/index.js +234 -232
- package/dist/esm/plugins/index.js +27 -27
- package/dist/esm/process/index.js +1 -1
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +30 -30
- package/dist/esm/skills/index.js +2 -2
- package/dist/index.browser.d.ts +4 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +10 -2
- package/dist/index.js +240 -238
- package/dist/mcp-app/app-job-bridge.d.ts +30 -0
- package/dist/mcp-app/app-job-bridge.example.d.ts +36 -0
- package/dist/mcp-app/app-job.d.ts +168 -0
- package/dist/mcp-app/index.d.ts +4 -0
- package/dist/mcp-app/skill-backend.d.ts +7 -1
- package/dist/plugins/index.js +20 -20
- package/dist/process/index.d.ts +2 -2
- package/dist/process/index.js +1 -1
- package/dist/process/process-control.d.ts +19 -0
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.js +37 -37
- package/dist/skills/index.js +2 -2
- package/dist/ui-instance/types.d.ts +6 -0
- package/dist/ui-plugin/types.d.ts +4 -1
- package/package.json +7 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AppScheduleDirective, AppScheduleIntervalMinutes, AppScheduleSnapshot } from '../app/schedule-contract.js';
|
|
2
|
+
import type { AppJobOperation } from '../app/job-contract.js';
|
|
2
3
|
import type { ContentFrame, UiActionContentDeclaration, UiContentChannelPort, UiContentRangeRequest } from '../mcp-app/content-channel.js';
|
|
3
4
|
export type JsonPrimitive = string | number | boolean | null;
|
|
4
5
|
export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
@@ -25,11 +26,16 @@ export interface UiDefinitionAction {
|
|
|
25
26
|
readonly content?: UiActionContentDeclaration;
|
|
26
27
|
readonly env?: readonly UiSkillBackendEnvironmentKey[];
|
|
27
28
|
readonly schedule?: UiDefinitionActionSchedule;
|
|
29
|
+
readonly job?: UiDefinitionActionJob;
|
|
30
|
+
readonly jobAccess?: readonly AppJobOperation[];
|
|
28
31
|
}
|
|
29
32
|
export interface UiDefinitionActionSchedule {
|
|
30
33
|
readonly everyMinutes: AppScheduleIntervalMinutes;
|
|
31
34
|
readonly timeoutMs: number;
|
|
32
35
|
}
|
|
36
|
+
export interface UiDefinitionActionJob {
|
|
37
|
+
readonly deadlineMs: number;
|
|
38
|
+
}
|
|
33
39
|
export interface UiProjectionPolicy {
|
|
34
40
|
allow: readonly string[];
|
|
35
41
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { JsonObject, JsonValue, UiActionConfirmation, UiDefinitionActionSchedule, UiDefinitionInput } from '../ui-instance/types.js';
|
|
1
|
+
import type { JsonObject, JsonValue, UiActionConfirmation, UiDefinitionActionJob, UiDefinitionActionSchedule, UiDefinitionInput } from '../ui-instance/types.js';
|
|
2
2
|
import type { APP_TOOL_ENTRY } from '../app/tool-mode.js';
|
|
3
|
+
import type { AppJobOperation } from '../app/job-contract.js';
|
|
3
4
|
import type { UiSkillBackendEnvironmentKey } from '../ui-instance/types.js';
|
|
4
5
|
import type { UiActionContentDeclaration } from '../mcp-app/content-channel.js';
|
|
5
6
|
export type UiPluginPrimitive = 'card-shell' | 'meta-banner' | 'heading' | 'labeled-text' | 'step-flow' | 'text-list';
|
|
@@ -124,6 +125,8 @@ export interface UiPluginAction {
|
|
|
124
125
|
readonly dataInputs?: readonly string[];
|
|
125
126
|
readonly confirmation?: UiActionConfirmation;
|
|
126
127
|
readonly schedule?: UiDefinitionActionSchedule;
|
|
128
|
+
readonly job?: UiDefinitionActionJob;
|
|
129
|
+
readonly jobAccess?: readonly AppJobOperation[];
|
|
127
130
|
readonly _meta?: JsonObject;
|
|
128
131
|
}
|
|
129
132
|
export interface UiPluginResourceRef {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/sdk",
|
|
3
|
-
"version": "0.9.0-rc.
|
|
3
|
+
"version": "0.9.0-rc.165",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
"import": "./dist/app/index.js",
|
|
89
89
|
"require": "./dist/app/index.js"
|
|
90
90
|
},
|
|
91
|
+
"./app-artifact-policy": {
|
|
92
|
+
"types": "./dist/app-artifact-policy/index.d.ts",
|
|
93
|
+
"import": "./dist/app-artifact-policy/index.js",
|
|
94
|
+
"require": "./dist/app-artifact-policy/index.js"
|
|
95
|
+
},
|
|
91
96
|
"./package.json": "./package.json"
|
|
92
97
|
},
|
|
93
98
|
"browser": {
|
|
@@ -121,6 +126,7 @@
|
|
|
121
126
|
"dependencies": {
|
|
122
127
|
"@agentclientprotocol/sdk": "0.21.0",
|
|
123
128
|
"@modelcontextprotocol/sdk": "1.27.0",
|
|
129
|
+
"acorn": "8.16.0",
|
|
124
130
|
"ai": "4.0.0",
|
|
125
131
|
"drizzle-orm": "0.45.2",
|
|
126
132
|
"dotenv": "17.2.3",
|