@deepmetier/xss 0.0.0-stage → 1.0.16
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.
- package/LICENSE +24 -0
- package/README.md +23 -2
- package/README.zh.md +24 -0
- package/bin/xss +67 -0
- package/dist/xss.js +1784 -0
- package/dist/xss.min.js +1 -0
- package/lib/cli.js +45 -0
- package/lib/default.js +468 -0
- package/lib/index.js +118 -0
- package/lib/parser.js +257 -0
- package/lib/util.js +34 -0
- package/lib/xss.js +237 -0
- package/package.json +63 -4
- package/typings/xss.d.ts +219 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
DeepMetier
|
|
2
|
+
|
|
3
|
+
通过 AI 和 数据联动一切
|
|
4
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
5
|
+
|
|
6
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
7
|
+
|
|
8
|
+
## 📄 License
|
|
9
|
+
DeepMetier is licensed under **AGPLv3**.
|
|
10
|
+
Commercial License Terms
|
|
11
|
+
Copyright (C) 2026 Your Name / Your Team
|
|
12
|
+
|
|
13
|
+
This software is NOT available for commercial use under AGPLv3.
|
|
14
|
+
All commercial usage rights are reserved by the copyright holder.
|
|
15
|
+
|
|
16
|
+
Commercial use includes, but is not limited to:
|
|
17
|
+
1. Selling, licensing, renting this software or its derivative works;
|
|
18
|
+
2. Operating closed private SaaS / hosted service for commercial customers;
|
|
19
|
+
3. Embedding or integrating this software into closed-source commercial products;
|
|
20
|
+
4. Using the software in a business environment to generate direct or indirect revenue,
|
|
21
|
+
where you do not release the full source code of your derivative work.
|
|
22
|
+
|
|
23
|
+
To obtain a commercial license, contact: [https://www.deepmetier.com/](https://www.deepmetier.com/)
|
|
24
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
DeepMetier
|
|
2
|
+
|
|
3
|
+
通过 AI 和 数据联动一切
|
|
4
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
5
|
+
|
|
6
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
7
|
+
|
|
8
|
+
## 📄 License
|
|
9
|
+
DeepMetier is licensed under **AGPLv3**.
|
|
10
|
+
Commercial License Terms
|
|
11
|
+
Copyright (C) 2026 Your Name / Your Team
|
|
12
|
+
|
|
13
|
+
This software is NOT available for commercial use under AGPLv3.
|
|
14
|
+
All commercial usage rights are reserved by the copyright holder.
|
|
15
|
+
|
|
16
|
+
Commercial use includes, but is not limited to:
|
|
17
|
+
1. Selling, licensing, renting this software or its derivative works;
|
|
18
|
+
2. Operating closed private SaaS / hosted service for commercial customers;
|
|
19
|
+
3. Embedding or integrating this software into closed-source commercial products;
|
|
20
|
+
4. Using the software in a business environment to generate direct or indirect revenue,
|
|
21
|
+
where you do not release the full source code of your derivative work.
|
|
22
|
+
|
|
23
|
+
To obtain a commercial license, contact: [https://www.deepmetier.com/](https://www.deepmetier.com/)
|
|
2
24
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
DeepMetier
|
|
2
|
+
|
|
3
|
+
通过 AI 和 数据联动一切
|
|
4
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
5
|
+
|
|
6
|
+
AI 驱动数据,一键生成 Word、Excel、PPT、PDF、图片、视频、3D 模型、CAD 图纸与网页,自动操作电脑与浏览器;更可将任意企业内网站点一键注册为网页小程序,由 AI 智能体全自动完成页面跳转、表单填写、数据提取与按钮操作;也可将内置工具与 SKILLS 技能编排为定时任务,无人值守自动执行。面向 C 端与 B 端的综合性智能体平台,内置智能体、工作流与自主规划能力,一站式覆盖内容生成、办公自动化与行业赋能,支持内网私有化部署。
|
|
7
|
+
|
|
8
|
+
## 📄 License
|
|
9
|
+
DeepMetier is licensed under **AGPLv3**.
|
|
10
|
+
Commercial License Terms
|
|
11
|
+
Copyright (C) 2026 Your Name / Your Team
|
|
12
|
+
|
|
13
|
+
This software is NOT available for commercial use under AGPLv3.
|
|
14
|
+
All commercial usage rights are reserved by the copyright holder.
|
|
15
|
+
|
|
16
|
+
Commercial use includes, but is not limited to:
|
|
17
|
+
1. Selling, licensing, renting this software or its derivative works;
|
|
18
|
+
2. Operating closed private SaaS / hosted service for commercial customers;
|
|
19
|
+
3. Embedding or integrating this software into closed-source commercial products;
|
|
20
|
+
4. Using the software in a business environment to generate direct or indirect revenue,
|
|
21
|
+
where you do not release the full source code of your derivative work.
|
|
22
|
+
|
|
23
|
+
To obtain a commercial license, contact: [https://www.deepmetier.com/](https://www.deepmetier.com/)
|
|
24
|
+
|
package/bin/xss
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 命令行工具
|
|
5
|
+
*
|
|
6
|
+
* @author Zongmin Lei<leizongmin@gmail.com>
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var fs = require('fs');
|
|
10
|
+
var path = require('path');
|
|
11
|
+
var program = require('@deepmetier/commander');
|
|
12
|
+
var xss = require('../');
|
|
13
|
+
var packageInfo = require('../package.json');
|
|
14
|
+
|
|
15
|
+
program
|
|
16
|
+
.version(packageInfo.version)
|
|
17
|
+
.option('-t, --test', 'active test')
|
|
18
|
+
.option('-i, --input <input_file>', 'input file name')
|
|
19
|
+
.option('-o, --output <output_file>', 'output filename')
|
|
20
|
+
.option('-c, --config <config_file>', 'load custom config')
|
|
21
|
+
.option('-s, --strip-ignore-tag', 'set stripIgnoreTag=true')
|
|
22
|
+
.option('-b, --strip-ignore-tag-body', 'set stripIgnoreTagBody=true');
|
|
23
|
+
|
|
24
|
+
program.on('--help', function () {
|
|
25
|
+
console.log(' Examples:');
|
|
26
|
+
console.log('');
|
|
27
|
+
console.log(' $ xss -t');
|
|
28
|
+
console.log(' $ xss -i origin.html');
|
|
29
|
+
console.log(' $ xss -i origin.html -o targer.html');
|
|
30
|
+
console.log(' $ xss -i origin.html -c config.js');
|
|
31
|
+
console.log(' $ xss -i origin.html -s');
|
|
32
|
+
console.log(' $ xss -i origin.html -s -b');
|
|
33
|
+
console.log('');
|
|
34
|
+
console.log(' For more details, please see: https://npmjs.org/package/xss')
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
program.parse(process.argv);
|
|
38
|
+
|
|
39
|
+
if (program.test) {
|
|
40
|
+
require('../lib/cli');
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var config = {};
|
|
45
|
+
if (program.config) {
|
|
46
|
+
config = require(path.resolve(program.config));
|
|
47
|
+
}
|
|
48
|
+
if (program.input) {
|
|
49
|
+
var input = fs.readFileSync(program.input, 'utf8');
|
|
50
|
+
} else {
|
|
51
|
+
program.help();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (program['strip-ignore-tag']) {
|
|
55
|
+
config.stripIgnoreTag = true;
|
|
56
|
+
}
|
|
57
|
+
if (program['strip-ignore-tag-body']) {
|
|
58
|
+
config.stripIgnoreTagBody = true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var output = xss(input, config);
|
|
62
|
+
|
|
63
|
+
if (program.output) {
|
|
64
|
+
fs.writeFileSync(program.output, output);
|
|
65
|
+
} else {
|
|
66
|
+
console.log(output);
|
|
67
|
+
}
|