@digipair/skill-codex 0.99.0
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/index.cjs.d.ts +1 -0
- package/index.cjs.js +28116 -0
- package/index.d.ts +1 -0
- package/index.esm.js +28094 -0
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/alias.interface.d.ts +9 -0
- package/libs/engine/src/lib/engine.d.ts +13 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
- package/libs/skill-codex/src/index.d.ts +1 -0
- package/libs/skill-codex/src/lib/skill-codex.d.ts +2 -0
- package/package.json +12 -0
- package/schema.fr.json +102 -0
- package/schema.json +106 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PinsSettings } from './pins-settings.interface';
|
|
2
|
+
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS' | 'LOGGER';
|
|
3
|
+
export declare const config: {
|
|
4
|
+
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
|
+
log: (level: string, path: string, message: string, context: any, data?: any) => any;
|
|
6
|
+
};
|
|
7
|
+
export declare const applyTemplate: (value: any, context: any) => any;
|
|
8
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, path?: string) => Promise<any>;
|
|
9
|
+
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
10
|
+
import: boolean;
|
|
11
|
+
}) => Promise<Element | void>;
|
|
12
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PinsSettings {
|
|
2
|
+
library: string;
|
|
3
|
+
element: string;
|
|
4
|
+
properties?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
conditions?: {
|
|
8
|
+
if?: boolean;
|
|
9
|
+
each?: any[];
|
|
10
|
+
};
|
|
11
|
+
pins?: PinsSettings[];
|
|
12
|
+
events?: {
|
|
13
|
+
[key: string]: PinsSettings[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/skill-codex';
|
package/package.json
ADDED
package/schema.fr.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "@digipair/skill-codex",
|
|
5
|
+
"summary": "Intégration OpenAI Codex CLI",
|
|
6
|
+
"description": "Cette skill permet d'exécuter des prompts en utilisant le CLI OpenAI Codex",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"x-icon": "🤖"
|
|
9
|
+
},
|
|
10
|
+
"paths": {
|
|
11
|
+
"/runPrompt": {
|
|
12
|
+
"post": {
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
16
|
+
"summary": "Exécuter un prompt Codex",
|
|
17
|
+
"description": "Exécute un prompt en utilisant le CLI Codex local et retourne le résultat",
|
|
18
|
+
"parameters": [
|
|
19
|
+
{
|
|
20
|
+
"name": "prompt",
|
|
21
|
+
"summary": "Prompt",
|
|
22
|
+
"required": true,
|
|
23
|
+
"description": "Le prompt à envoyer à Codex",
|
|
24
|
+
"schema": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "sandbox",
|
|
30
|
+
"summary": "Mode sandbox",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Mode sandbox pour l'exécution de Codex (par défaut 'read-only')",
|
|
33
|
+
"schema": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["read-only", "workspace-write", "danger-full-access"]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "cwd",
|
|
40
|
+
"summary": "Répertoire de travail",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": "Répertoire de travail pour l'exécution de Codex (par défaut process.cwd() + '/factory/digipairs')",
|
|
43
|
+
"schema": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "timeoutMs",
|
|
49
|
+
"summary": "Timeout",
|
|
50
|
+
"required": false,
|
|
51
|
+
"description": "Timeout en millisecondes",
|
|
52
|
+
"schema": {
|
|
53
|
+
"type": "number"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "onStdout",
|
|
58
|
+
"summary": "Callback stdout",
|
|
59
|
+
"required": false,
|
|
60
|
+
"description": "Actions à exécuter lors de la réception de données stdout",
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "onAction",
|
|
70
|
+
"summary": "Callback action",
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": "Actions à exécuter lors de la réception de données d'action",
|
|
73
|
+
"schema": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"x-events": [],
|
|
82
|
+
"responses": {
|
|
83
|
+
"200": {
|
|
84
|
+
"description": "Résultat de l'exécution Codex",
|
|
85
|
+
"content": {
|
|
86
|
+
"application/json": {
|
|
87
|
+
"schema": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "La sortie de l'exécution du CLI Codex"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"components": {
|
|
99
|
+
"schemas": {}
|
|
100
|
+
},
|
|
101
|
+
"x-scene-blocks": {}
|
|
102
|
+
}
|
package/schema.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "@digipair/skill-codex",
|
|
5
|
+
"summary": "OpenAI Codex CLI integration",
|
|
6
|
+
"description": "This skill allows executing prompts using the OpenAI Codex CLI",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"x-icon": "🤖"
|
|
9
|
+
},
|
|
10
|
+
"paths": {
|
|
11
|
+
"/runPrompt": {
|
|
12
|
+
"post": {
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
16
|
+
"summary": "Execute Codex prompt",
|
|
17
|
+
"description": "Executes a prompt using the local Codex CLI and returns the result",
|
|
18
|
+
"parameters": [
|
|
19
|
+
{
|
|
20
|
+
"name": "prompt",
|
|
21
|
+
"summary": "Prompt",
|
|
22
|
+
"required": true,
|
|
23
|
+
"description": "The prompt to send to Codex",
|
|
24
|
+
"schema": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "sandbox",
|
|
30
|
+
"summary": "Sandbox mode",
|
|
31
|
+
"required": false,
|
|
32
|
+
"description": "Sandbox mode for Codex execution (defaults to 'read-only')",
|
|
33
|
+
"schema": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"read-only",
|
|
37
|
+
"workspace-write",
|
|
38
|
+
"danger-full-access"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "cwd",
|
|
44
|
+
"summary": "Working directory",
|
|
45
|
+
"required": false,
|
|
46
|
+
"description": "Working directory for Codex execution (defaults to process.cwd() + '/factory/digipairs')",
|
|
47
|
+
"schema": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "timeoutMs",
|
|
53
|
+
"summary": "Timeout",
|
|
54
|
+
"required": false,
|
|
55
|
+
"description": "Timeout in milliseconds",
|
|
56
|
+
"schema": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "onStdout",
|
|
62
|
+
"summary": "On stdout",
|
|
63
|
+
"required": false,
|
|
64
|
+
"description": "Actions to execute when receiving stdout data",
|
|
65
|
+
"schema": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "onAction",
|
|
74
|
+
"summary": "On action",
|
|
75
|
+
"required": false,
|
|
76
|
+
"description": "Actions to execute when receiving action data",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"x-events": [],
|
|
86
|
+
"responses": {
|
|
87
|
+
"200": {
|
|
88
|
+
"description": "Codex execution result",
|
|
89
|
+
"content": {
|
|
90
|
+
"application/json": {
|
|
91
|
+
"schema": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "The output from the Codex CLI execution"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"components": {
|
|
103
|
+
"schemas": {}
|
|
104
|
+
},
|
|
105
|
+
"x-scene-blocks": {}
|
|
106
|
+
}
|