@commandgarden/cli 1.4.2 → 2.1.0
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/dist/main.js +67 -8
- package/node_modules/@commandgarden/app/dist/client/assets/index-GpK1-Tyq.js +255 -0
- package/node_modules/@commandgarden/app/dist/client/assets/index-JB_Cdl_F.css +1 -0
- package/node_modules/@commandgarden/app/dist/client/index.html +2 -2
- package/node_modules/@commandgarden/app/dist/server/journal/journal.config.d.ts +25 -0
- package/node_modules/@commandgarden/app/dist/server/journal/journal.config.js +31 -0
- package/node_modules/@commandgarden/app/dist/server/journal/journal.service.d.ts +37 -0
- package/node_modules/@commandgarden/app/dist/server/journal/journal.service.js +142 -0
- package/node_modules/@commandgarden/app/dist/server/journal/journal.types.d.ts +91 -0
- package/node_modules/@commandgarden/app/dist/server/journal/journal.types.js +4 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/git.source.d.ts +21 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/git.source.js +72 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/jira.source.d.ts +15 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/jira.source.js +42 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/meetings.source.d.ts +21 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/meetings.source.js +25 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/timetracking.source.d.ts +17 -0
- package/node_modules/@commandgarden/app/dist/server/journal/sources/timetracking.source.js +83 -0
- package/node_modules/@commandgarden/app/dist/server/routes/connectors.js +2 -0
- package/node_modules/@commandgarden/app/dist/server/routes/index.js +6 -0
- package/node_modules/@commandgarden/app/dist/server/routes/journal.d.ts +9 -0
- package/node_modules/@commandgarden/app/dist/server/routes/journal.js +56 -0
- package/node_modules/@commandgarden/app/dist/server/routes/security-news-cache.d.ts +3 -0
- package/node_modules/@commandgarden/app/dist/server/routes/security-news-cache.js +17 -0
- package/node_modules/@commandgarden/app/dist/server/routes/skills.d.ts +2 -0
- package/node_modules/@commandgarden/app/dist/server/routes/skills.js +65 -0
- package/node_modules/@commandgarden/app/dist/server/store.d.ts +5 -0
- package/node_modules/@commandgarden/app/dist/server/store.js +19 -0
- package/node_modules/@commandgarden/chrome/dist/content-script.js +84 -2
- package/node_modules/@commandgarden/chrome/dist/content-script.js.map +2 -2
- package/node_modules/@commandgarden/chrome/dist/popup.html +74 -53
- package/node_modules/@commandgarden/chrome/dist/service-worker.js +73 -8
- package/node_modules/@commandgarden/chrome/dist/service-worker.js.map +3 -3
- package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.eval.js +143 -0
- package/node_modules/@commandgarden/daemon/connectors/ado-git-commits.yaml +70 -0
- package/node_modules/@commandgarden/daemon/connectors/gcs-kb-content.yaml +58 -0
- package/node_modules/@commandgarden/daemon/connectors/gcs-kb-pages.yaml +47 -0
- package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.eval.js +115 -0
- package/node_modules/@commandgarden/daemon/connectors/jira-my-tickets.yaml +54 -0
- package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.eval.js +186 -0
- package/node_modules/@commandgarden/daemon/connectors/outlook-my-meetings.yaml +41 -0
- package/node_modules/@commandgarden/daemon/connectors/socket-security-news.yaml +63 -0
- package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.eval.js +27 -0
- package/node_modules/@commandgarden/daemon/connectors/tldrsec-newsletter.yaml +38 -0
- package/node_modules/@commandgarden/daemon/connectors/tokenmaster-client-trustedby.yaml +62 -0
- package/node_modules/@commandgarden/daemon/connectors/tokenmaster-clients-list.yaml +55 -0
- package/node_modules/@commandgarden/daemon/connectors/wiz-blog-security.eval.js +29 -0
- package/node_modules/@commandgarden/daemon/connectors/wiz-blog-security.yaml +44 -0
- package/node_modules/@commandgarden/daemon/dist/daemon-runner.d.ts +12 -0
- package/node_modules/@commandgarden/daemon/dist/daemon-runner.d.ts.map +1 -0
- package/node_modules/@commandgarden/daemon/dist/daemon-runner.js +65 -0
- package/node_modules/@commandgarden/daemon/dist/daemon-runner.js.map +1 -0
- package/node_modules/@commandgarden/daemon/dist/server.d.ts.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/server.js +87 -13
- package/node_modules/@commandgarden/daemon/dist/server.js.map +1 -1
- package/node_modules/@commandgarden/daemon/dist/transforms.d.ts +3 -0
- package/node_modules/@commandgarden/daemon/dist/transforms.d.ts.map +1 -0
- package/node_modules/@commandgarden/daemon/dist/transforms.js +36 -0
- package/node_modules/@commandgarden/daemon/dist/transforms.js.map +1 -0
- package/node_modules/@commandgarden/daemon/package.json +4 -2
- package/node_modules/@commandgarden/shared/dist/connector.d.ts +175 -0
- package/node_modules/@commandgarden/shared/dist/connector.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/connector.js +2 -0
- package/node_modules/@commandgarden/shared/dist/connector.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/expression/evaluator.d.ts +2 -0
- package/node_modules/@commandgarden/shared/dist/expression/evaluator.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/expression/evaluator.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/expression/filters.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/expression/filters.js +5 -0
- package/node_modules/@commandgarden/shared/dist/expression/filters.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/fan-out.d.ts +28 -0
- package/node_modules/@commandgarden/shared/dist/fan-out.d.ts.map +1 -0
- package/node_modules/@commandgarden/shared/dist/fan-out.js +55 -0
- package/node_modules/@commandgarden/shared/dist/fan-out.js.map +1 -0
- package/node_modules/@commandgarden/shared/dist/index.d.ts +2 -1
- package/node_modules/@commandgarden/shared/dist/index.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/index.js +3 -1
- package/node_modules/@commandgarden/shared/dist/index.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/loader.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/loader.js +17 -0
- package/node_modules/@commandgarden/shared/dist/loader.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/pipeline.d.ts +223 -1
- package/node_modules/@commandgarden/shared/dist/pipeline.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/pipeline.js +58 -2
- package/node_modules/@commandgarden/shared/dist/pipeline.js.map +1 -1
- package/node_modules/@commandgarden/shared/dist/protocol.d.ts +1 -0
- package/node_modules/@commandgarden/shared/dist/protocol.d.ts.map +1 -1
- package/node_modules/@commandgarden/shared/dist/protocol.js.map +1 -1
- package/package.json +1 -1
- package/node_modules/@commandgarden/app/dist/client/assets/index-B-_w54e9.css +0 -1
- package/node_modules/@commandgarden/app/dist/client/assets/index-Bb1BOK1E.js +0 -252
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { CAPABILITIES, type Capability, type RiskLevel, CAPABILITY_RISK, HIGH_RISK_CAPABILITIES, isCapability, } from './capabilities.js';
|
|
2
|
-
export { PIPELINE_STEP_TYPES, type PipelineStepType, STEP_CAPABILITY_MAP, pipelineStepSchema, type PipelineStep, type NavigateStep, type WaitStep, type ExtractStep, type ClickStep, type TypeStep, type InterceptStep, type CookieStep, type FetchStep, type MapStep, type FilterStep, type SetStep, type JsEvaluateStep, } from './pipeline.js';
|
|
2
|
+
export { PIPELINE_STEP_TYPES, type PipelineStepType, STEP_CAPABILITY_MAP, pipelineStepSchema, type PipelineStep, type NavigateStep, type WaitStep, type ExtractStep, type ClickStep, type TypeStep, type InterceptStep, type CookieStep, type FetchStep, type MapStep, type FilterStep, type SetStep, type ExtractTreeStep, type ClickAllStep, type ExtractHtmlStep, type TransformStep, type JsEvaluateStep, DAEMON_STEPS, type DaemonStepType, splitPipeline, } from './pipeline.js';
|
|
3
3
|
export { connectorSchema, type ConnectorDef, type ConnectorArg, type ConnectorColumn, } from './connector.js';
|
|
4
4
|
export { parseConnectorYaml, validateConnectorSemantics, type LoadError, } from './loader.js';
|
|
5
5
|
export { tokenize, parse, evaluate, interpolate, BUILT_IN_FILTERS, type Token, type TokenType, type Expr, type ExprContext, type FilterFn, } from './expression/index.js';
|
|
6
6
|
export { type RunCommandRequest, type RunCommandResponse, type ApprovalConfig, type ExtensionRequest, type ExtensionResponse, type ApprovalRequest, type ApprovalResponse, isRunCommandRequest, isExtensionResponse, isApprovalRequest, isApprovalResponse, } from './protocol.js';
|
|
7
7
|
export { AUDIT_EVENT_TYPES, type AuditEvent, type AuditEventType, type StepSummary, createAuditEvent, redactArgs, } from './events.js';
|
|
8
|
+
export { applyArgDefaults, expandFanOut, validateEnumArgs, type FanOutResult, } from './fan-out.js';
|
|
8
9
|
export { DaemonClient, readToken, } from './daemon-client.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,SAAS,EACd,eAAe,EACf,sBAAsB,EACtB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,SAAS,EACd,eAAe,EACf,sBAAsB,EACtB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,mBAAmB,E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EACZ,SAAS,GACV,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Capabilities
|
|
2
2
|
export { CAPABILITIES, CAPABILITY_RISK, HIGH_RISK_CAPABILITIES, isCapability, } from './capabilities.js';
|
|
3
3
|
// Pipeline steps
|
|
4
|
-
export { PIPELINE_STEP_TYPES, STEP_CAPABILITY_MAP, pipelineStepSchema, } from './pipeline.js';
|
|
4
|
+
export { PIPELINE_STEP_TYPES, STEP_CAPABILITY_MAP, pipelineStepSchema, DAEMON_STEPS, splitPipeline, } from './pipeline.js';
|
|
5
5
|
// Connector schema
|
|
6
6
|
export { connectorSchema, } from './connector.js';
|
|
7
7
|
// YAML loader
|
|
@@ -12,6 +12,8 @@ export { tokenize, parse, evaluate, interpolate, BUILT_IN_FILTERS, } from './exp
|
|
|
12
12
|
export { isRunCommandRequest, isExtensionResponse, isApprovalRequest, isApprovalResponse, } from './protocol.js';
|
|
13
13
|
// Audit events
|
|
14
14
|
export { AUDIT_EVENT_TYPES, createAuditEvent, redactArgs, } from './events.js';
|
|
15
|
+
// Fan-out
|
|
16
|
+
export { applyArgDefaults, expandFanOut, validateEnumArgs, } from './fan-out.js';
|
|
15
17
|
// Daemon client
|
|
16
18
|
export { DaemonClient, readToken, } from './daemon-client.js';
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EACL,YAAY,EAGZ,eAAe,EACf,sBAAsB,EACtB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,iBAAiB;AACjB,OAAO,EACL,mBAAmB,EAEnB,mBAAmB,EACnB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EACL,YAAY,EAGZ,eAAe,EACf,sBAAsB,EAC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AE,CAAC;AAEpC,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CA2BlE;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,YAAY,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGpE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,kBAAkB,GAAG,yBAAyB,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,KAAK,UAAU,GACX;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAChC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAEpC,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CA2BlE;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,YAAY,GAAG,MAAM,EAAE,CA0E5E"}
|
|
@@ -71,6 +71,23 @@ export function validateConnectorSemantics(connector) {
|
|
|
71
71
|
errors.push(`Cookie step uses domain "${step.domain}" which is not declared in domains`);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
// Check vars maps: if a vars entry is an object whose values are all strings,
|
|
75
|
+
// verify each value is declared in the top-level domains list.
|
|
76
|
+
if (connector.vars) {
|
|
77
|
+
for (const [varName, varValue] of Object.entries(connector.vars)) {
|
|
78
|
+
if (varValue == null || typeof varValue !== 'object' || Array.isArray(varValue))
|
|
79
|
+
continue;
|
|
80
|
+
const entries = Object.entries(varValue);
|
|
81
|
+
const allStrings = entries.length > 0 && entries.every(([, v]) => typeof v === 'string');
|
|
82
|
+
if (!allStrings)
|
|
83
|
+
continue;
|
|
84
|
+
for (const [key, domain] of entries) {
|
|
85
|
+
if (!declaredDomains.has(domain)) {
|
|
86
|
+
errors.push(`vars.${varName}.${key} references domain "${domain}" which is not declared in domains`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
74
91
|
return errors;
|
|
75
92
|
}
|
|
76
93
|
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,eAAe,EAAqB,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAYpD,MAAM,UAAU,kBAAkB,CAAC,WAAmB;IACpD,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE;gBACL,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB;aACrE;SACF,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACjD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE;gBACL,IAAI,EAAE,yBAAyB;gBAC/B,OAAO,EAAE,sCAAsC;gBAC/C,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAiD,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,C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,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Capability } from './capabilities.js';
|
|
3
|
-
export declare const PIPELINE_STEP_TYPES: readonly ["navigate", "wait", "extract", "click", "type", "intercept", "cookie", "fetch", "map", "filter", "set", "js_evaluate"];
|
|
3
|
+
export declare const PIPELINE_STEP_TYPES: readonly ["navigate", "wait", "extract", "extract_tree", "extract_html", "click", "click_all", "type", "intercept", "cookie", "fetch", "map", "filter", "set", "transform", "js_evaluate"];
|
|
4
4
|
export type PipelineStepType = (typeof PIPELINE_STEP_TYPES)[number];
|
|
5
5
|
export declare const STEP_CAPABILITY_MAP: Record<PipelineStepType, Capability | null>;
|
|
6
6
|
declare const navigateStepSchema: z.ZodObject<{
|
|
@@ -98,6 +98,7 @@ declare const fetchStepSchema: z.ZodObject<{
|
|
|
98
98
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
99
|
body: z.ZodOptional<z.ZodString>;
|
|
100
100
|
as: z.ZodOptional<z.ZodString>;
|
|
101
|
+
dataPath: z.ZodOptional<z.ZodString>;
|
|
101
102
|
}, "strip", z.ZodTypeAny, {
|
|
102
103
|
step: "fetch";
|
|
103
104
|
url: string;
|
|
@@ -105,6 +106,7 @@ declare const fetchStepSchema: z.ZodObject<{
|
|
|
105
106
|
method?: string | undefined;
|
|
106
107
|
headers?: Record<string, string> | undefined;
|
|
107
108
|
body?: string | undefined;
|
|
109
|
+
dataPath?: string | undefined;
|
|
108
110
|
}, {
|
|
109
111
|
step: "fetch";
|
|
110
112
|
url: string;
|
|
@@ -112,6 +114,7 @@ declare const fetchStepSchema: z.ZodObject<{
|
|
|
112
114
|
method?: string | undefined;
|
|
113
115
|
headers?: Record<string, string> | undefined;
|
|
114
116
|
body?: string | undefined;
|
|
117
|
+
dataPath?: string | undefined;
|
|
115
118
|
}>;
|
|
116
119
|
declare const mapStepSchema: z.ZodObject<{
|
|
117
120
|
step: z.ZodLiteral<"map">;
|
|
@@ -152,6 +155,111 @@ declare const setStepSchema: z.ZodObject<{
|
|
|
152
155
|
value: string;
|
|
153
156
|
name: string;
|
|
154
157
|
}>;
|
|
158
|
+
declare const extractHtmlStepSchema: z.ZodObject<{
|
|
159
|
+
step: z.ZodLiteral<"extract_html">;
|
|
160
|
+
selector: z.ZodString;
|
|
161
|
+
as: z.ZodString;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
step: "extract_html";
|
|
164
|
+
selector: string;
|
|
165
|
+
as: string;
|
|
166
|
+
}, {
|
|
167
|
+
step: "extract_html";
|
|
168
|
+
selector: string;
|
|
169
|
+
as: string;
|
|
170
|
+
}>;
|
|
171
|
+
declare const transformStepSchema: z.ZodObject<{
|
|
172
|
+
step: z.ZodLiteral<"transform">;
|
|
173
|
+
type: z.ZodString;
|
|
174
|
+
input: z.ZodString;
|
|
175
|
+
as: z.ZodString;
|
|
176
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
type: string;
|
|
179
|
+
step: "transform";
|
|
180
|
+
as: string;
|
|
181
|
+
input: string;
|
|
182
|
+
options?: Record<string, unknown> | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
type: string;
|
|
185
|
+
step: "transform";
|
|
186
|
+
as: string;
|
|
187
|
+
input: string;
|
|
188
|
+
options?: Record<string, unknown> | undefined;
|
|
189
|
+
}>;
|
|
190
|
+
declare const extractTreeStepSchema: z.ZodObject<{
|
|
191
|
+
step: z.ZodLiteral<"extract_tree">;
|
|
192
|
+
root: z.ZodString;
|
|
193
|
+
group: z.ZodObject<{
|
|
194
|
+
match: z.ZodString;
|
|
195
|
+
title: z.ZodString;
|
|
196
|
+
children: z.ZodString;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
match: string;
|
|
199
|
+
title: string;
|
|
200
|
+
children: string;
|
|
201
|
+
}, {
|
|
202
|
+
match: string;
|
|
203
|
+
title: string;
|
|
204
|
+
children: string;
|
|
205
|
+
}>;
|
|
206
|
+
leaf: z.ZodObject<{
|
|
207
|
+
match: z.ZodString;
|
|
208
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
fields: Record<string, string>;
|
|
211
|
+
match: string;
|
|
212
|
+
}, {
|
|
213
|
+
fields: Record<string, string>;
|
|
214
|
+
match: string;
|
|
215
|
+
}>;
|
|
216
|
+
pathSeparator: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
step: "extract_tree";
|
|
219
|
+
root: string;
|
|
220
|
+
group: {
|
|
221
|
+
match: string;
|
|
222
|
+
title: string;
|
|
223
|
+
children: string;
|
|
224
|
+
};
|
|
225
|
+
leaf: {
|
|
226
|
+
fields: Record<string, string>;
|
|
227
|
+
match: string;
|
|
228
|
+
};
|
|
229
|
+
pathSeparator?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
step: "extract_tree";
|
|
232
|
+
root: string;
|
|
233
|
+
group: {
|
|
234
|
+
match: string;
|
|
235
|
+
title: string;
|
|
236
|
+
children: string;
|
|
237
|
+
};
|
|
238
|
+
leaf: {
|
|
239
|
+
fields: Record<string, string>;
|
|
240
|
+
match: string;
|
|
241
|
+
};
|
|
242
|
+
pathSeparator?: string | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
declare const clickAllStepSchema: z.ZodObject<{
|
|
245
|
+
step: z.ZodLiteral<"click_all">;
|
|
246
|
+
selector: z.ZodString;
|
|
247
|
+
pause: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
maxRounds: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
settle: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
step: "click_all";
|
|
252
|
+
selector: string;
|
|
253
|
+
pause?: number | undefined;
|
|
254
|
+
maxRounds?: number | undefined;
|
|
255
|
+
settle?: number | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
step: "click_all";
|
|
258
|
+
selector: string;
|
|
259
|
+
pause?: number | undefined;
|
|
260
|
+
maxRounds?: number | undefined;
|
|
261
|
+
settle?: number | undefined;
|
|
262
|
+
}>;
|
|
155
263
|
declare const jsEvaluateStepSchema: z.ZodObject<{
|
|
156
264
|
step: z.ZodLiteral<"js_evaluate">;
|
|
157
265
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -256,6 +364,7 @@ export declare const pipelineStepSchema: z.ZodDiscriminatedUnion<"step", [z.ZodO
|
|
|
256
364
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
257
365
|
body: z.ZodOptional<z.ZodString>;
|
|
258
366
|
as: z.ZodOptional<z.ZodString>;
|
|
367
|
+
dataPath: z.ZodOptional<z.ZodString>;
|
|
259
368
|
}, "strip", z.ZodTypeAny, {
|
|
260
369
|
step: "fetch";
|
|
261
370
|
url: string;
|
|
@@ -263,6 +372,7 @@ export declare const pipelineStepSchema: z.ZodDiscriminatedUnion<"step", [z.ZodO
|
|
|
263
372
|
method?: string | undefined;
|
|
264
373
|
headers?: Record<string, string> | undefined;
|
|
265
374
|
body?: string | undefined;
|
|
375
|
+
dataPath?: string | undefined;
|
|
266
376
|
}, {
|
|
267
377
|
step: "fetch";
|
|
268
378
|
url: string;
|
|
@@ -270,6 +380,7 @@ export declare const pipelineStepSchema: z.ZodDiscriminatedUnion<"step", [z.ZodO
|
|
|
270
380
|
method?: string | undefined;
|
|
271
381
|
headers?: Record<string, string> | undefined;
|
|
272
382
|
body?: string | undefined;
|
|
383
|
+
dataPath?: string | undefined;
|
|
273
384
|
}>, z.ZodObject<{
|
|
274
385
|
step: z.ZodLiteral<"map">;
|
|
275
386
|
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -306,6 +417,107 @@ export declare const pipelineStepSchema: z.ZodDiscriminatedUnion<"step", [z.ZodO
|
|
|
306
417
|
step: "set";
|
|
307
418
|
value: string;
|
|
308
419
|
name: string;
|
|
420
|
+
}>, z.ZodObject<{
|
|
421
|
+
step: z.ZodLiteral<"extract_html">;
|
|
422
|
+
selector: z.ZodString;
|
|
423
|
+
as: z.ZodString;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
step: "extract_html";
|
|
426
|
+
selector: string;
|
|
427
|
+
as: string;
|
|
428
|
+
}, {
|
|
429
|
+
step: "extract_html";
|
|
430
|
+
selector: string;
|
|
431
|
+
as: string;
|
|
432
|
+
}>, z.ZodObject<{
|
|
433
|
+
step: z.ZodLiteral<"transform">;
|
|
434
|
+
type: z.ZodString;
|
|
435
|
+
input: z.ZodString;
|
|
436
|
+
as: z.ZodString;
|
|
437
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
type: string;
|
|
440
|
+
step: "transform";
|
|
441
|
+
as: string;
|
|
442
|
+
input: string;
|
|
443
|
+
options?: Record<string, unknown> | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
type: string;
|
|
446
|
+
step: "transform";
|
|
447
|
+
as: string;
|
|
448
|
+
input: string;
|
|
449
|
+
options?: Record<string, unknown> | undefined;
|
|
450
|
+
}>, z.ZodObject<{
|
|
451
|
+
step: z.ZodLiteral<"extract_tree">;
|
|
452
|
+
root: z.ZodString;
|
|
453
|
+
group: z.ZodObject<{
|
|
454
|
+
match: z.ZodString;
|
|
455
|
+
title: z.ZodString;
|
|
456
|
+
children: z.ZodString;
|
|
457
|
+
}, "strip", z.ZodTypeAny, {
|
|
458
|
+
match: string;
|
|
459
|
+
title: string;
|
|
460
|
+
children: string;
|
|
461
|
+
}, {
|
|
462
|
+
match: string;
|
|
463
|
+
title: string;
|
|
464
|
+
children: string;
|
|
465
|
+
}>;
|
|
466
|
+
leaf: z.ZodObject<{
|
|
467
|
+
match: z.ZodString;
|
|
468
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
|
+
fields: Record<string, string>;
|
|
471
|
+
match: string;
|
|
472
|
+
}, {
|
|
473
|
+
fields: Record<string, string>;
|
|
474
|
+
match: string;
|
|
475
|
+
}>;
|
|
476
|
+
pathSeparator: z.ZodOptional<z.ZodString>;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
step: "extract_tree";
|
|
479
|
+
root: string;
|
|
480
|
+
group: {
|
|
481
|
+
match: string;
|
|
482
|
+
title: string;
|
|
483
|
+
children: string;
|
|
484
|
+
};
|
|
485
|
+
leaf: {
|
|
486
|
+
fields: Record<string, string>;
|
|
487
|
+
match: string;
|
|
488
|
+
};
|
|
489
|
+
pathSeparator?: string | undefined;
|
|
490
|
+
}, {
|
|
491
|
+
step: "extract_tree";
|
|
492
|
+
root: string;
|
|
493
|
+
group: {
|
|
494
|
+
match: string;
|
|
495
|
+
title: string;
|
|
496
|
+
children: string;
|
|
497
|
+
};
|
|
498
|
+
leaf: {
|
|
499
|
+
fields: Record<string, string>;
|
|
500
|
+
match: string;
|
|
501
|
+
};
|
|
502
|
+
pathSeparator?: string | undefined;
|
|
503
|
+
}>, z.ZodObject<{
|
|
504
|
+
step: z.ZodLiteral<"click_all">;
|
|
505
|
+
selector: z.ZodString;
|
|
506
|
+
pause: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
maxRounds: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
settle: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
|
+
step: "click_all";
|
|
511
|
+
selector: string;
|
|
512
|
+
pause?: number | undefined;
|
|
513
|
+
maxRounds?: number | undefined;
|
|
514
|
+
settle?: number | undefined;
|
|
515
|
+
}, {
|
|
516
|
+
step: "click_all";
|
|
517
|
+
selector: string;
|
|
518
|
+
pause?: number | undefined;
|
|
519
|
+
maxRounds?: number | undefined;
|
|
520
|
+
settle?: number | undefined;
|
|
309
521
|
}>, z.ZodObject<{
|
|
310
522
|
step: z.ZodLiteral<"js_evaluate">;
|
|
311
523
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -334,6 +546,16 @@ export type FetchStep = z.infer<typeof fetchStepSchema>;
|
|
|
334
546
|
export type MapStep = z.infer<typeof mapStepSchema>;
|
|
335
547
|
export type FilterStep = z.infer<typeof filterStepSchema>;
|
|
336
548
|
export type SetStep = z.infer<typeof setStepSchema>;
|
|
549
|
+
export type ExtractTreeStep = z.infer<typeof extractTreeStepSchema>;
|
|
550
|
+
export type ClickAllStep = z.infer<typeof clickAllStepSchema>;
|
|
551
|
+
export type ExtractHtmlStep = z.infer<typeof extractHtmlStepSchema>;
|
|
552
|
+
export type TransformStep = z.infer<typeof transformStepSchema>;
|
|
337
553
|
export type JsEvaluateStep = z.infer<typeof jsEvaluateStepSchema>;
|
|
554
|
+
export declare const DAEMON_STEPS: readonly ["transform"];
|
|
555
|
+
export type DaemonStepType = (typeof DAEMON_STEPS)[number];
|
|
556
|
+
export declare function splitPipeline(steps: PipelineStep[]): {
|
|
557
|
+
extensionSteps: PipelineStep[];
|
|
558
|
+
daemonSteps: PipelineStep[];
|
|
559
|
+
};
|
|
338
560
|
export {};
|
|
339
561
|
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"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AAC,CAAC;AAC1D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAKlE,eAAO,MAAM,YAAY,wBAAyB,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG;IACpD,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,WAAW,EAAE,YAAY,EAAE,CAAC;CAC7B,CAQA"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const PIPELINE_STEP_TYPES = [
|
|
3
|
-
'navigate', 'wait', 'extract', 'click', 'type',
|
|
4
|
-
'intercept', 'cookie', 'fetch', 'map', 'filter', 'set', 'js_evaluate',
|
|
3
|
+
'navigate', 'wait', 'extract', 'extract_tree', 'extract_html', 'click', 'click_all', 'type',
|
|
4
|
+
'intercept', 'cookie', 'fetch', 'map', 'filter', 'set', 'transform', 'js_evaluate',
|
|
5
5
|
];
|
|
6
6
|
export const STEP_CAPABILITY_MAP = {
|
|
7
7
|
navigate: 'navigate',
|
|
8
8
|
wait: 'navigate',
|
|
9
9
|
extract: 'dom_read',
|
|
10
|
+
extract_tree: 'dom_read',
|
|
11
|
+
extract_html: 'dom_read',
|
|
10
12
|
click: 'dom_write',
|
|
13
|
+
click_all: 'dom_write',
|
|
11
14
|
type: 'dom_write',
|
|
12
15
|
intercept: 'intercept_response',
|
|
13
16
|
cookie: 'cookie_read',
|
|
@@ -15,6 +18,7 @@ export const STEP_CAPABILITY_MAP = {
|
|
|
15
18
|
map: null,
|
|
16
19
|
filter: null,
|
|
17
20
|
set: null,
|
|
21
|
+
transform: null,
|
|
18
22
|
js_evaluate: 'js_evaluate',
|
|
19
23
|
};
|
|
20
24
|
const navigateStepSchema = z.object({
|
|
@@ -58,6 +62,7 @@ const fetchStepSchema = z.object({
|
|
|
58
62
|
headers: z.record(z.string(), z.string()).optional(),
|
|
59
63
|
body: z.string().optional(),
|
|
60
64
|
as: z.string().optional(),
|
|
65
|
+
dataPath: z.string().optional(),
|
|
61
66
|
});
|
|
62
67
|
const mapStepSchema = z.object({
|
|
63
68
|
step: z.literal('map'),
|
|
@@ -74,6 +79,39 @@ const setStepSchema = z.object({
|
|
|
74
79
|
name: z.string(),
|
|
75
80
|
value: z.string(),
|
|
76
81
|
});
|
|
82
|
+
const extractHtmlStepSchema = z.object({
|
|
83
|
+
step: z.literal('extract_html'),
|
|
84
|
+
selector: z.string(),
|
|
85
|
+
as: z.string(),
|
|
86
|
+
});
|
|
87
|
+
const transformStepSchema = z.object({
|
|
88
|
+
step: z.literal('transform'),
|
|
89
|
+
type: z.string(),
|
|
90
|
+
input: z.string(),
|
|
91
|
+
as: z.string(),
|
|
92
|
+
options: z.record(z.string(), z.unknown()).optional(),
|
|
93
|
+
});
|
|
94
|
+
const extractTreeStepSchema = z.object({
|
|
95
|
+
step: z.literal('extract_tree'),
|
|
96
|
+
root: z.string(),
|
|
97
|
+
group: z.object({
|
|
98
|
+
match: z.string(),
|
|
99
|
+
title: z.string(),
|
|
100
|
+
children: z.string(),
|
|
101
|
+
}),
|
|
102
|
+
leaf: z.object({
|
|
103
|
+
match: z.string(),
|
|
104
|
+
fields: z.record(z.string(), z.string()),
|
|
105
|
+
}),
|
|
106
|
+
pathSeparator: z.string().optional(),
|
|
107
|
+
});
|
|
108
|
+
const clickAllStepSchema = z.object({
|
|
109
|
+
step: z.literal('click_all'),
|
|
110
|
+
selector: z.string(),
|
|
111
|
+
pause: z.number().positive().optional(),
|
|
112
|
+
maxRounds: z.number().positive().optional(),
|
|
113
|
+
settle: z.number().nonnegative().optional(),
|
|
114
|
+
});
|
|
77
115
|
const jsEvaluateStepSchema = z.object({
|
|
78
116
|
step: z.literal('js_evaluate'),
|
|
79
117
|
code: z.string().optional(),
|
|
@@ -92,6 +130,24 @@ export const pipelineStepSchema = z.discriminatedUnion('step', [
|
|
|
92
130
|
mapStepSchema,
|
|
93
131
|
filterStepSchema,
|
|
94
132
|
setStepSchema,
|
|
133
|
+
extractHtmlStepSchema,
|
|
134
|
+
transformStepSchema,
|
|
135
|
+
extractTreeStepSchema,
|
|
136
|
+
clickAllStepSchema,
|
|
95
137
|
jsEvaluateStepSchema,
|
|
96
138
|
]);
|
|
139
|
+
// Steps that trigger the extension/daemon split point. Only 'transform' is
|
|
140
|
+
// listed here — map and filter are dual-mode: they run extension-side when
|
|
141
|
+
// they appear before the split, and daemon-side when they follow a transform.
|
|
142
|
+
export const DAEMON_STEPS = ['transform'];
|
|
143
|
+
export function splitPipeline(steps) {
|
|
144
|
+
const daemonSet = new Set(DAEMON_STEPS);
|
|
145
|
+
const firstDaemonIdx = steps.findIndex(s => daemonSet.has(s.step));
|
|
146
|
+
if (firstDaemonIdx === -1)
|
|
147
|
+
return { extensionSteps: steps, daemonSteps: [] };
|
|
148
|
+
return {
|
|
149
|
+
extensionSteps: steps.slice(0, firstDaemonIdx),
|
|
150
|
+
daemonSteps: steps.slice(firstDaemonIdx),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
97
153
|
//# sourceMappingURL=pipeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../src/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Ae,CAI1E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAI5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAoEA,oCAAoC;AAEpC,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC7D,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,OAAO,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC7D,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,OAAO,OAAO,GAAG,CAAC,EAAE,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,EAAE,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC7D,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,OAAO,GAAG,CAAC,IAAI,KAAK,kBAAkB,IAAI,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,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