@ocxp/client 0.2.6 → 0.2.8
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/index.cjs +397 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2436 -874
- package/dist/index.d.ts +2436 -874
- package/dist/index.js +383 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -7
package/dist/index.cjs
CHANGED
|
@@ -813,11 +813,7 @@ var createClient = (config = {}) => {
|
|
|
813
813
|
};
|
|
814
814
|
|
|
815
815
|
// src/generated/client.gen.ts
|
|
816
|
-
var client = createClient(
|
|
817
|
-
createConfig({
|
|
818
|
-
baseUrl: "https://ix8b43sg3j.execute-api.us-west-2.amazonaws.com"
|
|
819
|
-
})
|
|
820
|
-
);
|
|
816
|
+
var client = createClient(createConfig());
|
|
821
817
|
|
|
822
818
|
// src/generated/sdk.gen.ts
|
|
823
819
|
var bulkReadContent = (options) => (options.client ?? client).post({
|
|
@@ -1041,6 +1037,39 @@ var setDefaultDatabase = (options) => (options.client ?? client).put({
|
|
|
1041
1037
|
...options.headers
|
|
1042
1038
|
}
|
|
1043
1039
|
});
|
|
1040
|
+
var deleteCredentials = (options) => (options.client ?? client).delete({
|
|
1041
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1042
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1043
|
+
...options
|
|
1044
|
+
});
|
|
1045
|
+
var getCredentials = (options) => (options.client ?? client).get({
|
|
1046
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1048
|
+
...options
|
|
1049
|
+
});
|
|
1050
|
+
var updateCredentials = (options) => (options.client ?? client).patch({
|
|
1051
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1052
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1053
|
+
...options,
|
|
1054
|
+
headers: {
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
var saveCredentials = (options) => (options.client ?? client).post({
|
|
1060
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1061
|
+
url: "/ocxp/project/{project_id}/credentials",
|
|
1062
|
+
...options,
|
|
1063
|
+
headers: {
|
|
1064
|
+
"Content-Type": "application/json",
|
|
1065
|
+
...options.headers
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
var testCredentials = (options) => (options.client ?? client).post({
|
|
1069
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1070
|
+
url: "/ocxp/project/{project_id}/credentials/test",
|
|
1071
|
+
...options
|
|
1072
|
+
});
|
|
1044
1073
|
var listMissions = (options) => (options?.client ?? client).get({
|
|
1045
1074
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1046
1075
|
url: "/ocxp/mission",
|
|
@@ -1163,6 +1192,77 @@ var ignoreMemo = (options) => (options.client ?? client).post({
|
|
|
1163
1192
|
url: "/ocxp/memo/{memo_id}/ignore",
|
|
1164
1193
|
...options
|
|
1165
1194
|
});
|
|
1195
|
+
var listWorkflows = (options) => (options.client ?? client).get({
|
|
1196
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1197
|
+
url: "/ocxp/workflow",
|
|
1198
|
+
...options
|
|
1199
|
+
});
|
|
1200
|
+
var createWorkflow = (options) => (options.client ?? client).post({
|
|
1201
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1202
|
+
url: "/ocxp/workflow",
|
|
1203
|
+
...options,
|
|
1204
|
+
headers: {
|
|
1205
|
+
"Content-Type": "application/json",
|
|
1206
|
+
...options.headers
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
var deleteWorkflow = (options) => (options.client ?? client).delete({
|
|
1210
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1211
|
+
url: "/ocxp/workflow/{workflow_id}",
|
|
1212
|
+
...options
|
|
1213
|
+
});
|
|
1214
|
+
var getWorkflow = (options) => (options.client ?? client).get({
|
|
1215
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1216
|
+
url: "/ocxp/workflow/{workflow_id}",
|
|
1217
|
+
...options
|
|
1218
|
+
});
|
|
1219
|
+
var startWorkflow = (options) => (options.client ?? client).post({
|
|
1220
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1221
|
+
url: "/ocxp/workflow/{workflow_id}/start",
|
|
1222
|
+
...options
|
|
1223
|
+
});
|
|
1224
|
+
var listTasks = (options) => (options.client ?? client).get({
|
|
1225
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1226
|
+
url: "/ocxp/workflow/{workflow_id}/tasks",
|
|
1227
|
+
...options
|
|
1228
|
+
});
|
|
1229
|
+
var addTask = (options) => (options.client ?? client).post({
|
|
1230
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1231
|
+
url: "/ocxp/workflow/{workflow_id}/tasks",
|
|
1232
|
+
...options,
|
|
1233
|
+
headers: {
|
|
1234
|
+
"Content-Type": "application/json",
|
|
1235
|
+
...options.headers
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
var bulkUpdateTasks = (options) => (options.client ?? client).patch({
|
|
1239
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1240
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/bulk",
|
|
1241
|
+
...options,
|
|
1242
|
+
headers: {
|
|
1243
|
+
"Content-Type": "application/json",
|
|
1244
|
+
...options.headers
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
var deleteTask = (options) => (options.client ?? client).delete({
|
|
1248
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1249
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1250
|
+
...options
|
|
1251
|
+
});
|
|
1252
|
+
var getTask = (options) => (options.client ?? client).get({
|
|
1253
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1254
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1255
|
+
...options
|
|
1256
|
+
});
|
|
1257
|
+
var updateTask = (options) => (options.client ?? client).patch({
|
|
1258
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1259
|
+
url: "/ocxp/workflow/{workflow_id}/tasks/{task_id}",
|
|
1260
|
+
...options,
|
|
1261
|
+
headers: {
|
|
1262
|
+
"Content-Type": "application/json",
|
|
1263
|
+
...options.headers
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1166
1266
|
var downloadRepository = (options) => (options.client ?? client).post({
|
|
1167
1267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1168
1268
|
url: "/ocxp/repo/download",
|
|
@@ -1727,17 +1827,25 @@ var OCXPClient = class {
|
|
|
1727
1827
|
}
|
|
1728
1828
|
// ============== Mission Operations ==============
|
|
1729
1829
|
/**
|
|
1730
|
-
* List all missions in workspace
|
|
1830
|
+
* List all missions in workspace with pagination support
|
|
1831
|
+
* @param options - Filtering, pagination, and sorting options
|
|
1832
|
+
* @returns Paginated mission list with total count
|
|
1731
1833
|
*/
|
|
1732
1834
|
async listMissions(options) {
|
|
1733
1835
|
const headers = await this.getHeaders();
|
|
1836
|
+
const query = {
|
|
1837
|
+
project_id: options?.projectId,
|
|
1838
|
+
status: options?.status,
|
|
1839
|
+
limit: options?.limit,
|
|
1840
|
+
offset: options?.offset,
|
|
1841
|
+
order_by: options?.orderBy,
|
|
1842
|
+
order_dir: options?.orderDir,
|
|
1843
|
+
mission_ids: options?.missionIds,
|
|
1844
|
+
include_metadata: options?.includeMetadata
|
|
1845
|
+
};
|
|
1734
1846
|
const response = await listMissions({
|
|
1735
1847
|
client: this.client,
|
|
1736
|
-
query
|
|
1737
|
-
project_id: options?.projectId,
|
|
1738
|
-
status: options?.status,
|
|
1739
|
-
limit: options?.limit
|
|
1740
|
-
},
|
|
1848
|
+
query,
|
|
1741
1849
|
headers
|
|
1742
1850
|
});
|
|
1743
1851
|
return extractData(response);
|
|
@@ -2573,7 +2681,7 @@ var OCXPClient = class {
|
|
|
2573
2681
|
body: { github_token: token }
|
|
2574
2682
|
});
|
|
2575
2683
|
if (response.error) {
|
|
2576
|
-
throw new Error(`Failed to set GitHub token: ${
|
|
2684
|
+
throw new Error(`Failed to set GitHub token: ${JSON.stringify(response.error)}`);
|
|
2577
2685
|
}
|
|
2578
2686
|
if (response.data === true) {
|
|
2579
2687
|
return { success: true };
|
|
@@ -2586,13 +2694,15 @@ var OCXPClient = class {
|
|
|
2586
2694
|
*/
|
|
2587
2695
|
async getGitHubTokenStatus() {
|
|
2588
2696
|
const headers = await this.getHeaders();
|
|
2589
|
-
const response = await this.client.request(
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2697
|
+
const response = await this.client.request(
|
|
2698
|
+
{
|
|
2699
|
+
method: "GET",
|
|
2700
|
+
url: "/auth/github-token",
|
|
2701
|
+
headers
|
|
2702
|
+
}
|
|
2703
|
+
);
|
|
2594
2704
|
if (response.error) {
|
|
2595
|
-
throw new Error(`Failed to get GitHub token status: ${
|
|
2705
|
+
throw new Error(`Failed to get GitHub token status: ${JSON.stringify(response.error)}`);
|
|
2596
2706
|
}
|
|
2597
2707
|
const data = response.data;
|
|
2598
2708
|
if (data && typeof data === "object" && "configured" in data) {
|
|
@@ -2612,13 +2722,163 @@ var OCXPClient = class {
|
|
|
2612
2722
|
headers
|
|
2613
2723
|
});
|
|
2614
2724
|
if (response.error) {
|
|
2615
|
-
throw new Error(`Failed to delete GitHub token: ${
|
|
2725
|
+
throw new Error(`Failed to delete GitHub token: ${JSON.stringify(response.error)}`);
|
|
2616
2726
|
}
|
|
2617
2727
|
if (response.data === true) {
|
|
2618
2728
|
return { success: true };
|
|
2619
2729
|
}
|
|
2620
2730
|
return response.data || { success: true };
|
|
2621
2731
|
}
|
|
2732
|
+
// ============== Project Credential Operations ==============
|
|
2733
|
+
/**
|
|
2734
|
+
* Get project credentials for frontend authentication
|
|
2735
|
+
* @param projectId - Project ID
|
|
2736
|
+
* @returns Project credentials
|
|
2737
|
+
*/
|
|
2738
|
+
async getProjectCredentials(projectId) {
|
|
2739
|
+
const headers = await this.getHeaders();
|
|
2740
|
+
const response = await getCredentials({
|
|
2741
|
+
client: this.client,
|
|
2742
|
+
path: { project_id: projectId },
|
|
2743
|
+
headers
|
|
2744
|
+
});
|
|
2745
|
+
if (response.error) {
|
|
2746
|
+
throw new Error(`Failed to get credentials: ${JSON.stringify(response.error)}`);
|
|
2747
|
+
}
|
|
2748
|
+
const data = response.data;
|
|
2749
|
+
if (!data.data) {
|
|
2750
|
+
throw new Error("No credentials found");
|
|
2751
|
+
}
|
|
2752
|
+
return data.data;
|
|
2753
|
+
}
|
|
2754
|
+
/**
|
|
2755
|
+
* Save project credentials for frontend authentication
|
|
2756
|
+
* @param projectId - Project ID
|
|
2757
|
+
* @param credentials - Credentials to save (url, username, password)
|
|
2758
|
+
* @returns Success response
|
|
2759
|
+
*/
|
|
2760
|
+
async saveProjectCredentials(projectId, credentials) {
|
|
2761
|
+
const headers = await this.getHeaders();
|
|
2762
|
+
const body = {
|
|
2763
|
+
url: credentials.url,
|
|
2764
|
+
username: credentials.username,
|
|
2765
|
+
password: credentials.password,
|
|
2766
|
+
login_instructions: credentials.login_instructions || "",
|
|
2767
|
+
workspace: this.workspace
|
|
2768
|
+
};
|
|
2769
|
+
const response = await saveCredentials({
|
|
2770
|
+
client: this.client,
|
|
2771
|
+
path: { project_id: projectId },
|
|
2772
|
+
headers,
|
|
2773
|
+
body
|
|
2774
|
+
});
|
|
2775
|
+
if (response.error) {
|
|
2776
|
+
throw new Error(`Failed to save credentials: ${JSON.stringify(response.error)}`);
|
|
2777
|
+
}
|
|
2778
|
+
return response.data;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2781
|
+
* Update project credentials for frontend authentication
|
|
2782
|
+
* @param projectId - Project ID
|
|
2783
|
+
* @param updates - Partial credential updates
|
|
2784
|
+
* @returns Success response
|
|
2785
|
+
*/
|
|
2786
|
+
async updateProjectCredentials(projectId, updates) {
|
|
2787
|
+
const headers = await this.getHeaders();
|
|
2788
|
+
const body = {
|
|
2789
|
+
url: updates.url ?? void 0,
|
|
2790
|
+
username: updates.username ?? void 0,
|
|
2791
|
+
password: updates.password ?? void 0,
|
|
2792
|
+
login_instructions: updates.login_instructions ?? void 0,
|
|
2793
|
+
workspace: updates.workspace ?? void 0
|
|
2794
|
+
};
|
|
2795
|
+
const response = await updateCredentials({
|
|
2796
|
+
client: this.client,
|
|
2797
|
+
path: { project_id: projectId },
|
|
2798
|
+
headers,
|
|
2799
|
+
body
|
|
2800
|
+
});
|
|
2801
|
+
if (response.error) {
|
|
2802
|
+
throw new Error(`Failed to update credentials: ${JSON.stringify(response.error)}`);
|
|
2803
|
+
}
|
|
2804
|
+
return response.data;
|
|
2805
|
+
}
|
|
2806
|
+
/**
|
|
2807
|
+
* Test project credentials
|
|
2808
|
+
* @param projectId - Project ID
|
|
2809
|
+
* @returns Test result with success flag and optional message
|
|
2810
|
+
*/
|
|
2811
|
+
async testProjectCredentials(projectId) {
|
|
2812
|
+
const headers = await this.getHeaders();
|
|
2813
|
+
const response = await testCredentials({
|
|
2814
|
+
client: this.client,
|
|
2815
|
+
path: { project_id: projectId },
|
|
2816
|
+
headers
|
|
2817
|
+
});
|
|
2818
|
+
if (response.error) {
|
|
2819
|
+
throw new Error(`Failed to test credentials: ${JSON.stringify(response.error)}`);
|
|
2820
|
+
}
|
|
2821
|
+
return response.data;
|
|
2822
|
+
}
|
|
2823
|
+
/**
|
|
2824
|
+
* Delete project credentials
|
|
2825
|
+
* @param projectId - Project ID
|
|
2826
|
+
* @returns void
|
|
2827
|
+
*/
|
|
2828
|
+
async deleteProjectCredentials(projectId) {
|
|
2829
|
+
const headers = await this.getHeaders();
|
|
2830
|
+
const response = await deleteCredentials({
|
|
2831
|
+
client: this.client,
|
|
2832
|
+
path: { project_id: projectId },
|
|
2833
|
+
headers
|
|
2834
|
+
});
|
|
2835
|
+
if (response.error) {
|
|
2836
|
+
throw new Error(`Failed to delete credentials: ${JSON.stringify(response.error)}`);
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
// ============== Document Generation ==============
|
|
2840
|
+
/**
|
|
2841
|
+
* Generate mission output (documents, reports, etc.)
|
|
2842
|
+
* @param missionId - Mission UUID
|
|
2843
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
2844
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
2845
|
+
*/
|
|
2846
|
+
async generateMissionOutput(missionId, outputType, options) {
|
|
2847
|
+
const headers = await this.getHeaders();
|
|
2848
|
+
const response = await this.client.request({
|
|
2849
|
+
method: "POST",
|
|
2850
|
+
url: `/ocxp/mission/${missionId}/output`,
|
|
2851
|
+
headers,
|
|
2852
|
+
body: {
|
|
2853
|
+
output_type: outputType,
|
|
2854
|
+
doc_types: options?.doc_types,
|
|
2855
|
+
strategy: options?.strategy || "generate_all",
|
|
2856
|
+
session_id: options?.session_id,
|
|
2857
|
+
options: options?.options
|
|
2858
|
+
}
|
|
2859
|
+
});
|
|
2860
|
+
if (response.error) {
|
|
2861
|
+
throw new Error(`Failed to generate output: ${JSON.stringify(response.error)}`);
|
|
2862
|
+
}
|
|
2863
|
+
return response.data;
|
|
2864
|
+
}
|
|
2865
|
+
/**
|
|
2866
|
+
* Get output generation status
|
|
2867
|
+
* @param missionId - Mission UUID
|
|
2868
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
2869
|
+
*/
|
|
2870
|
+
async getMissionOutputStatus(missionId, outputType = "documents") {
|
|
2871
|
+
const headers = await this.getHeaders();
|
|
2872
|
+
const response = await this.client.request({
|
|
2873
|
+
method: "GET",
|
|
2874
|
+
url: `/ocxp/mission/${missionId}/output/status?output_type=${outputType}`,
|
|
2875
|
+
headers
|
|
2876
|
+
});
|
|
2877
|
+
if (response.error) {
|
|
2878
|
+
throw new Error(`Failed to get output status: ${JSON.stringify(response.error)}`);
|
|
2879
|
+
}
|
|
2880
|
+
return response.data;
|
|
2881
|
+
}
|
|
2622
2882
|
// ============== Namespaced Accessors ==============
|
|
2623
2883
|
_mission;
|
|
2624
2884
|
_project;
|
|
@@ -2676,13 +2936,61 @@ var OCXPClient = class {
|
|
|
2676
2936
|
return this._prototype;
|
|
2677
2937
|
}
|
|
2678
2938
|
};
|
|
2939
|
+
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2940
|
+
DocumentType2["IMPLEMENTATION_GUIDE"] = "implementation_guide";
|
|
2941
|
+
DocumentType2["PRD"] = "prd";
|
|
2942
|
+
DocumentType2["ARCHITECTURE_DECISIONS"] = "architecture_decisions";
|
|
2943
|
+
DocumentType2["DATABASE_SCHEMA"] = "database_schema";
|
|
2944
|
+
DocumentType2["DEPLOYMENT_GUIDE"] = "deployment_guide";
|
|
2945
|
+
DocumentType2["TESTING_STRATEGY"] = "testing_strategy";
|
|
2946
|
+
DocumentType2["API_REFERENCE"] = "api_reference";
|
|
2947
|
+
return DocumentType2;
|
|
2948
|
+
})(DocumentType || {});
|
|
2949
|
+
var DOCUMENT_TYPE_INFO = {
|
|
2950
|
+
["implementation_guide" /* IMPLEMENTATION_GUIDE */]: {
|
|
2951
|
+
name: "Implementation Guide",
|
|
2952
|
+
description: "Step-by-step development guide",
|
|
2953
|
+
icon: "book"
|
|
2954
|
+
},
|
|
2955
|
+
["prd" /* PRD */]: {
|
|
2956
|
+
name: "PRD",
|
|
2957
|
+
description: "Product requirements document",
|
|
2958
|
+
icon: "file-text"
|
|
2959
|
+
},
|
|
2960
|
+
["architecture_decisions" /* ARCHITECTURE_DECISIONS */]: {
|
|
2961
|
+
name: "Architecture Decisions",
|
|
2962
|
+
description: "ADRs and design rationale",
|
|
2963
|
+
icon: "layers"
|
|
2964
|
+
},
|
|
2965
|
+
["database_schema" /* DATABASE_SCHEMA */]: {
|
|
2966
|
+
name: "Database Schema",
|
|
2967
|
+
description: "Data model and schema design",
|
|
2968
|
+
icon: "database"
|
|
2969
|
+
},
|
|
2970
|
+
["deployment_guide" /* DEPLOYMENT_GUIDE */]: {
|
|
2971
|
+
name: "Deployment Guide",
|
|
2972
|
+
description: "Deployment and infrastructure setup",
|
|
2973
|
+
icon: "cloud"
|
|
2974
|
+
},
|
|
2975
|
+
["testing_strategy" /* TESTING_STRATEGY */]: {
|
|
2976
|
+
name: "Testing Strategy",
|
|
2977
|
+
description: "Test plan and coverage strategy",
|
|
2978
|
+
icon: "check-square"
|
|
2979
|
+
},
|
|
2980
|
+
["api_reference" /* API_REFERENCE */]: {
|
|
2981
|
+
name: "API Reference",
|
|
2982
|
+
description: "API endpoints and contracts",
|
|
2983
|
+
icon: "code"
|
|
2984
|
+
}
|
|
2985
|
+
};
|
|
2679
2986
|
var MissionNamespace = class {
|
|
2680
2987
|
constructor(client2) {
|
|
2681
2988
|
this.client = client2;
|
|
2682
2989
|
}
|
|
2683
2990
|
/**
|
|
2684
|
-
* List missions with optional filtering
|
|
2991
|
+
* List missions with optional filtering and pagination
|
|
2685
2992
|
* @example ocxp.mission.list({ status: 'active', limit: 10 })
|
|
2993
|
+
* @example ocxp.mission.list({ limit: 20, offset: 40, orderBy: 'created_at', orderDir: 'desc' })
|
|
2686
2994
|
*/
|
|
2687
2995
|
async list(options) {
|
|
2688
2996
|
return this.client.listMissions(options);
|
|
@@ -2754,6 +3062,38 @@ var MissionNamespace = class {
|
|
|
2754
3062
|
async tree(path, depth, includeVersions) {
|
|
2755
3063
|
return this.client.tree("mission", path, depth, includeVersions);
|
|
2756
3064
|
}
|
|
3065
|
+
/**
|
|
3066
|
+
* Generate mission output (documents, reports, etc.)
|
|
3067
|
+
* General endpoint for all output types using existing research.
|
|
3068
|
+
*
|
|
3069
|
+
* @param missionId - Mission UUID
|
|
3070
|
+
* @param outputType - Type of output: 'documents', 'report', 'summary', etc.
|
|
3071
|
+
* @param options - Output options (doc_types, strategy, etc.)
|
|
3072
|
+
* @returns Output response with session_id for tracking
|
|
3073
|
+
*
|
|
3074
|
+
* @example
|
|
3075
|
+
* await ocxp.mission.generateOutput('mission-id', 'documents', {
|
|
3076
|
+
* doc_types: ['implementation-guide', 'prd'],
|
|
3077
|
+
* strategy: 'generate_all'
|
|
3078
|
+
* })
|
|
3079
|
+
*/
|
|
3080
|
+
async generateOutput(missionId, outputType, options) {
|
|
3081
|
+
return this.client.generateMissionOutput(missionId, outputType, options);
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Get output generation status
|
|
3085
|
+
* Check progress and status of output generation.
|
|
3086
|
+
*
|
|
3087
|
+
* @param missionId - Mission UUID
|
|
3088
|
+
* @param outputType - Type of output to check (default: 'documents')
|
|
3089
|
+
* @returns Current output status with progress
|
|
3090
|
+
*
|
|
3091
|
+
* @example
|
|
3092
|
+
* const status = await ocxp.mission.getOutputStatus('mission-id', 'documents')
|
|
3093
|
+
*/
|
|
3094
|
+
async getOutputStatus(missionId, outputType = "documents") {
|
|
3095
|
+
return this.client.getMissionOutputStatus(missionId, outputType);
|
|
3096
|
+
}
|
|
2757
3097
|
};
|
|
2758
3098
|
var ProjectNamespace = class {
|
|
2759
3099
|
constructor(client2) {
|
|
@@ -3661,6 +4001,28 @@ var PaginationSchema = zod.z.object({
|
|
|
3661
4001
|
hasMore: zod.z.boolean(),
|
|
3662
4002
|
total: zod.z.number()
|
|
3663
4003
|
});
|
|
4004
|
+
var PaginationParamsSchema = zod.z.object({
|
|
4005
|
+
/** Items per page (default: 50, max: 100) */
|
|
4006
|
+
limit: zod.z.number().min(1).max(100).default(50),
|
|
4007
|
+
/** Skip first N items (for offset pagination) */
|
|
4008
|
+
offset: zod.z.number().min(0).default(0),
|
|
4009
|
+
/** Cursor token (for cursor pagination, alternative to offset) */
|
|
4010
|
+
cursor: zod.z.string().nullable().optional(),
|
|
4011
|
+
/** Sort field */
|
|
4012
|
+
orderBy: zod.z.string().optional(),
|
|
4013
|
+
/** Sort direction: asc | desc */
|
|
4014
|
+
orderDir: zod.z.enum(["asc", "desc"]).default("desc")
|
|
4015
|
+
});
|
|
4016
|
+
function createPaginatedResponseSchema(itemSchema) {
|
|
4017
|
+
return zod.z.object({
|
|
4018
|
+
items: zod.z.array(itemSchema),
|
|
4019
|
+
total: zod.z.number(),
|
|
4020
|
+
limit: zod.z.number(),
|
|
4021
|
+
offset: zod.z.number(),
|
|
4022
|
+
cursor: zod.z.string().nullable().optional(),
|
|
4023
|
+
hasMore: zod.z.boolean()
|
|
4024
|
+
});
|
|
4025
|
+
}
|
|
3664
4026
|
var ContentTypeSchema = zod.z.enum([
|
|
3665
4027
|
"mission",
|
|
3666
4028
|
"project",
|
|
@@ -4261,6 +4623,7 @@ exports.CreateProjectDataSchema = CreateProjectDataSchema;
|
|
|
4261
4623
|
exports.CreateProjectResponseSchema = CreateProjectResponseSchema;
|
|
4262
4624
|
exports.CreateSessionDataSchema = CreateSessionDataSchema;
|
|
4263
4625
|
exports.CreateSessionResponseSchema = CreateSessionResponseSchema;
|
|
4626
|
+
exports.DOCUMENT_TYPE_INFO = DOCUMENT_TYPE_INFO;
|
|
4264
4627
|
exports.DeleteDataSchema = DeleteDataSchema;
|
|
4265
4628
|
exports.DeleteProjectDataSchema = DeleteProjectDataSchema;
|
|
4266
4629
|
exports.DeleteProjectResponseSchema = DeleteProjectResponseSchema;
|
|
@@ -4268,6 +4631,7 @@ exports.DeleteResponseSchema = DeleteResponseSchema;
|
|
|
4268
4631
|
exports.DiscoveryDataSchema = DiscoveryDataSchema;
|
|
4269
4632
|
exports.DiscoveryEndpointSchema = DiscoveryEndpointSchema;
|
|
4270
4633
|
exports.DiscoveryResponseSchema = DiscoveryResponseSchema;
|
|
4634
|
+
exports.DocumentType = DocumentType;
|
|
4271
4635
|
exports.ErrorResponseSchema = ErrorResponseSchema;
|
|
4272
4636
|
exports.ForkSessionDataSchema = ForkSessionDataSchema;
|
|
4273
4637
|
exports.ForkSessionResponseSchema = ForkSessionResponseSchema;
|
|
@@ -4318,6 +4682,7 @@ exports.OCXPRateLimitError = OCXPRateLimitError;
|
|
|
4318
4682
|
exports.OCXPResponseSchema = OCXPResponseSchema;
|
|
4319
4683
|
exports.OCXPTimeoutError = OCXPTimeoutError;
|
|
4320
4684
|
exports.OCXPValidationError = OCXPValidationError;
|
|
4685
|
+
exports.PaginationParamsSchema = PaginationParamsSchema;
|
|
4321
4686
|
exports.PaginationSchema = PaginationSchema;
|
|
4322
4687
|
exports.PresignedUrlDataSchema = PresignedUrlDataSchema;
|
|
4323
4688
|
exports.PresignedUrlResponseSchema = PresignedUrlResponseSchema;
|
|
@@ -4381,25 +4746,31 @@ exports.acknowledgeMemo = acknowledgeMemo;
|
|
|
4381
4746
|
exports.addDatabase = addDatabase;
|
|
4382
4747
|
exports.addLinkedRepo = addLinkedRepo;
|
|
4383
4748
|
exports.addMission = addMission;
|
|
4749
|
+
exports.addTask = addTask;
|
|
4384
4750
|
exports.archiveSession = archiveSession;
|
|
4385
4751
|
exports.buildPath = buildPath;
|
|
4386
4752
|
exports.bulkDeleteContent = bulkDeleteContent;
|
|
4387
4753
|
exports.bulkReadContent = bulkReadContent;
|
|
4754
|
+
exports.bulkUpdateTasks = bulkUpdateTasks;
|
|
4388
4755
|
exports.bulkWriteContent = bulkWriteContent;
|
|
4389
4756
|
exports.createClient = createClient;
|
|
4390
4757
|
exports.createConfig = createConfig;
|
|
4391
4758
|
exports.createDatabase = createDatabase;
|
|
4392
4759
|
exports.createMemo = createMemo;
|
|
4393
4760
|
exports.createOCXPClient = createOCXPClient;
|
|
4761
|
+
exports.createPaginatedResponseSchema = createPaginatedResponseSchema;
|
|
4394
4762
|
exports.createPathService = createPathService;
|
|
4395
4763
|
exports.createProject = createProject;
|
|
4396
4764
|
exports.createResponseSchema = createResponseSchema;
|
|
4397
4765
|
exports.createWebSocketService = createWebSocketService;
|
|
4766
|
+
exports.createWorkflow = createWorkflow;
|
|
4398
4767
|
exports.deleteContent = deleteContent;
|
|
4399
4768
|
exports.deleteDatabase = deleteDatabase;
|
|
4400
4769
|
exports.deleteMemo = deleteMemo;
|
|
4401
4770
|
exports.deleteProject = deleteProject;
|
|
4402
4771
|
exports.deleteRepo = deleteRepo;
|
|
4772
|
+
exports.deleteTask = deleteTask;
|
|
4773
|
+
exports.deleteWorkflow = deleteWorkflow;
|
|
4403
4774
|
exports.downloadRepository = downloadRepository;
|
|
4404
4775
|
exports.forkSession = forkSession;
|
|
4405
4776
|
exports.getAuthConfig = getAuthConfig;
|
|
@@ -4423,6 +4794,8 @@ exports.getSchema = getSchema;
|
|
|
4423
4794
|
exports.getSessionMessages = getSessionMessages;
|
|
4424
4795
|
exports.getStoredVersions = getStoredVersions;
|
|
4425
4796
|
exports.getSyncStatus = getSyncStatus;
|
|
4797
|
+
exports.getTask = getTask;
|
|
4798
|
+
exports.getWorkflow = getWorkflow;
|
|
4426
4799
|
exports.githubCheckAccess = githubCheckAccess;
|
|
4427
4800
|
exports.githubGetContents = githubGetContents;
|
|
4428
4801
|
exports.githubListBranches = githubListBranches;
|
|
@@ -4446,6 +4819,8 @@ exports.listProjects = listProjects;
|
|
|
4446
4819
|
exports.listPrototypeChats = listPrototypeChats;
|
|
4447
4820
|
exports.listSessions = listSessions;
|
|
4448
4821
|
exports.listTables = listTables;
|
|
4822
|
+
exports.listTasks = listTasks;
|
|
4823
|
+
exports.listWorkflows = listWorkflows;
|
|
4449
4824
|
exports.listWorkspaces = listWorkspaces;
|
|
4450
4825
|
exports.lockContent = lockContent;
|
|
4451
4826
|
exports.login = login;
|
|
@@ -4470,6 +4845,7 @@ exports.safeParseWSMessage = safeParseWSMessage;
|
|
|
4470
4845
|
exports.searchContent = searchContent;
|
|
4471
4846
|
exports.setDefaultDatabase = setDefaultDatabase;
|
|
4472
4847
|
exports.setDefaultRepo = setDefaultRepo;
|
|
4848
|
+
exports.startWorkflow = startWorkflow;
|
|
4473
4849
|
exports.syncAllRepos = syncAllRepos;
|
|
4474
4850
|
exports.syncPrototypeChat = syncPrototypeChat;
|
|
4475
4851
|
exports.syncPrototypeChatAsync = syncPrototypeChatAsync;
|
|
@@ -4481,6 +4857,7 @@ exports.unlockContent = unlockContent;
|
|
|
4481
4857
|
exports.updateDatabase = updateDatabase;
|
|
4482
4858
|
exports.updateProject = updateProject;
|
|
4483
4859
|
exports.updateSessionMetadata = updateSessionMetadata;
|
|
4860
|
+
exports.updateTask = updateTask;
|
|
4484
4861
|
exports.writeContent = writeContent;
|
|
4485
4862
|
//# sourceMappingURL=index.cjs.map
|
|
4486
4863
|
//# sourceMappingURL=index.cjs.map
|