Setting the file. One moment. SSL · Jqschema · github/gh-aw · Skills DocsRaw file
ssl.json
JSON·97 lines·4 KB
: [
"jq"
,
"jqschema.sh"
],
10 "control_flow_features": ["conditional", "sequential"],
11 "entry_scene": "scene_prepare",
12 "subscene_refs": []
13 },
14 "scenes": [
15 {
16 "id": "scene_prepare",
17 "type": "PREPARE",
18 "goal": "Install jqschema.sh script into the /tmp working directory",
19 "entry_condition": "$GITHUB_WORKSPACE is set and jqschema.sh exists in the skill directory",
20 "exit_condition": "/tmp/gh-aw/jqschema.sh is executable",
21 "next_scene_rules": [
22 { "condition": "setup successful", "target": "scene_acquire" },
23 { "condition": "setup failed", "target": "END_FAIL" }
24 ],
25 "inputs": ["$GITHUB_WORKSPACE"],
26 "outputs": ["$jqschema_bin"],
27 "entry_logic_step": "step_prepare_mkdir"
28 },
29 {
30 "id": "scene_acquire",
31 "type": "ACQUIRE",
32 "goal": "Receive JSON input to analyze",
33 "entry_condition": "$jqschema_bin is available",
34 "exit_condition": "$json_input is available as a processable stream",
35 "next_scene_rules": [{ "condition": "input available", "target": "scene_act" }],
36 "inputs": ["$json_input"],
37 "outputs": ["$json_input"],
38 "entry_logic_step": "step_acquire_receive"
39 },
40 {
41 "id": "scene_act",
42 "type": "ACT",
43 "goal": "Execute jqschema.sh to derive structural schema from $json_input",
44 "entry_condition": "$json_input and $jqschema_bin are ready",
45 "exit_condition": "$schema_output is produced",
46 "next_scene_rules": [
47 { "condition": "execution successful", "target": "END_SUCCESS" },
48 { "condition": "jq execution error", "target": "END_FAIL" }
49 ],
50 "inputs": ["$json_input", "$jqschema_bin"],
51 "outputs": ["$schema_output"],
52 "entry_logic_step": "step_act_run"
53 }
54 ],
55 "logic_steps": [
56 {
57 "id": "step_prepare_mkdir",
58 "scene_id": "scene_prepare",
59 "action_type": "CALL_TOOL",
60 "resource_scope": "LOCAL_FS",
61 "description": "Create /tmp/gh-aw directory if it does not exist",
62 "inputs": { "path": "/tmp/gh-aw" },
63 "outputs": {},
64 "next": "step_prepare_copy"
65 },
66 {
67 "id": "step_prepare_copy",
68 "scene_id": "scene_prepare",
69 "action_type": "CALL_TOOL",
70 "resource_scope": "LOCAL_FS",
71 "description": "Copy jqschema.sh from $GITHUB_WORKSPACE/.github/skills/jqschema/ to /tmp/gh-aw/ and set executable permissions",
72 "inputs": { "source": "$GITHUB_WORKSPACE/.github/skills/jqschema/jqschema.sh", "dest": "/tmp/gh-aw/jqschema.sh" },
73 "outputs": { "bin": "$jqschema_bin" },
74 "next": "YIELD_SUCCESS"
75 },
76 {
77 "id": "step_acquire_receive",
78 "scene_id": "scene_acquire",
79 "action_type": "READ",
80 "resource_scope": "PROCESS",
81 "description": "Receive JSON data as stdin or from a file path, binding the result to $json_input",
82 "inputs": { "data": "$json_input" },
83 "outputs": { "data": "$json_input" },
84 "next": "YIELD_SUCCESS"
85 },
86 {
87 "id": "step_act_run",
88 "scene_id": "scene_act",
89 "action_type": "CALL_TOOL",
90 "resource_scope": "PROCESS",
91 "description": "Pipe $json_input through $jqschema_bin to produce a compact structural schema that replaces values with type names",
92 "inputs": { "json": "$json_input", "bin": "$jqschema_bin" },
93 "outputs": { "schema": "$schema_output" },
94 "next": "YIELD_SUCCESS"
95 }
96 ]
97}