@ancha-labs/cli 0.4.10 → 0.4.11
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/README.md +10 -10
- package/lib/ancha.mjs +8976 -5468
- package/lib/assets/SKILL.md +30 -27
- package/lib/assets/agents-section.md +21 -19
- package/lib/assets/docs/apps.md +8 -8
- package/lib/assets/docs/cloud.md +35 -32
- package/lib/assets/docs/compare.md +3 -3
- package/lib/assets/docs/explain.md +8 -6
- package/lib/assets/docs/run.md +13 -13
- package/lib/assets/docs/scenes.md +4 -4
- package/lib/assets/docs/setup.md +26 -24
- package/lib/assets/docs/traces.md +8 -7
- package/lib/assets/harbor/companion.mjs +19 -19
- package/lib/assets/llms.txt +6 -6
- package/lib/assets/ui/app.js +110 -35
- package/lib/assets/ui/style.css +5 -2
- package/lib/mcp-entry.mjs +15 -15
- package/lib/worker.mjs +690 -330
- package/lib/world-server.mjs +19 -19
- package/package.json +1 -1
package/lib/assets/ui/style.css
CHANGED
|
@@ -395,7 +395,6 @@ main{margin:10px 10px 10px 240px;padding:24px 28px 36px;min-height:calc(100vh -
|
|
|
395
395
|
.tool-hero{margin-bottom:10px}
|
|
396
396
|
.tool-hero-id{display:flex;align-items:center;gap:14px;min-width:0}
|
|
397
397
|
.tool-hero-id .catalog-brand{width:40px;height:40px;flex:none}
|
|
398
|
-
.tool-intro{max-width:760px;margin:0 0 22px;font-size:14px;line-height:1.6;color:#5e5d59}
|
|
399
398
|
.tool-stats{margin-bottom:28px}
|
|
400
399
|
.rs-stats.cols-1{grid-template-columns:minmax(0,1fr)}.rs-stats.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-stats.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
|
|
401
400
|
.tool-page{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
|
|
@@ -483,7 +482,6 @@ body.navigating main{opacity:.55;transition:opacity .15s .25s;cursor:progress}
|
|
|
483
482
|
/* QA H8: the hosted workspace's addresses, and the CLI note on Tools */
|
|
484
483
|
.hosted-urls{grid-template-columns:110px minmax(0,1fr);margin:12px 0}
|
|
485
484
|
.beta-note{margin:-8px 0 20px;font-size:13px;color:var(--muted);max-width:640px}.agent-empty .beta-note{margin:8px 0 0}
|
|
486
|
-
.tools-cli-note{margin:-8px 0 18px;font-size:12.5px;color:var(--muted)}
|
|
487
485
|
/* QA H6: where scene time skipped between two events */
|
|
488
486
|
.activity-gap{margin:6px 0 6px 72px;font-size:12px;color:var(--muted);font-style:italic}
|
|
489
487
|
/* Phase 8: the attempt's conversation with the world's people, checks that jump into it, the world's People */
|
|
@@ -757,3 +755,8 @@ main:has(>#worlds-page)>.page-head{margin-bottom:18px}
|
|
|
757
755
|
.agent-page .agent-settings{padding:16px 12px}.agent-page .agent-settings .form-grid{grid-template-columns:minmax(0,1fr)}.agent-page .folder-input{flex-wrap:wrap}.agent-page .folder-input input{flex:1 1 100%}.agent-page .agent-settings>.actions{flex-wrap:wrap}
|
|
758
756
|
.agent-page .rt-result .c-status>span{display:inline}.agent-page a.rt-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"result passed" "test test" "agent started" "attempts prod";gap:4px 10px;padding:12px 2px}.agent-page .rt-result{padding:0}.agent-page .rt-prod .c-tag{font-size:11.5px}
|
|
759
757
|
}
|
|
758
|
+
/* SPEC-051: a tool page from the catalog (its starter data only with a machine), and the upload command for agents. */
|
|
759
|
+
.tool-facts{margin:0 0 24px}.tool-facts .c-facts{background:var(--surface)}
|
|
760
|
+
.tool-page.tool-reference{grid-template-columns:minmax(0,1fr)}
|
|
761
|
+
.tool-reference .tool-aside{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:start}
|
|
762
|
+
.beta-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
|
package/lib/mcp-entry.mjs
CHANGED
|
@@ -58987,7 +58987,7 @@ var when = external_exports.string().refine((value2) => {
|
|
|
58987
58987
|
} catch {
|
|
58988
58988
|
return false;
|
|
58989
58989
|
}
|
|
58990
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
58990
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -35m");
|
|
58991
58991
|
var ref7 = external_exports.string().regex(/^[A-Za-z0-9_-]{1,80}$/);
|
|
58992
58992
|
var attachment = external_exports.strictObject({
|
|
58993
58993
|
filename: external_exports.string().min(1).max(255),
|
|
@@ -59343,7 +59343,7 @@ var when2 = external_exports.string().refine((value2) => {
|
|
|
59343
59343
|
} catch {
|
|
59344
59344
|
return false;
|
|
59345
59345
|
}
|
|
59346
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
59346
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -2h");
|
|
59347
59347
|
var zone3 = external_exports.string().max(100).refine((value2) => {
|
|
59348
59348
|
try {
|
|
59349
59349
|
new Intl.DateTimeFormat("en", { timeZone: value2 });
|
|
@@ -59828,11 +59828,11 @@ var isDuration = (value2) => {
|
|
|
59828
59828
|
};
|
|
59829
59829
|
var past = external_exports.string().refine(
|
|
59830
59830
|
(value2) => external_exports.iso.datetime({ offset: true }).safeParse(value2).success ? Number.isFinite(Date.parse(value2)) : isDuration(value2) && parseDuration(value2) <= 0,
|
|
59831
|
-
"expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
59831
|
+
"expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -720h"
|
|
59832
59832
|
);
|
|
59833
59833
|
var moment = external_exports.string().refine(
|
|
59834
59834
|
(value2) => external_exports.iso.datetime({ offset: true }).safeParse(value2).success ? Number.isFinite(Date.parse(value2)) : isDuration(value2),
|
|
59835
|
-
"expected an ISO 8601 time with a timezone, or an offset from the
|
|
59835
|
+
"expected an ISO 8601 time with a timezone, or an offset from the start of the test such as 72h or -24h"
|
|
59836
59836
|
);
|
|
59837
59837
|
var StripeSeedSchema = external_exports.strictObject({
|
|
59838
59838
|
account: external_exports.strictObject({ name: text8, currency: external_exports.enum(["usd", "eur", "gbp", "cad", "aud"]).default("usd"), statement_descriptor: external_exports.string().regex(/^[A-Za-z0-9 .-]{5,22}$/).optional() }),
|
|
@@ -60345,7 +60345,7 @@ var when3 = external_exports.string().refine((value2) => {
|
|
|
60345
60345
|
} catch {
|
|
60346
60346
|
return false;
|
|
60347
60347
|
}
|
|
60348
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
60348
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -8h");
|
|
60349
60349
|
var day2 = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
60350
60350
|
var block = external_exports.lazy(() => external_exports.strictObject({
|
|
60351
60351
|
type: external_exports.enum(NOTION_BLOCK_TYPES),
|
|
@@ -60643,7 +60643,7 @@ var when4 = external_exports.string().refine((value2) => {
|
|
|
60643
60643
|
} catch {
|
|
60644
60644
|
return false;
|
|
60645
60645
|
}
|
|
60646
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
60646
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
60647
60647
|
var attribute = external_exports.strictObject({
|
|
60648
60648
|
api_slug: slug,
|
|
60649
60649
|
title: external_exports.string().min(1).max(100),
|
|
@@ -60899,7 +60899,7 @@ var isDuration2 = (value2) => {
|
|
|
60899
60899
|
};
|
|
60900
60900
|
var past2 = external_exports.string().refine(
|
|
60901
60901
|
(v) => external_exports.iso.datetime({ offset: true }).safeParse(v).success ? Number.isFinite(Date.parse(v)) : isDuration2(v) && parseDuration(v) <= 0,
|
|
60902
|
-
"expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
60902
|
+
"expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -26h"
|
|
60903
60903
|
);
|
|
60904
60904
|
var moment2 = external_exports.string().refine((v) => external_exports.iso.datetime({ offset: true }).safeParse(v).success ? Number.isFinite(Date.parse(v)) : isDuration2(v), "expected an ISO 8601 time or an offset such as 24h");
|
|
60905
60905
|
var ResendSeedSchema = external_exports.strictObject({
|
|
@@ -61240,7 +61240,7 @@ var past3 = external_exports.string().refine((value2) => {
|
|
|
61240
61240
|
} catch {
|
|
61241
61241
|
return false;
|
|
61242
61242
|
}
|
|
61243
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
61243
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
61244
61244
|
var address3 = external_exports.strictObject({
|
|
61245
61245
|
first_name: external_exports.string().max(100).optional(),
|
|
61246
61246
|
last_name: external_exports.string().max(100).optional(),
|
|
@@ -61968,7 +61968,7 @@ var past4 = external_exports.string().refine((value2) => {
|
|
|
61968
61968
|
} catch {
|
|
61969
61969
|
return false;
|
|
61970
61970
|
}
|
|
61971
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
61971
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
61972
61972
|
var person = external_exports.strictObject({ first_name: external_exports.string().min(1).max(140), last_name: external_exports.string().min(1).max(140), email: external_exports.string().regex(EMAIL8) });
|
|
61973
61973
|
var PayPalSeedSchema = external_exports.strictObject({
|
|
61974
61974
|
account: external_exports.strictObject({
|
|
@@ -62166,7 +62166,7 @@ var time3 = (future = false) => external_exports.string().refine((value2) => {
|
|
|
62166
62166
|
} catch {
|
|
62167
62167
|
return false;
|
|
62168
62168
|
}
|
|
62169
|
-
}, future ? "expected an ISO 8601 time with a timezone, or an offset from the
|
|
62169
|
+
}, future ? "expected an ISO 8601 time with a timezone, or an offset from the start of the test such as 7d" : "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
62170
62170
|
var past5 = time3();
|
|
62171
62171
|
var moment3 = time3(true);
|
|
62172
62172
|
var JiraSeedSchema = external_exports.strictObject({
|
|
@@ -62696,7 +62696,7 @@ var time4 = (future = false) => external_exports.string().refine((value2) => {
|
|
|
62696
62696
|
} catch {
|
|
62697
62697
|
return false;
|
|
62698
62698
|
}
|
|
62699
|
-
}, future ? "expected an ISO 8601 time with a timezone, or an offset from the
|
|
62699
|
+
}, future ? "expected an ISO 8601 time with a timezone, or an offset from the start of the test such as 1d" : "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
62700
62700
|
var past6 = time4();
|
|
62701
62701
|
var moment4 = time4(true);
|
|
62702
62702
|
var IntercomSeedSchema = external_exports.strictObject({
|
|
@@ -63209,7 +63209,7 @@ var offsetOk = (value2, future) => {
|
|
|
63209
63209
|
};
|
|
63210
63210
|
var time5 = (future) => external_exports.string().refine(
|
|
63211
63211
|
(v) => external_exports.iso.datetime({ offset: true }).safeParse(v).success ? Number.isFinite(Date.parse(v)) : offsetOk(v, future),
|
|
63212
|
-
future ? "expected an ISO 8601 time with an offset, or an offset from the
|
|
63212
|
+
future ? "expected an ISO 8601 time with an offset, or an offset from the start of the test such as 26h" : "expected an ISO 8601 time with an offset, or a nonpositive offset such as -30h"
|
|
63213
63213
|
);
|
|
63214
63214
|
var past7 = time5(false);
|
|
63215
63215
|
var moment5 = time5(true);
|
|
@@ -63917,7 +63917,7 @@ var past8 = external_exports.string().refine((value2) => {
|
|
|
63917
63917
|
} catch {
|
|
63918
63918
|
return false;
|
|
63919
63919
|
}
|
|
63920
|
-
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the
|
|
63920
|
+
}, "expected an ISO 8601 time with a timezone, or a nonpositive offset from the start of the test such as -30h");
|
|
63921
63921
|
var spacing = external_exports.string().refine((value2) => {
|
|
63922
63922
|
try {
|
|
63923
63923
|
return parseDuration(value2) > 0;
|
|
@@ -65592,7 +65592,7 @@ var money6 = external_exports.number().finite().refine((value2) => Math.round(va
|
|
|
65592
65592
|
var positive = money6.refine((value2) => value2 > 0, "must be more than 0");
|
|
65593
65593
|
var day5 = external_exports.string().refine(
|
|
65594
65594
|
(value2) => /^-?\d+d$/.test(value2) || /^\d{4}-\d{2}-\d{2}$/.test(value2) && (/* @__PURE__ */ new Date(`${value2}T00:00:00Z`)).toISOString().slice(0, 10) === value2,
|
|
65595
|
-
"expected YYYY-MM-DD or an offset in days from the
|
|
65595
|
+
"expected YYYY-MM-DD or an offset in days from the start of the test, e.g. -30d"
|
|
65596
65596
|
);
|
|
65597
65597
|
var external = text11.optional();
|
|
65598
65598
|
var custom2 = external_exports.record(external_exports.string().regex(/^cust(?:entity|body|col|item)[a-z0-9_]+$/), external_exports.union([external_exports.string().max(4e3), external_exports.number(), external_exports.boolean(), external_exports.null()])).optional();
|
|
@@ -66650,7 +66650,7 @@ var ToolExampleSchema = external_exports.strictObject({
|
|
|
66650
66650
|
});
|
|
66651
66651
|
var SceneToolSchema = external_exports.strictObject({
|
|
66652
66652
|
/** A JSON lines file next to the scene, one recorded call per line (`ancha run` reads it into `recorded`). */
|
|
66653
|
-
observations: external_exports.string().regex(/^(?!\/)(?!.*(?:^|\/)\.\.(?:\/|$))[^\0]+$/, "a path relative to the
|
|
66653
|
+
observations: external_exports.string().regex(/^(?!\/)(?!.*(?:^|\/)\.\.(?:\/|$))[^\0]+$/, "a path relative to the test file (scene.yaml), without ..").optional(),
|
|
66654
66654
|
recorded: external_exports.array(ToolObservationSchema).optional(),
|
|
66655
66655
|
/** Calls from other traces of this agent, so a simulated answer can follow how the tool behaved there. */
|
|
66656
66656
|
examples: external_exports.array(ToolExampleSchema).optional(),
|