stitchkit 0.127.0 → 0.128.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/CHANGELOG.md +137 -6
- package/dist/agent-executor/acp/v1-connect.d.ts +9 -1
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +8 -2
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +8 -0
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +4 -0
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/protocol.d.ts +20 -2
- package/dist/agent-executor/claude/protocol.d.ts.map +1 -1
- package/dist/agent-executor/claude/session.d.ts +2 -1
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude/transcript.d.ts +7 -4
- package/dist/agent-executor/claude/transcript.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +4 -0
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +4 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +26 -2
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/session.d.ts +3 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/image-input.d.ts +71 -0
- package/dist/agent-executor/image-input.d.ts.map +1 -0
- package/dist/agent-executor/session-primitives.d.ts +0 -3
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-runtime/agent-tool.d.ts +21 -7
- package/dist/agent-runtime/agent-tool.d.ts.map +1 -1
- package/dist/agent-runtime/branch-contract.d.ts +1 -0
- package/dist/agent-runtime/branch-contract.d.ts.map +1 -1
- package/dist/agent-runtime/branch-identities.d.ts +5 -2
- package/dist/agent-runtime/branch-identities.d.ts.map +1 -1
- package/dist/agent-runtime/branch-messages.d.ts +9 -9
- package/dist/agent-runtime/branch-messages.d.ts.map +1 -1
- package/dist/agent-runtime/branch-observations.d.ts +45 -32
- package/dist/agent-runtime/branch-observations.d.ts.map +1 -1
- package/dist/agent-runtime/branch-provider.d.ts +12 -6
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
- package/dist/agent-runtime/branch-source.d.ts +13 -1
- package/dist/agent-runtime/branch-source.d.ts.map +1 -1
- package/dist/agent-runtime/child-tools.d.ts +64 -0
- package/dist/agent-runtime/child-tools.d.ts.map +1 -1
- package/dist/agent-runtime/event-search-tools.d.ts +82 -5
- package/dist/agent-runtime/event-search-tools.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-payload.d.ts +12 -0
- package/dist/agent-runtime/invocation-payload.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-read.d.ts +6 -3
- package/dist/agent-runtime/invocation-read.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-schema.d.ts +50 -8
- package/dist/agent-runtime/invocation-schema.d.ts.map +1 -1
- package/dist/agent-runtime/invocations.d.ts +20 -9
- package/dist/agent-runtime/invocations.d.ts.map +1 -1
- package/dist/agent-runtime/postgres.d.ts.map +1 -1
- package/dist/agent-runtime/schedule-tools.d.ts +30 -0
- package/dist/agent-runtime/schedule-tools.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-invocation-payload.d.ts +48 -0
- package/dist/agent-runtime/schemas-invocation-payload.d.ts.map +1 -0
- package/dist/agent-runtime/sql-events.d.ts.map +1 -1
- package/dist/agent-runtime/sql-session.d.ts +11 -0
- package/dist/agent-runtime/sql-session.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -1
- package/dist/agent-runtime/state-tools.d.ts +55 -0
- package/dist/agent-runtime/state-tools.d.ts.map +1 -1
- package/dist/agent-runtime/store-branch.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/store-conformance-support.d.ts +10 -10
- package/dist/agent-runtime/store-create.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +12 -0
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/store-memory-events.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +7 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/declaration/declaration.d.ts +6 -3
- package/dist/declaration/declaration.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +23 -12
- package/dist/entrypoints/agent-executor/claude-sdk.js +26 -10
- package/dist/entrypoints/agent-executor/claude.js +35 -16
- package/dist/entrypoints/agent-executor/codex.js +81 -21
- package/dist/entrypoints/agent-executor.js +1 -1
- package/dist/entrypoints/agent-runtime/harness.js +5 -6
- package/dist/entrypoints/agent-runtime/openrouter.js +2 -2
- package/dist/entrypoints/agent-runtime/postgres.js +8 -3
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +4 -4
- package/dist/entrypoints/agent-runtime/sqlite/node.js +4 -4
- package/dist/entrypoints/agent-runtime/testing.js +6 -6
- package/dist/entrypoints/agent-runtime.d.ts +9 -7
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +246 -199
- package/dist/entrypoints/application/diagnostic-journal.js +4 -4
- package/dist/entrypoints/application/directory-inbox.js +8 -8
- package/dist/entrypoints/cli/publish.js +8 -8
- package/dist/entrypoints/cli.js +10 -9
- package/dist/entrypoints/declaration.js +0 -1
- package/dist/entrypoints/files.js +40 -17
- package/dist/entrypoints/node.js +4 -4
- package/dist/entrypoints/observability.js +1 -1
- package/dist/entrypoints/process.js +1 -1
- package/dist/entrypoints/server.js +7 -7
- package/dist/entrypoints/service-host/macos.js +4 -4
- package/dist/entrypoints/service-host.d.ts +4 -1
- package/dist/entrypoints/service-host.d.ts.map +1 -1
- package/dist/entrypoints/service-host.js +831 -220
- package/dist/entrypoints/spend.js +1 -1
- package/dist/entrypoints/telegram.js +4 -4
- package/dist/entrypoints/tools/agent.js +4 -3
- package/dist/entrypoints/tools/invoker.js +3 -2
- package/dist/entrypoints/tools/mcp.js +4 -3
- package/dist/entrypoints/tools/toolkit.js +6 -5
- package/dist/entrypoints/tools.d.ts +1 -1
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +10 -8
- package/dist/files/directory-appearance.d.ts +20 -9
- package/dist/files/directory-appearance.d.ts.map +1 -1
- package/dist/files/polled-json.d.ts.map +1 -1
- package/dist/files/regular-file.d.ts +15 -5
- package/dist/files/regular-file.d.ts.map +1 -1
- package/dist/{index-z4k0hqp9.js → index-0gqs8ght.js} +106 -24
- package/dist/{index-caywx1c0.js → index-13dnv6d0.js} +107 -10
- package/dist/{index-a725ayvz.js → index-1qwrczr1.js} +1 -1
- package/dist/{index-xtkw9866.js → index-2c5w2d1d.js} +1 -1
- package/dist/{index-g1q7fwn9.js → index-2nwvn7m2.js} +1 -1
- package/dist/{index-4s2w4g37.js → index-3tnwtz38.js} +80 -2
- package/dist/{index-5e0zsbf7.js → index-4j8efqr3.js} +1 -1
- package/dist/{index-p1m9djt6.js → index-5v5vg85s.js} +1 -1
- package/dist/{index-x90w78yz.js → index-673drwkn.js} +23 -8
- package/dist/{index-7xp05h20.js → index-6wp4dn9d.js} +6 -6
- package/dist/{index-0hdm5sx6.js → index-8x22nprv.js} +6 -2
- package/dist/{index-j13gzgdv.js → index-bz3gn6cs.js} +8 -4
- package/dist/{index-d96c1n1q.js → index-c5gp2gh6.js} +20 -19
- package/dist/{index-wbnpa8z6.js → index-d54npte7.js} +4 -4
- package/dist/{index-kmbpej2y.js → index-emgrmavr.js} +102 -61
- package/dist/{index-bbzvrq66.js → index-g3e57qj6.js} +455 -202
- package/dist/index-gf92hc87.js +100 -0
- package/dist/{index-3djgv3ch.js → index-gzny6zsw.js} +25 -10
- package/dist/{index-3b31z0pc.js → index-hj1zq7mh.js} +12 -6
- package/dist/{index-8xr2eq99.js → index-jfecdk1e.js} +3 -3
- package/dist/{index-dvd1qdwa.js → index-ke02kxsr.js} +3 -3
- package/dist/{index-83n766x4.js → index-m18xm96h.js} +15 -9
- package/dist/{index-qnzhmk2s.js → index-n7f89hjw.js} +90 -47
- package/dist/{index-3agqmmrg.js → index-pn5b11ce.js} +7 -9
- package/dist/{index-3gwp8ez6.js → index-pwskmywy.js} +12 -17
- package/dist/{index-9wh98cpa.js → index-rxnyygke.js} +130 -90
- package/dist/{index-0djnptn8.js → index-rzeezh79.js} +10 -3
- package/dist/{index-nbv44x0x.js → index-s2e3h616.js} +137 -36
- package/dist/{index-5zwac8ft.js → index-t7wa7k12.js} +2 -2
- package/dist/{index-xypxnzhp.js → index-v1mxss62.js} +2 -2
- package/dist/index-vgzhw2zk.js +304 -0
- package/dist/{index-jrka9029.js → index-vmbxj75t.js} +2 -2
- package/dist/{index-j516jaaz.js → index-waa6t4zx.js} +49 -2
- package/dist/{index-fcw255hd.js → index-xv9jb84s.js} +2 -2
- package/dist/{index-dwa6pskj.js → index-y065r8g5.js} +82 -43
- package/dist/internal/bounded-file-confirm.d.ts +32 -0
- package/dist/internal/bounded-file-confirm.d.ts.map +1 -0
- package/dist/internal/bounded-file-read.d.ts +10 -7
- package/dist/internal/bounded-file-read.d.ts.map +1 -1
- package/dist/internal/file-observation.d.ts +5 -1
- package/dist/internal/file-observation.d.ts.map +1 -1
- package/dist/internal/process-instance.d.ts +8 -0
- package/dist/internal/process-instance.d.ts.map +1 -1
- package/dist/internal/unix-socket.d.ts +3 -1
- package/dist/internal/unix-socket.d.ts.map +1 -1
- package/dist/server/unix-client.d.ts +7 -0
- package/dist/server/unix-client.d.ts.map +1 -1
- package/dist/service-host/systemd-inspect.d.ts +3 -1
- package/dist/service-host/systemd-inspect.d.ts.map +1 -1
- package/dist/service-host/systemd-render-shared.d.ts +64 -0
- package/dist/service-host/systemd-render-shared.d.ts.map +1 -0
- package/dist/service-host/systemd-render.d.ts +31 -26
- package/dist/service-host/systemd-render.d.ts.map +1 -1
- package/dist/service-host/systemd-timer-render.d.ts +31 -0
- package/dist/service-host/systemd-timer-render.d.ts.map +1 -0
- package/dist/service-host/systemd-timer-rollback.d.ts +26 -0
- package/dist/service-host/systemd-timer-rollback.d.ts.map +1 -0
- package/dist/service-host/systemd-timer.d.ts +82 -0
- package/dist/service-host/systemd-timer.d.ts.map +1 -0
- package/dist/service-host/systemd-unit-ops.d.ts +26 -0
- package/dist/service-host/systemd-unit-ops.d.ts.map +1 -0
- package/dist/service-host/systemd.d.ts +1 -1
- package/dist/service-host/systemd.d.ts.map +1 -1
- package/dist/tools/access.d.ts +30 -1
- package/dist/tools/access.d.ts.map +1 -1
- package/dist/tools/agent.d.ts +2 -2
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/args-scan.d.ts +5 -0
- package/dist/tools/cli/args-scan.d.ts.map +1 -1
- package/dist/tools/cli/args.d.ts +11 -5
- package/dist/tools/cli/args.d.ts.map +1 -1
- package/dist/tools/cli/invoke.d.ts +2 -1
- package/dist/tools/cli/invoke.d.ts.map +1 -1
- package/dist/tools/cli/notices.d.ts.map +1 -1
- package/dist/tools/cli/run-managed.d.ts.map +1 -1
- package/dist/tools/cli/session.d.ts.map +1 -1
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts +2 -1
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/list-names.d.ts +2 -3
- package/dist/tools/list-names.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -3
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +5 -5
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/register.d.ts +2 -1
- package/dist/tools/mcp/register.d.ts.map +1 -1
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +10 -6
- package/llms/agent-executor-claude-sdk.txt +1 -1
- package/llms/agent-executor-claude.txt +1 -1
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-runtime.4.txt +21 -9
- package/llms/cli.3.txt +4 -4
- package/llms/cli.txt +1 -0
- package/llms/declaration.txt +2 -2
- package/llms/files.txt +1 -1
- package/llms/node.txt +2 -2
- package/llms/server.5.txt +2 -2
- package/llms/service-host.txt +5 -5
- package/llms/stitchkit.txt +81 -77
- package/llms/tools.3.txt +3 -2
- package/llms/upgrading-0.128.0.txt +147 -0
- package/llms/upgrading.txt +1 -0
- package/llms-full.txt +272 -113
- package/llms.txt +14 -13
- package/package.json +1 -1
- package/dist/index-ajmtxsky.js +0 -193
- package/dist/index-ax3wns1a.js +0 -93
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import"../../index-xqhede6x.js";
|
|
2
2
|
import"../../index-6kec3b14.js";
|
|
3
|
-
import"../../index-
|
|
4
|
-
import"../../index-
|
|
3
|
+
import"../../index-673drwkn.js";
|
|
4
|
+
import"../../index-vmbxj75t.js";
|
|
5
5
|
import {
|
|
6
6
|
signCliManifest2,
|
|
7
7
|
verifyCliManifest2,
|
|
@@ -15,23 +15,23 @@ import {
|
|
|
15
15
|
gzipCliAsset,
|
|
16
16
|
decodeCliAsset,
|
|
17
17
|
compareCliVersions2
|
|
18
|
-
} from "../../index-
|
|
18
|
+
} from "../../index-v1mxss62.js";
|
|
19
19
|
import {
|
|
20
20
|
withExclusiveLock2
|
|
21
|
-
} from "../../index-
|
|
22
|
-
import"../../index-
|
|
21
|
+
} from "../../index-2nwvn7m2.js";
|
|
22
|
+
import"../../index-ke02kxsr.js";
|
|
23
23
|
import {
|
|
24
24
|
ManagedFileError2,
|
|
25
25
|
createManagedFileBoundary2
|
|
26
|
-
} from "../../index-
|
|
26
|
+
} from "../../index-jfecdk1e.js";
|
|
27
27
|
import {
|
|
28
28
|
writeFileAtomic2
|
|
29
|
-
} from "../../index-
|
|
29
|
+
} from "../../index-t7wa7k12.js";
|
|
30
30
|
import {
|
|
31
31
|
AtomicFilePublicationError2,
|
|
32
32
|
assertDirectoryDurability,
|
|
33
33
|
syncDirectory
|
|
34
|
-
} from "../../index-
|
|
34
|
+
} from "../../index-2c5w2d1d.js";
|
|
35
35
|
import {
|
|
36
36
|
errnoOf
|
|
37
37
|
} from "../../index-jj9228tt.js";
|
package/dist/entrypoints/cli.js
CHANGED
|
@@ -23,11 +23,12 @@ import {
|
|
|
23
23
|
extractCliGlobalOptions2,
|
|
24
24
|
pollUntilDone2,
|
|
25
25
|
createCli2
|
|
26
|
-
} from "../index-
|
|
26
|
+
} from "../index-y065r8g5.js";
|
|
27
27
|
import"../index-akf0xkrm.js";
|
|
28
28
|
import"../index-3ypvpkwr.js";
|
|
29
|
-
import"../index-
|
|
29
|
+
import"../index-rxnyygke.js";
|
|
30
30
|
import"../index-yt1gg11x.js";
|
|
31
|
+
import"../index-gf92hc87.js";
|
|
31
32
|
import"../index-werjqesf.js";
|
|
32
33
|
import"../index-0x4mnwg5.js";
|
|
33
34
|
import"../index-6kec3b14.js";
|
|
@@ -51,25 +52,25 @@ import {
|
|
|
51
52
|
checkCliUpdate2,
|
|
52
53
|
applyCliUpdate2,
|
|
53
54
|
rollbackCliUpdate2
|
|
54
|
-
} from "../index-
|
|
55
|
-
import"../index-
|
|
56
|
-
import"../index-
|
|
55
|
+
} from "../index-v1mxss62.js";
|
|
56
|
+
import"../index-673drwkn.js";
|
|
57
|
+
import"../index-vmbxj75t.js";
|
|
57
58
|
import"../index-bmaz3jzy.js";
|
|
58
59
|
import"../index-xrgn784x.js";
|
|
59
60
|
import {
|
|
60
61
|
stringifyJsonSafe
|
|
61
62
|
} from "../index-5awtbyns.js";
|
|
62
|
-
import"../index-
|
|
63
|
-
import"../index-
|
|
63
|
+
import"../index-2nwvn7m2.js";
|
|
64
|
+
import"../index-ke02kxsr.js";
|
|
64
65
|
import {
|
|
65
66
|
argumentsDigest
|
|
66
67
|
} from "../index-3dq8466w.js";
|
|
67
|
-
import"../index-
|
|
68
|
+
import"../index-4j8efqr3.js";
|
|
68
69
|
import"../index-7csn6pva.js";
|
|
69
70
|
import"../index-hy4653g4.js";
|
|
70
71
|
import {
|
|
71
72
|
writeFileAtomicSync2
|
|
72
|
-
} from "../index-
|
|
73
|
+
} from "../index-t7wa7k12.js";
|
|
73
74
|
import {
|
|
74
75
|
safeJsonParse
|
|
75
76
|
} from "../index-zsarb5xp.js";
|
|
@@ -59,7 +59,6 @@ var SemanticVersionSchema = z2.string().regex(/^\d+\.\d+\.\d+$/, "Use a semantic
|
|
|
59
59
|
var ProjectIdentitySchema = z2.object({
|
|
60
60
|
slug: ProjectSlugSchema,
|
|
61
61
|
name: refuseMachineNames("A project name")(z2.string().trim().min(1).max(80)),
|
|
62
|
-
version: SemanticVersionSchema,
|
|
63
62
|
description: ProjectDescriptionSchema
|
|
64
63
|
}).strict();
|
|
65
64
|
var ProjectStarterSchema = z2.strictObject({
|
|
@@ -10,36 +10,36 @@ import {
|
|
|
10
10
|
readRegularFile2,
|
|
11
11
|
parseJsonBytes2,
|
|
12
12
|
readJsonFileSync2
|
|
13
|
-
} from "../index-
|
|
13
|
+
} from "../index-pwskmywy.js";
|
|
14
14
|
import"../index-6kec3b14.js";
|
|
15
|
-
import"../index-
|
|
16
|
-
import"../index-
|
|
15
|
+
import"../index-673drwkn.js";
|
|
16
|
+
import"../index-vmbxj75t.js";
|
|
17
17
|
import {
|
|
18
18
|
readJsonOnce2,
|
|
19
19
|
MAX_POLLED_JSON_CACHE_BYTES2,
|
|
20
20
|
MAX_POLLED_JSON_PATHS2,
|
|
21
21
|
PolledJsonFiles2,
|
|
22
22
|
PolledJsonFile2
|
|
23
|
-
} from "../index-
|
|
23
|
+
} from "../index-bz3gn6cs.js";
|
|
24
24
|
import {
|
|
25
25
|
bindUnixSocket2
|
|
26
|
-
} from "../index-
|
|
26
|
+
} from "../index-gzny6zsw.js";
|
|
27
27
|
import {
|
|
28
28
|
ExclusiveLockError2,
|
|
29
29
|
withExclusiveLock2
|
|
30
|
-
} from "../index-
|
|
31
|
-
import"../index-
|
|
30
|
+
} from "../index-2nwvn7m2.js";
|
|
31
|
+
import"../index-ke02kxsr.js";
|
|
32
32
|
import {
|
|
33
33
|
ManagedFileError2,
|
|
34
34
|
createManagedFileBoundary2
|
|
35
|
-
} from "../index-
|
|
35
|
+
} from "../index-jfecdk1e.js";
|
|
36
36
|
import {
|
|
37
37
|
writeFileAtomic2,
|
|
38
38
|
writeFileAtomicSync2
|
|
39
|
-
} from "../index-
|
|
39
|
+
} from "../index-t7wa7k12.js";
|
|
40
40
|
import {
|
|
41
41
|
AtomicFilePublicationError2
|
|
42
|
-
} from "../index-
|
|
42
|
+
} from "../index-2c5w2d1d.js";
|
|
43
43
|
import {
|
|
44
44
|
isAtomicStagingName2,
|
|
45
45
|
sweepAtomicStaging2
|
|
@@ -305,7 +305,7 @@ function createChunkSpoolWith(config, io = {}) {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
// src/files/directory-appearance.ts
|
|
308
|
-
import { statSync, watch } from "node:fs";
|
|
308
|
+
import { lstatSync, statSync, watch } from "node:fs";
|
|
309
309
|
import { dirname, resolve } from "node:path";
|
|
310
310
|
var DEFAULT_DIRECTORY_SETTLE_MS = 250;
|
|
311
311
|
var ABSENT = new Set(["ENOENT", "ENOTDIR"]);
|
|
@@ -319,6 +319,16 @@ var nodeIo2 = {
|
|
|
319
319
|
throw error;
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
|
+
hasEntry(path) {
|
|
323
|
+
try {
|
|
324
|
+
lstatSync(path);
|
|
325
|
+
return true;
|
|
326
|
+
} catch (error) {
|
|
327
|
+
if (ABSENT.has(errnoOf(error) ?? ""))
|
|
328
|
+
return false;
|
|
329
|
+
throw error;
|
|
330
|
+
}
|
|
331
|
+
},
|
|
322
332
|
watch(path, onEvent, { persistent }) {
|
|
323
333
|
return watch(path, { persistent }, () => onEvent());
|
|
324
334
|
}
|
|
@@ -338,8 +348,21 @@ function waitForDirectory(path, options = {}) {
|
|
|
338
348
|
}
|
|
339
349
|
function waitForDirectoryWith(io, path, options = {}) {
|
|
340
350
|
const target = resolve(path);
|
|
341
|
-
const {
|
|
351
|
+
const {
|
|
352
|
+
signal,
|
|
353
|
+
match = "directory",
|
|
354
|
+
settleMs = DEFAULT_DIRECTORY_SETTLE_MS,
|
|
355
|
+
keepAlive = true
|
|
356
|
+
} = options;
|
|
357
|
+
if (match !== "directory" && match !== "entry") {
|
|
358
|
+
throw new TypeError(`match must be 'directory' or 'entry', got ${String(match)}`);
|
|
359
|
+
}
|
|
360
|
+
const hasEntry = io.hasEntry;
|
|
361
|
+
if (match === "entry" && typeof hasEntry !== "function") {
|
|
362
|
+
throw new TypeError("DirectoryAppearanceIo.hasEntry is required when match is 'entry'");
|
|
363
|
+
}
|
|
342
364
|
assertTimerMs("settleMs", settleMs);
|
|
365
|
+
const isSatisfied = match === "entry" && hasEntry !== undefined ? (candidate) => hasEntry(candidate) : (candidate) => io.isDirectory(candidate);
|
|
343
366
|
return new Promise((resolveWait, rejectWait) => {
|
|
344
367
|
if (signal?.aborted) {
|
|
345
368
|
rejectWait(abortReason(signal));
|
|
@@ -374,15 +397,15 @@ function waitForDirectoryWith(io, path, options = {}) {
|
|
|
374
397
|
return;
|
|
375
398
|
let present;
|
|
376
399
|
try {
|
|
377
|
-
|
|
400
|
+
if (isSatisfied(target)) {
|
|
401
|
+
finish();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
present = nearestDirectory(dirname(target), io);
|
|
378
405
|
} catch (error) {
|
|
379
406
|
finish(error, true);
|
|
380
407
|
return;
|
|
381
408
|
}
|
|
382
|
-
if (present === target) {
|
|
383
|
-
finish();
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
409
|
if (present === watched)
|
|
387
410
|
return;
|
|
388
411
|
stopWatching();
|
package/dist/entrypoints/node.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
defineRequestIngress2,
|
|
13
13
|
createSocketIOServer2,
|
|
14
14
|
createUnixClientTransport2
|
|
15
|
-
} from "../index-
|
|
15
|
+
} from "../index-8x22nprv.js";
|
|
16
16
|
import {
|
|
17
17
|
ShutdownStateSchema2,
|
|
18
18
|
ShutdownOptionsSchema2,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
import"../index-0r15pkjq.js";
|
|
24
24
|
import"../index-4s0fep5q.js";
|
|
25
25
|
import"../index-6kec3b14.js";
|
|
26
|
-
import"../index-
|
|
27
|
-
import"../index-
|
|
26
|
+
import"../index-673drwkn.js";
|
|
27
|
+
import"../index-vmbxj75t.js";
|
|
28
28
|
import"../index-werjqesf.js";
|
|
29
29
|
import"../index-d4svrknj.js";
|
|
30
30
|
import"../index-kt6dh1n6.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
createHandler2
|
|
37
37
|
} from "../index-v37b2cd6.js";
|
|
38
|
-
import"../index-
|
|
38
|
+
import"../index-gzny6zsw.js";
|
|
39
39
|
import {
|
|
40
40
|
UnixClientTransportError2
|
|
41
41
|
} from "../index-cv9b7fz2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import"../index-6kec3b14.js";
|
|
2
|
-
import"../index-
|
|
3
|
-
import"../index-
|
|
2
|
+
import"../index-673drwkn.js";
|
|
3
|
+
import"../index-vmbxj75t.js";
|
|
4
4
|
import {
|
|
5
5
|
errorCode2,
|
|
6
6
|
normalizeError2
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
createSocketIOServer2,
|
|
48
48
|
socketIoLane2,
|
|
49
49
|
createUnixClientTransport2
|
|
50
|
-
} from "../index-
|
|
50
|
+
} from "../index-8x22nprv.js";
|
|
51
51
|
import"../index-27hck3z2.js";
|
|
52
52
|
import {
|
|
53
53
|
toJsonSchema,
|
|
@@ -58,7 +58,7 @@ import"../index-4s0fep5q.js";
|
|
|
58
58
|
import"../index-xqhede6x.js";
|
|
59
59
|
import {
|
|
60
60
|
createFileStateStore2
|
|
61
|
-
} from "../index-
|
|
61
|
+
} from "../index-d54npte7.js";
|
|
62
62
|
import {
|
|
63
63
|
bindRealtimeServer2
|
|
64
64
|
} from "../index-sv5svtq7.js";
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
assertPrivateUnixSocketDirectory,
|
|
89
89
|
publishStagedUnixSocket,
|
|
90
90
|
bindUnixSocket2
|
|
91
|
-
} from "../index-
|
|
91
|
+
} from "../index-gzny6zsw.js";
|
|
92
92
|
import {
|
|
93
93
|
jsonResponse
|
|
94
94
|
} from "../index-kyejf658.js";
|
|
95
|
-
import"../index-
|
|
96
|
-
import"../index-
|
|
95
|
+
import"../index-2nwvn7m2.js";
|
|
96
|
+
import"../index-ke02kxsr.js";
|
|
97
97
|
import {
|
|
98
98
|
inputIsQuery
|
|
99
99
|
} from "../index-xhzq2qvj.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readRegularFile2
|
|
3
|
-
} from "../../index-
|
|
3
|
+
} from "../../index-pwskmywy.js";
|
|
4
4
|
import {
|
|
5
5
|
requireDarwinServiceHostMethod,
|
|
6
6
|
loadDarwinBinding
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createDefaultLaunchdHostAdapter2,
|
|
16
16
|
lintLaunchdPlist2,
|
|
17
17
|
readLaunchdPlist2
|
|
18
|
-
} from "../../index-
|
|
18
|
+
} from "../../index-xv9jb84s.js";
|
|
19
19
|
import {
|
|
20
20
|
NativeCommandError2
|
|
21
21
|
} from "../../index-v59pxmf1.js";
|
|
@@ -23,7 +23,7 @@ import"../../index-7kfcb576.js";
|
|
|
23
23
|
import {
|
|
24
24
|
sameProcessInstance,
|
|
25
25
|
observeProcessInstance2
|
|
26
|
-
} from "../../index-
|
|
26
|
+
} from "../../index-673drwkn.js";
|
|
27
27
|
import {
|
|
28
28
|
runNativeCommand2
|
|
29
29
|
} from "../../index-5ptwb6ka.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "../../index-r9kq5ark.js";
|
|
33
33
|
import {
|
|
34
34
|
writeFileAtomic2
|
|
35
|
-
} from "../../index-
|
|
35
|
+
} from "../../index-t7wa7k12.js";
|
|
36
36
|
import {
|
|
37
37
|
errnoOf
|
|
38
38
|
} from "../../index-jj9228tt.js";
|
|
@@ -19,5 +19,8 @@ export { createDefaultLaunchdHostAdapter, type LaunchdCommandResult, type Launch
|
|
|
19
19
|
export { LaunchdJobError, type LaunchdJobErrorCode, type LaunchdJobInspection, LaunchdKeepAliveSchema, type LaunchdPlistConfig, LaunchdPlistConfigSchema, type LaunchdSessionType, LaunchdSessionTypeSchema, parseLaunchctlPrint, renderLaunchdPlist, } from '../service-host/launchd-render.js';
|
|
20
20
|
export { type ApplySystemdUnitOptions, installAndStartSystemdUnit, reloadSystemdUnit, type SystemdApplyResult, } from '../service-host/systemd.js';
|
|
21
21
|
export { type CheckSystemdUnitOptions, checkSystemdUnit, createDefaultSystemdHostAdapter, type SystemdCommandResult, type SystemdHostAdapter, type SystemdUnitCheckResult, type SystemdUnitCheckStatus, type SystemdUnitQueryOptions, systemdMainPid, systemdUnitActive, } from '../service-host/systemd-inspect.js';
|
|
22
|
-
export { renderSystemdServiceUnit, type
|
|
22
|
+
export { renderSystemdServiceUnit, type SystemdServiceUnitConfig, SystemdServiceUnitConfigSchema, } from '../service-host/systemd-render.js';
|
|
23
|
+
export { type SystemdBindReadOnlyPath, type SystemdScope, SystemdScopeSchema, SystemdUnitError, type SystemdUnitErrorCode, } from '../service-host/systemd-render-shared.js';
|
|
24
|
+
export { type CheckSystemdTimerPairOptions, checkSystemdTimerPair, type InstallSystemdTimerPairOptions, installSystemdTimerPair, type SystemdTimerPairCheckResult, type SystemdTimerPairInstallResult, } from '../service-host/systemd-timer.js';
|
|
25
|
+
export { renderSystemdTimerUnit, type SystemdTimerUnitConfig, SystemdTimerUnitConfigSchema, } from '../service-host/systemd-timer-render.js';
|
|
23
26
|
//# sourceMappingURL=service-host.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-host.d.ts","sourceRoot":"","sources":["../../src/entrypoints/service-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,8BAA8B,EAC9B,KAAK,6BAA6B,EAClC,mBAAmB,GACpB,MA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KAAK,
|
|
1
|
+
{"version":3,"file":"service-host.d.ts","sourceRoot":"","sources":["../../src/entrypoints/service-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,8BAA8B,EAC9B,KAAK,6BAA6B,EAClC,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,KAAK,aAAa,EAClB,mCAAmC,EACnC,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,gCAAgC,EAChC,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAC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