这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4e714cd
Pending -> Succeeded state with MCP Tool, no approval
balanceiskey Mar 25, 2025
5a20967
Restore passing test w/o HL call implementation
balanceiskey Mar 25, 2025
9517d14
Fix date bug issue; add callid handling
balanceiskey Mar 26, 2025
c21f4ce
Working approve/reject flow
balanceiskey Mar 30, 2025
6986b59
Allow passing in CallID as cli arg
balanceiskey Mar 31, 2025
d74d9b9
Transition to distinct ReadyToExecute/Rejected trtc states
balanceiskey Mar 31, 2025
680100a
Adjust handling of updating trtc status
balanceiskey Mar 31, 2025
722cb0d
Improve readability of Reconcile flow
balanceiskey Mar 31, 2025
111c615
Restore post approval test
balanceiskey Mar 31, 2025
d94dc75
Interface/Impl renaming party
balanceiskey Mar 31, 2025
a8ee2ed
Managed potential failed function_call status GET
balanceiskey Mar 31, 2025
7d34100
Approval flow check adjustment
balanceiskey Mar 31, 2025
f8249b3
Move play file
balanceiskey Mar 31, 2025
76522e3
HumanLayerCallId -> ExternalCallID
balanceiskey Mar 31, 2025
344ed0e
README updates and deepCopying a bit more
balanceiskey Mar 31, 2025
b225322
readme draft
dexhorthy Mar 31, 2025
513dc1c
do the refactor
dexhorthy Mar 31, 2025
1973be3
Merge pull request #1 from dexhorthy/approve-reject-readme
balanceiskey Apr 1, 2025
4875893
Light README touches mostly
balanceiskey Apr 1, 2025
af73f37
ChannelType -> Type
balanceiskey Apr 1, 2025
e3377a4
Shorten call IDs being sent to HumanLayer
balanceiskey Apr 1, 2025
5ac7f0c
Updated docs and sample
balanceiskey Apr 1, 2025
258fb35
Get contactchannel type under an enum
balanceiskey Apr 1, 2025
414eab8
Add named return arguments for clarity
balanceiskey Apr 1, 2025
b66b9fb
code review tweaks
balanceiskey Apr 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,75 @@ Alternatively, clean up components individually:
- Ensure the PROJECT file contains entries for all resources before running `make manifests`
- Follow the detailed guidance in the [Kubebuilder Guide](/kubechain/docs/kubebuilder-guide.md)

### Kubernetes Resource Design

#### Don't use "config" in field names:

Bad:

```
spec:
slackConfig:
#...
emailConfig:
#...
```

Good:

```
spec:
slack:
# ...
email:
# ...
```

#### Prefer nil-able sub-objects over "type" fields:

This is more guidelines than rules, just consider it in cases when you a Resource that is a union type. There's
no great answer here because of how Go handles unions. (maybe the state-of-the-art has progressed since the last time I checked) -- dex

Bad:

```
spec:
type: slack
slack:
channelOrUserID: C1234567890
```

Good:

```
spec:
slack:
channelOrUserID: C1234567890
```

In code, instead of

```
switch (resource.Spec.Type) {
case "slack":
// ...
case "email":
// ...
}
```

check which object is non-nil and use that:

```
if resource.Spec.Slack != nil {
// ...
} else if resource.Spec.Email != nil {
// ...
} else if {
// ...
}
```

### Markdown
- When writing markdown code blocks, do not indent the block, just use backticks to offset the code

Expand Down
Loading