Skip to content

Releases: molanp/mcsmapi

0.1.8

15 Jan 13:45

Choose a tag to compare

What's Changed

  • refactor(core): Changed the way the main operation class is accessed to a property, added scheduled task management by @molanp in #18
  • fix(daemon): Improved the node system information model definition
  • refactor(instance): Optimized instance information retrieval logic

BREAK CHANGE

The previous calls like mcsm.daemon() and mcsm.instance() need to be changed to class properties like mcsm.daemon and mcsm.instance.

Supports MCSManager version 10.11.0


What's Changed

  • refactor(core): 主操作类获取方式改为属性,新增计划任务管理 by @molanp in #18
  • fix(daemon): 改进节点系统信息模型定义
  • refactor(instance): 优化实例信息获取逻辑

BREAK CHANGE

原来的mcsm.daemon()、mcsm.instance()等调用方式需要改为mcsm.daemon、mcsm.instance等类属性

支持 MCSManager 版本10.11.0

Full Changelog: 0.1.7...0.1.8

0.1.8.b4

06 Oct 08:47

Choose a tag to compare

feat(instance): 添加基础端口配置字段

InstanceConfig 模型中新增 basePort 字段(适用于启用了Docker容器化的实例),用于分配起始端口。
每次新增实例时,该端口会递增分配。

同时更新项目版本号从 0.1.8.b3 到 0.1.8.b4

此次变更疑似MCSM代码错误,该新增字段的位置似乎并不正确

Full Changelog: 0.1.8.b3...0.1.8.b4

0.1.8.b3

07 Sep 06:29

Choose a tag to compare

refactor(mcsmapi): 重构用户实例信息模型并更新版本号

  • 移除了未使用的 UserInstancesList 类
  • 新增了 UserInstances 类用于表示用户实例信息
  • 更新了 UserModel 和 UserConfig 中的实例列表类型
  • 将版本号从 0.1.8.b2 升级到 0.1.8.b3

refactor(user): 合并重复的用户模型

  • 移除 UserConfig 模型,直接使用 UserModel 作为用户信息模型
  • 更新 User 类中的 update 方法,使用 UserModel 替代 UserConfig
  • 调整 UserModel 字段顺序,将常用字段放在前面
  • 为 UserModel 字段添加默认值,简化实例化过程

Full Changelog: 0.1.8.b2...0.1.8.b3

0.1.8.b2

07 Sep 04:49

Choose a tag to compare

BREAK CHANGE

refactor(mcsmapi): 重构Daemon相关API及模型

  • 支持新版限流参数
  • 修改Daemon类中的方法名称,以更准确地反映其功能
  • 新增Daemon信息获取方法,包括配置、状态和系统信息
  • 更新相关模型以适应新的API结构
  • 优化模型定义,移除不必要的字段和方法

refactor(mcsmapi/models/file.py): 重构 FileItem 和 FileList 类

  • 更新了 FileItem 类的文档注释,统一参数和返回值的描述方式
  • 为 FileList 类添加了 field_validator 装饰器,用于在验证 items 字段前填充基本信息
  • 优化了 FileList 类的构造函数,改为在字段验证前进行数据填充
  • 统一了参数和返回值的注释格式,使用 :params 和 :returns 标签

refactor(mcsmapi): 修改文件复制函数名称

  • 将 FileItem 类中的 copy 方法重命名为 copy2
  • 保留原有的功能和逻辑,仅修改方法名称

Full Changelog: 0.1.8.b1...0.1.8.b2

0.1.8.b1

05 Sep 09:39

Choose a tag to compare

refactor(mcsmapi): 根据文档重新校对代码并更新注释格式

  • 更新了多个 API 类的参数类型和返回类型
  • 优化了部分函数的实现逻辑
  • 统一了参数命名和类型注解
  • 调整了部分模型的属性名称

BREAK CHANGE

创建用户函数现在返回UserCreateResult对象,而不是字符串

Full Changelog: 0.1.7...0.1.8.b1

0.1.7

15 Aug 07:48

Choose a tag to compare

What's Changed

  • refactor(mcsmapi): 重构 API 类方法并优化模型定义 by @molanp in #14
  • feat(overview): 添加获取面板操作日志API by @molanp in #16
  • 适配 MCSManager 10.8.1

Full Changelog: 0.1.6...0.1.7

0.1.6

26 Jun 10:35
ec9e894

Choose a tag to compare

What's Changed

Full Changelog: 0.1.4...0.1.6

0.1.5.b2

11 May 02:54

Choose a tag to compare

What's Changed

  • Add two use_case by @Skywind5487 in #8
  • 🐛 修复无法获取实例文件列表问题
  • ⭐ 新增对MCSM隐藏API的支持: 用于获取节点列表
  • 为全部模型添加注释
  • feat(file): 为 FileItem 和 FileList 类添加文件操作功能
  • feat(models): 为 FileItem 类添加 content 方法并优化 InstanceDetail 类

Full Changelog: 0.1.5.b1...0.1.5.b2

0.1.5.b1

10 May 15:14

Choose a tag to compare

feat(instance): 实例对象支持快速获取文件列表

  • 在 InstanceDetail 模型中添加 files 方法,用于获取实例的文件列表
  • 方法支持分页和路径过滤功能
  • 更新版本号至 0.1.5.b1

Full Changelog: 0.1.4...0.1.5.b1

0.1.4

10 May 10:31

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.3...0.1.4