Skip to content

Commit 7008028

Browse files
authored
Merge branch 'ohcnetwork:develop' into develop
2 parents 53fd247 + dfa2500 commit 7008028

31 files changed

Lines changed: 727 additions & 255 deletions

File tree

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
description: GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing
3+
infer: false
4+
---
5+
6+
# GitHub Agentic Workflows Agent
7+
8+
This agent helps you work with **GitHub Agentic Workflows (gh-aw)**, a CLI extension for creating AI-powered workflows in natural language using markdown files.
9+
10+
## What This Agent Does
11+
12+
This is a **dispatcher agent** that routes your request to the appropriate specialized prompt based on your task:
13+
14+
- **Creating new workflows**: Routes to `create` prompt
15+
- **Updating existing workflows**: Routes to `update` prompt
16+
- **Debugging workflows**: Routes to `debug` prompt
17+
- **Upgrading workflows**: Routes to `upgrade-agentic-workflows` prompt
18+
- **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
19+
20+
Workflows may optionally include:
21+
22+
- **Project tracking / monitoring** (GitHub Projects updates, status reporting)
23+
- **Orchestration / coordination** (one workflow assigning agents or dispatching and coordinating other workflows)
24+
25+
## Files This Applies To
26+
27+
- Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
28+
- Workflow lock files: `.github/workflows/*.lock.yml`
29+
- Shared components: `.github/workflows/shared/*.md`
30+
- Configuration: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/github-agentic-workflows.md
31+
32+
## Problems This Solves
33+
34+
- **Workflow Creation**: Design secure, validated agentic workflows with proper triggers, tools, and permissions
35+
- **Workflow Debugging**: Analyze logs, identify missing tools, investigate failures, and fix configuration issues
36+
- **Version Upgrades**: Migrate workflows to new gh-aw versions, apply codemods, fix breaking changes
37+
- **Component Design**: Create reusable shared workflow components that wrap MCP servers
38+
39+
## How to Use
40+
41+
When you interact with this agent, it will:
42+
43+
1. **Understand your intent** - Determine what kind of task you're trying to accomplish
44+
2. **Route to the right prompt** - Load the specialized prompt file for your task
45+
3. **Execute the task** - Follow the detailed instructions in the loaded prompt
46+
47+
## Available Prompts
48+
49+
### Create New Workflow
50+
**Load when**: User wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet
51+
52+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/create-agentic-workflow.md
53+
54+
**Use cases**:
55+
- "Create a workflow that triages issues"
56+
- "I need a workflow to label pull requests"
57+
- "Design a weekly research automation"
58+
59+
### Update Existing Workflow
60+
**Load when**: User wants to modify, improve, or refactor an existing workflow
61+
62+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/update-agentic-workflow.md
63+
64+
**Use cases**:
65+
- "Add web-fetch tool to the issue-classifier workflow"
66+
- "Update the PR reviewer to use discussions instead of issues"
67+
- "Improve the prompt for the weekly-research workflow"
68+
69+
### Debug Workflow
70+
**Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
71+
72+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/debug-agentic-workflow.md
73+
74+
**Use cases**:
75+
- "Why is this workflow failing?"
76+
- "Analyze the logs for workflow X"
77+
- "Investigate missing tool calls in run #12345"
78+
79+
### Upgrade Agentic Workflows
80+
**Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
81+
82+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/upgrade-agentic-workflows.md
83+
84+
**Use cases**:
85+
- "Upgrade all workflows to the latest version"
86+
- "Fix deprecated fields in workflows"
87+
- "Apply breaking changes from the new release"
88+
89+
### Create Shared Agentic Workflow
90+
**Load when**: User wants to create a reusable workflow component or wrap an MCP server
91+
92+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/create-shared-agentic-workflow.md
93+
94+
**Use cases**:
95+
- "Create a shared component for Notion integration"
96+
- "Wrap the Slack MCP server as a reusable component"
97+
- "Design a shared workflow for database queries"
98+
99+
### Orchestration and Delegation
100+
101+
**Load when**: Creating or updating workflows that coordinate multiple agents or dispatch work to other workflows
102+
103+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/orchestration.md
104+
105+
**Use cases**:
106+
- Assigning work to AI coding agents
107+
- Dispatching specialized worker workflows
108+
- Using correlation IDs for tracking
109+
- Orchestration design patterns
110+
111+
### GitHub Projects Integration
112+
113+
**Load when**: Creating or updating workflows that manage GitHub Projects v2
114+
115+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/projects.md
116+
117+
**Use cases**:
118+
- Tracking items and fields with update-project
119+
- Posting periodic run summaries
120+
- Creating new projects
121+
- Projects v2 authentication and configuration
122+
123+
## Instructions
124+
125+
When a user interacts with you:
126+
127+
1. **Identify the task type** from the user's request
128+
2. **Load the appropriate prompt** from the GitHub repository URLs listed above
129+
3. **Follow the loaded prompt's instructions** exactly
130+
4. **If uncertain**, ask clarifying questions to determine the right prompt
131+
132+
## Quick Reference
133+
134+
```bash
135+
# Initialize repository for agentic workflows
136+
gh aw init
137+
138+
# Compile workflows
139+
gh aw compile [workflow-name]
140+
141+
# Debug workflow runs
142+
gh aw logs [workflow-name]
143+
gh aw audit <run-id>
144+
145+
# Upgrade workflows
146+
gh aw fix --write
147+
gh aw compile --validate
148+
```
149+
150+
## Key Features of gh-aw
151+
152+
- **Natural Language Workflows**: Write workflows in markdown with YAML frontmatter
153+
- **AI Engine Support**: Copilot, Claude, Codex, or custom engines
154+
- **MCP Server Integration**: Connect to Model Context Protocol servers for tools
155+
- **Safe Outputs**: Structured communication between AI and GitHub API
156+
- **Strict Mode**: Security-first validation and sandboxing
157+
- **Shared Components**: Reusable workflow building blocks
158+
- **Repo Memory**: Persistent git-backed storage for agents
159+
- **Sandboxed Execution**: All workflows run in the Agent Workflow Firewall (AWF) sandbox, enabling full `bash` and `edit` tools by default
160+
161+
## Important Notes
162+
163+
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.42.14/.github/aw/github-agentic-workflows.md for complete documentation
164+
- Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
165+
- Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
166+
- **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
167+
- Follow security best practices: minimal permissions, explicit network access, no template injection

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"repo": "github/gh-aw/actions/setup",
1010
"version": "v0.42.14",
1111
"sha": "2f705cfe9b68ab64d9ac2ac92faee9b7c7890c0d"
12+
},
13+
"github/gh-aw/actions/setup@v0.45.7": {
14+
"repo": "github/gh-aw/actions/setup",
15+
"version": "v0.45.7",
16+
"sha": "5d8900eb6f6230c9d41a3c30af320150a2361285"
1217
}
1318
}
1419
}

public/config/plots.json

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,26 @@
7272
"display": "FiO2"
7373
}
7474
]
75+
},
76+
{
77+
"title": "Girth",
78+
"codes": [
79+
{
80+
"code": "8280-0",
81+
"system": "http://loinc.org",
82+
"display": "Girth"
83+
}
84+
]
85+
},
86+
{
87+
"title": "Body weight",
88+
"codes": [
89+
{
90+
"code": "29463-7",
91+
"system": "http://loinc.org",
92+
"display": "Weight"
93+
}
94+
]
7595
}
7696
]
7797
},
@@ -272,7 +292,7 @@
272292
"name": "Nutrition",
273293
"groups": [
274294
{
275-
"title": "Fluid intake intravascular Measured",
295+
"title": "Fluid Intake Intravascular Measured",
276296
"codes": [
277297
{
278298
"code": "8975-5",
@@ -282,7 +302,7 @@
282302
]
283303
},
284304
{
285-
"title": "Fluid intake oral Measured",
305+
"title": "Fluid Intake Oral Measured",
286306
"codes": [
287307
{
288308
"code": "9000-1",
@@ -292,7 +312,7 @@
292312
]
293313
},
294314
{
295-
"title": "Fluid output wound drain",
315+
"title": "Fluid Output Wound Drain",
296316
"codes": [
297317
{
298318
"code": "9203-1",
@@ -302,7 +322,17 @@
302322
]
303323
},
304324
{
305-
"title": "Urine output",
325+
"title": "Fluid Output Gastric tube",
326+
"codes": [
327+
{
328+
"code": "9149-6",
329+
"system": "http://loinc.org",
330+
"display": "Fluid output gastric tube"
331+
}
332+
]
333+
},
334+
{
335+
"title": "Urine Output",
306336
"codes": [
307337
{
308338
"code": "9187-6",
@@ -312,7 +342,7 @@
312342
]
313343
},
314344
{
315-
"title": "Fluid intake total Measured",
345+
"title": "Fluid Intake Total Measured",
316346
"codes": [
317347
{
318348
"code": "9103-3",
@@ -322,7 +352,7 @@
322352
]
323353
},
324354
{
325-
"title": "Fluid output total Measured",
355+
"title": "Fluid Output Total Measured",
326356
"codes": [
327357
{
328358
"code": "9257-7",
@@ -346,6 +376,16 @@
346376
"display": "Dialysis Fluid Balance"
347377
}
348378
]
379+
},
380+
{
381+
"title": "Transfusion",
382+
"codes": [
383+
{
384+
"code": "10415-8",
385+
"system": "http://loinc.org",
386+
"display": "Transfusion"
387+
}
388+
]
349389
}
350390
]
351391
}

public/locale/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,6 @@
708708
"appointment_rescheduled": "Appointment has been rescheduled!",
709709
"appointment_rescheduled_successfully": "Appointment rescheduled successfully",
710710
"appointment_slot": "Appointment Slot",
711-
"appointment_tags": "Appointment Tags",
712711
"appointment_time": "Appointment Time",
713712
"appointment_type": "Appointment Type",
714713
"appointments": "Appointments",
@@ -2059,6 +2058,7 @@
20592058
"enable_when__any": "Any one or more of the conditions must be met",
20602059
"enable_when_conditions": "Enable when conditions",
20612060
"enabled": "Enabled",
2061+
"include_filters": "Include filters",
20622062
"enabled_only_for_partially_dispensed": "Enabled only for partially dispensed medications",
20632063
"encounter": "Encounter",
20642064
"encounter_actions": "Encounter Actions",
@@ -2597,6 +2597,7 @@
25972597
"get_current_location": "Get Current Location",
25982598
"get_tests": "Get Tests",
25992599
"getting_location": "Getting Location...",
2600+
"global": "Global",
26002601
"go_back": "Go Back",
26012602
"go_to": "Go to",
26022603
"go_to_account": "Go to account",
@@ -3921,6 +3922,7 @@
39213922
"outstanding": "Outstanding",
39223923
"outstanding_balance": "Outstanding Balance",
39233924
"overpaid_amount": "Overpaid amount to be refunded",
3925+
"override_with_local_value": "Override with local value",
39243926
"overview": "Overview",
39253927
"oxygen_information": "Oxygen Information",
39263928
"pack_qty": "Pack Qty",
@@ -4450,7 +4452,9 @@
44504452
"questionnaire_one": "Questionnaire",
44514453
"questionnaire_other": "Questionnaires",
44524454
"questionnaire_question_dependent": "This question is used in following question(s) as an enable when condition: ",
4455+
"questionnaire_response_entered_in_error_warning": "This action cannot be undone. The questionnaire response will be marked as entered in error and will appear as invalid in the system.",
44534456
"questionnaire_response_logs": "Questionnaire Response Logs",
4457+
"questionnaire_response_marked_as_entered_in_error": "Questionnaire response marked as entered in error",
44544458
"questionnaire_responses": "Questionnaire Responses",
44554459
"questionnaire_service_request_no_encounter": "Service Requests cannot be recorded without an active encounter",
44564460
"questionnaire_submission_failed": "Failed to submit questionnaire",
@@ -6085,6 +6089,7 @@
60856089
"use_backup_code": "Use a backup code",
60866090
"use_different_emergency_contact_number": "Use a different emergency contact number",
60876091
"use_existing_consent": "Use Existing Consent",
6092+
"use_facility_global_value": "Use facility global value",
60886093
"use_help": "Select the context in which this identifier is used (e.g., usual, official, temp, etc.)",
60896094
"use_only_if_patient_has_passed_away_before_registration": "Use only if the patient has passed away before registration.",
60906095
"useful_for_reference_only": "Useful for reference only",

src/components/Billing/Invoice/EditInvoiceTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const priceComponentSchema = z.object({
8787
factor: zodDecimal({ min: 0, max: 100 }).optional().nullable(),
8888
amount: zodDecimal({ min: 0 }).optional().nullable(),
8989
conditions: z.array(conditionSchema).optional(),
90+
global_component: z.boolean().optional(),
9091
});
9192

9293
const chargeItemBaseSchema = z.object({

0 commit comments

Comments
 (0)