Files
Ant-Browser/backend/internal/automation/script_importer.go
T
ant-black 70132417ad publish: 1.2.0 snapshot (f3d7ec5)
channel: master

version: 1.2.0

source-ref: D:\code\open_source\ant-chrome master

source-commit: f3d7ec5

merged-public-base: 3d264eb
2026-05-05 18:08:10 +08:00

36 lines
1.3 KiB
Go

package automation
const (
maxImportedBundleFiles = 256
maxImportedBundleBytes = 16 << 20
)
var importManifestCandidates = []string{
"automation.script.json",
"ant-automation.json",
"manifest.json",
}
type scriptImportEnvelope struct {
Format string `json:"format"`
PackageFormat string `json:"packageFormat"`
ManifestVersion int `json:"manifestVersion"`
Manifest map[string]any `json:"manifest"`
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Status string `json:"status"`
EntryFile string `json:"entryFile"`
Tags []string `json:"tags"`
Selector any `json:"selector"`
SelectorText any `json:"selectorText"`
Params any `json:"params"`
ParamsText any `json:"paramsText"`
Script string `json:"script"`
ScriptText string `json:"scriptText"`
Notes string `json:"notes"`
TargetConfig map[string]any `json:"targetConfig"`
Source map[string]any `json:"source"`
Files []scriptTemplateFile `json:"files"`
}