@neat.is/core 0.5.4-dev.20260721 → 0.6.1
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/{chunk-VR73QNJD.js → chunk-3YUNROLT.js} +12 -6
- package/dist/{chunk-VR73QNJD.js.map → chunk-3YUNROLT.js.map} +1 -1
- package/dist/{chunk-PEFX3DBR.js → chunk-7C6ZULNU.js} +151 -9
- package/dist/chunk-7C6ZULNU.js.map +1 -0
- package/dist/{chunk-I4NZ7PSN.js → chunk-BZ3AJVAC.js} +8 -3
- package/dist/chunk-BZ3AJVAC.js.map +1 -0
- package/dist/{chunk-4RU3AAOI.js → chunk-MVINCLQM.js} +2 -2
- package/dist/cli.cjs +209 -17
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +49 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +164 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/neatd.cjs +164 -11
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +3 -3
- package/dist/{otel-grpc-TEGOXE6T.js → otel-grpc-XS45HBET.js} +3 -3
- package/dist/server.cjs +155 -8
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-I4NZ7PSN.js.map +0 -1
- package/dist/chunk-PEFX3DBR.js.map +0 -1
- /package/dist/{chunk-4RU3AAOI.js.map → chunk-MVINCLQM.js.map} +0 -0
- /package/dist/{otel-grpc-TEGOXE6T.js.map → otel-grpc-XS45HBET.js.map} +0 -0
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
touchLastSeen,
|
|
32
32
|
upsertObservedEdge,
|
|
33
33
|
writeAtomically
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7C6ZULNU.js";
|
|
35
35
|
import {
|
|
36
36
|
assertBindAuthority,
|
|
37
37
|
buildOtelReceiver,
|
|
38
38
|
listenSteppingOtlp,
|
|
39
39
|
readAuthEnv
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BZ3AJVAC.js";
|
|
41
41
|
|
|
42
42
|
// src/daemon.ts
|
|
43
43
|
import {
|
|
@@ -1686,15 +1686,21 @@ var PROVIDER_DISPATCH = {
|
|
|
1686
1686
|
resolveTarget: createCloudflareResolveTarget(config, graph)
|
|
1687
1687
|
};
|
|
1688
1688
|
},
|
|
1689
|
-
// GET /
|
|
1690
|
-
//
|
|
1689
|
+
// GET /accounts/{accountId}/tokens/verify — the *account-scoped* token-verify
|
|
1690
|
+
// endpoint. A Workers connector token is scoped to the account, and the
|
|
1691
|
+
// user-level `GET /user/tokens/verify` returns 401 "Invalid API Token" for
|
|
1692
|
+
// such a token even though it authenticates fine against the account's own
|
|
1693
|
+
// resources (confirmed live). Probing the account-scoped verify endpoint —
|
|
1694
|
+
// `accountId` is already required for this provider — returns 200
|
|
1695
|
+
// `{status:"active"}` for a working token and 401 for a bad one, so a valid
|
|
1696
|
+
// Workers token is no longer falsely rejected at `neat connector add`.
|
|
1691
1697
|
validate({ credentials, options, fetchImpl }) {
|
|
1692
1698
|
const cfg = options;
|
|
1693
1699
|
const baseUrl = cfg.baseUrl ?? CLOUDFLARE_API_BASE_URL;
|
|
1694
1700
|
return authProbe({
|
|
1695
1701
|
provider: "cloudflare",
|
|
1696
1702
|
accountKey: cfg.accountId ?? "validate",
|
|
1697
|
-
url: `${baseUrl}/
|
|
1703
|
+
url: `${baseUrl}/accounts/${cfg.accountId ?? ""}/tokens/verify`,
|
|
1698
1704
|
token: String(credentials.apiToken ?? ""),
|
|
1699
1705
|
...fetchImpl ? { fetchImpl } : {}
|
|
1700
1706
|
});
|
|
@@ -2759,4 +2765,4 @@ export {
|
|
|
2759
2765
|
resolveHost,
|
|
2760
2766
|
startDaemon
|
|
2761
2767
|
};
|
|
2762
|
-
//# sourceMappingURL=chunk-
|
|
2768
|
+
//# sourceMappingURL=chunk-3YUNROLT.js.map
|