You've already forked agentic-coding-workflow
修改
This commit is contained in:
@@ -71,7 +71,7 @@ func (f *fakeEventRepo) ListEnabledAgentKinds(context.Context) ([]*acp.AgentKind
|
||||
func (f *fakeEventRepo) UpdateAgentKind(context.Context, *acp.AgentKind) (*acp.AgentKind, error) {
|
||||
panic("n/a")
|
||||
}
|
||||
func (f *fakeEventRepo) DeleteAgentKind(context.Context, uuid.UUID) error { panic("n/a") }
|
||||
func (f *fakeEventRepo) DeleteAgentKind(context.Context, uuid.UUID) error { panic("n/a") }
|
||||
func (f *fakeEventRepo) CountAgentKindUsage(context.Context, uuid.UUID) (int64, error) {
|
||||
panic("n/a")
|
||||
}
|
||||
@@ -149,7 +149,7 @@ func newRelayTestRig(t *testing.T) *relayTestRig {
|
||||
|
||||
repo := &fakeEventRepo{}
|
||||
fs := handlers.NewFsHandler()
|
||||
perm := handlers.NewPermissionHandler()
|
||||
perm := handlers.NewPermissionHandler(nil)
|
||||
|
||||
cwd := t.TempDir()
|
||||
sess := handlers.SessionContext{
|
||||
@@ -435,3 +435,26 @@ drain:
|
||||
assert.True(t, sawSlowDisc || sawClose,
|
||||
"expected slow_consumer_disconnect envelope or closed channel after flood")
|
||||
}
|
||||
|
||||
// ===== PermissionRequest(权限审批框架,测试桩) =====
|
||||
func (f *fakeEventRepo) InsertPermissionRequest(context.Context, *acp.PermissionRequest) (*acp.PermissionRequest, error) {
|
||||
return &acp.PermissionRequest{}, nil
|
||||
}
|
||||
func (f *fakeEventRepo) GetPermissionRequestByID(context.Context, uuid.UUID) (*acp.PermissionRequest, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (f *fakeEventRepo) ListPendingPermissionRequestsBySession(context.Context, uuid.UUID) ([]*acp.PermissionRequest, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (f *fakeEventRepo) ListPendingPermissionRequestsByUser(context.Context, uuid.UUID) ([]*acp.PermissionRequest, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (f *fakeEventRepo) DecidePermissionRequest(context.Context, uuid.UUID, acp.PermissionStatus, *string, *uuid.UUID) (*acp.PermissionRequest, bool, error) {
|
||||
return nil, false, nil
|
||||
}
|
||||
func (f *fakeEventRepo) ExpirePendingPermissionRequestsBySession(context.Context, uuid.UUID) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
func (f *fakeEventRepo) ExpireStalePermissionRequests(context.Context, time.Time) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user