@tung-engineering/agent-platform-web-sdk 0.0.68 → 0.0.70
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/web-sdk.cjs +20 -20
- package/dist/web-sdk.cjs.map +1 -1
- package/dist/web-sdk.min.js +20 -20
- package/dist/web-sdk.min.js.map +1 -1
- package/dist/web-sdk.mjs +196 -194
- package/dist/web-sdk.mjs.map +1 -1
- package/package.json +1 -1
package/dist/web-sdk.mjs
CHANGED
|
@@ -3011,8 +3011,8 @@ const sh = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
3011
3011
|
const n = e._zod.parse, r = Yo(() => lc(t)), o = (m) => {
|
|
3012
3012
|
var T;
|
|
3013
3013
|
const k = new Ep(["shape", "payload", "ctx"]), y = r.value, E = (S) => {
|
|
3014
|
-
const
|
|
3015
|
-
return `shape[${
|
|
3014
|
+
const P = Oi(S);
|
|
3015
|
+
return `shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`;
|
|
3016
3016
|
};
|
|
3017
3017
|
k.write("const input = payload.value;");
|
|
3018
3018
|
const Z = /* @__PURE__ */ Object.create(null);
|
|
@@ -3021,46 +3021,46 @@ const sh = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
3021
3021
|
Z[S] = `key_${ee++}`;
|
|
3022
3022
|
k.write("const newResult = {};");
|
|
3023
3023
|
for (const S of y.keys) {
|
|
3024
|
-
const
|
|
3025
|
-
k.write(`const ${
|
|
3026
|
-
if (${
|
|
3024
|
+
const P = Z[S], D = Oi(S), J = m[S], he = ((T = J == null ? void 0 : J._zod) == null ? void 0 : T.optout) === "optional";
|
|
3025
|
+
k.write(`const ${P} = ${E(S)};`), he ? k.write(`
|
|
3026
|
+
if (${P}.issues.length) {
|
|
3027
3027
|
if (${D} in input) {
|
|
3028
|
-
payload.issues = payload.issues.concat(${
|
|
3028
|
+
payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
3029
3029
|
...iss,
|
|
3030
3030
|
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
3031
3031
|
})));
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
|
|
3035
|
-
if (${
|
|
3035
|
+
if (${P}.value === undefined) {
|
|
3036
3036
|
if (${D} in input) {
|
|
3037
3037
|
newResult[${D}] = undefined;
|
|
3038
3038
|
}
|
|
3039
3039
|
} else {
|
|
3040
|
-
newResult[${D}] = ${
|
|
3040
|
+
newResult[${D}] = ${P}.value;
|
|
3041
3041
|
}
|
|
3042
3042
|
|
|
3043
3043
|
`) : k.write(`
|
|
3044
|
-
if (${
|
|
3045
|
-
payload.issues = payload.issues.concat(${
|
|
3044
|
+
if (${P}.issues.length) {
|
|
3045
|
+
payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
|
|
3046
3046
|
...iss,
|
|
3047
3047
|
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
3048
3048
|
})));
|
|
3049
3049
|
}
|
|
3050
3050
|
|
|
3051
|
-
if (${
|
|
3051
|
+
if (${P}.value === undefined) {
|
|
3052
3052
|
if (${D} in input) {
|
|
3053
3053
|
newResult[${D}] = undefined;
|
|
3054
3054
|
}
|
|
3055
3055
|
} else {
|
|
3056
|
-
newResult[${D}] = ${
|
|
3056
|
+
newResult[${D}] = ${P}.value;
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
3059
|
`);
|
|
3060
3060
|
}
|
|
3061
3061
|
k.write("payload.value = newResult;"), k.write("return payload;");
|
|
3062
3062
|
const N = k.compile();
|
|
3063
|
-
return (S,
|
|
3063
|
+
return (S, P) => N(m, S, P);
|
|
3064
3064
|
};
|
|
3065
3065
|
let i;
|
|
3066
3066
|
const a = Dr, d = !Wa.jitless, p = d && vd.value, h = t.catchall;
|
|
@@ -4028,11 +4028,11 @@ function mc(e, t) {
|
|
|
4028
4028
|
var E, Z, ee, N, T;
|
|
4029
4029
|
const g = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
4030
4030
|
if (e.external) {
|
|
4031
|
-
const S = (E = e.external.registry.get(h[0])) == null ? void 0 : E.id,
|
|
4031
|
+
const S = (E = e.external.registry.get(h[0])) == null ? void 0 : E.id, P = (Z = e.external.uri) != null ? Z : ((J) => J);
|
|
4032
4032
|
if (S)
|
|
4033
|
-
return { ref:
|
|
4033
|
+
return { ref: P(S) };
|
|
4034
4034
|
const D = (N = (ee = h[1].defId) != null ? ee : h[1].schema.id) != null ? N : `schema${e.counter++}`;
|
|
4035
|
-
return h[1].defId = D, { defId: D, ref: `${
|
|
4035
|
+
return h[1].defId = D, { defId: D, ref: `${P("__shared")}#/${g}/${D}` };
|
|
4036
4036
|
}
|
|
4037
4037
|
if (h[1] === n)
|
|
4038
4038
|
return { ref: "#" };
|
|
@@ -4096,11 +4096,11 @@ function bc(e, t) {
|
|
|
4096
4096
|
const k = (ee = m.def) != null ? ee : m.schema, y = v({}, k), E = m.ref;
|
|
4097
4097
|
if (m.ref = null, E) {
|
|
4098
4098
|
r(E);
|
|
4099
|
-
const S = e.seen.get(E),
|
|
4100
|
-
if (
|
|
4099
|
+
const S = e.seen.get(E), P = S.schema;
|
|
4100
|
+
if (P.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (k.allOf = (N = k.allOf) != null ? N : [], k.allOf.push(P)) : Object.assign(k, P), Object.assign(k, y), g._zod.parent === E)
|
|
4101
4101
|
for (const J in k)
|
|
4102
4102
|
J === "$ref" || J === "allOf" || J in y || delete k[J];
|
|
4103
|
-
if (
|
|
4103
|
+
if (P.$ref)
|
|
4104
4104
|
for (const J in k)
|
|
4105
4105
|
J === "$ref" || J === "allOf" || J in S.def && JSON.stringify(k[J]) === JSON.stringify(S.def[J]) && delete k[J];
|
|
4106
4106
|
}
|
|
@@ -4109,8 +4109,8 @@ function bc(e, t) {
|
|
|
4109
4109
|
r(Z);
|
|
4110
4110
|
const S = e.seen.get(Z);
|
|
4111
4111
|
if (S != null && S.schema.$ref && (k.$ref = S.schema.$ref, S.def))
|
|
4112
|
-
for (const
|
|
4113
|
-
|
|
4112
|
+
for (const P in k)
|
|
4113
|
+
P === "$ref" || P === "allOf" || P in S.def && JSON.stringify(k[P]) === JSON.stringify(S.def[P]) && delete k[P];
|
|
4114
4114
|
}
|
|
4115
4115
|
e.override({
|
|
4116
4116
|
zodSchema: g,
|
|
@@ -4458,7 +4458,7 @@ const Xf = (e, t) => {
|
|
|
4458
4458
|
}), lg = /* @__PURE__ */ w("ZodString", (e, t) => {
|
|
4459
4459
|
Gs.init(e, t), _c.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ Th(ug, n)), e.url = (n) => e.check(/* @__PURE__ */ Rh(dg, n)), e.jwt = (n) => e.check(/* @__PURE__ */ Bh(Eg, n)), e.emoji = (n) => e.check(/* @__PURE__ */ Lh(pg, n)), e.guid = (n) => e.check(/* @__PURE__ */ Gi(Xi, n)), e.uuid = (n) => e.check(/* @__PURE__ */ Eh(lo, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ Ah(lo, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ Ch(lo, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ Ph(lo, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ Ih(hg, n)), e.guid = (n) => e.check(/* @__PURE__ */ Gi(Xi, n)), e.cuid = (n) => e.check(/* @__PURE__ */ zh(fg, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ $h(gg, n)), e.ulid = (n) => e.check(/* @__PURE__ */ Oh(mg, n)), e.base64 = (n) => e.check(/* @__PURE__ */ qh(xg, n)), e.base64url = (n) => e.check(/* @__PURE__ */ Hh(Sg, n)), e.xid = (n) => e.check(/* @__PURE__ */ Nh(bg, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ Dh(kg, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ Mh(_g, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ Uh(vg, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ jh(yg, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ Zh(wg, n)), e.e164 = (n) => e.check(/* @__PURE__ */ Fh(Tg, n)), e.datetime = (n) => e.check(Hf(n)), e.date = (n) => e.check(Bf(n)), e.time = (n) => e.check(Wf(n)), e.duration = (n) => e.check(Yf(n));
|
|
4460
4460
|
});
|
|
4461
|
-
function
|
|
4461
|
+
function C(e) {
|
|
4462
4462
|
return /* @__PURE__ */ Sh(lg, e);
|
|
4463
4463
|
}
|
|
4464
4464
|
const ye = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
@@ -4769,49 +4769,49 @@ function om(e) {
|
|
|
4769
4769
|
return /* @__PURE__ */ mf(e);
|
|
4770
4770
|
}
|
|
4771
4771
|
const sm = fe({
|
|
4772
|
-
name:
|
|
4773
|
-
command:
|
|
4774
|
-
args: St(
|
|
4772
|
+
name: C().min(1).max(100).optional(),
|
|
4773
|
+
command: C().min(1).max(500),
|
|
4774
|
+
args: St(C()).optional(),
|
|
4775
4775
|
failOnError: ge().default(!0).optional(),
|
|
4776
4776
|
timeout: Ot().int().min(1e3).max(3e5).default(3e4).optional(),
|
|
4777
|
-
workingDirectory:
|
|
4778
|
-
env: It(
|
|
4777
|
+
workingDirectory: C().optional(),
|
|
4778
|
+
env: It(C(), C()).optional(),
|
|
4779
4779
|
runOnBackground: ge().optional()
|
|
4780
4780
|
});
|
|
4781
4781
|
fe({
|
|
4782
|
-
name:
|
|
4783
|
-
command:
|
|
4782
|
+
name: C(),
|
|
4783
|
+
command: C(),
|
|
4784
4784
|
success: ge(),
|
|
4785
4785
|
exitCode: Ot().optional(),
|
|
4786
|
-
stdout:
|
|
4787
|
-
stderr:
|
|
4788
|
-
error:
|
|
4786
|
+
stdout: C().optional(),
|
|
4787
|
+
stderr: C().optional(),
|
|
4788
|
+
error: C().optional(),
|
|
4789
4789
|
duration: Ot(),
|
|
4790
4790
|
failOnError: ge()
|
|
4791
4791
|
});
|
|
4792
4792
|
const yn = fe({
|
|
4793
|
-
path:
|
|
4793
|
+
path: C(),
|
|
4794
4794
|
extraCommands: St(sm).optional(),
|
|
4795
|
-
id:
|
|
4796
|
-
rotationKey:
|
|
4795
|
+
id: C().uuid().optional(),
|
|
4796
|
+
rotationKey: C().optional(),
|
|
4797
4797
|
usageStatus: dt(["free", "in_use"]).optional()
|
|
4798
4798
|
}), im = xc("operation", [
|
|
4799
4799
|
yn.extend({
|
|
4800
4800
|
operation: ut("create"),
|
|
4801
|
-
content:
|
|
4802
|
-
contentPath:
|
|
4801
|
+
content: C().optional(),
|
|
4802
|
+
contentPath: C().optional(),
|
|
4803
4803
|
encoding: dt(["utf-8", "base64"]).optional()
|
|
4804
4804
|
}),
|
|
4805
4805
|
yn.extend({
|
|
4806
4806
|
operation: ut("merge"),
|
|
4807
|
-
data: It(
|
|
4807
|
+
data: It(C(), yc()),
|
|
4808
4808
|
mergeStrategy: dt(["deep", "shallow"]).optional(),
|
|
4809
4809
|
arrayMergeStrategy: dt(["concat", "replace"]).optional()
|
|
4810
4810
|
}),
|
|
4811
4811
|
yn.extend({
|
|
4812
4812
|
operation: ut("modify"),
|
|
4813
|
-
content:
|
|
4814
|
-
contentPath:
|
|
4813
|
+
content: C().optional(),
|
|
4814
|
+
contentPath: C().optional(),
|
|
4815
4815
|
createIfMissing: ge().optional()
|
|
4816
4816
|
}),
|
|
4817
4817
|
yn.extend({
|
|
@@ -4820,124 +4820,126 @@ const yn = fe({
|
|
|
4820
4820
|
}),
|
|
4821
4821
|
yn.extend({
|
|
4822
4822
|
operation: ut("createDirectory"),
|
|
4823
|
-
contentPath:
|
|
4823
|
+
contentPath: C().optional(),
|
|
4824
4824
|
mode: Ot().optional(),
|
|
4825
4825
|
ignoreIfExists: ge().optional()
|
|
4826
4826
|
}),
|
|
4827
4827
|
yn.extend({
|
|
4828
4828
|
operation: ut("download"),
|
|
4829
|
-
url:
|
|
4830
|
-
headers: It(
|
|
4829
|
+
url: C().url(),
|
|
4830
|
+
headers: It(C(), C()).optional(),
|
|
4831
4831
|
timeout: Ot().min(1e3).max(3e5).optional()
|
|
4832
4832
|
}),
|
|
4833
4833
|
yn.extend({
|
|
4834
4834
|
operation: ut("gitClone"),
|
|
4835
|
-
gitUrl:
|
|
4836
|
-
gitSecretKey:
|
|
4837
|
-
sourceBranch:
|
|
4838
|
-
targetBranch:
|
|
4835
|
+
gitUrl: C(),
|
|
4836
|
+
gitSecretKey: C().optional(),
|
|
4837
|
+
sourceBranch: C().optional(),
|
|
4838
|
+
targetBranch: C().optional(),
|
|
4839
|
+
originalBranch: C().optional(),
|
|
4840
|
+
defaultBranch: C().optional()
|
|
4839
4841
|
})
|
|
4840
4842
|
]);
|
|
4841
4843
|
var Te = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.ASSIGNED = "assigned", e.IN_PROGRESS = "in_progress", e.WAITING_FOR_INPUT = "waiting_for_input", e.WAITING_FOR_PLAN_APPROVAL = "waiting_for_plan_approval", e.PLAN_APPROVED = "plan_approved", e.PLAN_REJECTED = "plan_rejected", e.COMPLETED = "completed", e.FAILED = "failed", e.CANCELLED = "cancelled", e.RESULT_REJECTED = "result_rejected", e))(Te || {});
|
|
4842
4844
|
const am = fe({
|
|
4843
4845
|
type: dt(["json", "file", "regex"]).describe("Extraction method"),
|
|
4844
|
-
source:
|
|
4846
|
+
source: C().describe("Source to extract from (file path or stdout/stderr)"),
|
|
4845
4847
|
schema: fe({}).passthrough().optional().describe("JSON schema for validation"),
|
|
4846
|
-
pattern:
|
|
4848
|
+
pattern: C().optional().describe("Regex pattern for extraction")
|
|
4847
4849
|
}), cm = fe({
|
|
4848
4850
|
type: dt(["issue_update", "bulk_issue_update", "notification", "webhook"]).describe("Hook type"),
|
|
4849
4851
|
config: yc().describe("Hook-specific configuration")
|
|
4850
4852
|
});
|
|
4851
4853
|
fe({
|
|
4852
|
-
command:
|
|
4853
|
-
args: St(
|
|
4854
|
-
env: It(
|
|
4855
|
-
workingDirectory:
|
|
4854
|
+
command: C().optional().describe("Legacy — unused in SDK mode"),
|
|
4855
|
+
args: St(C()).optional().describe("Legacy — unused in SDK mode"),
|
|
4856
|
+
env: It(C(), C()).optional().describe("Environment variables"),
|
|
4857
|
+
workingDirectory: C().optional().describe("Working directory for command execution"),
|
|
4856
4858
|
fileOperations: St(im).optional().describe("File operations to perform during setup"),
|
|
4857
|
-
gitUrl:
|
|
4858
|
-
gitPrivateKey:
|
|
4859
|
-
gitCommitMessage:
|
|
4859
|
+
gitUrl: C().optional().describe("Git repository URL (populated from project)"),
|
|
4860
|
+
gitPrivateKey: C().optional().describe("Git SSH private key (populated from project)"),
|
|
4861
|
+
gitCommitMessage: C().optional().describe("Commit message for git operations"),
|
|
4860
4862
|
resultExtraction: am.optional().describe("Schema for extracting result data"),
|
|
4861
4863
|
postExecutionHooks: St(cm).optional().describe("Hooks to run after task completion"),
|
|
4862
4864
|
executionMode: dt(["claudeAgentSdk", "openaiAgentSdk", "opencodeSdk", "cursorSdk", "codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),
|
|
4863
4865
|
executionPlan: xc("executionMode", [
|
|
4864
4866
|
fe({
|
|
4865
4867
|
executionMode: ut("claudeAgentSdk"),
|
|
4866
|
-
promptText:
|
|
4868
|
+
promptText: C(),
|
|
4867
4869
|
sdkOptions: fe({
|
|
4868
|
-
model:
|
|
4870
|
+
model: C(),
|
|
4869
4871
|
permissionMode: dt(["plan", "acceptEdits", "bypassPermissions", "ask"]),
|
|
4870
|
-
settingSources: St(
|
|
4872
|
+
settingSources: St(C()),
|
|
4871
4873
|
allowDangerouslySkipPermissions: ge(),
|
|
4872
4874
|
persistSession: ge(),
|
|
4873
4875
|
streamSdkEvents: ge().optional(),
|
|
4874
|
-
allowedTools: St(
|
|
4875
|
-
settings: fe({ enabledPlugins: It(
|
|
4876
|
-
env: It(
|
|
4876
|
+
allowedTools: St(C()).optional(),
|
|
4877
|
+
settings: fe({ enabledPlugins: It(C(), ge()) }),
|
|
4878
|
+
env: It(C(), C()).optional()
|
|
4877
4879
|
}),
|
|
4878
|
-
resume: fe({ sessionId:
|
|
4880
|
+
resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
|
|
4879
4881
|
}),
|
|
4880
4882
|
fe({
|
|
4881
4883
|
executionMode: ut("opencodeSdk"),
|
|
4882
|
-
promptText:
|
|
4884
|
+
promptText: C(),
|
|
4883
4885
|
sdkOptions: fe({
|
|
4884
|
-
provider:
|
|
4885
|
-
model:
|
|
4886
|
-
allowedTools: St(
|
|
4887
|
-
env: It(
|
|
4886
|
+
provider: C(),
|
|
4887
|
+
model: C(),
|
|
4888
|
+
allowedTools: St(C()).optional(),
|
|
4889
|
+
env: It(C(), C()).optional()
|
|
4888
4890
|
}),
|
|
4889
|
-
resume: fe({ sessionId:
|
|
4891
|
+
resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
|
|
4890
4892
|
}),
|
|
4891
4893
|
fe({
|
|
4892
4894
|
executionMode: ut("openaiAgentSdk"),
|
|
4893
|
-
promptText:
|
|
4894
|
-
sdkOptions: fe({ model:
|
|
4895
|
-
resume: fe({ sessionId:
|
|
4895
|
+
promptText: C(),
|
|
4896
|
+
sdkOptions: fe({ model: C(), env: It(C(), C()).optional() }),
|
|
4897
|
+
resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
|
|
4896
4898
|
}),
|
|
4897
4899
|
fe({
|
|
4898
4900
|
executionMode: ut("codexSdk"),
|
|
4899
|
-
promptText:
|
|
4901
|
+
promptText: C(),
|
|
4900
4902
|
sdkOptions: fe({
|
|
4901
|
-
model:
|
|
4903
|
+
model: C().optional(),
|
|
4902
4904
|
sandboxMode: dt(["read-only", "workspace-write", "danger-full-access"]).optional(),
|
|
4903
4905
|
approvalPolicy: dt(["never", "on-request", "on-failure", "untrusted"]).optional(),
|
|
4904
|
-
env: It(
|
|
4906
|
+
env: It(C(), C()).optional()
|
|
4905
4907
|
}),
|
|
4906
|
-
resume: fe({ sessionId:
|
|
4908
|
+
resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
|
|
4907
4909
|
}),
|
|
4908
4910
|
fe({
|
|
4909
4911
|
executionMode: ut("cursorSdk"),
|
|
4910
|
-
promptText:
|
|
4911
|
-
sdkOptions: fe({ model:
|
|
4912
|
-
resume: fe({ sessionId:
|
|
4912
|
+
promptText: C(),
|
|
4913
|
+
sdkOptions: fe({ model: C(), env: It(C(), C()).optional() }),
|
|
4914
|
+
resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
|
|
4913
4915
|
})
|
|
4914
4916
|
]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),
|
|
4915
4917
|
planEnabled: ge().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),
|
|
4916
|
-
planContent:
|
|
4918
|
+
planContent: C().optional().describe("Final approved plan content"),
|
|
4917
4919
|
planApproved: ge().optional().describe("Plan approval status"),
|
|
4918
|
-
planApprovedAt:
|
|
4920
|
+
planApprovedAt: C().optional().describe("ISO timestamp of approval"),
|
|
4919
4921
|
planRejected: ge().optional().describe("Plan rejection flag"),
|
|
4920
|
-
planRejectionFeedback:
|
|
4921
|
-
rejectedPlanContent:
|
|
4922
|
-
planCompletedAt:
|
|
4923
|
-
planRejectedAt:
|
|
4924
|
-
resultRejectionFeedback:
|
|
4925
|
-
resultRejectedAt:
|
|
4926
|
-
resultRejectionHistory: St(fe({ feedback:
|
|
4922
|
+
planRejectionFeedback: C().optional().describe("User rejection feedback"),
|
|
4923
|
+
rejectedPlanContent: C().optional().describe("Previously rejected plan content"),
|
|
4924
|
+
planCompletedAt: C().optional().describe("ISO timestamp when plan was generated"),
|
|
4925
|
+
planRejectedAt: C().optional().describe("ISO timestamp when plan was rejected"),
|
|
4926
|
+
resultRejectionFeedback: C().optional().describe("User feedback when rejecting the result (most recent)"),
|
|
4927
|
+
resultRejectedAt: C().optional().describe("ISO timestamp when result was rejected (most recent)"),
|
|
4928
|
+
resultRejectionHistory: St(fe({ feedback: C(), rejectedAt: C() })).optional().describe("All rejection messages in chronological order"),
|
|
4927
4929
|
notificationChannelPlanMessageId: Ot().optional(),
|
|
4928
|
-
notificationChannelPlanMessageSentAt:
|
|
4930
|
+
notificationChannelPlanMessageSentAt: C().optional(),
|
|
4929
4931
|
notificationChannelCompletedMessageId: Ot().optional(),
|
|
4930
4932
|
notificationChannelFailedMessageId: Ot().optional(),
|
|
4931
4933
|
streamSdkEvents: ge().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),
|
|
4932
|
-
originalTaskSummary:
|
|
4934
|
+
originalTaskSummary: C().optional().describe("Summary from the original task run (passed to retry for historical context)"),
|
|
4933
4935
|
planWasApproved: ge().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),
|
|
4934
4936
|
planComments: St(fe({
|
|
4935
|
-
id:
|
|
4936
|
-
selectedText:
|
|
4937
|
+
id: C(),
|
|
4938
|
+
selectedText: C(),
|
|
4937
4939
|
startOffset: Ot(),
|
|
4938
4940
|
endOffset: Ot(),
|
|
4939
|
-
commentText:
|
|
4940
|
-
createdAt:
|
|
4941
|
+
commentText: C(),
|
|
4942
|
+
createdAt: C()
|
|
4941
4943
|
})).optional().describe("Inline review comments attached to the plan"),
|
|
4942
4944
|
hasAiConfigSecrets: ge().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),
|
|
4943
4945
|
hasCredentials: ge().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),
|
|
@@ -5200,18 +5202,18 @@ function Em() {
|
|
|
5200
5202
|
594(a, d) {
|
|
5201
5203
|
var l = this && this.__extends || /* @__PURE__ */ (function() {
|
|
5202
5204
|
var N = function(T, S) {
|
|
5203
|
-
return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
5204
|
-
|
|
5205
|
-
} || function(
|
|
5206
|
-
for (var J in D) D.hasOwnProperty(J) && (
|
|
5205
|
+
return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, D) {
|
|
5206
|
+
P.__proto__ = D;
|
|
5207
|
+
} || function(P, D) {
|
|
5208
|
+
for (var J in D) D.hasOwnProperty(J) && (P[J] = D[J]);
|
|
5207
5209
|
}, N(T, S);
|
|
5208
5210
|
};
|
|
5209
5211
|
return function(T, S) {
|
|
5210
5212
|
N(T, S);
|
|
5211
|
-
function
|
|
5213
|
+
function P() {
|
|
5212
5214
|
this.constructor = T;
|
|
5213
5215
|
}
|
|
5214
|
-
T.prototype = S === null ? Object.create(S) : (
|
|
5216
|
+
T.prototype = S === null ? Object.create(S) : (P.prototype = S.prototype, new P());
|
|
5215
5217
|
};
|
|
5216
5218
|
})();
|
|
5217
5219
|
Object.defineProperty(d, "__esModule", { value: !0 });
|
|
@@ -5224,13 +5226,13 @@ function Em() {
|
|
|
5224
5226
|
return N.prototype.encodedLength = function(T) {
|
|
5225
5227
|
return this._paddingCharacter ? (T + 2) / 3 * 4 | 0 : (T * 8 + 5) / 6 | 0;
|
|
5226
5228
|
}, N.prototype.encode = function(T) {
|
|
5227
|
-
for (var S = "",
|
|
5228
|
-
var D = T[
|
|
5229
|
+
for (var S = "", P = 0; P < T.length - 2; P += 3) {
|
|
5230
|
+
var D = T[P] << 16 | T[P + 1] << 8 | T[P + 2];
|
|
5229
5231
|
S += this._encodeByte(D >>> 18 & 63), S += this._encodeByte(D >>> 12 & 63), S += this._encodeByte(D >>> 6 & 63), S += this._encodeByte(D >>> 0 & 63);
|
|
5230
5232
|
}
|
|
5231
|
-
var J = T.length -
|
|
5233
|
+
var J = T.length - P;
|
|
5232
5234
|
if (J > 0) {
|
|
5233
|
-
var D = T[
|
|
5235
|
+
var D = T[P] << 16 | (J === 2 ? T[P + 1] << 8 : 0);
|
|
5234
5236
|
S += this._encodeByte(D >>> 18 & 63), S += this._encodeByte(D >>> 12 & 63), J === 2 ? S += this._encodeByte(D >>> 6 & 63) : S += this._paddingCharacter || "", S += this._paddingCharacter || "";
|
|
5235
5237
|
}
|
|
5236
5238
|
return S;
|
|
@@ -5241,9 +5243,9 @@ function Em() {
|
|
|
5241
5243
|
}, N.prototype.decode = function(T) {
|
|
5242
5244
|
if (T.length === 0)
|
|
5243
5245
|
return new Uint8Array(0);
|
|
5244
|
-
for (var S = this._getPaddingLength(T),
|
|
5246
|
+
for (var S = this._getPaddingLength(T), P = T.length - S, D = new Uint8Array(this.maxDecodedLength(P)), J = 0, he = 0, Oe = 0, nt = 0, te = 0, Se = 0, Fe = 0; he < P - 4; he += 4)
|
|
5245
5247
|
nt = this._decodeChar(T.charCodeAt(he + 0)), te = this._decodeChar(T.charCodeAt(he + 1)), Se = this._decodeChar(T.charCodeAt(he + 2)), Fe = this._decodeChar(T.charCodeAt(he + 3)), D[J++] = nt << 2 | te >>> 4, D[J++] = te << 4 | Se >>> 2, D[J++] = Se << 6 | Fe, Oe |= nt & p, Oe |= te & p, Oe |= Se & p, Oe |= Fe & p;
|
|
5246
|
-
if (he <
|
|
5248
|
+
if (he < P - 1 && (nt = this._decodeChar(T.charCodeAt(he)), te = this._decodeChar(T.charCodeAt(he + 1)), D[J++] = nt << 2 | te >>> 4, Oe |= nt & p, Oe |= te & p), he < P - 2 && (Se = this._decodeChar(T.charCodeAt(he + 2)), D[J++] = te << 4 | Se >>> 2, Oe |= Se & p), he < P - 3 && (Fe = this._decodeChar(T.charCodeAt(he + 3)), D[J++] = Se << 6 | Fe, Oe |= Fe & p), Oe !== 0)
|
|
5247
5249
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
5248
5250
|
return D;
|
|
5249
5251
|
}, N.prototype._encodeByte = function(T) {
|
|
@@ -5255,7 +5257,7 @@ function Em() {
|
|
|
5255
5257
|
}, N.prototype._getPaddingLength = function(T) {
|
|
5256
5258
|
var S = 0;
|
|
5257
5259
|
if (this._paddingCharacter) {
|
|
5258
|
-
for (var
|
|
5260
|
+
for (var P = T.length - 1; P >= 0 && T[P] === this._paddingCharacter; P--)
|
|
5259
5261
|
S++;
|
|
5260
5262
|
if (T.length < 4 || S > 2)
|
|
5261
5263
|
throw new Error("Base64Coder: incorrect padding");
|
|
@@ -5282,11 +5284,11 @@ function Em() {
|
|
|
5282
5284
|
return N !== null && N.apply(this, arguments) || this;
|
|
5283
5285
|
}
|
|
5284
5286
|
return T.prototype._encodeByte = function(S) {
|
|
5285
|
-
var
|
|
5286
|
-
return
|
|
5287
|
+
var P = S;
|
|
5288
|
+
return P += 65, P += 25 - S >>> 8 & 6, P += 51 - S >>> 8 & -75, P += 61 - S >>> 8 & -13, P += 62 - S >>> 8 & 49, String.fromCharCode(P);
|
|
5287
5289
|
}, T.prototype._decodeChar = function(S) {
|
|
5288
|
-
var
|
|
5289
|
-
return
|
|
5290
|
+
var P = p;
|
|
5291
|
+
return P += (44 - S & S - 46) >>> 8 & -p + S - 45 + 62, P += (94 - S & S - 96) >>> 8 & -p + S - 95 + 63, P += (47 - S & S - 58) >>> 8 & -p + S - 48 + 52, P += (64 - S & S - 91) >>> 8 & -p + S - 65 + 0, P += (96 - S & S - 123) >>> 8 & -p + S - 97 + 26, P;
|
|
5290
5292
|
}, T;
|
|
5291
5293
|
})(h)
|
|
5292
5294
|
);
|
|
@@ -5370,10 +5372,10 @@ function Em() {
|
|
|
5370
5372
|
}
|
|
5371
5373
|
create(s) {
|
|
5372
5374
|
this.lastId++;
|
|
5373
|
-
var c = this.lastId, f = this.prefix + c, b = this.name + "[" + c + "]", x = !1,
|
|
5375
|
+
var c = this.lastId, f = this.prefix + c, b = this.name + "[" + c + "]", x = !1, R = function() {
|
|
5374
5376
|
x || (s.apply(null, arguments), x = !0);
|
|
5375
5377
|
};
|
|
5376
|
-
return this[c] =
|
|
5378
|
+
return this[c] = R, { number: c, id: f, name: b, callback: R };
|
|
5377
5379
|
}
|
|
5378
5380
|
remove(s) {
|
|
5379
5381
|
delete this[s.number];
|
|
@@ -5418,8 +5420,8 @@ function Em() {
|
|
|
5418
5420
|
b.loading[s].push(f);
|
|
5419
5421
|
else {
|
|
5420
5422
|
b.loading[s] = [f];
|
|
5421
|
-
var x = G.createScriptRequest(b.getPath(s, c)),
|
|
5422
|
-
if (b.receivers.remove(
|
|
5423
|
+
var x = G.createScriptRequest(b.getPath(s, c)), R = b.receivers.create(function(O) {
|
|
5424
|
+
if (b.receivers.remove(R), b.loading[s]) {
|
|
5423
5425
|
var B = b.loading[s];
|
|
5424
5426
|
delete b.loading[s];
|
|
5425
5427
|
for (var ne = function(Ce) {
|
|
@@ -5428,7 +5430,7 @@ function Em() {
|
|
|
5428
5430
|
B[se](O, ne);
|
|
5429
5431
|
}
|
|
5430
5432
|
});
|
|
5431
|
-
x.send(
|
|
5433
|
+
x.send(R);
|
|
5432
5434
|
}
|
|
5433
5435
|
}
|
|
5434
5436
|
getRoot(s) {
|
|
@@ -5481,7 +5483,7 @@ function Em() {
|
|
|
5481
5483
|
super(s), Object.setPrototypeOf(this, new.target.prototype);
|
|
5482
5484
|
}
|
|
5483
5485
|
}
|
|
5484
|
-
class
|
|
5486
|
+
class P extends Error {
|
|
5485
5487
|
constructor(s) {
|
|
5486
5488
|
super(s), Object.setPrototypeOf(this, new.target.prototype);
|
|
5487
5489
|
}
|
|
@@ -5524,12 +5526,12 @@ function Em() {
|
|
|
5524
5526
|
const Xt = function(u, s, c, f, b) {
|
|
5525
5527
|
const x = G.createXHR();
|
|
5526
5528
|
x.open("POST", c.endpoint, !0), x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
5527
|
-
for (var
|
|
5528
|
-
x.setRequestHeader(
|
|
5529
|
+
for (var R in c.headers)
|
|
5530
|
+
x.setRequestHeader(R, c.headers[R]);
|
|
5529
5531
|
if (c.headersProvider != null) {
|
|
5530
5532
|
let O = c.headersProvider();
|
|
5531
|
-
for (var
|
|
5532
|
-
x.setRequestHeader(
|
|
5533
|
+
for (var R in O)
|
|
5534
|
+
x.setRequestHeader(R, O[R]);
|
|
5533
5535
|
}
|
|
5534
5536
|
return x.onreadystatechange = function() {
|
|
5535
5537
|
if (x.readyState === 4)
|
|
@@ -5724,17 +5726,17 @@ function Em() {
|
|
|
5724
5726
|
function Kt(u) {
|
|
5725
5727
|
var s = [], c = [];
|
|
5726
5728
|
return (function f(b, x) {
|
|
5727
|
-
var
|
|
5729
|
+
var R, O, B;
|
|
5728
5730
|
switch (typeof b) {
|
|
5729
5731
|
case "object":
|
|
5730
5732
|
if (!b)
|
|
5731
5733
|
return null;
|
|
5732
|
-
for (
|
|
5733
|
-
if (s[
|
|
5734
|
-
return { $ref: c[
|
|
5734
|
+
for (R = 0; R < s.length; R += 1)
|
|
5735
|
+
if (s[R] === b)
|
|
5736
|
+
return { $ref: c[R] };
|
|
5735
5737
|
if (s.push(b), c.push(x), Object.prototype.toString.apply(b) === "[object Array]")
|
|
5736
|
-
for (B = [],
|
|
5737
|
-
B[
|
|
5738
|
+
for (B = [], R = 0; R < b.length; R += 1)
|
|
5739
|
+
B[R] = f(b[R], x + "[" + R + "]");
|
|
5738
5740
|
else {
|
|
5739
5741
|
B = {};
|
|
5740
5742
|
for (O in b)
|
|
@@ -5786,13 +5788,13 @@ function Em() {
|
|
|
5786
5788
|
(c.headers !== void 0 || c.headersProvider != null) && de.warn(`To send headers with the ${f.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
5787
5789
|
var x = u.nextAuthCallbackID.toString();
|
|
5788
5790
|
u.nextAuthCallbackID++;
|
|
5789
|
-
var
|
|
5791
|
+
var R = u.getDocument(), O = R.createElement("script");
|
|
5790
5792
|
u.auth_callbacks[x] = function(se) {
|
|
5791
5793
|
b(null, se);
|
|
5792
5794
|
};
|
|
5793
5795
|
var B = "Pusher.auth_callbacks['" + x + "']";
|
|
5794
5796
|
O.src = c.endpoint + "?callback=" + encodeURIComponent(B) + "&" + s;
|
|
5795
|
-
var ne =
|
|
5797
|
+
var ne = R.getElementsByTagName("head")[0] || R.documentElement;
|
|
5796
5798
|
ne.insertBefore(O, ne.firstChild);
|
|
5797
5799
|
};
|
|
5798
5800
|
const hr = Fr;
|
|
@@ -5832,10 +5834,10 @@ function Em() {
|
|
|
5832
5834
|
}
|
|
5833
5835
|
var On = function(u, s) {
|
|
5834
5836
|
return function(c, f) {
|
|
5835
|
-
var b = "http" + (s ? "s" : "") + "://", x = b + (u.host || u.options.host) + u.options.path,
|
|
5836
|
-
h.remove(O),
|
|
5837
|
+
var b = "http" + (s ? "s" : "") + "://", x = b + (u.host || u.options.host) + u.options.path, R = G.createJSONPRequest(x, c), O = G.ScriptReceivers.create(function(B, ne) {
|
|
5838
|
+
h.remove(O), R.cleanup(), ne && ne.host && (u.host = ne.host), f && f(B, ne);
|
|
5837
5839
|
});
|
|
5838
|
-
|
|
5840
|
+
R.send(O);
|
|
5839
5841
|
};
|
|
5840
5842
|
}, kt = {
|
|
5841
5843
|
name: "jsonp",
|
|
@@ -5928,10 +5930,10 @@ function Em() {
|
|
|
5928
5930
|
emit(s, c, f) {
|
|
5929
5931
|
for (var b = 0; b < this.global_callbacks.length; b++)
|
|
5930
5932
|
this.global_callbacks[b](s, c);
|
|
5931
|
-
var x = this.callbacks.get(s),
|
|
5932
|
-
if (f ?
|
|
5933
|
+
var x = this.callbacks.get(s), R = [];
|
|
5934
|
+
if (f ? R.push(c, f) : c && R.push(c), x && x.length > 0)
|
|
5933
5935
|
for (var b = 0; b < x.length; b++)
|
|
5934
|
-
x[b].fn.apply(x[b].context || window,
|
|
5936
|
+
x[b].fn.apply(x[b].context || window, R);
|
|
5935
5937
|
else this.failThrough && this.failThrough(s, c);
|
|
5936
5938
|
return this;
|
|
5937
5939
|
}
|
|
@@ -6119,13 +6121,13 @@ function Em() {
|
|
|
6119
6121
|
b = re({}, b, {
|
|
6120
6122
|
activityTimeout: this.pingDelay
|
|
6121
6123
|
});
|
|
6122
|
-
var x = this.transport.createConnection(s, c, f, b),
|
|
6123
|
-
x.unbind("open", O), x.bind("closed", B),
|
|
6124
|
+
var x = this.transport.createConnection(s, c, f, b), R = null, O = function() {
|
|
6125
|
+
x.unbind("open", O), x.bind("closed", B), R = we.now();
|
|
6124
6126
|
}, B = (ne) => {
|
|
6125
6127
|
if (x.unbind("closed", B), ne.code === 1002 || ne.code === 1003)
|
|
6126
6128
|
this.manager.reportDeath();
|
|
6127
|
-
else if (!ne.wasClean &&
|
|
6128
|
-
var se = we.now() -
|
|
6129
|
+
else if (!ne.wasClean && R) {
|
|
6130
|
+
var se = we.now() - R;
|
|
6129
6131
|
se < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(se / 2, this.minPingDelay));
|
|
6130
6132
|
}
|
|
6131
6133
|
};
|
|
@@ -6409,23 +6411,23 @@ function Em() {
|
|
|
6409
6411
|
}
|
|
6410
6412
|
var xe = function(u, s, c, f) {
|
|
6411
6413
|
function b(x) {
|
|
6412
|
-
return x instanceof c ? x : new c(function(
|
|
6413
|
-
|
|
6414
|
+
return x instanceof c ? x : new c(function(R) {
|
|
6415
|
+
R(x);
|
|
6414
6416
|
});
|
|
6415
6417
|
}
|
|
6416
|
-
return new (c || (c = Promise))(function(x,
|
|
6418
|
+
return new (c || (c = Promise))(function(x, R) {
|
|
6417
6419
|
function O(se) {
|
|
6418
6420
|
try {
|
|
6419
6421
|
ne(f.next(se));
|
|
6420
6422
|
} catch (Ce) {
|
|
6421
|
-
|
|
6423
|
+
R(Ce);
|
|
6422
6424
|
}
|
|
6423
6425
|
}
|
|
6424
6426
|
function B(se) {
|
|
6425
6427
|
try {
|
|
6426
6428
|
ne(f.throw(se));
|
|
6427
6429
|
} catch (Ce) {
|
|
6428
|
-
|
|
6430
|
+
R(Ce);
|
|
6429
6431
|
}
|
|
6430
6432
|
}
|
|
6431
6433
|
function ne(se) {
|
|
@@ -6447,8 +6449,8 @@ function Em() {
|
|
|
6447
6449
|
} else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
|
|
6448
6450
|
this.members.setMyID(this.pusher.user.user_data.id);
|
|
6449
6451
|
else {
|
|
6450
|
-
let
|
|
6451
|
-
de.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${
|
|
6452
|
+
let R = N.buildLogSuffix("authorizationEndpoint");
|
|
6453
|
+
de.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${R}, or the user should be signed in.`), c("Invalid auth response");
|
|
6452
6454
|
return;
|
|
6453
6455
|
}
|
|
6454
6456
|
c(f, b);
|
|
@@ -6540,8 +6542,8 @@ function Em() {
|
|
|
6540
6542
|
}
|
|
6541
6543
|
let x = this.nacl.secretbox.open(f, b, this.key);
|
|
6542
6544
|
if (x === null) {
|
|
6543
|
-
de.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (
|
|
6544
|
-
if (
|
|
6545
|
+
de.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (R, O) => {
|
|
6546
|
+
if (R) {
|
|
6545
6547
|
de.error(`Failed to make a request to the authEndpoint: ${O}. Unable to fetch new key, so dropping encrypted event`);
|
|
6546
6548
|
return;
|
|
6547
6549
|
}
|
|
@@ -6758,7 +6760,7 @@ function Em() {
|
|
|
6758
6760
|
if (u.indexOf("presence-") === 0)
|
|
6759
6761
|
return Zt.createPresenceChannel(u, s);
|
|
6760
6762
|
if (u.indexOf("#") === 0)
|
|
6761
|
-
throw new
|
|
6763
|
+
throw new P('Cannot create a channel with name "' + u + '".');
|
|
6762
6764
|
return Zt.createChannel(u, s);
|
|
6763
6765
|
}
|
|
6764
6766
|
}
|
|
@@ -6817,30 +6819,30 @@ function Em() {
|
|
|
6817
6819
|
return ur(this.strategies, we.method("isSupported"));
|
|
6818
6820
|
}
|
|
6819
6821
|
connect(s, c) {
|
|
6820
|
-
var f = this.strategies, b = 0, x = this.timeout,
|
|
6821
|
-
ne ? c(null, ne) : (b = b + 1, this.loop && (b = b % f.length), b < f.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))),
|
|
6822
|
+
var f = this.strategies, b = 0, x = this.timeout, R = null, O = (B, ne) => {
|
|
6823
|
+
ne ? c(null, ne) : (b = b + 1, this.loop && (b = b % f.length), b < f.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), R = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O)) : c(!0));
|
|
6822
6824
|
};
|
|
6823
|
-
return
|
|
6825
|
+
return R = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O), {
|
|
6824
6826
|
abort: function() {
|
|
6825
|
-
|
|
6827
|
+
R.abort();
|
|
6826
6828
|
},
|
|
6827
6829
|
forceMinPriority: function(B) {
|
|
6828
|
-
s = B,
|
|
6830
|
+
s = B, R && R.forceMinPriority(B);
|
|
6829
6831
|
}
|
|
6830
6832
|
};
|
|
6831
6833
|
}
|
|
6832
6834
|
tryStrategy(s, c, f, b) {
|
|
6833
|
-
var x = null,
|
|
6835
|
+
var x = null, R = null;
|
|
6834
6836
|
return f.timeout > 0 && (x = new Ae(f.timeout, function() {
|
|
6835
|
-
|
|
6836
|
-
})),
|
|
6837
|
+
R.abort(), b(!0);
|
|
6838
|
+
})), R = s.connect(c, function(O, B) {
|
|
6837
6839
|
O && x && x.isRunning() && !f.failFast || (x && x.ensureAborted(), b(O, B));
|
|
6838
6840
|
}), {
|
|
6839
6841
|
abort: function() {
|
|
6840
|
-
x && x.ensureAborted(),
|
|
6842
|
+
x && x.ensureAborted(), R.abort();
|
|
6841
6843
|
},
|
|
6842
6844
|
forceMinPriority: function(O) {
|
|
6843
|
-
|
|
6845
|
+
R.forceMinPriority(O);
|
|
6844
6846
|
}
|
|
6845
6847
|
};
|
|
6846
6848
|
}
|
|
@@ -6854,20 +6856,20 @@ function Em() {
|
|
|
6854
6856
|
}
|
|
6855
6857
|
connect(s, c) {
|
|
6856
6858
|
return Al(this.strategies, s, function(f, b) {
|
|
6857
|
-
return function(x,
|
|
6859
|
+
return function(x, R) {
|
|
6858
6860
|
if (b[f].error = x, x) {
|
|
6859
6861
|
Cl(b) && c(!0);
|
|
6860
6862
|
return;
|
|
6861
6863
|
}
|
|
6862
6864
|
Ze(b, function(O) {
|
|
6863
|
-
O.forceMinPriority(
|
|
6864
|
-
}), c(null,
|
|
6865
|
+
O.forceMinPriority(R.transport.priority);
|
|
6866
|
+
}), c(null, R);
|
|
6865
6867
|
};
|
|
6866
6868
|
});
|
|
6867
6869
|
}
|
|
6868
6870
|
}
|
|
6869
6871
|
function Al(u, s, c) {
|
|
6870
|
-
var f = Mt(u, function(b, x,
|
|
6872
|
+
var f = Mt(u, function(b, x, R, O) {
|
|
6871
6873
|
return b.connect(s, c(x, O));
|
|
6872
6874
|
});
|
|
6873
6875
|
return {
|
|
@@ -6897,20 +6899,20 @@ function Em() {
|
|
|
6897
6899
|
return this.strategy.isSupported();
|
|
6898
6900
|
}
|
|
6899
6901
|
connect(s, c) {
|
|
6900
|
-
var f = this.usingTLS, b = Ll(f), x = b && b.cacheSkipCount ? b.cacheSkipCount : 0,
|
|
6902
|
+
var f = this.usingTLS, b = Ll(f), x = b && b.cacheSkipCount ? b.cacheSkipCount : 0, R = [this.strategy];
|
|
6901
6903
|
if (b && b.timestamp + this.ttl >= we.now()) {
|
|
6902
6904
|
var O = this.transports[b.transport];
|
|
6903
6905
|
O && (["ws", "wss"].includes(b.transport) || x > 3 ? (this.timeline.info({
|
|
6904
6906
|
cached: !0,
|
|
6905
6907
|
transport: b.transport,
|
|
6906
6908
|
latency: b.latency
|
|
6907
|
-
}),
|
|
6909
|
+
}), R.push(new _n([O], {
|
|
6908
6910
|
timeout: b.latency * 2 + 1e3,
|
|
6909
6911
|
failFast: !0
|
|
6910
6912
|
}))) : x++);
|
|
6911
6913
|
}
|
|
6912
|
-
var B = we.now(), ne =
|
|
6913
|
-
Ce ? (fi(f),
|
|
6914
|
+
var B = we.now(), ne = R.pop().connect(s, function se(Ce, oo) {
|
|
6915
|
+
Ce ? (fi(f), R.length > 0 ? (B = we.now(), ne = R.pop().connect(s, se)) : c(Ce)) : (Il(f, oo.transport.name, we.now() - B, x), c(null, oo));
|
|
6914
6916
|
});
|
|
6915
6917
|
return {
|
|
6916
6918
|
abort: function() {
|
|
@@ -6973,8 +6975,8 @@ function Em() {
|
|
|
6973
6975
|
abort: function() {
|
|
6974
6976
|
x.ensureAborted(), b && b.abort();
|
|
6975
6977
|
},
|
|
6976
|
-
forceMinPriority: function(
|
|
6977
|
-
s =
|
|
6978
|
+
forceMinPriority: function(R) {
|
|
6979
|
+
s = R, b && b.forceMinPriority(R);
|
|
6978
6980
|
}
|
|
6979
6981
|
};
|
|
6980
6982
|
}
|
|
@@ -7021,7 +7023,7 @@ function Em() {
|
|
|
7021
7023
|
hostNonTLS: u.wsHost + ":" + u.wsPort,
|
|
7022
7024
|
hostTLS: u.wsHost + ":" + u.wssPort,
|
|
7023
7025
|
httpPath: u.wsPath
|
|
7024
|
-
}),
|
|
7026
|
+
}), R = Object.assign({}, x, {
|
|
7025
7027
|
useTLS: !0
|
|
7026
7028
|
}), O = Object.assign({}, s, {
|
|
7027
7029
|
hostNonTLS: u.httpHost + ":" + u.httpPort,
|
|
@@ -7038,7 +7040,7 @@ function Em() {
|
|
|
7038
7040
|
lives: 2,
|
|
7039
7041
|
minPingDelay: 1e4,
|
|
7040
7042
|
maxPingDelay: u.activityTimeout
|
|
7041
|
-
}), Ce = b("ws", "ws", 3, x, ne), oo = b("wss", "ws", 3,
|
|
7043
|
+
}), Ce = b("ws", "ws", 3, x, ne), oo = b("wss", "ws", 3, R, ne), Eu = b("sockjs", "sockjs", 1, O), yi = b("xhr_streaming", "xhr_streaming", 1, O, se), Au = b("xdr_streaming", "xdr_streaming", 1, O, se), wi = b("xhr_polling", "xhr_polling", 1, O), Cu = b("xdr_polling", "xdr_polling", 1, O), xi = new _n([Ce], B), Pu = new _n([oo], B), Ru = new _n([Eu], B), Si = new _n([
|
|
7042
7044
|
new vr(yr(yi), yi, Au)
|
|
7043
7045
|
], B), Ti = new _n([
|
|
7044
7046
|
new vr(yr(wi), wi, Cu)
|
|
@@ -7463,8 +7465,8 @@ function Em() {
|
|
|
7463
7465
|
if (this.priority < s)
|
|
7464
7466
|
return ki(new J(), c);
|
|
7465
7467
|
} else return ki(new te(), c);
|
|
7466
|
-
var f = !1, b = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null,
|
|
7467
|
-
b.unbind("initialized",
|
|
7468
|
+
var f = !1, b = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, R = function() {
|
|
7469
|
+
b.unbind("initialized", R), b.connect();
|
|
7468
7470
|
}, O = function() {
|
|
7469
7471
|
x = Zt.createHandshake(b, function(Ce) {
|
|
7470
7472
|
f = !0, se(), c(null, Ce);
|
|
@@ -7476,9 +7478,9 @@ function Em() {
|
|
|
7476
7478
|
var Ce;
|
|
7477
7479
|
Ce = Ge(b), c(new he(Ce));
|
|
7478
7480
|
}, se = function() {
|
|
7479
|
-
b.unbind("initialized",
|
|
7481
|
+
b.unbind("initialized", R), b.unbind("open", O), b.unbind("error", B), b.unbind("closed", ne);
|
|
7480
7482
|
};
|
|
7481
|
-
return b.bind("initialized",
|
|
7483
|
+
return b.bind("initialized", R), b.bind("open", O), b.bind("error", B), b.bind("closed", ne), b.initialize(), {
|
|
7482
7484
|
abort: () => {
|
|
7483
7485
|
f || (se(), x ? x.close() : b.close());
|
|
7484
7486
|
},
|
|
@@ -7500,11 +7502,11 @@ function Em() {
|
|
|
7500
7502
|
}
|
|
7501
7503
|
const { Transports: ou } = G;
|
|
7502
7504
|
var su = function(u, s, c, f, b, x) {
|
|
7503
|
-
var
|
|
7504
|
-
if (!
|
|
7505
|
+
var R = ou[c];
|
|
7506
|
+
if (!R)
|
|
7505
7507
|
throw new nt(c);
|
|
7506
7508
|
var O = (!u.enabledTransports || je(u.enabledTransports, s) !== -1) && (!u.disabledTransports || je(u.disabledTransports, s) === -1), B;
|
|
7507
|
-
return O ? (b = Object.assign({ ignoreNullOrigin: u.ignoreNullOrigin }, b), B = new ru(s, f, x ? x.getAssistant(
|
|
7509
|
+
return O ? (b = Object.assign({ ignoreNullOrigin: u.ignoreNullOrigin }, b), B = new ru(s, f, x ? x.getAssistant(R) : R, b)) : B = iu, B;
|
|
7508
7510
|
}, iu = {
|
|
7509
7511
|
isSupported: function() {
|
|
7510
7512
|
return !1;
|
|
@@ -7574,8 +7576,8 @@ function Em() {
|
|
|
7574
7576
|
}
|
|
7575
7577
|
};
|
|
7576
7578
|
return (b, x) => {
|
|
7577
|
-
const
|
|
7578
|
-
c(
|
|
7579
|
+
const R = u.channel(b.channelName);
|
|
7580
|
+
c(R, f).authorize(b.socketId, x);
|
|
7579
7581
|
};
|
|
7580
7582
|
};
|
|
7581
7583
|
function _i(u, s) {
|
|
@@ -7759,12 +7761,12 @@ function Em() {
|
|
|
7759
7761
|
}), this.connection.bind("connected", () => {
|
|
7760
7762
|
this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
|
|
7761
7763
|
}), this.connection.bind("message", (b) => {
|
|
7762
|
-
var x = b.event,
|
|
7764
|
+
var x = b.event, R = x.indexOf("pusher_internal:") === 0;
|
|
7763
7765
|
if (b.channel) {
|
|
7764
7766
|
var O = this.channel(b.channel);
|
|
7765
7767
|
O && O.handleEvent(b);
|
|
7766
7768
|
}
|
|
7767
|
-
|
|
7769
|
+
R || this.global_emitter.emit(b.event, b.data);
|
|
7768
7770
|
}), this.connection.bind("connecting", () => {
|
|
7769
7771
|
this.channels.disconnect();
|
|
7770
7772
|
}), this.connection.bind("disconnected", () => {
|
|
@@ -8214,9 +8216,9 @@ ${y}`, o = o.substring(0, o.length - k.text.length) + Z.text;
|
|
|
8214
8216
|
`, e = e.substring(m.length + 1), l = !0), !l) {
|
|
8215
8217
|
let E = this.rules.other.nextBulletRegex(y), Z = this.rules.other.hrRegex(y), ee = this.rules.other.fencesBeginRegex(y), N = this.rules.other.headingBeginRegex(y), T = this.rules.other.htmlBeginRegex(y), S = this.rules.other.blockquoteBeginRegex(y);
|
|
8216
8218
|
for (; e; ) {
|
|
8217
|
-
let
|
|
8219
|
+
let P = e.split(`
|
|
8218
8220
|
`, 1)[0], D;
|
|
8219
|
-
if (m =
|
|
8221
|
+
if (m = P, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), D = m) : D = m.replace(this.rules.other.tabCharGlobal, " "), ee.test(m) || N.test(m) || T.test(m) || S.test(m) || E.test(m) || Z.test(m)) break;
|
|
8220
8222
|
if (D.search(this.rules.other.nonSpaceChar) >= y || !m.trim()) h += `
|
|
8221
8223
|
` + D.slice(y);
|
|
8222
8224
|
else {
|
|
@@ -8224,8 +8226,8 @@ ${y}`, o = o.substring(0, o.length - k.text.length) + Z.text;
|
|
|
8224
8226
|
h += `
|
|
8225
8227
|
` + m;
|
|
8226
8228
|
}
|
|
8227
|
-
k = !m.trim(), p +=
|
|
8228
|
-
`, e = e.substring(
|
|
8229
|
+
k = !m.trim(), p += P + `
|
|
8230
|
+
`, e = e.substring(P.length + 1), g = D.slice(y);
|
|
8229
8231
|
}
|
|
8230
8232
|
}
|
|
8231
8233
|
o.loose || (a ? o.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), o.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), o.raw += p;
|
|
@@ -9352,7 +9354,7 @@ function Wc() {
|
|
|
9352
9354
|
const M = n.createElement("template");
|
|
9353
9355
|
M.content && M.content.ownerDocument && (n = M.content.ownerDocument);
|
|
9354
9356
|
}
|
|
9355
|
-
let S,
|
|
9357
|
+
let S, P = "";
|
|
9356
9358
|
const {
|
|
9357
9359
|
implementation: D,
|
|
9358
9360
|
createNodeIterator: J,
|
|
@@ -9439,9 +9441,9 @@ function Wc() {
|
|
|
9439
9441
|
throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
9440
9442
|
if (typeof _.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
9441
9443
|
throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
9442
|
-
S = _.TRUSTED_TYPES_POLICY,
|
|
9444
|
+
S = _.TRUSTED_TYPES_POLICY, P = S.createHTML("");
|
|
9443
9445
|
} else
|
|
9444
|
-
S === void 0 && (S = ek(k, o)), S !== null && typeof
|
|
9446
|
+
S === void 0 && (S = ek(k, o)), S !== null && typeof P == "string" && (P = S.createHTML(""));
|
|
9445
9447
|
Ke && Ke(_), en = _;
|
|
9446
9448
|
}
|
|
9447
9449
|
}, gr = Y({}, [..._s, ...vs, ...Hb]), Wr = Y({}, [...ys, ...Fb]), os = function(_) {
|
|
@@ -9502,7 +9504,7 @@ function Wc() {
|
|
|
9502
9504
|
if (!A || !A.documentElement) {
|
|
9503
9505
|
A = D.createDocument(Qt, "template", null);
|
|
9504
9506
|
try {
|
|
9505
|
-
A.documentElement.innerHTML = bn ?
|
|
9507
|
+
A.documentElement.innerHTML = bn ? P : ie;
|
|
9506
9508
|
} catch (xe) {
|
|
9507
9509
|
}
|
|
9508
9510
|
}
|
|
@@ -9684,7 +9686,7 @@ function Wc() {
|
|
|
9684
9686
|
M.indexOf("<") === -1)
|
|
9685
9687
|
return S && gn ? S.createHTML(M) : M;
|
|
9686
9688
|
if (A = Jr(M), !A)
|
|
9687
|
-
return st ? null : gn ?
|
|
9689
|
+
return st ? null : gn ? P : "";
|
|
9688
9690
|
}
|
|
9689
9691
|
A && Mt && at(A.firstChild);
|
|
9690
9692
|
const xe = mr(mn ? M : A);
|
|
@@ -10595,7 +10597,7 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
|
|
|
10595
10597
|
}, { passive: !0 });
|
|
10596
10598
|
const y = X.querySelector(".ap-sdk-panel__body"), E = mk(y, n, (ve = r == null ? void 0 : r.id) != null ? ve : null);
|
|
10597
10599
|
document.body.appendChild(X), Xe = Us(), g.currentPickedEl && Xe.update(g.currentPickedEl), Wt(X), Ys(X, Js);
|
|
10598
|
-
const Z = X.querySelector("[data-ap-close]"), ee = X.querySelector("[data-ap-cancel]"), N = X.querySelector("[data-ap-submit]"), T = X.querySelector("[data-ap-note]"), S = X.querySelector("[data-ap-status]"),
|
|
10600
|
+
const Z = X.querySelector("[data-ap-close]"), ee = X.querySelector("[data-ap-cancel]"), N = X.querySelector("[data-ap-submit]"), T = X.querySelector("[data-ap-note]"), S = X.querySelector("[data-ap-status]"), P = X.querySelectorAll("[data-ap-type]"), D = X.querySelector("[data-ap-pick-list]"), J = X.querySelector("[data-ap-context]"), he = X.querySelector("[data-ap-add-another]"), Oe = X.querySelector("[data-ap-pick-actions]"), nt = X.querySelector("[data-ap-select-parent]"), te = X.querySelector("[data-ap-reselect]"), Se = () => {
|
|
10599
10601
|
g.currentPickedEl && (Xe == null || Xe.update(g.currentPickedEl));
|
|
10600
10602
|
};
|
|
10601
10603
|
window.addEventListener("scroll", Se, { capture: !0, passive: !0 }), window.addEventListener("resize", Se), Ht = () => {
|
|
@@ -10663,9 +10665,9 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
|
|
|
10663
10665
|
const zn = X.querySelector("[data-ap-connect-required]");
|
|
10664
10666
|
zn && a && zn.addEventListener("click", () => {
|
|
10665
10667
|
mt(), a();
|
|
10666
|
-
}),
|
|
10668
|
+
}), P.forEach((W) => {
|
|
10667
10669
|
W.addEventListener("click", () => {
|
|
10668
|
-
g.captureType = W.dataset.apType,
|
|
10670
|
+
g.captureType = W.dataset.apType, P.forEach((F) => F.classList.toggle("ap-sdk-active", F === W));
|
|
10669
10671
|
});
|
|
10670
10672
|
});
|
|
10671
10673
|
const hn = X.querySelector("[data-ap-reconfigure]");
|