@zhama/tego-plugin-sdk 0.0.0-stage → 1.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/LICENSE +172 -0
  2. package/README.md +846 -2
  3. package/access-catalog.schema.json +304 -0
  4. package/access-fixtures/resolve.json +1359 -0
  5. package/bin/tego-plugin-pack.mjs +2 -0
  6. package/bin/tego-plugin.mjs +3 -0
  7. package/dist/access-drizzle.cjs +1 -0
  8. package/dist/access-drizzle.d.cts +726 -0
  9. package/dist/access-drizzle.d.ts +726 -0
  10. package/dist/access-drizzle.js +1 -0
  11. package/dist/access-hono.cjs +3 -0
  12. package/dist/access-hono.d.cts +108 -0
  13. package/dist/access-hono.d.ts +108 -0
  14. package/dist/access-hono.js +3 -0
  15. package/dist/access-implications.cjs +1 -0
  16. package/dist/access-implications.d.cts +25 -0
  17. package/dist/access-implications.d.ts +25 -0
  18. package/dist/access-implications.js +1 -0
  19. package/dist/access.cjs +26 -0
  20. package/dist/access.d.cts +884 -0
  21. package/dist/access.d.ts +884 -0
  22. package/dist/access.js +26 -0
  23. package/dist/catalog-CSSbrfEf.d.cts +361 -0
  24. package/dist/catalog-CSSbrfEf.d.ts +361 -0
  25. package/dist/chunk-3KUOBGJN.js +19 -0
  26. package/dist/chunk-3WA3M347.cjs +1 -0
  27. package/dist/chunk-5CU33JVY.js +1 -0
  28. package/dist/chunk-7K37PVGV.js +5 -0
  29. package/dist/chunk-7XHF3YSK.js +1 -0
  30. package/dist/chunk-AJY7ZHXK.cjs +3 -0
  31. package/dist/chunk-BN6TGHSB.cjs +1 -0
  32. package/dist/chunk-BTHXQWHT.js +1 -0
  33. package/dist/chunk-C2OCOPZQ.cjs +1 -0
  34. package/dist/chunk-IMAVYQ4U.cjs +4 -0
  35. package/dist/chunk-OP64Y4IN.cjs +1 -0
  36. package/dist/chunk-QKSPPMVN.js +1 -0
  37. package/dist/chunk-ROFUQLOZ.cjs +1 -0
  38. package/dist/chunk-SNUCO2MK.js +1 -0
  39. package/dist/chunk-THMWRUAT.cjs +19 -0
  40. package/dist/chunk-VMCGDDGP.js +3 -0
  41. package/dist/chunk-W7C357A6.cjs +5 -0
  42. package/dist/chunk-WLTASJF6.js +4 -0
  43. package/dist/egress.cjs +7 -0
  44. package/dist/egress.d.cts +9 -0
  45. package/dist/egress.d.ts +9 -0
  46. package/dist/egress.js +7 -0
  47. package/dist/frontend.cjs +2 -0
  48. package/dist/frontend.d.cts +353 -0
  49. package/dist/frontend.d.ts +353 -0
  50. package/dist/frontend.js +2 -0
  51. package/dist/gateway-signature.cjs +1 -0
  52. package/dist/gateway-signature.d.cts +112 -0
  53. package/dist/gateway-signature.d.ts +112 -0
  54. package/dist/gateway-signature.js +1 -0
  55. package/dist/index.cjs +1 -0
  56. package/dist/index.d.cts +528 -0
  57. package/dist/index.d.ts +528 -0
  58. package/dist/index.js +1 -0
  59. package/dist/manifest-types-DQARCQJt.d.cts +627 -0
  60. package/dist/manifest-types-DQARCQJt.d.ts +627 -0
  61. package/dist/manifest.cjs +1 -0
  62. package/dist/manifest.d.cts +2824 -0
  63. package/dist/manifest.d.ts +2824 -0
  64. package/dist/manifest.js +1 -0
  65. package/dist/mcp-identity.cjs +2 -0
  66. package/dist/mcp-identity.d.cts +106 -0
  67. package/dist/mcp-identity.d.ts +106 -0
  68. package/dist/mcp-identity.js +2 -0
  69. package/dist/pack.cjs +1 -0
  70. package/dist/pack.d.cts +169 -0
  71. package/dist/pack.d.ts +169 -0
  72. package/dist/pack.js +1 -0
  73. package/dist/publish.cjs +1 -0
  74. package/dist/publish.d.cts +96 -0
  75. package/dist/publish.d.ts +96 -0
  76. package/dist/publish.js +1 -0
  77. package/dist/scaffold.cjs +523 -0
  78. package/dist/scaffold.d.cts +182 -0
  79. package/dist/scaffold.d.ts +182 -0
  80. package/dist/scaffold.js +523 -0
  81. package/dist/server-runtime.cjs +1 -0
  82. package/dist/server-runtime.d.cts +63 -0
  83. package/dist/server-runtime.d.ts +63 -0
  84. package/dist/server-runtime.js +1 -0
  85. package/dist/server.cjs +1 -0
  86. package/dist/server.d.cts +1808 -0
  87. package/dist/server.d.ts +1808 -0
  88. package/dist/server.js +1 -0
  89. package/dist/testing.cjs +2 -0
  90. package/dist/testing.d.cts +92 -0
  91. package/dist/testing.d.ts +92 -0
  92. package/dist/testing.js +2 -0
  93. package/dist/vite.cjs +1 -0
  94. package/dist/vite.d.cts +133 -0
  95. package/dist/vite.d.ts +133 -0
  96. package/dist/vite.js +1 -0
  97. package/package.json +160 -4
  98. package/sql/access.sql +73 -0
package/LICENSE ADDED
@@ -0,0 +1,172 @@
1
+ Tego 插件开发套件许可协议 / Tego Plugin SDK License
2
+ 版本 1.0
3
+
4
+ Copyright (c) 2026 zhama. 保留所有权利。All rights reserved.
5
+
6
+ 本协议以中文和英文书就,两种文本如有不一致,以中文文本为准。
7
+ This license is written in Chinese and English. If the two versions differ,
8
+ the Chinese version prevails.
9
+
10
+ ============================================================================
11
+ 中文文本
12
+ ============================================================================
13
+
14
+ 一、定义
15
+
16
+ 1.1 “许可方”指 zhama。
17
+ 1.2 “本软件”指许可方以 @zhama/tego-* 名称发布的软件包,包括其中的源代码、
18
+ 编译产物、类型声明、配置文件与文档,以及许可方提供的更新版本。
19
+ 1.3 “Tego 平台”指许可方或其授权方提供、部署或运营的 Tego OS 及相关产品与服务。
20
+ 1.4 “插件”指为在 Tego 平台中加载与运行而开发的软件扩展,包括其前端、后端与
21
+ 智能体组件。
22
+ 1.5 “您”指使用本软件的个人或组织。
23
+
24
+ 二、许可授予
25
+
26
+ 在您遵守本协议的前提下,许可方授予您一项全球范围、非独占、免许可费、不可转让、
27
+ 不可再许可的许可,仅为开发、测试、构建、打包和分发插件之目的:
28
+ (a) 安装、使用和复制本软件;
29
+ (b) 为上述目的修改本软件;
30
+ (c) 将本软件中由构建工具打包进插件产物的部分,作为插件的组成部分随插件分发。
31
+
32
+ 三、限制
33
+
34
+ 除本协议明确允许的以外,您不得:
35
+ (a) 将本软件或其任何部分用于开发、运行或支持不在 Tego 平台中运行的产品或服务;
36
+ (b) 单独分发、出售、出租、再许可、发布或以其他方式提供本软件或其修改版本,
37
+ 包括以独立软件包形式发布到任何软件仓库;
38
+ (c) 使用本软件开发与 Tego 平台竞争或用以替代 Tego 平台的产品或服务;
39
+ (d) 删除、遮盖或修改本软件中的版权声明、本协议文本或其他权利声明;
40
+ (e) 规避、绕过或篡改 Tego 平台对插件实施的版本兼容、权限或安全校验。
41
+
42
+ 四、您的插件
43
+
44
+ 您开发的插件中由您编写的部分归您或相应权利人所有。本协议不授予许可方对您插件
45
+ 代码的任何权利,也不限制您按自行选择的条款许可您自己的代码;但插件中包含的本
46
+ 软件部分仍受本协议约束。
47
+
48
+ 五、权利保留
49
+
50
+ 本软件的所有权、著作权及其他知识产权归许可方所有。本协议未明确授予的权利均由
51
+ 许可方保留。本协议不授予您使用许可方商号、商标或标识的权利,但为如实说明插件
52
+ 适用于 Tego 平台而作的合理提及除外。
53
+
54
+ 六、第三方组件
55
+
56
+ 本软件依赖的第三方开源组件不属于本软件,受其各自许可证约束。
57
+
58
+ 七、免责声明
59
+
60
+ 本软件按“现状”提供,不附带任何明示或默示的保证,包括但不限于适销性、特定用途
61
+ 适用性和不侵权的保证。
62
+
63
+ 八、责任限制
64
+
65
+ 在适用法律允许的最大范围内,许可方对因本软件或本协议产生或与之相关的任何间接、
66
+ 附带、特殊、惩罚性或后果性损害,或利润、数据、业务的损失,不承担责任;许可方
67
+ 就本协议承担的全部责任以人民币一百元为限。
68
+
69
+ 九、终止
70
+
71
+ 您违反本协议任何条款的,本协议授予的许可自动终止。许可终止后,您应停止使用并
72
+ 删除本软件的全部副本。终止前已合法分发给最终用户的插件,最终用户可继续在 Tego
73
+ 平台中使用。第四条至第八条及第十条在本协议终止后继续有效。
74
+
75
+ 十、适用法律与争议解决
76
+
77
+ 本协议适用中华人民共和国法律(为本协议之目的,不包括香港、澳门特别行政区和
78
+ 台湾地区法律)。因本协议产生的争议,双方应友好协商;协商不成的,提交许可方
79
+ 住所地有管辖权的人民法院诉讼解决。
80
+
81
+ ============================================================================
82
+ English text
83
+ ============================================================================
84
+
85
+ 1. Definitions
86
+
87
+ 1.1 "Licensor" means zhama.
88
+ 1.2 "Software" means the packages the Licensor publishes under the names
89
+ @zhama/tego-*, including their source code, compiled output, type
90
+ declarations, configuration files and documentation, and any updates the
91
+ Licensor provides.
92
+ 1.3 "Tego Platform" means Tego OS and the related products and services
93
+ provided, deployed or operated by the Licensor or its authorized parties.
94
+ 1.4 "Plugin" means a software extension developed to be loaded and run in the
95
+ Tego Platform, including its frontend, backend and agent parts.
96
+ 1.5 "You" means the individual or organization using the Software.
97
+
98
+ 2. License grant
99
+
100
+ Subject to your compliance with this license, the Licensor grants you a
101
+ worldwide, non-exclusive, royalty-free, non-transferable, non-sublicensable
102
+ license, solely to develop, test, build, package and distribute Plugins, to:
103
+ (a) install, use and copy the Software;
104
+ (b) modify the Software for that purpose; and
105
+ (c) distribute those portions of the Software that the build tools include
106
+ in a Plugin's build output, as part of that Plugin.
107
+
108
+ 3. Restrictions
109
+
110
+ Except as expressly permitted by this license, you may not:
111
+ (a) use the Software, or any part of it, to develop, run or support any
112
+ product or service that does not run in the Tego Platform;
113
+ (b) distribute, sell, rent, sublicense, publish or otherwise make available
114
+ the Software or a modified version of it on its own, including as a
115
+ standalone package in any package registry;
116
+ (c) use the Software to develop a product or service that competes with or
117
+ substitutes for the Tego Platform;
118
+ (d) remove, obscure or alter any copyright notice, this license text or any
119
+ other proprietary notice in the Software; or
120
+ (e) circumvent, bypass or tamper with the version-compatibility, permission
121
+ or security checks the Tego Platform applies to Plugins.
122
+
123
+ 4. Your Plugins
124
+
125
+ The parts of your Plugins that you write belong to you or the respective
126
+ rights holders. This license gives the Licensor no rights in your Plugin code
127
+ and does not restrict you from licensing your own code on terms of your
128
+ choosing; portions of the Software included in a Plugin remain subject to this
129
+ license.
130
+
131
+ 5. Reservation of rights
132
+
133
+ The Software and all copyright and other intellectual property rights in it
134
+ belong to the Licensor. All rights not expressly granted are reserved. This
135
+ license grants no right to use the Licensor's trade names, trademarks or
136
+ logos, except for reasonable reference to state accurately that a Plugin is
137
+ built for the Tego Platform.
138
+
139
+ 6. Third-party components
140
+
141
+ Third-party open-source components the Software depends on are not part of
142
+ the Software and are governed by their own licenses.
143
+
144
+ 7. Disclaimer of warranty
145
+
146
+ The Software is provided "as is", without warranty of any kind, express or
147
+ implied, including without limitation the warranties of merchantability,
148
+ fitness for a particular purpose and non-infringement.
149
+
150
+ 8. Limitation of liability
151
+
152
+ To the maximum extent permitted by applicable law, the Licensor is not liable
153
+ for any indirect, incidental, special, punitive or consequential damages, or
154
+ for any loss of profits, data or business, arising out of or relating to the
155
+ Software or this license; the Licensor's total liability under this license
156
+ is limited to RMB 100.
157
+
158
+ 9. Termination
159
+
160
+ This license terminates automatically if you breach any of its terms. On
161
+ termination you must stop using and delete all copies of the Software. End
162
+ users may continue to use, in the Tego Platform, Plugins lawfully distributed
163
+ to them before termination. Sections 4 to 8 and 10 survive termination.
164
+
165
+ 10. Governing law and disputes
166
+
167
+ This license is governed by the laws of the People's Republic of China
168
+ (excluding, for this purpose, the laws of the Hong Kong and Macao Special
169
+ Administrative Regions and Taiwan). The parties shall first seek to resolve
170
+ any dispute arising from this license through friendly negotiation; failing
171
+ that, the dispute shall be submitted to the competent people's court at the
172
+ Licensor's domicile.