feat(agents): 新增云端智能体入口与草稿编辑

This commit is contained in:
2026-09-10 16:00:37 +08:00
parent 927a85fa22
commit 46fbae9dec
21 changed files with 921 additions and 17 deletions

View File

@@ -25,6 +25,7 @@ function resetAuthStore() {
programming: true,
design: true,
robot: true,
cloud_agents: true,
},
});
}
@@ -88,6 +89,7 @@ describe('auth store', () => {
programming: true,
design: false,
robot: false,
cloud_agents: true,
},
});
@@ -128,6 +130,7 @@ describe('auth store', () => {
programming: true,
design: false,
robot: false,
cloud_agents: true,
});
expect(window.localStorage.getItem('niancode-auth')).not.toContain(
'must-not-return-to-renderer-storage',
@@ -177,6 +180,7 @@ describe('auth store', () => {
programming: true,
design: true,
robot: false,
cloud_agents: true,
},
});
});
@@ -214,6 +218,7 @@ describe('auth store', () => {
programming: true,
design: true,
robot: true,
cloud_agents: true,
},
});
});
@@ -257,6 +262,7 @@ describe('auth store', () => {
programming: true,
design: false,
robot: true,
cloud_agents: true,
});
});
@@ -310,6 +316,7 @@ describe('auth store', () => {
programming: true,
design: false,
robot: true,
cloud_agents: true,
},
});
expect(useAuthStore.getState().isAuthenticated()).toBe(true);
@@ -416,6 +423,7 @@ describe('auth store', () => {
programming: true,
design: false,
robot: true,
cloud_agents: true,
},
user: {
username: 'zhangsan',
@@ -438,6 +446,7 @@ describe('auth store', () => {
programming: true,
design: true,
robot: true,
cloud_agents: true,
},
});
});
@@ -480,6 +489,7 @@ describe('auth store', () => {
programming: true,
design: true,
robot: true,
cloud_agents: true,
},
});
});
@@ -943,6 +953,7 @@ describe('auth store', () => {
programming: true,
design: true,
robot: true,
cloud_agents: true,
},
});
});